]> git.saurik.com Git - wxWidgets.git/blob - configure
implemented titlebar doubleclick in win32 theme
[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-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
92 ac_help="$ac_help
93 --with-libpng use libpng (PNG image format)"
94 ac_help="$ac_help
95 --with-libjpeg use libjpeg (JPEG file format)"
96 ac_help="$ac_help
97 --with-libtiff use libtiff (TIFF file format)"
98 ac_help="$ac_help
99 --with-opengl use OpenGL (or Mesa)"
100 ac_help="$ac_help
101 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
102 ac_help="$ac_help
103 --with-regex enable support for wxRegEx class"
104 ac_help="$ac_help
105 --with-zlib use zlib for LZW compression"
106 ac_help="$ac_help
107 --with-odbc use the IODBC and wxODBC classes"
108 ac_help="$ac_help
109 --enable-shared create shared library code"
110 ac_help="$ac_help
111 --enable-soname set the DT_SONAME field in ELF shared libraries"
112 ac_help="$ac_help
113 --enable-optimise create optimised code"
114 ac_help="$ac_help
115 --enable-debug same as debug_flag and debug_info"
116 ac_help="$ac_help
117 --enable-precomp enable use of precompiled headers (Mac OS X)"
118 ac_help="$ac_help
119 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
120 ac_help="$ac_help
121 --enable-debug_info create code with debugging information"
122 ac_help="$ac_help
123 --enable-debug_gdb create code with extra GDB debugging information"
124 ac_help="$ac_help
125 --enable-debug_cntxt use wxDebugContext"
126 ac_help="$ac_help
127 --enable-mem_tracing create code with memory tracing"
128 ac_help="$ac_help
129 --enable-profile create code with profiling information"
130 ac_help="$ac_help
131 --enable-no_rtti create code without RTTI information"
132 ac_help="$ac_help
133 --enable-no_exceptions create code without C++ exceptions handling"
134 ac_help="$ac_help
135 --enable-permissive compile code disregarding strict ANSI"
136 ac_help="$ac_help
137 --enable-no_deps create code without dependency information"
138 ac_help="$ac_help
139 --enable-compat20 enable wxWindows 2.0 compatibility"
140 ac_help="$ac_help
141 --enable-compat22 enable wxWindows 2.2 compatibility"
142 ac_help="$ac_help
143 --enable-intl use internationalization system"
144 ac_help="$ac_help
145 --enable-config use wxConfig (and derived) classes"
146 ac_help="$ac_help
147 --enable-protocols use wxProtocol and derived classes"
148 ac_help="$ac_help
149 --enable-ftp use wxFTP (requires wxProtocol"
150 ac_help="$ac_help
151 --enable-http use wxHTTP (requires wxProtocol"
152 ac_help="$ac_help
153 --enable-fileproto use wxFileProto class (requires wxProtocol"
154 ac_help="$ac_help
155 --enable-sockets use socket/network classes"
156 ac_help="$ac_help
157 --enable-ipc use interprocess communication (wxSocket etc.)"
158 ac_help="$ac_help
159 --enable-cmdline use wxCmdLineParser class"
160 ac_help="$ac_help
161 --enable-datetime use wxDateTime class"
162 ac_help="$ac_help
163 --enable-timedate use obsolete wxDate/wxTime classes"
164 ac_help="$ac_help
165 --enable-stopwatch use wxStopWatch class"
166 ac_help="$ac_help
167 --enable-dialupman use dialup network classes"
168 ac_help="$ac_help
169 --enable-apple_ieee use the Apple IEEE codec"
170 ac_help="$ac_help
171 --enable-timer use wxTimer class"
172 ac_help="$ac_help
173 --enable-wave use wxWave class"
174 ac_help="$ac_help
175 --enable-fraction use wxFraction class"
176 ac_help="$ac_help
177 --enable-dynlib use wxLibrary class for DLL loading"
178 ac_help="$ac_help
179 --enable-dynamicloader use (new) wxDynamicLibrary class"
180 ac_help="$ac_help
181 --enable-longlong use wxLongLong class"
182 ac_help="$ac_help
183 --enable-geometry use geometry class"
184 ac_help="$ac_help
185 --enable-log use logging system"
186 ac_help="$ac_help
187 --enable-streams use wxStream etc classes"
188 ac_help="$ac_help
189 --enable-file use wxFile classes"
190 ac_help="$ac_help
191 --enable-ffile use wxFFile classes"
192 ac_help="$ac_help
193 --enable-textbuf use wxTextBuffer class"
194 ac_help="$ac_help
195 --enable-textfile use wxTextFile class"
196 ac_help="$ac_help
197 --enable-fontmap use font encodings conversion classes"
198 ac_help="$ac_help
199 --enable-unicode compile wxString with Unicode support"
200 ac_help="$ac_help
201 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
202 ac_help="$ac_help
203 --enable-wxprintfv use wxWindows implementation of vprintf()"
204 ac_help="$ac_help
205 --enable-std_iostreams use standard C++ stream classes"
206 ac_help="$ac_help
207 --enable-filesystem use virtual file systems classes"
208 ac_help="$ac_help
209 --enable-fs_inet use virtual HTTP/FTP filesystems"
210 ac_help="$ac_help
211 --enable-fs_zip use virtual ZIP filesystems"
212 ac_help="$ac_help
213 --enable-zipstream use wxZipInputStream"
214 ac_help="$ac_help
215 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
216 ac_help="$ac_help
217 --enable-snglinst use wxSingleInstanceChecker class"
218 ac_help="$ac_help
219 --enable-mimetype use wxMimeTypesManager"
220 ac_help="$ac_help
221 --enable-sysoptions use wxSystemOptions"
222 ac_help="$ac_help
223 --enable-url use wxURL class"
224 ac_help="$ac_help
225 --enable-protocol use wxProtocol class"
226 ac_help="$ac_help
227 --enable-protocol-http HTTP support in wxProtocol"
228 ac_help="$ac_help
229 --enable-protocol-ftp FTP support in wxProtocol"
230 ac_help="$ac_help
231 --enable-protocol-file FILE support in wxProtocol"
232 ac_help="$ac_help
233 --enable-threads use threads"
234 ac_help="$ac_help
235 --enable-docview use document view architecture"
236 ac_help="$ac_help
237 --enable-help use help subsystem"
238 ac_help="$ac_help
239 --enable-mshtmlhelp use MS HTML Help (win32)"
240 ac_help="$ac_help
241 --enable-html use wxHTML sub-library"
242 ac_help="$ac_help
243 --enable-htmlhelp use wxHTML-based help"
244 ac_help="$ac_help
245 --enable-constraints use layout-constraints system"
246 ac_help="$ac_help
247 --enable-printarch use printing architecture"
248 ac_help="$ac_help
249 --enable-mdi use multiple document interface architecture"
250 ac_help="$ac_help
251 --enable-loggui use standard GUI logger"
252 ac_help="$ac_help
253 --enable-logwin use wxLogWindow"
254 ac_help="$ac_help
255 --enable-logdialog use wxLogDialog"
256 ac_help="$ac_help
257 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
258 ac_help="$ac_help
259 --enable-prologio use Prolog IO library"
260 ac_help="$ac_help
261 --enable-resources use wxWindows resources"
262 ac_help="$ac_help
263 --enable-xresources use X resources for save (default for gtk+)"
264 ac_help="$ac_help
265 --enable-clipboard use wxClipboard classes"
266 ac_help="$ac_help
267 --enable-dnd use Drag'n'Drop classes"
268 ac_help="$ac_help
269 --enable-metafile use win32 metafiles"
270 ac_help="$ac_help
271 --enable-treelayout use wxTreeLayout classes"
272 ac_help="$ac_help
273 --enable-controls use all usual controls"
274 ac_help="$ac_help
275 --enable-accel use accelerators"
276 ac_help="$ac_help
277 --enable-button use wxButton class"
278 ac_help="$ac_help
279 --enable-bmpbutton use wxBitmapButton class"
280 ac_help="$ac_help
281 --enable-calendar use wxCalendarCtrl class"
282 ac_help="$ac_help
283 --enable-caret use wxCaret class"
284 ac_help="$ac_help
285 --enable-checkbox use wxCheckBox class"
286 ac_help="$ac_help
287 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
288 ac_help="$ac_help
289 --enable-choice use wxChoice class"
290 ac_help="$ac_help
291 --enable-combobox use wxComboBox classes"
292 ac_help="$ac_help
293 --enable-gauge use wxGauge class"
294 ac_help="$ac_help
295 --enable-grid use wxGrid class"
296 ac_help="$ac_help
297 --enable-newgrid use new wxGrid class"
298 ac_help="$ac_help
299 --enable-imaglist use wxImageList class"
300 ac_help="$ac_help
301 --enable-listbox use wxListBox class"
302 ac_help="$ac_help
303 --enable-listctrl use wxListCtrl class"
304 ac_help="$ac_help
305 --enable-notebook use wxNotebook class"
306 ac_help="$ac_help
307 --enable-propsheet use wxPropertySheet class"
308 ac_help="$ac_help
309 --enable-radiobox use wxRadioBox class"
310 ac_help="$ac_help
311 --enable-radiobtn use wxRadioButton class"
312 ac_help="$ac_help
313 --enable-sash use wxSashWindow class"
314 ac_help="$ac_help
315 --enable-scrollbar use wxScrollBar class and scrollable windows"
316 ac_help="$ac_help
317 --enable-slider use wxSlider class"
318 ac_help="$ac_help
319 --enable-spinbtn use wxSpinButton class"
320 ac_help="$ac_help
321 --enable-spinctrl use wxSpinCtrl class"
322 ac_help="$ac_help
323 --enable-splitter use wxSplitterWindow class"
324 ac_help="$ac_help
325 --enable-statbmp use wxStaticBitmap class"
326 ac_help="$ac_help
327 --enable-statbox use wxStaticBox class"
328 ac_help="$ac_help
329 --enable-statline use wxStaticLine class"
330 ac_help="$ac_help
331 --enable-stattext use wxStaticText class"
332 ac_help="$ac_help
333 --enable-statusbar use wxStatusBar class"
334 ac_help="$ac_help
335 --enable-tabdialog use wxTabControl class"
336 ac_help="$ac_help
337 --enable-textctrl use wxTextCtrl class"
338 ac_help="$ac_help
339 --enable-togglebtn use wxToggleButton class"
340 ac_help="$ac_help
341 --enable-toolbar use wxToolBar class"
342 ac_help="$ac_help
343 --enable-tbarnative use native wxToolBar class"
344 ac_help="$ac_help
345 --enable-tbarsmpl use wxToolBarSimple class"
346 ac_help="$ac_help
347 --enable-treectrl use wxTreeCtrl class"
348 ac_help="$ac_help
349 --enable-tipwindow use wxTipWindow class"
350 ac_help="$ac_help
351 --enable-popupwin use wxPopUpWindow class"
352 ac_help="$ac_help
353 --enable-commondlg use all common dialogs"
354 ac_help="$ac_help
355 --enable-choicedlg use wxChoiceDialog"
356 ac_help="$ac_help
357 --enable-coldlg use wxColourDialog"
358 ac_help="$ac_help
359 --enable-filedlg use wxFileDialog"
360 ac_help="$ac_help
361 --enable-finddlg use wxFindReplaceDialog"
362 ac_help="$ac_help
363 --enable-fontdlg use wxFontDialog"
364 ac_help="$ac_help
365 --enable-dirdlg use wxDirDialog"
366 ac_help="$ac_help
367 --enable-msgdlg use wxMessageDialog"
368 ac_help="$ac_help
369 --enable-numberdlg use wxNumberEntryDialog"
370 ac_help="$ac_help
371 --enable-splash use wxSplashScreen"
372 ac_help="$ac_help
373 --enable-textdlg use wxTextDialog"
374 ac_help="$ac_help
375 --enable-tipdlg use startup tips"
376 ac_help="$ac_help
377 --enable-progressdlg use wxProgressDialog"
378 ac_help="$ac_help
379 --enable-wizarddlg use wxWizard"
380 ac_help="$ac_help
381 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
382 ac_help="$ac_help
383 --enable-miniframe use wxMiniFrame class"
384 ac_help="$ac_help
385 --enable-tooltips use wxToolTip class"
386 ac_help="$ac_help
387 --enable-splines use spline drawing code"
388 ac_help="$ac_help
389 --enable-validators use wxValidator and derived classes"
390 ac_help="$ac_help
391 --enable-busyinfo use wxBusyInfo"
392 ac_help="$ac_help
393 --enable-joystick use wxJoystick (Linux only)"
394 ac_help="$ac_help
395 --enable-metafiles use wxMetaFile (Windows only)"
396 ac_help="$ac_help
397 --enable-dragimage use wxDragImage"
398 ac_help="$ac_help
399 --enable-palette use wxPalette class"
400 ac_help="$ac_help
401 --enable-image use wxImage class"
402 ac_help="$ac_help
403 --enable-gif use gif images (GIF file format)"
404 ac_help="$ac_help
405 --enable-pcx use pcx images (PCX file format)"
406 ac_help="$ac_help
407 --enable-iff use iff images (IFF file format)"
408 ac_help="$ac_help
409 --enable-pnm use pnm images (PNM file format)"
410 ac_help="$ac_help
411 --enable-xpm use xpm images (XPM file format)"
412 ac_help="$ac_help
413 --enable-icocur use Windows ICO and CUR formats"
414 ac_help="$ac_help
415 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
416 ac_help="$ac_help
417 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
418 ac_help="$ac_help
419 --disable-gtktest Do not try to compile and run a test GTK program"
420 ac_help="$ac_help
421 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
422 ac_help="$ac_help
423 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
424 ac_help="$ac_help
425 --disable-gtktest Do not try to compile and run a test GTK program"
426 ac_help="$ac_help
427 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
428 ac_help="$ac_help
429 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
430 ac_help="$ac_help
431 --disable-gtktest Do not try to compile and run a test GTK program"
432 ac_help="$ac_help
433 --with-x use the X Window System"
434 ac_help="$ac_help
435 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
436
437 # Initialize some variables set by options.
438 # The variables have the same names as the options, with
439 # dashes changed to underlines.
440 build=NONE
441 cache_file=./config.cache
442 exec_prefix=NONE
443 host=NONE
444 no_create=
445 nonopt=NONE
446 no_recursion=
447 prefix=NONE
448 program_prefix=NONE
449 program_suffix=NONE
450 program_transform_name=s,x,x,
451 silent=
452 site=
453 srcdir=
454 target=NONE
455 verbose=
456 x_includes=NONE
457 x_libraries=NONE
458 bindir='${exec_prefix}/bin'
459 sbindir='${exec_prefix}/sbin'
460 libexecdir='${exec_prefix}/libexec'
461 datadir='${prefix}/share'
462 sysconfdir='${prefix}/etc'
463 sharedstatedir='${prefix}/com'
464 localstatedir='${prefix}/var'
465 libdir='${exec_prefix}/lib'
466 includedir='${prefix}/include'
467 oldincludedir='/usr/include'
468 infodir='${prefix}/info'
469 mandir='${prefix}/man'
470
471 # Initialize some other variables.
472 subdirs=
473 MFLAGS= MAKEFLAGS=
474 SHELL=${CONFIG_SHELL-/bin/sh}
475 # Maximum number of lines to put in a shell here document.
476 ac_max_here_lines=12
477
478 ac_prev=
479 for ac_option
480 do
481
482 # If the previous option needs an argument, assign it.
483 if test -n "$ac_prev"; then
484 eval "$ac_prev=\$ac_option"
485 ac_prev=
486 continue
487 fi
488
489 case "$ac_option" in
490 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
491 *) ac_optarg= ;;
492 esac
493
494 # Accept the important Cygnus configure options, so we can diagnose typos.
495
496 case "$ac_option" in
497
498 -bindir | --bindir | --bindi | --bind | --bin | --bi)
499 ac_prev=bindir ;;
500 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
501 bindir="$ac_optarg" ;;
502
503 -build | --build | --buil | --bui | --bu)
504 ac_prev=build ;;
505 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
506 build="$ac_optarg" ;;
507
508 -cache-file | --cache-file | --cache-fil | --cache-fi \
509 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
510 ac_prev=cache_file ;;
511 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
512 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
513 cache_file="$ac_optarg" ;;
514
515 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
516 ac_prev=datadir ;;
517 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
518 | --da=*)
519 datadir="$ac_optarg" ;;
520
521 -disable-* | --disable-*)
522 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
523 # Reject names that are not valid shell variable names.
524 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
525 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
526 fi
527 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
528 eval "enable_${ac_feature}=no" ;;
529
530 -enable-* | --enable-*)
531 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
532 # Reject names that are not valid shell variable names.
533 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
534 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
535 fi
536 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
537 case "$ac_option" in
538 *=*) ;;
539 *) ac_optarg=yes ;;
540 esac
541 eval "enable_${ac_feature}='$ac_optarg'" ;;
542
543 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
544 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
545 | --exec | --exe | --ex)
546 ac_prev=exec_prefix ;;
547 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
548 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
549 | --exec=* | --exe=* | --ex=*)
550 exec_prefix="$ac_optarg" ;;
551
552 -gas | --gas | --ga | --g)
553 # Obsolete; use --with-gas.
554 with_gas=yes ;;
555
556 -help | --help | --hel | --he)
557 # Omit some internal or obsolete options to make the list less imposing.
558 # This message is too long to be a string in the A/UX 3.1 sh.
559 cat << EOF
560 Usage: configure [options] [host]
561 Options: [defaults in brackets after descriptions]
562 Configuration:
563 --cache-file=FILE cache test results in FILE
564 --help print this message
565 --no-create do not create output files
566 --quiet, --silent do not print \`checking...' messages
567 --version print the version of autoconf that created configure
568 Directory and file names:
569 --prefix=PREFIX install architecture-independent files in PREFIX
570 [$ac_default_prefix]
571 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
572 [same as prefix]
573 --bindir=DIR user executables in DIR [EPREFIX/bin]
574 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
575 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
576 --datadir=DIR read-only architecture-independent data in DIR
577 [PREFIX/share]
578 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
579 --sharedstatedir=DIR modifiable architecture-independent data in DIR
580 [PREFIX/com]
581 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
582 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
583 --includedir=DIR C header files in DIR [PREFIX/include]
584 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
585 --infodir=DIR info documentation in DIR [PREFIX/info]
586 --mandir=DIR man documentation in DIR [PREFIX/man]
587 --srcdir=DIR find the sources in DIR [configure dir or ..]
588 --program-prefix=PREFIX prepend PREFIX to installed program names
589 --program-suffix=SUFFIX append SUFFIX to installed program names
590 --program-transform-name=PROGRAM
591 run sed PROGRAM on installed program names
592 EOF
593 cat << EOF
594 Host type:
595 --build=BUILD configure for building on BUILD [BUILD=HOST]
596 --host=HOST configure for HOST [guessed]
597 --target=TARGET configure for TARGET [TARGET=HOST]
598 Features and packages:
599 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
600 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
601 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
602 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
603 --x-includes=DIR X include files are in DIR
604 --x-libraries=DIR X library files are in DIR
605 EOF
606 if test -n "$ac_help"; then
607 echo "--enable and --with options recognized:$ac_help"
608 fi
609 exit 0 ;;
610
611 -host | --host | --hos | --ho)
612 ac_prev=host ;;
613 -host=* | --host=* | --hos=* | --ho=*)
614 host="$ac_optarg" ;;
615
616 -includedir | --includedir | --includedi | --included | --include \
617 | --includ | --inclu | --incl | --inc)
618 ac_prev=includedir ;;
619 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
620 | --includ=* | --inclu=* | --incl=* | --inc=*)
621 includedir="$ac_optarg" ;;
622
623 -infodir | --infodir | --infodi | --infod | --info | --inf)
624 ac_prev=infodir ;;
625 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
626 infodir="$ac_optarg" ;;
627
628 -libdir | --libdir | --libdi | --libd)
629 ac_prev=libdir ;;
630 -libdir=* | --libdir=* | --libdi=* | --libd=*)
631 libdir="$ac_optarg" ;;
632
633 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
634 | --libexe | --libex | --libe)
635 ac_prev=libexecdir ;;
636 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
637 | --libexe=* | --libex=* | --libe=*)
638 libexecdir="$ac_optarg" ;;
639
640 -localstatedir | --localstatedir | --localstatedi | --localstated \
641 | --localstate | --localstat | --localsta | --localst \
642 | --locals | --local | --loca | --loc | --lo)
643 ac_prev=localstatedir ;;
644 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
645 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
646 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
647 localstatedir="$ac_optarg" ;;
648
649 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
650 ac_prev=mandir ;;
651 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
652 mandir="$ac_optarg" ;;
653
654 -nfp | --nfp | --nf)
655 # Obsolete; use --without-fp.
656 with_fp=no ;;
657
658 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
659 | --no-cr | --no-c)
660 no_create=yes ;;
661
662 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
663 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
664 no_recursion=yes ;;
665
666 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
667 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
668 | --oldin | --oldi | --old | --ol | --o)
669 ac_prev=oldincludedir ;;
670 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
671 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
672 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
673 oldincludedir="$ac_optarg" ;;
674
675 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
676 ac_prev=prefix ;;
677 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
678 prefix="$ac_optarg" ;;
679
680 -program-prefix | --program-prefix | --program-prefi | --program-pref \
681 | --program-pre | --program-pr | --program-p)
682 ac_prev=program_prefix ;;
683 -program-prefix=* | --program-prefix=* | --program-prefi=* \
684 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
685 program_prefix="$ac_optarg" ;;
686
687 -program-suffix | --program-suffix | --program-suffi | --program-suff \
688 | --program-suf | --program-su | --program-s)
689 ac_prev=program_suffix ;;
690 -program-suffix=* | --program-suffix=* | --program-suffi=* \
691 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
692 program_suffix="$ac_optarg" ;;
693
694 -program-transform-name | --program-transform-name \
695 | --program-transform-nam | --program-transform-na \
696 | --program-transform-n | --program-transform- \
697 | --program-transform | --program-transfor \
698 | --program-transfo | --program-transf \
699 | --program-trans | --program-tran \
700 | --progr-tra | --program-tr | --program-t)
701 ac_prev=program_transform_name ;;
702 -program-transform-name=* | --program-transform-name=* \
703 | --program-transform-nam=* | --program-transform-na=* \
704 | --program-transform-n=* | --program-transform-=* \
705 | --program-transform=* | --program-transfor=* \
706 | --program-transfo=* | --program-transf=* \
707 | --program-trans=* | --program-tran=* \
708 | --progr-tra=* | --program-tr=* | --program-t=*)
709 program_transform_name="$ac_optarg" ;;
710
711 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
712 | -silent | --silent | --silen | --sile | --sil)
713 silent=yes ;;
714
715 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
716 ac_prev=sbindir ;;
717 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
718 | --sbi=* | --sb=*)
719 sbindir="$ac_optarg" ;;
720
721 -sharedstatedir | --sharedstatedir | --sharedstatedi \
722 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
723 | --sharedst | --shareds | --shared | --share | --shar \
724 | --sha | --sh)
725 ac_prev=sharedstatedir ;;
726 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
727 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
728 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
729 | --sha=* | --sh=*)
730 sharedstatedir="$ac_optarg" ;;
731
732 -site | --site | --sit)
733 ac_prev=site ;;
734 -site=* | --site=* | --sit=*)
735 site="$ac_optarg" ;;
736
737 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
738 ac_prev=srcdir ;;
739 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
740 srcdir="$ac_optarg" ;;
741
742 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
743 | --syscon | --sysco | --sysc | --sys | --sy)
744 ac_prev=sysconfdir ;;
745 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
746 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
747 sysconfdir="$ac_optarg" ;;
748
749 -target | --target | --targe | --targ | --tar | --ta | --t)
750 ac_prev=target ;;
751 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
752 target="$ac_optarg" ;;
753
754 -v | -verbose | --verbose | --verbos | --verbo | --verb)
755 verbose=yes ;;
756
757 -version | --version | --versio | --versi | --vers)
758 echo "configure generated by autoconf version 2.13"
759 exit 0 ;;
760
761 -with-* | --with-*)
762 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
763 # Reject names that are not valid shell variable names.
764 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
765 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
766 fi
767 ac_package=`echo $ac_package| sed 's/-/_/g'`
768 case "$ac_option" in
769 *=*) ;;
770 *) ac_optarg=yes ;;
771 esac
772 eval "with_${ac_package}='$ac_optarg'" ;;
773
774 -without-* | --without-*)
775 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
776 # Reject names that are not valid shell variable names.
777 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
778 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
779 fi
780 ac_package=`echo $ac_package| sed 's/-/_/g'`
781 eval "with_${ac_package}=no" ;;
782
783 --x)
784 # Obsolete; use --with-x.
785 with_x=yes ;;
786
787 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
788 | --x-incl | --x-inc | --x-in | --x-i)
789 ac_prev=x_includes ;;
790 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
791 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
792 x_includes="$ac_optarg" ;;
793
794 -x-libraries | --x-libraries | --x-librarie | --x-librari \
795 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
796 ac_prev=x_libraries ;;
797 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
798 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
799 x_libraries="$ac_optarg" ;;
800
801 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
802 ;;
803
804 *)
805 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
806 echo "configure: warning: $ac_option: invalid host type" 1>&2
807 fi
808 if test "x$nonopt" != xNONE; then
809 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
810 fi
811 nonopt="$ac_option"
812 ;;
813
814 esac
815 done
816
817 if test -n "$ac_prev"; then
818 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
819 fi
820
821 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
822
823 # File descriptor usage:
824 # 0 standard input
825 # 1 file creation
826 # 2 errors and warnings
827 # 3 some systems may open it to /dev/tty
828 # 4 used on the Kubota Titan
829 # 6 checking for... messages and results
830 # 5 compiler messages saved in config.log
831 if test "$silent" = yes; then
832 exec 6>/dev/null
833 else
834 exec 6>&1
835 fi
836 exec 5>./config.log
837
838 echo "\
839 This file contains any messages produced by compilers while
840 running configure, to aid debugging if configure makes a mistake.
841 " 1>&5
842
843 # Strip out --no-create and --no-recursion so they do not pile up.
844 # Also quote any args containing shell metacharacters.
845 ac_configure_args=
846 for ac_arg
847 do
848 case "$ac_arg" in
849 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
850 | --no-cr | --no-c) ;;
851 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
852 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
853 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
854 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
855 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
856 esac
857 done
858
859 # NLS nuisances.
860 # Only set these to C if already set. These must not be set unconditionally
861 # because not all systems understand e.g. LANG=C (notably SCO).
862 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
863 # Non-C LC_CTYPE values break the ctype check.
864 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
865 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
866 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
867 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
868
869 # confdefs.h avoids OS command line length limits that DEFS can exceed.
870 rm -rf conftest* confdefs.h
871 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
872 echo > confdefs.h
873
874 # A filename unique to this package, relative to the directory that
875 # configure is in, which we can look for to find out if srcdir is correct.
876 ac_unique_file=wx-config.in
877
878 # Find the source files, if location was not specified.
879 if test -z "$srcdir"; then
880 ac_srcdir_defaulted=yes
881 # Try the directory containing this script, then its parent.
882 ac_prog=$0
883 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
884 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
885 srcdir=$ac_confdir
886 if test ! -r $srcdir/$ac_unique_file; then
887 srcdir=..
888 fi
889 else
890 ac_srcdir_defaulted=no
891 fi
892 if test ! -r $srcdir/$ac_unique_file; then
893 if test "$ac_srcdir_defaulted" = yes; then
894 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
895 else
896 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
897 fi
898 fi
899 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
900
901 # Prefer explicitly selected file to automatically selected ones.
902 if test -z "$CONFIG_SITE"; then
903 if test "x$prefix" != xNONE; then
904 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
905 else
906 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
907 fi
908 fi
909 for ac_site_file in $CONFIG_SITE; do
910 if test -r "$ac_site_file"; then
911 echo "loading site script $ac_site_file"
912 . "$ac_site_file"
913 fi
914 done
915
916 if test -r "$cache_file"; then
917 echo "loading cache $cache_file"
918 . $cache_file
919 else
920 echo "creating cache $cache_file"
921 > $cache_file
922 fi
923
924 ac_ext=c
925 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
926 ac_cpp='$CPP $CPPFLAGS'
927 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
928 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
929 cross_compiling=$ac_cv_prog_cc_cross
930
931 ac_exeext=
932 ac_objext=o
933 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
934 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
935 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
936 ac_n= ac_c='
937 ' ac_t=' '
938 else
939 ac_n=-n ac_c= ac_t=
940 fi
941 else
942 ac_n= ac_c='\c' ac_t=
943 fi
944
945
946
947 ac_aux_dir=
948 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
949 if test -f $ac_dir/install-sh; then
950 ac_aux_dir=$ac_dir
951 ac_install_sh="$ac_aux_dir/install-sh -c"
952 break
953 elif test -f $ac_dir/install.sh; then
954 ac_aux_dir=$ac_dir
955 ac_install_sh="$ac_aux_dir/install.sh -c"
956 break
957 fi
958 done
959 if test -z "$ac_aux_dir"; then
960 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
961 fi
962 ac_config_guess=$ac_aux_dir/config.guess
963 ac_config_sub=$ac_aux_dir/config.sub
964 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
965
966
967 # Do some error checking and defaulting for the host and target type.
968 # The inputs are:
969 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
970 #
971 # The rules are:
972 # 1. You are not allowed to specify --host, --target, and nonopt at the
973 # same time.
974 # 2. Host defaults to nonopt.
975 # 3. If nonopt is not specified, then host defaults to the current host,
976 # as determined by config.guess.
977 # 4. Target and build default to nonopt.
978 # 5. If nonopt is not specified, then target and build default to host.
979
980 # The aliases save the names the user supplied, while $host etc.
981 # will get canonicalized.
982 case $host---$target---$nonopt in
983 NONE---*---* | *---NONE---* | *---*---NONE) ;;
984 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
985 esac
986
987
988 # Make sure we can run config.sub.
989 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
990 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
991 fi
992
993 echo $ac_n "checking host system type""... $ac_c" 1>&6
994 echo "configure:995: checking host system type" >&5
995
996 host_alias=$host
997 case "$host_alias" in
998 NONE)
999 case $nonopt in
1000 NONE)
1001 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1002 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1003 fi ;;
1004 *) host_alias=$nonopt ;;
1005 esac ;;
1006 esac
1007
1008 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1009 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1010 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1011 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1012 echo "$ac_t""$host" 1>&6
1013
1014 echo $ac_n "checking target system type""... $ac_c" 1>&6
1015 echo "configure:1016: checking target system type" >&5
1016
1017 target_alias=$target
1018 case "$target_alias" in
1019 NONE)
1020 case $nonopt in
1021 NONE) target_alias=$host_alias ;;
1022 *) target_alias=$nonopt ;;
1023 esac ;;
1024 esac
1025
1026 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1027 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1028 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1029 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1030 echo "$ac_t""$target" 1>&6
1031
1032 echo $ac_n "checking build system type""... $ac_c" 1>&6
1033 echo "configure:1034: checking build system type" >&5
1034
1035 build_alias=$build
1036 case "$build_alias" in
1037 NONE)
1038 case $nonopt in
1039 NONE) build_alias=$host_alias ;;
1040 *) build_alias=$nonopt ;;
1041 esac ;;
1042 esac
1043
1044 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1045 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1046 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1047 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1048 echo "$ac_t""$build" 1>&6
1049
1050 test "$host_alias" != "$target_alias" &&
1051 test "$program_prefix$program_suffix$program_transform_name" = \
1052 NONENONEs,x,x, &&
1053 program_prefix=${target_alias}-
1054
1055
1056
1057 WX_MAJOR_VERSION_NUMBER=2
1058 WX_MINOR_VERSION_NUMBER=3
1059 WX_RELEASE_NUMBER=3
1060
1061 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1062 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1063
1064 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1065
1066 WX_CURRENT=2
1067 WX_REVISION=0
1068 WX_AGE=0
1069
1070
1071
1072 USE_UNIX=1
1073 USE_WIN32=0
1074 USE_DOS=0
1075 USE_BEOS=0
1076 USE_MAC=0
1077
1078 USE_LINUX=
1079 USE_SGI=
1080 USE_HPUX=
1081 USE_SYSV=
1082 USE_SVR4=
1083 USE_AIX=
1084 USE_SUN=
1085 USE_SOLARIS=
1086 USE_SUNOS=
1087 USE_ALPHA=
1088 USE_OSF=
1089 USE_BSD=
1090 USE_DARWIN=
1091 USE_FREEBSD=
1092 USE_OPENBSD=
1093 USE_NETBSD=
1094 USE_VMS=
1095 USE_ULTRIX=
1096 USE_DATA_GENERAL=
1097
1098 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1099
1100 CPP_MT_FLAG=-D_REENTRANT
1101
1102 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1103
1104 DEFAULT_wxUSE_GTK=0
1105 DEFAULT_wxUSE_MAC=0
1106 DEFAULT_wxUSE_MGL=0
1107 DEFAULT_wxUSE_MICROWIN=0
1108 DEFAULT_wxUSE_MOTIF=0
1109 DEFAULT_wxUSE_MSW=0
1110 DEFAULT_wxUSE_PM=0
1111 DEFAULT_wxUSE_WINE=0
1112 DEFAULT_wxUSE_X11=0
1113
1114 DEFAULT_DEFAULT_wxUSE_GTK=0
1115 DEFAULT_DEFAULT_wxUSE_MAC=0
1116 DEFAULT_DEFAULT_wxUSE_MGL=0
1117 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1118 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1119 DEFAULT_DEFAULT_wxUSE_MSW=0
1120 DEFAULT_DEFAULT_wxUSE_PM=0
1121 DEFAULT_DEFAULT_wxUSE_WINE=0
1122 DEFAULT_DEFAULT_wxUSE_X11=0
1123
1124 PROGRAM_EXT=
1125 SO_SUFFIX=so
1126
1127 case "${host}" in
1128 *-hp-hpux* )
1129 USE_HPUX=1
1130 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1131 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1132 SO_SUFFIX=sl
1133 cat >> confdefs.h <<\EOF
1134 #define __HPUX__ 1
1135 EOF
1136
1137 ;;
1138 *-*-linux* )
1139 USE_LINUX=1
1140 cat >> confdefs.h <<\EOF
1141 #define __LINUX__ 1
1142 EOF
1143
1144 TMP=`uname -m`
1145 if test "x$TMP" = "xalpha"; then
1146 USE_ALPHA=1
1147 cat >> confdefs.h <<\EOF
1148 #define __ALPHA__ 1
1149 EOF
1150
1151 fi
1152 DEFAULT_DEFAULT_wxUSE_GTK=1
1153 ;;
1154 *-*-irix5* | *-*-irix6* )
1155 USE_SGI=1
1156 USE_SVR4=1
1157 cat >> confdefs.h <<\EOF
1158 #define __SGI__ 1
1159 EOF
1160
1161 cat >> confdefs.h <<\EOF
1162 #define __SVR4__ 1
1163 EOF
1164
1165 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1166 ;;
1167 *-*-solaris2* )
1168 USE_SUN=1
1169 USE_SOLARIS=1
1170 USE_SVR4=1
1171 cat >> confdefs.h <<\EOF
1172 #define __SUN__ 1
1173 EOF
1174
1175 cat >> confdefs.h <<\EOF
1176 #define __SOLARIS__ 1
1177 EOF
1178
1179 cat >> confdefs.h <<\EOF
1180 #define __SVR4__ 1
1181 EOF
1182
1183 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1184 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1185 ;;
1186 *-*-sunos4* )
1187 USE_SUN=1
1188 USE_SUNOS=1
1189 USE_BSD=1
1190 cat >> confdefs.h <<\EOF
1191 #define __SUN__ 1
1192 EOF
1193
1194 cat >> confdefs.h <<\EOF
1195 #define __SUNOS__ 1
1196 EOF
1197
1198 cat >> confdefs.h <<\EOF
1199 #define __BSD__ 1
1200 EOF
1201
1202 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1203 ;;
1204 *-*-freebsd*)
1205 USE_BSD=1
1206 USE_FREEBSD=1
1207 CPP_MT_FLAG=-D_THREAD_SAFE
1208 cat >> confdefs.h <<\EOF
1209 #define __FREEBSD__ 1
1210 EOF
1211
1212 cat >> confdefs.h <<\EOF
1213 #define __BSD__ 1
1214 EOF
1215
1216 DEFAULT_DEFAULT_wxUSE_GTK=1
1217 ;;
1218 *-*-openbsd*)
1219 USE_BSD=1
1220 USE_OPENBSD=1
1221 cat >> confdefs.h <<\EOF
1222 #define __FREEBSD__ 1
1223 EOF
1224
1225 cat >> confdefs.h <<\EOF
1226 #define __OPENBSD__ 1
1227 EOF
1228
1229 DEFAULT_DEFAULT_wxUSE_GTK=1
1230 ;;
1231 *-*-netbsd*)
1232 USE_BSD=1
1233 USE_NETBSD=1
1234 cat >> confdefs.h <<\EOF
1235 #define __FREEBSD__ 1
1236 EOF
1237
1238 cat >> confdefs.h <<\EOF
1239 #define __NETBSD__ 1
1240 EOF
1241
1242 DEFAULT_DEFAULT_wxUSE_GTK=1
1243 ;;
1244 *-*-osf* )
1245 USE_ALPHA=1
1246 USE_OSF=1
1247 cat >> confdefs.h <<\EOF
1248 #define __ALPHA__ 1
1249 EOF
1250
1251 cat >> confdefs.h <<\EOF
1252 #define __OSF__ 1
1253 EOF
1254
1255 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1256 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1257 ;;
1258 *-*-dgux5* )
1259 USE_ALPHA=1
1260 USE_SVR4=1
1261 cat >> confdefs.h <<\EOF
1262 #define __ALPHA__ 1
1263 EOF
1264
1265 cat >> confdefs.h <<\EOF
1266 #define __SVR4__ 1
1267 EOF
1268
1269 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1270 ;;
1271 *-*-sysv5* )
1272 USE_SYSV=1
1273 USE_SVR4=1
1274 cat >> confdefs.h <<\EOF
1275 #define __SYSV__ 1
1276 EOF
1277
1278 cat >> confdefs.h <<\EOF
1279 #define __SVR4__ 1
1280 EOF
1281
1282 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1283 ;;
1284 *-*-aix* )
1285 USE_AIX=1
1286 USE_SYSV=1
1287 USE_SVR4=1
1288 cat >> confdefs.h <<\EOF
1289 #define __AIX__ 1
1290 EOF
1291
1292 cat >> confdefs.h <<\EOF
1293 #define __SYSV__ 1
1294 EOF
1295
1296 cat >> confdefs.h <<\EOF
1297 #define __SVR4__ 1
1298 EOF
1299
1300 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1301 ;;
1302
1303 *-*-cygwin* | *-*-mingw32* )
1304 USE_UNIX=0
1305 USE_WIN32=1
1306 SO_SUFFIX=dll
1307 cat >> confdefs.h <<\EOF
1308 #define __WIN32__ 1
1309 EOF
1310
1311 cat >> confdefs.h <<\EOF
1312 #define __WIN95__ 1
1313 EOF
1314
1315 cat >> confdefs.h <<\EOF
1316 #define __WINDOWS__ 1
1317 EOF
1318
1319 cat >> confdefs.h <<\EOF
1320 #define __GNUWIN32__ 1
1321 EOF
1322
1323 cat >> confdefs.h <<\EOF
1324 #define STRICT 1
1325 EOF
1326
1327 cat >> confdefs.h <<\EOF
1328 #define WINVER 0x0400
1329 EOF
1330
1331 PROGRAM_EXT=".exe"
1332 RESCOMP=windres
1333 DEFAULT_DEFAULT_wxUSE_MSW=1
1334 ;;
1335
1336 *-pc-msdosdjgpp )
1337 USE_UNIX=0
1338 USE_DOS=1
1339 cat >> confdefs.h <<\EOF
1340 #define __DOS__ 1
1341 EOF
1342
1343 PROGRAM_EXT=".exe"
1344 DEFAULT_DEFAULT_wxUSE_MGL=1
1345 DEFAULT_DEFAULT_wxUSE_SHARED=0
1346 ;;
1347
1348 *-pc-os2_emx | *-pc-os2-emx )
1349 cat >> confdefs.h <<\EOF
1350 #define __EMX__ 1
1351 EOF
1352
1353 PROGRAM_EXT=".exe"
1354 DEFAULT_DEFAULT_wxUSE_PM=1
1355 ;;
1356
1357 powerpc-*-darwin* )
1358 USE_BSD=1
1359 USE_DARWIN=1
1360 CPP_MT_FLAG=
1361 SO_SUFFIX=dylib
1362 cat >> confdefs.h <<\EOF
1363 #define __BSD__ 1
1364 EOF
1365
1366 cat >> confdefs.h <<\EOF
1367 #define __DARWIN__ 1
1368 EOF
1369
1370 cat >> confdefs.h <<\EOF
1371 #define __POWERPC__ 1
1372 EOF
1373
1374 DEFAULT_DEFAULT_wxUSE_MAC=1
1375 ;;
1376
1377 *-*-beos* )
1378 USE_BEOS=1
1379 cat >> confdefs.h <<\EOF
1380 #define __BEOS__ 1
1381 EOF
1382
1383 ;;
1384
1385 *)
1386 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1387 esac
1388
1389 if test "$USE_UNIX" = 1 ; then
1390 wxUSE_UNIX=yes
1391 cat >> confdefs.h <<\EOF
1392 #define __UNIX__ 1
1393 EOF
1394
1395 fi
1396
1397 if test "$USE_LINUX" = 1; then
1398 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1399 echo "configure:1400: checking for glibc 2.1 or later" >&5
1400 if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1402 else
1403
1404 cat > conftest.$ac_ext <<EOF
1405 #line 1406 "configure"
1406 #include "confdefs.h"
1407 #include <features.h>
1408 int main() {
1409
1410 #if !__GLIBC_PREREQ(2, 1)
1411 #error not glibc2.1
1412 #endif
1413
1414 ; return 0; }
1415 EOF
1416 if { (eval echo configure:1417: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1417 rm -rf conftest*
1418
1419 wx_lib_glibc21=yes
1420
1421 else
1422 echo "configure: failed program was:" >&5
1423 cat conftest.$ac_ext >&5
1424 rm -rf conftest*
1425
1426 wx_lib_glibc21=no
1427
1428
1429 fi
1430 rm -f conftest*
1431
1432 fi
1433
1434 echo "$ac_t""$wx_lib_glibc21" 1>&6
1435 if test "$wx_lib_glibc21" = "yes"; then
1436 cat >> confdefs.h <<\EOF
1437 #define wxHAVE_GLIBC2 1
1438 EOF
1439
1440 fi
1441 fi
1442
1443
1444
1445
1446 wx_arg_cache_file="configarg.cache"
1447 echo "loading argument cache $wx_arg_cache_file"
1448 rm -f ${wx_arg_cache_file}.tmp
1449 touch ${wx_arg_cache_file}.tmp
1450 touch ${wx_arg_cache_file}
1451
1452
1453 DEBUG_CONFIGURE=0
1454 if test $DEBUG_CONFIGURE = 1; then
1455 DEFAULT_wxUSE_UNIVERSAL=no
1456
1457 DEFAULT_wxUSE_THREADS=yes
1458
1459 DEFAULT_wxUSE_SHARED=yes
1460 DEFAULT_wxUSE_SONAME=no
1461 DEFAULT_wxUSE_OPTIMISE=no
1462 DEFAULT_wxUSE_PROFILE=no
1463 DEFAULT_wxUSE_NO_DEPS=no
1464 DEFAULT_wxUSE_NO_RTTI=yes
1465 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1466 DEFAULT_wxUSE_PERMISSIVE=no
1467 DEFAULT_wxUSE_DEBUG_FLAG=yes
1468 DEFAULT_wxUSE_DEBUG_INFO=yes
1469 DEFAULT_wxUSE_DEBUG_GDB=yes
1470 DEFAULT_wxUSE_MEM_TRACING=no
1471 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1472 DEFAULT_wxUSE_DMALLOC=no
1473 DEFAULT_wxUSE_PRECOMP=no
1474 DEFAULT_wxUSE_APPLE_IEEE=no
1475
1476 DEFAULT_wxUSE_LOG=yes
1477 DEFAULT_wxUSE_LOGWINDOW=no
1478 DEFAULT_wxUSE_LOGGUI=no
1479 DEFAULT_wxUSE_LOGDIALOG=no
1480
1481 DEFAULT_wxUSE_GUI=yes
1482 DEFAULT_wxUSE_CONTROLS=no
1483
1484 DEFAULT_wxUSE_REGEX=no
1485 DEFAULT_wxUSE_ZLIB=no
1486 DEFAULT_wxUSE_LIBPNG=no
1487 DEFAULT_wxUSE_LIBJPEG=no
1488 DEFAULT_wxUSE_LIBTIFF=no
1489 DEFAULT_wxUSE_ODBC=no
1490 DEFAULT_wxUSE_OPENGL=no
1491
1492 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1493 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1494 DEFAULT_wxUSE_STD_IOSTREAM=no
1495 DEFAULT_wxUSE_CMDLINE_PARSER=no
1496 DEFAULT_wxUSE_DATETIME=no
1497 DEFAULT_wxUSE_TIMEDATE=no
1498 DEFAULT_wxUSE_TIMER=no
1499 DEFAULT_wxUSE_STOPWATCH=no
1500 DEFAULT_wxUSE_FILE=no
1501 DEFAULT_wxUSE_FFILE=no
1502 DEFAULT_wxUSE_TEXTBUFFER=no
1503 DEFAULT_wxUSE_TEXTFILE=no
1504 DEFAULT_wxUSE_WAVE=no
1505 DEFAULT_wxUSE_INTL=no
1506 DEFAULT_wxUSE_CONFIG=no
1507 DEFAULT_wxUSE_FONTMAP=no
1508 DEFAULT_wxUSE_STREAMS=no
1509 DEFAULT_wxUSE_SOCKETS=no
1510 DEFAULT_wxUSE_DIALUP_MANAGER=no
1511 DEFAULT_wxUSE_JOYSTICK=no
1512 DEFAULT_wxUSE_DYNLIB_CLASS=no
1513 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1514 DEFAULT_wxUSE_LONGLONG=no
1515 DEFAULT_wxUSE_GEOMETRY=no
1516
1517 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1518 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1519 DEFAULT_wxUSE_POSTSCRIPT=no
1520
1521 DEFAULT_wxUSE_X_RESOURCES=no
1522 DEFAULT_wxUSE_CLIPBOARD=no
1523 DEFAULT_wxUSE_TOOLTIPS=no
1524 DEFAULT_wxUSE_DRAG_AND_DROP=no
1525 DEFAULT_wxUSE_DRAGIMAGE=no
1526 DEFAULT_wxUSE_SPLINES=no
1527
1528 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1529 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1530 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1531
1532 DEFAULT_wxUSE_PROLOGIO=no
1533 DEFAULT_wxUSE_RESOURCES=no
1534 DEFAULT_wxUSE_CONSTRAINTS=no
1535 DEFAULT_wxUSE_IPC=no
1536 DEFAULT_wxUSE_HELP=no
1537 DEFAULT_wxUSE_MS_HTML_HELP=no
1538 DEFAULT_wxUSE_WXHTML_HELP=no
1539 DEFAULT_wxUSE_TREELAYOUT=no
1540 DEFAULT_wxUSE_METAFILE=no
1541 DEFAULT_wxUSE_MIMETYPE=no
1542 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1543 DEFAULT_wxUSE_PROTOCOL=no
1544 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1545 DEFAULT_wxUSE_PROTOCOL_FTP=no
1546 DEFAULT_wxUSE_PROTOCOL_FILE=no
1547 DEFAULT_wxUSE_URL=no
1548
1549 DEFAULT_wxUSE_COMMONDLGS=no
1550 DEFAULT_wxUSE_CHOICEDLG=no
1551 DEFAULT_wxUSE_COLOURDLG=no
1552 DEFAULT_wxUSE_DIRDLG=no
1553 DEFAULT_wxUSE_FILEDLG=no
1554 DEFAULT_wxUSE_FINDREPLDLG=no
1555 DEFAULT_wxUSE_FONTDLG=no
1556 DEFAULT_wxUSE_MSGDLG=no
1557 DEFAULT_wxUSE_NUMBERDLG=no
1558 DEFAULT_wxUSE_TEXTDLG=no
1559 DEFAULT_wxUSE_SPLASH=no
1560 DEFAULT_wxUSE_STARTUP_TIPS=no
1561 DEFAULT_wxUSE_PROGRESSDLG=no
1562 DEFAULT_wxUSE_WIZARDDLG=no
1563
1564 DEFAULT_wxUSE_MENUS=no
1565 DEFAULT_wxUSE_MINIFRAME=no
1566 DEFAULT_wxUSE_HTML=no
1567 DEFAULT_wxUSE_FILESYSTEM=no
1568 DEFAULT_wxUSE_FS_INET=no
1569 DEFAULT_wxUSE_FS_ZIP=no
1570 DEFAULT_wxUSE_BUSYINFO=no
1571 DEFAULT_wxUSE_ZIPSTREAM=no
1572 DEFAULT_wxUSE_VALIDATORS=no
1573
1574 DEFAULT_wxUSE_ACCEL=no
1575 DEFAULT_wxUSE_BUTTON=no
1576 DEFAULT_wxUSE_BMPBUTTON=no
1577 DEFAULT_wxUSE_CALCTRL=no
1578 DEFAULT_wxUSE_CARET=no
1579 DEFAULT_wxUSE_CHECKBOX=no
1580 DEFAULT_wxUSE_CHECKLST=no
1581 DEFAULT_wxUSE_CHOICE=no
1582 DEFAULT_wxUSE_COMBOBOX=no
1583 DEFAULT_wxUSE_GAUGE=no
1584 DEFAULT_wxUSE_GRID=no
1585 DEFAULT_wxUSE_NEW_GRID=no
1586 DEFAULT_wxUSE_IMAGLIST=no
1587 DEFAULT_wxUSE_LISTBOX=no
1588 DEFAULT_wxUSE_LISTCTRL=no
1589 DEFAULT_wxUSE_NOTEBOOK=no
1590 DEFAULT_wxUSE_PROPSHEET=no
1591 DEFAULT_wxUSE_RADIOBOX=no
1592 DEFAULT_wxUSE_RADIOBTN=no
1593 DEFAULT_wxUSE_SASH=no
1594 DEFAULT_wxUSE_SCROLLBAR=no
1595 DEFAULT_wxUSE_SLIDER=no
1596 DEFAULT_wxUSE_SPINBTN=no
1597 DEFAULT_wxUSE_SPINCTRL=no
1598 DEFAULT_wxUSE_SPLITTER=no
1599 DEFAULT_wxUSE_STATBMP=no
1600 DEFAULT_wxUSE_STATBOX=no
1601 DEFAULT_wxUSE_STATLINE=no
1602 DEFAULT_wxUSE_STATTEXT=no
1603 DEFAULT_wxUSE_STATUSBAR=yes
1604 DEFAULT_wxUSE_TABDIALOG=no
1605 DEFAULT_wxUSE_TEXTCTRL=no
1606 DEFAULT_wxUSE_TOGGLEBTN=no
1607 DEFAULT_wxUSE_TOOLBAR=no
1608 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1609 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1610 DEFAULT_wxUSE_TREECTRL=no
1611 DEFAULT_wxUSE_POPUPWIN=no
1612 DEFAULT_wxUSE_TIPWINDOW=no
1613
1614 DEFAULT_wxUSE_UNICODE=no
1615 DEFAULT_wxUSE_UNICODE_MSLU=no
1616 DEFAULT_wxUSE_WCSRTOMBS=no
1617
1618 DEFAULT_wxUSE_PALETTE=no
1619 DEFAULT_wxUSE_IMAGE=no
1620 DEFAULT_wxUSE_GIF=no
1621 DEFAULT_wxUSE_PCX=no
1622 DEFAULT_wxUSE_PNM=no
1623 DEFAULT_wxUSE_IFF=no
1624 DEFAULT_wxUSE_XPM=no
1625 DEFAULT_wxUSE_ICO_CUR=no
1626 else
1627 DEFAULT_wxUSE_UNIVERSAL=no
1628
1629 DEFAULT_wxUSE_THREADS=yes
1630
1631 DEFAULT_wxUSE_SHARED=yes
1632 DEFAULT_wxUSE_SONAME=no
1633 DEFAULT_wxUSE_OPTIMISE=yes
1634 DEFAULT_wxUSE_PROFILE=no
1635 DEFAULT_wxUSE_NO_DEPS=no
1636 DEFAULT_wxUSE_NO_RTTI=yes
1637 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1638 DEFAULT_wxUSE_PERMISSIVE=no
1639 DEFAULT_wxUSE_DEBUG_FLAG=no
1640 DEFAULT_wxUSE_DEBUG_INFO=no
1641 DEFAULT_wxUSE_DEBUG_GDB=no
1642 DEFAULT_wxUSE_MEM_TRACING=no
1643 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1644 DEFAULT_wxUSE_DMALLOC=no
1645 DEFAULT_wxUSE_PRECOMP=no
1646 DEFAULT_wxUSE_APPLE_IEEE=yes
1647
1648 DEFAULT_wxUSE_LOG=yes
1649 DEFAULT_wxUSE_LOGWINDOW=yes
1650 DEFAULT_wxUSE_LOGGUI=yes
1651 DEFAULT_wxUSE_LOGDIALOG=yes
1652
1653 DEFAULT_wxUSE_GUI=yes
1654
1655 DEFAULT_wxUSE_REGEX=yes
1656 DEFAULT_wxUSE_ZLIB=yes
1657 DEFAULT_wxUSE_LIBPNG=yes
1658 DEFAULT_wxUSE_LIBJPEG=yes
1659 DEFAULT_wxUSE_LIBTIFF=yes
1660 DEFAULT_wxUSE_ODBC=no
1661 DEFAULT_wxUSE_OPENGL=no
1662
1663 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1664 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1665 DEFAULT_wxUSE_STD_IOSTREAM=no
1666 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1667 DEFAULT_wxUSE_DATETIME=yes
1668 DEFAULT_wxUSE_TIMEDATE=no
1669 DEFAULT_wxUSE_TIMER=yes
1670 DEFAULT_wxUSE_STOPWATCH=yes
1671 DEFAULT_wxUSE_FILE=yes
1672 DEFAULT_wxUSE_FFILE=yes
1673 DEFAULT_wxUSE_TEXTBUFFER=yes
1674 DEFAULT_wxUSE_TEXTFILE=yes
1675 DEFAULT_wxUSE_WAVE=no
1676 DEFAULT_wxUSE_INTL=yes
1677 DEFAULT_wxUSE_CONFIG=yes
1678 DEFAULT_wxUSE_FONTMAP=yes
1679 DEFAULT_wxUSE_STREAMS=yes
1680 DEFAULT_wxUSE_SOCKETS=yes
1681 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1682 DEFAULT_wxUSE_JOYSTICK=yes
1683 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1684 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1685 DEFAULT_wxUSE_LONGLONG=yes
1686 DEFAULT_wxUSE_GEOMETRY=yes
1687
1688 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1689 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1690 DEFAULT_wxUSE_POSTSCRIPT=yes
1691
1692 DEFAULT_wxUSE_X_RESOURCES=no
1693 DEFAULT_wxUSE_CLIPBOARD=yes
1694 DEFAULT_wxUSE_TOOLTIPS=yes
1695 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1696 DEFAULT_wxUSE_DRAGIMAGE=yes
1697 DEFAULT_wxUSE_SPLINES=yes
1698
1699 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1700 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1701 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1702
1703 DEFAULT_wxUSE_PROLOGIO=yes
1704 DEFAULT_wxUSE_RESOURCES=yes
1705 DEFAULT_wxUSE_CONSTRAINTS=yes
1706 DEFAULT_wxUSE_IPC=yes
1707 DEFAULT_wxUSE_HELP=yes
1708 DEFAULT_wxUSE_MS_HTML_HELP=yes
1709 DEFAULT_wxUSE_WXHTML_HELP=yes
1710 DEFAULT_wxUSE_TREELAYOUT=yes
1711 DEFAULT_wxUSE_METAFILE=yes
1712 DEFAULT_wxUSE_MIMETYPE=yes
1713 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1714 DEFAULT_wxUSE_PROTOCOL=yes
1715 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1716 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1717 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1718 DEFAULT_wxUSE_URL=yes
1719
1720 DEFAULT_wxUSE_COMMONDLGS=yes
1721 DEFAULT_wxUSE_CHOICEDLG=yes
1722 DEFAULT_wxUSE_COLOURDLG=yes
1723 DEFAULT_wxUSE_DIRDLG=yes
1724 DEFAULT_wxUSE_FILEDLG=yes
1725 DEFAULT_wxUSE_FINDREPLDLG=yes
1726 DEFAULT_wxUSE_FONTDLG=yes
1727 DEFAULT_wxUSE_MSGDLG=yes
1728 DEFAULT_wxUSE_NUMBERDLG=yes
1729 DEFAULT_wxUSE_TEXTDLG=yes
1730 DEFAULT_wxUSE_SPLASH=yes
1731 DEFAULT_wxUSE_STARTUP_TIPS=yes
1732 DEFAULT_wxUSE_PROGRESSDLG=yes
1733 DEFAULT_wxUSE_WIZARDDLG=yes
1734
1735 DEFAULT_wxUSE_MENUS=yes
1736 DEFAULT_wxUSE_MINIFRAME=yes
1737 DEFAULT_wxUSE_HTML=yes
1738 DEFAULT_wxUSE_FILESYSTEM=yes
1739 DEFAULT_wxUSE_FS_INET=yes
1740 DEFAULT_wxUSE_FS_ZIP=yes
1741 DEFAULT_wxUSE_BUSYINFO=yes
1742 DEFAULT_wxUSE_ZIPSTREAM=yes
1743 DEFAULT_wxUSE_VALIDATORS=yes
1744
1745 DEFAULT_wxUSE_ACCEL=yes
1746 DEFAULT_wxUSE_BUTTON=yes
1747 DEFAULT_wxUSE_BMPBUTTON=yes
1748 DEFAULT_wxUSE_CALCTRL=yes
1749 DEFAULT_wxUSE_CARET=yes
1750 DEFAULT_wxUSE_CHECKBOX=yes
1751 DEFAULT_wxUSE_CHECKLST=yes
1752 DEFAULT_wxUSE_CHOICE=yes
1753 DEFAULT_wxUSE_COMBOBOX=yes
1754 DEFAULT_wxUSE_GAUGE=yes
1755 DEFAULT_wxUSE_GRID=yes
1756 DEFAULT_wxUSE_NEW_GRID=yes
1757 DEFAULT_wxUSE_IMAGLIST=yes
1758 DEFAULT_wxUSE_LISTBOX=yes
1759 DEFAULT_wxUSE_LISTCTRL=yes
1760 DEFAULT_wxUSE_NOTEBOOK=yes
1761 DEFAULT_wxUSE_PROPSHEET=yes
1762 DEFAULT_wxUSE_RADIOBOX=yes
1763 DEFAULT_wxUSE_RADIOBTN=yes
1764 DEFAULT_wxUSE_SASH=yes
1765 DEFAULT_wxUSE_SCROLLBAR=yes
1766 DEFAULT_wxUSE_SLIDER=yes
1767 DEFAULT_wxUSE_SPINBTN=yes
1768 DEFAULT_wxUSE_SPINCTRL=yes
1769 DEFAULT_wxUSE_SPLITTER=yes
1770 DEFAULT_wxUSE_STATBMP=yes
1771 DEFAULT_wxUSE_STATBOX=yes
1772 DEFAULT_wxUSE_STATLINE=yes
1773 DEFAULT_wxUSE_STATTEXT=yes
1774 DEFAULT_wxUSE_STATUSBAR=yes
1775 DEFAULT_wxUSE_TABDIALOG=no
1776 DEFAULT_wxUSE_TEXTCTRL=yes
1777 DEFAULT_wxUSE_TOGGLEBTN=yes
1778 DEFAULT_wxUSE_TOOLBAR=yes
1779 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1780 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1781 DEFAULT_wxUSE_TREECTRL=yes
1782 DEFAULT_wxUSE_POPUPWIN=yes
1783 DEFAULT_wxUSE_TIPWINDOW=yes
1784
1785 DEFAULT_wxUSE_UNICODE=no
1786 DEFAULT_wxUSE_UNICODE_MSLU=yes
1787 DEFAULT_wxUSE_WCSRTOMBS=no
1788
1789 DEFAULT_wxUSE_PALETTE=yes
1790 DEFAULT_wxUSE_IMAGE=yes
1791 DEFAULT_wxUSE_GIF=yes
1792 DEFAULT_wxUSE_PCX=yes
1793 DEFAULT_wxUSE_IFF=no
1794 DEFAULT_wxUSE_PNM=yes
1795 DEFAULT_wxUSE_XPM=yes
1796 DEFAULT_wxUSE_ICO_CUR=yes
1797 fi
1798
1799
1800
1801 for toolkit in `echo $ALL_TOOLKITS`; do
1802 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1803 if test "x$LINE" != x ; then
1804 has_toolkit_in_cache=1
1805 eval "DEFAULT_$LINE"
1806 eval "CACHE_$toolkit=1"
1807 fi
1808 done
1809
1810
1811
1812 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1813 echo "configure:1814: checking for --enable-gui" >&5
1814 no_cache=0
1815 # Check whether --enable-gui or --disable-gui was given.
1816 if test "${enable_gui+set}" = set; then
1817 enableval="$enable_gui"
1818
1819 if test "$enableval" = yes; then
1820 ac_cv_use_gui='wxUSE_GUI=yes'
1821 else
1822 ac_cv_use_gui='wxUSE_GUI=no'
1823 fi
1824
1825 else
1826
1827 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1828 if test "x$LINE" != x ; then
1829 eval "DEFAULT_$LINE"
1830 else
1831 no_cache=1
1832 fi
1833
1834 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1835
1836 fi
1837
1838
1839 eval "$ac_cv_use_gui"
1840 if test "$no_cache" != 1; then
1841 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1842 fi
1843
1844 if test "$wxUSE_GUI" = yes; then
1845 echo "$ac_t""yes" 1>&6
1846 else
1847 echo "$ac_t""no" 1>&6
1848 fi
1849
1850
1851 if test "$wxUSE_GUI" = "yes"; then
1852
1853
1854 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1855 echo "configure:1856: checking for --enable-universal" >&5
1856 no_cache=0
1857 # Check whether --enable-universal or --disable-universal was given.
1858 if test "${enable_universal+set}" = set; then
1859 enableval="$enable_universal"
1860
1861 if test "$enableval" = yes; then
1862 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1863 else
1864 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1865 fi
1866
1867 else
1868
1869 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1870 if test "x$LINE" != x ; then
1871 eval "DEFAULT_$LINE"
1872 else
1873 no_cache=1
1874 fi
1875
1876 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1877
1878 fi
1879
1880
1881 eval "$ac_cv_use_universal"
1882 if test "$no_cache" != 1; then
1883 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1884 fi
1885
1886 if test "$wxUSE_UNIVERSAL" = yes; then
1887 echo "$ac_t""yes" 1>&6
1888 else
1889 echo "$ac_t""no" 1>&6
1890 fi
1891
1892 # Check whether --with-gtk or --without-gtk was given.
1893 if test "${with_gtk+set}" = set; then
1894 withval="$with_gtk"
1895 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1896 fi
1897
1898 # Check whether --with-motif or --without-motif was given.
1899 if test "${with_motif+set}" = set; then
1900 withval="$with_motif"
1901 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1902 fi
1903
1904 # Check whether --with-mac or --without-mac was given.
1905 if test "${with_mac+set}" = set; then
1906 withval="$with_mac"
1907 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1908 fi
1909
1910 # Check whether --with-wine or --without-wine was given.
1911 if test "${with_wine+set}" = set; then
1912 withval="$with_wine"
1913 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1914 fi
1915
1916 # Check whether --with-msw or --without-msw was given.
1917 if test "${with_msw+set}" = set; then
1918 withval="$with_msw"
1919 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1920 fi
1921
1922 # Check whether --with-pm or --without-pm was given.
1923 if test "${with_pm+set}" = set; then
1924 withval="$with_pm"
1925 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1926 fi
1927
1928 # Check whether --with-mgl or --without-mgl was given.
1929 if test "${with_mgl+set}" = set; then
1930 withval="$with_mgl"
1931 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1932 fi
1933
1934 # Check whether --with-microwin or --without-microwin was given.
1935 if test "${with_microwin+set}" = set; then
1936 withval="$with_microwin"
1937 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1938 fi
1939
1940 # Check whether --with-x11 or --without-x11 was given.
1941 if test "${with_x11+set}" = set; then
1942 withval="$with_x11"
1943 wxUSE_X11="$withval" CACHE_X11=1 TOOLKIT_GIVEN=1
1944 fi
1945
1946
1947 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1948 if test "${enable_gtk2+set}" = set; then
1949 enableval="$enable_gtk2"
1950 wxUSE_GTK2=1
1951 else
1952 wxUSE_GTK2=0
1953 fi
1954
1955
1956
1957 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1958 echo "configure:1959: checking for --with-libpng" >&5
1959 no_cache=0
1960 # Check whether --with-libpng or --without-libpng was given.
1961 if test "${with_libpng+set}" = set; then
1962 withval="$with_libpng"
1963
1964 if test "$withval" = yes; then
1965 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1966 elif test "$withval" = no; then
1967 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1968 elif test "$withval" = sys; then
1969 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1970 elif test "$withval" = builtin; then
1971 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1972 else
1973 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1974 fi
1975
1976 else
1977
1978 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1979 if test "x$LINE" != x ; then
1980 eval "DEFAULT_$LINE"
1981 else
1982 no_cache=1
1983 fi
1984
1985 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1986
1987 fi
1988
1989
1990 eval "$ac_cv_use_libpng"
1991 if test "$no_cache" != 1; then
1992 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1993 fi
1994
1995 if test "$wxUSE_LIBPNG" = yes; then
1996 echo "$ac_t""yes" 1>&6
1997 elif test "$wxUSE_LIBPNG" = no; then
1998 echo "$ac_t""no" 1>&6
1999 elif test "$wxUSE_LIBPNG" = sys; then
2000 echo "$ac_t""system version" 1>&6
2001 elif test "$wxUSE_LIBPNG" = builtin; then
2002 echo "$ac_t""builtin version" 1>&6
2003 else
2004 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2005 fi
2006
2007
2008 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
2009 echo "configure:2010: checking for --with-libjpeg" >&5
2010 no_cache=0
2011 # Check whether --with-libjpeg or --without-libjpeg was given.
2012 if test "${with_libjpeg+set}" = set; then
2013 withval="$with_libjpeg"
2014
2015 if test "$withval" = yes; then
2016 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
2017 elif test "$withval" = no; then
2018 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
2019 elif test "$withval" = sys; then
2020 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2021 elif test "$withval" = builtin; then
2022 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2023 else
2024 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2025 fi
2026
2027 else
2028
2029 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2030 if test "x$LINE" != x ; then
2031 eval "DEFAULT_$LINE"
2032 else
2033 no_cache=1
2034 fi
2035
2036 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2037
2038 fi
2039
2040
2041 eval "$ac_cv_use_libjpeg"
2042 if test "$no_cache" != 1; then
2043 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2044 fi
2045
2046 if test "$wxUSE_LIBJPEG" = yes; then
2047 echo "$ac_t""yes" 1>&6
2048 elif test "$wxUSE_LIBJPEG" = no; then
2049 echo "$ac_t""no" 1>&6
2050 elif test "$wxUSE_LIBJPEG" = sys; then
2051 echo "$ac_t""system version" 1>&6
2052 elif test "$wxUSE_LIBJPEG" = builtin; then
2053 echo "$ac_t""builtin version" 1>&6
2054 else
2055 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2056 fi
2057
2058
2059 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2060 echo "configure:2061: checking for --with-libtiff" >&5
2061 no_cache=0
2062 # Check whether --with-libtiff or --without-libtiff was given.
2063 if test "${with_libtiff+set}" = set; then
2064 withval="$with_libtiff"
2065
2066 if test "$withval" = yes; then
2067 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2068 elif test "$withval" = no; then
2069 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2070 elif test "$withval" = sys; then
2071 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2072 elif test "$withval" = builtin; then
2073 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2074 else
2075 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2076 fi
2077
2078 else
2079
2080 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2081 if test "x$LINE" != x ; then
2082 eval "DEFAULT_$LINE"
2083 else
2084 no_cache=1
2085 fi
2086
2087 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2088
2089 fi
2090
2091
2092 eval "$ac_cv_use_libtiff"
2093 if test "$no_cache" != 1; then
2094 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2095 fi
2096
2097 if test "$wxUSE_LIBTIFF" = yes; then
2098 echo "$ac_t""yes" 1>&6
2099 elif test "$wxUSE_LIBTIFF" = no; then
2100 echo "$ac_t""no" 1>&6
2101 elif test "$wxUSE_LIBTIFF" = sys; then
2102 echo "$ac_t""system version" 1>&6
2103 elif test "$wxUSE_LIBTIFF" = builtin; then
2104 echo "$ac_t""builtin version" 1>&6
2105 else
2106 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2107 fi
2108
2109
2110 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2111 echo "configure:2112: checking for --with-opengl" >&5
2112 no_cache=0
2113 # Check whether --with-opengl or --without-opengl was given.
2114 if test "${with_opengl+set}" = set; then
2115 withval="$with_opengl"
2116
2117 if test "$withval" = yes; then
2118 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2119 else
2120 ac_cv_use_opengl='wxUSE_OPENGL=no'
2121 fi
2122
2123 else
2124
2125 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2126 if test "x$LINE" != x ; then
2127 eval "DEFAULT_$LINE"
2128 else
2129 no_cache=1
2130 fi
2131
2132 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2133
2134 fi
2135
2136
2137 eval "$ac_cv_use_opengl"
2138 if test "$no_cache" != 1; then
2139 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2140 fi
2141
2142 if test "$wxUSE_OPENGL" = yes; then
2143 echo "$ac_t""yes" 1>&6
2144 else
2145 echo "$ac_t""no" 1>&6
2146 fi
2147
2148
2149 fi
2150
2151
2152 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2153 echo "configure:2154: checking for --with-dmalloc" >&5
2154 no_cache=0
2155 # Check whether --with-dmalloc or --without-dmalloc was given.
2156 if test "${with_dmalloc+set}" = set; then
2157 withval="$with_dmalloc"
2158
2159 if test "$withval" = yes; then
2160 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2161 else
2162 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2163 fi
2164
2165 else
2166
2167 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2168 if test "x$LINE" != x ; then
2169 eval "DEFAULT_$LINE"
2170 else
2171 no_cache=1
2172 fi
2173
2174 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2175
2176 fi
2177
2178
2179 eval "$ac_cv_use_dmalloc"
2180 if test "$no_cache" != 1; then
2181 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2182 fi
2183
2184 if test "$wxUSE_DMALLOC" = yes; then
2185 echo "$ac_t""yes" 1>&6
2186 else
2187 echo "$ac_t""no" 1>&6
2188 fi
2189
2190
2191 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2192 echo "configure:2193: checking for --with-regex" >&5
2193 no_cache=0
2194 # Check whether --with-regex or --without-regex was given.
2195 if test "${with_regex+set}" = set; then
2196 withval="$with_regex"
2197
2198 if test "$withval" = yes; then
2199 ac_cv_use_regex='wxUSE_REGEX=yes'
2200 elif test "$withval" = no; then
2201 ac_cv_use_regex='wxUSE_REGEX=no'
2202 elif test "$withval" = sys; then
2203 ac_cv_use_regex='wxUSE_REGEX=sys'
2204 elif test "$withval" = builtin; then
2205 ac_cv_use_regex='wxUSE_REGEX=builtin'
2206 else
2207 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2208 fi
2209
2210 else
2211
2212 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2213 if test "x$LINE" != x ; then
2214 eval "DEFAULT_$LINE"
2215 else
2216 no_cache=1
2217 fi
2218
2219 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2220
2221 fi
2222
2223
2224 eval "$ac_cv_use_regex"
2225 if test "$no_cache" != 1; then
2226 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2227 fi
2228
2229 if test "$wxUSE_REGEX" = yes; then
2230 echo "$ac_t""yes" 1>&6
2231 elif test "$wxUSE_REGEX" = no; then
2232 echo "$ac_t""no" 1>&6
2233 elif test "$wxUSE_REGEX" = sys; then
2234 echo "$ac_t""system version" 1>&6
2235 elif test "$wxUSE_REGEX" = builtin; then
2236 echo "$ac_t""builtin version" 1>&6
2237 else
2238 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2239 fi
2240
2241
2242 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2243 echo "configure:2244: checking for --with-zlib" >&5
2244 no_cache=0
2245 # Check whether --with-zlib or --without-zlib was given.
2246 if test "${with_zlib+set}" = set; then
2247 withval="$with_zlib"
2248
2249 if test "$withval" = yes; then
2250 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2251 elif test "$withval" = no; then
2252 ac_cv_use_zlib='wxUSE_ZLIB=no'
2253 elif test "$withval" = sys; then
2254 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2255 elif test "$withval" = builtin; then
2256 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2257 else
2258 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2259 fi
2260
2261 else
2262
2263 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2264 if test "x$LINE" != x ; then
2265 eval "DEFAULT_$LINE"
2266 else
2267 no_cache=1
2268 fi
2269
2270 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2271
2272 fi
2273
2274
2275 eval "$ac_cv_use_zlib"
2276 if test "$no_cache" != 1; then
2277 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2278 fi
2279
2280 if test "$wxUSE_ZLIB" = yes; then
2281 echo "$ac_t""yes" 1>&6
2282 elif test "$wxUSE_ZLIB" = no; then
2283 echo "$ac_t""no" 1>&6
2284 elif test "$wxUSE_ZLIB" = sys; then
2285 echo "$ac_t""system version" 1>&6
2286 elif test "$wxUSE_ZLIB" = builtin; then
2287 echo "$ac_t""builtin version" 1>&6
2288 else
2289 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2290 fi
2291
2292
2293 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2294 echo "configure:2295: checking for --with-odbc" >&5
2295 no_cache=0
2296 # Check whether --with-odbc or --without-odbc was given.
2297 if test "${with_odbc+set}" = set; then
2298 withval="$with_odbc"
2299
2300 if test "$withval" = yes; then
2301 ac_cv_use_odbc='wxUSE_ODBC=yes'
2302 else
2303 ac_cv_use_odbc='wxUSE_ODBC=no'
2304 fi
2305
2306 else
2307
2308 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2309 if test "x$LINE" != x ; then
2310 eval "DEFAULT_$LINE"
2311 else
2312 no_cache=1
2313 fi
2314
2315 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2316
2317 fi
2318
2319
2320 eval "$ac_cv_use_odbc"
2321 if test "$no_cache" != 1; then
2322 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2323 fi
2324
2325 if test "$wxUSE_ODBC" = yes; then
2326 echo "$ac_t""yes" 1>&6
2327 else
2328 echo "$ac_t""no" 1>&6
2329 fi
2330
2331
2332
2333
2334 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2335 echo "configure:2336: checking for --enable-shared" >&5
2336 no_cache=0
2337 # Check whether --enable-shared or --disable-shared was given.
2338 if test "${enable_shared+set}" = set; then
2339 enableval="$enable_shared"
2340
2341 if test "$enableval" = yes; then
2342 ac_cv_use_shared='wxUSE_SHARED=yes'
2343 else
2344 ac_cv_use_shared='wxUSE_SHARED=no'
2345 fi
2346
2347 else
2348
2349 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2350 if test "x$LINE" != x ; then
2351 eval "DEFAULT_$LINE"
2352 else
2353 no_cache=1
2354 fi
2355
2356 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2357
2358 fi
2359
2360
2361 eval "$ac_cv_use_shared"
2362 if test "$no_cache" != 1; then
2363 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2364 fi
2365
2366 if test "$wxUSE_SHARED" = yes; then
2367 echo "$ac_t""yes" 1>&6
2368 else
2369 echo "$ac_t""no" 1>&6
2370 fi
2371
2372
2373 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2374 echo "configure:2375: checking for --enable-soname" >&5
2375 no_cache=0
2376 # Check whether --enable-soname or --disable-soname was given.
2377 if test "${enable_soname+set}" = set; then
2378 enableval="$enable_soname"
2379
2380 if test "$enableval" = yes; then
2381 ac_cv_use_soname='wxUSE_SONAME=yes'
2382 else
2383 ac_cv_use_soname='wxUSE_SONAME=no'
2384 fi
2385
2386 else
2387
2388 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2389 if test "x$LINE" != x ; then
2390 eval "DEFAULT_$LINE"
2391 else
2392 no_cache=1
2393 fi
2394
2395 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2396
2397 fi
2398
2399
2400 eval "$ac_cv_use_soname"
2401 if test "$no_cache" != 1; then
2402 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2403 fi
2404
2405 if test "$wxUSE_SONAME" = yes; then
2406 echo "$ac_t""yes" 1>&6
2407 else
2408 echo "$ac_t""no" 1>&6
2409 fi
2410
2411
2412 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2413 echo "configure:2414: checking for --enable-optimise" >&5
2414 no_cache=0
2415 # Check whether --enable-optimise or --disable-optimise was given.
2416 if test "${enable_optimise+set}" = set; then
2417 enableval="$enable_optimise"
2418
2419 if test "$enableval" = yes; then
2420 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2421 else
2422 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2423 fi
2424
2425 else
2426
2427 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2428 if test "x$LINE" != x ; then
2429 eval "DEFAULT_$LINE"
2430 else
2431 no_cache=1
2432 fi
2433
2434 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2435
2436 fi
2437
2438
2439 eval "$ac_cv_use_optimise"
2440 if test "$no_cache" != 1; then
2441 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2442 fi
2443
2444 if test "$wxUSE_OPTIMISE" = yes; then
2445 echo "$ac_t""yes" 1>&6
2446 else
2447 echo "$ac_t""no" 1>&6
2448 fi
2449
2450
2451 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2452 echo "configure:2453: checking for --enable-debug" >&5
2453 no_cache=0
2454 # Check whether --enable-debug or --disable-debug was given.
2455 if test "${enable_debug+set}" = set; then
2456 enableval="$enable_debug"
2457
2458 if test "$enableval" = yes; then
2459 ac_cv_use_debug='wxUSE_DEBUG=yes'
2460 else
2461 ac_cv_use_debug='wxUSE_DEBUG=no'
2462 fi
2463
2464 else
2465
2466 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2467 if test "x$LINE" != x ; then
2468 eval "DEFAULT_$LINE"
2469 else
2470 no_cache=1
2471 fi
2472
2473 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2474
2475 fi
2476
2477
2478 eval "$ac_cv_use_debug"
2479 if test "$no_cache" != 1; then
2480 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2481 fi
2482
2483 if test "$wxUSE_DEBUG" = yes; then
2484 echo "$ac_t""yes" 1>&6
2485 else
2486 echo "$ac_t""no" 1>&6
2487 fi
2488
2489
2490
2491 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2492 echo "configure:2493: checking for --enable-precomp" >&5
2493 no_cache=0
2494 # Check whether --enable-precomp or --disable-precomp was given.
2495 if test "${enable_precomp+set}" = set; then
2496 enableval="$enable_precomp"
2497
2498 if test "$enableval" = yes; then
2499 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2500 else
2501 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2502 fi
2503
2504 else
2505
2506 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2507 if test "x$LINE" != x ; then
2508 eval "DEFAULT_$LINE"
2509 else
2510 no_cache=1
2511 fi
2512
2513 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2514
2515 fi
2516
2517
2518 eval "$ac_cv_use_precomp"
2519 if test "$no_cache" != 1; then
2520 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2521 fi
2522
2523 if test "$wxUSE_PRECOMP" = yes; then
2524 echo "$ac_t""yes" 1>&6
2525 else
2526 echo "$ac_t""no" 1>&6
2527 fi
2528
2529
2530 if test "$wxUSE_DEBUG" = "yes"; then
2531 DEFAULT_wxUSE_DEBUG_FLAG=yes
2532 DEFAULT_wxUSE_DEBUG_INFO=yes
2533 elif test "$wxUSE_DEBUG" = "no"; then
2534 DEFAULT_wxUSE_DEBUG_FLAG=no
2535 DEFAULT_wxUSE_DEBUG_INFO=no
2536 fi
2537
2538
2539 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2540 echo "configure:2541: checking for --enable-debug_flag" >&5
2541 no_cache=0
2542 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2543 if test "${enable_debug_flag+set}" = set; then
2544 enableval="$enable_debug_flag"
2545
2546 if test "$enableval" = yes; then
2547 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2548 else
2549 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2550 fi
2551
2552 else
2553
2554 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2555 if test "x$LINE" != x ; then
2556 eval "DEFAULT_$LINE"
2557 else
2558 no_cache=1
2559 fi
2560
2561 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2562
2563 fi
2564
2565
2566 eval "$ac_cv_use_debug_flag"
2567 if test "$no_cache" != 1; then
2568 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2569 fi
2570
2571 if test "$wxUSE_DEBUG_FLAG" = yes; then
2572 echo "$ac_t""yes" 1>&6
2573 else
2574 echo "$ac_t""no" 1>&6
2575 fi
2576
2577
2578 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2579 echo "configure:2580: checking for --enable-debug_info" >&5
2580 no_cache=0
2581 # Check whether --enable-debug_info or --disable-debug_info was given.
2582 if test "${enable_debug_info+set}" = set; then
2583 enableval="$enable_debug_info"
2584
2585 if test "$enableval" = yes; then
2586 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2587 else
2588 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2589 fi
2590
2591 else
2592
2593 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2594 if test "x$LINE" != x ; then
2595 eval "DEFAULT_$LINE"
2596 else
2597 no_cache=1
2598 fi
2599
2600 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2601
2602 fi
2603
2604
2605 eval "$ac_cv_use_debug_info"
2606 if test "$no_cache" != 1; then
2607 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2608 fi
2609
2610 if test "$wxUSE_DEBUG_INFO" = yes; then
2611 echo "$ac_t""yes" 1>&6
2612 else
2613 echo "$ac_t""no" 1>&6
2614 fi
2615
2616
2617 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2618 echo "configure:2619: checking for --enable-debug_gdb" >&5
2619 no_cache=0
2620 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2621 if test "${enable_debug_gdb+set}" = set; then
2622 enableval="$enable_debug_gdb"
2623
2624 if test "$enableval" = yes; then
2625 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2626 else
2627 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2628 fi
2629
2630 else
2631
2632 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2633 if test "x$LINE" != x ; then
2634 eval "DEFAULT_$LINE"
2635 else
2636 no_cache=1
2637 fi
2638
2639 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2640
2641 fi
2642
2643
2644 eval "$ac_cv_use_debug_gdb"
2645 if test "$no_cache" != 1; then
2646 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2647 fi
2648
2649 if test "$wxUSE_DEBUG_GDB" = yes; then
2650 echo "$ac_t""yes" 1>&6
2651 else
2652 echo "$ac_t""no" 1>&6
2653 fi
2654
2655
2656 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2657 echo "configure:2658: checking for --enable-debug_cntxt" >&5
2658 no_cache=0
2659 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2660 if test "${enable_debug_cntxt+set}" = set; then
2661 enableval="$enable_debug_cntxt"
2662
2663 if test "$enableval" = yes; then
2664 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2665 else
2666 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2667 fi
2668
2669 else
2670
2671 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2672 if test "x$LINE" != x ; then
2673 eval "DEFAULT_$LINE"
2674 else
2675 no_cache=1
2676 fi
2677
2678 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2679
2680 fi
2681
2682
2683 eval "$ac_cv_use_debug_cntxt"
2684 if test "$no_cache" != 1; then
2685 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2686 fi
2687
2688 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2689 echo "$ac_t""yes" 1>&6
2690 else
2691 echo "$ac_t""no" 1>&6
2692 fi
2693
2694
2695 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2696 echo "configure:2697: checking for --enable-mem_tracing" >&5
2697 no_cache=0
2698 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2699 if test "${enable_mem_tracing+set}" = set; then
2700 enableval="$enable_mem_tracing"
2701
2702 if test "$enableval" = yes; then
2703 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2704 else
2705 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2706 fi
2707
2708 else
2709
2710 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2711 if test "x$LINE" != x ; then
2712 eval "DEFAULT_$LINE"
2713 else
2714 no_cache=1
2715 fi
2716
2717 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2718
2719 fi
2720
2721
2722 eval "$ac_cv_use_mem_tracing"
2723 if test "$no_cache" != 1; then
2724 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2725 fi
2726
2727 if test "$wxUSE_MEM_TRACING" = yes; then
2728 echo "$ac_t""yes" 1>&6
2729 else
2730 echo "$ac_t""no" 1>&6
2731 fi
2732
2733
2734 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2735 echo "configure:2736: checking for --enable-profile" >&5
2736 no_cache=0
2737 # Check whether --enable-profile or --disable-profile was given.
2738 if test "${enable_profile+set}" = set; then
2739 enableval="$enable_profile"
2740
2741 if test "$enableval" = yes; then
2742 ac_cv_use_profile='wxUSE_PROFILE=yes'
2743 else
2744 ac_cv_use_profile='wxUSE_PROFILE=no'
2745 fi
2746
2747 else
2748
2749 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2750 if test "x$LINE" != x ; then
2751 eval "DEFAULT_$LINE"
2752 else
2753 no_cache=1
2754 fi
2755
2756 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2757
2758 fi
2759
2760
2761 eval "$ac_cv_use_profile"
2762 if test "$no_cache" != 1; then
2763 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2764 fi
2765
2766 if test "$wxUSE_PROFILE" = yes; then
2767 echo "$ac_t""yes" 1>&6
2768 else
2769 echo "$ac_t""no" 1>&6
2770 fi
2771
2772
2773 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2774 echo "configure:2775: checking for --enable-no_rtti" >&5
2775 no_cache=0
2776 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2777 if test "${enable_no_rtti+set}" = set; then
2778 enableval="$enable_no_rtti"
2779
2780 if test "$enableval" = yes; then
2781 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2782 else
2783 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2784 fi
2785
2786 else
2787
2788 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2789 if test "x$LINE" != x ; then
2790 eval "DEFAULT_$LINE"
2791 else
2792 no_cache=1
2793 fi
2794
2795 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2796
2797 fi
2798
2799
2800 eval "$ac_cv_use_no_rtti"
2801 if test "$no_cache" != 1; then
2802 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2803 fi
2804
2805 if test "$wxUSE_NO_RTTI" = yes; then
2806 echo "$ac_t""yes" 1>&6
2807 else
2808 echo "$ac_t""no" 1>&6
2809 fi
2810
2811
2812 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2813 echo "configure:2814: checking for --enable-no_exceptions" >&5
2814 no_cache=0
2815 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2816 if test "${enable_no_exceptions+set}" = set; then
2817 enableval="$enable_no_exceptions"
2818
2819 if test "$enableval" = yes; then
2820 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2821 else
2822 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2823 fi
2824
2825 else
2826
2827 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2828 if test "x$LINE" != x ; then
2829 eval "DEFAULT_$LINE"
2830 else
2831 no_cache=1
2832 fi
2833
2834 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2835
2836 fi
2837
2838
2839 eval "$ac_cv_use_no_exceptions"
2840 if test "$no_cache" != 1; then
2841 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2842 fi
2843
2844 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2845 echo "$ac_t""yes" 1>&6
2846 else
2847 echo "$ac_t""no" 1>&6
2848 fi
2849
2850
2851 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2852 echo "configure:2853: checking for --enable-permissive" >&5
2853 no_cache=0
2854 # Check whether --enable-permissive or --disable-permissive was given.
2855 if test "${enable_permissive+set}" = set; then
2856 enableval="$enable_permissive"
2857
2858 if test "$enableval" = yes; then
2859 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2860 else
2861 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2862 fi
2863
2864 else
2865
2866 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2867 if test "x$LINE" != x ; then
2868 eval "DEFAULT_$LINE"
2869 else
2870 no_cache=1
2871 fi
2872
2873 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2874
2875 fi
2876
2877
2878 eval "$ac_cv_use_permissive"
2879 if test "$no_cache" != 1; then
2880 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2881 fi
2882
2883 if test "$wxUSE_PERMISSIVE" = yes; then
2884 echo "$ac_t""yes" 1>&6
2885 else
2886 echo "$ac_t""no" 1>&6
2887 fi
2888
2889
2890 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2891 echo "configure:2892: checking for --enable-no_deps" >&5
2892 no_cache=0
2893 # Check whether --enable-no_deps or --disable-no_deps was given.
2894 if test "${enable_no_deps+set}" = set; then
2895 enableval="$enable_no_deps"
2896
2897 if test "$enableval" = yes; then
2898 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2899 else
2900 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2901 fi
2902
2903 else
2904
2905 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2906 if test "x$LINE" != x ; then
2907 eval "DEFAULT_$LINE"
2908 else
2909 no_cache=1
2910 fi
2911
2912 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2913
2914 fi
2915
2916
2917 eval "$ac_cv_use_no_deps"
2918 if test "$no_cache" != 1; then
2919 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2920 fi
2921
2922 if test "$wxUSE_NO_DEPS" = yes; then
2923 echo "$ac_t""yes" 1>&6
2924 else
2925 echo "$ac_t""no" 1>&6
2926 fi
2927
2928
2929
2930 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2931 echo "configure:2932: checking for --enable-compat20" >&5
2932 no_cache=0
2933 # Check whether --enable-compat20 or --disable-compat20 was given.
2934 if test "${enable_compat20+set}" = set; then
2935 enableval="$enable_compat20"
2936
2937 if test "$enableval" = yes; then
2938 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2939 else
2940 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2941 fi
2942
2943 else
2944
2945 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2946 if test "x$LINE" != x ; then
2947 eval "DEFAULT_$LINE"
2948 else
2949 no_cache=1
2950 fi
2951
2952 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2953
2954 fi
2955
2956
2957 eval "$ac_cv_use_compat20"
2958 if test "$no_cache" != 1; then
2959 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2960 fi
2961
2962 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2963 echo "$ac_t""yes" 1>&6
2964 else
2965 echo "$ac_t""no" 1>&6
2966 fi
2967
2968
2969 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2970 echo "configure:2971: checking for --enable-compat22" >&5
2971 no_cache=0
2972 # Check whether --enable-compat22 or --disable-compat22 was given.
2973 if test "${enable_compat22+set}" = set; then
2974 enableval="$enable_compat22"
2975
2976 if test "$enableval" = yes; then
2977 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2978 else
2979 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2980 fi
2981
2982 else
2983
2984 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2985 if test "x$LINE" != x ; then
2986 eval "DEFAULT_$LINE"
2987 else
2988 no_cache=1
2989 fi
2990
2991 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2992
2993 fi
2994
2995
2996 eval "$ac_cv_use_compat22"
2997 if test "$no_cache" != 1; then
2998 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2999 fi
3000
3001 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3002 echo "$ac_t""yes" 1>&6
3003 else
3004 echo "$ac_t""no" 1>&6
3005 fi
3006
3007
3008
3009
3010 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3011 echo "configure:3012: checking for --enable-intl" >&5
3012 no_cache=0
3013 # Check whether --enable-intl or --disable-intl was given.
3014 if test "${enable_intl+set}" = set; then
3015 enableval="$enable_intl"
3016
3017 if test "$enableval" = yes; then
3018 ac_cv_use_intl='wxUSE_INTL=yes'
3019 else
3020 ac_cv_use_intl='wxUSE_INTL=no'
3021 fi
3022
3023 else
3024
3025 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3026 if test "x$LINE" != x ; then
3027 eval "DEFAULT_$LINE"
3028 else
3029 no_cache=1
3030 fi
3031
3032 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3033
3034 fi
3035
3036
3037 eval "$ac_cv_use_intl"
3038 if test "$no_cache" != 1; then
3039 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3040 fi
3041
3042 if test "$wxUSE_INTL" = yes; then
3043 echo "$ac_t""yes" 1>&6
3044 else
3045 echo "$ac_t""no" 1>&6
3046 fi
3047
3048
3049 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3050 echo "configure:3051: checking for --enable-config" >&5
3051 no_cache=0
3052 # Check whether --enable-config or --disable-config was given.
3053 if test "${enable_config+set}" = set; then
3054 enableval="$enable_config"
3055
3056 if test "$enableval" = yes; then
3057 ac_cv_use_config='wxUSE_CONFIG=yes'
3058 else
3059 ac_cv_use_config='wxUSE_CONFIG=no'
3060 fi
3061
3062 else
3063
3064 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3065 if test "x$LINE" != x ; then
3066 eval "DEFAULT_$LINE"
3067 else
3068 no_cache=1
3069 fi
3070
3071 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3072
3073 fi
3074
3075
3076 eval "$ac_cv_use_config"
3077 if test "$no_cache" != 1; then
3078 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3079 fi
3080
3081 if test "$wxUSE_CONFIG" = yes; then
3082 echo "$ac_t""yes" 1>&6
3083 else
3084 echo "$ac_t""no" 1>&6
3085 fi
3086
3087
3088
3089 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3090 echo "configure:3091: checking for --enable-protocols" >&5
3091 no_cache=0
3092 # Check whether --enable-protocols or --disable-protocols was given.
3093 if test "${enable_protocols+set}" = set; then
3094 enableval="$enable_protocols"
3095
3096 if test "$enableval" = yes; then
3097 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3098 else
3099 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3100 fi
3101
3102 else
3103
3104 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3105 if test "x$LINE" != x ; then
3106 eval "DEFAULT_$LINE"
3107 else
3108 no_cache=1
3109 fi
3110
3111 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3112
3113 fi
3114
3115
3116 eval "$ac_cv_use_protocols"
3117 if test "$no_cache" != 1; then
3118 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3119 fi
3120
3121 if test "$wxUSE_PROTOCOL" = yes; then
3122 echo "$ac_t""yes" 1>&6
3123 else
3124 echo "$ac_t""no" 1>&6
3125 fi
3126
3127
3128 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3129 echo "configure:3130: checking for --enable-ftp" >&5
3130 no_cache=0
3131 # Check whether --enable-ftp or --disable-ftp was given.
3132 if test "${enable_ftp+set}" = set; then
3133 enableval="$enable_ftp"
3134
3135 if test "$enableval" = yes; then
3136 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3137 else
3138 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3139 fi
3140
3141 else
3142
3143 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3144 if test "x$LINE" != x ; then
3145 eval "DEFAULT_$LINE"
3146 else
3147 no_cache=1
3148 fi
3149
3150 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3151
3152 fi
3153
3154
3155 eval "$ac_cv_use_ftp"
3156 if test "$no_cache" != 1; then
3157 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3158 fi
3159
3160 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3161 echo "$ac_t""yes" 1>&6
3162 else
3163 echo "$ac_t""no" 1>&6
3164 fi
3165
3166
3167 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3168 echo "configure:3169: checking for --enable-http" >&5
3169 no_cache=0
3170 # Check whether --enable-http or --disable-http was given.
3171 if test "${enable_http+set}" = set; then
3172 enableval="$enable_http"
3173
3174 if test "$enableval" = yes; then
3175 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3176 else
3177 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3178 fi
3179
3180 else
3181
3182 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3183 if test "x$LINE" != x ; then
3184 eval "DEFAULT_$LINE"
3185 else
3186 no_cache=1
3187 fi
3188
3189 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3190
3191 fi
3192
3193
3194 eval "$ac_cv_use_http"
3195 if test "$no_cache" != 1; then
3196 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3197 fi
3198
3199 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3200 echo "$ac_t""yes" 1>&6
3201 else
3202 echo "$ac_t""no" 1>&6
3203 fi
3204
3205
3206 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3207 echo "configure:3208: checking for --enable-fileproto" >&5
3208 no_cache=0
3209 # Check whether --enable-fileproto or --disable-fileproto was given.
3210 if test "${enable_fileproto+set}" = set; then
3211 enableval="$enable_fileproto"
3212
3213 if test "$enableval" = yes; then
3214 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3215 else
3216 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3217 fi
3218
3219 else
3220
3221 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3222 if test "x$LINE" != x ; then
3223 eval "DEFAULT_$LINE"
3224 else
3225 no_cache=1
3226 fi
3227
3228 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3229
3230 fi
3231
3232
3233 eval "$ac_cv_use_fileproto"
3234 if test "$no_cache" != 1; then
3235 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3236 fi
3237
3238 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3239 echo "$ac_t""yes" 1>&6
3240 else
3241 echo "$ac_t""no" 1>&6
3242 fi
3243
3244
3245 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3246 echo "configure:3247: checking for --enable-sockets" >&5
3247 no_cache=0
3248 # Check whether --enable-sockets or --disable-sockets was given.
3249 if test "${enable_sockets+set}" = set; then
3250 enableval="$enable_sockets"
3251
3252 if test "$enableval" = yes; then
3253 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3254 else
3255 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3256 fi
3257
3258 else
3259
3260 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3261 if test "x$LINE" != x ; then
3262 eval "DEFAULT_$LINE"
3263 else
3264 no_cache=1
3265 fi
3266
3267 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3268
3269 fi
3270
3271
3272 eval "$ac_cv_use_sockets"
3273 if test "$no_cache" != 1; then
3274 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3275 fi
3276
3277 if test "$wxUSE_SOCKETS" = yes; then
3278 echo "$ac_t""yes" 1>&6
3279 else
3280 echo "$ac_t""no" 1>&6
3281 fi
3282
3283
3284
3285 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3286 echo "configure:3287: checking for --enable-ipc" >&5
3287 no_cache=0
3288 # Check whether --enable-ipc or --disable-ipc was given.
3289 if test "${enable_ipc+set}" = set; then
3290 enableval="$enable_ipc"
3291
3292 if test "$enableval" = yes; then
3293 ac_cv_use_ipc='wxUSE_IPC=yes'
3294 else
3295 ac_cv_use_ipc='wxUSE_IPC=no'
3296 fi
3297
3298 else
3299
3300 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3301 if test "x$LINE" != x ; then
3302 eval "DEFAULT_$LINE"
3303 else
3304 no_cache=1
3305 fi
3306
3307 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3308
3309 fi
3310
3311
3312 eval "$ac_cv_use_ipc"
3313 if test "$no_cache" != 1; then
3314 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3315 fi
3316
3317 if test "$wxUSE_IPC" = yes; then
3318 echo "$ac_t""yes" 1>&6
3319 else
3320 echo "$ac_t""no" 1>&6
3321 fi
3322
3323
3324
3325 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3326 echo "configure:3327: checking for --enable-cmdline" >&5
3327 no_cache=0
3328 # Check whether --enable-cmdline or --disable-cmdline was given.
3329 if test "${enable_cmdline+set}" = set; then
3330 enableval="$enable_cmdline"
3331
3332 if test "$enableval" = yes; then
3333 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3334 else
3335 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3336 fi
3337
3338 else
3339
3340 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3341 if test "x$LINE" != x ; then
3342 eval "DEFAULT_$LINE"
3343 else
3344 no_cache=1
3345 fi
3346
3347 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3348
3349 fi
3350
3351
3352 eval "$ac_cv_use_cmdline"
3353 if test "$no_cache" != 1; then
3354 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3355 fi
3356
3357 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3358 echo "$ac_t""yes" 1>&6
3359 else
3360 echo "$ac_t""no" 1>&6
3361 fi
3362
3363
3364 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3365 echo "configure:3366: checking for --enable-datetime" >&5
3366 no_cache=0
3367 # Check whether --enable-datetime or --disable-datetime was given.
3368 if test "${enable_datetime+set}" = set; then
3369 enableval="$enable_datetime"
3370
3371 if test "$enableval" = yes; then
3372 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3373 else
3374 ac_cv_use_datetime='wxUSE_DATETIME=no'
3375 fi
3376
3377 else
3378
3379 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3380 if test "x$LINE" != x ; then
3381 eval "DEFAULT_$LINE"
3382 else
3383 no_cache=1
3384 fi
3385
3386 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3387
3388 fi
3389
3390
3391 eval "$ac_cv_use_datetime"
3392 if test "$no_cache" != 1; then
3393 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3394 fi
3395
3396 if test "$wxUSE_DATETIME" = yes; then
3397 echo "$ac_t""yes" 1>&6
3398 else
3399 echo "$ac_t""no" 1>&6
3400 fi
3401
3402
3403 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3404 echo "configure:3405: checking for --enable-timedate" >&5
3405 no_cache=0
3406 # Check whether --enable-timedate or --disable-timedate was given.
3407 if test "${enable_timedate+set}" = set; then
3408 enableval="$enable_timedate"
3409
3410 if test "$enableval" = yes; then
3411 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3412 else
3413 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3414 fi
3415
3416 else
3417
3418 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3419 if test "x$LINE" != x ; then
3420 eval "DEFAULT_$LINE"
3421 else
3422 no_cache=1
3423 fi
3424
3425 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3426
3427 fi
3428
3429
3430 eval "$ac_cv_use_timedate"
3431 if test "$no_cache" != 1; then
3432 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3433 fi
3434
3435 if test "$wxUSE_TIMEDATE" = yes; then
3436 echo "$ac_t""yes" 1>&6
3437 else
3438 echo "$ac_t""no" 1>&6
3439 fi
3440
3441
3442 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3443 echo "configure:3444: checking for --enable-stopwatch" >&5
3444 no_cache=0
3445 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3446 if test "${enable_stopwatch+set}" = set; then
3447 enableval="$enable_stopwatch"
3448
3449 if test "$enableval" = yes; then
3450 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3451 else
3452 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3453 fi
3454
3455 else
3456
3457 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3458 if test "x$LINE" != x ; then
3459 eval "DEFAULT_$LINE"
3460 else
3461 no_cache=1
3462 fi
3463
3464 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3465
3466 fi
3467
3468
3469 eval "$ac_cv_use_stopwatch"
3470 if test "$no_cache" != 1; then
3471 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3472 fi
3473
3474 if test "$wxUSE_STOPWATCH" = yes; then
3475 echo "$ac_t""yes" 1>&6
3476 else
3477 echo "$ac_t""no" 1>&6
3478 fi
3479
3480
3481 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3482 echo "configure:3483: checking for --enable-dialupman" >&5
3483 no_cache=0
3484 # Check whether --enable-dialupman or --disable-dialupman was given.
3485 if test "${enable_dialupman+set}" = set; then
3486 enableval="$enable_dialupman"
3487
3488 if test "$enableval" = yes; then
3489 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3490 else
3491 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3492 fi
3493
3494 else
3495
3496 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3497 if test "x$LINE" != x ; then
3498 eval "DEFAULT_$LINE"
3499 else
3500 no_cache=1
3501 fi
3502
3503 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3504
3505 fi
3506
3507
3508 eval "$ac_cv_use_dialupman"
3509 if test "$no_cache" != 1; then
3510 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3511 fi
3512
3513 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3514 echo "$ac_t""yes" 1>&6
3515 else
3516 echo "$ac_t""no" 1>&6
3517 fi
3518
3519
3520 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3521 echo "configure:3522: checking for --enable-apple_ieee" >&5
3522 no_cache=0
3523 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3524 if test "${enable_apple_ieee+set}" = set; then
3525 enableval="$enable_apple_ieee"
3526
3527 if test "$enableval" = yes; then
3528 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3529 else
3530 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3531 fi
3532
3533 else
3534
3535 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3536 if test "x$LINE" != x ; then
3537 eval "DEFAULT_$LINE"
3538 else
3539 no_cache=1
3540 fi
3541
3542 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3543
3544 fi
3545
3546
3547 eval "$ac_cv_use_apple_ieee"
3548 if test "$no_cache" != 1; then
3549 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3550 fi
3551
3552 if test "$wxUSE_APPLE_IEEE" = yes; then
3553 echo "$ac_t""yes" 1>&6
3554 else
3555 echo "$ac_t""no" 1>&6
3556 fi
3557
3558
3559 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3560 echo "configure:3561: checking for --enable-timer" >&5
3561 no_cache=0
3562 # Check whether --enable-timer or --disable-timer was given.
3563 if test "${enable_timer+set}" = set; then
3564 enableval="$enable_timer"
3565
3566 if test "$enableval" = yes; then
3567 ac_cv_use_timer='wxUSE_TIMER=yes'
3568 else
3569 ac_cv_use_timer='wxUSE_TIMER=no'
3570 fi
3571
3572 else
3573
3574 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3575 if test "x$LINE" != x ; then
3576 eval "DEFAULT_$LINE"
3577 else
3578 no_cache=1
3579 fi
3580
3581 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3582
3583 fi
3584
3585
3586 eval "$ac_cv_use_timer"
3587 if test "$no_cache" != 1; then
3588 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3589 fi
3590
3591 if test "$wxUSE_TIMER" = yes; then
3592 echo "$ac_t""yes" 1>&6
3593 else
3594 echo "$ac_t""no" 1>&6
3595 fi
3596
3597
3598 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3599 echo "configure:3600: checking for --enable-wave" >&5
3600 no_cache=0
3601 # Check whether --enable-wave or --disable-wave was given.
3602 if test "${enable_wave+set}" = set; then
3603 enableval="$enable_wave"
3604
3605 if test "$enableval" = yes; then
3606 ac_cv_use_wave='wxUSE_WAVE=yes'
3607 else
3608 ac_cv_use_wave='wxUSE_WAVE=no'
3609 fi
3610
3611 else
3612
3613 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3614 if test "x$LINE" != x ; then
3615 eval "DEFAULT_$LINE"
3616 else
3617 no_cache=1
3618 fi
3619
3620 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3621
3622 fi
3623
3624
3625 eval "$ac_cv_use_wave"
3626 if test "$no_cache" != 1; then
3627 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3628 fi
3629
3630 if test "$wxUSE_WAVE" = yes; then
3631 echo "$ac_t""yes" 1>&6
3632 else
3633 echo "$ac_t""no" 1>&6
3634 fi
3635
3636
3637 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3638 echo "configure:3639: checking for --enable-fraction" >&5
3639 no_cache=0
3640 # Check whether --enable-fraction or --disable-fraction was given.
3641 if test "${enable_fraction+set}" = set; then
3642 enableval="$enable_fraction"
3643
3644 if test "$enableval" = yes; then
3645 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3646 else
3647 ac_cv_use_fraction='wxUSE_FRACTION=no'
3648 fi
3649
3650 else
3651
3652 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3653 if test "x$LINE" != x ; then
3654 eval "DEFAULT_$LINE"
3655 else
3656 no_cache=1
3657 fi
3658
3659 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3660
3661 fi
3662
3663
3664 eval "$ac_cv_use_fraction"
3665 if test "$no_cache" != 1; then
3666 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3667 fi
3668
3669 if test "$wxUSE_FRACTION" = yes; then
3670 echo "$ac_t""yes" 1>&6
3671 else
3672 echo "$ac_t""no" 1>&6
3673 fi
3674
3675
3676 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3677 echo "configure:3678: checking for --enable-dynlib" >&5
3678 no_cache=0
3679 # Check whether --enable-dynlib or --disable-dynlib was given.
3680 if test "${enable_dynlib+set}" = set; then
3681 enableval="$enable_dynlib"
3682
3683 if test "$enableval" = yes; then
3684 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3685 else
3686 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3687 fi
3688
3689 else
3690
3691 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3692 if test "x$LINE" != x ; then
3693 eval "DEFAULT_$LINE"
3694 else
3695 no_cache=1
3696 fi
3697
3698 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3699
3700 fi
3701
3702
3703 eval "$ac_cv_use_dynlib"
3704 if test "$no_cache" != 1; then
3705 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3706 fi
3707
3708 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3709 echo "$ac_t""yes" 1>&6
3710 else
3711 echo "$ac_t""no" 1>&6
3712 fi
3713
3714
3715 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3716 echo "configure:3717: checking for --enable-dynamicloader" >&5
3717 no_cache=0
3718 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3719 if test "${enable_dynamicloader+set}" = set; then
3720 enableval="$enable_dynamicloader"
3721
3722 if test "$enableval" = yes; then
3723 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3724 else
3725 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3726 fi
3727
3728 else
3729
3730 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3731 if test "x$LINE" != x ; then
3732 eval "DEFAULT_$LINE"
3733 else
3734 no_cache=1
3735 fi
3736
3737 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3738
3739 fi
3740
3741
3742 eval "$ac_cv_use_dynamicloader"
3743 if test "$no_cache" != 1; then
3744 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3745 fi
3746
3747 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3748 echo "$ac_t""yes" 1>&6
3749 else
3750 echo "$ac_t""no" 1>&6
3751 fi
3752
3753
3754 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3755 echo "configure:3756: checking for --enable-longlong" >&5
3756 no_cache=0
3757 # Check whether --enable-longlong or --disable-longlong was given.
3758 if test "${enable_longlong+set}" = set; then
3759 enableval="$enable_longlong"
3760
3761 if test "$enableval" = yes; then
3762 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3763 else
3764 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3765 fi
3766
3767 else
3768
3769 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3770 if test "x$LINE" != x ; then
3771 eval "DEFAULT_$LINE"
3772 else
3773 no_cache=1
3774 fi
3775
3776 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3777
3778 fi
3779
3780
3781 eval "$ac_cv_use_longlong"
3782 if test "$no_cache" != 1; then
3783 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3784 fi
3785
3786 if test "$wxUSE_LONGLONG" = yes; then
3787 echo "$ac_t""yes" 1>&6
3788 else
3789 echo "$ac_t""no" 1>&6
3790 fi
3791
3792
3793 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3794 echo "configure:3795: checking for --enable-geometry" >&5
3795 no_cache=0
3796 # Check whether --enable-geometry or --disable-geometry was given.
3797 if test "${enable_geometry+set}" = set; then
3798 enableval="$enable_geometry"
3799
3800 if test "$enableval" = yes; then
3801 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3802 else
3803 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3804 fi
3805
3806 else
3807
3808 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3809 if test "x$LINE" != x ; then
3810 eval "DEFAULT_$LINE"
3811 else
3812 no_cache=1
3813 fi
3814
3815 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3816
3817 fi
3818
3819
3820 eval "$ac_cv_use_geometry"
3821 if test "$no_cache" != 1; then
3822 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3823 fi
3824
3825 if test "$wxUSE_GEOMETRY" = yes; then
3826 echo "$ac_t""yes" 1>&6
3827 else
3828 echo "$ac_t""no" 1>&6
3829 fi
3830
3831
3832 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3833 echo "configure:3834: checking for --enable-log" >&5
3834 no_cache=0
3835 # Check whether --enable-log or --disable-log was given.
3836 if test "${enable_log+set}" = set; then
3837 enableval="$enable_log"
3838
3839 if test "$enableval" = yes; then
3840 ac_cv_use_log='wxUSE_LOG=yes'
3841 else
3842 ac_cv_use_log='wxUSE_LOG=no'
3843 fi
3844
3845 else
3846
3847 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3848 if test "x$LINE" != x ; then
3849 eval "DEFAULT_$LINE"
3850 else
3851 no_cache=1
3852 fi
3853
3854 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3855
3856 fi
3857
3858
3859 eval "$ac_cv_use_log"
3860 if test "$no_cache" != 1; then
3861 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3862 fi
3863
3864 if test "$wxUSE_LOG" = yes; then
3865 echo "$ac_t""yes" 1>&6
3866 else
3867 echo "$ac_t""no" 1>&6
3868 fi
3869
3870
3871 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3872 echo "configure:3873: checking for --enable-streams" >&5
3873 no_cache=0
3874 # Check whether --enable-streams or --disable-streams was given.
3875 if test "${enable_streams+set}" = set; then
3876 enableval="$enable_streams"
3877
3878 if test "$enableval" = yes; then
3879 ac_cv_use_streams='wxUSE_STREAMS=yes'
3880 else
3881 ac_cv_use_streams='wxUSE_STREAMS=no'
3882 fi
3883
3884 else
3885
3886 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3887 if test "x$LINE" != x ; then
3888 eval "DEFAULT_$LINE"
3889 else
3890 no_cache=1
3891 fi
3892
3893 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3894
3895 fi
3896
3897
3898 eval "$ac_cv_use_streams"
3899 if test "$no_cache" != 1; then
3900 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3901 fi
3902
3903 if test "$wxUSE_STREAMS" = yes; then
3904 echo "$ac_t""yes" 1>&6
3905 else
3906 echo "$ac_t""no" 1>&6
3907 fi
3908
3909
3910 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3911 echo "configure:3912: checking for --enable-file" >&5
3912 no_cache=0
3913 # Check whether --enable-file or --disable-file was given.
3914 if test "${enable_file+set}" = set; then
3915 enableval="$enable_file"
3916
3917 if test "$enableval" = yes; then
3918 ac_cv_use_file='wxUSE_FILE=yes'
3919 else
3920 ac_cv_use_file='wxUSE_FILE=no'
3921 fi
3922
3923 else
3924
3925 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3926 if test "x$LINE" != x ; then
3927 eval "DEFAULT_$LINE"
3928 else
3929 no_cache=1
3930 fi
3931
3932 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3933
3934 fi
3935
3936
3937 eval "$ac_cv_use_file"
3938 if test "$no_cache" != 1; then
3939 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3940 fi
3941
3942 if test "$wxUSE_FILE" = yes; then
3943 echo "$ac_t""yes" 1>&6
3944 else
3945 echo "$ac_t""no" 1>&6
3946 fi
3947
3948
3949 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3950 echo "configure:3951: checking for --enable-ffile" >&5
3951 no_cache=0
3952 # Check whether --enable-ffile or --disable-ffile was given.
3953 if test "${enable_ffile+set}" = set; then
3954 enableval="$enable_ffile"
3955
3956 if test "$enableval" = yes; then
3957 ac_cv_use_ffile='wxUSE_FFILE=yes'
3958 else
3959 ac_cv_use_ffile='wxUSE_FFILE=no'
3960 fi
3961
3962 else
3963
3964 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3965 if test "x$LINE" != x ; then
3966 eval "DEFAULT_$LINE"
3967 else
3968 no_cache=1
3969 fi
3970
3971 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3972
3973 fi
3974
3975
3976 eval "$ac_cv_use_ffile"
3977 if test "$no_cache" != 1; then
3978 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3979 fi
3980
3981 if test "$wxUSE_FFILE" = yes; then
3982 echo "$ac_t""yes" 1>&6
3983 else
3984 echo "$ac_t""no" 1>&6
3985 fi
3986
3987
3988 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3989 echo "configure:3990: checking for --enable-textbuf" >&5
3990 no_cache=0
3991 # Check whether --enable-textbuf or --disable-textbuf was given.
3992 if test "${enable_textbuf+set}" = set; then
3993 enableval="$enable_textbuf"
3994
3995 if test "$enableval" = yes; then
3996 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3997 else
3998 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3999 fi
4000
4001 else
4002
4003 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4004 if test "x$LINE" != x ; then
4005 eval "DEFAULT_$LINE"
4006 else
4007 no_cache=1
4008 fi
4009
4010 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4011
4012 fi
4013
4014
4015 eval "$ac_cv_use_textbuf"
4016 if test "$no_cache" != 1; then
4017 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4018 fi
4019
4020 if test "$wxUSE_TEXTBUFFER" = yes; then
4021 echo "$ac_t""yes" 1>&6
4022 else
4023 echo "$ac_t""no" 1>&6
4024 fi
4025
4026
4027 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4028 echo "configure:4029: checking for --enable-textfile" >&5
4029 no_cache=0
4030 # Check whether --enable-textfile or --disable-textfile was given.
4031 if test "${enable_textfile+set}" = set; then
4032 enableval="$enable_textfile"
4033
4034 if test "$enableval" = yes; then
4035 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4036 else
4037 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4038 fi
4039
4040 else
4041
4042 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4043 if test "x$LINE" != x ; then
4044 eval "DEFAULT_$LINE"
4045 else
4046 no_cache=1
4047 fi
4048
4049 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4050
4051 fi
4052
4053
4054 eval "$ac_cv_use_textfile"
4055 if test "$no_cache" != 1; then
4056 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4057 fi
4058
4059 if test "$wxUSE_TEXTFILE" = yes; then
4060 echo "$ac_t""yes" 1>&6
4061 else
4062 echo "$ac_t""no" 1>&6
4063 fi
4064
4065
4066 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4067 echo "configure:4068: checking for --enable-fontmap" >&5
4068 no_cache=0
4069 # Check whether --enable-fontmap or --disable-fontmap was given.
4070 if test "${enable_fontmap+set}" = set; then
4071 enableval="$enable_fontmap"
4072
4073 if test "$enableval" = yes; then
4074 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4075 else
4076 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4077 fi
4078
4079 else
4080
4081 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4082 if test "x$LINE" != x ; then
4083 eval "DEFAULT_$LINE"
4084 else
4085 no_cache=1
4086 fi
4087
4088 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4089
4090 fi
4091
4092
4093 eval "$ac_cv_use_fontmap"
4094 if test "$no_cache" != 1; then
4095 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4096 fi
4097
4098 if test "$wxUSE_FONTMAP" = yes; then
4099 echo "$ac_t""yes" 1>&6
4100 else
4101 echo "$ac_t""no" 1>&6
4102 fi
4103
4104
4105 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4106 echo "configure:4107: checking for --enable-unicode" >&5
4107 no_cache=0
4108 # Check whether --enable-unicode or --disable-unicode was given.
4109 if test "${enable_unicode+set}" = set; then
4110 enableval="$enable_unicode"
4111
4112 if test "$enableval" = yes; then
4113 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4114 else
4115 ac_cv_use_unicode='wxUSE_UNICODE=no'
4116 fi
4117
4118 else
4119
4120 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4121 if test "x$LINE" != x ; then
4122 eval "DEFAULT_$LINE"
4123 else
4124 no_cache=1
4125 fi
4126
4127 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4128
4129 fi
4130
4131
4132 eval "$ac_cv_use_unicode"
4133 if test "$no_cache" != 1; then
4134 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4135 fi
4136
4137 if test "$wxUSE_UNICODE" = yes; then
4138 echo "$ac_t""yes" 1>&6
4139 else
4140 echo "$ac_t""no" 1>&6
4141 fi
4142
4143
4144 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4145 echo "configure:4146: checking for --enable-mslu" >&5
4146 no_cache=0
4147 # Check whether --enable-mslu or --disable-mslu was given.
4148 if test "${enable_mslu+set}" = set; then
4149 enableval="$enable_mslu"
4150
4151 if test "$enableval" = yes; then
4152 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4153 else
4154 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4155 fi
4156
4157 else
4158
4159 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4160 if test "x$LINE" != x ; then
4161 eval "DEFAULT_$LINE"
4162 else
4163 no_cache=1
4164 fi
4165
4166 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4167
4168 fi
4169
4170
4171 eval "$ac_cv_use_mslu"
4172 if test "$no_cache" != 1; then
4173 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4174 fi
4175
4176 if test "$wxUSE_UNICODE_MSLU" = yes; then
4177 echo "$ac_t""yes" 1>&6
4178 else
4179 echo "$ac_t""no" 1>&6
4180 fi
4181
4182
4183 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4184 echo "configure:4185: checking for --enable-wxprintfv" >&5
4185 no_cache=0
4186 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4187 if test "${enable_wxprintfv+set}" = set; then
4188 enableval="$enable_wxprintfv"
4189
4190 if test "$enableval" = yes; then
4191 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4192 else
4193 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4194 fi
4195
4196 else
4197
4198 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4199 if test "x$LINE" != x ; then
4200 eval "DEFAULT_$LINE"
4201 else
4202 no_cache=1
4203 fi
4204
4205 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4206
4207 fi
4208
4209
4210 eval "$ac_cv_use_wxprintfv"
4211 if test "$no_cache" != 1; then
4212 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4213 fi
4214
4215 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4216 echo "$ac_t""yes" 1>&6
4217 else
4218 echo "$ac_t""no" 1>&6
4219 fi
4220
4221
4222 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4223 echo "configure:4224: checking for --enable-std_iostreams" >&5
4224 no_cache=0
4225 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4226 if test "${enable_std_iostreams+set}" = set; then
4227 enableval="$enable_std_iostreams"
4228
4229 if test "$enableval" = yes; then
4230 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4231 else
4232 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4233 fi
4234
4235 else
4236
4237 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4238 if test "x$LINE" != x ; then
4239 eval "DEFAULT_$LINE"
4240 else
4241 no_cache=1
4242 fi
4243
4244 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4245
4246 fi
4247
4248
4249 eval "$ac_cv_use_std_iostreams"
4250 if test "$no_cache" != 1; then
4251 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4252 fi
4253
4254 if test "$wxUSE_STD_IOSTREAM" = yes; then
4255 echo "$ac_t""yes" 1>&6
4256 else
4257 echo "$ac_t""no" 1>&6
4258 fi
4259
4260
4261 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4262 echo "configure:4263: checking for --enable-filesystem" >&5
4263 no_cache=0
4264 # Check whether --enable-filesystem or --disable-filesystem was given.
4265 if test "${enable_filesystem+set}" = set; then
4266 enableval="$enable_filesystem"
4267
4268 if test "$enableval" = yes; then
4269 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4270 else
4271 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4272 fi
4273
4274 else
4275
4276 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4277 if test "x$LINE" != x ; then
4278 eval "DEFAULT_$LINE"
4279 else
4280 no_cache=1
4281 fi
4282
4283 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4284
4285 fi
4286
4287
4288 eval "$ac_cv_use_filesystem"
4289 if test "$no_cache" != 1; then
4290 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4291 fi
4292
4293 if test "$wxUSE_FILESYSTEM" = yes; then
4294 echo "$ac_t""yes" 1>&6
4295 else
4296 echo "$ac_t""no" 1>&6
4297 fi
4298
4299
4300 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4301 echo "configure:4302: checking for --enable-fs_inet" >&5
4302 no_cache=0
4303 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4304 if test "${enable_fs_inet+set}" = set; then
4305 enableval="$enable_fs_inet"
4306
4307 if test "$enableval" = yes; then
4308 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4309 else
4310 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4311 fi
4312
4313 else
4314
4315 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4316 if test "x$LINE" != x ; then
4317 eval "DEFAULT_$LINE"
4318 else
4319 no_cache=1
4320 fi
4321
4322 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4323
4324 fi
4325
4326
4327 eval "$ac_cv_use_fs_inet"
4328 if test "$no_cache" != 1; then
4329 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4330 fi
4331
4332 if test "$wxUSE_FS_INET" = yes; then
4333 echo "$ac_t""yes" 1>&6
4334 else
4335 echo "$ac_t""no" 1>&6
4336 fi
4337
4338
4339 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4340 echo "configure:4341: checking for --enable-fs_zip" >&5
4341 no_cache=0
4342 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4343 if test "${enable_fs_zip+set}" = set; then
4344 enableval="$enable_fs_zip"
4345
4346 if test "$enableval" = yes; then
4347 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4348 else
4349 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4350 fi
4351
4352 else
4353
4354 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4355 if test "x$LINE" != x ; then
4356 eval "DEFAULT_$LINE"
4357 else
4358 no_cache=1
4359 fi
4360
4361 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4362
4363 fi
4364
4365
4366 eval "$ac_cv_use_fs_zip"
4367 if test "$no_cache" != 1; then
4368 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4369 fi
4370
4371 if test "$wxUSE_FS_ZIP" = yes; then
4372 echo "$ac_t""yes" 1>&6
4373 else
4374 echo "$ac_t""no" 1>&6
4375 fi
4376
4377
4378 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4379 echo "configure:4380: checking for --enable-zipstream" >&5
4380 no_cache=0
4381 # Check whether --enable-zipstream or --disable-zipstream was given.
4382 if test "${enable_zipstream+set}" = set; then
4383 enableval="$enable_zipstream"
4384
4385 if test "$enableval" = yes; then
4386 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4387 else
4388 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4389 fi
4390
4391 else
4392
4393 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4401
4402 fi
4403
4404
4405 eval "$ac_cv_use_zipstream"
4406 if test "$no_cache" != 1; then
4407 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4408 fi
4409
4410 if test "$wxUSE_ZIPSTREAM" = yes; then
4411 echo "$ac_t""yes" 1>&6
4412 else
4413 echo "$ac_t""no" 1>&6
4414 fi
4415
4416
4417
4418 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4419 echo "configure:4420: checking for --enable-catch_segvs" >&5
4420 no_cache=0
4421 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4422 if test "${enable_catch_segvs+set}" = set; then
4423 enableval="$enable_catch_segvs"
4424
4425 if test "$enableval" = yes; then
4426 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4427 else
4428 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4429 fi
4430
4431 else
4432
4433 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4434 if test "x$LINE" != x ; then
4435 eval "DEFAULT_$LINE"
4436 else
4437 no_cache=1
4438 fi
4439
4440 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4441
4442 fi
4443
4444
4445 eval "$ac_cv_use_catch_segvs"
4446 if test "$no_cache" != 1; then
4447 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4448 fi
4449
4450 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4451 echo "$ac_t""yes" 1>&6
4452 else
4453 echo "$ac_t""no" 1>&6
4454 fi
4455
4456
4457 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4458 echo "configure:4459: checking for --enable-snglinst" >&5
4459 no_cache=0
4460 # Check whether --enable-snglinst or --disable-snglinst was given.
4461 if test "${enable_snglinst+set}" = set; then
4462 enableval="$enable_snglinst"
4463
4464 if test "$enableval" = yes; then
4465 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4466 else
4467 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4468 fi
4469
4470 else
4471
4472 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4473 if test "x$LINE" != x ; then
4474 eval "DEFAULT_$LINE"
4475 else
4476 no_cache=1
4477 fi
4478
4479 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4480
4481 fi
4482
4483
4484 eval "$ac_cv_use_snglinst"
4485 if test "$no_cache" != 1; then
4486 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4487 fi
4488
4489 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4490 echo "$ac_t""yes" 1>&6
4491 else
4492 echo "$ac_t""no" 1>&6
4493 fi
4494
4495
4496
4497 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4498 echo "configure:4499: checking for --enable-mimetype" >&5
4499 no_cache=0
4500 # Check whether --enable-mimetype or --disable-mimetype was given.
4501 if test "${enable_mimetype+set}" = set; then
4502 enableval="$enable_mimetype"
4503
4504 if test "$enableval" = yes; then
4505 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4506 else
4507 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4508 fi
4509
4510 else
4511
4512 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4513 if test "x$LINE" != x ; then
4514 eval "DEFAULT_$LINE"
4515 else
4516 no_cache=1
4517 fi
4518
4519 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4520
4521 fi
4522
4523
4524 eval "$ac_cv_use_mimetype"
4525 if test "$no_cache" != 1; then
4526 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4527 fi
4528
4529 if test "$wxUSE_MIMETYPE" = yes; then
4530 echo "$ac_t""yes" 1>&6
4531 else
4532 echo "$ac_t""no" 1>&6
4533 fi
4534
4535
4536 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4537 echo "configure:4538: checking for --enable-system_options" >&5
4538 no_cache=0
4539 # Check whether --enable-system_options or --disable-system_options was given.
4540 if test "${enable_system_options+set}" = set; then
4541 enableval="$enable_system_options"
4542
4543 if test "$enableval" = yes; then
4544 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4545 else
4546 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4547 fi
4548
4549 else
4550
4551 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4552 if test "x$LINE" != x ; then
4553 eval "DEFAULT_$LINE"
4554 else
4555 no_cache=1
4556 fi
4557
4558 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4559
4560 fi
4561
4562
4563 eval "$ac_cv_use_system_options"
4564 if test "$no_cache" != 1; then
4565 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4566 fi
4567
4568 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4569 echo "$ac_t""yes" 1>&6
4570 else
4571 echo "$ac_t""no" 1>&6
4572 fi
4573
4574
4575
4576 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4577 echo "configure:4578: checking for --enable-url" >&5
4578 no_cache=0
4579 # Check whether --enable-url or --disable-url was given.
4580 if test "${enable_url+set}" = set; then
4581 enableval="$enable_url"
4582
4583 if test "$enableval" = yes; then
4584 ac_cv_use_url='wxUSE_URL=yes'
4585 else
4586 ac_cv_use_url='wxUSE_URL=no'
4587 fi
4588
4589 else
4590
4591 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4592 if test "x$LINE" != x ; then
4593 eval "DEFAULT_$LINE"
4594 else
4595 no_cache=1
4596 fi
4597
4598 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4599
4600 fi
4601
4602
4603 eval "$ac_cv_use_url"
4604 if test "$no_cache" != 1; then
4605 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4606 fi
4607
4608 if test "$wxUSE_URL" = yes; then
4609 echo "$ac_t""yes" 1>&6
4610 else
4611 echo "$ac_t""no" 1>&6
4612 fi
4613
4614
4615 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4616 echo "configure:4617: checking for --enable-protocol" >&5
4617 no_cache=0
4618 # Check whether --enable-protocol or --disable-protocol was given.
4619 if test "${enable_protocol+set}" = set; then
4620 enableval="$enable_protocol"
4621
4622 if test "$enableval" = yes; then
4623 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4624 else
4625 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4626 fi
4627
4628 else
4629
4630 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4631 if test "x$LINE" != x ; then
4632 eval "DEFAULT_$LINE"
4633 else
4634 no_cache=1
4635 fi
4636
4637 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4638
4639 fi
4640
4641
4642 eval "$ac_cv_use_protocol"
4643 if test "$no_cache" != 1; then
4644 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4645 fi
4646
4647 if test "$wxUSE_PROTOCOL" = yes; then
4648 echo "$ac_t""yes" 1>&6
4649 else
4650 echo "$ac_t""no" 1>&6
4651 fi
4652
4653
4654 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4655 echo "configure:4656: checking for --enable-protocol_http" >&5
4656 no_cache=0
4657 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4658 if test "${enable_protocol_http+set}" = set; then
4659 enableval="$enable_protocol_http"
4660
4661 if test "$enableval" = yes; then
4662 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4663 else
4664 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4665 fi
4666
4667 else
4668
4669 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4670 if test "x$LINE" != x ; then
4671 eval "DEFAULT_$LINE"
4672 else
4673 no_cache=1
4674 fi
4675
4676 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4677
4678 fi
4679
4680
4681 eval "$ac_cv_use_protocol_http"
4682 if test "$no_cache" != 1; then
4683 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4684 fi
4685
4686 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4687 echo "$ac_t""yes" 1>&6
4688 else
4689 echo "$ac_t""no" 1>&6
4690 fi
4691
4692
4693 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4694 echo "configure:4695: checking for --enable-protocol_ftp" >&5
4695 no_cache=0
4696 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4697 if test "${enable_protocol_ftp+set}" = set; then
4698 enableval="$enable_protocol_ftp"
4699
4700 if test "$enableval" = yes; then
4701 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4702 else
4703 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4704 fi
4705
4706 else
4707
4708 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4709 if test "x$LINE" != x ; then
4710 eval "DEFAULT_$LINE"
4711 else
4712 no_cache=1
4713 fi
4714
4715 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4716
4717 fi
4718
4719
4720 eval "$ac_cv_use_protocol_ftp"
4721 if test "$no_cache" != 1; then
4722 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4723 fi
4724
4725 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4726 echo "$ac_t""yes" 1>&6
4727 else
4728 echo "$ac_t""no" 1>&6
4729 fi
4730
4731
4732 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4733 echo "configure:4734: checking for --enable-protocol_file" >&5
4734 no_cache=0
4735 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4736 if test "${enable_protocol_file+set}" = set; then
4737 enableval="$enable_protocol_file"
4738
4739 if test "$enableval" = yes; then
4740 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4741 else
4742 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4743 fi
4744
4745 else
4746
4747 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4748 if test "x$LINE" != x ; then
4749 eval "DEFAULT_$LINE"
4750 else
4751 no_cache=1
4752 fi
4753
4754 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4755
4756 fi
4757
4758
4759 eval "$ac_cv_use_protocol_file"
4760 if test "$no_cache" != 1; then
4761 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4762 fi
4763
4764 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4765 echo "$ac_t""yes" 1>&6
4766 else
4767 echo "$ac_t""no" 1>&6
4768 fi
4769
4770
4771
4772
4773
4774 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4775 echo "configure:4776: checking for --enable-threads" >&5
4776 no_cache=0
4777 # Check whether --enable-threads or --disable-threads was given.
4778 if test "${enable_threads+set}" = set; then
4779 enableval="$enable_threads"
4780
4781 if test "$enableval" = yes; then
4782 ac_cv_use_threads='wxUSE_THREADS=yes'
4783 else
4784 ac_cv_use_threads='wxUSE_THREADS=no'
4785 fi
4786
4787 else
4788
4789 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4790 if test "x$LINE" != x ; then
4791 eval "DEFAULT_$LINE"
4792 else
4793 no_cache=1
4794 fi
4795
4796 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4797
4798 fi
4799
4800
4801 eval "$ac_cv_use_threads"
4802 if test "$no_cache" != 1; then
4803 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4804 fi
4805
4806 if test "$wxUSE_THREADS" = yes; then
4807 echo "$ac_t""yes" 1>&6
4808 else
4809 echo "$ac_t""no" 1>&6
4810 fi
4811
4812
4813 if test "$wxUSE_GUI" = "yes"; then
4814
4815
4816
4817 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4818 echo "configure:4819: checking for --enable-docview" >&5
4819 no_cache=0
4820 # Check whether --enable-docview or --disable-docview was given.
4821 if test "${enable_docview+set}" = set; then
4822 enableval="$enable_docview"
4823
4824 if test "$enableval" = yes; then
4825 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4826 else
4827 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4828 fi
4829
4830 else
4831
4832 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4833 if test "x$LINE" != x ; then
4834 eval "DEFAULT_$LINE"
4835 else
4836 no_cache=1
4837 fi
4838
4839 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4840
4841 fi
4842
4843
4844 eval "$ac_cv_use_docview"
4845 if test "$no_cache" != 1; then
4846 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4847 fi
4848
4849 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4850 echo "$ac_t""yes" 1>&6
4851 else
4852 echo "$ac_t""no" 1>&6
4853 fi
4854
4855
4856 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4857 echo "configure:4858: checking for --enable-help" >&5
4858 no_cache=0
4859 # Check whether --enable-help or --disable-help was given.
4860 if test "${enable_help+set}" = set; then
4861 enableval="$enable_help"
4862
4863 if test "$enableval" = yes; then
4864 ac_cv_use_help='wxUSE_HELP=yes'
4865 else
4866 ac_cv_use_help='wxUSE_HELP=no'
4867 fi
4868
4869 else
4870
4871 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4872 if test "x$LINE" != x ; then
4873 eval "DEFAULT_$LINE"
4874 else
4875 no_cache=1
4876 fi
4877
4878 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4879
4880 fi
4881
4882
4883 eval "$ac_cv_use_help"
4884 if test "$no_cache" != 1; then
4885 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4886 fi
4887
4888 if test "$wxUSE_HELP" = yes; then
4889 echo "$ac_t""yes" 1>&6
4890 else
4891 echo "$ac_t""no" 1>&6
4892 fi
4893
4894
4895 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4896 echo "configure:4897: checking for --enable-mshtmlhelp" >&5
4897 no_cache=0
4898 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4899 if test "${enable_mshtmlhelp+set}" = set; then
4900 enableval="$enable_mshtmlhelp"
4901
4902 if test "$enableval" = yes; then
4903 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4904 else
4905 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4906 fi
4907
4908 else
4909
4910 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4911 if test "x$LINE" != x ; then
4912 eval "DEFAULT_$LINE"
4913 else
4914 no_cache=1
4915 fi
4916
4917 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4918
4919 fi
4920
4921
4922 eval "$ac_cv_use_mshtmlhelp"
4923 if test "$no_cache" != 1; then
4924 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4925 fi
4926
4927 if test "$wxUSE_MS_HTML_HELP" = yes; then
4928 echo "$ac_t""yes" 1>&6
4929 else
4930 echo "$ac_t""no" 1>&6
4931 fi
4932
4933
4934 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4935 echo "configure:4936: checking for --enable-html" >&5
4936 no_cache=0
4937 # Check whether --enable-html or --disable-html was given.
4938 if test "${enable_html+set}" = set; then
4939 enableval="$enable_html"
4940
4941 if test "$enableval" = yes; then
4942 ac_cv_use_html='wxUSE_HTML=yes'
4943 else
4944 ac_cv_use_html='wxUSE_HTML=no'
4945 fi
4946
4947 else
4948
4949 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4950 if test "x$LINE" != x ; then
4951 eval "DEFAULT_$LINE"
4952 else
4953 no_cache=1
4954 fi
4955
4956 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4957
4958 fi
4959
4960
4961 eval "$ac_cv_use_html"
4962 if test "$no_cache" != 1; then
4963 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4964 fi
4965
4966 if test "$wxUSE_HTML" = yes; then
4967 echo "$ac_t""yes" 1>&6
4968 else
4969 echo "$ac_t""no" 1>&6
4970 fi
4971
4972
4973 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4974 echo "configure:4975: checking for --enable-htmlhelp" >&5
4975 no_cache=0
4976 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4977 if test "${enable_htmlhelp+set}" = set; then
4978 enableval="$enable_htmlhelp"
4979
4980 if test "$enableval" = yes; then
4981 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4982 else
4983 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4984 fi
4985
4986 else
4987
4988 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4989 if test "x$LINE" != x ; then
4990 eval "DEFAULT_$LINE"
4991 else
4992 no_cache=1
4993 fi
4994
4995 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4996
4997 fi
4998
4999
5000 eval "$ac_cv_use_htmlhelp"
5001 if test "$no_cache" != 1; then
5002 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5003 fi
5004
5005 if test "$wxUSE_WXHTML_HELP" = yes; then
5006 echo "$ac_t""yes" 1>&6
5007 else
5008 echo "$ac_t""no" 1>&6
5009 fi
5010
5011
5012 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5013 echo "configure:5014: checking for --enable-constraints" >&5
5014 no_cache=0
5015 # Check whether --enable-constraints or --disable-constraints was given.
5016 if test "${enable_constraints+set}" = set; then
5017 enableval="$enable_constraints"
5018
5019 if test "$enableval" = yes; then
5020 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5021 else
5022 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5023 fi
5024
5025 else
5026
5027 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5028 if test "x$LINE" != x ; then
5029 eval "DEFAULT_$LINE"
5030 else
5031 no_cache=1
5032 fi
5033
5034 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5035
5036 fi
5037
5038
5039 eval "$ac_cv_use_constraints"
5040 if test "$no_cache" != 1; then
5041 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5042 fi
5043
5044 if test "$wxUSE_CONSTRAINTS" = yes; then
5045 echo "$ac_t""yes" 1>&6
5046 else
5047 echo "$ac_t""no" 1>&6
5048 fi
5049
5050
5051 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5052 echo "configure:5053: checking for --enable-printarch" >&5
5053 no_cache=0
5054 # Check whether --enable-printarch or --disable-printarch was given.
5055 if test "${enable_printarch+set}" = set; then
5056 enableval="$enable_printarch"
5057
5058 if test "$enableval" = yes; then
5059 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5060 else
5061 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5062 fi
5063
5064 else
5065
5066 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5067 if test "x$LINE" != x ; then
5068 eval "DEFAULT_$LINE"
5069 else
5070 no_cache=1
5071 fi
5072
5073 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5074
5075 fi
5076
5077
5078 eval "$ac_cv_use_printarch"
5079 if test "$no_cache" != 1; then
5080 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5081 fi
5082
5083 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5084 echo "$ac_t""yes" 1>&6
5085 else
5086 echo "$ac_t""no" 1>&6
5087 fi
5088
5089
5090 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5091 echo "configure:5092: checking for --enable-mdi" >&5
5092 no_cache=0
5093 # Check whether --enable-mdi or --disable-mdi was given.
5094 if test "${enable_mdi+set}" = set; then
5095 enableval="$enable_mdi"
5096
5097 if test "$enableval" = yes; then
5098 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5099 else
5100 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5101 fi
5102
5103 else
5104
5105 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5106 if test "x$LINE" != x ; then
5107 eval "DEFAULT_$LINE"
5108 else
5109 no_cache=1
5110 fi
5111
5112 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5113
5114 fi
5115
5116
5117 eval "$ac_cv_use_mdi"
5118 if test "$no_cache" != 1; then
5119 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5120 fi
5121
5122 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5123 echo "$ac_t""yes" 1>&6
5124 else
5125 echo "$ac_t""no" 1>&6
5126 fi
5127
5128
5129 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5130 echo "configure:5131: checking for --enable-loggui" >&5
5131 no_cache=0
5132 # Check whether --enable-loggui or --disable-loggui was given.
5133 if test "${enable_loggui+set}" = set; then
5134 enableval="$enable_loggui"
5135
5136 if test "$enableval" = yes; then
5137 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5138 else
5139 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5140 fi
5141
5142 else
5143
5144 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5145 if test "x$LINE" != x ; then
5146 eval "DEFAULT_$LINE"
5147 else
5148 no_cache=1
5149 fi
5150
5151 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5152
5153 fi
5154
5155
5156 eval "$ac_cv_use_loggui"
5157 if test "$no_cache" != 1; then
5158 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5159 fi
5160
5161 if test "$wxUSE_LOGGUI" = yes; then
5162 echo "$ac_t""yes" 1>&6
5163 else
5164 echo "$ac_t""no" 1>&6
5165 fi
5166
5167
5168 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5169 echo "configure:5170: checking for --enable-logwin" >&5
5170 no_cache=0
5171 # Check whether --enable-logwin or --disable-logwin was given.
5172 if test "${enable_logwin+set}" = set; then
5173 enableval="$enable_logwin"
5174
5175 if test "$enableval" = yes; then
5176 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5177 else
5178 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5179 fi
5180
5181 else
5182
5183 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5184 if test "x$LINE" != x ; then
5185 eval "DEFAULT_$LINE"
5186 else
5187 no_cache=1
5188 fi
5189
5190 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5191
5192 fi
5193
5194
5195 eval "$ac_cv_use_logwin"
5196 if test "$no_cache" != 1; then
5197 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5198 fi
5199
5200 if test "$wxUSE_LOGWINDOW" = yes; then
5201 echo "$ac_t""yes" 1>&6
5202 else
5203 echo "$ac_t""no" 1>&6
5204 fi
5205
5206
5207 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5208 echo "configure:5209: checking for --enable-logdialog" >&5
5209 no_cache=0
5210 # Check whether --enable-logdialog or --disable-logdialog was given.
5211 if test "${enable_logdialog+set}" = set; then
5212 enableval="$enable_logdialog"
5213
5214 if test "$enableval" = yes; then
5215 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5216 else
5217 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5218 fi
5219
5220 else
5221
5222 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5223 if test "x$LINE" != x ; then
5224 eval "DEFAULT_$LINE"
5225 else
5226 no_cache=1
5227 fi
5228
5229 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5230
5231 fi
5232
5233
5234 eval "$ac_cv_use_logdialog"
5235 if test "$no_cache" != 1; then
5236 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5237 fi
5238
5239 if test "$wxUSE_LOGDIALOG" = yes; then
5240 echo "$ac_t""yes" 1>&6
5241 else
5242 echo "$ac_t""no" 1>&6
5243 fi
5244
5245
5246
5247 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5248 echo "configure:5249: checking for --enable-postscript" >&5
5249 no_cache=0
5250 # Check whether --enable-postscript or --disable-postscript was given.
5251 if test "${enable_postscript+set}" = set; then
5252 enableval="$enable_postscript"
5253
5254 if test "$enableval" = yes; then
5255 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5256 else
5257 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5258 fi
5259
5260 else
5261
5262 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5263 if test "x$LINE" != x ; then
5264 eval "DEFAULT_$LINE"
5265 else
5266 no_cache=1
5267 fi
5268
5269 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5270
5271 fi
5272
5273
5274 eval "$ac_cv_use_postscript"
5275 if test "$no_cache" != 1; then
5276 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5277 fi
5278
5279 if test "$wxUSE_POSTSCRIPT" = yes; then
5280 echo "$ac_t""yes" 1>&6
5281 else
5282 echo "$ac_t""no" 1>&6
5283 fi
5284
5285
5286
5287
5288
5289 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5290 echo "configure:5291: checking for --enable-prologio" >&5
5291 no_cache=0
5292 # Check whether --enable-prologio or --disable-prologio was given.
5293 if test "${enable_prologio+set}" = set; then
5294 enableval="$enable_prologio"
5295
5296 if test "$enableval" = yes; then
5297 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5298 else
5299 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5300 fi
5301
5302 else
5303
5304 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5305 if test "x$LINE" != x ; then
5306 eval "DEFAULT_$LINE"
5307 else
5308 no_cache=1
5309 fi
5310
5311 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5312
5313 fi
5314
5315
5316 eval "$ac_cv_use_prologio"
5317 if test "$no_cache" != 1; then
5318 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5319 fi
5320
5321 if test "$wxUSE_PROLOGIO" = yes; then
5322 echo "$ac_t""yes" 1>&6
5323 else
5324 echo "$ac_t""no" 1>&6
5325 fi
5326
5327
5328 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5329 echo "configure:5330: checking for --enable-resources" >&5
5330 no_cache=0
5331 # Check whether --enable-resources or --disable-resources was given.
5332 if test "${enable_resources+set}" = set; then
5333 enableval="$enable_resources"
5334
5335 if test "$enableval" = yes; then
5336 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5337 else
5338 ac_cv_use_resources='wxUSE_RESOURCES=no'
5339 fi
5340
5341 else
5342
5343 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5344 if test "x$LINE" != x ; then
5345 eval "DEFAULT_$LINE"
5346 else
5347 no_cache=1
5348 fi
5349
5350 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5351
5352 fi
5353
5354
5355 eval "$ac_cv_use_resources"
5356 if test "$no_cache" != 1; then
5357 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5358 fi
5359
5360 if test "$wxUSE_RESOURCES" = yes; then
5361 echo "$ac_t""yes" 1>&6
5362 else
5363 echo "$ac_t""no" 1>&6
5364 fi
5365
5366
5367
5368 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5369 echo "configure:5370: checking for --enable-xresources" >&5
5370 no_cache=0
5371 # Check whether --enable-xresources or --disable-xresources was given.
5372 if test "${enable_xresources+set}" = set; then
5373 enableval="$enable_xresources"
5374
5375 if test "$enableval" = yes; then
5376 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5377 else
5378 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5379 fi
5380
5381 else
5382
5383 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5384 if test "x$LINE" != x ; then
5385 eval "DEFAULT_$LINE"
5386 else
5387 no_cache=1
5388 fi
5389
5390 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5391
5392 fi
5393
5394
5395 eval "$ac_cv_use_xresources"
5396 if test "$no_cache" != 1; then
5397 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5398 fi
5399
5400 if test "$wxUSE_X_RESOURCES" = yes; then
5401 echo "$ac_t""yes" 1>&6
5402 else
5403 echo "$ac_t""no" 1>&6
5404 fi
5405
5406
5407
5408
5409 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5410 echo "configure:5411: checking for --enable-clipboard" >&5
5411 no_cache=0
5412 # Check whether --enable-clipboard or --disable-clipboard was given.
5413 if test "${enable_clipboard+set}" = set; then
5414 enableval="$enable_clipboard"
5415
5416 if test "$enableval" = yes; then
5417 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5418 else
5419 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5420 fi
5421
5422 else
5423
5424 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5425 if test "x$LINE" != x ; then
5426 eval "DEFAULT_$LINE"
5427 else
5428 no_cache=1
5429 fi
5430
5431 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5432
5433 fi
5434
5435
5436 eval "$ac_cv_use_clipboard"
5437 if test "$no_cache" != 1; then
5438 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5439 fi
5440
5441 if test "$wxUSE_CLIPBOARD" = yes; then
5442 echo "$ac_t""yes" 1>&6
5443 else
5444 echo "$ac_t""no" 1>&6
5445 fi
5446
5447
5448 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5449 echo "configure:5450: checking for --enable-dnd" >&5
5450 no_cache=0
5451 # Check whether --enable-dnd or --disable-dnd was given.
5452 if test "${enable_dnd+set}" = set; then
5453 enableval="$enable_dnd"
5454
5455 if test "$enableval" = yes; then
5456 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5457 else
5458 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5459 fi
5460
5461 else
5462
5463 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5464 if test "x$LINE" != x ; then
5465 eval "DEFAULT_$LINE"
5466 else
5467 no_cache=1
5468 fi
5469
5470 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5471
5472 fi
5473
5474
5475 eval "$ac_cv_use_dnd"
5476 if test "$no_cache" != 1; then
5477 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5478 fi
5479
5480 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5481 echo "$ac_t""yes" 1>&6
5482 else
5483 echo "$ac_t""no" 1>&6
5484 fi
5485
5486
5487 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5488 echo "configure:5489: checking for --enable-metafile" >&5
5489 no_cache=0
5490 # Check whether --enable-metafile or --disable-metafile was given.
5491 if test "${enable_metafile+set}" = set; then
5492 enableval="$enable_metafile"
5493
5494 if test "$enableval" = yes; then
5495 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5496 else
5497 ac_cv_use_metafile='wxUSE_METAFILE=no'
5498 fi
5499
5500 else
5501
5502 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5503 if test "x$LINE" != x ; then
5504 eval "DEFAULT_$LINE"
5505 else
5506 no_cache=1
5507 fi
5508
5509 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5510
5511 fi
5512
5513
5514 eval "$ac_cv_use_metafile"
5515 if test "$no_cache" != 1; then
5516 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5517 fi
5518
5519 if test "$wxUSE_METAFILE" = yes; then
5520 echo "$ac_t""yes" 1>&6
5521 else
5522 echo "$ac_t""no" 1>&6
5523 fi
5524
5525
5526
5527 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5528 echo "configure:5529: checking for --enable-treelayout" >&5
5529 no_cache=0
5530 # Check whether --enable-treelayout or --disable-treelayout was given.
5531 if test "${enable_treelayout+set}" = set; then
5532 enableval="$enable_treelayout"
5533
5534 if test "$enableval" = yes; then
5535 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5536 else
5537 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5538 fi
5539
5540 else
5541
5542 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5543 if test "x$LINE" != x ; then
5544 eval "DEFAULT_$LINE"
5545 else
5546 no_cache=1
5547 fi
5548
5549 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5550
5551 fi
5552
5553
5554 eval "$ac_cv_use_treelayout"
5555 if test "$no_cache" != 1; then
5556 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5557 fi
5558
5559 if test "$wxUSE_TREELAYOUT" = yes; then
5560 echo "$ac_t""yes" 1>&6
5561 else
5562 echo "$ac_t""no" 1>&6
5563 fi
5564
5565
5566
5567
5568 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5569 echo "configure:5570: checking for --enable-controls" >&5
5570 no_cache=0
5571 # Check whether --enable-controls or --disable-controls was given.
5572 if test "${enable_controls+set}" = set; then
5573 enableval="$enable_controls"
5574
5575 if test "$enableval" = yes; then
5576 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5577 else
5578 ac_cv_use_controls='wxUSE_CONTROLS=no'
5579 fi
5580
5581 else
5582
5583 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5584 if test "x$LINE" != x ; then
5585 eval "DEFAULT_$LINE"
5586 else
5587 no_cache=1
5588 fi
5589
5590 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5591
5592 fi
5593
5594
5595 eval "$ac_cv_use_controls"
5596 if test "$no_cache" != 1; then
5597 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5598 fi
5599
5600 if test "$wxUSE_CONTROLS" = yes; then
5601 echo "$ac_t""yes" 1>&6
5602 else
5603 echo "$ac_t""no" 1>&6
5604 fi
5605
5606
5607 if test "$wxUSE_CONTROLS" = "yes"; then
5608 DEFAULT_wxUSE_ACCEL=yes
5609 DEFAULT_wxUSE_BMPBUTTON=yes
5610 DEFAULT_wxUSE_BUTTON=yes
5611 DEFAULT_wxUSE_CALCTRL=no
5612 DEFAULT_wxUSE_CARET=yes
5613 DEFAULT_wxUSE_COMBOBOX=yes
5614 DEFAULT_wxUSE_CHECKBOX=yes
5615 DEFAULT_wxUSE_CHECKLISTBOX=yes
5616 DEFAULT_wxUSE_CHOICE=yes
5617 DEFAULT_wxUSE_GAUGE=yes
5618 DEFAULT_wxUSE_GRID=yes
5619 DEFAULT_wxUSE_NEW_GRID=yes
5620 DEFAULT_wxUSE_IMAGLIST=yes
5621 DEFAULT_wxUSE_LISTBOX=yes
5622 DEFAULT_wxUSE_LISTCTRL=yes
5623 DEFAULT_wxUSE_NOTEBOOK=yes
5624 DEFAULT_wxUSE_PROPSHEET=yes
5625 DEFAULT_wxUSE_RADIOBOX=yes
5626 DEFAULT_wxUSE_RADIOBTN=yes
5627 DEFAULT_wxUSE_SASH=yes
5628 DEFAULT_wxUSE_SCROLLBAR=yes
5629 DEFAULT_wxUSE_SLIDER=yes
5630 DEFAULT_wxUSE_SPINBTN=yes
5631 DEFAULT_wxUSE_SPINCTRL=yes
5632 DEFAULT_wxUSE_SPLITTER=yes
5633 DEFAULT_wxUSE_STATBMP=yes
5634 DEFAULT_wxUSE_STATBOX=yes
5635 DEFAULT_wxUSE_STATLINE=yes
5636 DEFAULT_wxUSE_STATUSBAR=yes
5637 DEFAULT_wxUSE_TAB_DIALOG=yes
5638 DEFAULT_wxUSE_TOGGLEBTN=yes
5639 DEFAULT_wxUSE_TOOLBAR=yes
5640 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5641 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5642 DEFAULT_wxUSE_TOOLTIPS=yes
5643 DEFAULT_wxUSE_TREECTRL=yes
5644 DEFAULT_wxUSE_POPUPWIN=yes
5645 DEFAULT_wxUSE_TIPWINDOW=yes
5646 elif test "$wxUSE_CONTROLS" = "no"; then
5647 DEFAULT_wxUSE_ACCEL=no
5648 DEFAULT_wxUSE_BMPBUTTON=no
5649 DEFAULT_wxUSE_BUTTON=no
5650 DEFAULT_wxUSE_CALCTRL=no
5651 DEFAULT_wxUSE_CARET=no
5652 DEFAULT_wxUSE_COMBOBOX=no
5653 DEFAULT_wxUSE_CHECKBOX=no
5654 DEFAULT_wxUSE_CHECKLISTBOX=no
5655 DEFAULT_wxUSE_CHOICE=no
5656 DEFAULT_wxUSE_GAUGE=no
5657 DEFAULT_wxUSE_GRID=no
5658 DEFAULT_wxUSE_NEW_GRID=no
5659 DEFAULT_wxUSE_IMAGLIST=no
5660 DEFAULT_wxUSE_LISTBOX=no
5661 DEFAULT_wxUSE_LISTCTRL=no
5662 DEFAULT_wxUSE_NOTEBOOK=no
5663 DEFAULT_wxUSE_PROPSHEET=no
5664 DEFAULT_wxUSE_RADIOBOX=no
5665 DEFAULT_wxUSE_RADIOBTN=no
5666 DEFAULT_wxUSE_SASH=no
5667 DEFAULT_wxUSE_SCROLLBAR=no
5668 DEFAULT_wxUSE_SLIDER=no
5669 DEFAULT_wxUSE_SPINBTN=no
5670 DEFAULT_wxUSE_SPINCTRL=no
5671 DEFAULT_wxUSE_SPLITTER=no
5672 DEFAULT_wxUSE_STATBMP=no
5673 DEFAULT_wxUSE_STATBOX=no
5674 DEFAULT_wxUSE_STATLINE=no
5675 DEFAULT_wxUSE_STATUSBAR=no
5676 DEFAULT_wxUSE_TAB_DIALOG=no
5677 DEFAULT_wxUSE_TOGGLEBTN=no
5678 DEFAULT_wxUSE_TOOLBAR=no
5679 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5680 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5681 DEFAULT_wxUSE_TOOLTIPS=no
5682 DEFAULT_wxUSE_TREECTRL=no
5683 DEFAULT_wxUSE_POPUPWIN=no
5684 DEFAULT_wxUSE_TIPWINDOW=no
5685 fi
5686
5687
5688 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5689 echo "configure:5690: checking for --enable-accel" >&5
5690 no_cache=0
5691 # Check whether --enable-accel or --disable-accel was given.
5692 if test "${enable_accel+set}" = set; then
5693 enableval="$enable_accel"
5694
5695 if test "$enableval" = yes; then
5696 ac_cv_use_accel='wxUSE_ACCEL=yes'
5697 else
5698 ac_cv_use_accel='wxUSE_ACCEL=no'
5699 fi
5700
5701 else
5702
5703 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5704 if test "x$LINE" != x ; then
5705 eval "DEFAULT_$LINE"
5706 else
5707 no_cache=1
5708 fi
5709
5710 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5711
5712 fi
5713
5714
5715 eval "$ac_cv_use_accel"
5716 if test "$no_cache" != 1; then
5717 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5718 fi
5719
5720 if test "$wxUSE_ACCEL" = yes; then
5721 echo "$ac_t""yes" 1>&6
5722 else
5723 echo "$ac_t""no" 1>&6
5724 fi
5725
5726
5727 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5728 echo "configure:5729: checking for --enable-button" >&5
5729 no_cache=0
5730 # Check whether --enable-button or --disable-button was given.
5731 if test "${enable_button+set}" = set; then
5732 enableval="$enable_button"
5733
5734 if test "$enableval" = yes; then
5735 ac_cv_use_button='wxUSE_BUTTON=yes'
5736 else
5737 ac_cv_use_button='wxUSE_BUTTON=no'
5738 fi
5739
5740 else
5741
5742 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5743 if test "x$LINE" != x ; then
5744 eval "DEFAULT_$LINE"
5745 else
5746 no_cache=1
5747 fi
5748
5749 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5750
5751 fi
5752
5753
5754 eval "$ac_cv_use_button"
5755 if test "$no_cache" != 1; then
5756 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5757 fi
5758
5759 if test "$wxUSE_BUTTON" = yes; then
5760 echo "$ac_t""yes" 1>&6
5761 else
5762 echo "$ac_t""no" 1>&6
5763 fi
5764
5765
5766 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5767 echo "configure:5768: checking for --enable-bmpbutton" >&5
5768 no_cache=0
5769 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5770 if test "${enable_bmpbutton+set}" = set; then
5771 enableval="$enable_bmpbutton"
5772
5773 if test "$enableval" = yes; then
5774 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5775 else
5776 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5777 fi
5778
5779 else
5780
5781 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5782 if test "x$LINE" != x ; then
5783 eval "DEFAULT_$LINE"
5784 else
5785 no_cache=1
5786 fi
5787
5788 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5789
5790 fi
5791
5792
5793 eval "$ac_cv_use_bmpbutton"
5794 if test "$no_cache" != 1; then
5795 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5796 fi
5797
5798 if test "$wxUSE_BMPBUTTON" = yes; then
5799 echo "$ac_t""yes" 1>&6
5800 else
5801 echo "$ac_t""no" 1>&6
5802 fi
5803
5804
5805 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5806 echo "configure:5807: checking for --enable-calendar" >&5
5807 no_cache=0
5808 # Check whether --enable-calendar or --disable-calendar was given.
5809 if test "${enable_calendar+set}" = set; then
5810 enableval="$enable_calendar"
5811
5812 if test "$enableval" = yes; then
5813 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5814 else
5815 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5816 fi
5817
5818 else
5819
5820 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5821 if test "x$LINE" != x ; then
5822 eval "DEFAULT_$LINE"
5823 else
5824 no_cache=1
5825 fi
5826
5827 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5828
5829 fi
5830
5831
5832 eval "$ac_cv_use_calendar"
5833 if test "$no_cache" != 1; then
5834 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5835 fi
5836
5837 if test "$wxUSE_CALCTRL" = yes; then
5838 echo "$ac_t""yes" 1>&6
5839 else
5840 echo "$ac_t""no" 1>&6
5841 fi
5842
5843
5844 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5845 echo "configure:5846: checking for --enable-caret" >&5
5846 no_cache=0
5847 # Check whether --enable-caret or --disable-caret was given.
5848 if test "${enable_caret+set}" = set; then
5849 enableval="$enable_caret"
5850
5851 if test "$enableval" = yes; then
5852 ac_cv_use_caret='wxUSE_CARET=yes'
5853 else
5854 ac_cv_use_caret='wxUSE_CARET=no'
5855 fi
5856
5857 else
5858
5859 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5860 if test "x$LINE" != x ; then
5861 eval "DEFAULT_$LINE"
5862 else
5863 no_cache=1
5864 fi
5865
5866 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5867
5868 fi
5869
5870
5871 eval "$ac_cv_use_caret"
5872 if test "$no_cache" != 1; then
5873 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5874 fi
5875
5876 if test "$wxUSE_CARET" = yes; then
5877 echo "$ac_t""yes" 1>&6
5878 else
5879 echo "$ac_t""no" 1>&6
5880 fi
5881
5882
5883 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5884 echo "configure:5885: checking for --enable-checkbox" >&5
5885 no_cache=0
5886 # Check whether --enable-checkbox or --disable-checkbox was given.
5887 if test "${enable_checkbox+set}" = set; then
5888 enableval="$enable_checkbox"
5889
5890 if test "$enableval" = yes; then
5891 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5892 else
5893 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5894 fi
5895
5896 else
5897
5898 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5899 if test "x$LINE" != x ; then
5900 eval "DEFAULT_$LINE"
5901 else
5902 no_cache=1
5903 fi
5904
5905 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5906
5907 fi
5908
5909
5910 eval "$ac_cv_use_checkbox"
5911 if test "$no_cache" != 1; then
5912 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5913 fi
5914
5915 if test "$wxUSE_CHECKBOX" = yes; then
5916 echo "$ac_t""yes" 1>&6
5917 else
5918 echo "$ac_t""no" 1>&6
5919 fi
5920
5921
5922 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5923 echo "configure:5924: checking for --enable-checklst" >&5
5924 no_cache=0
5925 # Check whether --enable-checklst or --disable-checklst was given.
5926 if test "${enable_checklst+set}" = set; then
5927 enableval="$enable_checklst"
5928
5929 if test "$enableval" = yes; then
5930 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5931 else
5932 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5933 fi
5934
5935 else
5936
5937 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5938 if test "x$LINE" != x ; then
5939 eval "DEFAULT_$LINE"
5940 else
5941 no_cache=1
5942 fi
5943
5944 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5945
5946 fi
5947
5948
5949 eval "$ac_cv_use_checklst"
5950 if test "$no_cache" != 1; then
5951 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5952 fi
5953
5954 if test "$wxUSE_CHECKLST" = yes; then
5955 echo "$ac_t""yes" 1>&6
5956 else
5957 echo "$ac_t""no" 1>&6
5958 fi
5959
5960
5961 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5962 echo "configure:5963: checking for --enable-choice" >&5
5963 no_cache=0
5964 # Check whether --enable-choice or --disable-choice was given.
5965 if test "${enable_choice+set}" = set; then
5966 enableval="$enable_choice"
5967
5968 if test "$enableval" = yes; then
5969 ac_cv_use_choice='wxUSE_CHOICE=yes'
5970 else
5971 ac_cv_use_choice='wxUSE_CHOICE=no'
5972 fi
5973
5974 else
5975
5976 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5977 if test "x$LINE" != x ; then
5978 eval "DEFAULT_$LINE"
5979 else
5980 no_cache=1
5981 fi
5982
5983 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5984
5985 fi
5986
5987
5988 eval "$ac_cv_use_choice"
5989 if test "$no_cache" != 1; then
5990 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5991 fi
5992
5993 if test "$wxUSE_CHOICE" = yes; then
5994 echo "$ac_t""yes" 1>&6
5995 else
5996 echo "$ac_t""no" 1>&6
5997 fi
5998
5999
6000 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
6001 echo "configure:6002: checking for --enable-combobox" >&5
6002 no_cache=0
6003 # Check whether --enable-combobox or --disable-combobox was given.
6004 if test "${enable_combobox+set}" = set; then
6005 enableval="$enable_combobox"
6006
6007 if test "$enableval" = yes; then
6008 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6009 else
6010 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6011 fi
6012
6013 else
6014
6015 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6016 if test "x$LINE" != x ; then
6017 eval "DEFAULT_$LINE"
6018 else
6019 no_cache=1
6020 fi
6021
6022 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6023
6024 fi
6025
6026
6027 eval "$ac_cv_use_combobox"
6028 if test "$no_cache" != 1; then
6029 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6030 fi
6031
6032 if test "$wxUSE_COMBOBOX" = yes; then
6033 echo "$ac_t""yes" 1>&6
6034 else
6035 echo "$ac_t""no" 1>&6
6036 fi
6037
6038
6039 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6040 echo "configure:6041: checking for --enable-gauge" >&5
6041 no_cache=0
6042 # Check whether --enable-gauge or --disable-gauge was given.
6043 if test "${enable_gauge+set}" = set; then
6044 enableval="$enable_gauge"
6045
6046 if test "$enableval" = yes; then
6047 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6048 else
6049 ac_cv_use_gauge='wxUSE_GAUGE=no'
6050 fi
6051
6052 else
6053
6054 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6055 if test "x$LINE" != x ; then
6056 eval "DEFAULT_$LINE"
6057 else
6058 no_cache=1
6059 fi
6060
6061 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6062
6063 fi
6064
6065
6066 eval "$ac_cv_use_gauge"
6067 if test "$no_cache" != 1; then
6068 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6069 fi
6070
6071 if test "$wxUSE_GAUGE" = yes; then
6072 echo "$ac_t""yes" 1>&6
6073 else
6074 echo "$ac_t""no" 1>&6
6075 fi
6076
6077
6078 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6079 echo "configure:6080: checking for --enable-grid" >&5
6080 no_cache=0
6081 # Check whether --enable-grid or --disable-grid was given.
6082 if test "${enable_grid+set}" = set; then
6083 enableval="$enable_grid"
6084
6085 if test "$enableval" = yes; then
6086 ac_cv_use_grid='wxUSE_GRID=yes'
6087 else
6088 ac_cv_use_grid='wxUSE_GRID=no'
6089 fi
6090
6091 else
6092
6093 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6094 if test "x$LINE" != x ; then
6095 eval "DEFAULT_$LINE"
6096 else
6097 no_cache=1
6098 fi
6099
6100 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6101
6102 fi
6103
6104
6105 eval "$ac_cv_use_grid"
6106 if test "$no_cache" != 1; then
6107 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6108 fi
6109
6110 if test "$wxUSE_GRID" = yes; then
6111 echo "$ac_t""yes" 1>&6
6112 else
6113 echo "$ac_t""no" 1>&6
6114 fi
6115
6116
6117 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6118 echo "configure:6119: checking for --enable-newgrid" >&5
6119 no_cache=0
6120 # Check whether --enable-newgrid or --disable-newgrid was given.
6121 if test "${enable_newgrid+set}" = set; then
6122 enableval="$enable_newgrid"
6123
6124 if test "$enableval" = yes; then
6125 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6126 else
6127 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6128 fi
6129
6130 else
6131
6132 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6133 if test "x$LINE" != x ; then
6134 eval "DEFAULT_$LINE"
6135 else
6136 no_cache=1
6137 fi
6138
6139 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6140
6141 fi
6142
6143
6144 eval "$ac_cv_use_newgrid"
6145 if test "$no_cache" != 1; then
6146 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6147 fi
6148
6149 if test "$wxUSE_NEW_GRID" = yes; then
6150 echo "$ac_t""yes" 1>&6
6151 else
6152 echo "$ac_t""no" 1>&6
6153 fi
6154
6155
6156 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6157 echo "configure:6158: checking for --enable-imaglist" >&5
6158 no_cache=0
6159 # Check whether --enable-imaglist or --disable-imaglist was given.
6160 if test "${enable_imaglist+set}" = set; then
6161 enableval="$enable_imaglist"
6162
6163 if test "$enableval" = yes; then
6164 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6165 else
6166 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6167 fi
6168
6169 else
6170
6171 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6172 if test "x$LINE" != x ; then
6173 eval "DEFAULT_$LINE"
6174 else
6175 no_cache=1
6176 fi
6177
6178 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6179
6180 fi
6181
6182
6183 eval "$ac_cv_use_imaglist"
6184 if test "$no_cache" != 1; then
6185 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6186 fi
6187
6188 if test "$wxUSE_IMAGLIST" = yes; then
6189 echo "$ac_t""yes" 1>&6
6190 else
6191 echo "$ac_t""no" 1>&6
6192 fi
6193
6194
6195 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6196 echo "configure:6197: checking for --enable-listbox" >&5
6197 no_cache=0
6198 # Check whether --enable-listbox or --disable-listbox was given.
6199 if test "${enable_listbox+set}" = set; then
6200 enableval="$enable_listbox"
6201
6202 if test "$enableval" = yes; then
6203 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6204 else
6205 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6206 fi
6207
6208 else
6209
6210 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6211 if test "x$LINE" != x ; then
6212 eval "DEFAULT_$LINE"
6213 else
6214 no_cache=1
6215 fi
6216
6217 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6218
6219 fi
6220
6221
6222 eval "$ac_cv_use_listbox"
6223 if test "$no_cache" != 1; then
6224 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6225 fi
6226
6227 if test "$wxUSE_LISTBOX" = yes; then
6228 echo "$ac_t""yes" 1>&6
6229 else
6230 echo "$ac_t""no" 1>&6
6231 fi
6232
6233
6234 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6235 echo "configure:6236: checking for --enable-listctrl" >&5
6236 no_cache=0
6237 # Check whether --enable-listctrl or --disable-listctrl was given.
6238 if test "${enable_listctrl+set}" = set; then
6239 enableval="$enable_listctrl"
6240
6241 if test "$enableval" = yes; then
6242 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6243 else
6244 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6245 fi
6246
6247 else
6248
6249 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6250 if test "x$LINE" != x ; then
6251 eval "DEFAULT_$LINE"
6252 else
6253 no_cache=1
6254 fi
6255
6256 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6257
6258 fi
6259
6260
6261 eval "$ac_cv_use_listctrl"
6262 if test "$no_cache" != 1; then
6263 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6264 fi
6265
6266 if test "$wxUSE_LISTCTRL" = yes; then
6267 echo "$ac_t""yes" 1>&6
6268 else
6269 echo "$ac_t""no" 1>&6
6270 fi
6271
6272
6273 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6274 echo "configure:6275: checking for --enable-notebook" >&5
6275 no_cache=0
6276 # Check whether --enable-notebook or --disable-notebook was given.
6277 if test "${enable_notebook+set}" = set; then
6278 enableval="$enable_notebook"
6279
6280 if test "$enableval" = yes; then
6281 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6282 else
6283 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6284 fi
6285
6286 else
6287
6288 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6289 if test "x$LINE" != x ; then
6290 eval "DEFAULT_$LINE"
6291 else
6292 no_cache=1
6293 fi
6294
6295 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6296
6297 fi
6298
6299
6300 eval "$ac_cv_use_notebook"
6301 if test "$no_cache" != 1; then
6302 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6303 fi
6304
6305 if test "$wxUSE_NOTEBOOK" = yes; then
6306 echo "$ac_t""yes" 1>&6
6307 else
6308 echo "$ac_t""no" 1>&6
6309 fi
6310
6311
6312 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6313 echo "configure:6314: checking for --enable-propsheet" >&5
6314 no_cache=0
6315 # Check whether --enable-propsheet or --disable-propsheet was given.
6316 if test "${enable_propsheet+set}" = set; then
6317 enableval="$enable_propsheet"
6318
6319 if test "$enableval" = yes; then
6320 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6321 else
6322 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6323 fi
6324
6325 else
6326
6327 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6328 if test "x$LINE" != x ; then
6329 eval "DEFAULT_$LINE"
6330 else
6331 no_cache=1
6332 fi
6333
6334 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6335
6336 fi
6337
6338
6339 eval "$ac_cv_use_propsheet"
6340 if test "$no_cache" != 1; then
6341 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6342 fi
6343
6344 if test "$wxUSE_PROPSHEET" = yes; then
6345 echo "$ac_t""yes" 1>&6
6346 else
6347 echo "$ac_t""no" 1>&6
6348 fi
6349
6350
6351 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6352 echo "configure:6353: checking for --enable-radiobox" >&5
6353 no_cache=0
6354 # Check whether --enable-radiobox or --disable-radiobox was given.
6355 if test "${enable_radiobox+set}" = set; then
6356 enableval="$enable_radiobox"
6357
6358 if test "$enableval" = yes; then
6359 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6360 else
6361 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6362 fi
6363
6364 else
6365
6366 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6367 if test "x$LINE" != x ; then
6368 eval "DEFAULT_$LINE"
6369 else
6370 no_cache=1
6371 fi
6372
6373 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6374
6375 fi
6376
6377
6378 eval "$ac_cv_use_radiobox"
6379 if test "$no_cache" != 1; then
6380 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6381 fi
6382
6383 if test "$wxUSE_RADIOBOX" = yes; then
6384 echo "$ac_t""yes" 1>&6
6385 else
6386 echo "$ac_t""no" 1>&6
6387 fi
6388
6389
6390 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6391 echo "configure:6392: checking for --enable-radiobtn" >&5
6392 no_cache=0
6393 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6394 if test "${enable_radiobtn+set}" = set; then
6395 enableval="$enable_radiobtn"
6396
6397 if test "$enableval" = yes; then
6398 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6399 else
6400 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6401 fi
6402
6403 else
6404
6405 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6406 if test "x$LINE" != x ; then
6407 eval "DEFAULT_$LINE"
6408 else
6409 no_cache=1
6410 fi
6411
6412 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6413
6414 fi
6415
6416
6417 eval "$ac_cv_use_radiobtn"
6418 if test "$no_cache" != 1; then
6419 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6420 fi
6421
6422 if test "$wxUSE_RADIOBTN" = yes; then
6423 echo "$ac_t""yes" 1>&6
6424 else
6425 echo "$ac_t""no" 1>&6
6426 fi
6427
6428
6429 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6430 echo "configure:6431: checking for --enable-sash" >&5
6431 no_cache=0
6432 # Check whether --enable-sash or --disable-sash was given.
6433 if test "${enable_sash+set}" = set; then
6434 enableval="$enable_sash"
6435
6436 if test "$enableval" = yes; then
6437 ac_cv_use_sash='wxUSE_SASH=yes'
6438 else
6439 ac_cv_use_sash='wxUSE_SASH=no'
6440 fi
6441
6442 else
6443
6444 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6445 if test "x$LINE" != x ; then
6446 eval "DEFAULT_$LINE"
6447 else
6448 no_cache=1
6449 fi
6450
6451 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6452
6453 fi
6454
6455
6456 eval "$ac_cv_use_sash"
6457 if test "$no_cache" != 1; then
6458 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6459 fi
6460
6461 if test "$wxUSE_SASH" = yes; then
6462 echo "$ac_t""yes" 1>&6
6463 else
6464 echo "$ac_t""no" 1>&6
6465 fi
6466
6467
6468 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6469 echo "configure:6470: checking for --enable-scrollbar" >&5
6470 no_cache=0
6471 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6472 if test "${enable_scrollbar+set}" = set; then
6473 enableval="$enable_scrollbar"
6474
6475 if test "$enableval" = yes; then
6476 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6477 else
6478 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6479 fi
6480
6481 else
6482
6483 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6484 if test "x$LINE" != x ; then
6485 eval "DEFAULT_$LINE"
6486 else
6487 no_cache=1
6488 fi
6489
6490 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6491
6492 fi
6493
6494
6495 eval "$ac_cv_use_scrollbar"
6496 if test "$no_cache" != 1; then
6497 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6498 fi
6499
6500 if test "$wxUSE_SCROLLBAR" = yes; then
6501 echo "$ac_t""yes" 1>&6
6502 else
6503 echo "$ac_t""no" 1>&6
6504 fi
6505
6506
6507 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6508 echo "configure:6509: checking for --enable-slider" >&5
6509 no_cache=0
6510 # Check whether --enable-slider or --disable-slider was given.
6511 if test "${enable_slider+set}" = set; then
6512 enableval="$enable_slider"
6513
6514 if test "$enableval" = yes; then
6515 ac_cv_use_slider='wxUSE_SLIDER=yes'
6516 else
6517 ac_cv_use_slider='wxUSE_SLIDER=no'
6518 fi
6519
6520 else
6521
6522 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6523 if test "x$LINE" != x ; then
6524 eval "DEFAULT_$LINE"
6525 else
6526 no_cache=1
6527 fi
6528
6529 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6530
6531 fi
6532
6533
6534 eval "$ac_cv_use_slider"
6535 if test "$no_cache" != 1; then
6536 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6537 fi
6538
6539 if test "$wxUSE_SLIDER" = yes; then
6540 echo "$ac_t""yes" 1>&6
6541 else
6542 echo "$ac_t""no" 1>&6
6543 fi
6544
6545
6546 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6547 echo "configure:6548: checking for --enable-spinbtn" >&5
6548 no_cache=0
6549 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6550 if test "${enable_spinbtn+set}" = set; then
6551 enableval="$enable_spinbtn"
6552
6553 if test "$enableval" = yes; then
6554 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6555 else
6556 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6557 fi
6558
6559 else
6560
6561 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6562 if test "x$LINE" != x ; then
6563 eval "DEFAULT_$LINE"
6564 else
6565 no_cache=1
6566 fi
6567
6568 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6569
6570 fi
6571
6572
6573 eval "$ac_cv_use_spinbtn"
6574 if test "$no_cache" != 1; then
6575 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6576 fi
6577
6578 if test "$wxUSE_SPINBTN" = yes; then
6579 echo "$ac_t""yes" 1>&6
6580 else
6581 echo "$ac_t""no" 1>&6
6582 fi
6583
6584
6585 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6586 echo "configure:6587: checking for --enable-spinctrl" >&5
6587 no_cache=0
6588 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6589 if test "${enable_spinctrl+set}" = set; then
6590 enableval="$enable_spinctrl"
6591
6592 if test "$enableval" = yes; then
6593 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6594 else
6595 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6596 fi
6597
6598 else
6599
6600 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6601 if test "x$LINE" != x ; then
6602 eval "DEFAULT_$LINE"
6603 else
6604 no_cache=1
6605 fi
6606
6607 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6608
6609 fi
6610
6611
6612 eval "$ac_cv_use_spinctrl"
6613 if test "$no_cache" != 1; then
6614 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6615 fi
6616
6617 if test "$wxUSE_SPINCTRL" = yes; then
6618 echo "$ac_t""yes" 1>&6
6619 else
6620 echo "$ac_t""no" 1>&6
6621 fi
6622
6623
6624 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6625 echo "configure:6626: checking for --enable-splitter" >&5
6626 no_cache=0
6627 # Check whether --enable-splitter or --disable-splitter was given.
6628 if test "${enable_splitter+set}" = set; then
6629 enableval="$enable_splitter"
6630
6631 if test "$enableval" = yes; then
6632 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6633 else
6634 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6635 fi
6636
6637 else
6638
6639 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6640 if test "x$LINE" != x ; then
6641 eval "DEFAULT_$LINE"
6642 else
6643 no_cache=1
6644 fi
6645
6646 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6647
6648 fi
6649
6650
6651 eval "$ac_cv_use_splitter"
6652 if test "$no_cache" != 1; then
6653 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6654 fi
6655
6656 if test "$wxUSE_SPLITTER" = yes; then
6657 echo "$ac_t""yes" 1>&6
6658 else
6659 echo "$ac_t""no" 1>&6
6660 fi
6661
6662
6663 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6664 echo "configure:6665: checking for --enable-statbmp" >&5
6665 no_cache=0
6666 # Check whether --enable-statbmp or --disable-statbmp was given.
6667 if test "${enable_statbmp+set}" = set; then
6668 enableval="$enable_statbmp"
6669
6670 if test "$enableval" = yes; then
6671 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6672 else
6673 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6674 fi
6675
6676 else
6677
6678 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6679 if test "x$LINE" != x ; then
6680 eval "DEFAULT_$LINE"
6681 else
6682 no_cache=1
6683 fi
6684
6685 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6686
6687 fi
6688
6689
6690 eval "$ac_cv_use_statbmp"
6691 if test "$no_cache" != 1; then
6692 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6693 fi
6694
6695 if test "$wxUSE_STATBMP" = yes; then
6696 echo "$ac_t""yes" 1>&6
6697 else
6698 echo "$ac_t""no" 1>&6
6699 fi
6700
6701
6702 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6703 echo "configure:6704: checking for --enable-statbox" >&5
6704 no_cache=0
6705 # Check whether --enable-statbox or --disable-statbox was given.
6706 if test "${enable_statbox+set}" = set; then
6707 enableval="$enable_statbox"
6708
6709 if test "$enableval" = yes; then
6710 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6711 else
6712 ac_cv_use_statbox='wxUSE_STATBOX=no'
6713 fi
6714
6715 else
6716
6717 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6718 if test "x$LINE" != x ; then
6719 eval "DEFAULT_$LINE"
6720 else
6721 no_cache=1
6722 fi
6723
6724 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6725
6726 fi
6727
6728
6729 eval "$ac_cv_use_statbox"
6730 if test "$no_cache" != 1; then
6731 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6732 fi
6733
6734 if test "$wxUSE_STATBOX" = yes; then
6735 echo "$ac_t""yes" 1>&6
6736 else
6737 echo "$ac_t""no" 1>&6
6738 fi
6739
6740
6741 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6742 echo "configure:6743: checking for --enable-statline" >&5
6743 no_cache=0
6744 # Check whether --enable-statline or --disable-statline was given.
6745 if test "${enable_statline+set}" = set; then
6746 enableval="$enable_statline"
6747
6748 if test "$enableval" = yes; then
6749 ac_cv_use_statline='wxUSE_STATLINE=yes'
6750 else
6751 ac_cv_use_statline='wxUSE_STATLINE=no'
6752 fi
6753
6754 else
6755
6756 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6757 if test "x$LINE" != x ; then
6758 eval "DEFAULT_$LINE"
6759 else
6760 no_cache=1
6761 fi
6762
6763 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6764
6765 fi
6766
6767
6768 eval "$ac_cv_use_statline"
6769 if test "$no_cache" != 1; then
6770 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6771 fi
6772
6773 if test "$wxUSE_STATLINE" = yes; then
6774 echo "$ac_t""yes" 1>&6
6775 else
6776 echo "$ac_t""no" 1>&6
6777 fi
6778
6779
6780 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6781 echo "configure:6782: checking for --enable-stattext" >&5
6782 no_cache=0
6783 # Check whether --enable-stattext or --disable-stattext was given.
6784 if test "${enable_stattext+set}" = set; then
6785 enableval="$enable_stattext"
6786
6787 if test "$enableval" = yes; then
6788 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6789 else
6790 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6791 fi
6792
6793 else
6794
6795 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6796 if test "x$LINE" != x ; then
6797 eval "DEFAULT_$LINE"
6798 else
6799 no_cache=1
6800 fi
6801
6802 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6803
6804 fi
6805
6806
6807 eval "$ac_cv_use_stattext"
6808 if test "$no_cache" != 1; then
6809 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6810 fi
6811
6812 if test "$wxUSE_STATTEXT" = yes; then
6813 echo "$ac_t""yes" 1>&6
6814 else
6815 echo "$ac_t""no" 1>&6
6816 fi
6817
6818
6819 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6820 echo "configure:6821: checking for --enable-statusbar" >&5
6821 no_cache=0
6822 # Check whether --enable-statusbar or --disable-statusbar was given.
6823 if test "${enable_statusbar+set}" = set; then
6824 enableval="$enable_statusbar"
6825
6826 if test "$enableval" = yes; then
6827 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6828 else
6829 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6830 fi
6831
6832 else
6833
6834 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6835 if test "x$LINE" != x ; then
6836 eval "DEFAULT_$LINE"
6837 else
6838 no_cache=1
6839 fi
6840
6841 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6842
6843 fi
6844
6845
6846 eval "$ac_cv_use_statusbar"
6847 if test "$no_cache" != 1; then
6848 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6849 fi
6850
6851 if test "$wxUSE_STATUSBAR" = yes; then
6852 echo "$ac_t""yes" 1>&6
6853 else
6854 echo "$ac_t""no" 1>&6
6855 fi
6856
6857
6858 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6859 echo "configure:6860: checking for --enable-tabdialog" >&5
6860 no_cache=0
6861 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6862 if test "${enable_tabdialog+set}" = set; then
6863 enableval="$enable_tabdialog"
6864
6865 if test "$enableval" = yes; then
6866 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6867 else
6868 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6869 fi
6870
6871 else
6872
6873 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6874 if test "x$LINE" != x ; then
6875 eval "DEFAULT_$LINE"
6876 else
6877 no_cache=1
6878 fi
6879
6880 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6881
6882 fi
6883
6884
6885 eval "$ac_cv_use_tabdialog"
6886 if test "$no_cache" != 1; then
6887 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6888 fi
6889
6890 if test "$wxUSE_TABDIALOG" = yes; then
6891 echo "$ac_t""yes" 1>&6
6892 else
6893 echo "$ac_t""no" 1>&6
6894 fi
6895
6896
6897 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6898 echo "configure:6899: checking for --enable-textctrl" >&5
6899 no_cache=0
6900 # Check whether --enable-textctrl or --disable-textctrl was given.
6901 if test "${enable_textctrl+set}" = set; then
6902 enableval="$enable_textctrl"
6903
6904 if test "$enableval" = yes; then
6905 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6906 else
6907 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6908 fi
6909
6910 else
6911
6912 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6913 if test "x$LINE" != x ; then
6914 eval "DEFAULT_$LINE"
6915 else
6916 no_cache=1
6917 fi
6918
6919 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6920
6921 fi
6922
6923
6924 eval "$ac_cv_use_textctrl"
6925 if test "$no_cache" != 1; then
6926 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6927 fi
6928
6929 if test "$wxUSE_TEXTCTRL" = yes; then
6930 echo "$ac_t""yes" 1>&6
6931 else
6932 echo "$ac_t""no" 1>&6
6933 fi
6934
6935
6936 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6937 echo "configure:6938: checking for --enable-togglebtn" >&5
6938 no_cache=0
6939 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6940 if test "${enable_togglebtn+set}" = set; then
6941 enableval="$enable_togglebtn"
6942
6943 if test "$enableval" = yes; then
6944 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6945 else
6946 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6947 fi
6948
6949 else
6950
6951 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6952 if test "x$LINE" != x ; then
6953 eval "DEFAULT_$LINE"
6954 else
6955 no_cache=1
6956 fi
6957
6958 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6959
6960 fi
6961
6962
6963 eval "$ac_cv_use_togglebtn"
6964 if test "$no_cache" != 1; then
6965 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6966 fi
6967
6968 if test "$wxUSE_TOGGLEBTN" = yes; then
6969 echo "$ac_t""yes" 1>&6
6970 else
6971 echo "$ac_t""no" 1>&6
6972 fi
6973
6974
6975 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6976 echo "configure:6977: checking for --enable-toolbar" >&5
6977 no_cache=0
6978 # Check whether --enable-toolbar or --disable-toolbar was given.
6979 if test "${enable_toolbar+set}" = set; then
6980 enableval="$enable_toolbar"
6981
6982 if test "$enableval" = yes; then
6983 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6984 else
6985 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6986 fi
6987
6988 else
6989
6990 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6991 if test "x$LINE" != x ; then
6992 eval "DEFAULT_$LINE"
6993 else
6994 no_cache=1
6995 fi
6996
6997 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6998
6999 fi
7000
7001
7002 eval "$ac_cv_use_toolbar"
7003 if test "$no_cache" != 1; then
7004 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7005 fi
7006
7007 if test "$wxUSE_TOOLBAR" = yes; then
7008 echo "$ac_t""yes" 1>&6
7009 else
7010 echo "$ac_t""no" 1>&6
7011 fi
7012
7013
7014 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7015 echo "configure:7016: checking for --enable-tbarnative" >&5
7016 no_cache=0
7017 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7018 if test "${enable_tbarnative+set}" = set; then
7019 enableval="$enable_tbarnative"
7020
7021 if test "$enableval" = yes; then
7022 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7023 else
7024 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7025 fi
7026
7027 else
7028
7029 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7030 if test "x$LINE" != x ; then
7031 eval "DEFAULT_$LINE"
7032 else
7033 no_cache=1
7034 fi
7035
7036 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7037
7038 fi
7039
7040
7041 eval "$ac_cv_use_tbarnative"
7042 if test "$no_cache" != 1; then
7043 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7044 fi
7045
7046 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7047 echo "$ac_t""yes" 1>&6
7048 else
7049 echo "$ac_t""no" 1>&6
7050 fi
7051
7052
7053 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7054 echo "configure:7055: checking for --enable-tbarsmpl" >&5
7055 no_cache=0
7056 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7057 if test "${enable_tbarsmpl+set}" = set; then
7058 enableval="$enable_tbarsmpl"
7059
7060 if test "$enableval" = yes; then
7061 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7062 else
7063 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7064 fi
7065
7066 else
7067
7068 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7069 if test "x$LINE" != x ; then
7070 eval "DEFAULT_$LINE"
7071 else
7072 no_cache=1
7073 fi
7074
7075 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7076
7077 fi
7078
7079
7080 eval "$ac_cv_use_tbarsmpl"
7081 if test "$no_cache" != 1; then
7082 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7083 fi
7084
7085 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7086 echo "$ac_t""yes" 1>&6
7087 else
7088 echo "$ac_t""no" 1>&6
7089 fi
7090
7091
7092 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7093 echo "configure:7094: checking for --enable-treectrl" >&5
7094 no_cache=0
7095 # Check whether --enable-treectrl or --disable-treectrl was given.
7096 if test "${enable_treectrl+set}" = set; then
7097 enableval="$enable_treectrl"
7098
7099 if test "$enableval" = yes; then
7100 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7101 else
7102 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7103 fi
7104
7105 else
7106
7107 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7108 if test "x$LINE" != x ; then
7109 eval "DEFAULT_$LINE"
7110 else
7111 no_cache=1
7112 fi
7113
7114 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7115
7116 fi
7117
7118
7119 eval "$ac_cv_use_treectrl"
7120 if test "$no_cache" != 1; then
7121 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7122 fi
7123
7124 if test "$wxUSE_TREECTRL" = yes; then
7125 echo "$ac_t""yes" 1>&6
7126 else
7127 echo "$ac_t""no" 1>&6
7128 fi
7129
7130
7131 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7132 echo "configure:7133: checking for --enable-tipwindow" >&5
7133 no_cache=0
7134 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7135 if test "${enable_tipwindow+set}" = set; then
7136 enableval="$enable_tipwindow"
7137
7138 if test "$enableval" = yes; then
7139 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7140 else
7141 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7142 fi
7143
7144 else
7145
7146 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7147 if test "x$LINE" != x ; then
7148 eval "DEFAULT_$LINE"
7149 else
7150 no_cache=1
7151 fi
7152
7153 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7154
7155 fi
7156
7157
7158 eval "$ac_cv_use_tipwindow"
7159 if test "$no_cache" != 1; then
7160 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7161 fi
7162
7163 if test "$wxUSE_TIPWINDOW" = yes; then
7164 echo "$ac_t""yes" 1>&6
7165 else
7166 echo "$ac_t""no" 1>&6
7167 fi
7168
7169
7170 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7171 echo "configure:7172: checking for --enable-popupwin" >&5
7172 no_cache=0
7173 # Check whether --enable-popupwin or --disable-popupwin was given.
7174 if test "${enable_popupwin+set}" = set; then
7175 enableval="$enable_popupwin"
7176
7177 if test "$enableval" = yes; then
7178 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7179 else
7180 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7181 fi
7182
7183 else
7184
7185 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7186 if test "x$LINE" != x ; then
7187 eval "DEFAULT_$LINE"
7188 else
7189 no_cache=1
7190 fi
7191
7192 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7193
7194 fi
7195
7196
7197 eval "$ac_cv_use_popupwin"
7198 if test "$no_cache" != 1; then
7199 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7200 fi
7201
7202 if test "$wxUSE_POPUPWIN" = yes; then
7203 echo "$ac_t""yes" 1>&6
7204 else
7205 echo "$ac_t""no" 1>&6
7206 fi
7207
7208
7209
7210
7211 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7212 echo "configure:7213: checking for --enable-commondlg" >&5
7213 no_cache=0
7214 # Check whether --enable-commondlg or --disable-commondlg was given.
7215 if test "${enable_commondlg+set}" = set; then
7216 enableval="$enable_commondlg"
7217
7218 if test "$enableval" = yes; then
7219 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7220 else
7221 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7222 fi
7223
7224 else
7225
7226 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7227 if test "x$LINE" != x ; then
7228 eval "DEFAULT_$LINE"
7229 else
7230 no_cache=1
7231 fi
7232
7233 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7234
7235 fi
7236
7237
7238 eval "$ac_cv_use_commondlg"
7239 if test "$no_cache" != 1; then
7240 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7241 fi
7242
7243 if test "$wxUSE_COMMONDLGS" = yes; then
7244 echo "$ac_t""yes" 1>&6
7245 else
7246 echo "$ac_t""no" 1>&6
7247 fi
7248
7249
7250 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7251 echo "configure:7252: checking for --enable-choicedlg" >&5
7252 no_cache=0
7253 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7254 if test "${enable_choicedlg+set}" = set; then
7255 enableval="$enable_choicedlg"
7256
7257 if test "$enableval" = yes; then
7258 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7259 else
7260 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7261 fi
7262
7263 else
7264
7265 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7266 if test "x$LINE" != x ; then
7267 eval "DEFAULT_$LINE"
7268 else
7269 no_cache=1
7270 fi
7271
7272 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7273
7274 fi
7275
7276
7277 eval "$ac_cv_use_choicedlg"
7278 if test "$no_cache" != 1; then
7279 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7280 fi
7281
7282 if test "$wxUSE_CHOICEDLG" = yes; then
7283 echo "$ac_t""yes" 1>&6
7284 else
7285 echo "$ac_t""no" 1>&6
7286 fi
7287
7288
7289 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7290 echo "configure:7291: checking for --enable-coldlg" >&5
7291 no_cache=0
7292 # Check whether --enable-coldlg or --disable-coldlg was given.
7293 if test "${enable_coldlg+set}" = set; then
7294 enableval="$enable_coldlg"
7295
7296 if test "$enableval" = yes; then
7297 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7298 else
7299 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7300 fi
7301
7302 else
7303
7304 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7305 if test "x$LINE" != x ; then
7306 eval "DEFAULT_$LINE"
7307 else
7308 no_cache=1
7309 fi
7310
7311 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7312
7313 fi
7314
7315
7316 eval "$ac_cv_use_coldlg"
7317 if test "$no_cache" != 1; then
7318 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7319 fi
7320
7321 if test "$wxUSE_COLOURDLG" = yes; then
7322 echo "$ac_t""yes" 1>&6
7323 else
7324 echo "$ac_t""no" 1>&6
7325 fi
7326
7327
7328 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7329 echo "configure:7330: checking for --enable-filedlg" >&5
7330 no_cache=0
7331 # Check whether --enable-filedlg or --disable-filedlg was given.
7332 if test "${enable_filedlg+set}" = set; then
7333 enableval="$enable_filedlg"
7334
7335 if test "$enableval" = yes; then
7336 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7337 else
7338 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7339 fi
7340
7341 else
7342
7343 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7344 if test "x$LINE" != x ; then
7345 eval "DEFAULT_$LINE"
7346 else
7347 no_cache=1
7348 fi
7349
7350 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7351
7352 fi
7353
7354
7355 eval "$ac_cv_use_filedlg"
7356 if test "$no_cache" != 1; then
7357 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7358 fi
7359
7360 if test "$wxUSE_FILEDLG" = yes; then
7361 echo "$ac_t""yes" 1>&6
7362 else
7363 echo "$ac_t""no" 1>&6
7364 fi
7365
7366
7367 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7368 echo "configure:7369: checking for --enable-finddlg" >&5
7369 no_cache=0
7370 # Check whether --enable-finddlg or --disable-finddlg was given.
7371 if test "${enable_finddlg+set}" = set; then
7372 enableval="$enable_finddlg"
7373
7374 if test "$enableval" = yes; then
7375 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7376 else
7377 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7378 fi
7379
7380 else
7381
7382 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7383 if test "x$LINE" != x ; then
7384 eval "DEFAULT_$LINE"
7385 else
7386 no_cache=1
7387 fi
7388
7389 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7390
7391 fi
7392
7393
7394 eval "$ac_cv_use_finddlg"
7395 if test "$no_cache" != 1; then
7396 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7397 fi
7398
7399 if test "$wxUSE_FINDREPLDLG" = yes; then
7400 echo "$ac_t""yes" 1>&6
7401 else
7402 echo "$ac_t""no" 1>&6
7403 fi
7404
7405
7406 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7407 echo "configure:7408: checking for --enable-fontdlg" >&5
7408 no_cache=0
7409 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7410 if test "${enable_fontdlg+set}" = set; then
7411 enableval="$enable_fontdlg"
7412
7413 if test "$enableval" = yes; then
7414 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7415 else
7416 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7417 fi
7418
7419 else
7420
7421 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7422 if test "x$LINE" != x ; then
7423 eval "DEFAULT_$LINE"
7424 else
7425 no_cache=1
7426 fi
7427
7428 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7429
7430 fi
7431
7432
7433 eval "$ac_cv_use_fontdlg"
7434 if test "$no_cache" != 1; then
7435 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7436 fi
7437
7438 if test "$wxUSE_FONTDLG" = yes; then
7439 echo "$ac_t""yes" 1>&6
7440 else
7441 echo "$ac_t""no" 1>&6
7442 fi
7443
7444
7445 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7446 echo "configure:7447: checking for --enable-dirdlg" >&5
7447 no_cache=0
7448 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7449 if test "${enable_dirdlg+set}" = set; then
7450 enableval="$enable_dirdlg"
7451
7452 if test "$enableval" = yes; then
7453 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7454 else
7455 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7456 fi
7457
7458 else
7459
7460 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7461 if test "x$LINE" != x ; then
7462 eval "DEFAULT_$LINE"
7463 else
7464 no_cache=1
7465 fi
7466
7467 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7468
7469 fi
7470
7471
7472 eval "$ac_cv_use_dirdlg"
7473 if test "$no_cache" != 1; then
7474 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7475 fi
7476
7477 if test "$wxUSE_DIRDLG" = yes; then
7478 echo "$ac_t""yes" 1>&6
7479 else
7480 echo "$ac_t""no" 1>&6
7481 fi
7482
7483
7484 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7485 echo "configure:7486: checking for --enable-msgdlg" >&5
7486 no_cache=0
7487 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7488 if test "${enable_msgdlg+set}" = set; then
7489 enableval="$enable_msgdlg"
7490
7491 if test "$enableval" = yes; then
7492 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7493 else
7494 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7495 fi
7496
7497 else
7498
7499 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7500 if test "x$LINE" != x ; then
7501 eval "DEFAULT_$LINE"
7502 else
7503 no_cache=1
7504 fi
7505
7506 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7507
7508 fi
7509
7510
7511 eval "$ac_cv_use_msgdlg"
7512 if test "$no_cache" != 1; then
7513 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7514 fi
7515
7516 if test "$wxUSE_MSGDLG" = yes; then
7517 echo "$ac_t""yes" 1>&6
7518 else
7519 echo "$ac_t""no" 1>&6
7520 fi
7521
7522
7523 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7524 echo "configure:7525: checking for --enable-numberdlg" >&5
7525 no_cache=0
7526 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7527 if test "${enable_numberdlg+set}" = set; then
7528 enableval="$enable_numberdlg"
7529
7530 if test "$enableval" = yes; then
7531 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7532 else
7533 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7534 fi
7535
7536 else
7537
7538 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7539 if test "x$LINE" != x ; then
7540 eval "DEFAULT_$LINE"
7541 else
7542 no_cache=1
7543 fi
7544
7545 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7546
7547 fi
7548
7549
7550 eval "$ac_cv_use_numberdlg"
7551 if test "$no_cache" != 1; then
7552 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7553 fi
7554
7555 if test "$wxUSE_NUMBERDLG" = yes; then
7556 echo "$ac_t""yes" 1>&6
7557 else
7558 echo "$ac_t""no" 1>&6
7559 fi
7560
7561
7562 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7563 echo "configure:7564: checking for --enable-splash" >&5
7564 no_cache=0
7565 # Check whether --enable-splash or --disable-splash was given.
7566 if test "${enable_splash+set}" = set; then
7567 enableval="$enable_splash"
7568
7569 if test "$enableval" = yes; then
7570 ac_cv_use_splash='wxUSE_SPLASH=yes'
7571 else
7572 ac_cv_use_splash='wxUSE_SPLASH=no'
7573 fi
7574
7575 else
7576
7577 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7578 if test "x$LINE" != x ; then
7579 eval "DEFAULT_$LINE"
7580 else
7581 no_cache=1
7582 fi
7583
7584 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7585
7586 fi
7587
7588
7589 eval "$ac_cv_use_splash"
7590 if test "$no_cache" != 1; then
7591 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7592 fi
7593
7594 if test "$wxUSE_SPLASH" = yes; then
7595 echo "$ac_t""yes" 1>&6
7596 else
7597 echo "$ac_t""no" 1>&6
7598 fi
7599
7600
7601 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7602 echo "configure:7603: checking for --enable-textdlg" >&5
7603 no_cache=0
7604 # Check whether --enable-textdlg or --disable-textdlg was given.
7605 if test "${enable_textdlg+set}" = set; then
7606 enableval="$enable_textdlg"
7607
7608 if test "$enableval" = yes; then
7609 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7610 else
7611 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7612 fi
7613
7614 else
7615
7616 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7617 if test "x$LINE" != x ; then
7618 eval "DEFAULT_$LINE"
7619 else
7620 no_cache=1
7621 fi
7622
7623 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7624
7625 fi
7626
7627
7628 eval "$ac_cv_use_textdlg"
7629 if test "$no_cache" != 1; then
7630 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7631 fi
7632
7633 if test "$wxUSE_TEXTDLG" = yes; then
7634 echo "$ac_t""yes" 1>&6
7635 else
7636 echo "$ac_t""no" 1>&6
7637 fi
7638
7639
7640 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7641 echo "configure:7642: checking for --enable-tipdlg" >&5
7642 no_cache=0
7643 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7644 if test "${enable_tipdlg+set}" = set; then
7645 enableval="$enable_tipdlg"
7646
7647 if test "$enableval" = yes; then
7648 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7649 else
7650 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7651 fi
7652
7653 else
7654
7655 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7656 if test "x$LINE" != x ; then
7657 eval "DEFAULT_$LINE"
7658 else
7659 no_cache=1
7660 fi
7661
7662 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7663
7664 fi
7665
7666
7667 eval "$ac_cv_use_tipdlg"
7668 if test "$no_cache" != 1; then
7669 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7670 fi
7671
7672 if test "$wxUSE_STARTUP_TIPS" = yes; then
7673 echo "$ac_t""yes" 1>&6
7674 else
7675 echo "$ac_t""no" 1>&6
7676 fi
7677
7678
7679 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7680 echo "configure:7681: checking for --enable-progressdlg" >&5
7681 no_cache=0
7682 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7683 if test "${enable_progressdlg+set}" = set; then
7684 enableval="$enable_progressdlg"
7685
7686 if test "$enableval" = yes; then
7687 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7688 else
7689 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7690 fi
7691
7692 else
7693
7694 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7695 if test "x$LINE" != x ; then
7696 eval "DEFAULT_$LINE"
7697 else
7698 no_cache=1
7699 fi
7700
7701 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7702
7703 fi
7704
7705
7706 eval "$ac_cv_use_progressdlg"
7707 if test "$no_cache" != 1; then
7708 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7709 fi
7710
7711 if test "$wxUSE_PROGRESSDLG" = yes; then
7712 echo "$ac_t""yes" 1>&6
7713 else
7714 echo "$ac_t""no" 1>&6
7715 fi
7716
7717
7718 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7719 echo "configure:7720: checking for --enable-wizarddlg" >&5
7720 no_cache=0
7721 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7722 if test "${enable_wizarddlg+set}" = set; then
7723 enableval="$enable_wizarddlg"
7724
7725 if test "$enableval" = yes; then
7726 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7727 else
7728 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7729 fi
7730
7731 else
7732
7733 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7734 if test "x$LINE" != x ; then
7735 eval "DEFAULT_$LINE"
7736 else
7737 no_cache=1
7738 fi
7739
7740 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7741
7742 fi
7743
7744
7745 eval "$ac_cv_use_wizarddlg"
7746 if test "$no_cache" != 1; then
7747 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7748 fi
7749
7750 if test "$wxUSE_WIZARDDLG" = yes; then
7751 echo "$ac_t""yes" 1>&6
7752 else
7753 echo "$ac_t""no" 1>&6
7754 fi
7755
7756
7757
7758
7759 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7760 echo "configure:7761: checking for --enable-menus" >&5
7761 no_cache=0
7762 # Check whether --enable-menus or --disable-menus was given.
7763 if test "${enable_menus+set}" = set; then
7764 enableval="$enable_menus"
7765
7766 if test "$enableval" = yes; then
7767 ac_cv_use_menus='wxUSE_MENUS=yes'
7768 else
7769 ac_cv_use_menus='wxUSE_MENUS=no'
7770 fi
7771
7772 else
7773
7774 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7775 if test "x$LINE" != x ; then
7776 eval "DEFAULT_$LINE"
7777 else
7778 no_cache=1
7779 fi
7780
7781 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7782
7783 fi
7784
7785
7786 eval "$ac_cv_use_menus"
7787 if test "$no_cache" != 1; then
7788 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7789 fi
7790
7791 if test "$wxUSE_MENUS" = yes; then
7792 echo "$ac_t""yes" 1>&6
7793 else
7794 echo "$ac_t""no" 1>&6
7795 fi
7796
7797
7798 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7799 echo "configure:7800: checking for --enable-miniframe" >&5
7800 no_cache=0
7801 # Check whether --enable-miniframe or --disable-miniframe was given.
7802 if test "${enable_miniframe+set}" = set; then
7803 enableval="$enable_miniframe"
7804
7805 if test "$enableval" = yes; then
7806 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7807 else
7808 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7809 fi
7810
7811 else
7812
7813 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7814 if test "x$LINE" != x ; then
7815 eval "DEFAULT_$LINE"
7816 else
7817 no_cache=1
7818 fi
7819
7820 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7821
7822 fi
7823
7824
7825 eval "$ac_cv_use_miniframe"
7826 if test "$no_cache" != 1; then
7827 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7828 fi
7829
7830 if test "$wxUSE_MINIFRAME" = yes; then
7831 echo "$ac_t""yes" 1>&6
7832 else
7833 echo "$ac_t""no" 1>&6
7834 fi
7835
7836
7837 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7838 echo "configure:7839: checking for --enable-tooltips" >&5
7839 no_cache=0
7840 # Check whether --enable-tooltips or --disable-tooltips was given.
7841 if test "${enable_tooltips+set}" = set; then
7842 enableval="$enable_tooltips"
7843
7844 if test "$enableval" = yes; then
7845 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7846 else
7847 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7848 fi
7849
7850 else
7851
7852 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7853 if test "x$LINE" != x ; then
7854 eval "DEFAULT_$LINE"
7855 else
7856 no_cache=1
7857 fi
7858
7859 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7860
7861 fi
7862
7863
7864 eval "$ac_cv_use_tooltips"
7865 if test "$no_cache" != 1; then
7866 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7867 fi
7868
7869 if test "$wxUSE_TOOLTIPS" = yes; then
7870 echo "$ac_t""yes" 1>&6
7871 else
7872 echo "$ac_t""no" 1>&6
7873 fi
7874
7875
7876 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7877 echo "configure:7878: checking for --enable-splines" >&5
7878 no_cache=0
7879 # Check whether --enable-splines or --disable-splines was given.
7880 if test "${enable_splines+set}" = set; then
7881 enableval="$enable_splines"
7882
7883 if test "$enableval" = yes; then
7884 ac_cv_use_splines='wxUSE_SPLINES=yes'
7885 else
7886 ac_cv_use_splines='wxUSE_SPLINES=no'
7887 fi
7888
7889 else
7890
7891 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7892 if test "x$LINE" != x ; then
7893 eval "DEFAULT_$LINE"
7894 else
7895 no_cache=1
7896 fi
7897
7898 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7899
7900 fi
7901
7902
7903 eval "$ac_cv_use_splines"
7904 if test "$no_cache" != 1; then
7905 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7906 fi
7907
7908 if test "$wxUSE_SPLINES" = yes; then
7909 echo "$ac_t""yes" 1>&6
7910 else
7911 echo "$ac_t""no" 1>&6
7912 fi
7913
7914
7915 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7916 echo "configure:7917: checking for --enable-validators" >&5
7917 no_cache=0
7918 # Check whether --enable-validators or --disable-validators was given.
7919 if test "${enable_validators+set}" = set; then
7920 enableval="$enable_validators"
7921
7922 if test "$enableval" = yes; then
7923 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7924 else
7925 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7926 fi
7927
7928 else
7929
7930 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7931 if test "x$LINE" != x ; then
7932 eval "DEFAULT_$LINE"
7933 else
7934 no_cache=1
7935 fi
7936
7937 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7938
7939 fi
7940
7941
7942 eval "$ac_cv_use_validators"
7943 if test "$no_cache" != 1; then
7944 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7945 fi
7946
7947 if test "$wxUSE_VALIDATORS" = yes; then
7948 echo "$ac_t""yes" 1>&6
7949 else
7950 echo "$ac_t""no" 1>&6
7951 fi
7952
7953
7954 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7955 echo "configure:7956: checking for --enable-busyinfo" >&5
7956 no_cache=0
7957 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7958 if test "${enable_busyinfo+set}" = set; then
7959 enableval="$enable_busyinfo"
7960
7961 if test "$enableval" = yes; then
7962 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7963 else
7964 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7965 fi
7966
7967 else
7968
7969 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7970 if test "x$LINE" != x ; then
7971 eval "DEFAULT_$LINE"
7972 else
7973 no_cache=1
7974 fi
7975
7976 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7977
7978 fi
7979
7980
7981 eval "$ac_cv_use_busyinfo"
7982 if test "$no_cache" != 1; then
7983 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7984 fi
7985
7986 if test "$wxUSE_BUSYINFO" = yes; then
7987 echo "$ac_t""yes" 1>&6
7988 else
7989 echo "$ac_t""no" 1>&6
7990 fi
7991
7992
7993 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7994 echo "configure:7995: checking for --enable-joystick" >&5
7995 no_cache=0
7996 # Check whether --enable-joystick or --disable-joystick was given.
7997 if test "${enable_joystick+set}" = set; then
7998 enableval="$enable_joystick"
7999
8000 if test "$enableval" = yes; then
8001 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8002 else
8003 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8004 fi
8005
8006 else
8007
8008 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8009 if test "x$LINE" != x ; then
8010 eval "DEFAULT_$LINE"
8011 else
8012 no_cache=1
8013 fi
8014
8015 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8016
8017 fi
8018
8019
8020 eval "$ac_cv_use_joystick"
8021 if test "$no_cache" != 1; then
8022 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8023 fi
8024
8025 if test "$wxUSE_JOYSTICK" = yes; then
8026 echo "$ac_t""yes" 1>&6
8027 else
8028 echo "$ac_t""no" 1>&6
8029 fi
8030
8031
8032 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8033 echo "configure:8034: checking for --enable-metafile" >&5
8034 no_cache=0
8035 # Check whether --enable-metafile or --disable-metafile was given.
8036 if test "${enable_metafile+set}" = set; then
8037 enableval="$enable_metafile"
8038
8039 if test "$enableval" = yes; then
8040 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8041 else
8042 ac_cv_use_metafile='wxUSE_METAFILE=no'
8043 fi
8044
8045 else
8046
8047 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8048 if test "x$LINE" != x ; then
8049 eval "DEFAULT_$LINE"
8050 else
8051 no_cache=1
8052 fi
8053
8054 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8055
8056 fi
8057
8058
8059 eval "$ac_cv_use_metafile"
8060 if test "$no_cache" != 1; then
8061 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8062 fi
8063
8064 if test "$wxUSE_METAFILE" = yes; then
8065 echo "$ac_t""yes" 1>&6
8066 else
8067 echo "$ac_t""no" 1>&6
8068 fi
8069
8070
8071 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8072 echo "configure:8073: checking for --enable-dragimage" >&5
8073 no_cache=0
8074 # Check whether --enable-dragimage or --disable-dragimage was given.
8075 if test "${enable_dragimage+set}" = set; then
8076 enableval="$enable_dragimage"
8077
8078 if test "$enableval" = yes; then
8079 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8080 else
8081 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8082 fi
8083
8084 else
8085
8086 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8087 if test "x$LINE" != x ; then
8088 eval "DEFAULT_$LINE"
8089 else
8090 no_cache=1
8091 fi
8092
8093 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8094
8095 fi
8096
8097
8098 eval "$ac_cv_use_dragimage"
8099 if test "$no_cache" != 1; then
8100 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8101 fi
8102
8103 if test "$wxUSE_DRAGIMAGE" = yes; then
8104 echo "$ac_t""yes" 1>&6
8105 else
8106 echo "$ac_t""no" 1>&6
8107 fi
8108
8109
8110
8111
8112 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8113 echo "configure:8114: checking for --enable-palette" >&5
8114 no_cache=0
8115 # Check whether --enable-palette or --disable-palette was given.
8116 if test "${enable_palette+set}" = set; then
8117 enableval="$enable_palette"
8118
8119 if test "$enableval" = yes; then
8120 ac_cv_use_palette='wxUSE_PALETTE=yes'
8121 else
8122 ac_cv_use_palette='wxUSE_PALETTE=no'
8123 fi
8124
8125 else
8126
8127 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8128 if test "x$LINE" != x ; then
8129 eval "DEFAULT_$LINE"
8130 else
8131 no_cache=1
8132 fi
8133
8134 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8135
8136 fi
8137
8138
8139 eval "$ac_cv_use_palette"
8140 if test "$no_cache" != 1; then
8141 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8142 fi
8143
8144 if test "$wxUSE_PALETTE" = yes; then
8145 echo "$ac_t""yes" 1>&6
8146 else
8147 echo "$ac_t""no" 1>&6
8148 fi
8149
8150
8151 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8152 echo "configure:8153: checking for --enable-image" >&5
8153 no_cache=0
8154 # Check whether --enable-image or --disable-image was given.
8155 if test "${enable_image+set}" = set; then
8156 enableval="$enable_image"
8157
8158 if test "$enableval" = yes; then
8159 ac_cv_use_image='wxUSE_IMAGE=yes'
8160 else
8161 ac_cv_use_image='wxUSE_IMAGE=no'
8162 fi
8163
8164 else
8165
8166 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8167 if test "x$LINE" != x ; then
8168 eval "DEFAULT_$LINE"
8169 else
8170 no_cache=1
8171 fi
8172
8173 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8174
8175 fi
8176
8177
8178 eval "$ac_cv_use_image"
8179 if test "$no_cache" != 1; then
8180 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8181 fi
8182
8183 if test "$wxUSE_IMAGE" = yes; then
8184 echo "$ac_t""yes" 1>&6
8185 else
8186 echo "$ac_t""no" 1>&6
8187 fi
8188
8189
8190 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8191 echo "configure:8192: checking for --enable-gif" >&5
8192 no_cache=0
8193 # Check whether --enable-gif or --disable-gif was given.
8194 if test "${enable_gif+set}" = set; then
8195 enableval="$enable_gif"
8196
8197 if test "$enableval" = yes; then
8198 ac_cv_use_gif='wxUSE_GIF=yes'
8199 else
8200 ac_cv_use_gif='wxUSE_GIF=no'
8201 fi
8202
8203 else
8204
8205 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8206 if test "x$LINE" != x ; then
8207 eval "DEFAULT_$LINE"
8208 else
8209 no_cache=1
8210 fi
8211
8212 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8213
8214 fi
8215
8216
8217 eval "$ac_cv_use_gif"
8218 if test "$no_cache" != 1; then
8219 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8220 fi
8221
8222 if test "$wxUSE_GIF" = yes; then
8223 echo "$ac_t""yes" 1>&6
8224 else
8225 echo "$ac_t""no" 1>&6
8226 fi
8227
8228
8229 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8230 echo "configure:8231: checking for --enable-pcx" >&5
8231 no_cache=0
8232 # Check whether --enable-pcx or --disable-pcx was given.
8233 if test "${enable_pcx+set}" = set; then
8234 enableval="$enable_pcx"
8235
8236 if test "$enableval" = yes; then
8237 ac_cv_use_pcx='wxUSE_PCX=yes'
8238 else
8239 ac_cv_use_pcx='wxUSE_PCX=no'
8240 fi
8241
8242 else
8243
8244 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8245 if test "x$LINE" != x ; then
8246 eval "DEFAULT_$LINE"
8247 else
8248 no_cache=1
8249 fi
8250
8251 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8252
8253 fi
8254
8255
8256 eval "$ac_cv_use_pcx"
8257 if test "$no_cache" != 1; then
8258 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8259 fi
8260
8261 if test "$wxUSE_PCX" = yes; then
8262 echo "$ac_t""yes" 1>&6
8263 else
8264 echo "$ac_t""no" 1>&6
8265 fi
8266
8267
8268 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8269 echo "configure:8270: checking for --enable-iff" >&5
8270 no_cache=0
8271 # Check whether --enable-iff or --disable-iff was given.
8272 if test "${enable_iff+set}" = set; then
8273 enableval="$enable_iff"
8274
8275 if test "$enableval" = yes; then
8276 ac_cv_use_iff='wxUSE_IFF=yes'
8277 else
8278 ac_cv_use_iff='wxUSE_IFF=no'
8279 fi
8280
8281 else
8282
8283 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8284 if test "x$LINE" != x ; then
8285 eval "DEFAULT_$LINE"
8286 else
8287 no_cache=1
8288 fi
8289
8290 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8291
8292 fi
8293
8294
8295 eval "$ac_cv_use_iff"
8296 if test "$no_cache" != 1; then
8297 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8298 fi
8299
8300 if test "$wxUSE_IFF" = yes; then
8301 echo "$ac_t""yes" 1>&6
8302 else
8303 echo "$ac_t""no" 1>&6
8304 fi
8305
8306
8307 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8308 echo "configure:8309: checking for --enable-pnm" >&5
8309 no_cache=0
8310 # Check whether --enable-pnm or --disable-pnm was given.
8311 if test "${enable_pnm+set}" = set; then
8312 enableval="$enable_pnm"
8313
8314 if test "$enableval" = yes; then
8315 ac_cv_use_pnm='wxUSE_PNM=yes'
8316 else
8317 ac_cv_use_pnm='wxUSE_PNM=no'
8318 fi
8319
8320 else
8321
8322 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8323 if test "x$LINE" != x ; then
8324 eval "DEFAULT_$LINE"
8325 else
8326 no_cache=1
8327 fi
8328
8329 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8330
8331 fi
8332
8333
8334 eval "$ac_cv_use_pnm"
8335 if test "$no_cache" != 1; then
8336 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8337 fi
8338
8339 if test "$wxUSE_PNM" = yes; then
8340 echo "$ac_t""yes" 1>&6
8341 else
8342 echo "$ac_t""no" 1>&6
8343 fi
8344
8345
8346 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8347 echo "configure:8348: checking for --enable-xpm" >&5
8348 no_cache=0
8349 # Check whether --enable-xpm or --disable-xpm was given.
8350 if test "${enable_xpm+set}" = set; then
8351 enableval="$enable_xpm"
8352
8353 if test "$enableval" = yes; then
8354 ac_cv_use_xpm='wxUSE_XPM=yes'
8355 else
8356 ac_cv_use_xpm='wxUSE_XPM=no'
8357 fi
8358
8359 else
8360
8361 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8362 if test "x$LINE" != x ; then
8363 eval "DEFAULT_$LINE"
8364 else
8365 no_cache=1
8366 fi
8367
8368 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8369
8370 fi
8371
8372
8373 eval "$ac_cv_use_xpm"
8374 if test "$no_cache" != 1; then
8375 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8376 fi
8377
8378 if test "$wxUSE_XPM" = yes; then
8379 echo "$ac_t""yes" 1>&6
8380 else
8381 echo "$ac_t""no" 1>&6
8382 fi
8383
8384
8385 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8386 echo "configure:8387: checking for --enable-ico_cur" >&5
8387 no_cache=0
8388 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8389 if test "${enable_ico_cur+set}" = set; then
8390 enableval="$enable_ico_cur"
8391
8392 if test "$enableval" = yes; then
8393 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8394 else
8395 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8396 fi
8397
8398 else
8399
8400 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8401 if test "x$LINE" != x ; then
8402 eval "DEFAULT_$LINE"
8403 else
8404 no_cache=1
8405 fi
8406
8407 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8408
8409 fi
8410
8411
8412 eval "$ac_cv_use_ico_cur"
8413 if test "$no_cache" != 1; then
8414 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8415 fi
8416
8417 if test "$wxUSE_ICO_CUR" = yes; then
8418 echo "$ac_t""yes" 1>&6
8419 else
8420 echo "$ac_t""no" 1>&6
8421 fi
8422
8423
8424 fi
8425
8426
8427 echo "saving argument cache $wx_arg_cache_file"
8428 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8429
8430
8431
8432 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8433 echo "configure:8434: checking for toolkit" >&5
8434
8435 if test "$wxUSE_GUI" = "yes"; then
8436
8437 if test "$USE_BEOS" = 1; then
8438 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8439 fi
8440
8441 if test "$TOOLKIT_GIVEN" = 1; then
8442 for toolkit in `echo $ALL_TOOLKITS`; do
8443 var=wxUSE_$toolkit
8444 eval "value=\$${var}"
8445 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8446 done
8447 else
8448 for toolkit in `echo $ALL_TOOLKITS`; do
8449 if test "$has_toolkit_in_cache" != 1; then
8450 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8451 else
8452 var=DEFAULT_wxUSE_$toolkit
8453 fi
8454 eval "wxUSE_$toolkit=\$${var}"
8455 done
8456 fi
8457
8458 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8459 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8460
8461 case "${host}" in
8462 *-pc-os2_emx | *-pc-os2-emx )
8463 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8464 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8465 LEX_STEM="lexyy"
8466 ;;
8467 *)
8468 PATH_IFS=':'
8469 LEX_STEM="lex.yy"
8470 ;;
8471 esac
8472
8473 case "$NUM_TOOLKITS" in
8474 1)
8475 ;;
8476 0)
8477 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8478 ;;
8479 *)
8480 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8481 esac
8482
8483 for toolkit in `echo $ALL_TOOLKITS`; do
8484 var=wxUSE_$toolkit
8485 eval "value=\$${var}"
8486 if test "x$value" != x; then
8487 cache_var=CACHE_$toolkit
8488 eval "cache=\$${cache_var}"
8489 if test "$cache" = 1; then
8490 echo "$var=$value" >> ${wx_arg_cache_file}
8491 fi
8492 if test "$value" = 1; then
8493 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8494 echo "$ac_t""$toolkit_echo" 1>&6
8495 fi
8496 fi
8497 done
8498 else
8499 PATH_IFS=':'
8500 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8501 fi
8502
8503
8504 cat > confcache <<\EOF
8505 # This file is a shell script that caches the results of configure
8506 # tests run on this system so they can be shared between configure
8507 # scripts and configure runs. It is not useful on other systems.
8508 # If it contains results you don't want to keep, you may remove or edit it.
8509 #
8510 # By default, configure uses ./config.cache as the cache file,
8511 # creating it if it does not exist already. You can give configure
8512 # the --cache-file=FILE option to use a different cache file; that is
8513 # what configure does when it calls configure scripts in
8514 # subdirectories, so they share the cache.
8515 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8516 # config.status only pays attention to the cache file if you give it the
8517 # --recheck option to rerun configure.
8518 #
8519 EOF
8520 # The following way of writing the cache mishandles newlines in values,
8521 # but we know of no workaround that is simple, portable, and efficient.
8522 # So, don't put newlines in cache variables' values.
8523 # Ultrix sh set writes to stderr and can't be redirected directly,
8524 # and sets the high bit in the cache file unless we assign to the vars.
8525 (set) 2>&1 |
8526 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8527 *ac_space=\ *)
8528 # `set' does not quote correctly, so add quotes (double-quote substitution
8529 # turns \\\\ into \\, and sed turns \\ into \).
8530 sed -n \
8531 -e "s/'/'\\\\''/g" \
8532 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8533 ;;
8534 *)
8535 # `set' quotes correctly as required by POSIX, so do not add quotes.
8536 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8537 ;;
8538 esac >> confcache
8539 if cmp -s $cache_file confcache; then
8540 :
8541 else
8542 if test -w $cache_file; then
8543 echo "updating cache $cache_file"
8544 cat confcache > $cache_file
8545 else
8546 echo "not updating unwritable cache $cache_file"
8547 fi
8548 fi
8549 rm -f confcache
8550
8551
8552 if test "$build" != "$host" ; then
8553 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
8554 CC=$host_alias-gcc
8555 CXX=$host_alias-c++
8556 AR=$host_alias-ar
8557 RANLIB=$host_alias-ranlib
8558 DLLTOOL=$host_alias-dlltool
8559 RESCOMP=$host_alias-windres
8560 LD=$host_alias-ld
8561 NM=$host_alias-nm
8562 STRIP=$host_alias-strip
8563 else
8564 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8565 fi
8566 fi
8567
8568 # Extract the first word of "gcc", so it can be a program name with args.
8569 set dummy gcc; ac_word=$2
8570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8571 echo "configure:8572: checking for $ac_word" >&5
8572 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8573 echo $ac_n "(cached) $ac_c" 1>&6
8574 else
8575 if test -n "$CC"; then
8576 ac_cv_prog_CC="$CC" # Let the user override the test.
8577 else
8578 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8579 ac_dummy="$PATH"
8580 for ac_dir in $ac_dummy; do
8581 test -z "$ac_dir" && ac_dir=.
8582 if test -f $ac_dir/$ac_word; then
8583 ac_cv_prog_CC="gcc"
8584 break
8585 fi
8586 done
8587 IFS="$ac_save_ifs"
8588 fi
8589 fi
8590 CC="$ac_cv_prog_CC"
8591 if test -n "$CC"; then
8592 echo "$ac_t""$CC" 1>&6
8593 else
8594 echo "$ac_t""no" 1>&6
8595 fi
8596
8597 if test -z "$CC"; then
8598 # Extract the first word of "cc", so it can be a program name with args.
8599 set dummy cc; ac_word=$2
8600 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8601 echo "configure:8602: checking for $ac_word" >&5
8602 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8603 echo $ac_n "(cached) $ac_c" 1>&6
8604 else
8605 if test -n "$CC"; then
8606 ac_cv_prog_CC="$CC" # Let the user override the test.
8607 else
8608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8609 ac_prog_rejected=no
8610 ac_dummy="$PATH"
8611 for ac_dir in $ac_dummy; do
8612 test -z "$ac_dir" && ac_dir=.
8613 if test -f $ac_dir/$ac_word; then
8614 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8615 ac_prog_rejected=yes
8616 continue
8617 fi
8618 ac_cv_prog_CC="cc"
8619 break
8620 fi
8621 done
8622 IFS="$ac_save_ifs"
8623 if test $ac_prog_rejected = yes; then
8624 # We found a bogon in the path, so make sure we never use it.
8625 set dummy $ac_cv_prog_CC
8626 shift
8627 if test $# -gt 0; then
8628 # We chose a different compiler from the bogus one.
8629 # However, it has the same basename, so the bogon will be chosen
8630 # first if we set CC to just the basename; use the full file name.
8631 shift
8632 set dummy "$ac_dir/$ac_word" "$@"
8633 shift
8634 ac_cv_prog_CC="$@"
8635 fi
8636 fi
8637 fi
8638 fi
8639 CC="$ac_cv_prog_CC"
8640 if test -n "$CC"; then
8641 echo "$ac_t""$CC" 1>&6
8642 else
8643 echo "$ac_t""no" 1>&6
8644 fi
8645
8646 if test -z "$CC"; then
8647 case "`uname -s`" in
8648 *win32* | *WIN32*)
8649 # Extract the first word of "cl", so it can be a program name with args.
8650 set dummy cl; ac_word=$2
8651 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8652 echo "configure:8653: checking for $ac_word" >&5
8653 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8654 echo $ac_n "(cached) $ac_c" 1>&6
8655 else
8656 if test -n "$CC"; then
8657 ac_cv_prog_CC="$CC" # Let the user override the test.
8658 else
8659 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8660 ac_dummy="$PATH"
8661 for ac_dir in $ac_dummy; do
8662 test -z "$ac_dir" && ac_dir=.
8663 if test -f $ac_dir/$ac_word; then
8664 ac_cv_prog_CC="cl"
8665 break
8666 fi
8667 done
8668 IFS="$ac_save_ifs"
8669 fi
8670 fi
8671 CC="$ac_cv_prog_CC"
8672 if test -n "$CC"; then
8673 echo "$ac_t""$CC" 1>&6
8674 else
8675 echo "$ac_t""no" 1>&6
8676 fi
8677 ;;
8678 esac
8679 fi
8680 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8681 fi
8682
8683 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8684 echo "configure:8685: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8685
8686 ac_ext=c
8687 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8688 ac_cpp='$CPP $CPPFLAGS'
8689 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8690 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8691 cross_compiling=$ac_cv_prog_cc_cross
8692
8693 cat > conftest.$ac_ext << EOF
8694
8695 #line 8696 "configure"
8696 #include "confdefs.h"
8697
8698 main(){return(0);}
8699 EOF
8700 if { (eval echo configure:8701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8701 ac_cv_prog_cc_works=yes
8702 # If we can't run a trivial program, we are probably using a cross compiler.
8703 if (./conftest; exit) 2>/dev/null; then
8704 ac_cv_prog_cc_cross=no
8705 else
8706 ac_cv_prog_cc_cross=yes
8707 fi
8708 else
8709 echo "configure: failed program was:" >&5
8710 cat conftest.$ac_ext >&5
8711 ac_cv_prog_cc_works=no
8712 fi
8713 rm -fr conftest*
8714 ac_ext=c
8715 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8716 ac_cpp='$CPP $CPPFLAGS'
8717 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8718 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8719 cross_compiling=$ac_cv_prog_cc_cross
8720
8721 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8722 if test $ac_cv_prog_cc_works = no; then
8723 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8724 fi
8725 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8726 echo "configure:8727: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8727 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8728 cross_compiling=$ac_cv_prog_cc_cross
8729
8730 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8731 echo "configure:8732: checking whether we are using GNU C" >&5
8732 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8733 echo $ac_n "(cached) $ac_c" 1>&6
8734 else
8735 cat > conftest.c <<EOF
8736 #ifdef __GNUC__
8737 yes;
8738 #endif
8739 EOF
8740 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8741: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8741 ac_cv_prog_gcc=yes
8742 else
8743 ac_cv_prog_gcc=no
8744 fi
8745 fi
8746
8747 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8748
8749 if test $ac_cv_prog_gcc = yes; then
8750 GCC=yes
8751 else
8752 GCC=
8753 fi
8754
8755 ac_test_CFLAGS="${CFLAGS+set}"
8756 ac_save_CFLAGS="$CFLAGS"
8757 CFLAGS=
8758 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8759 echo "configure:8760: checking whether ${CC-cc} accepts -g" >&5
8760 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8761 echo $ac_n "(cached) $ac_c" 1>&6
8762 else
8763 echo 'void f(){}' > conftest.c
8764 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8765 ac_cv_prog_cc_g=yes
8766 else
8767 ac_cv_prog_cc_g=no
8768 fi
8769 rm -f conftest*
8770
8771 fi
8772
8773 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8774 if test "$ac_test_CFLAGS" = set; then
8775 CFLAGS="$ac_save_CFLAGS"
8776 elif test $ac_cv_prog_cc_g = yes; then
8777 if test "$GCC" = yes; then
8778 CFLAGS="-g -O2"
8779 else
8780 CFLAGS="-g"
8781 fi
8782 else
8783 if test "$GCC" = yes; then
8784 CFLAGS="-O2"
8785 else
8786 CFLAGS=
8787 fi
8788 fi
8789
8790
8791 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8792
8793 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8794 echo "configure:8795: checking how to run the C preprocessor" >&5
8795 # On Suns, sometimes $CPP names a directory.
8796 if test -n "$CPP" && test -d "$CPP"; then
8797 CPP=
8798 fi
8799 if test -z "$CPP"; then
8800 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8801 echo $ac_n "(cached) $ac_c" 1>&6
8802 else
8803 # This must be in double quotes, not single quotes, because CPP may get
8804 # substituted into the Makefile and "${CC-cc}" will confuse make.
8805 CPP="${CC-cc} -E"
8806 # On the NeXT, cc -E runs the code through the compiler's parser,
8807 # not just through cpp.
8808 cat > conftest.$ac_ext <<EOF
8809 #line 8810 "configure"
8810 #include "confdefs.h"
8811 #include <assert.h>
8812 Syntax Error
8813 EOF
8814 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8815 { (eval echo configure:8816: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8816 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8817 if test -z "$ac_err"; then
8818 :
8819 else
8820 echo "$ac_err" >&5
8821 echo "configure: failed program was:" >&5
8822 cat conftest.$ac_ext >&5
8823 rm -rf conftest*
8824 CPP="${CC-cc} -E -traditional-cpp"
8825 cat > conftest.$ac_ext <<EOF
8826 #line 8827 "configure"
8827 #include "confdefs.h"
8828 #include <assert.h>
8829 Syntax Error
8830 EOF
8831 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8832 { (eval echo configure:8833: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8833 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8834 if test -z "$ac_err"; then
8835 :
8836 else
8837 echo "$ac_err" >&5
8838 echo "configure: failed program was:" >&5
8839 cat conftest.$ac_ext >&5
8840 rm -rf conftest*
8841 CPP="${CC-cc} -nologo -E"
8842 cat > conftest.$ac_ext <<EOF
8843 #line 8844 "configure"
8844 #include "confdefs.h"
8845 #include <assert.h>
8846 Syntax Error
8847 EOF
8848 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8849 { (eval echo configure:8850: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8850 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8851 if test -z "$ac_err"; then
8852 :
8853 else
8854 echo "$ac_err" >&5
8855 echo "configure: failed program was:" >&5
8856 cat conftest.$ac_ext >&5
8857 rm -rf conftest*
8858 CPP=/lib/cpp
8859 fi
8860 rm -f conftest*
8861 fi
8862 rm -f conftest*
8863 fi
8864 rm -f conftest*
8865 ac_cv_prog_CPP="$CPP"
8866 fi
8867 CPP="$ac_cv_prog_CPP"
8868 else
8869 ac_cv_prog_CPP="$CPP"
8870 fi
8871 echo "$ac_t""$CPP" 1>&6
8872
8873 if test $ac_cv_prog_gcc = yes; then
8874 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8875 echo "configure:8876: checking whether ${CC-cc} needs -traditional" >&5
8876 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8877 echo $ac_n "(cached) $ac_c" 1>&6
8878 else
8879 ac_pattern="Autoconf.*'x'"
8880 cat > conftest.$ac_ext <<EOF
8881 #line 8882 "configure"
8882 #include "confdefs.h"
8883 #include <sgtty.h>
8884 Autoconf TIOCGETP
8885 EOF
8886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8887 egrep "$ac_pattern" >/dev/null 2>&1; then
8888 rm -rf conftest*
8889 ac_cv_prog_gcc_traditional=yes
8890 else
8891 rm -rf conftest*
8892 ac_cv_prog_gcc_traditional=no
8893 fi
8894 rm -f conftest*
8895
8896
8897 if test $ac_cv_prog_gcc_traditional = no; then
8898 cat > conftest.$ac_ext <<EOF
8899 #line 8900 "configure"
8900 #include "confdefs.h"
8901 #include <termio.h>
8902 Autoconf TCGETA
8903 EOF
8904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8905 egrep "$ac_pattern" >/dev/null 2>&1; then
8906 rm -rf conftest*
8907 ac_cv_prog_gcc_traditional=yes
8908 fi
8909 rm -f conftest*
8910
8911 fi
8912 fi
8913
8914 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8915 if test $ac_cv_prog_gcc_traditional = yes; then
8916 CC="$CC -traditional"
8917 fi
8918 fi
8919
8920
8921
8922 ac_ext=C
8923 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8924 ac_cpp='$CXXCPP $CPPFLAGS'
8925 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8926 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8927 cross_compiling=$ac_cv_prog_cxx_cross
8928
8929
8930 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8931 do
8932 # Extract the first word of "$ac_prog", so it can be a program name with args.
8933 set dummy $ac_prog; ac_word=$2
8934 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8935 echo "configure:8936: checking for $ac_word" >&5
8936 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8937 echo $ac_n "(cached) $ac_c" 1>&6
8938 else
8939 if test -n "$CXX"; then
8940 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8941 else
8942 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8943 ac_dummy="$PATH"
8944 for ac_dir in $ac_dummy; do
8945 test -z "$ac_dir" && ac_dir=.
8946 if test -f $ac_dir/$ac_word; then
8947 ac_cv_prog_CXX="$ac_prog"
8948 break
8949 fi
8950 done
8951 IFS="$ac_save_ifs"
8952 fi
8953 fi
8954 CXX="$ac_cv_prog_CXX"
8955 if test -n "$CXX"; then
8956 echo "$ac_t""$CXX" 1>&6
8957 else
8958 echo "$ac_t""no" 1>&6
8959 fi
8960
8961 test -n "$CXX" && break
8962 done
8963 test -n "$CXX" || CXX="gcc"
8964
8965
8966 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8967 echo "configure:8968: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8968
8969 ac_ext=C
8970 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8971 ac_cpp='$CXXCPP $CPPFLAGS'
8972 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8973 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8974 cross_compiling=$ac_cv_prog_cxx_cross
8975
8976 cat > conftest.$ac_ext << EOF
8977
8978 #line 8979 "configure"
8979 #include "confdefs.h"
8980
8981 int main(){return(0);}
8982 EOF
8983 if { (eval echo configure:8984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8984 ac_cv_prog_cxx_works=yes
8985 # If we can't run a trivial program, we are probably using a cross compiler.
8986 if (./conftest; exit) 2>/dev/null; then
8987 ac_cv_prog_cxx_cross=no
8988 else
8989 ac_cv_prog_cxx_cross=yes
8990 fi
8991 else
8992 echo "configure: failed program was:" >&5
8993 cat conftest.$ac_ext >&5
8994 ac_cv_prog_cxx_works=no
8995 fi
8996 rm -fr conftest*
8997 ac_ext=C
8998 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8999 ac_cpp='$CXXCPP $CPPFLAGS'
9000 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9001 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9002 cross_compiling=$ac_cv_prog_cxx_cross
9003
9004 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9005 if test $ac_cv_prog_cxx_works = no; then
9006 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9007 fi
9008 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9009 echo "configure:9010: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9010 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9011 cross_compiling=$ac_cv_prog_cxx_cross
9012
9013 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9014 echo "configure:9015: checking whether we are using GNU C++" >&5
9015 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9016 echo $ac_n "(cached) $ac_c" 1>&6
9017 else
9018 cat > conftest.C <<EOF
9019 #ifdef __GNUC__
9020 yes;
9021 #endif
9022 EOF
9023 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9024: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9024 ac_cv_prog_gxx=yes
9025 else
9026 ac_cv_prog_gxx=no
9027 fi
9028 fi
9029
9030 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9031
9032 if test $ac_cv_prog_gxx = yes; then
9033 GXX=yes
9034 else
9035 GXX=
9036 fi
9037
9038 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9039 ac_save_CXXFLAGS="$CXXFLAGS"
9040 CXXFLAGS=
9041 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9042 echo "configure:9043: checking whether ${CXX-g++} accepts -g" >&5
9043 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9044 echo $ac_n "(cached) $ac_c" 1>&6
9045 else
9046 echo 'void f(){}' > conftest.cc
9047 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9048 ac_cv_prog_cxx_g=yes
9049 else
9050 ac_cv_prog_cxx_g=no
9051 fi
9052 rm -f conftest*
9053
9054 fi
9055
9056 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9057 if test "$ac_test_CXXFLAGS" = set; then
9058 CXXFLAGS="$ac_save_CXXFLAGS"
9059 elif test $ac_cv_prog_cxx_g = yes; then
9060 if test "$GXX" = yes; then
9061 CXXFLAGS="-g -O2"
9062 else
9063 CXXFLAGS="-g"
9064 fi
9065 else
9066 if test "$GXX" = yes; then
9067 CXXFLAGS="-O2"
9068 else
9069 CXXFLAGS=
9070 fi
9071 fi
9072
9073
9074 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
9075
9076 ac_ext=c
9077 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9078 ac_cpp='$CPP $CPPFLAGS'
9079 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9080 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9081 cross_compiling=$ac_cv_prog_cc_cross
9082
9083
9084 # Extract the first word of "ranlib", so it can be a program name with args.
9085 set dummy ranlib; ac_word=$2
9086 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9087 echo "configure:9088: checking for $ac_word" >&5
9088 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9089 echo $ac_n "(cached) $ac_c" 1>&6
9090 else
9091 if test -n "$RANLIB"; then
9092 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9093 else
9094 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9095 ac_dummy="$PATH"
9096 for ac_dir in $ac_dummy; do
9097 test -z "$ac_dir" && ac_dir=.
9098 if test -f $ac_dir/$ac_word; then
9099 ac_cv_prog_RANLIB="ranlib"
9100 break
9101 fi
9102 done
9103 IFS="$ac_save_ifs"
9104 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9105 fi
9106 fi
9107 RANLIB="$ac_cv_prog_RANLIB"
9108 if test -n "$RANLIB"; then
9109 echo "$ac_t""$RANLIB" 1>&6
9110 else
9111 echo "$ac_t""no" 1>&6
9112 fi
9113
9114
9115 # Extract the first word of "ar", so it can be a program name with args.
9116 set dummy ar; ac_word=$2
9117 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9118 echo "configure:9119: checking for $ac_word" >&5
9119 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9120 echo $ac_n "(cached) $ac_c" 1>&6
9121 else
9122 if test -n "$AR"; then
9123 ac_cv_prog_AR="$AR" # Let the user override the test.
9124 else
9125 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9126 ac_dummy="$PATH"
9127 for ac_dir in $ac_dummy; do
9128 test -z "$ac_dir" && ac_dir=.
9129 if test -f $ac_dir/$ac_word; then
9130 ac_cv_prog_AR="ar"
9131 break
9132 fi
9133 done
9134 IFS="$ac_save_ifs"
9135 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9136 fi
9137 fi
9138 AR="$ac_cv_prog_AR"
9139 if test -n "$AR"; then
9140 echo "$ac_t""$AR" 1>&6
9141 else
9142 echo "$ac_t""no" 1>&6
9143 fi
9144
9145
9146 # Find a good install program. We prefer a C program (faster),
9147 # so one script is as good as another. But avoid the broken or
9148 # incompatible versions:
9149 # SysV /etc/install, /usr/sbin/install
9150 # SunOS /usr/etc/install
9151 # IRIX /sbin/install
9152 # AIX /bin/install
9153 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9154 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9155 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9156 # ./install, which can be erroneously created by make from ./install.sh.
9157 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9158 echo "configure:9159: checking for a BSD compatible install" >&5
9159 if test -z "$INSTALL"; then
9160 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9161 echo $ac_n "(cached) $ac_c" 1>&6
9162 else
9163 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9164 for ac_dir in $PATH; do
9165 # Account for people who put trailing slashes in PATH elements.
9166 case "$ac_dir/" in
9167 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9168 *)
9169 # OSF1 and SCO ODT 3.0 have their own names for install.
9170 # Don't use installbsd from OSF since it installs stuff as root
9171 # by default.
9172 for ac_prog in ginstall scoinst install; do
9173 if test -f $ac_dir/$ac_prog; then
9174 if test $ac_prog = install &&
9175 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9176 # AIX install. It has an incompatible calling convention.
9177 :
9178 else
9179 ac_cv_path_install="$ac_dir/$ac_prog -c"
9180 break 2
9181 fi
9182 fi
9183 done
9184 ;;
9185 esac
9186 done
9187 IFS="$ac_save_IFS"
9188
9189 fi
9190 if test "${ac_cv_path_install+set}" = set; then
9191 INSTALL="$ac_cv_path_install"
9192 else
9193 # As a last resort, use the slow shell script. We don't cache a
9194 # path for INSTALL within a source directory, because that will
9195 # break other packages using the cache if that directory is
9196 # removed, or if the path is relative.
9197 INSTALL="$ac_install_sh"
9198 fi
9199 fi
9200 echo "$ac_t""$INSTALL" 1>&6
9201
9202 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9203 # It thinks the first close brace ends the variable substitution.
9204 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9205
9206 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9207
9208 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9209
9210 case "${host}" in
9211
9212 powerpc-*-darwin* )
9213 INSTALL_PROGRAM="cp -fp"
9214 INSTALL_DATA="cp -fp"
9215 ;;
9216 *)
9217 ;;
9218 esac
9219
9220 # Extract the first word of "strip", so it can be a program name with args.
9221 set dummy strip; ac_word=$2
9222 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9223 echo "configure:9224: checking for $ac_word" >&5
9224 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9225 echo $ac_n "(cached) $ac_c" 1>&6
9226 else
9227 if test -n "$STRIP"; then
9228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9229 else
9230 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9231 ac_dummy="$PATH"
9232 for ac_dir in $ac_dummy; do
9233 test -z "$ac_dir" && ac_dir=.
9234 if test -f $ac_dir/$ac_word; then
9235 ac_cv_prog_STRIP="strip"
9236 break
9237 fi
9238 done
9239 IFS="$ac_save_ifs"
9240 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9241 fi
9242 fi
9243 STRIP="$ac_cv_prog_STRIP"
9244 if test -n "$STRIP"; then
9245 echo "$ac_t""$STRIP" 1>&6
9246 else
9247 echo "$ac_t""no" 1>&6
9248 fi
9249
9250
9251 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9252 echo "configure:9253: checking if make is GNU make" >&5
9253 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9254 echo $ac_n "(cached) $ac_c" 1>&6
9255 else
9256
9257 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9258 egrep -s GNU); then
9259 wx_cv_prog_makeisgnu="yes"
9260 else
9261 wx_cv_prog_makeisgnu="no"
9262 fi
9263
9264 fi
9265
9266 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9267
9268 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9269 IF_GNU_MAKE=""
9270 else
9271 IF_GNU_MAKE="#"
9272 fi
9273
9274
9275
9276 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9277 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9278 echo "configure:9279: checking if make supports VPATH" >&5
9279 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9280 echo $ac_n "(cached) $ac_c" 1>&6
9281 else
9282
9283 cat - << EOF > confMake
9284 check : file
9285 cp \$? \$@
9286 cp \$? final_file
9287 EOF
9288
9289 if test ! -d sub ; then
9290 mkdir sub
9291 fi
9292 echo dummy > sub/file
9293 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9294 RESULT=$?
9295 rm -f sub/file check final_file confMake
9296 rmdir sub
9297 if test "$RESULT" = 0; then
9298 wx_cv_prog_makevpath="yes"
9299 else
9300 wx_cv_prog_makevpath="no"
9301 fi
9302
9303 fi
9304
9305 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9306
9307 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9308 { echo "configure: error:
9309 You need a make-utility that is able to use the variable
9310 VPATH correctly.
9311 If your version of make does not support VPATH correctly,
9312 please install GNU-make (possibly as gmake), and start
9313 configure with the following command:
9314 export MAKE=gmake; ./configure for sh-type shells
9315 setenv MAKE gmake; ./configure for csh-type shells
9316 Also please do remember to use gmake in this case every time
9317 you are trying to compile.
9318 " 1>&2; exit 1; }
9319 fi fi
9320 for ac_prog in 'bison -y' byacc
9321 do
9322 # Extract the first word of "$ac_prog", so it can be a program name with args.
9323 set dummy $ac_prog; ac_word=$2
9324 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9325 echo "configure:9326: checking for $ac_word" >&5
9326 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9327 echo $ac_n "(cached) $ac_c" 1>&6
9328 else
9329 if test -n "$YACC"; then
9330 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9331 else
9332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9333 ac_dummy="$PATH"
9334 for ac_dir in $ac_dummy; do
9335 test -z "$ac_dir" && ac_dir=.
9336 if test -f $ac_dir/$ac_word; then
9337 ac_cv_prog_YACC="$ac_prog"
9338 break
9339 fi
9340 done
9341 IFS="$ac_save_ifs"
9342 fi
9343 fi
9344 YACC="$ac_cv_prog_YACC"
9345 if test -n "$YACC"; then
9346 echo "$ac_t""$YACC" 1>&6
9347 else
9348 echo "$ac_t""no" 1>&6
9349 fi
9350
9351 test -n "$YACC" && break
9352 done
9353 test -n "$YACC" || YACC="yacc"
9354
9355
9356 # Extract the first word of "flex", so it can be a program name with args.
9357 set dummy flex; ac_word=$2
9358 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9359 echo "configure:9360: checking for $ac_word" >&5
9360 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9361 echo $ac_n "(cached) $ac_c" 1>&6
9362 else
9363 if test -n "$LEX"; then
9364 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9365 else
9366 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9367 ac_dummy="$PATH"
9368 for ac_dir in $ac_dummy; do
9369 test -z "$ac_dir" && ac_dir=.
9370 if test -f $ac_dir/$ac_word; then
9371 ac_cv_prog_LEX="flex"
9372 break
9373 fi
9374 done
9375 IFS="$ac_save_ifs"
9376 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9377 fi
9378 fi
9379 LEX="$ac_cv_prog_LEX"
9380 if test -n "$LEX"; then
9381 echo "$ac_t""$LEX" 1>&6
9382 else
9383 echo "$ac_t""no" 1>&6
9384 fi
9385
9386 if test -z "$LEXLIB"
9387 then
9388 case "$LEX" in
9389 flex*) ac_lib=fl ;;
9390 *) ac_lib=l ;;
9391 esac
9392 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9393 echo "configure:9394: checking for yywrap in -l$ac_lib" >&5
9394 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9396 echo $ac_n "(cached) $ac_c" 1>&6
9397 else
9398 ac_save_LIBS="$LIBS"
9399 LIBS="-l$ac_lib $LIBS"
9400 cat > conftest.$ac_ext <<EOF
9401 #line 9402 "configure"
9402 #include "confdefs.h"
9403 /* Override any gcc2 internal prototype to avoid an error. */
9404 /* We use char because int might match the return type of a gcc2
9405 builtin and then its argument prototype would still apply. */
9406 char yywrap();
9407
9408 int main() {
9409 yywrap()
9410 ; return 0; }
9411 EOF
9412 if { (eval echo configure:9413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9413 rm -rf conftest*
9414 eval "ac_cv_lib_$ac_lib_var=yes"
9415 else
9416 echo "configure: failed program was:" >&5
9417 cat conftest.$ac_ext >&5
9418 rm -rf conftest*
9419 eval "ac_cv_lib_$ac_lib_var=no"
9420 fi
9421 rm -f conftest*
9422 LIBS="$ac_save_LIBS"
9423
9424 fi
9425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9426 echo "$ac_t""yes" 1>&6
9427 LEXLIB="-l$ac_lib"
9428 else
9429 echo "$ac_t""no" 1>&6
9430 fi
9431
9432 fi
9433
9434
9435 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9436 echo "configure:9437: checking whether ln -s works" >&5
9437 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9438 echo $ac_n "(cached) $ac_c" 1>&6
9439 else
9440 rm -f conftestdata
9441 if ln -s X conftestdata 2>/dev/null
9442 then
9443 rm -f conftestdata
9444 ac_cv_prog_LN_S="ln -s"
9445 else
9446 ac_cv_prog_LN_S=ln
9447 fi
9448 fi
9449 LN_S="$ac_cv_prog_LN_S"
9450 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9451 echo "$ac_t""yes" 1>&6
9452 else
9453 echo "$ac_t""no" 1>&6
9454 fi
9455
9456
9457
9458 SEARCH_INCLUDE="\
9459 /usr/local/include \
9460 \
9461 /usr/Motif-1.2/include \
9462 /usr/Motif-2.1/include \
9463 \
9464 /usr/include/Motif1.2 \
9465 /opt/xpm/include/X11 \
9466 /opt/GBxpm/include/ \
9467 /opt/GBxpm/X11/include/ \
9468 \
9469 /usr/Motif1.2/include \
9470 /usr/dt/include \
9471 /usr/openwin/include \
9472 \
9473 /usr/include/Xm \
9474 \
9475 /usr/X11R6/include \
9476 /usr/X11R6.4/include \
9477 /usr/X11R5/include \
9478 /usr/X11R4/include \
9479 \
9480 /usr/include/X11R6 \
9481 /usr/include/X11R5 \
9482 /usr/include/X11R4 \
9483 \
9484 /usr/local/X11R6/include \
9485 /usr/local/X11R5/include \
9486 /usr/local/X11R4/include \
9487 \
9488 /usr/local/include/X11R6 \
9489 /usr/local/include/X11R5 \
9490 /usr/local/include/X11R4 \
9491 \
9492 /usr/X11/include \
9493 /usr/include/X11 \
9494 /usr/local/X11/include \
9495 /usr/local/include/X11 \
9496 \
9497 /usr/X386/include \
9498 /usr/x386/include \
9499 /usr/XFree86/include/X11 \
9500 \
9501 X:/XFree86/include \
9502 X:/XFree86/include/X11 \
9503 \
9504 /usr/include/gtk \
9505 /usr/local/include/gtk \
9506 /usr/include/glib \
9507 /usr/local/include/glib \
9508 \
9509 /usr/include/qt \
9510 /usr/local/include/qt \
9511 \
9512 /usr/include/windows \
9513 /usr/include/wine \
9514 /usr/local/include/wine \
9515 \
9516 /usr/unsupported/include \
9517 /usr/athena/include \
9518 /usr/local/x11r5/include \
9519 /usr/lpp/Xamples/include \
9520 \
9521 /usr/openwin/share/include \
9522 \
9523 /usr/include"
9524
9525 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9526
9527
9528 cat > confcache <<\EOF
9529 # This file is a shell script that caches the results of configure
9530 # tests run on this system so they can be shared between configure
9531 # scripts and configure runs. It is not useful on other systems.
9532 # If it contains results you don't want to keep, you may remove or edit it.
9533 #
9534 # By default, configure uses ./config.cache as the cache file,
9535 # creating it if it does not exist already. You can give configure
9536 # the --cache-file=FILE option to use a different cache file; that is
9537 # what configure does when it calls configure scripts in
9538 # subdirectories, so they share the cache.
9539 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9540 # config.status only pays attention to the cache file if you give it the
9541 # --recheck option to rerun configure.
9542 #
9543 EOF
9544 # The following way of writing the cache mishandles newlines in values,
9545 # but we know of no workaround that is simple, portable, and efficient.
9546 # So, don't put newlines in cache variables' values.
9547 # Ultrix sh set writes to stderr and can't be redirected directly,
9548 # and sets the high bit in the cache file unless we assign to the vars.
9549 (set) 2>&1 |
9550 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9551 *ac_space=\ *)
9552 # `set' does not quote correctly, so add quotes (double-quote substitution
9553 # turns \\\\ into \\, and sed turns \\ into \).
9554 sed -n \
9555 -e "s/'/'\\\\''/g" \
9556 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9557 ;;
9558 *)
9559 # `set' quotes correctly as required by POSIX, so do not add quotes.
9560 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9561 ;;
9562 esac >> confcache
9563 if cmp -s $cache_file confcache; then
9564 :
9565 else
9566 if test -w $cache_file; then
9567 echo "updating cache $cache_file"
9568 cat confcache > $cache_file
9569 else
9570 echo "not updating unwritable cache $cache_file"
9571 fi
9572 fi
9573 rm -f confcache
9574
9575
9576
9577
9578 REGEX_INCLUDE=
9579 if test "$wxUSE_REGEX" != "no"; then
9580 cat >> confdefs.h <<\EOF
9581 #define wxUSE_REGEX 1
9582 EOF
9583
9584
9585 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9586 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
9587 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
9588 echo "configure:9589: checking for regex.h" >&5
9589 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9590 echo $ac_n "(cached) $ac_c" 1>&6
9591 else
9592 cat > conftest.$ac_ext <<EOF
9593 #line 9594 "configure"
9594 #include "confdefs.h"
9595 #include <regex.h>
9596 EOF
9597 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9598 { (eval echo configure:9599: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9599 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9600 if test -z "$ac_err"; then
9601 rm -rf conftest*
9602 eval "ac_cv_header_$ac_safe=yes"
9603 else
9604 echo "$ac_err" >&5
9605 echo "configure: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9607 rm -rf conftest*
9608 eval "ac_cv_header_$ac_safe=no"
9609 fi
9610 rm -f conftest*
9611 fi
9612 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9613 echo "$ac_t""yes" 1>&6
9614 for ac_func in regcomp
9615 do
9616 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9617 echo "configure:9618: checking for $ac_func" >&5
9618 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9619 echo $ac_n "(cached) $ac_c" 1>&6
9620 else
9621 cat > conftest.$ac_ext <<EOF
9622 #line 9623 "configure"
9623 #include "confdefs.h"
9624 /* System header to define __stub macros and hopefully few prototypes,
9625 which can conflict with char $ac_func(); below. */
9626 #include <assert.h>
9627 /* Override any gcc2 internal prototype to avoid an error. */
9628 /* We use char because int might match the return type of a gcc2
9629 builtin and then its argument prototype would still apply. */
9630 char $ac_func();
9631
9632 int main() {
9633
9634 /* The GNU C library defines this for functions which it implements
9635 to always fail with ENOSYS. Some functions are actually named
9636 something starting with __ and the normal name is an alias. */
9637 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9638 choke me
9639 #else
9640 $ac_func();
9641 #endif
9642
9643 ; return 0; }
9644 EOF
9645 if { (eval echo configure:9646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9646 rm -rf conftest*
9647 eval "ac_cv_func_$ac_func=yes"
9648 else
9649 echo "configure: failed program was:" >&5
9650 cat conftest.$ac_ext >&5
9651 rm -rf conftest*
9652 eval "ac_cv_func_$ac_func=no"
9653 fi
9654 rm -f conftest*
9655 fi
9656
9657 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9658 echo "$ac_t""yes" 1>&6
9659 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9660 cat >> confdefs.h <<EOF
9661 #define $ac_tr_func 1
9662 EOF
9663
9664 else
9665 echo "$ac_t""no" 1>&6
9666 fi
9667 done
9668
9669 else
9670 echo "$ac_t""no" 1>&6
9671 fi
9672
9673
9674 if test "x$ac_cv_func_regcomp" != "xyes"; then
9675 if test "$wxUSE_REGEX" = "sys" ; then
9676 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9677 else
9678 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9679 wxUSE_REGEX=builtin
9680 fi
9681 else
9682 wxUSE_REGEX=sys
9683 fi
9684 fi
9685
9686 if test "$wxUSE_REGEX" = "builtin" ; then
9687 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9688 fi
9689 fi
9690
9691
9692 ZLIB_INCLUDE=
9693 ZLIB_LINK=
9694 if test "$wxUSE_ZLIB" != "no" ; then
9695 cat >> confdefs.h <<\EOF
9696 #define wxUSE_ZLIB 1
9697 EOF
9698
9699
9700 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9701 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9702 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9703 echo "configure:9704: checking for zlib.h" >&5
9704 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9705 echo $ac_n "(cached) $ac_c" 1>&6
9706 else
9707 cat > conftest.$ac_ext <<EOF
9708 #line 9709 "configure"
9709 #include "confdefs.h"
9710 #include <zlib.h>
9711 EOF
9712 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9713 { (eval echo configure:9714: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9714 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9715 if test -z "$ac_err"; then
9716 rm -rf conftest*
9717 eval "ac_cv_header_$ac_safe=yes"
9718 else
9719 echo "$ac_err" >&5
9720 echo "configure: failed program was:" >&5
9721 cat conftest.$ac_ext >&5
9722 rm -rf conftest*
9723 eval "ac_cv_header_$ac_safe=no"
9724 fi
9725 rm -f conftest*
9726 fi
9727 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9728 echo "$ac_t""yes" 1>&6
9729 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9730 echo "configure:9731: checking for deflate in -lz" >&5
9731 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9732 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9733 echo $ac_n "(cached) $ac_c" 1>&6
9734 else
9735 ac_save_LIBS="$LIBS"
9736 LIBS="-lz $LIBS"
9737 cat > conftest.$ac_ext <<EOF
9738 #line 9739 "configure"
9739 #include "confdefs.h"
9740 /* Override any gcc2 internal prototype to avoid an error. */
9741 /* We use char because int might match the return type of a gcc2
9742 builtin and then its argument prototype would still apply. */
9743 char deflate();
9744
9745 int main() {
9746 deflate()
9747 ; return 0; }
9748 EOF
9749 if { (eval echo configure:9750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9750 rm -rf conftest*
9751 eval "ac_cv_lib_$ac_lib_var=yes"
9752 else
9753 echo "configure: failed program was:" >&5
9754 cat conftest.$ac_ext >&5
9755 rm -rf conftest*
9756 eval "ac_cv_lib_$ac_lib_var=no"
9757 fi
9758 rm -f conftest*
9759 LIBS="$ac_save_LIBS"
9760
9761 fi
9762 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9763 echo "$ac_t""yes" 1>&6
9764 ZLIB_LINK=" -lz"
9765 else
9766 echo "$ac_t""no" 1>&6
9767 fi
9768
9769 else
9770 echo "$ac_t""no" 1>&6
9771 fi
9772
9773
9774 if test "x$ZLIB_LINK" = "x" ; then
9775 if test "$wxUSE_ZLIB" = "sys" ; then
9776 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9777 else
9778 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9779 wxUSE_ZLIB=builtin
9780 fi
9781 else
9782 wxUSE_ZLIB=sys
9783 fi
9784 fi
9785
9786 if test "$wxUSE_ZLIB" = "builtin" ; then
9787 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9788 fi
9789 fi
9790
9791
9792 PNG_INCLUDE=
9793 PNG_LINK=
9794 if test "$wxUSE_LIBPNG" != "no" ; then
9795 cat >> confdefs.h <<\EOF
9796 #define wxUSE_LIBPNG 1
9797 EOF
9798
9799
9800 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
9801 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
9802 wxUSE_LIBPNG=sys
9803 fi
9804
9805 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9806 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9807 wxUSE_LIBPNG=builtin
9808 fi
9809
9810 if test "$wxUSE_MGL" != 1 ; then
9811 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9812 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9813 echo $ac_n "checking for png.h""... $ac_c" 1>&6
9814 echo "configure:9815: checking for png.h" >&5
9815 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9816 echo $ac_n "(cached) $ac_c" 1>&6
9817 else
9818 cat > conftest.$ac_ext <<EOF
9819 #line 9820 "configure"
9820 #include "confdefs.h"
9821 #include <png.h>
9822 EOF
9823 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9824 { (eval echo configure:9825: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9825 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9826 if test -z "$ac_err"; then
9827 rm -rf conftest*
9828 eval "ac_cv_header_$ac_safe=yes"
9829 else
9830 echo "$ac_err" >&5
9831 echo "configure: failed program was:" >&5
9832 cat conftest.$ac_ext >&5
9833 rm -rf conftest*
9834 eval "ac_cv_header_$ac_safe=no"
9835 fi
9836 rm -f conftest*
9837 fi
9838 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9839 echo "$ac_t""yes" 1>&6
9840 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9841 echo "configure:9842: checking for png_check_sig in -lpng" >&5
9842 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9843 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9844 echo $ac_n "(cached) $ac_c" 1>&6
9845 else
9846 ac_save_LIBS="$LIBS"
9847 LIBS="-lpng -lz -lm $LIBS"
9848 cat > conftest.$ac_ext <<EOF
9849 #line 9850 "configure"
9850 #include "confdefs.h"
9851 /* Override any gcc2 internal prototype to avoid an error. */
9852 /* We use char because int might match the return type of a gcc2
9853 builtin and then its argument prototype would still apply. */
9854 char png_check_sig();
9855
9856 int main() {
9857 png_check_sig()
9858 ; return 0; }
9859 EOF
9860 if { (eval echo configure:9861: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9861 rm -rf conftest*
9862 eval "ac_cv_lib_$ac_lib_var=yes"
9863 else
9864 echo "configure: failed program was:" >&5
9865 cat conftest.$ac_ext >&5
9866 rm -rf conftest*
9867 eval "ac_cv_lib_$ac_lib_var=no"
9868 fi
9869 rm -f conftest*
9870 LIBS="$ac_save_LIBS"
9871
9872 fi
9873 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9874 echo "$ac_t""yes" 1>&6
9875 PNG_LINK=" -lpng"
9876 else
9877 echo "$ac_t""no" 1>&6
9878 fi
9879
9880
9881 else
9882 echo "$ac_t""no" 1>&6
9883 fi
9884
9885
9886 if test "x$PNG_LINK" = "x" ; then
9887 if test "$wxUSE_LIBPNG" = "sys" ; then
9888 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9889 else
9890 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9891 wxUSE_LIBPNG=builtin
9892 fi
9893 else
9894 wxUSE_LIBPNG=yes
9895 fi
9896 fi
9897 fi
9898
9899 if test "$wxUSE_LIBPNG" = "builtin" ; then
9900 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9901 fi
9902
9903 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9904 fi
9905
9906
9907 JPEG_INCLUDE=
9908 JPEG_LINK=
9909 if test "$wxUSE_LIBJPEG" != "no" ; then
9910 cat >> confdefs.h <<\EOF
9911 #define wxUSE_LIBJPEG 1
9912 EOF
9913
9914
9915 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
9916 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
9917 wxUSE_LIBJPEG=sys
9918 fi
9919
9920 if test "$wxUSE_MGL" != 1 ; then
9921 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9922 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9923 echo "configure:9924: checking for jpeglib.h" >&5
9924 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
9925 echo $ac_n "(cached) $ac_c" 1>&6
9926 else
9927 cat > conftest.$ac_ext <<EOF
9928 #line 9929 "configure"
9929 #include "confdefs.h"
9930
9931 #undef HAVE_STDLIB_H
9932 #include <stdio.h>
9933 #include <jpeglib.h>
9934
9935 int main() {
9936
9937
9938 ; return 0; }
9939 EOF
9940 if { (eval echo configure:9941: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9941 rm -rf conftest*
9942 ac_cv_header_jpeglib_h=yes
9943 else
9944 echo "configure: failed program was:" >&5
9945 cat conftest.$ac_ext >&5
9946 rm -rf conftest*
9947 ac_cv_header_jpeglib_h=no
9948
9949 fi
9950 rm -f conftest*
9951
9952 fi
9953
9954 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9955
9956 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9957 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
9958 echo "configure:9959: checking for jpeg_read_header in -ljpeg" >&5
9959 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9961 echo $ac_n "(cached) $ac_c" 1>&6
9962 else
9963 ac_save_LIBS="$LIBS"
9964 LIBS="-ljpeg $LIBS"
9965 cat > conftest.$ac_ext <<EOF
9966 #line 9967 "configure"
9967 #include "confdefs.h"
9968 /* Override any gcc2 internal prototype to avoid an error. */
9969 /* We use char because int might match the return type of a gcc2
9970 builtin and then its argument prototype would still apply. */
9971 char jpeg_read_header();
9972
9973 int main() {
9974 jpeg_read_header()
9975 ; return 0; }
9976 EOF
9977 if { (eval echo configure:9978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9978 rm -rf conftest*
9979 eval "ac_cv_lib_$ac_lib_var=yes"
9980 else
9981 echo "configure: failed program was:" >&5
9982 cat conftest.$ac_ext >&5
9983 rm -rf conftest*
9984 eval "ac_cv_lib_$ac_lib_var=no"
9985 fi
9986 rm -f conftest*
9987 LIBS="$ac_save_LIBS"
9988
9989 fi
9990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9991 echo "$ac_t""yes" 1>&6
9992 JPEG_LINK=" -ljpeg"
9993 else
9994 echo "$ac_t""no" 1>&6
9995 fi
9996
9997 fi
9998
9999 if test "x$JPEG_LINK" = "x" ; then
10000 if test "$wxUSE_LIBJPEG" = "sys" ; then
10001 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
10002 else
10003 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
10004 wxUSE_LIBJPEG=builtin
10005 fi
10006 else
10007 wxUSE_LIBJPEG=sys
10008 fi
10009 fi
10010 fi
10011
10012 if test "$wxUSE_LIBJPEG" = "builtin" ; then
10013 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
10014 fi
10015 fi
10016
10017
10018 TIFF_INCLUDE=
10019 TIFF_LINK=
10020 if test "$wxUSE_LIBTIFF" != "no" ; then
10021 cat >> confdefs.h <<\EOF
10022 #define wxUSE_LIBTIFF 1
10023 EOF
10024
10025
10026 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
10027 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
10028 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
10029 echo "configure:10030: checking for tiffio.h" >&5
10030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10031 echo $ac_n "(cached) $ac_c" 1>&6
10032 else
10033 cat > conftest.$ac_ext <<EOF
10034 #line 10035 "configure"
10035 #include "confdefs.h"
10036 #include <tiffio.h>
10037 EOF
10038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10039 { (eval echo configure:10040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10041 if test -z "$ac_err"; then
10042 rm -rf conftest*
10043 eval "ac_cv_header_$ac_safe=yes"
10044 else
10045 echo "$ac_err" >&5
10046 echo "configure: failed program was:" >&5
10047 cat conftest.$ac_ext >&5
10048 rm -rf conftest*
10049 eval "ac_cv_header_$ac_safe=no"
10050 fi
10051 rm -f conftest*
10052 fi
10053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10054 echo "$ac_t""yes" 1>&6
10055 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
10056 echo "configure:10057: checking for TIFFError in -ltiff" >&5
10057 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
10058 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10059 echo $ac_n "(cached) $ac_c" 1>&6
10060 else
10061 ac_save_LIBS="$LIBS"
10062 LIBS="-ltiff -lm $LIBS"
10063 cat > conftest.$ac_ext <<EOF
10064 #line 10065 "configure"
10065 #include "confdefs.h"
10066 /* Override any gcc2 internal prototype to avoid an error. */
10067 /* We use char because int might match the return type of a gcc2
10068 builtin and then its argument prototype would still apply. */
10069 char TIFFError();
10070
10071 int main() {
10072 TIFFError()
10073 ; return 0; }
10074 EOF
10075 if { (eval echo configure:10076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10076 rm -rf conftest*
10077 eval "ac_cv_lib_$ac_lib_var=yes"
10078 else
10079 echo "configure: failed program was:" >&5
10080 cat conftest.$ac_ext >&5
10081 rm -rf conftest*
10082 eval "ac_cv_lib_$ac_lib_var=no"
10083 fi
10084 rm -f conftest*
10085 LIBS="$ac_save_LIBS"
10086
10087 fi
10088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10089 echo "$ac_t""yes" 1>&6
10090 TIFF_LINK=" -ltiff"
10091 else
10092 echo "$ac_t""no" 1>&6
10093 fi
10094
10095
10096 else
10097 echo "$ac_t""no" 1>&6
10098 fi
10099
10100
10101 if test "x$TIFF_LINK" = "x" ; then
10102 if test "$wxUSE_LIBTIFF" = "sys" ; then
10103 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
10104 else
10105 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
10106 wxUSE_LIBTIFF=builtin
10107 fi
10108 else
10109 wxUSE_LIBTIFF=sys
10110 fi
10111 fi
10112
10113 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10114 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10115 fi
10116 fi
10117
10118
10119 AFMINSTALL=
10120
10121 TOOLKIT=
10122 TOOLKIT_INCLUDE=
10123 WIDGET_SET=
10124
10125 if test "$USE_WIN32" = 1 ; then
10126 for ac_hdr in w32api.h
10127 do
10128 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10129 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10130 echo "configure:10131: checking for $ac_hdr" >&5
10131 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10132 echo $ac_n "(cached) $ac_c" 1>&6
10133 else
10134 cat > conftest.$ac_ext <<EOF
10135 #line 10136 "configure"
10136 #include "confdefs.h"
10137 #include <$ac_hdr>
10138 EOF
10139 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10140 { (eval echo configure:10141: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10141 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10142 if test -z "$ac_err"; then
10143 rm -rf conftest*
10144 eval "ac_cv_header_$ac_safe=yes"
10145 else
10146 echo "$ac_err" >&5
10147 echo "configure: failed program was:" >&5
10148 cat conftest.$ac_ext >&5
10149 rm -rf conftest*
10150 eval "ac_cv_header_$ac_safe=no"
10151 fi
10152 rm -f conftest*
10153 fi
10154 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10155 echo "$ac_t""yes" 1>&6
10156 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10157 cat >> confdefs.h <<EOF
10158 #define $ac_tr_hdr 1
10159 EOF
10160
10161 else
10162 echo "$ac_t""no" 1>&6
10163 fi
10164 done
10165
10166 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10167 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10168 echo "configure:10169: checking for windows.h" >&5
10169 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10170 echo $ac_n "(cached) $ac_c" 1>&6
10171 else
10172 cat > conftest.$ac_ext <<EOF
10173 #line 10174 "configure"
10174 #include "confdefs.h"
10175 #include <windows.h>
10176 EOF
10177 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10178 { (eval echo configure:10179: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10179 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10180 if test -z "$ac_err"; then
10181 rm -rf conftest*
10182 eval "ac_cv_header_$ac_safe=yes"
10183 else
10184 echo "$ac_err" >&5
10185 echo "configure: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10187 rm -rf conftest*
10188 eval "ac_cv_header_$ac_safe=no"
10189 fi
10190 rm -f conftest*
10191 fi
10192 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10193 echo "$ac_t""yes" 1>&6
10194 :
10195 else
10196 echo "$ac_t""no" 1>&6
10197
10198 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10199
10200 fi
10201
10202
10203 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
10204 echo "configure:10205: checking if w32api has good enough MSIE support" >&5
10205 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
10206 echo $ac_n "(cached) $ac_c" 1>&6
10207 else
10208
10209 cat > conftest.$ac_ext <<EOF
10210 #line 10211 "configure"
10211 #include "confdefs.h"
10212 #include <w32api.h>
10213 int main() {
10214
10215 #define wxCHECK_W32API_VERSION( major, minor ) \
10216 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
10217 && ( ( __W32API_MAJOR_VERSION > (major) ) \
10218 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
10219
10220 #if !wxCHECK_W32API_VERSION(1,1)
10221 #error You need w32api 1.1 or newer
10222 #endif
10223
10224 ; return 0; }
10225 EOF
10226 if { (eval echo configure:10227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10227 rm -rf conftest*
10228
10229 wx_cv_w32api_win32_ie=yes
10230
10231 else
10232 echo "configure: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10234 rm -rf conftest*
10235
10236 wx_cv_w32api_win32_ie=no
10237
10238 fi
10239 rm -f conftest*
10240
10241 fi
10242
10243 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10244 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10245 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10246 fi
10247
10248 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10249
10250 case "${host}" in
10251 *-*-cygwin* )
10252 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10253 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10254 esac
10255
10256 if test "$wxUSE_ODBC" = "yes" ; then
10257 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
10258 fi
10259
10260 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10261 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10262 fi
10263
10264 if test "$wxUSE_GUI" = "yes"; then
10265 USE_GUI=1
10266
10267 GUI_TK_LIBRARY=
10268
10269 WXGTK12=
10270 WXGTK127=
10271 WXGTK20=
10272
10273 if test "$wxUSE_MSW" = 1 ; then
10274 TOOLKIT=MSW
10275 GUIDIST=MSW_DIST
10276
10277 case "${host}" in
10278 *-*-mingw32* )
10279 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
10280 esac
10281 fi
10282
10283 if test "$wxUSE_GTK" = 1; then
10284 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
10285 echo "configure:10286: checking for GTK+ version" >&5
10286
10287 gtk_version_cached=1
10288 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10289 echo $ac_n "(cached) $ac_c" 1>&6
10290 else
10291
10292 gtk_version_cached=0
10293 echo "$ac_t""" 1>&6
10294
10295 GTK_MODULES=
10296 if test "$wxUSE_THREADS" = "yes"; then
10297 GTK_MODULES=gthread
10298 fi
10299
10300 wx_cv_lib_gtk=
10301 if test "x$wxUSE_GTK2" = "xyes"; then
10302 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10303 if test "${with_gtk_prefix+set}" = set; then
10304 withval="$with_gtk_prefix"
10305 gtk_config_prefix="$withval"
10306 else
10307 gtk_config_prefix=""
10308 fi
10309
10310 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10311 if test "${with_gtk_exec_prefix+set}" = set; then
10312 withval="$with_gtk_exec_prefix"
10313 gtk_config_exec_prefix="$withval"
10314 else
10315 gtk_config_exec_prefix=""
10316 fi
10317
10318 # Check whether --enable-gtktest or --disable-gtktest was given.
10319 if test "${enable_gtktest+set}" = set; then
10320 enableval="$enable_gtktest"
10321 :
10322 else
10323 enable_gtktest=yes
10324 fi
10325
10326
10327 for module in . $GTK_MODULES
10328 do
10329 case "$module" in
10330 gthread)
10331 gtk_config_args="$gtk_config_args gthread"
10332 ;;
10333 esac
10334 done
10335
10336 if test x$gtk_config_exec_prefix != x ; then
10337 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10338 if test x${GTK_CONFIG_2_0+set} != xset ; then
10339 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10340 fi
10341 fi
10342 if test x$gtk_config_prefix != x ; then
10343 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10344 if test x${GTK_CONFIG_2_0+set} != xset ; then
10345 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10346 fi
10347 fi
10348
10349 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10350 set dummy gtk-config-2.0; ac_word=$2
10351 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10352 echo "configure:10353: checking for $ac_word" >&5
10353 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10354 echo $ac_n "(cached) $ac_c" 1>&6
10355 else
10356 case "$GTK_CONFIG_2_0" in
10357 /*)
10358 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10359 ;;
10360 ?:/*)
10361 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10362 ;;
10363 *)
10364 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10365 ac_dummy="$PATH"
10366 for ac_dir in $ac_dummy; do
10367 test -z "$ac_dir" && ac_dir=.
10368 if test -f $ac_dir/$ac_word; then
10369 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10370 break
10371 fi
10372 done
10373 IFS="$ac_save_ifs"
10374 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10375 ;;
10376 esac
10377 fi
10378 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
10379 if test -n "$GTK_CONFIG_2_0"; then
10380 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
10381 else
10382 echo "$ac_t""no" 1>&6
10383 fi
10384
10385 min_gtk_version=1.3.1
10386 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10387 echo "configure:10388: checking for GTK - version >= $min_gtk_version" >&5
10388 no_gtk=""
10389 if test "$GTK_CONFIG_2_0" = "no" ; then
10390 no_gtk=yes
10391 else
10392 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10393 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10394 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10395 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10396 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10397 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10398 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10399 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10400 if test "x$enable_gtktest" = "xyes" ; then
10401 ac_save_CFLAGS="$CFLAGS"
10402 ac_save_LIBS="$LIBS"
10403 CFLAGS="$CFLAGS $GTK_CFLAGS"
10404 LIBS="$GTK_LIBS $LIBS"
10405 rm -f conf.gtktest
10406 if test "$cross_compiling" = yes; then
10407 echo $ac_n "cross compiling; assumed OK... $ac_c"
10408 else
10409 cat > conftest.$ac_ext <<EOF
10410 #line 10411 "configure"
10411 #include "confdefs.h"
10412
10413 #include <gtk/gtk.h>
10414 #include <stdio.h>
10415 #include <stdlib.h>
10416
10417 int
10418 main ()
10419 {
10420 int major, minor, micro;
10421 char *tmp_version;
10422
10423 system ("touch conf.gtktest");
10424
10425 /* HP/UX 9 (%@#!) writes to sscanf strings */
10426 tmp_version = g_strdup("$min_gtk_version");
10427 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10428 printf("%s, bad version string\n", "$min_gtk_version");
10429 exit(1);
10430 }
10431
10432 if ((gtk_major_version != $gtk_config_major_version) ||
10433 (gtk_minor_version != $gtk_config_minor_version) ||
10434 (gtk_micro_version != $gtk_config_micro_version))
10435 {
10436 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10437 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10438 gtk_major_version, gtk_minor_version, gtk_micro_version);
10439 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10440 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10441 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10442 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10443 printf("*** required on your system.\n");
10444 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10445 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10446 printf("*** before re-running configure\n");
10447 }
10448 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10449 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10450 (gtk_minor_version != GTK_MINOR_VERSION) ||
10451 (gtk_micro_version != GTK_MICRO_VERSION))
10452 {
10453 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10454 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10455 printf("*** library (version %d.%d.%d)\n",
10456 gtk_major_version, gtk_minor_version, gtk_micro_version);
10457 }
10458 #endif /* defined (GTK_MAJOR_VERSION) ... */
10459 else
10460 {
10461 if ((gtk_major_version > major) ||
10462 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10463 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10464 {
10465 return 0;
10466 }
10467 else
10468 {
10469 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10470 gtk_major_version, gtk_minor_version, gtk_micro_version);
10471 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10472 major, minor, micro);
10473 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10474 printf("***\n");
10475 printf("*** If you have already installed a sufficiently new version, this error\n");
10476 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10477 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10478 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10479 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10480 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10481 printf("*** so that the correct libraries are found at run-time))\n");
10482 }
10483 }
10484 return 1;
10485 }
10486
10487 EOF
10488 if { (eval echo configure:10489: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10489 then
10490 :
10491 else
10492 echo "configure: failed program was:" >&5
10493 cat conftest.$ac_ext >&5
10494 rm -fr conftest*
10495 no_gtk=yes
10496 fi
10497 rm -fr conftest*
10498 fi
10499
10500 CFLAGS="$ac_save_CFLAGS"
10501 LIBS="$ac_save_LIBS"
10502 fi
10503 fi
10504 if test "x$no_gtk" = x ; then
10505 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
10506 wx_cv_lib_gtk=2.0
10507 else
10508 echo "$ac_t""no" 1>&6
10509 if test "$GTK_CONFIG_2_0" = "no" ; then
10510 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10511 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10512 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10513 echo "*** full path to gtk-config-2.0."
10514 else
10515 if test -f conf.gtktest ; then
10516 :
10517 else
10518 echo "*** Could not run GTK test program, checking why..."
10519 CFLAGS="$CFLAGS $GTK_CFLAGS"
10520 LIBS="$LIBS $GTK_LIBS"
10521 cat > conftest.$ac_ext <<EOF
10522 #line 10523 "configure"
10523 #include "confdefs.h"
10524
10525 #include <gtk/gtk.h>
10526 #include <stdio.h>
10527
10528 int main() {
10529 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10530 ; return 0; }
10531 EOF
10532 if { (eval echo configure:10533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10533 rm -rf conftest*
10534 echo "*** The test program compiled, but did not run. This usually means"
10535 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10536 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10537 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10538 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10539 echo "*** is required on your system"
10540 echo "***"
10541 echo "*** If you have an old version installed, it is best to remove it, although"
10542 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10543 echo "***"
10544 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10545 echo "*** came with the system with the command"
10546 echo "***"
10547 echo "*** rpm --erase --nodeps gtk gtk-devel"
10548 else
10549 echo "configure: failed program was:" >&5
10550 cat conftest.$ac_ext >&5
10551 rm -rf conftest*
10552 echo "*** The test program failed to compile or link. See the file config.log for the"
10553 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10554 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10555 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
10556 fi
10557 rm -f conftest*
10558 CFLAGS="$ac_save_CFLAGS"
10559 LIBS="$ac_save_LIBS"
10560 fi
10561 fi
10562 GTK_CFLAGS=""
10563 GTK_LIBS=""
10564 :
10565 fi
10566
10567
10568 rm -f conf.gtktest
10569
10570 fi
10571
10572 if test -z "$wx_cv_lib_gtk"; then
10573 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10574 if test "${with_gtk_prefix+set}" = set; then
10575 withval="$with_gtk_prefix"
10576 gtk_config_prefix="$withval"
10577 else
10578 gtk_config_prefix=""
10579 fi
10580
10581 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10582 if test "${with_gtk_exec_prefix+set}" = set; then
10583 withval="$with_gtk_exec_prefix"
10584 gtk_config_exec_prefix="$withval"
10585 else
10586 gtk_config_exec_prefix=""
10587 fi
10588
10589 # Check whether --enable-gtktest or --disable-gtktest was given.
10590 if test "${enable_gtktest+set}" = set; then
10591 enableval="$enable_gtktest"
10592 :
10593 else
10594 enable_gtktest=yes
10595 fi
10596
10597
10598 for module in . $GTK_MODULES
10599 do
10600 case "$module" in
10601 gthread)
10602 gtk_config_args="$gtk_config_args gthread"
10603 ;;
10604 esac
10605 done
10606
10607 if test x$gtk_config_exec_prefix != x ; then
10608 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10609 if test x${GTK_CONFIG+set} != xset ; then
10610 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10611 fi
10612 fi
10613 if test x$gtk_config_prefix != x ; then
10614 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10615 if test x${GTK_CONFIG+set} != xset ; then
10616 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10617 fi
10618 fi
10619
10620 # Extract the first word of "gtk-config", so it can be a program name with args.
10621 set dummy gtk-config; ac_word=$2
10622 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10623 echo "configure:10624: checking for $ac_word" >&5
10624 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10625 echo $ac_n "(cached) $ac_c" 1>&6
10626 else
10627 case "$GTK_CONFIG" in
10628 /*)
10629 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10630 ;;
10631 ?:/*)
10632 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10633 ;;
10634 *)
10635 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10636 ac_dummy="$PATH"
10637 for ac_dir in $ac_dummy; do
10638 test -z "$ac_dir" && ac_dir=.
10639 if test -f $ac_dir/$ac_word; then
10640 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10641 break
10642 fi
10643 done
10644 IFS="$ac_save_ifs"
10645 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10646 ;;
10647 esac
10648 fi
10649 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10650 if test -n "$GTK_CONFIG"; then
10651 echo "$ac_t""$GTK_CONFIG" 1>&6
10652 else
10653 echo "$ac_t""no" 1>&6
10654 fi
10655
10656 min_gtk_version=1.2.7
10657 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10658 echo "configure:10659: checking for GTK - version >= $min_gtk_version" >&5
10659 no_gtk=""
10660 if test "$GTK_CONFIG" = "no" ; then
10661 no_gtk=yes
10662 else
10663 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10664 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10665 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10666 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10667 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10668 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10669 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10670 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10671 if test "x$enable_gtktest" = "xyes" ; then
10672 ac_save_CFLAGS="$CFLAGS"
10673 ac_save_LIBS="$LIBS"
10674 CFLAGS="$CFLAGS $GTK_CFLAGS"
10675 LIBS="$GTK_LIBS $LIBS"
10676 rm -f conf.gtktest
10677 if test "$cross_compiling" = yes; then
10678 echo $ac_n "cross compiling; assumed OK... $ac_c"
10679 else
10680 cat > conftest.$ac_ext <<EOF
10681 #line 10682 "configure"
10682 #include "confdefs.h"
10683
10684 #include <gtk/gtk.h>
10685 #include <stdio.h>
10686 #include <stdlib.h>
10687
10688 int
10689 main ()
10690 {
10691 int major, minor, micro;
10692 char *tmp_version;
10693
10694 system ("touch conf.gtktest");
10695
10696 /* HP/UX 9 (%@#!) writes to sscanf strings */
10697 tmp_version = g_strdup("$min_gtk_version");
10698 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10699 printf("%s, bad version string\n", "$min_gtk_version");
10700 exit(1);
10701 }
10702
10703 if ((gtk_major_version != $gtk_config_major_version) ||
10704 (gtk_minor_version != $gtk_config_minor_version) ||
10705 (gtk_micro_version != $gtk_config_micro_version))
10706 {
10707 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10708 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10709 gtk_major_version, gtk_minor_version, gtk_micro_version);
10710 printf ("*** was found! If gtk-config was correct, then it is best\n");
10711 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10712 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10713 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10714 printf("*** required on your system.\n");
10715 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10716 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10717 printf("*** before re-running configure\n");
10718 }
10719 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10720 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10721 (gtk_minor_version != GTK_MINOR_VERSION) ||
10722 (gtk_micro_version != GTK_MICRO_VERSION))
10723 {
10724 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10725 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10726 printf("*** library (version %d.%d.%d)\n",
10727 gtk_major_version, gtk_minor_version, gtk_micro_version);
10728 }
10729 #endif /* defined (GTK_MAJOR_VERSION) ... */
10730 else
10731 {
10732 if ((gtk_major_version > major) ||
10733 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10734 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10735 {
10736 return 0;
10737 }
10738 else
10739 {
10740 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10741 gtk_major_version, gtk_minor_version, gtk_micro_version);
10742 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10743 major, minor, micro);
10744 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10745 printf("***\n");
10746 printf("*** If you have already installed a sufficiently new version, this error\n");
10747 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10748 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10749 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10750 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10751 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10752 printf("*** so that the correct libraries are found at run-time))\n");
10753 }
10754 }
10755 return 1;
10756 }
10757
10758 EOF
10759 if { (eval echo configure:10760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10760 then
10761 :
10762 else
10763 echo "configure: failed program was:" >&5
10764 cat conftest.$ac_ext >&5
10765 rm -fr conftest*
10766 no_gtk=yes
10767 fi
10768 rm -fr conftest*
10769 fi
10770
10771 CFLAGS="$ac_save_CFLAGS"
10772 LIBS="$ac_save_LIBS"
10773 fi
10774 fi
10775 if test "x$no_gtk" = x ; then
10776 echo "$ac_t""yes" 1>&6
10777 wx_cv_lib_gtk=1.2.7
10778 else
10779 echo "$ac_t""no" 1>&6
10780 if test "$GTK_CONFIG" = "no" ; then
10781 echo "*** The gtk-config script installed by GTK could not be found"
10782 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10783 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10784 echo "*** full path to gtk-config."
10785 else
10786 if test -f conf.gtktest ; then
10787 :
10788 else
10789 echo "*** Could not run GTK test program, checking why..."
10790 CFLAGS="$CFLAGS $GTK_CFLAGS"
10791 LIBS="$LIBS $GTK_LIBS"
10792 cat > conftest.$ac_ext <<EOF
10793 #line 10794 "configure"
10794 #include "confdefs.h"
10795
10796 #include <gtk/gtk.h>
10797 #include <stdio.h>
10798
10799 int main() {
10800 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10801 ; return 0; }
10802 EOF
10803 if { (eval echo configure:10804: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10804 rm -rf conftest*
10805 echo "*** The test program compiled, but did not run. This usually means"
10806 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10807 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10808 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10809 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10810 echo "*** is required on your system"
10811 echo "***"
10812 echo "*** If you have an old version installed, it is best to remove it, although"
10813 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10814 echo "***"
10815 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10816 echo "*** came with the system with the command"
10817 echo "***"
10818 echo "*** rpm --erase --nodeps gtk gtk-devel"
10819 else
10820 echo "configure: failed program was:" >&5
10821 cat conftest.$ac_ext >&5
10822 rm -rf conftest*
10823 echo "*** The test program failed to compile or link. See the file config.log for the"
10824 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10825 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10826 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10827 fi
10828 rm -f conftest*
10829 CFLAGS="$ac_save_CFLAGS"
10830 LIBS="$ac_save_LIBS"
10831 fi
10832 fi
10833 GTK_CFLAGS=""
10834 GTK_LIBS=""
10835 :
10836 fi
10837
10838
10839 rm -f conf.gtktest
10840
10841 fi
10842
10843 if test -z "$wx_cv_lib_gtk"; then
10844 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10845 if test "${with_gtk_prefix+set}" = set; then
10846 withval="$with_gtk_prefix"
10847 gtk_config_prefix="$withval"
10848 else
10849 gtk_config_prefix=""
10850 fi
10851
10852 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10853 if test "${with_gtk_exec_prefix+set}" = set; then
10854 withval="$with_gtk_exec_prefix"
10855 gtk_config_exec_prefix="$withval"
10856 else
10857 gtk_config_exec_prefix=""
10858 fi
10859
10860 # Check whether --enable-gtktest or --disable-gtktest was given.
10861 if test "${enable_gtktest+set}" = set; then
10862 enableval="$enable_gtktest"
10863 :
10864 else
10865 enable_gtktest=yes
10866 fi
10867
10868
10869 for module in . $GTK_MODULES
10870 do
10871 case "$module" in
10872 gthread)
10873 gtk_config_args="$gtk_config_args gthread"
10874 ;;
10875 esac
10876 done
10877
10878 if test x$gtk_config_exec_prefix != x ; then
10879 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10880 if test x${GTK_CONFIG+set} != xset ; then
10881 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10882 fi
10883 fi
10884 if test x$gtk_config_prefix != x ; then
10885 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10886 if test x${GTK_CONFIG+set} != xset ; then
10887 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10888 fi
10889 fi
10890
10891 # Extract the first word of "gtk-config", so it can be a program name with args.
10892 set dummy gtk-config; ac_word=$2
10893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10894 echo "configure:10895: checking for $ac_word" >&5
10895 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10896 echo $ac_n "(cached) $ac_c" 1>&6
10897 else
10898 case "$GTK_CONFIG" in
10899 /*)
10900 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10901 ;;
10902 ?:/*)
10903 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10904 ;;
10905 *)
10906 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10907 ac_dummy="$PATH"
10908 for ac_dir in $ac_dummy; do
10909 test -z "$ac_dir" && ac_dir=.
10910 if test -f $ac_dir/$ac_word; then
10911 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10912 break
10913 fi
10914 done
10915 IFS="$ac_save_ifs"
10916 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10917 ;;
10918 esac
10919 fi
10920 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10921 if test -n "$GTK_CONFIG"; then
10922 echo "$ac_t""$GTK_CONFIG" 1>&6
10923 else
10924 echo "$ac_t""no" 1>&6
10925 fi
10926
10927 min_gtk_version=1.2.3
10928 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10929 echo "configure:10930: checking for GTK - version >= $min_gtk_version" >&5
10930 no_gtk=""
10931 if test "$GTK_CONFIG" = "no" ; then
10932 no_gtk=yes
10933 else
10934 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10935 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10936 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10937 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10938 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10939 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10940 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10941 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10942 if test "x$enable_gtktest" = "xyes" ; then
10943 ac_save_CFLAGS="$CFLAGS"
10944 ac_save_LIBS="$LIBS"
10945 CFLAGS="$CFLAGS $GTK_CFLAGS"
10946 LIBS="$GTK_LIBS $LIBS"
10947 rm -f conf.gtktest
10948 if test "$cross_compiling" = yes; then
10949 echo $ac_n "cross compiling; assumed OK... $ac_c"
10950 else
10951 cat > conftest.$ac_ext <<EOF
10952 #line 10953 "configure"
10953 #include "confdefs.h"
10954
10955 #include <gtk/gtk.h>
10956 #include <stdio.h>
10957 #include <stdlib.h>
10958
10959 int
10960 main ()
10961 {
10962 int major, minor, micro;
10963 char *tmp_version;
10964
10965 system ("touch conf.gtktest");
10966
10967 /* HP/UX 9 (%@#!) writes to sscanf strings */
10968 tmp_version = g_strdup("$min_gtk_version");
10969 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10970 printf("%s, bad version string\n", "$min_gtk_version");
10971 exit(1);
10972 }
10973
10974 if ((gtk_major_version != $gtk_config_major_version) ||
10975 (gtk_minor_version != $gtk_config_minor_version) ||
10976 (gtk_micro_version != $gtk_config_micro_version))
10977 {
10978 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10979 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10980 gtk_major_version, gtk_minor_version, gtk_micro_version);
10981 printf ("*** was found! If gtk-config was correct, then it is best\n");
10982 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10983 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10984 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10985 printf("*** required on your system.\n");
10986 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10987 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10988 printf("*** before re-running configure\n");
10989 }
10990 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10991 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10992 (gtk_minor_version != GTK_MINOR_VERSION) ||
10993 (gtk_micro_version != GTK_MICRO_VERSION))
10994 {
10995 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10996 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10997 printf("*** library (version %d.%d.%d)\n",
10998 gtk_major_version, gtk_minor_version, gtk_micro_version);
10999 }
11000 #endif /* defined (GTK_MAJOR_VERSION) ... */
11001 else
11002 {
11003 if ((gtk_major_version > major) ||
11004 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11005 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11006 {
11007 return 0;
11008 }
11009 else
11010 {
11011 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11012 gtk_major_version, gtk_minor_version, gtk_micro_version);
11013 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11014 major, minor, micro);
11015 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11016 printf("***\n");
11017 printf("*** If you have already installed a sufficiently new version, this error\n");
11018 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11019 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11020 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11021 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11022 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11023 printf("*** so that the correct libraries are found at run-time))\n");
11024 }
11025 }
11026 return 1;
11027 }
11028
11029 EOF
11030 if { (eval echo configure:11031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11031 then
11032 :
11033 else
11034 echo "configure: failed program was:" >&5
11035 cat conftest.$ac_ext >&5
11036 rm -fr conftest*
11037 no_gtk=yes
11038 fi
11039 rm -fr conftest*
11040 fi
11041
11042 CFLAGS="$ac_save_CFLAGS"
11043 LIBS="$ac_save_LIBS"
11044 fi
11045 fi
11046 if test "x$no_gtk" = x ; then
11047 echo "$ac_t""yes" 1>&6
11048 wx_cv_lib_gtk=1.2.3
11049 else
11050 echo "$ac_t""no" 1>&6
11051 if test "$GTK_CONFIG" = "no" ; then
11052 echo "*** The gtk-config script installed by GTK could not be found"
11053 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11054 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11055 echo "*** full path to gtk-config."
11056 else
11057 if test -f conf.gtktest ; then
11058 :
11059 else
11060 echo "*** Could not run GTK test program, checking why..."
11061 CFLAGS="$CFLAGS $GTK_CFLAGS"
11062 LIBS="$LIBS $GTK_LIBS"
11063 cat > conftest.$ac_ext <<EOF
11064 #line 11065 "configure"
11065 #include "confdefs.h"
11066
11067 #include <gtk/gtk.h>
11068 #include <stdio.h>
11069
11070 int main() {
11071 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11072 ; return 0; }
11073 EOF
11074 if { (eval echo configure:11075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11075 rm -rf conftest*
11076 echo "*** The test program compiled, but did not run. This usually means"
11077 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11078 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11079 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11080 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11081 echo "*** is required on your system"
11082 echo "***"
11083 echo "*** If you have an old version installed, it is best to remove it, although"
11084 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11085 echo "***"
11086 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11087 echo "*** came with the system with the command"
11088 echo "***"
11089 echo "*** rpm --erase --nodeps gtk gtk-devel"
11090 else
11091 echo "configure: failed program was:" >&5
11092 cat conftest.$ac_ext >&5
11093 rm -rf conftest*
11094 echo "*** The test program failed to compile or link. See the file config.log for the"
11095 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11096 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11097 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11098 fi
11099 rm -f conftest*
11100 CFLAGS="$ac_save_CFLAGS"
11101 LIBS="$ac_save_LIBS"
11102 fi
11103 fi
11104 GTK_CFLAGS=""
11105 GTK_LIBS=""
11106 :
11107 fi
11108
11109
11110 rm -f conf.gtktest
11111
11112 fi
11113
11114 if test -z "$wx_cv_lib_gtk"; then
11115 wx_cv_lib_gtk=none
11116 else
11117 wx_cv_cflags_gtk=$GTK_CFLAGS
11118 wx_cv_libs_gtk=$GTK_LIBS
11119 fi
11120
11121
11122 fi
11123
11124
11125 if test "$gtk_version_cached" = 1; then
11126 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
11127 fi
11128
11129 case "$wx_cv_lib_gtk" in
11130 2.0) WXGTK20=1
11131 ;;
11132 1.2.7) WXGTK127=1
11133 WXGTK12=1
11134 ;;
11135 1.2.3) WXGTK12=1
11136 ;;
11137 *) { echo "configure: error:
11138 Please check that gtk-config is in path, the directory
11139 where GTK+ libraries are installed (returned by
11140 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
11141 equivalent variable and GTK+ is version 1.2.3 or above.
11142 " 1>&2; exit 1; }
11143 ;;
11144 esac
11145
11146 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11147 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
11148
11149 AFMINSTALL=afminstall
11150 TOOLKIT=GTK
11151 GUIDIST=GTK_DIST
11152
11153 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
11154 echo "configure:11155: checking for gdk_im_open in -lgdk" >&5
11155 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
11156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11157 echo $ac_n "(cached) $ac_c" 1>&6
11158 else
11159 ac_save_LIBS="$LIBS"
11160 LIBS="-lgdk $LIBS"
11161 cat > conftest.$ac_ext <<EOF
11162 #line 11163 "configure"
11163 #include "confdefs.h"
11164 /* Override any gcc2 internal prototype to avoid an error. */
11165 /* We use char because int might match the return type of a gcc2
11166 builtin and then its argument prototype would still apply. */
11167 char gdk_im_open();
11168
11169 int main() {
11170 gdk_im_open()
11171 ; return 0; }
11172 EOF
11173 if { (eval echo configure:11174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11174 rm -rf conftest*
11175 eval "ac_cv_lib_$ac_lib_var=yes"
11176 else
11177 echo "configure: failed program was:" >&5
11178 cat conftest.$ac_ext >&5
11179 rm -rf conftest*
11180 eval "ac_cv_lib_$ac_lib_var=no"
11181 fi
11182 rm -f conftest*
11183 LIBS="$ac_save_LIBS"
11184
11185 fi
11186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11187 echo "$ac_t""yes" 1>&6
11188 cat >> confdefs.h <<\EOF
11189 #define HAVE_XIM 1
11190 EOF
11191
11192 else
11193 echo "$ac_t""no" 1>&6
11194 fi
11195
11196 fi
11197
11198 if test "$wxUSE_MGL" = 1; then
11199 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
11200 echo "configure:11201: checking for SciTech MGL library" >&5
11201 if test "x$MGL_ROOT" = x ; then
11202 echo "$ac_t""not found" 1>&6
11203 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
11204 else
11205 echo "$ac_t""$MGL_ROOT" 1>&6
11206 fi
11207
11208 case "${host}" in
11209 *-*-linux* )
11210 mgl_os=linux/gcc/glibc
11211 ;;
11212 *-pc-msdosdjgpp )
11213 mgl_os=dos32/dj2
11214 ;;
11215 *)
11216 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
11217 esac
11218
11219 mgl_lib_type=""
11220
11221 if test "$wxUSE_DEBUG_FLAG" = yes ; then
11222 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11223 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
11224 mgl_lib_type=debug
11225 fi
11226 fi
11227 if test "x$mgl_lib_type" = x ; then
11228 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11229 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
11230 mgl_lib_type=release
11231 else
11232 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11233 fi
11234 fi
11235
11236 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
11237 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
11238
11239 AFMINSTALL=afminstall
11240 TOOLKIT=MGL
11241 GUIDIST=MGL_DIST
11242 fi
11243
11244 if test "$wxUSE_MICROWIN" = 1; then
11245 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
11246 echo "configure:11247: checking for MicroWindows" >&5
11247 if test "x$MICROWINDOWS" = x ; then
11248 echo "$ac_t""not found" 1>&6
11249 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11250 else
11251 echo "$ac_t""$MICROWINDOWS" 1>&6
11252 fi
11253
11254 if test -f $MICROWINDOWS/lib/libmwin.a; then
11255 echo "$ac_t""MicroWindows' libraries found." 1>&6
11256 else
11257 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11258 fi
11259
11260 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11261 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11262
11263 AFMINSTALL=afminstall
11264 TOOLKIT=MICROWIN
11265 GUIDIST=MICROWIN_DIST
11266
11267 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11268 fi
11269
11270 if test "$wxUSE_X11" = 1; then
11271 # If we find X, set shell vars x_includes and x_libraries to the
11272 # paths, otherwise set no_x=yes.
11273 # Uses ac_ vars as temps to allow command line to override cache and checks.
11274 # --without-x overrides everything else, but does not touch the cache.
11275 echo $ac_n "checking for X""... $ac_c" 1>&6
11276 echo "configure:11277: checking for X" >&5
11277
11278 # Check whether --with-x or --without-x was given.
11279 if test "${with_x+set}" = set; then
11280 withval="$with_x"
11281 :
11282 fi
11283
11284 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11285 if test "x$with_x" = xno; then
11286 # The user explicitly disabled X.
11287 have_x=disabled
11288 else
11289 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11290 # Both variables are already set.
11291 have_x=yes
11292 else
11293 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11294 echo $ac_n "(cached) $ac_c" 1>&6
11295 else
11296 # One or both of the vars are not set, and there is no cached value.
11297 ac_x_includes=NO ac_x_libraries=NO
11298 rm -fr conftestdir
11299 if mkdir conftestdir; then
11300 cd conftestdir
11301 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11302 cat > Imakefile <<'EOF'
11303 acfindx:
11304 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11305 EOF
11306 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11307 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11308 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11309 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11310 for ac_extension in a so sl; do
11311 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11312 test -f $ac_im_libdir/libX11.$ac_extension; then
11313 ac_im_usrlibdir=$ac_im_libdir; break
11314 fi
11315 done
11316 # Screen out bogus values from the imake configuration. They are
11317 # bogus both because they are the default anyway, and because
11318 # using them would break gcc on systems where it needs fixed includes.
11319 case "$ac_im_incroot" in
11320 /usr/include) ;;
11321 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
11322 esac
11323 case "$ac_im_usrlibdir" in
11324 /usr/lib | /lib) ;;
11325 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
11326 esac
11327 fi
11328 cd ..
11329 rm -fr conftestdir
11330 fi
11331
11332 if test "$ac_x_includes" = NO; then
11333 # Guess where to find include files, by looking for this one X11 .h file.
11334 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11335
11336 # First, try using that file with no special directory specified.
11337 cat > conftest.$ac_ext <<EOF
11338 #line 11339 "configure"
11339 #include "confdefs.h"
11340 #include <$x_direct_test_include>
11341 EOF
11342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11343 { (eval echo configure:11344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11345 if test -z "$ac_err"; then
11346 rm -rf conftest*
11347 # We can compile using X headers with no special include directory.
11348 ac_x_includes=
11349 else
11350 echo "$ac_err" >&5
11351 echo "configure: failed program was:" >&5
11352 cat conftest.$ac_ext >&5
11353 rm -rf conftest*
11354 # Look for the header file in a standard set of common directories.
11355 # Check X11 before X11Rn because it is often a symlink to the current release.
11356 for ac_dir in \
11357 /usr/X11/include \
11358 /usr/X11R6/include \
11359 /usr/X11R5/include \
11360 /usr/X11R4/include \
11361 \
11362 /usr/include/X11 \
11363 /usr/include/X11R6 \
11364 /usr/include/X11R5 \
11365 /usr/include/X11R4 \
11366 \
11367 /usr/local/X11/include \
11368 /usr/local/X11R6/include \
11369 /usr/local/X11R5/include \
11370 /usr/local/X11R4/include \
11371 \
11372 /usr/local/include/X11 \
11373 /usr/local/include/X11R6 \
11374 /usr/local/include/X11R5 \
11375 /usr/local/include/X11R4 \
11376 \
11377 /usr/X386/include \
11378 /usr/x386/include \
11379 /usr/XFree86/include/X11 \
11380 \
11381 /usr/include \
11382 /usr/local/include \
11383 /usr/unsupported/include \
11384 /usr/athena/include \
11385 /usr/local/x11r5/include \
11386 /usr/lpp/Xamples/include \
11387 \
11388 /usr/openwin/include \
11389 /usr/openwin/share/include \
11390 ; \
11391 do
11392 if test -r "$ac_dir/$x_direct_test_include"; then
11393 ac_x_includes=$ac_dir
11394 break
11395 fi
11396 done
11397 fi
11398 rm -f conftest*
11399 fi # $ac_x_includes = NO
11400
11401 if test "$ac_x_libraries" = NO; then
11402 # Check for the libraries.
11403
11404 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11405 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11406
11407 # See if we find them without any special options.
11408 # Don't add to $LIBS permanently.
11409 ac_save_LIBS="$LIBS"
11410 LIBS="-l$x_direct_test_library $LIBS"
11411 cat > conftest.$ac_ext <<EOF
11412 #line 11413 "configure"
11413 #include "confdefs.h"
11414
11415 int main() {
11416 ${x_direct_test_function}()
11417 ; return 0; }
11418 EOF
11419 if { (eval echo configure:11420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11420 rm -rf conftest*
11421 LIBS="$ac_save_LIBS"
11422 # We can link X programs with no special library path.
11423 ac_x_libraries=
11424 else
11425 echo "configure: failed program was:" >&5
11426 cat conftest.$ac_ext >&5
11427 rm -rf conftest*
11428 LIBS="$ac_save_LIBS"
11429 # First see if replacing the include by lib works.
11430 # Check X11 before X11Rn because it is often a symlink to the current release.
11431 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11432 /usr/X11/lib \
11433 /usr/X11R6/lib \
11434 /usr/X11R5/lib \
11435 /usr/X11R4/lib \
11436 \
11437 /usr/lib/X11 \
11438 /usr/lib/X11R6 \
11439 /usr/lib/X11R5 \
11440 /usr/lib/X11R4 \
11441 \
11442 /usr/local/X11/lib \
11443 /usr/local/X11R6/lib \
11444 /usr/local/X11R5/lib \
11445 /usr/local/X11R4/lib \
11446 \
11447 /usr/local/lib/X11 \
11448 /usr/local/lib/X11R6 \
11449 /usr/local/lib/X11R5 \
11450 /usr/local/lib/X11R4 \
11451 \
11452 /usr/X386/lib \
11453 /usr/x386/lib \
11454 /usr/XFree86/lib/X11 \
11455 \
11456 /usr/lib \
11457 /usr/local/lib \
11458 /usr/unsupported/lib \
11459 /usr/athena/lib \
11460 /usr/local/x11r5/lib \
11461 /usr/lpp/Xamples/lib \
11462 /lib/usr/lib/X11 \
11463 \
11464 /usr/openwin/lib \
11465 /usr/openwin/share/lib \
11466 ; \
11467 do
11468 for ac_extension in a so sl; do
11469 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
11470 ac_x_libraries=$ac_dir
11471 break 2
11472 fi
11473 done
11474 done
11475 fi
11476 rm -f conftest*
11477 fi # $ac_x_libraries = NO
11478
11479 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
11480 # Didn't find X anywhere. Cache the known absence of X.
11481 ac_cv_have_x="have_x=no"
11482 else
11483 # Record where we found X for the cache.
11484 ac_cv_have_x="have_x=yes \
11485 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11486 fi
11487 fi
11488 fi
11489 eval "$ac_cv_have_x"
11490 fi # $with_x != no
11491
11492 if test "$have_x" != yes; then
11493 echo "$ac_t""$have_x" 1>&6
11494 no_x=yes
11495 else
11496 # If each of the values was on the command line, it overrides each guess.
11497 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11498 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11499 # Update the cache value to reflect the command line values.
11500 ac_cv_have_x="have_x=yes \
11501 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11502 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
11503 fi
11504
11505 if test "$no_x" = yes; then
11506 # Not all programs may use this symbol, but it does not hurt to define it.
11507 cat >> confdefs.h <<\EOF
11508 #define X_DISPLAY_MISSING 1
11509 EOF
11510
11511 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11512 else
11513 if test -n "$x_includes"; then
11514 X_CFLAGS="$X_CFLAGS -I$x_includes"
11515 fi
11516
11517 # It would also be nice to do this for all -L options, not just this one.
11518 if test -n "$x_libraries"; then
11519 X_LIBS="$X_LIBS -L$x_libraries"
11520 # For Solaris; some versions of Sun CC require a space after -R and
11521 # others require no space. Words are not sufficient . . . .
11522 case "`(uname -sr) 2>/dev/null`" in
11523 "SunOS 5"*)
11524 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
11525 echo "configure:11526: checking whether -R must be followed by a space" >&5
11526 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11527 cat > conftest.$ac_ext <<EOF
11528 #line 11529 "configure"
11529 #include "confdefs.h"
11530
11531 int main() {
11532
11533 ; return 0; }
11534 EOF
11535 if { (eval echo configure:11536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11536 rm -rf conftest*
11537 ac_R_nospace=yes
11538 else
11539 echo "configure: failed program was:" >&5
11540 cat conftest.$ac_ext >&5
11541 rm -rf conftest*
11542 ac_R_nospace=no
11543 fi
11544 rm -f conftest*
11545 if test $ac_R_nospace = yes; then
11546 echo "$ac_t""no" 1>&6
11547 X_LIBS="$X_LIBS -R$x_libraries"
11548 else
11549 LIBS="$ac_xsave_LIBS -R $x_libraries"
11550 cat > conftest.$ac_ext <<EOF
11551 #line 11552 "configure"
11552 #include "confdefs.h"
11553
11554 int main() {
11555
11556 ; return 0; }
11557 EOF
11558 if { (eval echo configure:11559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11559 rm -rf conftest*
11560 ac_R_space=yes
11561 else
11562 echo "configure: failed program was:" >&5
11563 cat conftest.$ac_ext >&5
11564 rm -rf conftest*
11565 ac_R_space=no
11566 fi
11567 rm -f conftest*
11568 if test $ac_R_space = yes; then
11569 echo "$ac_t""yes" 1>&6
11570 X_LIBS="$X_LIBS -R $x_libraries"
11571 else
11572 echo "$ac_t""neither works" 1>&6
11573 fi
11574 fi
11575 LIBS="$ac_xsave_LIBS"
11576 esac
11577 fi
11578
11579 # Check for system-dependent libraries X programs must link with.
11580 # Do this before checking for the system-independent R6 libraries
11581 # (-lICE), since we may need -lsocket or whatever for X linking.
11582
11583 if test "$ISC" = yes; then
11584 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11585 else
11586 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11587 # libraries were built with DECnet support. And karl@cs.umb.edu says
11588 # the Alpha needs dnet_stub (dnet does not exist).
11589 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
11590 echo "configure:11591: checking for dnet_ntoa in -ldnet" >&5
11591 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11593 echo $ac_n "(cached) $ac_c" 1>&6
11594 else
11595 ac_save_LIBS="$LIBS"
11596 LIBS="-ldnet $LIBS"
11597 cat > conftest.$ac_ext <<EOF
11598 #line 11599 "configure"
11599 #include "confdefs.h"
11600 /* Override any gcc2 internal prototype to avoid an error. */
11601 /* We use char because int might match the return type of a gcc2
11602 builtin and then its argument prototype would still apply. */
11603 char dnet_ntoa();
11604
11605 int main() {
11606 dnet_ntoa()
11607 ; return 0; }
11608 EOF
11609 if { (eval echo configure:11610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11610 rm -rf conftest*
11611 eval "ac_cv_lib_$ac_lib_var=yes"
11612 else
11613 echo "configure: failed program was:" >&5
11614 cat conftest.$ac_ext >&5
11615 rm -rf conftest*
11616 eval "ac_cv_lib_$ac_lib_var=no"
11617 fi
11618 rm -f conftest*
11619 LIBS="$ac_save_LIBS"
11620
11621 fi
11622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11623 echo "$ac_t""yes" 1>&6
11624 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11625 else
11626 echo "$ac_t""no" 1>&6
11627 fi
11628
11629 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11630 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
11631 echo "configure:11632: checking for dnet_ntoa in -ldnet_stub" >&5
11632 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11634 echo $ac_n "(cached) $ac_c" 1>&6
11635 else
11636 ac_save_LIBS="$LIBS"
11637 LIBS="-ldnet_stub $LIBS"
11638 cat > conftest.$ac_ext <<EOF
11639 #line 11640 "configure"
11640 #include "confdefs.h"
11641 /* Override any gcc2 internal prototype to avoid an error. */
11642 /* We use char because int might match the return type of a gcc2
11643 builtin and then its argument prototype would still apply. */
11644 char dnet_ntoa();
11645
11646 int main() {
11647 dnet_ntoa()
11648 ; return 0; }
11649 EOF
11650 if { (eval echo configure:11651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11651 rm -rf conftest*
11652 eval "ac_cv_lib_$ac_lib_var=yes"
11653 else
11654 echo "configure: failed program was:" >&5
11655 cat conftest.$ac_ext >&5
11656 rm -rf conftest*
11657 eval "ac_cv_lib_$ac_lib_var=no"
11658 fi
11659 rm -f conftest*
11660 LIBS="$ac_save_LIBS"
11661
11662 fi
11663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11664 echo "$ac_t""yes" 1>&6
11665 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11666 else
11667 echo "$ac_t""no" 1>&6
11668 fi
11669
11670 fi
11671
11672 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11673 # to get the SysV transport functions.
11674 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
11675 # needs -lnsl.
11676 # The nsl library prevents programs from opening the X display
11677 # on Irix 5.2, according to dickey@clark.net.
11678 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
11679 echo "configure:11680: checking for gethostbyname" >&5
11680 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11681 echo $ac_n "(cached) $ac_c" 1>&6
11682 else
11683 cat > conftest.$ac_ext <<EOF
11684 #line 11685 "configure"
11685 #include "confdefs.h"
11686 /* System header to define __stub macros and hopefully few prototypes,
11687 which can conflict with char gethostbyname(); below. */
11688 #include <assert.h>
11689 /* Override any gcc2 internal prototype to avoid an error. */
11690 /* We use char because int might match the return type of a gcc2
11691 builtin and then its argument prototype would still apply. */
11692 char gethostbyname();
11693
11694 int main() {
11695
11696 /* The GNU C library defines this for functions which it implements
11697 to always fail with ENOSYS. Some functions are actually named
11698 something starting with __ and the normal name is an alias. */
11699 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11700 choke me
11701 #else
11702 gethostbyname();
11703 #endif
11704
11705 ; return 0; }
11706 EOF
11707 if { (eval echo configure:11708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11708 rm -rf conftest*
11709 eval "ac_cv_func_gethostbyname=yes"
11710 else
11711 echo "configure: failed program was:" >&5
11712 cat conftest.$ac_ext >&5
11713 rm -rf conftest*
11714 eval "ac_cv_func_gethostbyname=no"
11715 fi
11716 rm -f conftest*
11717 fi
11718
11719 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11720 echo "$ac_t""yes" 1>&6
11721 :
11722 else
11723 echo "$ac_t""no" 1>&6
11724 fi
11725
11726 if test $ac_cv_func_gethostbyname = no; then
11727 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
11728 echo "configure:11729: checking for gethostbyname in -lnsl" >&5
11729 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11731 echo $ac_n "(cached) $ac_c" 1>&6
11732 else
11733 ac_save_LIBS="$LIBS"
11734 LIBS="-lnsl $LIBS"
11735 cat > conftest.$ac_ext <<EOF
11736 #line 11737 "configure"
11737 #include "confdefs.h"
11738 /* Override any gcc2 internal prototype to avoid an error. */
11739 /* We use char because int might match the return type of a gcc2
11740 builtin and then its argument prototype would still apply. */
11741 char gethostbyname();
11742
11743 int main() {
11744 gethostbyname()
11745 ; return 0; }
11746 EOF
11747 if { (eval echo configure:11748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11748 rm -rf conftest*
11749 eval "ac_cv_lib_$ac_lib_var=yes"
11750 else
11751 echo "configure: failed program was:" >&5
11752 cat conftest.$ac_ext >&5
11753 rm -rf conftest*
11754 eval "ac_cv_lib_$ac_lib_var=no"
11755 fi
11756 rm -f conftest*
11757 LIBS="$ac_save_LIBS"
11758
11759 fi
11760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11761 echo "$ac_t""yes" 1>&6
11762 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11763 else
11764 echo "$ac_t""no" 1>&6
11765 fi
11766
11767 fi
11768
11769 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11770 # socket/setsockopt and other routines are undefined under SCO ODT
11771 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11772 # on later versions), says simon@lia.di.epfl.ch: it contains
11773 # gethostby* variants that don't use the nameserver (or something).
11774 # -lsocket must be given before -lnsl if both are needed.
11775 # We assume that if connect needs -lnsl, so does gethostbyname.
11776 echo $ac_n "checking for connect""... $ac_c" 1>&6
11777 echo "configure:11778: checking for connect" >&5
11778 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11779 echo $ac_n "(cached) $ac_c" 1>&6
11780 else
11781 cat > conftest.$ac_ext <<EOF
11782 #line 11783 "configure"
11783 #include "confdefs.h"
11784 /* System header to define __stub macros and hopefully few prototypes,
11785 which can conflict with char connect(); below. */
11786 #include <assert.h>
11787 /* Override any gcc2 internal prototype to avoid an error. */
11788 /* We use char because int might match the return type of a gcc2
11789 builtin and then its argument prototype would still apply. */
11790 char connect();
11791
11792 int main() {
11793
11794 /* The GNU C library defines this for functions which it implements
11795 to always fail with ENOSYS. Some functions are actually named
11796 something starting with __ and the normal name is an alias. */
11797 #if defined (__stub_connect) || defined (__stub___connect)
11798 choke me
11799 #else
11800 connect();
11801 #endif
11802
11803 ; return 0; }
11804 EOF
11805 if { (eval echo configure:11806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11806 rm -rf conftest*
11807 eval "ac_cv_func_connect=yes"
11808 else
11809 echo "configure: failed program was:" >&5
11810 cat conftest.$ac_ext >&5
11811 rm -rf conftest*
11812 eval "ac_cv_func_connect=no"
11813 fi
11814 rm -f conftest*
11815 fi
11816
11817 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11818 echo "$ac_t""yes" 1>&6
11819 :
11820 else
11821 echo "$ac_t""no" 1>&6
11822 fi
11823
11824 if test $ac_cv_func_connect = no; then
11825 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
11826 echo "configure:11827: checking for connect in -lsocket" >&5
11827 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11828 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11829 echo $ac_n "(cached) $ac_c" 1>&6
11830 else
11831 ac_save_LIBS="$LIBS"
11832 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11833 cat > conftest.$ac_ext <<EOF
11834 #line 11835 "configure"
11835 #include "confdefs.h"
11836 /* Override any gcc2 internal prototype to avoid an error. */
11837 /* We use char because int might match the return type of a gcc2
11838 builtin and then its argument prototype would still apply. */
11839 char connect();
11840
11841 int main() {
11842 connect()
11843 ; return 0; }
11844 EOF
11845 if { (eval echo configure:11846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11846 rm -rf conftest*
11847 eval "ac_cv_lib_$ac_lib_var=yes"
11848 else
11849 echo "configure: failed program was:" >&5
11850 cat conftest.$ac_ext >&5
11851 rm -rf conftest*
11852 eval "ac_cv_lib_$ac_lib_var=no"
11853 fi
11854 rm -f conftest*
11855 LIBS="$ac_save_LIBS"
11856
11857 fi
11858 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11859 echo "$ac_t""yes" 1>&6
11860 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11861 else
11862 echo "$ac_t""no" 1>&6
11863 fi
11864
11865 fi
11866
11867 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11868 echo $ac_n "checking for remove""... $ac_c" 1>&6
11869 echo "configure:11870: checking for remove" >&5
11870 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11871 echo $ac_n "(cached) $ac_c" 1>&6
11872 else
11873 cat > conftest.$ac_ext <<EOF
11874 #line 11875 "configure"
11875 #include "confdefs.h"
11876 /* System header to define __stub macros and hopefully few prototypes,
11877 which can conflict with char remove(); below. */
11878 #include <assert.h>
11879 /* Override any gcc2 internal prototype to avoid an error. */
11880 /* We use char because int might match the return type of a gcc2
11881 builtin and then its argument prototype would still apply. */
11882 char remove();
11883
11884 int main() {
11885
11886 /* The GNU C library defines this for functions which it implements
11887 to always fail with ENOSYS. Some functions are actually named
11888 something starting with __ and the normal name is an alias. */
11889 #if defined (__stub_remove) || defined (__stub___remove)
11890 choke me
11891 #else
11892 remove();
11893 #endif
11894
11895 ; return 0; }
11896 EOF
11897 if { (eval echo configure:11898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11898 rm -rf conftest*
11899 eval "ac_cv_func_remove=yes"
11900 else
11901 echo "configure: failed program was:" >&5
11902 cat conftest.$ac_ext >&5
11903 rm -rf conftest*
11904 eval "ac_cv_func_remove=no"
11905 fi
11906 rm -f conftest*
11907 fi
11908
11909 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11910 echo "$ac_t""yes" 1>&6
11911 :
11912 else
11913 echo "$ac_t""no" 1>&6
11914 fi
11915
11916 if test $ac_cv_func_remove = no; then
11917 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
11918 echo "configure:11919: checking for remove in -lposix" >&5
11919 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11920 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11921 echo $ac_n "(cached) $ac_c" 1>&6
11922 else
11923 ac_save_LIBS="$LIBS"
11924 LIBS="-lposix $LIBS"
11925 cat > conftest.$ac_ext <<EOF
11926 #line 11927 "configure"
11927 #include "confdefs.h"
11928 /* Override any gcc2 internal prototype to avoid an error. */
11929 /* We use char because int might match the return type of a gcc2
11930 builtin and then its argument prototype would still apply. */
11931 char remove();
11932
11933 int main() {
11934 remove()
11935 ; return 0; }
11936 EOF
11937 if { (eval echo configure:11938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11938 rm -rf conftest*
11939 eval "ac_cv_lib_$ac_lib_var=yes"
11940 else
11941 echo "configure: failed program was:" >&5
11942 cat conftest.$ac_ext >&5
11943 rm -rf conftest*
11944 eval "ac_cv_lib_$ac_lib_var=no"
11945 fi
11946 rm -f conftest*
11947 LIBS="$ac_save_LIBS"
11948
11949 fi
11950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11951 echo "$ac_t""yes" 1>&6
11952 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11953 else
11954 echo "$ac_t""no" 1>&6
11955 fi
11956
11957 fi
11958
11959 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11960 echo $ac_n "checking for shmat""... $ac_c" 1>&6
11961 echo "configure:11962: checking for shmat" >&5
11962 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11963 echo $ac_n "(cached) $ac_c" 1>&6
11964 else
11965 cat > conftest.$ac_ext <<EOF
11966 #line 11967 "configure"
11967 #include "confdefs.h"
11968 /* System header to define __stub macros and hopefully few prototypes,
11969 which can conflict with char shmat(); below. */
11970 #include <assert.h>
11971 /* Override any gcc2 internal prototype to avoid an error. */
11972 /* We use char because int might match the return type of a gcc2
11973 builtin and then its argument prototype would still apply. */
11974 char shmat();
11975
11976 int main() {
11977
11978 /* The GNU C library defines this for functions which it implements
11979 to always fail with ENOSYS. Some functions are actually named
11980 something starting with __ and the normal name is an alias. */
11981 #if defined (__stub_shmat) || defined (__stub___shmat)
11982 choke me
11983 #else
11984 shmat();
11985 #endif
11986
11987 ; return 0; }
11988 EOF
11989 if { (eval echo configure:11990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11990 rm -rf conftest*
11991 eval "ac_cv_func_shmat=yes"
11992 else
11993 echo "configure: failed program was:" >&5
11994 cat conftest.$ac_ext >&5
11995 rm -rf conftest*
11996 eval "ac_cv_func_shmat=no"
11997 fi
11998 rm -f conftest*
11999 fi
12000
12001 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12002 echo "$ac_t""yes" 1>&6
12003 :
12004 else
12005 echo "$ac_t""no" 1>&6
12006 fi
12007
12008 if test $ac_cv_func_shmat = no; then
12009 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
12010 echo "configure:12011: checking for shmat in -lipc" >&5
12011 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12012 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12013 echo $ac_n "(cached) $ac_c" 1>&6
12014 else
12015 ac_save_LIBS="$LIBS"
12016 LIBS="-lipc $LIBS"
12017 cat > conftest.$ac_ext <<EOF
12018 #line 12019 "configure"
12019 #include "confdefs.h"
12020 /* Override any gcc2 internal prototype to avoid an error. */
12021 /* We use char because int might match the return type of a gcc2
12022 builtin and then its argument prototype would still apply. */
12023 char shmat();
12024
12025 int main() {
12026 shmat()
12027 ; return 0; }
12028 EOF
12029 if { (eval echo configure:12030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12030 rm -rf conftest*
12031 eval "ac_cv_lib_$ac_lib_var=yes"
12032 else
12033 echo "configure: failed program was:" >&5
12034 cat conftest.$ac_ext >&5
12035 rm -rf conftest*
12036 eval "ac_cv_lib_$ac_lib_var=no"
12037 fi
12038 rm -f conftest*
12039 LIBS="$ac_save_LIBS"
12040
12041 fi
12042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12043 echo "$ac_t""yes" 1>&6
12044 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12045 else
12046 echo "$ac_t""no" 1>&6
12047 fi
12048
12049 fi
12050 fi
12051
12052 # Check for libraries that X11R6 Xt/Xaw programs need.
12053 ac_save_LDFLAGS="$LDFLAGS"
12054 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12055 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12056 # check for ICE first), but we must link in the order -lSM -lICE or
12057 # we get undefined symbols. So assume we have SM if we have ICE.
12058 # These have to be linked with before -lX11, unlike the other
12059 # libraries we check for below, so use a different variable.
12060 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12061 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
12062 echo "configure:12063: checking for IceConnectionNumber in -lICE" >&5
12063 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12064 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12065 echo $ac_n "(cached) $ac_c" 1>&6
12066 else
12067 ac_save_LIBS="$LIBS"
12068 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12069 cat > conftest.$ac_ext <<EOF
12070 #line 12071 "configure"
12071 #include "confdefs.h"
12072 /* Override any gcc2 internal prototype to avoid an error. */
12073 /* We use char because int might match the return type of a gcc2
12074 builtin and then its argument prototype would still apply. */
12075 char IceConnectionNumber();
12076
12077 int main() {
12078 IceConnectionNumber()
12079 ; return 0; }
12080 EOF
12081 if { (eval echo configure:12082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12082 rm -rf conftest*
12083 eval "ac_cv_lib_$ac_lib_var=yes"
12084 else
12085 echo "configure: failed program was:" >&5
12086 cat conftest.$ac_ext >&5
12087 rm -rf conftest*
12088 eval "ac_cv_lib_$ac_lib_var=no"
12089 fi
12090 rm -f conftest*
12091 LIBS="$ac_save_LIBS"
12092
12093 fi
12094 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12095 echo "$ac_t""yes" 1>&6
12096 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12097 else
12098 echo "$ac_t""no" 1>&6
12099 fi
12100
12101 LDFLAGS="$ac_save_LDFLAGS"
12102
12103 fi
12104
12105
12106 if test "$no_x" = "yes"; then
12107 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12108 fi
12109
12110 GUI_TK_LIBRARY="$X_LIBS"
12111 TOOLKIT_INCLUDE="$X_CFLAGS"
12112 AFMINSTALL=afminstall
12113 COMPILED_X_PROGRAM=0
12114
12115 xpm_link=
12116 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12117 echo "configure:12118: checking for Xpm library" >&5
12118
12119 ac_find_libraries=
12120 for ac_dir in $SEARCH_LIB;
12121 do
12122 for ac_extension in a so sl dylib; do
12123 if test -f "$ac_dir/libXpm.$ac_extension"; then
12124 ac_find_libraries=$ac_dir
12125 break 2
12126 fi
12127 done
12128 done
12129
12130 if test "$ac_find_libraries" != "" ; then
12131
12132 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12133 result=$?
12134 if test $result = 0; then
12135 ac_path_to_link=""
12136 else
12137 ac_path_to_link=" -L$ac_find_libraries"
12138 fi
12139
12140 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12141 xpm_link=" -lXpm"
12142 cat >> confdefs.h <<\EOF
12143 #define wxHAVE_LIB_XPM 1
12144 EOF
12145
12146 echo "$ac_t""found at $ac_find_libraries" 1>&6
12147 else
12148 cat > conftest.$ac_ext <<EOF
12149 #line 12150 "configure"
12150 #include "confdefs.h"
12151
12152 #include <X11/xpm.h>
12153
12154 int main() {
12155
12156 int version;
12157 version = XpmLibraryVersion();
12158
12159 ; return 0; }
12160 EOF
12161 if { (eval echo configure:12162: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12162 rm -rf conftest*
12163
12164 xpm_link=" -lXpm"
12165 cat >> confdefs.h <<\EOF
12166 #define wxHAVE_LIB_XPM 1
12167 EOF
12168
12169 echo "$ac_t""found in default search path" 1>&6
12170 COMPILED_X_PROGRAM=0
12171
12172 else
12173 echo "configure: failed program was:" >&5
12174 cat conftest.$ac_ext >&5
12175 rm -rf conftest*
12176
12177 echo "$ac_t""no" 1>&6
12178 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12179
12180
12181 fi
12182 rm -f conftest*
12183 fi
12184
12185 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext -lXt -lX11"
12186 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
12187 TOOLKIT=X11
12188 GUIDIST=X11_DIST
12189 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXX11__"
12190 fi
12191
12192 if test "$wxUSE_WINE" = 1; then
12193 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
12194 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
12195 echo "configure:12196: checking for windows.h" >&5
12196 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12197 echo $ac_n "(cached) $ac_c" 1>&6
12198 else
12199 cat > conftest.$ac_ext <<EOF
12200 #line 12201 "configure"
12201 #include "confdefs.h"
12202 #include <windows.h>
12203 EOF
12204 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12205 { (eval echo configure:12206: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12206 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12207 if test -z "$ac_err"; then
12208 rm -rf conftest*
12209 eval "ac_cv_header_$ac_safe=yes"
12210 else
12211 echo "$ac_err" >&5
12212 echo "configure: failed program was:" >&5
12213 cat conftest.$ac_ext >&5
12214 rm -rf conftest*
12215 eval "ac_cv_header_$ac_safe=no"
12216 fi
12217 rm -f conftest*
12218 fi
12219 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12220 echo "$ac_t""yes" 1>&6
12221 :
12222 else
12223 echo "$ac_t""no" 1>&6
12224
12225 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
12226
12227 fi
12228
12229
12230 xpm_link=
12231 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12232 echo "configure:12233: checking for Xpm library" >&5
12233
12234 ac_find_libraries=
12235 for ac_dir in $SEARCH_LIB;
12236 do
12237 for ac_extension in a so sl dylib; do
12238 if test -f "$ac_dir/libXpm.$ac_extension"; then
12239 ac_find_libraries=$ac_dir
12240 break 2
12241 fi
12242 done
12243 done
12244
12245 if test "$ac_find_libraries" != "" ; then
12246 GUI_TK_LIBRARY="-L$ac_find_libraries"
12247 xpm_link=" -lXpm"
12248 cat >> confdefs.h <<\EOF
12249 #define wxHAVE_LIB_XPM 1
12250 EOF
12251
12252 echo "$ac_t""found at $ac_find_libraries" 1>&6
12253 else
12254 echo "$ac_t""no" 1>&6
12255 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12256 fi
12257
12258 mesa_link=
12259 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
12260 echo "configure:12261: checking for Mesa library" >&5
12261
12262 ac_find_libraries=
12263 for ac_dir in $SEARCH_LIB;
12264 do
12265 for ac_extension in a so sl dylib; do
12266 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12267 ac_find_libraries=$ac_dir
12268 break 2
12269 fi
12270 done
12271 done
12272
12273 if test "$ac_find_libraries" != "" ; then
12274 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
12275 mesa_link=" -lMesaGL"
12276 echo "$ac_t""found at $ac_find_libraries" 1>&6
12277 else
12278 { echo "configure: error: no" 1>&2; exit 1; }
12279 fi
12280
12281 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
12282 TOOLKIT=MSW
12283 GUIDIST=MSW_DIST
12284 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
12285 fi
12286
12287 if test "$wxUSE_MOTIF" = 1; then
12288 if test "$no_x" = yes; then
12289 # Not all programs may use this symbol, but it does not hurt to define it.
12290 cat >> confdefs.h <<\EOF
12291 #define X_DISPLAY_MISSING 1
12292 EOF
12293
12294 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12295 else
12296 if test -n "$x_includes"; then
12297 X_CFLAGS="$X_CFLAGS -I$x_includes"
12298 fi
12299
12300 # It would also be nice to do this for all -L options, not just this one.
12301 if test -n "$x_libraries"; then
12302 X_LIBS="$X_LIBS -L$x_libraries"
12303 # For Solaris; some versions of Sun CC require a space after -R and
12304 # others require no space. Words are not sufficient . . . .
12305 case "`(uname -sr) 2>/dev/null`" in
12306 "SunOS 5"*)
12307 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
12308 echo "configure:12309: checking whether -R must be followed by a space" >&5
12309 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12310 cat > conftest.$ac_ext <<EOF
12311 #line 12312 "configure"
12312 #include "confdefs.h"
12313
12314 int main() {
12315
12316 ; return 0; }
12317 EOF
12318 if { (eval echo configure:12319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12319 rm -rf conftest*
12320 ac_R_nospace=yes
12321 else
12322 echo "configure: failed program was:" >&5
12323 cat conftest.$ac_ext >&5
12324 rm -rf conftest*
12325 ac_R_nospace=no
12326 fi
12327 rm -f conftest*
12328 if test $ac_R_nospace = yes; then
12329 echo "$ac_t""no" 1>&6
12330 X_LIBS="$X_LIBS -R$x_libraries"
12331 else
12332 LIBS="$ac_xsave_LIBS -R $x_libraries"
12333 cat > conftest.$ac_ext <<EOF
12334 #line 12335 "configure"
12335 #include "confdefs.h"
12336
12337 int main() {
12338
12339 ; return 0; }
12340 EOF
12341 if { (eval echo configure:12342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12342 rm -rf conftest*
12343 ac_R_space=yes
12344 else
12345 echo "configure: failed program was:" >&5
12346 cat conftest.$ac_ext >&5
12347 rm -rf conftest*
12348 ac_R_space=no
12349 fi
12350 rm -f conftest*
12351 if test $ac_R_space = yes; then
12352 echo "$ac_t""yes" 1>&6
12353 X_LIBS="$X_LIBS -R $x_libraries"
12354 else
12355 echo "$ac_t""neither works" 1>&6
12356 fi
12357 fi
12358 LIBS="$ac_xsave_LIBS"
12359 esac
12360 fi
12361
12362 # Check for system-dependent libraries X programs must link with.
12363 # Do this before checking for the system-independent R6 libraries
12364 # (-lICE), since we may need -lsocket or whatever for X linking.
12365
12366 if test "$ISC" = yes; then
12367 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12368 else
12369 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
12370 # libraries were built with DECnet support. And karl@cs.umb.edu says
12371 # the Alpha needs dnet_stub (dnet does not exist).
12372 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
12373 echo "configure:12374: checking for dnet_ntoa in -ldnet" >&5
12374 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12376 echo $ac_n "(cached) $ac_c" 1>&6
12377 else
12378 ac_save_LIBS="$LIBS"
12379 LIBS="-ldnet $LIBS"
12380 cat > conftest.$ac_ext <<EOF
12381 #line 12382 "configure"
12382 #include "confdefs.h"
12383 /* Override any gcc2 internal prototype to avoid an error. */
12384 /* We use char because int might match the return type of a gcc2
12385 builtin and then its argument prototype would still apply. */
12386 char dnet_ntoa();
12387
12388 int main() {
12389 dnet_ntoa()
12390 ; return 0; }
12391 EOF
12392 if { (eval echo configure:12393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12393 rm -rf conftest*
12394 eval "ac_cv_lib_$ac_lib_var=yes"
12395 else
12396 echo "configure: failed program was:" >&5
12397 cat conftest.$ac_ext >&5
12398 rm -rf conftest*
12399 eval "ac_cv_lib_$ac_lib_var=no"
12400 fi
12401 rm -f conftest*
12402 LIBS="$ac_save_LIBS"
12403
12404 fi
12405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12406 echo "$ac_t""yes" 1>&6
12407 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12408 else
12409 echo "$ac_t""no" 1>&6
12410 fi
12411
12412 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12413 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
12414 echo "configure:12415: checking for dnet_ntoa in -ldnet_stub" >&5
12415 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
12416 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12417 echo $ac_n "(cached) $ac_c" 1>&6
12418 else
12419 ac_save_LIBS="$LIBS"
12420 LIBS="-ldnet_stub $LIBS"
12421 cat > conftest.$ac_ext <<EOF
12422 #line 12423 "configure"
12423 #include "confdefs.h"
12424 /* Override any gcc2 internal prototype to avoid an error. */
12425 /* We use char because int might match the return type of a gcc2
12426 builtin and then its argument prototype would still apply. */
12427 char dnet_ntoa();
12428
12429 int main() {
12430 dnet_ntoa()
12431 ; return 0; }
12432 EOF
12433 if { (eval echo configure:12434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12434 rm -rf conftest*
12435 eval "ac_cv_lib_$ac_lib_var=yes"
12436 else
12437 echo "configure: failed program was:" >&5
12438 cat conftest.$ac_ext >&5
12439 rm -rf conftest*
12440 eval "ac_cv_lib_$ac_lib_var=no"
12441 fi
12442 rm -f conftest*
12443 LIBS="$ac_save_LIBS"
12444
12445 fi
12446 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12447 echo "$ac_t""yes" 1>&6
12448 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12449 else
12450 echo "$ac_t""no" 1>&6
12451 fi
12452
12453 fi
12454
12455 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12456 # to get the SysV transport functions.
12457 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
12458 # needs -lnsl.
12459 # The nsl library prevents programs from opening the X display
12460 # on Irix 5.2, according to dickey@clark.net.
12461 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
12462 echo "configure:12463: checking for gethostbyname" >&5
12463 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
12464 echo $ac_n "(cached) $ac_c" 1>&6
12465 else
12466 cat > conftest.$ac_ext <<EOF
12467 #line 12468 "configure"
12468 #include "confdefs.h"
12469 /* System header to define __stub macros and hopefully few prototypes,
12470 which can conflict with char gethostbyname(); below. */
12471 #include <assert.h>
12472 /* Override any gcc2 internal prototype to avoid an error. */
12473 /* We use char because int might match the return type of a gcc2
12474 builtin and then its argument prototype would still apply. */
12475 char gethostbyname();
12476
12477 int main() {
12478
12479 /* The GNU C library defines this for functions which it implements
12480 to always fail with ENOSYS. Some functions are actually named
12481 something starting with __ and the normal name is an alias. */
12482 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
12483 choke me
12484 #else
12485 gethostbyname();
12486 #endif
12487
12488 ; return 0; }
12489 EOF
12490 if { (eval echo configure:12491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12491 rm -rf conftest*
12492 eval "ac_cv_func_gethostbyname=yes"
12493 else
12494 echo "configure: failed program was:" >&5
12495 cat conftest.$ac_ext >&5
12496 rm -rf conftest*
12497 eval "ac_cv_func_gethostbyname=no"
12498 fi
12499 rm -f conftest*
12500 fi
12501
12502 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
12503 echo "$ac_t""yes" 1>&6
12504 :
12505 else
12506 echo "$ac_t""no" 1>&6
12507 fi
12508
12509 if test $ac_cv_func_gethostbyname = no; then
12510 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
12511 echo "configure:12512: checking for gethostbyname in -lnsl" >&5
12512 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
12513 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12514 echo $ac_n "(cached) $ac_c" 1>&6
12515 else
12516 ac_save_LIBS="$LIBS"
12517 LIBS="-lnsl $LIBS"
12518 cat > conftest.$ac_ext <<EOF
12519 #line 12520 "configure"
12520 #include "confdefs.h"
12521 /* Override any gcc2 internal prototype to avoid an error. */
12522 /* We use char because int might match the return type of a gcc2
12523 builtin and then its argument prototype would still apply. */
12524 char gethostbyname();
12525
12526 int main() {
12527 gethostbyname()
12528 ; return 0; }
12529 EOF
12530 if { (eval echo configure:12531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12531 rm -rf conftest*
12532 eval "ac_cv_lib_$ac_lib_var=yes"
12533 else
12534 echo "configure: failed program was:" >&5
12535 cat conftest.$ac_ext >&5
12536 rm -rf conftest*
12537 eval "ac_cv_lib_$ac_lib_var=no"
12538 fi
12539 rm -f conftest*
12540 LIBS="$ac_save_LIBS"
12541
12542 fi
12543 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12544 echo "$ac_t""yes" 1>&6
12545 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
12546 else
12547 echo "$ac_t""no" 1>&6
12548 fi
12549
12550 fi
12551
12552 # lieder@skyler.mavd.honeywell.com says without -lsocket,
12553 # socket/setsockopt and other routines are undefined under SCO ODT
12554 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
12555 # on later versions), says simon@lia.di.epfl.ch: it contains
12556 # gethostby* variants that don't use the nameserver (or something).
12557 # -lsocket must be given before -lnsl if both are needed.
12558 # We assume that if connect needs -lnsl, so does gethostbyname.
12559 echo $ac_n "checking for connect""... $ac_c" 1>&6
12560 echo "configure:12561: checking for connect" >&5
12561 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
12562 echo $ac_n "(cached) $ac_c" 1>&6
12563 else
12564 cat > conftest.$ac_ext <<EOF
12565 #line 12566 "configure"
12566 #include "confdefs.h"
12567 /* System header to define __stub macros and hopefully few prototypes,
12568 which can conflict with char connect(); below. */
12569 #include <assert.h>
12570 /* Override any gcc2 internal prototype to avoid an error. */
12571 /* We use char because int might match the return type of a gcc2
12572 builtin and then its argument prototype would still apply. */
12573 char connect();
12574
12575 int main() {
12576
12577 /* The GNU C library defines this for functions which it implements
12578 to always fail with ENOSYS. Some functions are actually named
12579 something starting with __ and the normal name is an alias. */
12580 #if defined (__stub_connect) || defined (__stub___connect)
12581 choke me
12582 #else
12583 connect();
12584 #endif
12585
12586 ; return 0; }
12587 EOF
12588 if { (eval echo configure:12589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12589 rm -rf conftest*
12590 eval "ac_cv_func_connect=yes"
12591 else
12592 echo "configure: failed program was:" >&5
12593 cat conftest.$ac_ext >&5
12594 rm -rf conftest*
12595 eval "ac_cv_func_connect=no"
12596 fi
12597 rm -f conftest*
12598 fi
12599
12600 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
12601 echo "$ac_t""yes" 1>&6
12602 :
12603 else
12604 echo "$ac_t""no" 1>&6
12605 fi
12606
12607 if test $ac_cv_func_connect = no; then
12608 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
12609 echo "configure:12610: checking for connect in -lsocket" >&5
12610 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
12611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12612 echo $ac_n "(cached) $ac_c" 1>&6
12613 else
12614 ac_save_LIBS="$LIBS"
12615 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12616 cat > conftest.$ac_ext <<EOF
12617 #line 12618 "configure"
12618 #include "confdefs.h"
12619 /* Override any gcc2 internal prototype to avoid an error. */
12620 /* We use char because int might match the return type of a gcc2
12621 builtin and then its argument prototype would still apply. */
12622 char connect();
12623
12624 int main() {
12625 connect()
12626 ; return 0; }
12627 EOF
12628 if { (eval echo configure:12629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12629 rm -rf conftest*
12630 eval "ac_cv_lib_$ac_lib_var=yes"
12631 else
12632 echo "configure: failed program was:" >&5
12633 cat conftest.$ac_ext >&5
12634 rm -rf conftest*
12635 eval "ac_cv_lib_$ac_lib_var=no"
12636 fi
12637 rm -f conftest*
12638 LIBS="$ac_save_LIBS"
12639
12640 fi
12641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12642 echo "$ac_t""yes" 1>&6
12643 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12644 else
12645 echo "$ac_t""no" 1>&6
12646 fi
12647
12648 fi
12649
12650 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12651 echo $ac_n "checking for remove""... $ac_c" 1>&6
12652 echo "configure:12653: checking for remove" >&5
12653 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12654 echo $ac_n "(cached) $ac_c" 1>&6
12655 else
12656 cat > conftest.$ac_ext <<EOF
12657 #line 12658 "configure"
12658 #include "confdefs.h"
12659 /* System header to define __stub macros and hopefully few prototypes,
12660 which can conflict with char remove(); below. */
12661 #include <assert.h>
12662 /* Override any gcc2 internal prototype to avoid an error. */
12663 /* We use char because int might match the return type of a gcc2
12664 builtin and then its argument prototype would still apply. */
12665 char remove();
12666
12667 int main() {
12668
12669 /* The GNU C library defines this for functions which it implements
12670 to always fail with ENOSYS. Some functions are actually named
12671 something starting with __ and the normal name is an alias. */
12672 #if defined (__stub_remove) || defined (__stub___remove)
12673 choke me
12674 #else
12675 remove();
12676 #endif
12677
12678 ; return 0; }
12679 EOF
12680 if { (eval echo configure:12681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12681 rm -rf conftest*
12682 eval "ac_cv_func_remove=yes"
12683 else
12684 echo "configure: failed program was:" >&5
12685 cat conftest.$ac_ext >&5
12686 rm -rf conftest*
12687 eval "ac_cv_func_remove=no"
12688 fi
12689 rm -f conftest*
12690 fi
12691
12692 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12693 echo "$ac_t""yes" 1>&6
12694 :
12695 else
12696 echo "$ac_t""no" 1>&6
12697 fi
12698
12699 if test $ac_cv_func_remove = no; then
12700 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
12701 echo "configure:12702: checking for remove in -lposix" >&5
12702 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12703 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12704 echo $ac_n "(cached) $ac_c" 1>&6
12705 else
12706 ac_save_LIBS="$LIBS"
12707 LIBS="-lposix $LIBS"
12708 cat > conftest.$ac_ext <<EOF
12709 #line 12710 "configure"
12710 #include "confdefs.h"
12711 /* Override any gcc2 internal prototype to avoid an error. */
12712 /* We use char because int might match the return type of a gcc2
12713 builtin and then its argument prototype would still apply. */
12714 char remove();
12715
12716 int main() {
12717 remove()
12718 ; return 0; }
12719 EOF
12720 if { (eval echo configure:12721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12721 rm -rf conftest*
12722 eval "ac_cv_lib_$ac_lib_var=yes"
12723 else
12724 echo "configure: failed program was:" >&5
12725 cat conftest.$ac_ext >&5
12726 rm -rf conftest*
12727 eval "ac_cv_lib_$ac_lib_var=no"
12728 fi
12729 rm -f conftest*
12730 LIBS="$ac_save_LIBS"
12731
12732 fi
12733 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12734 echo "$ac_t""yes" 1>&6
12735 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12736 else
12737 echo "$ac_t""no" 1>&6
12738 fi
12739
12740 fi
12741
12742 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12743 echo $ac_n "checking for shmat""... $ac_c" 1>&6
12744 echo "configure:12745: checking for shmat" >&5
12745 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12746 echo $ac_n "(cached) $ac_c" 1>&6
12747 else
12748 cat > conftest.$ac_ext <<EOF
12749 #line 12750 "configure"
12750 #include "confdefs.h"
12751 /* System header to define __stub macros and hopefully few prototypes,
12752 which can conflict with char shmat(); below. */
12753 #include <assert.h>
12754 /* Override any gcc2 internal prototype to avoid an error. */
12755 /* We use char because int might match the return type of a gcc2
12756 builtin and then its argument prototype would still apply. */
12757 char shmat();
12758
12759 int main() {
12760
12761 /* The GNU C library defines this for functions which it implements
12762 to always fail with ENOSYS. Some functions are actually named
12763 something starting with __ and the normal name is an alias. */
12764 #if defined (__stub_shmat) || defined (__stub___shmat)
12765 choke me
12766 #else
12767 shmat();
12768 #endif
12769
12770 ; return 0; }
12771 EOF
12772 if { (eval echo configure:12773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12773 rm -rf conftest*
12774 eval "ac_cv_func_shmat=yes"
12775 else
12776 echo "configure: failed program was:" >&5
12777 cat conftest.$ac_ext >&5
12778 rm -rf conftest*
12779 eval "ac_cv_func_shmat=no"
12780 fi
12781 rm -f conftest*
12782 fi
12783
12784 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12785 echo "$ac_t""yes" 1>&6
12786 :
12787 else
12788 echo "$ac_t""no" 1>&6
12789 fi
12790
12791 if test $ac_cv_func_shmat = no; then
12792 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
12793 echo "configure:12794: checking for shmat in -lipc" >&5
12794 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12795 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12796 echo $ac_n "(cached) $ac_c" 1>&6
12797 else
12798 ac_save_LIBS="$LIBS"
12799 LIBS="-lipc $LIBS"
12800 cat > conftest.$ac_ext <<EOF
12801 #line 12802 "configure"
12802 #include "confdefs.h"
12803 /* Override any gcc2 internal prototype to avoid an error. */
12804 /* We use char because int might match the return type of a gcc2
12805 builtin and then its argument prototype would still apply. */
12806 char shmat();
12807
12808 int main() {
12809 shmat()
12810 ; return 0; }
12811 EOF
12812 if { (eval echo configure:12813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12813 rm -rf conftest*
12814 eval "ac_cv_lib_$ac_lib_var=yes"
12815 else
12816 echo "configure: failed program was:" >&5
12817 cat conftest.$ac_ext >&5
12818 rm -rf conftest*
12819 eval "ac_cv_lib_$ac_lib_var=no"
12820 fi
12821 rm -f conftest*
12822 LIBS="$ac_save_LIBS"
12823
12824 fi
12825 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12826 echo "$ac_t""yes" 1>&6
12827 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12828 else
12829 echo "$ac_t""no" 1>&6
12830 fi
12831
12832 fi
12833 fi
12834
12835 # Check for libraries that X11R6 Xt/Xaw programs need.
12836 ac_save_LDFLAGS="$LDFLAGS"
12837 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12838 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12839 # check for ICE first), but we must link in the order -lSM -lICE or
12840 # we get undefined symbols. So assume we have SM if we have ICE.
12841 # These have to be linked with before -lX11, unlike the other
12842 # libraries we check for below, so use a different variable.
12843 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12844 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
12845 echo "configure:12846: checking for IceConnectionNumber in -lICE" >&5
12846 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12848 echo $ac_n "(cached) $ac_c" 1>&6
12849 else
12850 ac_save_LIBS="$LIBS"
12851 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12852 cat > conftest.$ac_ext <<EOF
12853 #line 12854 "configure"
12854 #include "confdefs.h"
12855 /* Override any gcc2 internal prototype to avoid an error. */
12856 /* We use char because int might match the return type of a gcc2
12857 builtin and then its argument prototype would still apply. */
12858 char IceConnectionNumber();
12859
12860 int main() {
12861 IceConnectionNumber()
12862 ; return 0; }
12863 EOF
12864 if { (eval echo configure:12865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12865 rm -rf conftest*
12866 eval "ac_cv_lib_$ac_lib_var=yes"
12867 else
12868 echo "configure: failed program was:" >&5
12869 cat conftest.$ac_ext >&5
12870 rm -rf conftest*
12871 eval "ac_cv_lib_$ac_lib_var=no"
12872 fi
12873 rm -f conftest*
12874 LIBS="$ac_save_LIBS"
12875
12876 fi
12877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12878 echo "$ac_t""yes" 1>&6
12879 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12880 else
12881 echo "$ac_t""no" 1>&6
12882 fi
12883
12884 LDFLAGS="$ac_save_LDFLAGS"
12885
12886 fi
12887
12888
12889 if test "$no_x" = "yes"; then
12890 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12891 fi
12892
12893 GUI_TK_LIBRARY="$X_LIBS"
12894 TOOLKIT_INCLUDE="$X_CFLAGS"
12895 AFMINSTALL=afminstall
12896 COMPILED_X_PROGRAM=0
12897
12898 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
12899 echo "configure:12900: checking for Motif/Lesstif headers" >&5
12900
12901 ac_find_includes=
12902 for ac_dir in $SEARCH_INCLUDE;
12903 do
12904 if test -f "$ac_dir/Xm/Xm.h"; then
12905 ac_find_includes=$ac_dir
12906 break
12907 fi
12908 done
12909
12910 if test "$ac_find_includes" != "" ; then
12911 echo "$ac_t""found $ac_find_includes" 1>&6
12912 else
12913 cat > conftest.$ac_ext <<EOF
12914 #line 12915 "configure"
12915 #include "confdefs.h"
12916
12917 #include <Xm/Xm.h>
12918
12919 int main() {
12920
12921 int version;
12922 version = xmUseVersion;
12923
12924 ; return 0; }
12925 EOF
12926 if { (eval echo configure:12927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12927 rm -rf conftest*
12928
12929 echo "$ac_t""found in default search path" 1>&6
12930 COMPILED_X_PROGRAM=1
12931
12932 else
12933 echo "configure: failed program was:" >&5
12934 cat conftest.$ac_ext >&5
12935 rm -rf conftest*
12936
12937 echo "$ac_t""no" 1>&6
12938 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
12939
12940
12941 fi
12942 rm -f conftest*
12943 fi
12944
12945 if test "$COMPILED_X_PROGRAM" = 0; then
12946 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
12947 echo "configure:12948: checking for Motif/Lesstif library" >&5
12948
12949 ac_find_libraries=
12950 for ac_dir in $SEARCH_LIB;
12951 do
12952 for ac_extension in a so sl dylib; do
12953 if test -f "$ac_dir/libXm.$ac_extension"; then
12954 ac_find_libraries=$ac_dir
12955 break 2
12956 fi
12957 done
12958 done
12959
12960 if test "$ac_find_libraries" != "" ; then
12961
12962 ac_path_to_include=$ac_find_includes
12963 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
12964 result=$?
12965 if test $result = 0; then
12966 ac_path_to_include=""
12967 else
12968 ac_path_to_include=" -I$ac_find_includes"
12969 fi
12970
12971
12972 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12973 result=$?
12974 if test $result = 0; then
12975 ac_path_to_link=""
12976 else
12977 ac_path_to_link=" -L$ac_find_libraries"
12978 fi
12979
12980
12981 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12982 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
12983 echo "$ac_t""found at $ac_find_libraries" 1>&6
12984 else
12985 cat > conftest.$ac_ext <<EOF
12986 #line 12987 "configure"
12987 #include "confdefs.h"
12988
12989 #include <Xm/Xm.h>
12990
12991 int main() {
12992
12993 int version;
12994 version = xmUseVersion;
12995
12996 ; return 0; }
12997 EOF
12998 if { (eval echo configure:12999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12999 rm -rf conftest*
13000
13001 echo "$ac_t""found in default search path" 1>&6
13002 COMPILED_X_PROGRAM=1
13003
13004 else
13005 echo "configure: failed program was:" >&5
13006 cat conftest.$ac_ext >&5
13007 rm -rf conftest*
13008
13009 echo "$ac_t""no" 1>&6
13010 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
13011
13012
13013 fi
13014 rm -f conftest*
13015 fi
13016 fi
13017
13018 xpm_link=
13019 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13020 echo "configure:13021: checking for Xpm library" >&5
13021
13022 ac_find_libraries=
13023 for ac_dir in $SEARCH_LIB;
13024 do
13025 for ac_extension in a so sl dylib; do
13026 if test -f "$ac_dir/libXpm.$ac_extension"; then
13027 ac_find_libraries=$ac_dir
13028 break 2
13029 fi
13030 done
13031 done
13032
13033 if test "$ac_find_libraries" != "" ; then
13034
13035 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13036 result=$?
13037 if test $result = 0; then
13038 ac_path_to_link=""
13039 else
13040 ac_path_to_link=" -L$ac_find_libraries"
13041 fi
13042
13043 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13044 xpm_link=" -lXpm"
13045 cat >> confdefs.h <<\EOF
13046 #define wxHAVE_LIB_XPM 1
13047 EOF
13048
13049 echo "$ac_t""found at $ac_find_libraries" 1>&6
13050 else
13051 cat > conftest.$ac_ext <<EOF
13052 #line 13053 "configure"
13053 #include "confdefs.h"
13054
13055 #include <X11/xpm.h>
13056
13057 int main() {
13058
13059 int version;
13060 version = XpmLibraryVersion();
13061
13062 ; return 0; }
13063 EOF
13064 if { (eval echo configure:13065: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13065 rm -rf conftest*
13066
13067 xpm_link=" -lXpm"
13068 cat >> confdefs.h <<\EOF
13069 #define wxHAVE_LIB_XPM 1
13070 EOF
13071
13072 echo "$ac_t""found in default search path" 1>&6
13073 COMPILED_X_PROGRAM=0
13074
13075 else
13076 echo "configure: failed program was:" >&5
13077 cat conftest.$ac_ext >&5
13078 rm -rf conftest*
13079
13080 echo "$ac_t""no" 1>&6
13081 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13082
13083
13084 fi
13085 rm -f conftest*
13086 fi
13087
13088 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
13089 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
13090 TOOLKIT=MOTIF
13091 GUIDIST=MOTIF_DIST
13092 fi
13093
13094 if test "$wxUSE_MAC" = 1; then
13095 if test "$wxUSE_PRECOMP" = "yes"; then
13096 CPPFLAGS="$CPPFLAGS -cpp-precomp"
13097 fi
13098 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
13099 CFLAGS="$CFLAGS -fpascal-strings"
13100 CXXFLAGS="$CXXFLAGS -fpascal-strings"
13101
13102 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
13103 TOOLKIT=MAC
13104 GUIDIST=MACX_DIST
13105 fi
13106
13107 if test "$wxUSE_PM" = 1; then
13108 TOOLKIT=PM
13109 GUIDIST=GTK_DIST
13110 fi
13111
13112 if test "$TOOLKIT" = "PM" ; then
13113 TOOLKIT_DIR="os2"
13114 else
13115 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
13116 fi
13117
13118 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
13119
13120 if test "$wxUSE_UNIVERSAL" = "yes"; then
13121 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
13122
13123 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
13124 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
13125
13126 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
13127 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
13128 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
13129 WIDGET_SET=univ
13130 else
13131 ALL_OBJECTS="\$(GUIOBJS)"
13132 ALL_SOURCES="\$(ALL_SOURCES)"
13133 ALL_HEADERS="\$(ALL_HEADERS)"
13134 fi
13135
13136 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
13137
13138 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
13139 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
13140 fi
13141
13142 if test "$wxUSE_HTML" = "yes"; then
13143 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
13144 fi
13145
13146 if test "$wxUSE_LIBJPEG" = "builtin" ; then
13147 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
13148 fi
13149 if test "$wxUSE_LIBTIFF" = "builtin" ; then
13150 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
13151 fi
13152 if test "$wxUSE_LIBPNG" = "builtin" ; then
13153 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
13154 fi
13155
13156 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
13157 DISTDIR="wx\$(TOOLKIT)"
13158 else
13159 USE_GUI=0
13160
13161 TOOLKIT_DIR="base"
13162
13163 if test "$USE_WIN32" = 1 ; then
13164 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
13165 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
13166
13167 TOOLKIT="MSW"
13168 else
13169 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
13170 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
13171 fi
13172
13173 PORT_FILES="\${top_srcdir}/src/files.lst"
13174
13175 GUIDIST="BASE_DIST"
13176 DISTDIR="wxBase"
13177 fi
13178
13179
13180 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
13181 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
13182 fi
13183
13184 if test "$wxUSE_REGEX" = "builtin" ; then
13185 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
13186 fi
13187 if test "$wxUSE_ZLIB" = "builtin" ; then
13188 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
13189 fi
13190
13191 if test "$wxUSE_OPENGL" = "yes"; then
13192 if test "$wxUSE_MAC" = 1; then
13193 OPENGL_LIBS="-framework OpenGL -framework AGL"
13194 else
13195
13196 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
13197 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
13198 echo "configure:13199: checking for GL/gl.h" >&5
13199 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13200 echo $ac_n "(cached) $ac_c" 1>&6
13201 else
13202 cat > conftest.$ac_ext <<EOF
13203 #line 13204 "configure"
13204 #include "confdefs.h"
13205 #include <GL/gl.h>
13206 EOF
13207 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13208 { (eval echo configure:13209: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13209 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13210 if test -z "$ac_err"; then
13211 rm -rf conftest*
13212 eval "ac_cv_header_$ac_safe=yes"
13213 else
13214 echo "$ac_err" >&5
13215 echo "configure: failed program was:" >&5
13216 cat conftest.$ac_ext >&5
13217 rm -rf conftest*
13218 eval "ac_cv_header_$ac_safe=no"
13219 fi
13220 rm -f conftest*
13221 fi
13222 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13223 echo "$ac_t""yes" 1>&6
13224
13225 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
13226 echo "configure:13227: checking for -lGL" >&5
13227
13228 ac_find_libraries=
13229 for ac_dir in $SEARCH_LIB;
13230 do
13231 for ac_extension in a so sl dylib; do
13232 if test -f "$ac_dir/libGL.$ac_extension"; then
13233 ac_find_libraries=$ac_dir
13234 break 2
13235 fi
13236 done
13237 done
13238
13239 if test "$ac_find_libraries" != "" ; then
13240
13241 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13242 result=$?
13243 if test $result = 0; then
13244 ac_path_to_link=""
13245 else
13246 ac_path_to_link=" -L$ac_find_libraries"
13247 fi
13248
13249 if test "$ac_path_to_link" = " -L/usr/lib" ; then
13250 LDFLAGS_GL="$LDFLAGS"
13251 else
13252 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13253 fi
13254 OPENGL_LIBS="-lGL -lGLU"
13255 echo "$ac_t""yes" 1>&6
13256 else
13257 echo "$ac_t""no" 1>&6
13258 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
13259 echo "configure:13260: checking for -lMesaGL" >&5
13260
13261 ac_find_libraries=
13262 for ac_dir in $SEARCH_LIB;
13263 do
13264 for ac_extension in a so sl dylib; do
13265 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13266 ac_find_libraries=$ac_dir
13267 break 2
13268 fi
13269 done
13270 done
13271
13272 if test "$ac_find_libraries" != "" ; then
13273
13274 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
13275 result=$?
13276 if test $result = 0; then
13277 ac_path_to_link=""
13278 else
13279 ac_path_to_link=" -L$ac_find_libraries"
13280 fi
13281
13282 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
13283 OPENGL_LIBS="-lMesaGL -lMesaGLU"
13284 echo "$ac_t""yes" 1>&6
13285 else
13286 echo "$ac_t""no" 1>&6
13287 fi
13288 fi
13289
13290 else
13291 echo "$ac_t""no" 1>&6
13292 fi
13293
13294
13295
13296 # AC_CHECK_HEADER(GL/gl.h,
13297 # [
13298 # AC_CHECK_LIB(GL, glFlush,
13299 # [
13300 # OPENGL_LIBS="-lGL -lGLU"
13301 # ],
13302 # [
13303 # AC_CHECK_LIB(MesaGL, glFlush,
13304 # [
13305 # OPENGL_LIBS="-lMesaGL -lMesaGLU"
13306 # ],
13307 # [],
13308 # [-lm])
13309 # ],
13310 # [-lm])
13311 # ])
13312
13313 if test "x$OPENGL_LIBS" = "x"; then
13314 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
13315 fi
13316 fi
13317
13318 if test "$wxUSE_OPENGL" = "yes"; then
13319 cat >> confdefs.h <<\EOF
13320 #define wxUSE_OPENGL 1
13321 EOF
13322
13323 cat >> confdefs.h <<\EOF
13324 #define wxUSE_GLCANVAS 1
13325 EOF
13326
13327 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
13328 fi
13329 fi
13330
13331 if test -z "$TOOLKIT_VPATH" ; then
13332 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
13333 fi
13334
13335 if test -n "$TOOLKIT" ; then
13336 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
13337 fi
13338
13339 lib_unicode_suffix=
13340 if test "$wxUSE_UNICODE" = "yes"; then
13341 lib_unicode_suffix=u
13342 fi
13343
13344 lib_debug_suffix=
13345 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
13346 lib_debug_suffix=d
13347 fi
13348
13349 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
13350 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
13351
13352 if test "$cross_compiling" = "yes"; then
13353 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
13354 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
13355 fi
13356
13357 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
13358 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
13359
13360 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13361 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
13362
13363 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
13364 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
13365 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
13366 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
13367
13368 WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
13369 WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
13370
13371 case "${host}" in
13372 *-*-cygwin* | *-*-mingw32* )
13373
13374
13375
13376 if test "$cross_compiling" != "yes"; then
13377 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13378 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
13379 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
13380 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
13381 else
13382 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
13383 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
13384 fi
13385
13386 esac
13387
13388 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
13389 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
13390
13391 WXCONFIG_LIBS="-l${WX_LIBRARY}"
13392 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
13393
13394 if test "$wxUSE_OPENGL" = "yes"; then
13395 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
13396 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
13397 fi
13398
13399
13400
13401 if test "$wxUSE_SHARED" = "yes"; then
13402
13403 if test "$wxUSE_OPENGL" = "yes"; then
13404 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
13405 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
13406 else
13407 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
13408 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
13409 fi
13410
13411 if test "$GCC" = "yes"; then
13412 PIC_FLAG="-fPIC"
13413 fi
13414
13415 SHARED_LD="${CXX} -shared -o"
13416
13417 case "${host}" in
13418 *-hp-hpux* )
13419 if test "$GCC" == "yes"; then
13420 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
13421 else
13422 LDFLAGS="$LDFLAGS -L/usr/lib"
13423
13424 SHARED_LD="${CXX} -b -o"
13425 PIC_FLAG="+Z"
13426 fi
13427
13428 if test "$wxUSE_OPENGL" = "yes"; then
13429 WX_ALL_INSTALLED="preinstall_gl"
13430 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
13431 else
13432 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
13433 fi
13434 ;;
13435
13436 *-*-linux* )
13437 if test "$GCC" != "yes"; then
13438 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
13439 echo "configure:13440: checking for Intel compiler" >&5
13440 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
13441 echo $ac_n "(cached) $ac_c" 1>&6
13442 else
13443
13444 cat > conftest.$ac_ext <<EOF
13445 #line 13446 "configure"
13446 #include "confdefs.h"
13447
13448 int main() {
13449
13450 #ifndef __INTEL_COMPILER
13451 #error Not icc
13452 #endif
13453
13454 ; return 0; }
13455 EOF
13456 if { (eval echo configure:13457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13457 rm -rf conftest*
13458 wx_cv_prog_icc=yes
13459 else
13460 echo "configure: failed program was:" >&5
13461 cat conftest.$ac_ext >&5
13462 rm -rf conftest*
13463 wx_cv_prog_icc=no
13464
13465 fi
13466 rm -f conftest*
13467
13468 fi
13469
13470 echo "$ac_t""$wx_cv_prog_icc" 1>&6
13471 if test "$wx_cv_prog_icc" = "yes"; then
13472 PIC_FLAG="-KPIC"
13473 fi
13474 fi
13475
13476 if test "$wxUSE_SONAME" = "yes" ; then
13477 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
13478 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
13479 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
13480 fi
13481 ;;
13482
13483 *-*-solaris2* )
13484 if test "$GCC" = yes ; then
13485 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
13486 else
13487 SHARED_LD="${CXX} -G -o"
13488 PIC_FLAG="-KPIC"
13489 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
13490 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
13491 fi
13492 ;;
13493
13494 *-*-darwin* )
13495 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
13496 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
13497 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
13498 PIC_FLAG="-dynamic -fPIC"
13499 ;;
13500
13501 *-*-aix* )
13502 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
13503 ;;
13504
13505 *-*-cygwin* | *-*-mingw32* )
13506
13507 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
13508
13509 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
13510 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
13511
13512 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
13513
13514 if test "$wxUSE_OPENGL" = "yes"; then
13515 WX_ALL_INSTALLED="preinstall_gl"
13516 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
13517 else
13518 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
13519 fi
13520 ;;
13521
13522 *-pc-os2_emx | *-pc-os2-emx )
13523 wxUSE_SHARED=no
13524 ;;
13525
13526 *-*-beos* )
13527 SHARED_LD="${LD} -shared -o"
13528 ;;
13529
13530 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
13531 *-*-sunos4* | \
13532 *-*-irix5* | *-*-irix6* | \
13533 *-*-osf* | \
13534 *-*-dgux5* | \
13535 *-*-sysv5* )
13536 ;;
13537
13538 *)
13539 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
13540 esac
13541
13542 if test "x$WX_TARGET_LIBRARY" = "x"; then
13543 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
13544 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
13545 fi
13546
13547 WX_TARGET_LIBRARY_TYPE="so"
13548 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
13549 fi
13550
13551 if test "$wxUSE_SHARED" = "no"; then
13552
13553 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
13554 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13555 fi
13556
13557 if test "$wxUSE_MAC" = 1; then
13558 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
13559 fi
13560
13561 if test "$wxUSE_OPENGL" = "yes"; then
13562 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
13563 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
13564 else
13565 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
13566 fi
13567
13568 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
13569 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
13570
13571 WX_TARGET_LIBRARY_TYPE="a"
13572 INSTALL_LIBRARY='$(INSTALL_DATA)'
13573 fi
13574
13575 if test "$wxUSE_MAC" = 1; then
13576 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
13577 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
13578 # Extract the first word of "Rez", so it can be a program name with args.
13579 set dummy Rez; ac_word=$2
13580 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13581 echo "configure:13582: checking for $ac_word" >&5
13582 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
13583 echo $ac_n "(cached) $ac_c" 1>&6
13584 else
13585 if test -n "$RESCOMP"; then
13586 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
13587 else
13588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13589 ac_dummy="$PATH"
13590 for ac_dir in $ac_dummy; do
13591 test -z "$ac_dir" && ac_dir=.
13592 if test -f $ac_dir/$ac_word; then
13593 ac_cv_prog_RESCOMP="Rez"
13594 break
13595 fi
13596 done
13597 IFS="$ac_save_ifs"
13598 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
13599 fi
13600 fi
13601 RESCOMP="$ac_cv_prog_RESCOMP"
13602 if test -n "$RESCOMP"; then
13603 echo "$ac_t""$RESCOMP" 1>&6
13604 else
13605 echo "$ac_t""no" 1>&6
13606 fi
13607
13608 # Extract the first word of "DeRez", so it can be a program name with args.
13609 set dummy DeRez; ac_word=$2
13610 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
13611 echo "configure:13612: checking for $ac_word" >&5
13612 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13613 echo $ac_n "(cached) $ac_c" 1>&6
13614 else
13615 if test -n "$DEREZ"; then
13616 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13617 else
13618 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13619 ac_dummy="$PATH"
13620 for ac_dir in $ac_dummy; do
13621 test -z "$ac_dir" && ac_dir=.
13622 if test -f $ac_dir/$ac_word; then
13623 ac_cv_prog_DEREZ="DeRez"
13624 break
13625 fi
13626 done
13627 IFS="$ac_save_ifs"
13628 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
13629 fi
13630 fi
13631 DEREZ="$ac_cv_prog_DEREZ"
13632 if test -n "$DEREZ"; then
13633 echo "$ac_t""$DEREZ" 1>&6
13634 else
13635 echo "$ac_t""no" 1>&6
13636 fi
13637
13638 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
13639 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
13640 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
13641 fi
13642
13643
13644 if test "$wxUSE_MAC" != 1; then
13645 for ac_hdr in strings.h
13646 do
13647 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13648 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13649 echo "configure:13650: checking for $ac_hdr" >&5
13650 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13651 echo $ac_n "(cached) $ac_c" 1>&6
13652 else
13653 cat > conftest.$ac_ext <<EOF
13654 #line 13655 "configure"
13655 #include "confdefs.h"
13656 #include <$ac_hdr>
13657 EOF
13658 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13659 { (eval echo configure:13660: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13660 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13661 if test -z "$ac_err"; then
13662 rm -rf conftest*
13663 eval "ac_cv_header_$ac_safe=yes"
13664 else
13665 echo "$ac_err" >&5
13666 echo "configure: failed program was:" >&5
13667 cat conftest.$ac_ext >&5
13668 rm -rf conftest*
13669 eval "ac_cv_header_$ac_safe=no"
13670 fi
13671 rm -f conftest*
13672 fi
13673 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13674 echo "$ac_t""yes" 1>&6
13675 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13676 cat >> confdefs.h <<EOF
13677 #define $ac_tr_hdr 1
13678 EOF
13679
13680 else
13681 echo "$ac_t""no" 1>&6
13682 fi
13683 done
13684
13685 fi
13686
13687 for ac_hdr in stdlib.h
13688 do
13689 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13690 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13691 echo "configure:13692: checking for $ac_hdr" >&5
13692 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13693 echo $ac_n "(cached) $ac_c" 1>&6
13694 else
13695 cat > conftest.$ac_ext <<EOF
13696 #line 13697 "configure"
13697 #include "confdefs.h"
13698 #include <$ac_hdr>
13699 EOF
13700 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13701 { (eval echo configure:13702: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13702 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13703 if test -z "$ac_err"; then
13704 rm -rf conftest*
13705 eval "ac_cv_header_$ac_safe=yes"
13706 else
13707 echo "$ac_err" >&5
13708 echo "configure: failed program was:" >&5
13709 cat conftest.$ac_ext >&5
13710 rm -rf conftest*
13711 eval "ac_cv_header_$ac_safe=no"
13712 fi
13713 rm -f conftest*
13714 fi
13715 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13716 echo "$ac_t""yes" 1>&6
13717 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13718 cat >> confdefs.h <<EOF
13719 #define $ac_tr_hdr 1
13720 EOF
13721
13722 else
13723 echo "$ac_t""no" 1>&6
13724 fi
13725 done
13726
13727 for ac_hdr in malloc.h
13728 do
13729 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13730 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13731 echo "configure:13732: checking for $ac_hdr" >&5
13732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13733 echo $ac_n "(cached) $ac_c" 1>&6
13734 else
13735 cat > conftest.$ac_ext <<EOF
13736 #line 13737 "configure"
13737 #include "confdefs.h"
13738 #include <$ac_hdr>
13739 EOF
13740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13741 { (eval echo configure:13742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13743 if test -z "$ac_err"; then
13744 rm -rf conftest*
13745 eval "ac_cv_header_$ac_safe=yes"
13746 else
13747 echo "$ac_err" >&5
13748 echo "configure: failed program was:" >&5
13749 cat conftest.$ac_ext >&5
13750 rm -rf conftest*
13751 eval "ac_cv_header_$ac_safe=no"
13752 fi
13753 rm -f conftest*
13754 fi
13755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13756 echo "$ac_t""yes" 1>&6
13757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13758 cat >> confdefs.h <<EOF
13759 #define $ac_tr_hdr 1
13760 EOF
13761
13762 else
13763 echo "$ac_t""no" 1>&6
13764 fi
13765 done
13766
13767 for ac_hdr in unistd.h
13768 do
13769 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13770 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13771 echo "configure:13772: checking for $ac_hdr" >&5
13772 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13773 echo $ac_n "(cached) $ac_c" 1>&6
13774 else
13775 cat > conftest.$ac_ext <<EOF
13776 #line 13777 "configure"
13777 #include "confdefs.h"
13778 #include <$ac_hdr>
13779 EOF
13780 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13781 { (eval echo configure:13782: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13782 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13783 if test -z "$ac_err"; then
13784 rm -rf conftest*
13785 eval "ac_cv_header_$ac_safe=yes"
13786 else
13787 echo "$ac_err" >&5
13788 echo "configure: failed program was:" >&5
13789 cat conftest.$ac_ext >&5
13790 rm -rf conftest*
13791 eval "ac_cv_header_$ac_safe=no"
13792 fi
13793 rm -f conftest*
13794 fi
13795 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13796 echo "$ac_t""yes" 1>&6
13797 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13798 cat >> confdefs.h <<EOF
13799 #define $ac_tr_hdr 1
13800 EOF
13801
13802 else
13803 echo "$ac_t""no" 1>&6
13804 fi
13805 done
13806
13807 for ac_hdr in wchar.h
13808 do
13809 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13811 echo "configure:13812: checking for $ac_hdr" >&5
13812 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13813 echo $ac_n "(cached) $ac_c" 1>&6
13814 else
13815 cat > conftest.$ac_ext <<EOF
13816 #line 13817 "configure"
13817 #include "confdefs.h"
13818 #include <$ac_hdr>
13819 EOF
13820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13821 { (eval echo configure:13822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13823 if test -z "$ac_err"; then
13824 rm -rf conftest*
13825 eval "ac_cv_header_$ac_safe=yes"
13826 else
13827 echo "$ac_err" >&5
13828 echo "configure: failed program was:" >&5
13829 cat conftest.$ac_ext >&5
13830 rm -rf conftest*
13831 eval "ac_cv_header_$ac_safe=no"
13832 fi
13833 rm -f conftest*
13834 fi
13835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13836 echo "$ac_t""yes" 1>&6
13837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13838 cat >> confdefs.h <<EOF
13839 #define $ac_tr_hdr 1
13840 EOF
13841
13842 else
13843 echo "$ac_t""no" 1>&6
13844 fi
13845 done
13846
13847 for ac_hdr in wcstr.h
13848 do
13849 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13850 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13851 echo "configure:13852: checking for $ac_hdr" >&5
13852 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13853 echo $ac_n "(cached) $ac_c" 1>&6
13854 else
13855 cat > conftest.$ac_ext <<EOF
13856 #line 13857 "configure"
13857 #include "confdefs.h"
13858 #include <$ac_hdr>
13859 EOF
13860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13861 { (eval echo configure:13862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13863 if test -z "$ac_err"; then
13864 rm -rf conftest*
13865 eval "ac_cv_header_$ac_safe=yes"
13866 else
13867 echo "$ac_err" >&5
13868 echo "configure: failed program was:" >&5
13869 cat conftest.$ac_ext >&5
13870 rm -rf conftest*
13871 eval "ac_cv_header_$ac_safe=no"
13872 fi
13873 rm -f conftest*
13874 fi
13875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13876 echo "$ac_t""yes" 1>&6
13877 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13878 cat >> confdefs.h <<EOF
13879 #define $ac_tr_hdr 1
13880 EOF
13881
13882 else
13883 echo "$ac_t""no" 1>&6
13884 fi
13885 done
13886
13887 for ac_hdr in wctype.h
13888 do
13889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13891 echo "configure:13892: checking for $ac_hdr" >&5
13892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13893 echo $ac_n "(cached) $ac_c" 1>&6
13894 else
13895 cat > conftest.$ac_ext <<EOF
13896 #line 13897 "configure"
13897 #include "confdefs.h"
13898 #include <$ac_hdr>
13899 EOF
13900 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13901 { (eval echo configure:13902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13902 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13903 if test -z "$ac_err"; then
13904 rm -rf conftest*
13905 eval "ac_cv_header_$ac_safe=yes"
13906 else
13907 echo "$ac_err" >&5
13908 echo "configure: failed program was:" >&5
13909 cat conftest.$ac_ext >&5
13910 rm -rf conftest*
13911 eval "ac_cv_header_$ac_safe=no"
13912 fi
13913 rm -f conftest*
13914 fi
13915 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13916 echo "$ac_t""yes" 1>&6
13917 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13918 cat >> confdefs.h <<EOF
13919 #define $ac_tr_hdr 1
13920 EOF
13921
13922 else
13923 echo "$ac_t""no" 1>&6
13924 fi
13925 done
13926
13927 for ac_hdr in fnmatch.h
13928 do
13929 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13930 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13931 echo "configure:13932: checking for $ac_hdr" >&5
13932 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13933 echo $ac_n "(cached) $ac_c" 1>&6
13934 else
13935 cat > conftest.$ac_ext <<EOF
13936 #line 13937 "configure"
13937 #include "confdefs.h"
13938 #include <$ac_hdr>
13939 EOF
13940 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13941 { (eval echo configure:13942: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13942 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13943 if test -z "$ac_err"; then
13944 rm -rf conftest*
13945 eval "ac_cv_header_$ac_safe=yes"
13946 else
13947 echo "$ac_err" >&5
13948 echo "configure: failed program was:" >&5
13949 cat conftest.$ac_ext >&5
13950 rm -rf conftest*
13951 eval "ac_cv_header_$ac_safe=no"
13952 fi
13953 rm -f conftest*
13954 fi
13955 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13956 echo "$ac_t""yes" 1>&6
13957 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13958 cat >> confdefs.h <<EOF
13959 #define $ac_tr_hdr 1
13960 EOF
13961
13962 else
13963 echo "$ac_t""no" 1>&6
13964 fi
13965 done
13966
13967 for ac_hdr in langinfo.h
13968 do
13969 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13970 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13971 echo "configure:13972: checking for $ac_hdr" >&5
13972 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13973 echo $ac_n "(cached) $ac_c" 1>&6
13974 else
13975 cat > conftest.$ac_ext <<EOF
13976 #line 13977 "configure"
13977 #include "confdefs.h"
13978 #include <$ac_hdr>
13979 EOF
13980 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13981 { (eval echo configure:13982: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13982 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13983 if test -z "$ac_err"; then
13984 rm -rf conftest*
13985 eval "ac_cv_header_$ac_safe=yes"
13986 else
13987 echo "$ac_err" >&5
13988 echo "configure: failed program was:" >&5
13989 cat conftest.$ac_ext >&5
13990 rm -rf conftest*
13991 eval "ac_cv_header_$ac_safe=no"
13992 fi
13993 rm -f conftest*
13994 fi
13995 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13996 echo "$ac_t""yes" 1>&6
13997 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13998 cat >> confdefs.h <<EOF
13999 #define $ac_tr_hdr 1
14000 EOF
14001
14002 else
14003 echo "$ac_t""no" 1>&6
14004 fi
14005 done
14006
14007
14008 if test "$wxUSE_GUI" = "yes"; then
14009 if test "$wxUSE_UNIX" = "yes"; then
14010 for ac_hdr in X11/XKBlib.h
14011 do
14012 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14013 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14014 echo "configure:14015: checking for $ac_hdr" >&5
14015 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14016 echo $ac_n "(cached) $ac_c" 1>&6
14017 else
14018 cat > conftest.$ac_ext <<EOF
14019 #line 14020 "configure"
14020 #include "confdefs.h"
14021 #include <$ac_hdr>
14022 EOF
14023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14024 { (eval echo configure:14025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14026 if test -z "$ac_err"; then
14027 rm -rf conftest*
14028 eval "ac_cv_header_$ac_safe=yes"
14029 else
14030 echo "$ac_err" >&5
14031 echo "configure: failed program was:" >&5
14032 cat conftest.$ac_ext >&5
14033 rm -rf conftest*
14034 eval "ac_cv_header_$ac_safe=no"
14035 fi
14036 rm -f conftest*
14037 fi
14038 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14039 echo "$ac_t""yes" 1>&6
14040 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14041 cat >> confdefs.h <<EOF
14042 #define $ac_tr_hdr 1
14043 EOF
14044
14045 else
14046 echo "$ac_t""no" 1>&6
14047 fi
14048 done
14049
14050 fi
14051 fi
14052
14053
14054 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
14055 echo "configure:14056: checking for ANSI C header files" >&5
14056 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
14057 echo $ac_n "(cached) $ac_c" 1>&6
14058 else
14059 cat > conftest.$ac_ext <<EOF
14060 #line 14061 "configure"
14061 #include "confdefs.h"
14062 #include <stdlib.h>
14063 #include <stdarg.h>
14064 #include <string.h>
14065 #include <float.h>
14066 EOF
14067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14068 { (eval echo configure:14069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14070 if test -z "$ac_err"; then
14071 rm -rf conftest*
14072 ac_cv_header_stdc=yes
14073 else
14074 echo "$ac_err" >&5
14075 echo "configure: failed program was:" >&5
14076 cat conftest.$ac_ext >&5
14077 rm -rf conftest*
14078 ac_cv_header_stdc=no
14079 fi
14080 rm -f conftest*
14081
14082 if test $ac_cv_header_stdc = yes; then
14083 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14084 cat > conftest.$ac_ext <<EOF
14085 #line 14086 "configure"
14086 #include "confdefs.h"
14087 #include <string.h>
14088 EOF
14089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14090 egrep "memchr" >/dev/null 2>&1; then
14091 :
14092 else
14093 rm -rf conftest*
14094 ac_cv_header_stdc=no
14095 fi
14096 rm -f conftest*
14097
14098 fi
14099
14100 if test $ac_cv_header_stdc = yes; then
14101 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14102 cat > conftest.$ac_ext <<EOF
14103 #line 14104 "configure"
14104 #include "confdefs.h"
14105 #include <stdlib.h>
14106 EOF
14107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14108 egrep "free" >/dev/null 2>&1; then
14109 :
14110 else
14111 rm -rf conftest*
14112 ac_cv_header_stdc=no
14113 fi
14114 rm -f conftest*
14115
14116 fi
14117
14118 if test $ac_cv_header_stdc = yes; then
14119 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14120 if test "$cross_compiling" = yes; then
14121 :
14122 else
14123 cat > conftest.$ac_ext <<EOF
14124 #line 14125 "configure"
14125 #include "confdefs.h"
14126 #include <ctype.h>
14127 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14128 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14129 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14130 int main () { int i; for (i = 0; i < 256; i++)
14131 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14132 exit (0); }
14133
14134 EOF
14135 if { (eval echo configure:14136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14136 then
14137 :
14138 else
14139 echo "configure: failed program was:" >&5
14140 cat conftest.$ac_ext >&5
14141 rm -fr conftest*
14142 ac_cv_header_stdc=no
14143 fi
14144 rm -fr conftest*
14145 fi
14146
14147 fi
14148 fi
14149
14150 echo "$ac_t""$ac_cv_header_stdc" 1>&6
14151 if test $ac_cv_header_stdc = yes; then
14152 cat >> confdefs.h <<\EOF
14153 #define STDC_HEADERS 1
14154 EOF
14155
14156 fi
14157
14158 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
14159 echo "configure:14160: checking for mode_t" >&5
14160 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
14161 echo $ac_n "(cached) $ac_c" 1>&6
14162 else
14163 cat > conftest.$ac_ext <<EOF
14164 #line 14165 "configure"
14165 #include "confdefs.h"
14166 #include <sys/types.h>
14167 #if STDC_HEADERS
14168 #include <stdlib.h>
14169 #include <stddef.h>
14170 #endif
14171 EOF
14172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14173 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14174 rm -rf conftest*
14175 ac_cv_type_mode_t=yes
14176 else
14177 rm -rf conftest*
14178 ac_cv_type_mode_t=no
14179 fi
14180 rm -f conftest*
14181
14182 fi
14183 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
14184 if test $ac_cv_type_mode_t = no; then
14185 cat >> confdefs.h <<\EOF
14186 #define mode_t int
14187 EOF
14188
14189 fi
14190
14191 echo $ac_n "checking for off_t""... $ac_c" 1>&6
14192 echo "configure:14193: checking for off_t" >&5
14193 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
14194 echo $ac_n "(cached) $ac_c" 1>&6
14195 else
14196 cat > conftest.$ac_ext <<EOF
14197 #line 14198 "configure"
14198 #include "confdefs.h"
14199 #include <sys/types.h>
14200 #if STDC_HEADERS
14201 #include <stdlib.h>
14202 #include <stddef.h>
14203 #endif
14204 EOF
14205 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14206 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14207 rm -rf conftest*
14208 ac_cv_type_off_t=yes
14209 else
14210 rm -rf conftest*
14211 ac_cv_type_off_t=no
14212 fi
14213 rm -f conftest*
14214
14215 fi
14216 echo "$ac_t""$ac_cv_type_off_t" 1>&6
14217 if test $ac_cv_type_off_t = no; then
14218 cat >> confdefs.h <<\EOF
14219 #define off_t long
14220 EOF
14221
14222 fi
14223
14224 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
14225 echo "configure:14226: checking for pid_t" >&5
14226 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
14227 echo $ac_n "(cached) $ac_c" 1>&6
14228 else
14229 cat > conftest.$ac_ext <<EOF
14230 #line 14231 "configure"
14231 #include "confdefs.h"
14232 #include <sys/types.h>
14233 #if STDC_HEADERS
14234 #include <stdlib.h>
14235 #include <stddef.h>
14236 #endif
14237 EOF
14238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14239 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14240 rm -rf conftest*
14241 ac_cv_type_pid_t=yes
14242 else
14243 rm -rf conftest*
14244 ac_cv_type_pid_t=no
14245 fi
14246 rm -f conftest*
14247
14248 fi
14249 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
14250 if test $ac_cv_type_pid_t = no; then
14251 cat >> confdefs.h <<\EOF
14252 #define pid_t int
14253 EOF
14254
14255 fi
14256
14257 echo $ac_n "checking for size_t""... $ac_c" 1>&6
14258 echo "configure:14259: checking for size_t" >&5
14259 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
14260 echo $ac_n "(cached) $ac_c" 1>&6
14261 else
14262 cat > conftest.$ac_ext <<EOF
14263 #line 14264 "configure"
14264 #include "confdefs.h"
14265 #include <sys/types.h>
14266 #if STDC_HEADERS
14267 #include <stdlib.h>
14268 #include <stddef.h>
14269 #endif
14270 EOF
14271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14272 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
14273 rm -rf conftest*
14274 ac_cv_type_size_t=yes
14275 else
14276 rm -rf conftest*
14277 ac_cv_type_size_t=no
14278 fi
14279 rm -f conftest*
14280
14281 fi
14282 echo "$ac_t""$ac_cv_type_size_t" 1>&6
14283 if test $ac_cv_type_size_t = no; then
14284 cat >> confdefs.h <<\EOF
14285 #define size_t unsigned
14286 EOF
14287
14288 fi
14289
14290 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
14291 echo "configure:14292: checking for uid_t in sys/types.h" >&5
14292 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
14293 echo $ac_n "(cached) $ac_c" 1>&6
14294 else
14295 cat > conftest.$ac_ext <<EOF
14296 #line 14297 "configure"
14297 #include "confdefs.h"
14298 #include <sys/types.h>
14299 EOF
14300 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14301 egrep "uid_t" >/dev/null 2>&1; then
14302 rm -rf conftest*
14303 ac_cv_type_uid_t=yes
14304 else
14305 rm -rf conftest*
14306 ac_cv_type_uid_t=no
14307 fi
14308 rm -f conftest*
14309
14310 fi
14311
14312 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
14313 if test $ac_cv_type_uid_t = no; then
14314 cat >> confdefs.h <<\EOF
14315 #define uid_t int
14316 EOF
14317
14318 cat >> confdefs.h <<\EOF
14319 #define gid_t int
14320 EOF
14321
14322 fi
14323
14324
14325 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
14326 echo "configure:14327: checking for wchar_t" >&5
14327 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
14328 echo $ac_n "(cached) $ac_c" 1>&6
14329 else
14330
14331 cat > conftest.$ac_ext <<EOF
14332 #line 14333 "configure"
14333 #include "confdefs.h"
14334
14335 #ifdef HAVE_WCHAR_H
14336 # ifdef __CYGWIN__
14337 # include <stddef.h>
14338 # endif
14339 # include <wchar.h>
14340 #endif
14341 #ifdef HAVE_STDLIB_H
14342 # include <stdlib.h>
14343 #endif
14344
14345 int main() {
14346
14347 wchar_t wc, *ws;
14348 wc = L'a';
14349 ws = L"Hello, world!";
14350
14351 ; return 0; }
14352 EOF
14353 if { (eval echo configure:14354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14354 rm -rf conftest*
14355 wx_cv_type_wchar_t=yes
14356 else
14357 echo "configure: failed program was:" >&5
14358 cat conftest.$ac_ext >&5
14359 rm -rf conftest*
14360 wx_cv_type_wchar_t=no
14361
14362 fi
14363 rm -f conftest*
14364
14365 fi
14366
14367 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
14368
14369 if test "$wx_cv_type_wchar_t" = "yes"; then
14370 cat >> confdefs.h <<\EOF
14371 #define wxUSE_WCHAR_T 1
14372 EOF
14373
14374 fi
14375
14376
14377 ac_ext=C
14378 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14379 ac_cpp='$CXXCPP $CPPFLAGS'
14380 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14381 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14382 cross_compiling=$ac_cv_prog_cxx_cross
14383
14384 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
14385 echo "configure:14386: checking if size_t is unsigned int" >&5
14386 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
14387 echo $ac_n "(cached) $ac_c" 1>&6
14388 else
14389 cat > conftest.$ac_ext <<EOF
14390 #line 14391 "configure"
14391 #include "confdefs.h"
14392 #include <stddef.h>
14393 int main() {
14394
14395 return 0; }
14396
14397 struct Foo { void foo(size_t); void foo(unsigned int); };
14398
14399 int bar() {
14400
14401 ; return 0; }
14402 EOF
14403 if { (eval echo configure:14404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14404 rm -rf conftest*
14405 wx_cv_size_t_is_uint=no
14406 else
14407 echo "configure: failed program was:" >&5
14408 cat conftest.$ac_ext >&5
14409 rm -rf conftest*
14410 wx_cv_size_t_is_uint=yes
14411
14412 fi
14413 rm -f conftest*
14414
14415 fi
14416
14417 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
14418
14419 if test "$wx_cv_size_t_is_uint" = "yes"; then
14420 cat >> confdefs.h <<\EOF
14421 #define wxSIZE_T_IS_UINT 1
14422 EOF
14423
14424 else
14425 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
14426 echo "configure:14427: checking if size_t is unsigned long" >&5
14427 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
14428 echo $ac_n "(cached) $ac_c" 1>&6
14429 else
14430 cat > conftest.$ac_ext <<EOF
14431 #line 14432 "configure"
14432 #include "confdefs.h"
14433 #include <stddef.h>
14434 int main() {
14435
14436 return 0; }
14437
14438 struct Foo { void foo(size_t); void foo(unsigned long); };
14439
14440 int bar() {
14441
14442 ; return 0; }
14443 EOF
14444 if { (eval echo configure:14445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14445 rm -rf conftest*
14446 wx_cv_size_t_is_ulong=no
14447 else
14448 echo "configure: failed program was:" >&5
14449 cat conftest.$ac_ext >&5
14450 rm -rf conftest*
14451 wx_cv_size_t_is_ulong=yes
14452
14453 fi
14454 rm -f conftest*
14455
14456 fi
14457
14458 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
14459
14460 if test "$wx_cv_size_t_is_ulong" = "yes"; then
14461 cat >> confdefs.h <<\EOF
14462 #define wxSIZE_T_IS_ULONG 1
14463 EOF
14464
14465 fi
14466 fi
14467
14468 ac_ext=c
14469 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14470 ac_cpp='$CPP $CPPFLAGS'
14471 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14472 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14473 cross_compiling=$ac_cv_prog_cc_cross
14474
14475
14476
14477 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
14478 echo "configure:14479: checking for pw_gecos in struct passwd" >&5
14479 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
14480 echo $ac_n "(cached) $ac_c" 1>&6
14481 else
14482
14483 cat > conftest.$ac_ext <<EOF
14484 #line 14485 "configure"
14485 #include "confdefs.h"
14486 #include <pwd.h>
14487 int main() {
14488
14489 char *p;
14490 struct passwd *pw;
14491 p = pw->pw_gecos;
14492
14493 ; return 0; }
14494 EOF
14495 if { (eval echo configure:14496: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14496 rm -rf conftest*
14497
14498 wx_cv_struct_pw_gecos=yes
14499
14500 else
14501 echo "configure: failed program was:" >&5
14502 cat conftest.$ac_ext >&5
14503 rm -rf conftest*
14504
14505 wx_cv_struct_pw_gecos=no
14506
14507
14508 fi
14509 rm -f conftest*
14510
14511
14512 fi
14513
14514 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
14515
14516 if test "$wx_cv_struct_pw_gecos" = "yes"; then
14517 cat >> confdefs.h <<\EOF
14518 #define HAVE_PW_GECOS 1
14519 EOF
14520
14521 fi
14522
14523
14524 echo $ac_n "checking for working const""... $ac_c" 1>&6
14525 echo "configure:14526: checking for working const" >&5
14526 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
14527 echo $ac_n "(cached) $ac_c" 1>&6
14528 else
14529 cat > conftest.$ac_ext <<EOF
14530 #line 14531 "configure"
14531 #include "confdefs.h"
14532
14533 int main() {
14534
14535 /* Ultrix mips cc rejects this. */
14536 typedef int charset[2]; const charset x;
14537 /* SunOS 4.1.1 cc rejects this. */
14538 char const *const *ccp;
14539 char **p;
14540 /* NEC SVR4.0.2 mips cc rejects this. */
14541 struct point {int x, y;};
14542 static struct point const zero = {0,0};
14543 /* AIX XL C 1.02.0.0 rejects this.
14544 It does not let you subtract one const X* pointer from another in an arm
14545 of an if-expression whose if-part is not a constant expression */
14546 const char *g = "string";
14547 ccp = &g + (g ? g-g : 0);
14548 /* HPUX 7.0 cc rejects these. */
14549 ++ccp;
14550 p = (char**) ccp;
14551 ccp = (char const *const *) p;
14552 { /* SCO 3.2v4 cc rejects this. */
14553 char *t;
14554 char const *s = 0 ? (char *) 0 : (char const *) 0;
14555
14556 *t++ = 0;
14557 }
14558 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14559 int x[] = {25, 17};
14560 const int *foo = &x[0];
14561 ++foo;
14562 }
14563 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14564 typedef const int *iptr;
14565 iptr p = 0;
14566 ++p;
14567 }
14568 { /* AIX XL C 1.02.0.0 rejects this saying
14569 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14570 struct s { int j; const int *ap[3]; };
14571 struct s *b; b->j = 5;
14572 }
14573 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14574 const int foo = 10;
14575 }
14576
14577 ; return 0; }
14578 EOF
14579 if { (eval echo configure:14580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14580 rm -rf conftest*
14581 ac_cv_c_const=yes
14582 else
14583 echo "configure: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
14585 rm -rf conftest*
14586 ac_cv_c_const=no
14587 fi
14588 rm -f conftest*
14589 fi
14590
14591 echo "$ac_t""$ac_cv_c_const" 1>&6
14592 if test $ac_cv_c_const = no; then
14593 cat >> confdefs.h <<\EOF
14594 #define const
14595 EOF
14596
14597 fi
14598
14599 echo $ac_n "checking for inline""... $ac_c" 1>&6
14600 echo "configure:14601: checking for inline" >&5
14601 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
14602 echo $ac_n "(cached) $ac_c" 1>&6
14603 else
14604 ac_cv_c_inline=no
14605 for ac_kw in inline __inline__ __inline; do
14606 cat > conftest.$ac_ext <<EOF
14607 #line 14608 "configure"
14608 #include "confdefs.h"
14609
14610 int main() {
14611 } $ac_kw foo() {
14612 ; return 0; }
14613 EOF
14614 if { (eval echo configure:14615: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14615 rm -rf conftest*
14616 ac_cv_c_inline=$ac_kw; break
14617 else
14618 echo "configure: failed program was:" >&5
14619 cat conftest.$ac_ext >&5
14620 fi
14621 rm -f conftest*
14622 done
14623
14624 fi
14625
14626 echo "$ac_t""$ac_cv_c_inline" 1>&6
14627 case "$ac_cv_c_inline" in
14628 inline | yes) ;;
14629 no) cat >> confdefs.h <<\EOF
14630 #define inline
14631 EOF
14632 ;;
14633 *) cat >> confdefs.h <<EOF
14634 #define inline $ac_cv_c_inline
14635 EOF
14636 ;;
14637 esac
14638
14639
14640 echo $ac_n "checking size of char""... $ac_c" 1>&6
14641 echo "configure:14642: checking size of char" >&5
14642 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
14643 echo $ac_n "(cached) $ac_c" 1>&6
14644 else
14645 if test "$cross_compiling" = yes; then
14646 ac_cv_sizeof_char=1
14647 else
14648 cat > conftest.$ac_ext <<EOF
14649 #line 14650 "configure"
14650 #include "confdefs.h"
14651 #include <stdio.h>
14652 main()
14653 {
14654 FILE *f=fopen("conftestval", "w");
14655 if (!f) exit(1);
14656 fprintf(f, "%d\n", sizeof(char));
14657 exit(0);
14658 }
14659 EOF
14660 if { (eval echo configure:14661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14661 then
14662 ac_cv_sizeof_char=`cat conftestval`
14663 else
14664 echo "configure: failed program was:" >&5
14665 cat conftest.$ac_ext >&5
14666 rm -fr conftest*
14667 ac_cv_sizeof_char=0
14668 fi
14669 rm -fr conftest*
14670 fi
14671
14672 fi
14673 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
14674 cat >> confdefs.h <<EOF
14675 #define SIZEOF_CHAR $ac_cv_sizeof_char
14676 EOF
14677
14678
14679 echo $ac_n "checking size of short""... $ac_c" 1>&6
14680 echo "configure:14681: checking size of short" >&5
14681 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
14682 echo $ac_n "(cached) $ac_c" 1>&6
14683 else
14684 if test "$cross_compiling" = yes; then
14685 ac_cv_sizeof_short=2
14686 else
14687 cat > conftest.$ac_ext <<EOF
14688 #line 14689 "configure"
14689 #include "confdefs.h"
14690 #include <stdio.h>
14691 main()
14692 {
14693 FILE *f=fopen("conftestval", "w");
14694 if (!f) exit(1);
14695 fprintf(f, "%d\n", sizeof(short));
14696 exit(0);
14697 }
14698 EOF
14699 if { (eval echo configure:14700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14700 then
14701 ac_cv_sizeof_short=`cat conftestval`
14702 else
14703 echo "configure: failed program was:" >&5
14704 cat conftest.$ac_ext >&5
14705 rm -fr conftest*
14706 ac_cv_sizeof_short=0
14707 fi
14708 rm -fr conftest*
14709 fi
14710
14711 fi
14712 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14713 cat >> confdefs.h <<EOF
14714 #define SIZEOF_SHORT $ac_cv_sizeof_short
14715 EOF
14716
14717
14718 echo $ac_n "checking size of int *""... $ac_c" 1>&6
14719 echo "configure:14720: checking size of int *" >&5
14720 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
14721 echo $ac_n "(cached) $ac_c" 1>&6
14722 else
14723 if test "$cross_compiling" = yes; then
14724 ac_cv_sizeof_int_p=4
14725 else
14726 cat > conftest.$ac_ext <<EOF
14727 #line 14728 "configure"
14728 #include "confdefs.h"
14729 #include <stdio.h>
14730 main()
14731 {
14732 FILE *f=fopen("conftestval", "w");
14733 if (!f) exit(1);
14734 fprintf(f, "%d\n", sizeof(int *));
14735 exit(0);
14736 }
14737 EOF
14738 if { (eval echo configure:14739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14739 then
14740 ac_cv_sizeof_int_p=`cat conftestval`
14741 else
14742 echo "configure: failed program was:" >&5
14743 cat conftest.$ac_ext >&5
14744 rm -fr conftest*
14745 ac_cv_sizeof_int_p=0
14746 fi
14747 rm -fr conftest*
14748 fi
14749
14750 fi
14751 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
14752 cat >> confdefs.h <<EOF
14753 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14754 EOF
14755
14756
14757 echo $ac_n "checking size of int""... $ac_c" 1>&6
14758 echo "configure:14759: checking size of int" >&5
14759 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
14760 echo $ac_n "(cached) $ac_c" 1>&6
14761 else
14762 if test "$cross_compiling" = yes; then
14763 ac_cv_sizeof_int=4
14764 else
14765 cat > conftest.$ac_ext <<EOF
14766 #line 14767 "configure"
14767 #include "confdefs.h"
14768 #include <stdio.h>
14769 main()
14770 {
14771 FILE *f=fopen("conftestval", "w");
14772 if (!f) exit(1);
14773 fprintf(f, "%d\n", sizeof(int));
14774 exit(0);
14775 }
14776 EOF
14777 if { (eval echo configure:14778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14778 then
14779 ac_cv_sizeof_int=`cat conftestval`
14780 else
14781 echo "configure: failed program was:" >&5
14782 cat conftest.$ac_ext >&5
14783 rm -fr conftest*
14784 ac_cv_sizeof_int=0
14785 fi
14786 rm -fr conftest*
14787 fi
14788
14789 fi
14790 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14791 cat >> confdefs.h <<EOF
14792 #define SIZEOF_INT $ac_cv_sizeof_int
14793 EOF
14794
14795
14796 echo $ac_n "checking size of long""... $ac_c" 1>&6
14797 echo "configure:14798: checking size of long" >&5
14798 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
14799 echo $ac_n "(cached) $ac_c" 1>&6
14800 else
14801 if test "$cross_compiling" = yes; then
14802 ac_cv_sizeof_long=4
14803 else
14804 cat > conftest.$ac_ext <<EOF
14805 #line 14806 "configure"
14806 #include "confdefs.h"
14807 #include <stdio.h>
14808 main()
14809 {
14810 FILE *f=fopen("conftestval", "w");
14811 if (!f) exit(1);
14812 fprintf(f, "%d\n", sizeof(long));
14813 exit(0);
14814 }
14815 EOF
14816 if { (eval echo configure:14817: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14817 then
14818 ac_cv_sizeof_long=`cat conftestval`
14819 else
14820 echo "configure: failed program was:" >&5
14821 cat conftest.$ac_ext >&5
14822 rm -fr conftest*
14823 ac_cv_sizeof_long=0
14824 fi
14825 rm -fr conftest*
14826 fi
14827
14828 fi
14829 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14830 cat >> confdefs.h <<EOF
14831 #define SIZEOF_LONG $ac_cv_sizeof_long
14832 EOF
14833
14834
14835 echo $ac_n "checking size of long long""... $ac_c" 1>&6
14836 echo "configure:14837: checking size of long long" >&5
14837 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
14838 echo $ac_n "(cached) $ac_c" 1>&6
14839 else
14840 if test "$cross_compiling" = yes; then
14841 ac_cv_sizeof_long_long=0
14842 else
14843 cat > conftest.$ac_ext <<EOF
14844 #line 14845 "configure"
14845 #include "confdefs.h"
14846 #include <stdio.h>
14847 main()
14848 {
14849 FILE *f=fopen("conftestval", "w");
14850 if (!f) exit(1);
14851 fprintf(f, "%d\n", sizeof(long long));
14852 exit(0);
14853 }
14854 EOF
14855 if { (eval echo configure:14856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14856 then
14857 ac_cv_sizeof_long_long=`cat conftestval`
14858 else
14859 echo "configure: failed program was:" >&5
14860 cat conftest.$ac_ext >&5
14861 rm -fr conftest*
14862 ac_cv_sizeof_long_long=0
14863 fi
14864 rm -fr conftest*
14865 fi
14866
14867 fi
14868 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14869 cat >> confdefs.h <<EOF
14870 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14871 EOF
14872
14873
14874
14875 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
14876 echo "configure:14877: checking size of wchar_t" >&5
14877 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
14878 echo $ac_n "(cached) $ac_c" 1>&6
14879 else
14880
14881 if test "$cross_compiling" = yes; then
14882 wx_cv_sizeof_wchar_t=4
14883
14884 else
14885 cat > conftest.$ac_ext <<EOF
14886 #line 14887 "configure"
14887 #include "confdefs.h"
14888
14889 #ifdef HAVE_WCHAR_H
14890 # ifdef __CYGWIN__
14891 # include <stddef.h>
14892 # endif
14893 # include <wchar.h>
14894 #endif
14895 #ifdef HAVE_STDLIB_H
14896 # include <stdlib.h>
14897 #endif
14898 #include <stdio.h>
14899 int main()
14900 {
14901 FILE *f=fopen("conftestval", "w");
14902 if (!f) exit(1);
14903 fprintf(f, "%i", sizeof(wchar_t));
14904 exit(0);
14905 }
14906
14907 EOF
14908 if { (eval echo configure:14909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14909 then
14910 wx_cv_sizeof_wchar_t=`cat conftestval`
14911 else
14912 echo "configure: failed program was:" >&5
14913 cat conftest.$ac_ext >&5
14914 rm -fr conftest*
14915 wx_cv_sizeof_wchar_t=0
14916 fi
14917 rm -fr conftest*
14918 fi
14919
14920
14921 fi
14922
14923 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
14924
14925 cat >> confdefs.h <<EOF
14926 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
14927 EOF
14928
14929
14930 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14931 echo "configure:14932: checking whether byte ordering is bigendian" >&5
14932 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
14933 echo $ac_n "(cached) $ac_c" 1>&6
14934 else
14935 ac_cv_c_bigendian=unknown
14936 # See if sys/param.h defines the BYTE_ORDER macro.
14937 cat > conftest.$ac_ext <<EOF
14938 #line 14939 "configure"
14939 #include "confdefs.h"
14940 #include <sys/types.h>
14941 #include <sys/param.h>
14942 int main() {
14943
14944 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14945 bogus endian macros
14946 #endif
14947 ; return 0; }
14948 EOF
14949 if { (eval echo configure:14950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14950 rm -rf conftest*
14951 # It does; now see whether it defined to BIG_ENDIAN or not.
14952 cat > conftest.$ac_ext <<EOF
14953 #line 14954 "configure"
14954 #include "confdefs.h"
14955 #include <sys/types.h>
14956 #include <sys/param.h>
14957 int main() {
14958
14959 #if BYTE_ORDER != BIG_ENDIAN
14960 not big endian
14961 #endif
14962 ; return 0; }
14963 EOF
14964 if { (eval echo configure:14965: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14965 rm -rf conftest*
14966 ac_cv_c_bigendian=yes
14967 else
14968 echo "configure: failed program was:" >&5
14969 cat conftest.$ac_ext >&5
14970 rm -rf conftest*
14971 ac_cv_c_bigendian=no
14972 fi
14973 rm -f conftest*
14974 else
14975 echo "configure: failed program was:" >&5
14976 cat conftest.$ac_ext >&5
14977 fi
14978 rm -f conftest*
14979 if test $ac_cv_c_bigendian = unknown; then
14980 if test "$cross_compiling" = yes; then
14981 ac_cv_c_bigendian=unknown
14982 else
14983 cat > conftest.$ac_ext <<EOF
14984 #line 14985 "configure"
14985 #include "confdefs.h"
14986 main () {
14987 /* Are we little or big endian? From Harbison&Steele. */
14988 union
14989 {
14990 long l;
14991 char c[sizeof (long)];
14992 } u;
14993 u.l = 1;
14994 exit (u.c[sizeof (long) - 1] == 1);
14995 }
14996 EOF
14997 if { (eval echo configure:14998: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14998 then
14999 ac_cv_c_bigendian=no
15000 else
15001 echo "configure: failed program was:" >&5
15002 cat conftest.$ac_ext >&5
15003 rm -fr conftest*
15004 ac_cv_c_bigendian=yes
15005 fi
15006 rm -fr conftest*
15007 fi
15008
15009 fi
15010 fi
15011
15012 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
15013 if test $ac_cv_c_bigendian = unknown; then
15014 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
15015 fi
15016 if test $ac_cv_c_bigendian = yes; then
15017 cat >> confdefs.h <<\EOF
15018 #define WORDS_BIGENDIAN 1
15019 EOF
15020
15021 fi
15022
15023
15024 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
15025 echo "configure:15026: checking how to run the C++ preprocessor" >&5
15026 if test -z "$CXXCPP"; then
15027 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
15028 echo $ac_n "(cached) $ac_c" 1>&6
15029 else
15030 ac_ext=C
15031 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15032 ac_cpp='$CXXCPP $CPPFLAGS'
15033 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15034 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15035 cross_compiling=$ac_cv_prog_cxx_cross
15036 CXXCPP="${CXX-g++} -E"
15037 cat > conftest.$ac_ext <<EOF
15038 #line 15039 "configure"
15039 #include "confdefs.h"
15040 #include <stdlib.h>
15041 EOF
15042 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15043 { (eval echo configure:15044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15044 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15045 if test -z "$ac_err"; then
15046 :
15047 else
15048 echo "$ac_err" >&5
15049 echo "configure: failed program was:" >&5
15050 cat conftest.$ac_ext >&5
15051 rm -rf conftest*
15052 CXXCPP=/lib/cpp
15053 fi
15054 rm -f conftest*
15055 ac_cv_prog_CXXCPP="$CXXCPP"
15056 ac_ext=C
15057 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15058 ac_cpp='$CXXCPP $CPPFLAGS'
15059 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15060 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15061 cross_compiling=$ac_cv_prog_cxx_cross
15062 fi
15063 fi
15064 CXXCPP="$ac_cv_prog_CXXCPP"
15065 echo "$ac_t""$CXXCPP" 1>&6
15066
15067
15068 if test "$cross_compiling" = "yes"; then
15069 cat >> confdefs.h <<\EOF
15070 #define wxUSE_IOSTREAMH 1
15071 EOF
15072
15073 else
15074
15075 ac_ext=C
15076 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15077 ac_cpp='$CXXCPP $CPPFLAGS'
15078 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15079 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15080 cross_compiling=$ac_cv_prog_cxx_cross
15081
15082
15083 for ac_hdr in iostream
15084 do
15085 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15086 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15087 echo "configure:15088: checking for $ac_hdr" >&5
15088 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15089 echo $ac_n "(cached) $ac_c" 1>&6
15090 else
15091 cat > conftest.$ac_ext <<EOF
15092 #line 15093 "configure"
15093 #include "confdefs.h"
15094 #include <$ac_hdr>
15095 EOF
15096 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15097 { (eval echo configure:15098: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15098 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15099 if test -z "$ac_err"; then
15100 rm -rf conftest*
15101 eval "ac_cv_header_$ac_safe=yes"
15102 else
15103 echo "$ac_err" >&5
15104 echo "configure: failed program was:" >&5
15105 cat conftest.$ac_ext >&5
15106 rm -rf conftest*
15107 eval "ac_cv_header_$ac_safe=no"
15108 fi
15109 rm -f conftest*
15110 fi
15111 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15112 echo "$ac_t""yes" 1>&6
15113 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15114 cat >> confdefs.h <<EOF
15115 #define $ac_tr_hdr 1
15116 EOF
15117
15118 else
15119 echo "$ac_t""no" 1>&6
15120 fi
15121 done
15122
15123
15124 if test "$ac_cv_header_iostream" = "yes" ; then
15125 :
15126 else
15127 cat >> confdefs.h <<\EOF
15128 #define wxUSE_IOSTREAMH 1
15129 EOF
15130
15131 fi
15132
15133 ac_ext=c
15134 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15135 ac_cpp='$CPP $CPPFLAGS'
15136 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15137 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15138 cross_compiling=$ac_cv_prog_cc_cross
15139
15140 fi
15141
15142
15143
15144 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
15145 echo "configure:15146: checking if C++ compiler supports bool" >&5
15146 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
15147 echo $ac_n "(cached) $ac_c" 1>&6
15148 else
15149
15150
15151 ac_ext=C
15152 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15153 ac_cpp='$CXXCPP $CPPFLAGS'
15154 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15155 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15156 cross_compiling=$ac_cv_prog_cxx_cross
15157
15158
15159 cat > conftest.$ac_ext <<EOF
15160 #line 15161 "configure"
15161 #include "confdefs.h"
15162
15163
15164 int main() {
15165
15166 bool b = true;
15167
15168 return 0;
15169
15170 ; return 0; }
15171 EOF
15172 if { (eval echo configure:15173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15173 rm -rf conftest*
15174
15175 wx_cv_cpp_bool=yes
15176
15177 else
15178 echo "configure: failed program was:" >&5
15179 cat conftest.$ac_ext >&5
15180 rm -rf conftest*
15181
15182 wx_cv_cpp_bool=no
15183
15184
15185 fi
15186 rm -f conftest*
15187
15188 ac_ext=c
15189 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15190 ac_cpp='$CPP $CPPFLAGS'
15191 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15192 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15193 cross_compiling=$ac_cv_prog_cc_cross
15194
15195
15196 fi
15197
15198 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
15199
15200 if test "$wx_cv_cpp_bool" = "yes"; then
15201 cat >> confdefs.h <<\EOF
15202 #define HAVE_BOOL 1
15203 EOF
15204
15205 fi
15206
15207
15208
15209 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
15210 echo "configure:15211: checking for wcslen in -lc" >&5
15211 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
15212 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15213 echo $ac_n "(cached) $ac_c" 1>&6
15214 else
15215 ac_save_LIBS="$LIBS"
15216 LIBS="-lc $LIBS"
15217 cat > conftest.$ac_ext <<EOF
15218 #line 15219 "configure"
15219 #include "confdefs.h"
15220 /* Override any gcc2 internal prototype to avoid an error. */
15221 /* We use char because int might match the return type of a gcc2
15222 builtin and then its argument prototype would still apply. */
15223 char wcslen();
15224
15225 int main() {
15226 wcslen()
15227 ; return 0; }
15228 EOF
15229 if { (eval echo configure:15230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15230 rm -rf conftest*
15231 eval "ac_cv_lib_$ac_lib_var=yes"
15232 else
15233 echo "configure: failed program was:" >&5
15234 cat conftest.$ac_ext >&5
15235 rm -rf conftest*
15236 eval "ac_cv_lib_$ac_lib_var=no"
15237 fi
15238 rm -f conftest*
15239 LIBS="$ac_save_LIBS"
15240
15241 fi
15242 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15243 echo "$ac_t""yes" 1>&6
15244
15245 cat >> confdefs.h <<\EOF
15246 #define HAVE_WCSLEN 1
15247 EOF
15248
15249 WCHAR_LINK=
15250
15251 else
15252 echo "$ac_t""no" 1>&6
15253
15254 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15255 echo "configure:15256: checking for wcslen in -lw" >&5
15256 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15258 echo $ac_n "(cached) $ac_c" 1>&6
15259 else
15260 ac_save_LIBS="$LIBS"
15261 LIBS="-lw $LIBS"
15262 cat > conftest.$ac_ext <<EOF
15263 #line 15264 "configure"
15264 #include "confdefs.h"
15265 /* Override any gcc2 internal prototype to avoid an error. */
15266 /* We use char because int might match the return type of a gcc2
15267 builtin and then its argument prototype would still apply. */
15268 char wcslen();
15269
15270 int main() {
15271 wcslen()
15272 ; return 0; }
15273 EOF
15274 if { (eval echo configure:15275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15275 rm -rf conftest*
15276 eval "ac_cv_lib_$ac_lib_var=yes"
15277 else
15278 echo "configure: failed program was:" >&5
15279 cat conftest.$ac_ext >&5
15280 rm -rf conftest*
15281 eval "ac_cv_lib_$ac_lib_var=no"
15282 fi
15283 rm -f conftest*
15284 LIBS="$ac_save_LIBS"
15285
15286 fi
15287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15288 echo "$ac_t""yes" 1>&6
15289
15290 cat >> confdefs.h <<\EOF
15291 #define HAVE_WCSLEN 1
15292 EOF
15293
15294 WCHAR_LINK=" -lw"
15295
15296 else
15297 echo "$ac_t""no" 1>&6
15298
15299 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15300 echo "configure:15301: checking for wcslen in -lmsvcrt" >&5
15301 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15302 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15303 echo $ac_n "(cached) $ac_c" 1>&6
15304 else
15305 ac_save_LIBS="$LIBS"
15306 LIBS="-lmsvcrt $LIBS"
15307 cat > conftest.$ac_ext <<EOF
15308 #line 15309 "configure"
15309 #include "confdefs.h"
15310 /* Override any gcc2 internal prototype to avoid an error. */
15311 /* We use char because int might match the return type of a gcc2
15312 builtin and then its argument prototype would still apply. */
15313 char wcslen();
15314
15315 int main() {
15316 wcslen()
15317 ; return 0; }
15318 EOF
15319 if { (eval echo configure:15320: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15320 rm -rf conftest*
15321 eval "ac_cv_lib_$ac_lib_var=yes"
15322 else
15323 echo "configure: failed program was:" >&5
15324 cat conftest.$ac_ext >&5
15325 rm -rf conftest*
15326 eval "ac_cv_lib_$ac_lib_var=no"
15327 fi
15328 rm -f conftest*
15329 LIBS="$ac_save_LIBS"
15330
15331 fi
15332 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15333 echo "$ac_t""yes" 1>&6
15334
15335 cat >> confdefs.h <<\EOF
15336 #define HAVE_WCSLEN 1
15337 EOF
15338
15339 WCHAR_LINK=
15340
15341 else
15342 echo "$ac_t""no" 1>&6
15343 fi
15344
15345
15346 fi
15347
15348
15349 fi
15350
15351
15352 for ac_func in wcsrtombs
15353 do
15354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15355 echo "configure:15356: checking for $ac_func" >&5
15356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15357 echo $ac_n "(cached) $ac_c" 1>&6
15358 else
15359 cat > conftest.$ac_ext <<EOF
15360 #line 15361 "configure"
15361 #include "confdefs.h"
15362 /* System header to define __stub macros and hopefully few prototypes,
15363 which can conflict with char $ac_func(); below. */
15364 #include <assert.h>
15365 /* Override any gcc2 internal prototype to avoid an error. */
15366 /* We use char because int might match the return type of a gcc2
15367 builtin and then its argument prototype would still apply. */
15368 char $ac_func();
15369
15370 int main() {
15371
15372 /* The GNU C library defines this for functions which it implements
15373 to always fail with ENOSYS. Some functions are actually named
15374 something starting with __ and the normal name is an alias. */
15375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15376 choke me
15377 #else
15378 $ac_func();
15379 #endif
15380
15381 ; return 0; }
15382 EOF
15383 if { (eval echo configure:15384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15384 rm -rf conftest*
15385 eval "ac_cv_func_$ac_func=yes"
15386 else
15387 echo "configure: failed program was:" >&5
15388 cat conftest.$ac_ext >&5
15389 rm -rf conftest*
15390 eval "ac_cv_func_$ac_func=no"
15391 fi
15392 rm -f conftest*
15393 fi
15394
15395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15396 echo "$ac_t""yes" 1>&6
15397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15398 cat >> confdefs.h <<EOF
15399 #define $ac_tr_func 1
15400 EOF
15401
15402 else
15403 echo "$ac_t""no" 1>&6
15404 fi
15405 done
15406
15407
15408 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15409 echo "configure:15410: checking for vprintf" >&5
15410 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
15411 echo $ac_n "(cached) $ac_c" 1>&6
15412 else
15413 cat > conftest.$ac_ext <<EOF
15414 #line 15415 "configure"
15415 #include "confdefs.h"
15416 /* System header to define __stub macros and hopefully few prototypes,
15417 which can conflict with char vprintf(); below. */
15418 #include <assert.h>
15419 /* Override any gcc2 internal prototype to avoid an error. */
15420 /* We use char because int might match the return type of a gcc2
15421 builtin and then its argument prototype would still apply. */
15422 char vprintf();
15423
15424 int main() {
15425
15426 /* The GNU C library defines this for functions which it implements
15427 to always fail with ENOSYS. Some functions are actually named
15428 something starting with __ and the normal name is an alias. */
15429 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15430 choke me
15431 #else
15432 vprintf();
15433 #endif
15434
15435 ; return 0; }
15436 EOF
15437 if { (eval echo configure:15438: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15438 rm -rf conftest*
15439 eval "ac_cv_func_vprintf=yes"
15440 else
15441 echo "configure: failed program was:" >&5
15442 cat conftest.$ac_ext >&5
15443 rm -rf conftest*
15444 eval "ac_cv_func_vprintf=no"
15445 fi
15446 rm -f conftest*
15447 fi
15448
15449 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15450 echo "$ac_t""yes" 1>&6
15451 cat >> confdefs.h <<\EOF
15452 #define HAVE_VPRINTF 1
15453 EOF
15454
15455 else
15456 echo "$ac_t""no" 1>&6
15457 fi
15458
15459 if test "$ac_cv_func_vprintf" != yes; then
15460 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15461 echo "configure:15462: checking for _doprnt" >&5
15462 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
15463 echo $ac_n "(cached) $ac_c" 1>&6
15464 else
15465 cat > conftest.$ac_ext <<EOF
15466 #line 15467 "configure"
15467 #include "confdefs.h"
15468 /* System header to define __stub macros and hopefully few prototypes,
15469 which can conflict with char _doprnt(); below. */
15470 #include <assert.h>
15471 /* Override any gcc2 internal prototype to avoid an error. */
15472 /* We use char because int might match the return type of a gcc2
15473 builtin and then its argument prototype would still apply. */
15474 char _doprnt();
15475
15476 int main() {
15477
15478 /* The GNU C library defines this for functions which it implements
15479 to always fail with ENOSYS. Some functions are actually named
15480 something starting with __ and the normal name is an alias. */
15481 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15482 choke me
15483 #else
15484 _doprnt();
15485 #endif
15486
15487 ; return 0; }
15488 EOF
15489 if { (eval echo configure:15490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15490 rm -rf conftest*
15491 eval "ac_cv_func__doprnt=yes"
15492 else
15493 echo "configure: failed program was:" >&5
15494 cat conftest.$ac_ext >&5
15495 rm -rf conftest*
15496 eval "ac_cv_func__doprnt=no"
15497 fi
15498 rm -f conftest*
15499 fi
15500
15501 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15502 echo "$ac_t""yes" 1>&6
15503 cat >> confdefs.h <<\EOF
15504 #define HAVE_DOPRNT 1
15505 EOF
15506
15507 else
15508 echo "$ac_t""no" 1>&6
15509 fi
15510
15511 fi
15512
15513
15514
15515
15516
15517
15518 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
15519 echo "configure:15520: checking for vsnprintf" >&5
15520 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
15521 echo $ac_n "(cached) $ac_c" 1>&6
15522 else
15523
15524 cat > conftest.$ac_ext <<EOF
15525 #line 15526 "configure"
15526 #include "confdefs.h"
15527
15528 #include <stdio.h>
15529 #include <stdarg.h>
15530
15531 int main() {
15532
15533 int wx_test_vsnprintf(const char *, ...);
15534
15535 wx_test_vsnprintf("%s");
15536 return 0;
15537 }
15538
15539 int wx_test_vsnprintf(const char *fmt, ...)
15540 {
15541 char *s;
15542
15543 va_list argp;
15544 va_start(argp, fmt);
15545 vsnprintf(s, 42, fmt, argp);
15546 va_end(argp);
15547
15548 ; return 0; }
15549 EOF
15550 if { (eval echo configure:15551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15551 rm -rf conftest*
15552
15553 wx_cv_func_vsnprintf=yes
15554
15555 else
15556 echo "configure: failed program was:" >&5
15557 cat conftest.$ac_ext >&5
15558 rm -rf conftest*
15559
15560 cat > conftest.$ac_ext <<EOF
15561 #line 15562 "configure"
15562 #include "confdefs.h"
15563
15564 #include <stdio.h>
15565 #include <stdarg.h>
15566
15567 int main() {
15568
15569 int wx_test_vsnprintf(const char *, ...);
15570
15571 wx_test_vsnprintf("%s");
15572 return 0;
15573 }
15574
15575 int wx_test_vsnprintf(const char *fmt, ...)
15576 {
15577 char *s;
15578
15579 va_list argp;
15580 va_start(argp, fmt);
15581 _vsnprintf(s, 42, fmt, argp);
15582 va_end(argp);
15583
15584 ; return 0; }
15585 EOF
15586 if { (eval echo configure:15587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15587 rm -rf conftest*
15588
15589 wx_cv_func_vsnprintf=yes
15590
15591 else
15592 echo "configure: failed program was:" >&5
15593 cat conftest.$ac_ext >&5
15594 rm -rf conftest*
15595
15596 wx_cv_func_vsnprintf=no
15597
15598 fi
15599 rm -f conftest*
15600
15601 fi
15602 rm -f conftest*
15603
15604 fi
15605
15606 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
15607
15608 if test "$wx_cv_func_vsnprintf" = yes; then
15609 cat >> confdefs.h <<\EOF
15610 #define HAVE_VSNPRINTF 1
15611 EOF
15612
15613 else
15614 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
15615 fi
15616
15617 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
15618 echo "configure:15619: checking for vsscanf" >&5
15619 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
15620 echo $ac_n "(cached) $ac_c" 1>&6
15621 else
15622
15623 cat > conftest.$ac_ext <<EOF
15624 #line 15625 "configure"
15625 #include "confdefs.h"
15626
15627 #include <stdio.h>
15628 #include <stdarg.h>
15629
15630 int main() {
15631
15632 int wx_test_vsscanf(const char *, ...);
15633
15634 wx_test_vsscanf("%d");
15635 return 0;
15636 }
15637
15638 int wx_test_vsscanf(const char *fmt, ...)
15639 {
15640 va_list argp;
15641 va_start(argp, fmt);
15642 vsscanf("42", fmt, argp);
15643 va_end(argp);
15644
15645 ; return 0; }
15646 EOF
15647 if { (eval echo configure:15648: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15648 rm -rf conftest*
15649
15650 wx_cv_func_vsscanf=yes
15651
15652 else
15653 echo "configure: failed program was:" >&5
15654 cat conftest.$ac_ext >&5
15655 rm -rf conftest*
15656
15657 wx_cv_func_vsscanf=no
15658
15659 fi
15660 rm -f conftest*
15661
15662 fi
15663
15664 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15665
15666 if test "$wx_cv_func_vsscanf" = yes; then
15667 cat >> confdefs.h <<\EOF
15668 #define HAVE_VSSCANF 1
15669 EOF
15670
15671 fi
15672
15673 if test "$TOOLKIT" != "MSW"; then
15674
15675
15676
15677 ac_ext=C
15678 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15679 ac_cpp='$CXXCPP $CPPFLAGS'
15680 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15681 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15682 cross_compiling=$ac_cv_prog_cxx_cross
15683
15684
15685
15686 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
15687 if test "${with_libiconv_prefix+set}" = set; then
15688 withval="$with_libiconv_prefix"
15689
15690 for dir in `echo "$withval" | tr : ' '`; do
15691 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
15692 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
15693 done
15694
15695 fi
15696
15697
15698 echo $ac_n "checking for iconv""... $ac_c" 1>&6
15699 echo "configure:15700: checking for iconv" >&5
15700 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
15701 echo $ac_n "(cached) $ac_c" 1>&6
15702 else
15703
15704 am_cv_func_iconv="no, consider installing GNU libiconv"
15705 am_cv_lib_iconv=no
15706 cat > conftest.$ac_ext <<EOF
15707 #line 15708 "configure"
15708 #include "confdefs.h"
15709 #include <stdlib.h>
15710 #include <iconv.h>
15711 int main() {
15712 iconv_t cd = iconv_open("","");
15713 iconv(cd,NULL,NULL,NULL,NULL);
15714 iconv_close(cd);
15715 ; return 0; }
15716 EOF
15717 if { (eval echo configure:15718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15718 rm -rf conftest*
15719 am_cv_func_iconv=yes
15720 else
15721 echo "configure: failed program was:" >&5
15722 cat conftest.$ac_ext >&5
15723 fi
15724 rm -f conftest*
15725 if test "$am_cv_func_iconv" != yes; then
15726 am_save_LIBS="$LIBS"
15727 LIBS="$LIBS -liconv"
15728 cat > conftest.$ac_ext <<EOF
15729 #line 15730 "configure"
15730 #include "confdefs.h"
15731 #include <stdlib.h>
15732 #include <iconv.h>
15733 int main() {
15734 iconv_t cd = iconv_open("","");
15735 iconv(cd,NULL,NULL,NULL,NULL);
15736 iconv_close(cd);
15737 ; return 0; }
15738 EOF
15739 if { (eval echo configure:15740: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15740 rm -rf conftest*
15741 am_cv_lib_iconv=yes
15742 am_cv_func_iconv=yes
15743 else
15744 echo "configure: failed program was:" >&5
15745 cat conftest.$ac_ext >&5
15746 fi
15747 rm -f conftest*
15748 LIBS="$am_save_LIBS"
15749 fi
15750
15751 fi
15752
15753 echo "$ac_t""$am_cv_func_iconv" 1>&6
15754 if test "$am_cv_func_iconv" = yes; then
15755 cat >> confdefs.h <<\EOF
15756 #define HAVE_ICONV 1
15757 EOF
15758
15759 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
15760 echo "configure:15761: checking if iconv needs const" >&5
15761 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
15762 echo $ac_n "(cached) $ac_c" 1>&6
15763 else
15764 cat > conftest.$ac_ext <<EOF
15765 #line 15766 "configure"
15766 #include "confdefs.h"
15767
15768 #include <stdlib.h>
15769 #include <iconv.h>
15770 extern
15771 #ifdef __cplusplus
15772 "C"
15773 #endif
15774 #if defined(__STDC__) || defined(__cplusplus)
15775 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
15776 #else
15777 size_t iconv();
15778 #endif
15779
15780 int main() {
15781
15782 ; return 0; }
15783 EOF
15784 if { (eval echo configure:15785: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15785 rm -rf conftest*
15786 wx_cv_func_iconv_const="no"
15787 else
15788 echo "configure: failed program was:" >&5
15789 cat conftest.$ac_ext >&5
15790 rm -rf conftest*
15791 wx_cv_func_iconv_const="yes"
15792
15793 fi
15794 rm -f conftest*
15795
15796 fi
15797
15798 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
15799
15800 iconv_const=
15801 if test "x$wx_cv_func_iconv_const" = "xyes"; then
15802 iconv_const="const"
15803 fi
15804
15805 cat >> confdefs.h <<EOF
15806 #define ICONV_CONST $iconv_const
15807 EOF
15808
15809 fi
15810 LIBICONV=
15811 if test "$am_cv_lib_iconv" = yes; then
15812 LIBICONV="-liconv"
15813 fi
15814
15815
15816 LIBS="$LIBICONV $LIBS"
15817 ac_ext=c
15818 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15819 ac_cpp='$CPP $CPPFLAGS'
15820 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15821 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15822 cross_compiling=$ac_cv_prog_cc_cross
15823
15824
15825 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
15826 for ac_func in sigaction
15827 do
15828 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15829 echo "configure:15830: checking for $ac_func" >&5
15830 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15831 echo $ac_n "(cached) $ac_c" 1>&6
15832 else
15833 cat > conftest.$ac_ext <<EOF
15834 #line 15835 "configure"
15835 #include "confdefs.h"
15836 /* System header to define __stub macros and hopefully few prototypes,
15837 which can conflict with char $ac_func(); below. */
15838 #include <assert.h>
15839 /* Override any gcc2 internal prototype to avoid an error. */
15840 /* We use char because int might match the return type of a gcc2
15841 builtin and then its argument prototype would still apply. */
15842 char $ac_func();
15843
15844 int main() {
15845
15846 /* The GNU C library defines this for functions which it implements
15847 to always fail with ENOSYS. Some functions are actually named
15848 something starting with __ and the normal name is an alias. */
15849 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15850 choke me
15851 #else
15852 $ac_func();
15853 #endif
15854
15855 ; return 0; }
15856 EOF
15857 if { (eval echo configure:15858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15858 rm -rf conftest*
15859 eval "ac_cv_func_$ac_func=yes"
15860 else
15861 echo "configure: failed program was:" >&5
15862 cat conftest.$ac_ext >&5
15863 rm -rf conftest*
15864 eval "ac_cv_func_$ac_func=no"
15865 fi
15866 rm -f conftest*
15867 fi
15868
15869 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15870 echo "$ac_t""yes" 1>&6
15871 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15872 cat >> confdefs.h <<EOF
15873 #define $ac_tr_func 1
15874 EOF
15875
15876 else
15877 echo "$ac_t""no" 1>&6
15878 fi
15879 done
15880
15881
15882 if test "$ac_cv_func_sigaction" = "no"; then
15883 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
15884 wxUSE_ON_FATAL_EXCEPTION=no
15885 fi
15886
15887 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15888
15889 ac_ext=C
15890 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15891 ac_cpp='$CXXCPP $CPPFLAGS'
15892 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15893 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15894 cross_compiling=$ac_cv_prog_cxx_cross
15895
15896
15897 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
15898 echo "configure:15899: checking for sa_handler type" >&5
15899 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
15900 echo $ac_n "(cached) $ac_c" 1>&6
15901 else
15902
15903 cat > conftest.$ac_ext <<EOF
15904 #line 15905 "configure"
15905 #include "confdefs.h"
15906 #include <signal.h>
15907 int main() {
15908
15909 extern void testSigHandler(int);
15910
15911 struct sigaction sa;
15912 sa.sa_handler = testSigHandler;
15913
15914 ; return 0; }
15915 EOF
15916 if { (eval echo configure:15917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15917 rm -rf conftest*
15918
15919 wx_cv_type_sa_handler=int
15920
15921 else
15922 echo "configure: failed program was:" >&5
15923 cat conftest.$ac_ext >&5
15924 rm -rf conftest*
15925
15926 wx_cv_type_sa_handler=void
15927
15928 fi
15929 rm -f conftest*
15930
15931 fi
15932
15933 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
15934
15935 ac_ext=c
15936 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15937 ac_cpp='$CPP $CPPFLAGS'
15938 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15939 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15940 cross_compiling=$ac_cv_prog_cc_cross
15941
15942
15943 cat >> confdefs.h <<EOF
15944 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
15945 EOF
15946
15947 fi
15948 fi
15949
15950 for ac_func in vfork
15951 do
15952 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15953 echo "configure:15954: checking for $ac_func" >&5
15954 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15955 echo $ac_n "(cached) $ac_c" 1>&6
15956 else
15957 cat > conftest.$ac_ext <<EOF
15958 #line 15959 "configure"
15959 #include "confdefs.h"
15960 /* System header to define __stub macros and hopefully few prototypes,
15961 which can conflict with char $ac_func(); below. */
15962 #include <assert.h>
15963 /* Override any gcc2 internal prototype to avoid an error. */
15964 /* We use char because int might match the return type of a gcc2
15965 builtin and then its argument prototype would still apply. */
15966 char $ac_func();
15967
15968 int main() {
15969
15970 /* The GNU C library defines this for functions which it implements
15971 to always fail with ENOSYS. Some functions are actually named
15972 something starting with __ and the normal name is an alias. */
15973 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15974 choke me
15975 #else
15976 $ac_func();
15977 #endif
15978
15979 ; return 0; }
15980 EOF
15981 if { (eval echo configure:15982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15982 rm -rf conftest*
15983 eval "ac_cv_func_$ac_func=yes"
15984 else
15985 echo "configure: failed program was:" >&5
15986 cat conftest.$ac_ext >&5
15987 rm -rf conftest*
15988 eval "ac_cv_func_$ac_func=no"
15989 fi
15990 rm -f conftest*
15991 fi
15992
15993 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15994 echo "$ac_t""yes" 1>&6
15995 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15996 cat >> confdefs.h <<EOF
15997 #define $ac_tr_func 1
15998 EOF
15999
16000 else
16001 echo "$ac_t""no" 1>&6
16002 fi
16003 done
16004
16005
16006 for ac_func in mkstemp mktemp
16007 do
16008 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16009 echo "configure:16010: checking for $ac_func" >&5
16010 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16011 echo $ac_n "(cached) $ac_c" 1>&6
16012 else
16013 cat > conftest.$ac_ext <<EOF
16014 #line 16015 "configure"
16015 #include "confdefs.h"
16016 /* System header to define __stub macros and hopefully few prototypes,
16017 which can conflict with char $ac_func(); below. */
16018 #include <assert.h>
16019 /* Override any gcc2 internal prototype to avoid an error. */
16020 /* We use char because int might match the return type of a gcc2
16021 builtin and then its argument prototype would still apply. */
16022 char $ac_func();
16023
16024 int main() {
16025
16026 /* The GNU C library defines this for functions which it implements
16027 to always fail with ENOSYS. Some functions are actually named
16028 something starting with __ and the normal name is an alias. */
16029 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16030 choke me
16031 #else
16032 $ac_func();
16033 #endif
16034
16035 ; return 0; }
16036 EOF
16037 if { (eval echo configure:16038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16038 rm -rf conftest*
16039 eval "ac_cv_func_$ac_func=yes"
16040 else
16041 echo "configure: failed program was:" >&5
16042 cat conftest.$ac_ext >&5
16043 rm -rf conftest*
16044 eval "ac_cv_func_$ac_func=no"
16045 fi
16046 rm -f conftest*
16047 fi
16048
16049 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16050 echo "$ac_t""yes" 1>&6
16051 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16052 cat >> confdefs.h <<EOF
16053 #define $ac_tr_func 1
16054 EOF
16055 break
16056 else
16057 echo "$ac_t""no" 1>&6
16058 fi
16059 done
16060
16061
16062 echo $ac_n "checking for statfs""... $ac_c" 1>&6
16063 echo "configure:16064: checking for statfs" >&5
16064 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16065 echo $ac_n "(cached) $ac_c" 1>&6
16066 else
16067 cat > conftest.$ac_ext <<EOF
16068 #line 16069 "configure"
16069 #include "confdefs.h"
16070
16071 #if defined(__BSD__)
16072 #include <sys/param.h>
16073 #include <sys/mount.h>
16074 #else
16075 #include <sys/vfs.h>
16076 #endif
16077
16078 int main() {
16079
16080 long l;
16081 struct statfs fs;
16082 statfs("/", &fs);
16083 l = fs.f_bsize;
16084 l += fs.f_blocks;
16085 l += fs.f_bavail;
16086
16087 ; return 0; }
16088 EOF
16089 if { (eval echo configure:16090: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16090 rm -rf conftest*
16091
16092 wx_cv_func_statfs=yes
16093
16094 else
16095 echo "configure: failed program was:" >&5
16096 cat conftest.$ac_ext >&5
16097 rm -rf conftest*
16098
16099 wx_cv_func_statfs=no
16100
16101
16102 fi
16103 rm -f conftest*
16104
16105 fi
16106
16107 echo "$ac_t""$wx_cv_func_statfs" 1>&6
16108
16109 if test "$wx_cv_func_statfs" = "yes"; then
16110 cat >> confdefs.h <<\EOF
16111 #define HAVE_STATFS 1
16112 EOF
16113
16114 else
16115 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16116 echo "configure:16117: checking for statvfs" >&5
16117 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16118 echo $ac_n "(cached) $ac_c" 1>&6
16119 else
16120 cat > conftest.$ac_ext <<EOF
16121 #line 16122 "configure"
16122 #include "confdefs.h"
16123
16124 #include <sys/statvfs.h>
16125
16126 int main() {
16127
16128 long l;
16129 struct statvfs fs;
16130 statvfs("/", &fs);
16131 l = fs.f_bsize;
16132 l += fs.f_blocks;
16133 l += fs.f_bavail;
16134
16135 ; return 0; }
16136 EOF
16137 if { (eval echo configure:16138: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16138 rm -rf conftest*
16139
16140 wx_cv_func_statvfs=yes
16141
16142 else
16143 echo "configure: failed program was:" >&5
16144 cat conftest.$ac_ext >&5
16145 rm -rf conftest*
16146
16147 wx_cv_func_statvfs=no
16148
16149
16150 fi
16151 rm -f conftest*
16152
16153 fi
16154
16155 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16156
16157 if test "$wx_cv_func_statvfs" = "yes"; then
16158 cat >> confdefs.h <<\EOF
16159 #define HAVE_STATVFS 1
16160 EOF
16161
16162 else
16163 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16164 fi
16165 fi
16166
16167 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16168 for ac_func in fcntl flock
16169 do
16170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16171 echo "configure:16172: checking for $ac_func" >&5
16172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16173 echo $ac_n "(cached) $ac_c" 1>&6
16174 else
16175 cat > conftest.$ac_ext <<EOF
16176 #line 16177 "configure"
16177 #include "confdefs.h"
16178 /* System header to define __stub macros and hopefully few prototypes,
16179 which can conflict with char $ac_func(); below. */
16180 #include <assert.h>
16181 /* Override any gcc2 internal prototype to avoid an error. */
16182 /* We use char because int might match the return type of a gcc2
16183 builtin and then its argument prototype would still apply. */
16184 char $ac_func();
16185
16186 int main() {
16187
16188 /* The GNU C library defines this for functions which it implements
16189 to always fail with ENOSYS. Some functions are actually named
16190 something starting with __ and the normal name is an alias. */
16191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16192 choke me
16193 #else
16194 $ac_func();
16195 #endif
16196
16197 ; return 0; }
16198 EOF
16199 if { (eval echo configure:16200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16200 rm -rf conftest*
16201 eval "ac_cv_func_$ac_func=yes"
16202 else
16203 echo "configure: failed program was:" >&5
16204 cat conftest.$ac_ext >&5
16205 rm -rf conftest*
16206 eval "ac_cv_func_$ac_func=no"
16207 fi
16208 rm -f conftest*
16209 fi
16210
16211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16212 echo "$ac_t""yes" 1>&6
16213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16214 cat >> confdefs.h <<EOF
16215 #define $ac_tr_func 1
16216 EOF
16217 break
16218 else
16219 echo "$ac_t""no" 1>&6
16220 fi
16221 done
16222
16223
16224 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16225 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16226 wxUSE_SNGLINST_CHECKER=no
16227 fi
16228 fi
16229
16230 for ac_func in timegm
16231 do
16232 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16233 echo "configure:16234: checking for $ac_func" >&5
16234 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16235 echo $ac_n "(cached) $ac_c" 1>&6
16236 else
16237 cat > conftest.$ac_ext <<EOF
16238 #line 16239 "configure"
16239 #include "confdefs.h"
16240 /* System header to define __stub macros and hopefully few prototypes,
16241 which can conflict with char $ac_func(); below. */
16242 #include <assert.h>
16243 /* Override any gcc2 internal prototype to avoid an error. */
16244 /* We use char because int might match the return type of a gcc2
16245 builtin and then its argument prototype would still apply. */
16246 char $ac_func();
16247
16248 int main() {
16249
16250 /* The GNU C library defines this for functions which it implements
16251 to always fail with ENOSYS. Some functions are actually named
16252 something starting with __ and the normal name is an alias. */
16253 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16254 choke me
16255 #else
16256 $ac_func();
16257 #endif
16258
16259 ; return 0; }
16260 EOF
16261 if { (eval echo configure:16262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16262 rm -rf conftest*
16263 eval "ac_cv_func_$ac_func=yes"
16264 else
16265 echo "configure: failed program was:" >&5
16266 cat conftest.$ac_ext >&5
16267 rm -rf conftest*
16268 eval "ac_cv_func_$ac_func=no"
16269 fi
16270 rm -f conftest*
16271 fi
16272
16273 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16274 echo "$ac_t""yes" 1>&6
16275 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16276 cat >> confdefs.h <<EOF
16277 #define $ac_tr_func 1
16278 EOF
16279
16280 else
16281 echo "$ac_t""no" 1>&6
16282 fi
16283 done
16284
16285
16286 for ac_func in putenv setenv
16287 do
16288 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16289 echo "configure:16290: checking for $ac_func" >&5
16290 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16291 echo $ac_n "(cached) $ac_c" 1>&6
16292 else
16293 cat > conftest.$ac_ext <<EOF
16294 #line 16295 "configure"
16295 #include "confdefs.h"
16296 /* System header to define __stub macros and hopefully few prototypes,
16297 which can conflict with char $ac_func(); below. */
16298 #include <assert.h>
16299 /* Override any gcc2 internal prototype to avoid an error. */
16300 /* We use char because int might match the return type of a gcc2
16301 builtin and then its argument prototype would still apply. */
16302 char $ac_func();
16303
16304 int main() {
16305
16306 /* The GNU C library defines this for functions which it implements
16307 to always fail with ENOSYS. Some functions are actually named
16308 something starting with __ and the normal name is an alias. */
16309 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16310 choke me
16311 #else
16312 $ac_func();
16313 #endif
16314
16315 ; return 0; }
16316 EOF
16317 if { (eval echo configure:16318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16318 rm -rf conftest*
16319 eval "ac_cv_func_$ac_func=yes"
16320 else
16321 echo "configure: failed program was:" >&5
16322 cat conftest.$ac_ext >&5
16323 rm -rf conftest*
16324 eval "ac_cv_func_$ac_func=no"
16325 fi
16326 rm -f conftest*
16327 fi
16328
16329 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16330 echo "$ac_t""yes" 1>&6
16331 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16332 cat >> confdefs.h <<EOF
16333 #define $ac_tr_func 1
16334 EOF
16335 break
16336 else
16337 echo "$ac_t""no" 1>&6
16338 fi
16339 done
16340
16341
16342 HAVE_SOME_SLEEP_FUNC=0
16343 if test "$USE_BEOS" = 1; then
16344 cat >> confdefs.h <<\EOF
16345 #define HAVE_SLEEP 1
16346 EOF
16347
16348 HAVE_SOME_SLEEP_FUNC=1
16349 fi
16350
16351 if test "$USE_DARWIN" = 1; then
16352 cat >> confdefs.h <<\EOF
16353 #define HAVE_USLEEP 1
16354 EOF
16355
16356 HAVE_SOME_SLEEP_FUNC=1
16357 fi
16358
16359 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16360 POSIX4_LINK=
16361 for ac_func in nanosleep
16362 do
16363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16364 echo "configure:16365: checking for $ac_func" >&5
16365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16366 echo $ac_n "(cached) $ac_c" 1>&6
16367 else
16368 cat > conftest.$ac_ext <<EOF
16369 #line 16370 "configure"
16370 #include "confdefs.h"
16371 /* System header to define __stub macros and hopefully few prototypes,
16372 which can conflict with char $ac_func(); below. */
16373 #include <assert.h>
16374 /* Override any gcc2 internal prototype to avoid an error. */
16375 /* We use char because int might match the return type of a gcc2
16376 builtin and then its argument prototype would still apply. */
16377 char $ac_func();
16378
16379 int main() {
16380
16381 /* The GNU C library defines this for functions which it implements
16382 to always fail with ENOSYS. Some functions are actually named
16383 something starting with __ and the normal name is an alias. */
16384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16385 choke me
16386 #else
16387 $ac_func();
16388 #endif
16389
16390 ; return 0; }
16391 EOF
16392 if { (eval echo configure:16393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16393 rm -rf conftest*
16394 eval "ac_cv_func_$ac_func=yes"
16395 else
16396 echo "configure: failed program was:" >&5
16397 cat conftest.$ac_ext >&5
16398 rm -rf conftest*
16399 eval "ac_cv_func_$ac_func=no"
16400 fi
16401 rm -f conftest*
16402 fi
16403
16404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16405 echo "$ac_t""yes" 1>&6
16406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16407 cat >> confdefs.h <<EOF
16408 #define $ac_tr_func 1
16409 EOF
16410 cat >> confdefs.h <<\EOF
16411 #define HAVE_NANOSLEEP 1
16412 EOF
16413
16414 else
16415 echo "$ac_t""no" 1>&6
16416 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
16417 echo "configure:16418: checking for nanosleep in -lposix4" >&5
16418 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
16419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16420 echo $ac_n "(cached) $ac_c" 1>&6
16421 else
16422 ac_save_LIBS="$LIBS"
16423 LIBS="-lposix4 $LIBS"
16424 cat > conftest.$ac_ext <<EOF
16425 #line 16426 "configure"
16426 #include "confdefs.h"
16427 /* Override any gcc2 internal prototype to avoid an error. */
16428 /* We use char because int might match the return type of a gcc2
16429 builtin and then its argument prototype would still apply. */
16430 char nanosleep();
16431
16432 int main() {
16433 nanosleep()
16434 ; return 0; }
16435 EOF
16436 if { (eval echo configure:16437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16437 rm -rf conftest*
16438 eval "ac_cv_lib_$ac_lib_var=yes"
16439 else
16440 echo "configure: failed program was:" >&5
16441 cat conftest.$ac_ext >&5
16442 rm -rf conftest*
16443 eval "ac_cv_lib_$ac_lib_var=no"
16444 fi
16445 rm -f conftest*
16446 LIBS="$ac_save_LIBS"
16447
16448 fi
16449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16450 echo "$ac_t""yes" 1>&6
16451
16452 cat >> confdefs.h <<\EOF
16453 #define HAVE_NANOSLEEP 1
16454 EOF
16455
16456 POSIX4_LINK=" -lposix4"
16457
16458 else
16459 echo "$ac_t""no" 1>&6
16460
16461 for ac_func in usleep
16462 do
16463 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16464 echo "configure:16465: checking for $ac_func" >&5
16465 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16466 echo $ac_n "(cached) $ac_c" 1>&6
16467 else
16468 cat > conftest.$ac_ext <<EOF
16469 #line 16470 "configure"
16470 #include "confdefs.h"
16471 /* System header to define __stub macros and hopefully few prototypes,
16472 which can conflict with char $ac_func(); below. */
16473 #include <assert.h>
16474 /* Override any gcc2 internal prototype to avoid an error. */
16475 /* We use char because int might match the return type of a gcc2
16476 builtin and then its argument prototype would still apply. */
16477 char $ac_func();
16478
16479 int main() {
16480
16481 /* The GNU C library defines this for functions which it implements
16482 to always fail with ENOSYS. Some functions are actually named
16483 something starting with __ and the normal name is an alias. */
16484 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16485 choke me
16486 #else
16487 $ac_func();
16488 #endif
16489
16490 ; return 0; }
16491 EOF
16492 if { (eval echo configure:16493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16493 rm -rf conftest*
16494 eval "ac_cv_func_$ac_func=yes"
16495 else
16496 echo "configure: failed program was:" >&5
16497 cat conftest.$ac_ext >&5
16498 rm -rf conftest*
16499 eval "ac_cv_func_$ac_func=no"
16500 fi
16501 rm -f conftest*
16502 fi
16503
16504 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16505 echo "$ac_t""yes" 1>&6
16506 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16507 cat >> confdefs.h <<EOF
16508 #define $ac_tr_func 1
16509 EOF
16510 cat >> confdefs.h <<\EOF
16511 #define HAVE_USLEEP 1
16512 EOF
16513
16514 else
16515 echo "$ac_t""no" 1>&6
16516 echo "configure: warning: wxSleep() function will not work" 1>&2
16517
16518 fi
16519 done
16520
16521
16522
16523 fi
16524
16525
16526
16527 fi
16528 done
16529
16530 fi
16531
16532 for ac_func in uname gethostname
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 break
16582 else
16583 echo "$ac_t""no" 1>&6
16584 fi
16585 done
16586
16587
16588
16589 ac_ext=C
16590 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16591 ac_cpp='$CXXCPP $CPPFLAGS'
16592 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16593 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16594 cross_compiling=$ac_cv_prog_cxx_cross
16595
16596
16597 for ac_func in strtok_r
16598 do
16599 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16600 echo "configure:16601: checking for $ac_func" >&5
16601 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16602 echo $ac_n "(cached) $ac_c" 1>&6
16603 else
16604 cat > conftest.$ac_ext <<EOF
16605 #line 16606 "configure"
16606 #include "confdefs.h"
16607 /* System header to define __stub macros and hopefully few prototypes,
16608 which can conflict with char $ac_func(); below. */
16609 #include <assert.h>
16610 /* Override any gcc2 internal prototype to avoid an error. */
16611 #ifdef __cplusplus
16612 extern "C"
16613 #endif
16614 /* We use char because int might match the return type of a gcc2
16615 builtin and then its argument prototype would still apply. */
16616 char $ac_func();
16617
16618 int main() {
16619
16620 /* The GNU C library defines this for functions which it implements
16621 to always fail with ENOSYS. Some functions are actually named
16622 something starting with __ and the normal name is an alias. */
16623 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16624 choke me
16625 #else
16626 $ac_func();
16627 #endif
16628
16629 ; return 0; }
16630 EOF
16631 if { (eval echo configure:16632: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16632 rm -rf conftest*
16633 eval "ac_cv_func_$ac_func=yes"
16634 else
16635 echo "configure: failed program was:" >&5
16636 cat conftest.$ac_ext >&5
16637 rm -rf conftest*
16638 eval "ac_cv_func_$ac_func=no"
16639 fi
16640 rm -f conftest*
16641 fi
16642
16643 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16644 echo "$ac_t""yes" 1>&6
16645 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16646 cat >> confdefs.h <<EOF
16647 #define $ac_tr_func 1
16648 EOF
16649
16650 else
16651 echo "$ac_t""no" 1>&6
16652 fi
16653 done
16654
16655
16656 ac_ext=c
16657 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16658 ac_cpp='$CPP $CPPFLAGS'
16659 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16660 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16661 cross_compiling=$ac_cv_prog_cc_cross
16662
16663
16664 INET_LINK=
16665 for ac_func in inet_addr
16666 do
16667 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16668 echo "configure:16669: checking for $ac_func" >&5
16669 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16670 echo $ac_n "(cached) $ac_c" 1>&6
16671 else
16672 cat > conftest.$ac_ext <<EOF
16673 #line 16674 "configure"
16674 #include "confdefs.h"
16675 /* System header to define __stub macros and hopefully few prototypes,
16676 which can conflict with char $ac_func(); below. */
16677 #include <assert.h>
16678 /* Override any gcc2 internal prototype to avoid an error. */
16679 /* We use char because int might match the return type of a gcc2
16680 builtin and then its argument prototype would still apply. */
16681 char $ac_func();
16682
16683 int main() {
16684
16685 /* The GNU C library defines this for functions which it implements
16686 to always fail with ENOSYS. Some functions are actually named
16687 something starting with __ and the normal name is an alias. */
16688 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16689 choke me
16690 #else
16691 $ac_func();
16692 #endif
16693
16694 ; return 0; }
16695 EOF
16696 if { (eval echo configure:16697: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16697 rm -rf conftest*
16698 eval "ac_cv_func_$ac_func=yes"
16699 else
16700 echo "configure: failed program was:" >&5
16701 cat conftest.$ac_ext >&5
16702 rm -rf conftest*
16703 eval "ac_cv_func_$ac_func=no"
16704 fi
16705 rm -f conftest*
16706 fi
16707
16708 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16709 echo "$ac_t""yes" 1>&6
16710 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16711 cat >> confdefs.h <<EOF
16712 #define $ac_tr_func 1
16713 EOF
16714 cat >> confdefs.h <<\EOF
16715 #define HAVE_INET_ADDR 1
16716 EOF
16717
16718 else
16719 echo "$ac_t""no" 1>&6
16720 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
16721 echo "configure:16722: checking for inet_addr in -lnsl" >&5
16722 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
16723 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16724 echo $ac_n "(cached) $ac_c" 1>&6
16725 else
16726 ac_save_LIBS="$LIBS"
16727 LIBS="-lnsl $LIBS"
16728 cat > conftest.$ac_ext <<EOF
16729 #line 16730 "configure"
16730 #include "confdefs.h"
16731 /* Override any gcc2 internal prototype to avoid an error. */
16732 /* We use char because int might match the return type of a gcc2
16733 builtin and then its argument prototype would still apply. */
16734 char inet_addr();
16735
16736 int main() {
16737 inet_addr()
16738 ; return 0; }
16739 EOF
16740 if { (eval echo configure:16741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16741 rm -rf conftest*
16742 eval "ac_cv_lib_$ac_lib_var=yes"
16743 else
16744 echo "configure: failed program was:" >&5
16745 cat conftest.$ac_ext >&5
16746 rm -rf conftest*
16747 eval "ac_cv_lib_$ac_lib_var=no"
16748 fi
16749 rm -f conftest*
16750 LIBS="$ac_save_LIBS"
16751
16752 fi
16753 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16754 echo "$ac_t""yes" 1>&6
16755 INET_LINK="nsl"
16756 else
16757 echo "$ac_t""no" 1>&6
16758 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
16759 echo "configure:16760: checking for inet_addr in -lresolv" >&5
16760 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
16761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16762 echo $ac_n "(cached) $ac_c" 1>&6
16763 else
16764 ac_save_LIBS="$LIBS"
16765 LIBS="-lresolv $LIBS"
16766 cat > conftest.$ac_ext <<EOF
16767 #line 16768 "configure"
16768 #include "confdefs.h"
16769 /* Override any gcc2 internal prototype to avoid an error. */
16770 /* We use char because int might match the return type of a gcc2
16771 builtin and then its argument prototype would still apply. */
16772 char inet_addr();
16773
16774 int main() {
16775 inet_addr()
16776 ; return 0; }
16777 EOF
16778 if { (eval echo configure:16779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16779 rm -rf conftest*
16780 eval "ac_cv_lib_$ac_lib_var=yes"
16781 else
16782 echo "configure: failed program was:" >&5
16783 cat conftest.$ac_ext >&5
16784 rm -rf conftest*
16785 eval "ac_cv_lib_$ac_lib_var=no"
16786 fi
16787 rm -f conftest*
16788 LIBS="$ac_save_LIBS"
16789
16790 fi
16791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16792 echo "$ac_t""yes" 1>&6
16793 INET_LINK="resolv"
16794
16795 else
16796 echo "$ac_t""no" 1>&6
16797 fi
16798
16799
16800 fi
16801
16802
16803
16804 fi
16805 done
16806
16807
16808 for ac_func in inet_aton
16809 do
16810 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16811 echo "configure:16812: checking for $ac_func" >&5
16812 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16813 echo $ac_n "(cached) $ac_c" 1>&6
16814 else
16815 cat > conftest.$ac_ext <<EOF
16816 #line 16817 "configure"
16817 #include "confdefs.h"
16818 /* System header to define __stub macros and hopefully few prototypes,
16819 which can conflict with char $ac_func(); below. */
16820 #include <assert.h>
16821 /* Override any gcc2 internal prototype to avoid an error. */
16822 /* We use char because int might match the return type of a gcc2
16823 builtin and then its argument prototype would still apply. */
16824 char $ac_func();
16825
16826 int main() {
16827
16828 /* The GNU C library defines this for functions which it implements
16829 to always fail with ENOSYS. Some functions are actually named
16830 something starting with __ and the normal name is an alias. */
16831 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16832 choke me
16833 #else
16834 $ac_func();
16835 #endif
16836
16837 ; return 0; }
16838 EOF
16839 if { (eval echo configure:16840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16840 rm -rf conftest*
16841 eval "ac_cv_func_$ac_func=yes"
16842 else
16843 echo "configure: failed program was:" >&5
16844 cat conftest.$ac_ext >&5
16845 rm -rf conftest*
16846 eval "ac_cv_func_$ac_func=no"
16847 fi
16848 rm -f conftest*
16849 fi
16850
16851 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16852 echo "$ac_t""yes" 1>&6
16853 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16854 cat >> confdefs.h <<EOF
16855 #define $ac_tr_func 1
16856 EOF
16857 cat >> confdefs.h <<\EOF
16858 #define HAVE_INET_ATON 1
16859 EOF
16860
16861 else
16862 echo "$ac_t""no" 1>&6
16863 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
16864 echo "configure:16865: checking for inet_aton in -l$INET_LINK" >&5
16865 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
16866 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16867 echo $ac_n "(cached) $ac_c" 1>&6
16868 else
16869 ac_save_LIBS="$LIBS"
16870 LIBS="-l$INET_LINK $LIBS"
16871 cat > conftest.$ac_ext <<EOF
16872 #line 16873 "configure"
16873 #include "confdefs.h"
16874 /* Override any gcc2 internal prototype to avoid an error. */
16875 /* We use char because int might match the return type of a gcc2
16876 builtin and then its argument prototype would still apply. */
16877 char inet_aton();
16878
16879 int main() {
16880 inet_aton()
16881 ; return 0; }
16882 EOF
16883 if { (eval echo configure:16884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16884 rm -rf conftest*
16885 eval "ac_cv_lib_$ac_lib_var=yes"
16886 else
16887 echo "configure: failed program was:" >&5
16888 cat conftest.$ac_ext >&5
16889 rm -rf conftest*
16890 eval "ac_cv_lib_$ac_lib_var=no"
16891 fi
16892 rm -f conftest*
16893 LIBS="$ac_save_LIBS"
16894
16895 fi
16896 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16897 echo "$ac_t""yes" 1>&6
16898 cat >> confdefs.h <<\EOF
16899 #define HAVE_INET_ATON 1
16900 EOF
16901
16902 else
16903 echo "$ac_t""no" 1>&6
16904 fi
16905
16906
16907 fi
16908 done
16909
16910
16911 if test "x$INET_LINK" != "x"; then
16912 cat >> confdefs.h <<\EOF
16913 #define HAVE_INET_ADDR 1
16914 EOF
16915
16916 INET_LINK=" -l$INET_LINK"
16917 fi
16918
16919 fi
16920
16921
16922 cat > confcache <<\EOF
16923 # This file is a shell script that caches the results of configure
16924 # tests run on this system so they can be shared between configure
16925 # scripts and configure runs. It is not useful on other systems.
16926 # If it contains results you don't want to keep, you may remove or edit it.
16927 #
16928 # By default, configure uses ./config.cache as the cache file,
16929 # creating it if it does not exist already. You can give configure
16930 # the --cache-file=FILE option to use a different cache file; that is
16931 # what configure does when it calls configure scripts in
16932 # subdirectories, so they share the cache.
16933 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16934 # config.status only pays attention to the cache file if you give it the
16935 # --recheck option to rerun configure.
16936 #
16937 EOF
16938 # The following way of writing the cache mishandles newlines in values,
16939 # but we know of no workaround that is simple, portable, and efficient.
16940 # So, don't put newlines in cache variables' values.
16941 # Ultrix sh set writes to stderr and can't be redirected directly,
16942 # and sets the high bit in the cache file unless we assign to the vars.
16943 (set) 2>&1 |
16944 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16945 *ac_space=\ *)
16946 # `set' does not quote correctly, so add quotes (double-quote substitution
16947 # turns \\\\ into \\, and sed turns \\ into \).
16948 sed -n \
16949 -e "s/'/'\\\\''/g" \
16950 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16951 ;;
16952 *)
16953 # `set' quotes correctly as required by POSIX, so do not add quotes.
16954 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16955 ;;
16956 esac >> confcache
16957 if cmp -s $cache_file confcache; then
16958 :
16959 else
16960 if test -w $cache_file; then
16961 echo "updating cache $cache_file"
16962 cat confcache > $cache_file
16963 else
16964 echo "not updating unwritable cache $cache_file"
16965 fi
16966 fi
16967 rm -f confcache
16968
16969
16970
16971 if test "$TOOLKIT" != "MSW"; then
16972
16973
16974 THREADS_LINK=
16975 THREADS_OBJ=
16976 CODE_GEN_FLAGS=
16977 CODE_GEN_FLAGS_CXX=
16978
16979 if test "$wxUSE_THREADS" = "yes" ; then
16980 if test "$wxUSE_WINE" = 1 ; then
16981 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
16982 wxUSE_THREADS="no"
16983 elif test "$USE_BEOS" = 1; then
16984 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
16985 wxUSE_THREADS="no"
16986 fi
16987 fi
16988
16989 if test "$wxUSE_THREADS" = "yes" ; then
16990
16991 if test "$USE_AIX" = 1; then
16992 THREADS_LIB=pthreads
16993 else
16994 THREADS_LIB=pthread
16995 fi
16996
16997 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
16998 echo "configure:16999: checking for pthread_create in -l$THREADS_LIB" >&5
16999 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
17000 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17001 echo $ac_n "(cached) $ac_c" 1>&6
17002 else
17003 ac_save_LIBS="$LIBS"
17004 LIBS="-l$THREADS_LIB $LIBS"
17005 cat > conftest.$ac_ext <<EOF
17006 #line 17007 "configure"
17007 #include "confdefs.h"
17008 /* Override any gcc2 internal prototype to avoid an error. */
17009 /* We use char because int might match the return type of a gcc2
17010 builtin and then its argument prototype would still apply. */
17011 char pthread_create();
17012
17013 int main() {
17014 pthread_create()
17015 ; return 0; }
17016 EOF
17017 if { (eval echo configure:17018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17018 rm -rf conftest*
17019 eval "ac_cv_lib_$ac_lib_var=yes"
17020 else
17021 echo "configure: failed program was:" >&5
17022 cat conftest.$ac_ext >&5
17023 rm -rf conftest*
17024 eval "ac_cv_lib_$ac_lib_var=no"
17025 fi
17026 rm -f conftest*
17027 LIBS="$ac_save_LIBS"
17028
17029 fi
17030 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17031 echo "$ac_t""yes" 1>&6
17032
17033 THREADS_OBJ="threadpsx.lo"
17034 THREADS_LINK=$THREADS_LIB
17035
17036 else
17037 echo "$ac_t""no" 1>&6
17038
17039 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
17040 echo "configure:17041: checking for pthread_create in -lc_r" >&5
17041 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
17042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17043 echo $ac_n "(cached) $ac_c" 1>&6
17044 else
17045 ac_save_LIBS="$LIBS"
17046 LIBS="-lc_r $LIBS"
17047 cat > conftest.$ac_ext <<EOF
17048 #line 17049 "configure"
17049 #include "confdefs.h"
17050 /* Override any gcc2 internal prototype to avoid an error. */
17051 /* We use char because int might match the return type of a gcc2
17052 builtin and then its argument prototype would still apply. */
17053 char pthread_create();
17054
17055 int main() {
17056 pthread_create()
17057 ; return 0; }
17058 EOF
17059 if { (eval echo configure:17060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17060 rm -rf conftest*
17061 eval "ac_cv_lib_$ac_lib_var=yes"
17062 else
17063 echo "configure: failed program was:" >&5
17064 cat conftest.$ac_ext >&5
17065 rm -rf conftest*
17066 eval "ac_cv_lib_$ac_lib_var=no"
17067 fi
17068 rm -f conftest*
17069 LIBS="$ac_save_LIBS"
17070
17071 fi
17072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17073 echo "$ac_t""yes" 1>&6
17074
17075 THREADS_OBJ="threadpsx.lo"
17076 THREADS_LINK="c_r"
17077
17078 else
17079 echo "$ac_t""no" 1>&6
17080
17081 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
17082 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
17083 echo "configure:17084: checking for sys/prctl.h" >&5
17084 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17085 echo $ac_n "(cached) $ac_c" 1>&6
17086 else
17087 cat > conftest.$ac_ext <<EOF
17088 #line 17089 "configure"
17089 #include "confdefs.h"
17090 #include <sys/prctl.h>
17091 EOF
17092 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17093 { (eval echo configure:17094: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17094 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17095 if test -z "$ac_err"; then
17096 rm -rf conftest*
17097 eval "ac_cv_header_$ac_safe=yes"
17098 else
17099 echo "$ac_err" >&5
17100 echo "configure: failed program was:" >&5
17101 cat conftest.$ac_ext >&5
17102 rm -rf conftest*
17103 eval "ac_cv_header_$ac_safe=no"
17104 fi
17105 rm -f conftest*
17106 fi
17107 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17108 echo "$ac_t""yes" 1>&6
17109
17110 THREADS_OBJ="threadsgi.lo"
17111
17112 else
17113 echo "$ac_t""no" 1>&6
17114 fi
17115
17116
17117 fi
17118
17119
17120 fi
17121
17122
17123 if test -z "$THREADS_OBJ" ; then
17124 wxUSE_THREADS=no
17125 echo "configure: warning: No thread support on this system... disabled" 1>&2
17126 fi
17127 fi
17128
17129 if test "$wxUSE_THREADS" = "yes" ; then
17130 for ac_func in thr_setconcurrency
17131 do
17132 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17133 echo "configure:17134: checking for $ac_func" >&5
17134 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17135 echo $ac_n "(cached) $ac_c" 1>&6
17136 else
17137 cat > conftest.$ac_ext <<EOF
17138 #line 17139 "configure"
17139 #include "confdefs.h"
17140 /* System header to define __stub macros and hopefully few prototypes,
17141 which can conflict with char $ac_func(); below. */
17142 #include <assert.h>
17143 /* Override any gcc2 internal prototype to avoid an error. */
17144 /* We use char because int might match the return type of a gcc2
17145 builtin and then its argument prototype would still apply. */
17146 char $ac_func();
17147
17148 int main() {
17149
17150 /* The GNU C library defines this for functions which it implements
17151 to always fail with ENOSYS. Some functions are actually named
17152 something starting with __ and the normal name is an alias. */
17153 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17154 choke me
17155 #else
17156 $ac_func();
17157 #endif
17158
17159 ; return 0; }
17160 EOF
17161 if { (eval echo configure:17162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17162 rm -rf conftest*
17163 eval "ac_cv_func_$ac_func=yes"
17164 else
17165 echo "configure: failed program was:" >&5
17166 cat conftest.$ac_ext >&5
17167 rm -rf conftest*
17168 eval "ac_cv_func_$ac_func=no"
17169 fi
17170 rm -f conftest*
17171 fi
17172
17173 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17174 echo "$ac_t""yes" 1>&6
17175 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17176 cat >> confdefs.h <<EOF
17177 #define $ac_tr_func 1
17178 EOF
17179
17180 else
17181 echo "$ac_t""no" 1>&6
17182 fi
17183 done
17184
17185
17186
17187 for ac_hdr in sched.h
17188 do
17189 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17190 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17191 echo "configure:17192: checking for $ac_hdr" >&5
17192 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17193 echo $ac_n "(cached) $ac_c" 1>&6
17194 else
17195 cat > conftest.$ac_ext <<EOF
17196 #line 17197 "configure"
17197 #include "confdefs.h"
17198 #include <$ac_hdr>
17199 EOF
17200 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17201 { (eval echo configure:17202: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17202 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17203 if test -z "$ac_err"; then
17204 rm -rf conftest*
17205 eval "ac_cv_header_$ac_safe=yes"
17206 else
17207 echo "$ac_err" >&5
17208 echo "configure: failed program was:" >&5
17209 cat conftest.$ac_ext >&5
17210 rm -rf conftest*
17211 eval "ac_cv_header_$ac_safe=no"
17212 fi
17213 rm -f conftest*
17214 fi
17215 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17216 echo "$ac_t""yes" 1>&6
17217 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17218 cat >> confdefs.h <<EOF
17219 #define $ac_tr_hdr 1
17220 EOF
17221
17222 else
17223 echo "$ac_t""no" 1>&6
17224 fi
17225 done
17226
17227
17228 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
17229 echo "configure:17230: checking for sched_yield in -l$THREADS_LINK" >&5
17230 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
17231 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17232 echo $ac_n "(cached) $ac_c" 1>&6
17233 else
17234 ac_save_LIBS="$LIBS"
17235 LIBS="-l$THREADS_LINK $LIBS"
17236 cat > conftest.$ac_ext <<EOF
17237 #line 17238 "configure"
17238 #include "confdefs.h"
17239 /* Override any gcc2 internal prototype to avoid an error. */
17240 /* We use char because int might match the return type of a gcc2
17241 builtin and then its argument prototype would still apply. */
17242 char sched_yield();
17243
17244 int main() {
17245 sched_yield()
17246 ; return 0; }
17247 EOF
17248 if { (eval echo configure:17249: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17249 rm -rf conftest*
17250 eval "ac_cv_lib_$ac_lib_var=yes"
17251 else
17252 echo "configure: failed program was:" >&5
17253 cat conftest.$ac_ext >&5
17254 rm -rf conftest*
17255 eval "ac_cv_lib_$ac_lib_var=no"
17256 fi
17257 rm -f conftest*
17258 LIBS="$ac_save_LIBS"
17259
17260 fi
17261 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17262 echo "$ac_t""yes" 1>&6
17263 cat >> confdefs.h <<\EOF
17264 #define HAVE_SCHED_YIELD 1
17265 EOF
17266
17267 else
17268 echo "$ac_t""no" 1>&6
17269 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17270 echo "configure:17271: checking for sched_yield in -lposix4" >&5
17271 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17273 echo $ac_n "(cached) $ac_c" 1>&6
17274 else
17275 ac_save_LIBS="$LIBS"
17276 LIBS="-lposix4 $LIBS"
17277 cat > conftest.$ac_ext <<EOF
17278 #line 17279 "configure"
17279 #include "confdefs.h"
17280 /* Override any gcc2 internal prototype to avoid an error. */
17281 /* We use char because int might match the return type of a gcc2
17282 builtin and then its argument prototype would still apply. */
17283 char sched_yield();
17284
17285 int main() {
17286 sched_yield()
17287 ; return 0; }
17288 EOF
17289 if { (eval echo configure:17290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17290 rm -rf conftest*
17291 eval "ac_cv_lib_$ac_lib_var=yes"
17292 else
17293 echo "configure: failed program was:" >&5
17294 cat conftest.$ac_ext >&5
17295 rm -rf conftest*
17296 eval "ac_cv_lib_$ac_lib_var=no"
17297 fi
17298 rm -f conftest*
17299 LIBS="$ac_save_LIBS"
17300
17301 fi
17302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17303 echo "$ac_t""yes" 1>&6
17304 cat >> confdefs.h <<\EOF
17305 #define HAVE_SCHED_YIELD 1
17306 EOF
17307 POSIX4_LINK=" -lposix4"
17308 else
17309 echo "$ac_t""no" 1>&6
17310 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17311
17312 fi
17313
17314
17315 fi
17316
17317
17318 HAVE_PRIOR_FUNCS=0
17319 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
17320 echo "configure:17321: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
17321 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
17322 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17323 echo $ac_n "(cached) $ac_c" 1>&6
17324 else
17325 ac_save_LIBS="$LIBS"
17326 LIBS="-l$THREADS_LINK $LIBS"
17327 cat > conftest.$ac_ext <<EOF
17328 #line 17329 "configure"
17329 #include "confdefs.h"
17330 /* Override any gcc2 internal prototype to avoid an error. */
17331 /* We use char because int might match the return type of a gcc2
17332 builtin and then its argument prototype would still apply. */
17333 char pthread_attr_getschedpolicy();
17334
17335 int main() {
17336 pthread_attr_getschedpolicy()
17337 ; return 0; }
17338 EOF
17339 if { (eval echo configure:17340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17340 rm -rf conftest*
17341 eval "ac_cv_lib_$ac_lib_var=yes"
17342 else
17343 echo "configure: failed program was:" >&5
17344 cat conftest.$ac_ext >&5
17345 rm -rf conftest*
17346 eval "ac_cv_lib_$ac_lib_var=no"
17347 fi
17348 rm -f conftest*
17349 LIBS="$ac_save_LIBS"
17350
17351 fi
17352 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17353 echo "$ac_t""yes" 1>&6
17354 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
17355 echo "configure:17356: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
17356 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
17357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17358 echo $ac_n "(cached) $ac_c" 1>&6
17359 else
17360 ac_save_LIBS="$LIBS"
17361 LIBS="-l$THREADS_LINK $LIBS"
17362 cat > conftest.$ac_ext <<EOF
17363 #line 17364 "configure"
17364 #include "confdefs.h"
17365 /* Override any gcc2 internal prototype to avoid an error. */
17366 /* We use char because int might match the return type of a gcc2
17367 builtin and then its argument prototype would still apply. */
17368 char pthread_attr_setschedparam();
17369
17370 int main() {
17371 pthread_attr_setschedparam()
17372 ; return 0; }
17373 EOF
17374 if { (eval echo configure:17375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17375 rm -rf conftest*
17376 eval "ac_cv_lib_$ac_lib_var=yes"
17377 else
17378 echo "configure: failed program was:" >&5
17379 cat conftest.$ac_ext >&5
17380 rm -rf conftest*
17381 eval "ac_cv_lib_$ac_lib_var=no"
17382 fi
17383 rm -f conftest*
17384 LIBS="$ac_save_LIBS"
17385
17386 fi
17387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17388 echo "$ac_t""yes" 1>&6
17389 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
17390 echo "configure:17391: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
17391 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17393 echo $ac_n "(cached) $ac_c" 1>&6
17394 else
17395 ac_save_LIBS="$LIBS"
17396 LIBS="-l$THREADS_LINK $LIBS"
17397 cat > conftest.$ac_ext <<EOF
17398 #line 17399 "configure"
17399 #include "confdefs.h"
17400 /* Override any gcc2 internal prototype to avoid an error. */
17401 /* We use char because int might match the return type of a gcc2
17402 builtin and then its argument prototype would still apply. */
17403 char sched_get_priority_max();
17404
17405 int main() {
17406 sched_get_priority_max()
17407 ; return 0; }
17408 EOF
17409 if { (eval echo configure:17410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17410 rm -rf conftest*
17411 eval "ac_cv_lib_$ac_lib_var=yes"
17412 else
17413 echo "configure: failed program was:" >&5
17414 cat conftest.$ac_ext >&5
17415 rm -rf conftest*
17416 eval "ac_cv_lib_$ac_lib_var=no"
17417 fi
17418 rm -f conftest*
17419 LIBS="$ac_save_LIBS"
17420
17421 fi
17422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17423 echo "$ac_t""yes" 1>&6
17424 HAVE_PRIOR_FUNCS=1
17425 else
17426 echo "$ac_t""no" 1>&6
17427 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
17428 echo "configure:17429: checking for sched_get_priority_max in -lposix4" >&5
17429 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17430 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17431 echo $ac_n "(cached) $ac_c" 1>&6
17432 else
17433 ac_save_LIBS="$LIBS"
17434 LIBS="-lposix4 $LIBS"
17435 cat > conftest.$ac_ext <<EOF
17436 #line 17437 "configure"
17437 #include "confdefs.h"
17438 /* Override any gcc2 internal prototype to avoid an error. */
17439 /* We use char because int might match the return type of a gcc2
17440 builtin and then its argument prototype would still apply. */
17441 char sched_get_priority_max();
17442
17443 int main() {
17444 sched_get_priority_max()
17445 ; return 0; }
17446 EOF
17447 if { (eval echo configure:17448: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17448 rm -rf conftest*
17449 eval "ac_cv_lib_$ac_lib_var=yes"
17450 else
17451 echo "configure: failed program was:" >&5
17452 cat conftest.$ac_ext >&5
17453 rm -rf conftest*
17454 eval "ac_cv_lib_$ac_lib_var=no"
17455 fi
17456 rm -f conftest*
17457 LIBS="$ac_save_LIBS"
17458
17459 fi
17460 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17461 echo "$ac_t""yes" 1>&6
17462
17463 HAVE_PRIOR_FUNCS=1
17464 POSIX4_LINK=" -lposix4"
17465
17466 else
17467 echo "$ac_t""no" 1>&6
17468 fi
17469
17470
17471 fi
17472
17473
17474 else
17475 echo "$ac_t""no" 1>&6
17476 fi
17477
17478
17479 else
17480 echo "$ac_t""no" 1>&6
17481 fi
17482
17483
17484 if test "$HAVE_PRIOR_FUNCS" = 1; then
17485 cat >> confdefs.h <<\EOF
17486 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
17487 EOF
17488
17489 else
17490 echo "configure: warning: Setting thread priority will not work" 1>&2
17491 fi
17492
17493 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
17494 echo "configure:17495: checking for pthread_cancel in -l$THREADS_LINK" >&5
17495 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
17496 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17497 echo $ac_n "(cached) $ac_c" 1>&6
17498 else
17499 ac_save_LIBS="$LIBS"
17500 LIBS="-l$THREADS_LINK $LIBS"
17501 cat > conftest.$ac_ext <<EOF
17502 #line 17503 "configure"
17503 #include "confdefs.h"
17504 /* Override any gcc2 internal prototype to avoid an error. */
17505 /* We use char because int might match the return type of a gcc2
17506 builtin and then its argument prototype would still apply. */
17507 char pthread_cancel();
17508
17509 int main() {
17510 pthread_cancel()
17511 ; return 0; }
17512 EOF
17513 if { (eval echo configure:17514: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17514 rm -rf conftest*
17515 eval "ac_cv_lib_$ac_lib_var=yes"
17516 else
17517 echo "configure: failed program was:" >&5
17518 cat conftest.$ac_ext >&5
17519 rm -rf conftest*
17520 eval "ac_cv_lib_$ac_lib_var=no"
17521 fi
17522 rm -f conftest*
17523 LIBS="$ac_save_LIBS"
17524
17525 fi
17526 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17527 echo "$ac_t""yes" 1>&6
17528 cat >> confdefs.h <<\EOF
17529 #define HAVE_PTHREAD_CANCEL 1
17530 EOF
17531
17532 else
17533 echo "$ac_t""no" 1>&6
17534 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
17535 fi
17536
17537
17538 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
17539 echo "configure:17540: checking for pthread_cleanup_push/pop" >&5
17540 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
17541 echo $ac_n "(cached) $ac_c" 1>&6
17542 else
17543
17544 cat > conftest.$ac_ext <<EOF
17545 #line 17546 "configure"
17546 #include "confdefs.h"
17547 #include <pthread.h>
17548 int main() {
17549
17550 pthread_cleanup_push(NULL, NULL);
17551 pthread_cleanup_pop(0);
17552
17553 ; return 0; }
17554 EOF
17555 if { (eval echo configure:17556: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17556 rm -rf conftest*
17557
17558 wx_cv_func_pthread_cleanup_push=yes
17559
17560 else
17561 echo "configure: failed program was:" >&5
17562 cat conftest.$ac_ext >&5
17563 rm -rf conftest*
17564
17565 wx_cv_func_pthread_cleanup_push=no
17566
17567 fi
17568 rm -f conftest*
17569
17570 fi
17571
17572 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
17573
17574 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
17575 cat >> confdefs.h <<\EOF
17576 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
17577 EOF
17578
17579 fi
17580
17581
17582 if test "x$wx_lib_glibc21" = "xyes"; then
17583 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
17584 fi
17585
17586 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
17587 echo "configure:17588: checking for pthread_mutexattr_t" >&5
17588 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
17589 echo $ac_n "(cached) $ac_c" 1>&6
17590 else
17591
17592 cat > conftest.$ac_ext <<EOF
17593 #line 17594 "configure"
17594 #include "confdefs.h"
17595 #include <pthread.h>
17596 int main() {
17597
17598 pthread_mutexattr_t attr;
17599 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
17600
17601 ; return 0; }
17602 EOF
17603 if { (eval echo configure:17604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17604 rm -rf conftest*
17605
17606 wx_cv_type_pthread_mutexattr_t=yes
17607
17608 else
17609 echo "configure: failed program was:" >&5
17610 cat conftest.$ac_ext >&5
17611 rm -rf conftest*
17612
17613 wx_cv_type_pthread_mutexattr_t=no
17614
17615
17616 fi
17617 rm -f conftest*
17618
17619 fi
17620
17621 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
17622
17623 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
17624 cat >> confdefs.h <<\EOF
17625 #define HAVE_PTHREAD_MUTEXATTR_T 1
17626 EOF
17627
17628 else
17629 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
17630 echo "configure:17631: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
17631 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
17632 echo $ac_n "(cached) $ac_c" 1>&6
17633 else
17634
17635 cat > conftest.$ac_ext <<EOF
17636 #line 17637 "configure"
17637 #include "confdefs.h"
17638 #include <pthread.h>
17639 int main() {
17640
17641 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
17642
17643 ; return 0; }
17644 EOF
17645 if { (eval echo configure:17646: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17646 rm -rf conftest*
17647
17648 wx_cv_type_pthread_rec_mutex_init=yes
17649
17650 else
17651 echo "configure: failed program was:" >&5
17652 cat conftest.$ac_ext >&5
17653 rm -rf conftest*
17654
17655 wx_cv_type_pthread_rec_mutex_init=no
17656
17657
17658 fi
17659 rm -f conftest*
17660
17661 fi
17662
17663 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
17664 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
17665 cat >> confdefs.h <<\EOF
17666 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17667 EOF
17668
17669 else
17670 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
17671 fi
17672 fi
17673
17674 THREADS_LINK=" -l$THREADS_LINK"
17675
17676 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
17677 CPPFLAGS="$CFLAGS -mt"
17678 CXXFLAGS="$CXXFLAGS -mt"
17679 LDFLAGS="$LDFLAGS -mt"
17680 fi
17681 fi
17682
17683 fi
17684
17685 if test "$wxUSE_THREADS" = "yes"; then
17686 cat >> confdefs.h <<\EOF
17687 #define wxUSE_THREADS 1
17688 EOF
17689
17690
17691 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
17692
17693 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
17694 else
17695 if test "$ac_cv_func_strtok_r" = "yes"; then
17696 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
17697 echo "configure:17698: checking if -D_REENTRANT is needed" >&5
17698 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17699 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
17700 echo "$ac_t""yes" 1>&6
17701 else
17702 echo "$ac_t""no" 1>&6
17703 fi
17704 fi
17705 fi
17706
17707 if test "$WXGTK20" = 1 ; then
17708 cat >> confdefs.h <<EOF
17709 #define __WXGTK20__ $WXGTK20
17710 EOF
17711
17712 WXGTK12=1
17713 fi
17714
17715 if test "$WXGTK12" = 1 ; then
17716 cat >> confdefs.h <<EOF
17717 #define __WXGTK12__ $WXGTK12
17718 EOF
17719
17720 fi
17721
17722 if test "$WXGTK127" = 1 ; then
17723 cat >> confdefs.h <<EOF
17724 #define __WXGTK127__ $WXGTK127
17725 EOF
17726
17727 fi
17728
17729 WXDEBUG=
17730
17731 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17732 WXDEBUG="-g"
17733 wxUSE_OPTIMISE=no
17734 fi
17735
17736 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17737 wxUSE_DEBUG_INFO=yes
17738 WXDEBUG="-ggdb"
17739 fi
17740
17741 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
17742 cat >> confdefs.h <<\EOF
17743 #define WXDEBUG 1
17744 EOF
17745
17746 WXDEBUG_DEFINE="-D__WXDEBUG__"
17747 else
17748 if test "$wxUSE_GTK" = 1 ; then
17749 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17750 fi
17751 fi
17752
17753 if test "$wxUSE_MEM_TRACING" = "yes" ; then
17754 cat >> confdefs.h <<\EOF
17755 #define wxUSE_MEMORY_TRACING 1
17756 EOF
17757
17758 cat >> confdefs.h <<\EOF
17759 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17760 EOF
17761
17762 cat >> confdefs.h <<\EOF
17763 #define wxUSE_DEBUG_NEW_ALWAYS 1
17764 EOF
17765
17766 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17767 fi
17768
17769 if test "$wxUSE_DMALLOC" = "yes" ; then
17770 DMALLOC_LIBS="-ldmalloc"
17771 fi
17772
17773 PROFILE=
17774 if test "$wxUSE_PROFILE" = "yes" ; then
17775 PROFILE=" -pg"
17776 fi
17777
17778 if test "$GCC" = "yes" ; then
17779 if test "$wxUSE_NO_RTTI" = "yes" ; then
17780 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
17781 fi
17782 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17783 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17784 fi
17785 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17786 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17787 fi
17788 if test "$USE_WIN32" = 1 ; then
17789 # I'm not even really sure what this was ever added to solve,
17790 # but someone added it for mingw native builds, so I guess
17791 # they had a reason, right??
17792 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
17793 fi
17794 fi
17795
17796
17797 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
17798 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
17799 if test "$wxUSE_OPTIMISE" = "no" ; then
17800 OPTIMISE=
17801 else
17802 if test "$GCC" = yes ; then
17803 OPTIMISE="-O2"
17804 case "${host}" in
17805 i586-*-*|i686-*-* )
17806 OPTIMISE="${OPTIMISE} "
17807 ;;
17808 esac
17809 else
17810 OPTIMISE="-O"
17811 fi
17812 fi
17813
17814 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
17815 cat >> confdefs.h <<\EOF
17816 #define WXWIN_COMPATIBILITY_2 1
17817 EOF
17818
17819
17820 WXWIN_COMPATIBILITY_2_2="yes"
17821 fi
17822
17823 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
17824 cat >> confdefs.h <<\EOF
17825 #define WXWIN_COMPATIBILITY_2_2 1
17826 EOF
17827
17828 fi
17829
17830
17831 if test "$wxUSE_GUI" = "yes"; then
17832 cat >> confdefs.h <<\EOF
17833 #define wxUSE_GUI 1
17834 EOF
17835
17836
17837 else
17838 cat >> confdefs.h <<\EOF
17839 #define wxUSE_NOGUI 1
17840 EOF
17841
17842 fi
17843
17844
17845 if test "$wxUSE_UNIX" = "yes"; then
17846 cat >> confdefs.h <<\EOF
17847 #define wxUSE_UNIX 1
17848 EOF
17849
17850 fi
17851
17852
17853 if test "$wxUSE_APPLE_IEEE" = "yes"; then
17854 cat >> confdefs.h <<\EOF
17855 #define wxUSE_APPLE_IEEE 1
17856 EOF
17857
17858 fi
17859
17860 if test "$wxUSE_TIMER" = "yes"; then
17861 cat >> confdefs.h <<\EOF
17862 #define wxUSE_TIMER 1
17863 EOF
17864
17865 fi
17866
17867 if test "$wxUSE_WAVE" = "yes"; then
17868 cat >> confdefs.h <<\EOF
17869 #define wxUSE_WAVE 1
17870 EOF
17871
17872 fi
17873
17874 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
17875 cat >> confdefs.h <<\EOF
17876 #define wxUSE_CMDLINE_PARSER 1
17877 EOF
17878
17879 fi
17880
17881 if test "$wxUSE_STOPWATCH" = "yes"; then
17882 cat >> confdefs.h <<\EOF
17883 #define wxUSE_STOPWATCH 1
17884 EOF
17885
17886 fi
17887
17888 if test "$wxUSE_DATETIME" = "yes"; then
17889 cat >> confdefs.h <<\EOF
17890 #define wxUSE_DATETIME 1
17891 EOF
17892
17893 fi
17894
17895 if test "$wxUSE_TIMEDATE" = "yes"; then
17896 cat >> confdefs.h <<\EOF
17897 #define wxUSE_TIMEDATE 1
17898 EOF
17899
17900 fi
17901
17902 if test "$wxUSE_FILE" = "yes"; then
17903 cat >> confdefs.h <<\EOF
17904 #define wxUSE_FILE 1
17905 EOF
17906
17907 fi
17908
17909 if test "$wxUSE_FFILE" = "yes"; then
17910 cat >> confdefs.h <<\EOF
17911 #define wxUSE_FFILE 1
17912 EOF
17913
17914 fi
17915
17916 if test "$wxUSE_FILESYSTEM" = "yes"; then
17917 cat >> confdefs.h <<\EOF
17918 #define wxUSE_FILESYSTEM 1
17919 EOF
17920
17921 fi
17922
17923 if test "$wxUSE_FS_INET" = "yes"; then
17924 cat >> confdefs.h <<\EOF
17925 #define wxUSE_FS_INET 1
17926 EOF
17927
17928 fi
17929
17930 if test "$wxUSE_FS_ZIP" = "yes"; then
17931 cat >> confdefs.h <<\EOF
17932 #define wxUSE_FS_ZIP 1
17933 EOF
17934
17935 fi
17936
17937 if test "$wxUSE_ZIPSTREAM" = "yes"; then
17938 cat >> confdefs.h <<\EOF
17939 #define wxUSE_ZIPSTREAM 1
17940 EOF
17941
17942 fi
17943
17944 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17945 cat >> confdefs.h <<\EOF
17946 #define wxUSE_ON_FATAL_EXCEPTION 1
17947 EOF
17948
17949 fi
17950
17951 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17952 cat >> confdefs.h <<\EOF
17953 #define wxUSE_SNGLINST_CHECKER 1
17954 EOF
17955
17956 fi
17957
17958 if test "$wxUSE_BUSYINFO" = "yes"; then
17959 cat >> confdefs.h <<\EOF
17960 #define wxUSE_BUSYINFO 1
17961 EOF
17962
17963 fi
17964
17965 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
17966 cat >> confdefs.h <<\EOF
17967 #define wxUSE_STD_IOSTREAM 1
17968 EOF
17969
17970 fi
17971
17972 if test "$wxUSE_TEXTBUFFER" = "yes"; then
17973 cat >> confdefs.h <<\EOF
17974 #define wxUSE_TEXTBUFFER 1
17975 EOF
17976
17977 fi
17978
17979 if test "$wxUSE_TEXTFILE" = "yes"; then
17980 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
17981 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
17982 else
17983 cat >> confdefs.h <<\EOF
17984 #define wxUSE_TEXTFILE 1
17985 EOF
17986
17987 fi
17988 fi
17989
17990 if test "$wxUSE_CONFIG" = "yes" ; then
17991 if test "$wxUSE_TEXTFILE" != "yes"; then
17992 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
17993 else
17994 cat >> confdefs.h <<\EOF
17995 #define wxUSE_CONFIG 1
17996 EOF
17997
17998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
17999 fi
18000 fi
18001
18002 if test "$wxUSE_INTL" = "yes" ; then
18003 if test "$wxUSE_FILE" != "yes"; then
18004 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18005 else
18006 cat >> confdefs.h <<\EOF
18007 #define wxUSE_INTL 1
18008 EOF
18009
18010 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18011 GUIDIST="$GUIDIST INTL_DIST"
18012 fi
18013 fi
18014
18015 if test "$wxUSE_LOG" = "yes"; then
18016 cat >> confdefs.h <<\EOF
18017 #define wxUSE_LOG 1
18018 EOF
18019
18020
18021 if test "$wxUSE_LOGGUI" = "yes"; then
18022 cat >> confdefs.h <<\EOF
18023 #define wxUSE_LOGGUI 1
18024 EOF
18025
18026 fi
18027
18028 if test "$wxUSE_LOGWINDOW" = "yes"; then
18029 cat >> confdefs.h <<\EOF
18030 #define wxUSE_LOGWINDOW 1
18031 EOF
18032
18033 fi
18034
18035 if test "$wxUSE_LOGDIALOG" = "yes"; then
18036 cat >> confdefs.h <<\EOF
18037 #define wxUSE_LOG_DIALOG 1
18038 EOF
18039
18040 fi
18041 fi
18042
18043 if test "$wxUSE_LONGLONG" = "yes"; then
18044 cat >> confdefs.h <<\EOF
18045 #define wxUSE_LONGLONG 1
18046 EOF
18047
18048 fi
18049
18050 if test "$wxUSE_GEOMETRY" = "yes"; then
18051 cat >> confdefs.h <<\EOF
18052 #define wxUSE_GEOMETRY 1
18053 EOF
18054
18055 fi
18056
18057 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18058 cat >> confdefs.h <<\EOF
18059 #define wxUSE_DIALUP_MANAGER 1
18060 EOF
18061
18062 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18063 fi
18064
18065 if test "$wxUSE_STREAMS" = "yes" ; then
18066 cat >> confdefs.h <<\EOF
18067 #define wxUSE_STREAMS 1
18068 EOF
18069
18070 fi
18071
18072
18073 if test "$wxUSE_DATETIME" = "yes"; then
18074 for ac_func in strptime
18075 do
18076 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18077 echo "configure:18078: checking for $ac_func" >&5
18078 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18079 echo $ac_n "(cached) $ac_c" 1>&6
18080 else
18081 cat > conftest.$ac_ext <<EOF
18082 #line 18083 "configure"
18083 #include "confdefs.h"
18084 /* System header to define __stub macros and hopefully few prototypes,
18085 which can conflict with char $ac_func(); below. */
18086 #include <assert.h>
18087 /* Override any gcc2 internal prototype to avoid an error. */
18088 /* We use char because int might match the return type of a gcc2
18089 builtin and then its argument prototype would still apply. */
18090 char $ac_func();
18091
18092 int main() {
18093
18094 /* The GNU C library defines this for functions which it implements
18095 to always fail with ENOSYS. Some functions are actually named
18096 something starting with __ and the normal name is an alias. */
18097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18098 choke me
18099 #else
18100 $ac_func();
18101 #endif
18102
18103 ; return 0; }
18104 EOF
18105 if { (eval echo configure:18106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18106 rm -rf conftest*
18107 eval "ac_cv_func_$ac_func=yes"
18108 else
18109 echo "configure: failed program was:" >&5
18110 cat conftest.$ac_ext >&5
18111 rm -rf conftest*
18112 eval "ac_cv_func_$ac_func=no"
18113 fi
18114 rm -f conftest*
18115 fi
18116
18117 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18118 echo "$ac_t""yes" 1>&6
18119 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18120 cat >> confdefs.h <<EOF
18121 #define $ac_tr_func 1
18122 EOF
18123
18124 else
18125 echo "$ac_t""no" 1>&6
18126 fi
18127 done
18128
18129
18130 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18131 echo "configure:18132: checking for timezone variable in <time.h>" >&5
18132 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18133 echo $ac_n "(cached) $ac_c" 1>&6
18134 else
18135
18136 cat > conftest.$ac_ext <<EOF
18137 #line 18138 "configure"
18138 #include "confdefs.h"
18139
18140 #include <time.h>
18141
18142 int main() {
18143
18144 int tz;
18145 tz = timezone;
18146
18147 ; return 0; }
18148 EOF
18149 if { (eval echo configure:18150: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18150 rm -rf conftest*
18151
18152 wx_cv_var_timezone=timezone
18153
18154 else
18155 echo "configure: failed program was:" >&5
18156 cat conftest.$ac_ext >&5
18157 rm -rf conftest*
18158
18159 cat > conftest.$ac_ext <<EOF
18160 #line 18161 "configure"
18161 #include "confdefs.h"
18162
18163 #include <time.h>
18164
18165 int main() {
18166
18167 int tz;
18168 tz = _timezone;
18169
18170 ; return 0; }
18171 EOF
18172 if { (eval echo configure:18173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18173 rm -rf conftest*
18174
18175 wx_cv_var_timezone=_timezone
18176
18177 else
18178 echo "configure: failed program was:" >&5
18179 cat conftest.$ac_ext >&5
18180 rm -rf conftest*
18181
18182 cat > conftest.$ac_ext <<EOF
18183 #line 18184 "configure"
18184 #include "confdefs.h"
18185
18186 #include <time.h>
18187
18188 int main() {
18189
18190 int tz;
18191 tz = __timezone;
18192
18193 ; return 0; }
18194 EOF
18195 if { (eval echo configure:18196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18196 rm -rf conftest*
18197
18198 wx_cv_var_timezone=__timezone
18199
18200 else
18201 echo "configure: failed program was:" >&5
18202 cat conftest.$ac_ext >&5
18203 rm -rf conftest*
18204
18205 if test "$USE_DOS" = 0 ; then
18206 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
18207 fi
18208
18209
18210 fi
18211 rm -f conftest*
18212
18213
18214 fi
18215 rm -f conftest*
18216
18217
18218 fi
18219 rm -f conftest*
18220
18221
18222 fi
18223
18224 echo "$ac_t""$wx_cv_var_timezone" 1>&6
18225
18226 if test "x$wx_cv_var_timezone" != x ; then
18227 cat >> confdefs.h <<EOF
18228 #define WX_TIMEZONE $wx_cv_var_timezone
18229 EOF
18230
18231 fi
18232
18233 for ac_func in localtime
18234 do
18235 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18236 echo "configure:18237: checking for $ac_func" >&5
18237 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18238 echo $ac_n "(cached) $ac_c" 1>&6
18239 else
18240 cat > conftest.$ac_ext <<EOF
18241 #line 18242 "configure"
18242 #include "confdefs.h"
18243 /* System header to define __stub macros and hopefully few prototypes,
18244 which can conflict with char $ac_func(); below. */
18245 #include <assert.h>
18246 /* Override any gcc2 internal prototype to avoid an error. */
18247 /* We use char because int might match the return type of a gcc2
18248 builtin and then its argument prototype would still apply. */
18249 char $ac_func();
18250
18251 int main() {
18252
18253 /* The GNU C library defines this for functions which it implements
18254 to always fail with ENOSYS. Some functions are actually named
18255 something starting with __ and the normal name is an alias. */
18256 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18257 choke me
18258 #else
18259 $ac_func();
18260 #endif
18261
18262 ; return 0; }
18263 EOF
18264 if { (eval echo configure:18265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18265 rm -rf conftest*
18266 eval "ac_cv_func_$ac_func=yes"
18267 else
18268 echo "configure: failed program was:" >&5
18269 cat conftest.$ac_ext >&5
18270 rm -rf conftest*
18271 eval "ac_cv_func_$ac_func=no"
18272 fi
18273 rm -f conftest*
18274 fi
18275
18276 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18277 echo "$ac_t""yes" 1>&6
18278 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18279 cat >> confdefs.h <<EOF
18280 #define $ac_tr_func 1
18281 EOF
18282
18283 else
18284 echo "$ac_t""no" 1>&6
18285 fi
18286 done
18287
18288
18289 if test "$ac_cv_func_localtime" = "yes"; then
18290 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
18291 echo "configure:18292: checking for tm_gmtoff in struct tm" >&5
18292 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18293 echo $ac_n "(cached) $ac_c" 1>&6
18294 else
18295
18296 cat > conftest.$ac_ext <<EOF
18297 #line 18298 "configure"
18298 #include "confdefs.h"
18299
18300 #include <time.h>
18301
18302 int main() {
18303
18304 struct tm tm;
18305 tm.tm_gmtoff++;
18306
18307 ; return 0; }
18308 EOF
18309 if { (eval echo configure:18310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18310 rm -rf conftest*
18311
18312 wx_cv_struct_tm_has_gmtoff=yes
18313
18314 else
18315 echo "configure: failed program was:" >&5
18316 cat conftest.$ac_ext >&5
18317 rm -rf conftest*
18318 wx_cv_struct_tm_has_gmtoff=no
18319
18320 fi
18321 rm -f conftest*
18322
18323 fi
18324
18325 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
18326 fi
18327
18328 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18329 cat >> confdefs.h <<\EOF
18330 #define WX_GMTOFF_IN_TM 1
18331 EOF
18332
18333 fi
18334
18335 for ac_func in gettimeofday ftime
18336 do
18337 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18338 echo "configure:18339: checking for $ac_func" >&5
18339 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18340 echo $ac_n "(cached) $ac_c" 1>&6
18341 else
18342 cat > conftest.$ac_ext <<EOF
18343 #line 18344 "configure"
18344 #include "confdefs.h"
18345 /* System header to define __stub macros and hopefully few prototypes,
18346 which can conflict with char $ac_func(); below. */
18347 #include <assert.h>
18348 /* Override any gcc2 internal prototype to avoid an error. */
18349 /* We use char because int might match the return type of a gcc2
18350 builtin and then its argument prototype would still apply. */
18351 char $ac_func();
18352
18353 int main() {
18354
18355 /* The GNU C library defines this for functions which it implements
18356 to always fail with ENOSYS. Some functions are actually named
18357 something starting with __ and the normal name is an alias. */
18358 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18359 choke me
18360 #else
18361 $ac_func();
18362 #endif
18363
18364 ; return 0; }
18365 EOF
18366 if { (eval echo configure:18367: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18367 rm -rf conftest*
18368 eval "ac_cv_func_$ac_func=yes"
18369 else
18370 echo "configure: failed program was:" >&5
18371 cat conftest.$ac_ext >&5
18372 rm -rf conftest*
18373 eval "ac_cv_func_$ac_func=no"
18374 fi
18375 rm -f conftest*
18376 fi
18377
18378 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18379 echo "$ac_t""yes" 1>&6
18380 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18381 cat >> confdefs.h <<EOF
18382 #define $ac_tr_func 1
18383 EOF
18384 break
18385 else
18386 echo "$ac_t""no" 1>&6
18387 fi
18388 done
18389
18390
18391 if test "$ac_cv_func_gettimeofday" = "yes"; then
18392 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
18393 echo "configure:18394: checking whether gettimeofday takes two arguments" >&5
18394 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18395 echo $ac_n "(cached) $ac_c" 1>&6
18396 else
18397
18398
18399 ac_ext=C
18400 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18401 ac_cpp='$CXXCPP $CPPFLAGS'
18402 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18403 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18404 cross_compiling=$ac_cv_prog_cxx_cross
18405
18406
18407 cat > conftest.$ac_ext <<EOF
18408 #line 18409 "configure"
18409 #include "confdefs.h"
18410
18411 #include <sys/time.h>
18412 #include <unistd.h>
18413
18414 int main() {
18415
18416 struct timeval tv;
18417 gettimeofday(&tv, NULL);
18418
18419 ; return 0; }
18420 EOF
18421 if { (eval echo configure:18422: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18422 rm -rf conftest*
18423 wx_cv_func_gettimeofday_has_2_args=yes
18424 else
18425 echo "configure: failed program was:" >&5
18426 cat conftest.$ac_ext >&5
18427 rm -rf conftest*
18428 cat > conftest.$ac_ext <<EOF
18429 #line 18430 "configure"
18430 #include "confdefs.h"
18431
18432 #include <sys/time.h>
18433 #include <unistd.h>
18434
18435 int main() {
18436
18437 struct timeval tv;
18438 gettimeofday(&tv);
18439
18440 ; return 0; }
18441 EOF
18442 if { (eval echo configure:18443: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18443 rm -rf conftest*
18444 wx_cv_func_gettimeofday_has_2_args=no
18445 else
18446 echo "configure: failed program was:" >&5
18447 cat conftest.$ac_ext >&5
18448 rm -rf conftest*
18449
18450 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18451 wx_cv_func_gettimeofday_has_2_args=unknown
18452
18453
18454 fi
18455 rm -f conftest*
18456
18457 fi
18458 rm -f conftest*
18459 ac_ext=c
18460 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18461 ac_cpp='$CPP $CPPFLAGS'
18462 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18463 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18464 cross_compiling=$ac_cv_prog_cc_cross
18465
18466
18467 fi
18468
18469 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
18470
18471 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
18472 cat >> confdefs.h <<\EOF
18473 #define WX_GETTIMEOFDAY_NO_TZ 1
18474 EOF
18475
18476 fi
18477 fi
18478
18479 cat >> confdefs.h <<\EOF
18480 #define wxUSE_TIMEDATE 1
18481 EOF
18482
18483 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18484 fi
18485
18486
18487 if test "$TOOLKIT" != "MSW"; then
18488
18489 if test "$wxUSE_SOCKETS" = "yes"; then
18490 echo $ac_n "checking for socket""... $ac_c" 1>&6
18491 echo "configure:18492: checking for socket" >&5
18492 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18493 echo $ac_n "(cached) $ac_c" 1>&6
18494 else
18495 cat > conftest.$ac_ext <<EOF
18496 #line 18497 "configure"
18497 #include "confdefs.h"
18498 /* System header to define __stub macros and hopefully few prototypes,
18499 which can conflict with char socket(); below. */
18500 #include <assert.h>
18501 /* Override any gcc2 internal prototype to avoid an error. */
18502 /* We use char because int might match the return type of a gcc2
18503 builtin and then its argument prototype would still apply. */
18504 char socket();
18505
18506 int main() {
18507
18508 /* The GNU C library defines this for functions which it implements
18509 to always fail with ENOSYS. Some functions are actually named
18510 something starting with __ and the normal name is an alias. */
18511 #if defined (__stub_socket) || defined (__stub___socket)
18512 choke me
18513 #else
18514 socket();
18515 #endif
18516
18517 ; return 0; }
18518 EOF
18519 if { (eval echo configure:18520: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18520 rm -rf conftest*
18521 eval "ac_cv_func_socket=yes"
18522 else
18523 echo "configure: failed program was:" >&5
18524 cat conftest.$ac_ext >&5
18525 rm -rf conftest*
18526 eval "ac_cv_func_socket=no"
18527 fi
18528 rm -f conftest*
18529 fi
18530
18531 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18532 echo "$ac_t""yes" 1>&6
18533 :
18534 else
18535 echo "$ac_t""no" 1>&6
18536 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
18537 echo "configure:18538: checking for socket in -lsocket" >&5
18538 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
18539 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18540 echo $ac_n "(cached) $ac_c" 1>&6
18541 else
18542 ac_save_LIBS="$LIBS"
18543 LIBS="-lsocket $LIBS"
18544 cat > conftest.$ac_ext <<EOF
18545 #line 18546 "configure"
18546 #include "confdefs.h"
18547 /* Override any gcc2 internal prototype to avoid an error. */
18548 /* We use char because int might match the return type of a gcc2
18549 builtin and then its argument prototype would still apply. */
18550 char socket();
18551
18552 int main() {
18553 socket()
18554 ; return 0; }
18555 EOF
18556 if { (eval echo configure:18557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18557 rm -rf conftest*
18558 eval "ac_cv_lib_$ac_lib_var=yes"
18559 else
18560 echo "configure: failed program was:" >&5
18561 cat conftest.$ac_ext >&5
18562 rm -rf conftest*
18563 eval "ac_cv_lib_$ac_lib_var=no"
18564 fi
18565 rm -f conftest*
18566 LIBS="$ac_save_LIBS"
18567
18568 fi
18569 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18570 echo "$ac_t""yes" 1>&6
18571 INET_LINK="$INET_LINK -lsocket"
18572 else
18573 echo "$ac_t""no" 1>&6
18574
18575 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
18576 wxUSE_SOCKETS=no
18577
18578
18579 fi
18580
18581
18582 fi
18583
18584 fi
18585
18586
18587 if test "$wxUSE_SOCKETS" = "yes" ; then
18588 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
18589 echo "configure:18590: checking what is the type of the third argument of getsockname" >&5
18590 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
18591 echo $ac_n "(cached) $ac_c" 1>&6
18592 else
18593
18594
18595 ac_ext=C
18596 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18597 ac_cpp='$CXXCPP $CPPFLAGS'
18598 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18599 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18600 cross_compiling=$ac_cv_prog_cxx_cross
18601
18602
18603 cat > conftest.$ac_ext <<EOF
18604 #line 18605 "configure"
18605 #include "confdefs.h"
18606
18607 #include <sys/types.h>
18608 #include <sys/socket.h>
18609
18610 int main() {
18611
18612 socklen_t len;
18613 getsockname(0, 0, &len);
18614
18615 ; return 0; }
18616 EOF
18617 if { (eval echo configure:18618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18618 rm -rf conftest*
18619 wx_cv_type_getsockname3=socklen_t
18620 else
18621 echo "configure: failed program was:" >&5
18622 cat conftest.$ac_ext >&5
18623 rm -rf conftest*
18624 cat > conftest.$ac_ext <<EOF
18625 #line 18626 "configure"
18626 #include "confdefs.h"
18627
18628 #include <sys/types.h>
18629 #include <sys/socket.h>
18630
18631 int main() {
18632
18633 size_t len;
18634 getsockname(0, 0, &len);
18635
18636 ; return 0; }
18637 EOF
18638 if { (eval echo configure:18639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18639 rm -rf conftest*
18640 wx_cv_type_getsockname3=size_t
18641 else
18642 echo "configure: failed program was:" >&5
18643 cat conftest.$ac_ext >&5
18644 rm -rf conftest*
18645 cat > conftest.$ac_ext <<EOF
18646 #line 18647 "configure"
18647 #include "confdefs.h"
18648
18649 #include <sys/types.h>
18650 #include <sys/socket.h>
18651
18652 int main() {
18653
18654 int len;
18655 getsockname(0, 0, &len);
18656
18657 ; return 0; }
18658 EOF
18659 if { (eval echo configure:18660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18660 rm -rf conftest*
18661 wx_cv_type_getsockname3=int
18662 else
18663 echo "configure: failed program was:" >&5
18664 cat conftest.$ac_ext >&5
18665 rm -rf conftest*
18666 wx_cv_type_getsockname3=unknown
18667
18668 fi
18669 rm -f conftest*
18670
18671 fi
18672 rm -f conftest*
18673
18674 fi
18675 rm -f conftest*
18676
18677 ac_ext=c
18678 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18679 ac_cpp='$CPP $CPPFLAGS'
18680 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18681 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18682 cross_compiling=$ac_cv_prog_cc_cross
18683
18684
18685 fi
18686
18687 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
18688
18689 if test "$wx_cv_type_getsockname3" = "unknown"; then
18690 wxUSE_SOCKETS=no
18691 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
18692 else
18693 cat >> confdefs.h <<EOF
18694 #define SOCKLEN_T $wx_cv_type_getsockname3
18695 EOF
18696
18697 fi
18698 fi
18699 fi
18700
18701 if test "$wxUSE_SOCKETS" = "yes" ; then
18702 cat >> confdefs.h <<\EOF
18703 #define wxUSE_SOCKETS 1
18704 EOF
18705
18706 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
18707 fi
18708
18709
18710 if test "$wxUSE_GUI" = "yes"; then
18711
18712 if test "$TOOLKIT" = "MAC"; then
18713 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18714 wxUSE_JOYSTICK=no
18715 fi
18716 if test "$TOOLKIT" = "MOTIF"; then
18717 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
18718 wxUSE_JOYSTICK=no
18719 fi
18720 if test "$TOOLKIT" = "X11"; then
18721 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
18722 wxUSE_JOYSTICK=no
18723 fi
18724
18725 if test "$TOOLKIT" != "MSW"; then
18726 if test "$wxUSE_JOYSTICK" = "yes"; then
18727 for ac_hdr in linux/joystick.h
18728 do
18729 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18730 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18731 echo "configure:18732: checking for $ac_hdr" >&5
18732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18733 echo $ac_n "(cached) $ac_c" 1>&6
18734 else
18735 cat > conftest.$ac_ext <<EOF
18736 #line 18737 "configure"
18737 #include "confdefs.h"
18738 #include <$ac_hdr>
18739 EOF
18740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18741 { (eval echo configure:18742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18743 if test -z "$ac_err"; then
18744 rm -rf conftest*
18745 eval "ac_cv_header_$ac_safe=yes"
18746 else
18747 echo "$ac_err" >&5
18748 echo "configure: failed program was:" >&5
18749 cat conftest.$ac_ext >&5
18750 rm -rf conftest*
18751 eval "ac_cv_header_$ac_safe=no"
18752 fi
18753 rm -f conftest*
18754 fi
18755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18756 echo "$ac_t""yes" 1>&6
18757 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18758 cat >> confdefs.h <<EOF
18759 #define $ac_tr_hdr 1
18760 EOF
18761
18762 else
18763 echo "$ac_t""no" 1>&6
18764 fi
18765 done
18766
18767 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18768 wxUSE_JOYSTICK=no
18769 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
18770 fi
18771 fi
18772 fi
18773
18774 if test "$wxUSE_JOYSTICK" = "yes"; then
18775 cat >> confdefs.h <<\EOF
18776 #define wxUSE_JOYSTICK 1
18777 EOF
18778
18779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18780 fi
18781 fi
18782
18783
18784 if test "$TOOLKIT" != "MSW"; then
18785
18786 HAVE_DL_FUNCS=0
18787 HAVE_SHL_FUNCS=0
18788 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
18789 if test "$USE_DARWIN" = 1; then
18790 HAVE_DL_FUNCS=1
18791 else
18792 for ac_func in dlopen
18793 do
18794 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18795 echo "configure:18796: checking for $ac_func" >&5
18796 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18797 echo $ac_n "(cached) $ac_c" 1>&6
18798 else
18799 cat > conftest.$ac_ext <<EOF
18800 #line 18801 "configure"
18801 #include "confdefs.h"
18802 /* System header to define __stub macros and hopefully few prototypes,
18803 which can conflict with char $ac_func(); below. */
18804 #include <assert.h>
18805 /* Override any gcc2 internal prototype to avoid an error. */
18806 /* We use char because int might match the return type of a gcc2
18807 builtin and then its argument prototype would still apply. */
18808 char $ac_func();
18809
18810 int main() {
18811
18812 /* The GNU C library defines this for functions which it implements
18813 to always fail with ENOSYS. Some functions are actually named
18814 something starting with __ and the normal name is an alias. */
18815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18816 choke me
18817 #else
18818 $ac_func();
18819 #endif
18820
18821 ; return 0; }
18822 EOF
18823 if { (eval echo configure:18824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18824 rm -rf conftest*
18825 eval "ac_cv_func_$ac_func=yes"
18826 else
18827 echo "configure: failed program was:" >&5
18828 cat conftest.$ac_ext >&5
18829 rm -rf conftest*
18830 eval "ac_cv_func_$ac_func=no"
18831 fi
18832 rm -f conftest*
18833 fi
18834
18835 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18836 echo "$ac_t""yes" 1>&6
18837 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18838 cat >> confdefs.h <<EOF
18839 #define $ac_tr_func 1
18840 EOF
18841
18842 cat >> confdefs.h <<\EOF
18843 #define HAVE_DLOPEN 1
18844 EOF
18845
18846 HAVE_DL_FUNCS=1
18847
18848 else
18849 echo "$ac_t""no" 1>&6
18850 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
18851 echo "configure:18852: checking for dlopen in -ldl" >&5
18852 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
18853 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18854 echo $ac_n "(cached) $ac_c" 1>&6
18855 else
18856 ac_save_LIBS="$LIBS"
18857 LIBS="-ldl $LIBS"
18858 cat > conftest.$ac_ext <<EOF
18859 #line 18860 "configure"
18860 #include "confdefs.h"
18861 /* Override any gcc2 internal prototype to avoid an error. */
18862 /* We use char because int might match the return type of a gcc2
18863 builtin and then its argument prototype would still apply. */
18864 char dlopen();
18865
18866 int main() {
18867 dlopen()
18868 ; return 0; }
18869 EOF
18870 if { (eval echo configure:18871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18871 rm -rf conftest*
18872 eval "ac_cv_lib_$ac_lib_var=yes"
18873 else
18874 echo "configure: failed program was:" >&5
18875 cat conftest.$ac_ext >&5
18876 rm -rf conftest*
18877 eval "ac_cv_lib_$ac_lib_var=no"
18878 fi
18879 rm -f conftest*
18880 LIBS="$ac_save_LIBS"
18881
18882 fi
18883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18884 echo "$ac_t""yes" 1>&6
18885
18886 cat >> confdefs.h <<\EOF
18887 #define HAVE_DLOPEN 1
18888 EOF
18889
18890 HAVE_DL_FUNCS=1
18891 DL_LINK=" -ldl$DL_LINK"
18892
18893 else
18894 echo "$ac_t""no" 1>&6
18895
18896 for ac_func in shl_load
18897 do
18898 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18899 echo "configure:18900: checking for $ac_func" >&5
18900 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18901 echo $ac_n "(cached) $ac_c" 1>&6
18902 else
18903 cat > conftest.$ac_ext <<EOF
18904 #line 18905 "configure"
18905 #include "confdefs.h"
18906 /* System header to define __stub macros and hopefully few prototypes,
18907 which can conflict with char $ac_func(); below. */
18908 #include <assert.h>
18909 /* Override any gcc2 internal prototype to avoid an error. */
18910 /* We use char because int might match the return type of a gcc2
18911 builtin and then its argument prototype would still apply. */
18912 char $ac_func();
18913
18914 int main() {
18915
18916 /* The GNU C library defines this for functions which it implements
18917 to always fail with ENOSYS. Some functions are actually named
18918 something starting with __ and the normal name is an alias. */
18919 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18920 choke me
18921 #else
18922 $ac_func();
18923 #endif
18924
18925 ; return 0; }
18926 EOF
18927 if { (eval echo configure:18928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18928 rm -rf conftest*
18929 eval "ac_cv_func_$ac_func=yes"
18930 else
18931 echo "configure: failed program was:" >&5
18932 cat conftest.$ac_ext >&5
18933 rm -rf conftest*
18934 eval "ac_cv_func_$ac_func=no"
18935 fi
18936 rm -f conftest*
18937 fi
18938
18939 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18940 echo "$ac_t""yes" 1>&6
18941 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18942 cat >> confdefs.h <<EOF
18943 #define $ac_tr_func 1
18944 EOF
18945
18946 cat >> confdefs.h <<\EOF
18947 #define HAVE_SHL_LOAD 1
18948 EOF
18949
18950 HAVE_SHL_FUNCS=1
18951
18952 else
18953 echo "$ac_t""no" 1>&6
18954 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
18955 echo "configure:18956: checking for dld in -lshl_load" >&5
18956 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
18957 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18958 echo $ac_n "(cached) $ac_c" 1>&6
18959 else
18960 ac_save_LIBS="$LIBS"
18961 LIBS="-lshl_load $LIBS"
18962 cat > conftest.$ac_ext <<EOF
18963 #line 18964 "configure"
18964 #include "confdefs.h"
18965 /* Override any gcc2 internal prototype to avoid an error. */
18966 /* We use char because int might match the return type of a gcc2
18967 builtin and then its argument prototype would still apply. */
18968 char dld();
18969
18970 int main() {
18971 dld()
18972 ; return 0; }
18973 EOF
18974 if { (eval echo configure:18975: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18975 rm -rf conftest*
18976 eval "ac_cv_lib_$ac_lib_var=yes"
18977 else
18978 echo "configure: failed program was:" >&5
18979 cat conftest.$ac_ext >&5
18980 rm -rf conftest*
18981 eval "ac_cv_lib_$ac_lib_var=no"
18982 fi
18983 rm -f conftest*
18984 LIBS="$ac_save_LIBS"
18985
18986 fi
18987 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18988 echo "$ac_t""yes" 1>&6
18989
18990 HAVE_SHL_FUNCS=1
18991 DL_LINK=" -ldld$DL_LINK"
18992
18993 else
18994 echo "$ac_t""no" 1>&6
18995 fi
18996
18997
18998 fi
18999 done
19000
19001
19002 fi
19003
19004
19005 fi
19006 done
19007
19008
19009 if test "$HAVE_DL_FUNCS" = 1; then
19010 for ac_func in dlerror
19011 do
19012 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19013 echo "configure:19014: checking for $ac_func" >&5
19014 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19015 echo $ac_n "(cached) $ac_c" 1>&6
19016 else
19017 cat > conftest.$ac_ext <<EOF
19018 #line 19019 "configure"
19019 #include "confdefs.h"
19020 /* System header to define __stub macros and hopefully few prototypes,
19021 which can conflict with char $ac_func(); below. */
19022 #include <assert.h>
19023 /* Override any gcc2 internal prototype to avoid an error. */
19024 /* We use char because int might match the return type of a gcc2
19025 builtin and then its argument prototype would still apply. */
19026 char $ac_func();
19027
19028 int main() {
19029
19030 /* The GNU C library defines this for functions which it implements
19031 to always fail with ENOSYS. Some functions are actually named
19032 something starting with __ and the normal name is an alias. */
19033 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19034 choke me
19035 #else
19036 $ac_func();
19037 #endif
19038
19039 ; return 0; }
19040 EOF
19041 if { (eval echo configure:19042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19042 rm -rf conftest*
19043 eval "ac_cv_func_$ac_func=yes"
19044 else
19045 echo "configure: failed program was:" >&5
19046 cat conftest.$ac_ext >&5
19047 rm -rf conftest*
19048 eval "ac_cv_func_$ac_func=no"
19049 fi
19050 rm -f conftest*
19051 fi
19052
19053 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19054 echo "$ac_t""yes" 1>&6
19055 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19056 cat >> confdefs.h <<EOF
19057 #define $ac_tr_func 1
19058 EOF
19059 cat >> confdefs.h <<\EOF
19060 #define HAVE_DLERROR 1
19061 EOF
19062
19063 else
19064 echo "$ac_t""no" 1>&6
19065 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19066 echo "configure:19067: checking for dlerror in -ldl" >&5
19067 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19069 echo $ac_n "(cached) $ac_c" 1>&6
19070 else
19071 ac_save_LIBS="$LIBS"
19072 LIBS="-ldl $LIBS"
19073 cat > conftest.$ac_ext <<EOF
19074 #line 19075 "configure"
19075 #include "confdefs.h"
19076 /* Override any gcc2 internal prototype to avoid an error. */
19077 /* We use char because int might match the return type of a gcc2
19078 builtin and then its argument prototype would still apply. */
19079 char dlerror();
19080
19081 int main() {
19082 dlerror()
19083 ; return 0; }
19084 EOF
19085 if { (eval echo configure:19086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19086 rm -rf conftest*
19087 eval "ac_cv_lib_$ac_lib_var=yes"
19088 else
19089 echo "configure: failed program was:" >&5
19090 cat conftest.$ac_ext >&5
19091 rm -rf conftest*
19092 eval "ac_cv_lib_$ac_lib_var=no"
19093 fi
19094 rm -f conftest*
19095 LIBS="$ac_save_LIBS"
19096
19097 fi
19098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19099 echo "$ac_t""yes" 1>&6
19100 cat >> confdefs.h <<\EOF
19101 #define HAVE_DLERROR 1
19102 EOF
19103
19104 else
19105 echo "$ac_t""no" 1>&6
19106 fi
19107
19108 fi
19109 done
19110
19111 fi
19112 fi
19113
19114 if test "$HAVE_DL_FUNCS" = 0; then
19115 if test "$HAVE_SHL_FUNCS" = 0; then
19116 if test "$USE_UNIX" = 1; then
19117 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19118 wxUSE_DYNAMIC_LOADER=no
19119 wxUSE_DYNLIB_CLASS=no
19120 else
19121 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19122 fi
19123 fi
19124 fi
19125 fi
19126 fi
19127
19128 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19129 cat >> confdefs.h <<\EOF
19130 #define wxUSE_DYNAMIC_LOADER 1
19131 EOF
19132
19133 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19134 cat >> confdefs.h <<\EOF
19135 #define wxUSE_DYNLIB_CLASS 1
19136 EOF
19137
19138 fi
19139
19140
19141 if test "$wxUSE_FONTMAP" = "yes" ; then
19142 cat >> confdefs.h <<\EOF
19143 #define wxUSE_FONTMAP 1
19144 EOF
19145
19146 fi
19147
19148 if test "$wxUSE_UNICODE" = "yes" ; then
19149 cat >> confdefs.h <<\EOF
19150 #define wxUSE_UNICODE 1
19151 EOF
19152
19153
19154 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19155 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19156 echo "configure:19157: checking for main in -lunicows" >&5
19157 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19158 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19159 echo $ac_n "(cached) $ac_c" 1>&6
19160 else
19161 ac_save_LIBS="$LIBS"
19162 LIBS="-lunicows $LIBS"
19163 cat > conftest.$ac_ext <<EOF
19164 #line 19165 "configure"
19165 #include "confdefs.h"
19166
19167 int main() {
19168 main()
19169 ; return 0; }
19170 EOF
19171 if { (eval echo configure:19172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19172 rm -rf conftest*
19173 eval "ac_cv_lib_$ac_lib_var=yes"
19174 else
19175 echo "configure: failed program was:" >&5
19176 cat conftest.$ac_ext >&5
19177 rm -rf conftest*
19178 eval "ac_cv_lib_$ac_lib_var=no"
19179 fi
19180 rm -f conftest*
19181 LIBS="$ac_save_LIBS"
19182
19183 fi
19184 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19185 echo "$ac_t""yes" 1>&6
19186
19187 cat >> confdefs.h <<\EOF
19188 #define wxUSE_UNICODE_MSLU 1
19189 EOF
19190
19191
19192 else
19193 echo "$ac_t""no" 1>&6
19194
19195 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19196 Applications will only run on Windows NT/2000/XP!" 1>&2
19197 wxUSE_UNICODE_MSLU=no
19198
19199 fi
19200
19201 fi
19202 fi
19203
19204 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19205 cat >> confdefs.h <<\EOF
19206 #define wxUSE_EXPERIMENTAL_PRINTF 1
19207 EOF
19208
19209 fi
19210
19211
19212
19213 IODBC_C_SRC=""
19214 if test "$wxUSE_ODBC" = "yes" ; then
19215 cat >> confdefs.h <<\EOF
19216 #define wxUSE_ODBC 1
19217 EOF
19218
19219 WXODBCFLAG="-D_IODBC_"
19220 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19221 fi
19222
19223
19224 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19225 cat >> confdefs.h <<\EOF
19226 #define wxUSE_POSTSCRIPT 1
19227 EOF
19228
19229 fi
19230
19231 cat >> confdefs.h <<\EOF
19232 #define wxUSE_AFM_FOR_POSTSCRIPT 1
19233 EOF
19234
19235
19236 cat >> confdefs.h <<\EOF
19237 #define wxUSE_NORMALIZED_PS_FONTS 1
19238 EOF
19239
19240
19241
19242 if test "$wxUSE_CONSTRAINTS" = "yes"; then
19243 cat >> confdefs.h <<\EOF
19244 #define wxUSE_CONSTRAINTS 1
19245 EOF
19246
19247 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19248 fi
19249
19250 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19251 if test "$wxUSE_UNIVERSAL" = "yes"; then
19252 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
19253 wxUSE_MDI_ARCHITECTURE=no
19254 fi
19255
19256 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19257 cat >> confdefs.h <<\EOF
19258 #define wxUSE_MDI_ARCHITECTURE 1
19259 EOF
19260
19261 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19262 fi
19263 fi
19264
19265 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19266 cat >> confdefs.h <<\EOF
19267 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
19268 EOF
19269
19270 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19271 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19273 fi
19274 fi
19275
19276 if test "$wxUSE_HELP" = "yes"; then
19277 cat >> confdefs.h <<\EOF
19278 #define wxUSE_HELP 1
19279 EOF
19280
19281 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19282
19283 if test "$wxUSE_MSW" = 1; then
19284 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
19285 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
19286 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
19287 echo "configure:19288: checking for htmlhelp.h" >&5
19288 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19289 echo $ac_n "(cached) $ac_c" 1>&6
19290 else
19291 cat > conftest.$ac_ext <<EOF
19292 #line 19293 "configure"
19293 #include "confdefs.h"
19294 #include <htmlhelp.h>
19295 EOF
19296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19297 { (eval echo configure:19298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19299 if test -z "$ac_err"; then
19300 rm -rf conftest*
19301 eval "ac_cv_header_$ac_safe=yes"
19302 else
19303 echo "$ac_err" >&5
19304 echo "configure: failed program was:" >&5
19305 cat conftest.$ac_ext >&5
19306 rm -rf conftest*
19307 eval "ac_cv_header_$ac_safe=no"
19308 fi
19309 rm -f conftest*
19310 fi
19311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19312 echo "$ac_t""yes" 1>&6
19313
19314 cat >> confdefs.h <<\EOF
19315 #define wxUSE_MS_HTML_HELP 1
19316 EOF
19317
19318
19319 else
19320 echo "$ac_t""no" 1>&6
19321
19322 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
19323 wxUSE_MS_HTML_HELP=no
19324
19325 fi
19326
19327 fi
19328 fi
19329
19330 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19331 if test "$wxUSE_HTML" = "yes"; then
19332 cat >> confdefs.h <<\EOF
19333 #define wxUSE_WXHTML_HELP 1
19334 EOF
19335
19336 else
19337 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19338 wxUSE_WXHTML_HELP=no
19339 fi
19340 fi
19341 fi
19342
19343 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19344 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19345 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
19346 else
19347 cat >> confdefs.h <<\EOF
19348 #define wxUSE_PRINTING_ARCHITECTURE 1
19349 EOF
19350
19351 fi
19352 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19353 fi
19354
19355 if test "$wxUSE_PROLOGIO" = "yes" ; then
19356 cat >> confdefs.h <<\EOF
19357 #define wxUSE_PROLOGIO 1
19358 EOF
19359
19360 fi
19361
19362 if test "$wxUSE_RESOURCES" = "yes" ; then
19363 cat >> confdefs.h <<\EOF
19364 #define wxUSE_RESOURCES 1
19365 EOF
19366
19367 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19368 fi
19369
19370 if test "$wxUSE_X_RESOURCES" = "yes"; then
19371 cat >> confdefs.h <<\EOF
19372 #define wxUSE_X_RESOURCES 1
19373 EOF
19374
19375 fi
19376
19377
19378 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19379 -o "$wxUSE_CLIPBOARD" = "yes" \
19380 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
19381 for ac_hdr in ole2.h
19382 do
19383 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19384 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19385 echo "configure:19386: checking for $ac_hdr" >&5
19386 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19387 echo $ac_n "(cached) $ac_c" 1>&6
19388 else
19389 cat > conftest.$ac_ext <<EOF
19390 #line 19391 "configure"
19391 #include "confdefs.h"
19392 #include <$ac_hdr>
19393 EOF
19394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19395 { (eval echo configure:19396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19397 if test -z "$ac_err"; then
19398 rm -rf conftest*
19399 eval "ac_cv_header_$ac_safe=yes"
19400 else
19401 echo "$ac_err" >&5
19402 echo "configure: failed program was:" >&5
19403 cat conftest.$ac_ext >&5
19404 rm -rf conftest*
19405 eval "ac_cv_header_$ac_safe=no"
19406 fi
19407 rm -f conftest*
19408 fi
19409 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19410 echo "$ac_t""yes" 1>&6
19411 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19412 cat >> confdefs.h <<EOF
19413 #define $ac_tr_hdr 1
19414 EOF
19415
19416 else
19417 echo "$ac_t""no" 1>&6
19418 fi
19419 done
19420
19421
19422 if test "$ac_cv_header_ole2_h" = "yes" ; then
19423 if test "$GCC" = yes ; then
19424 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
19425 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
19426 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
19427 cat >> confdefs.h <<\EOF
19428 #define wxUSE_OLE 1
19429 EOF
19430
19431
19432 fi
19433
19434 cat >> confdefs.h <<\EOF
19435 #define wxUSE_DATAOBJ 1
19436 EOF
19437
19438 else
19439 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19440
19441 wxUSE_CLIPBOARD=no
19442 wxUSE_DRAG_AND_DROP=no
19443 wxUSE_DATAOBJ=no
19444 fi
19445
19446 if test "$wxUSE_METAFILE" = "yes"; then
19447 cat >> confdefs.h <<\EOF
19448 #define wxUSE_METAFILE 1
19449 EOF
19450
19451
19452 cat >> confdefs.h <<\EOF
19453 #define wxUSE_ENH_METAFILE 1
19454 EOF
19455
19456 fi
19457 fi
19458
19459 if test "$wxUSE_IPC" = "yes"; then
19460 if test "$wxUSE_SOCKETS" != "yes"; then
19461 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
19462 fi
19463
19464 cat >> confdefs.h <<\EOF
19465 #define wxUSE_IPC 1
19466 EOF
19467
19468 fi
19469
19470 if test "$wxUSE_CLIPBOARD" = "yes"; then
19471 cat >> confdefs.h <<\EOF
19472 #define wxUSE_CLIPBOARD 1
19473 EOF
19474
19475
19476 cat >> confdefs.h <<\EOF
19477 #define wxUSE_DATAOBJ 1
19478 EOF
19479
19480 fi
19481
19482 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19483 if test "$wxUSE_GTK" = 1; then
19484 if test "$WXGTK12" != 1; then
19485 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
19486 wxUSE_DRAG_AND_DROP=no
19487 fi
19488 fi
19489
19490 if test "$wxUSE_MOTIF" = 1; then
19491 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
19492 wxUSE_DRAG_AND_DROP=no
19493 fi
19494
19495 if test "$wxUSE_X11" = 1; then
19496 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19497 wxUSE_DRAG_AND_DROP=no
19498 fi
19499
19500 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
19501 cat >> confdefs.h <<\EOF
19502 #define wxUSE_DRAG_AND_DROP 1
19503 EOF
19504
19505 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19506 fi
19507
19508 fi
19509
19510 if test "$wxUSE_SPLINES" = "yes" ; then
19511 cat >> confdefs.h <<\EOF
19512 #define wxUSE_SPLINES 1
19513 EOF
19514
19515 fi
19516
19517
19518 USES_CONTROLS=0
19519 if test "$wxUSE_CONTROLS" = "yes"; then
19520 USES_CONTROLS=1
19521 fi
19522
19523 if test "$wxUSE_ACCEL" = "yes"; then
19524 cat >> confdefs.h <<\EOF
19525 #define wxUSE_ACCEL 1
19526 EOF
19527
19528 USES_CONTROLS=1
19529 fi
19530
19531 if test "$wxUSE_BUTTON" = "yes"; then
19532 cat >> confdefs.h <<\EOF
19533 #define wxUSE_BUTTON 1
19534 EOF
19535
19536 USES_CONTROLS=1
19537 fi
19538
19539 if test "$wxUSE_BMPBUTTON" = "yes"; then
19540 cat >> confdefs.h <<\EOF
19541 #define wxUSE_BMPBUTTON 1
19542 EOF
19543
19544 USES_CONTROLS=1
19545 fi
19546
19547 if test "$wxUSE_CALCTRL" = "yes"; then
19548 cat >> confdefs.h <<\EOF
19549 #define wxUSE_CALENDARCTRL 1
19550 EOF
19551
19552 USES_CONTROLS=1
19553 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
19554 fi
19555
19556 if test "$wxUSE_CARET" = "yes"; then
19557 cat >> confdefs.h <<\EOF
19558 #define wxUSE_CARET 1
19559 EOF
19560
19561 USES_CONTROLS=1
19562 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
19563 fi
19564
19565 if test "$wxUSE_COMBOBOX" = "yes"; then
19566 cat >> confdefs.h <<\EOF
19567 #define wxUSE_COMBOBOX 1
19568 EOF
19569
19570 USES_CONTROLS=1
19571 fi
19572
19573 if test "$wxUSE_CHOICE" = "yes"; then
19574 cat >> confdefs.h <<\EOF
19575 #define wxUSE_CHOICE 1
19576 EOF
19577
19578 USES_CONTROLS=1
19579 fi
19580
19581 if test "$wxUSE_CHECKBOX" = "yes"; then
19582 cat >> confdefs.h <<\EOF
19583 #define wxUSE_CHECKBOX 1
19584 EOF
19585
19586 USES_CONTROLS=1
19587 fi
19588
19589 if test "$wxUSE_CHECKLST" = "yes"; then
19590 cat >> confdefs.h <<\EOF
19591 #define wxUSE_CHECKLISTBOX 1
19592 EOF
19593
19594 USES_CONTROLS=1
19595 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
19596 fi
19597
19598 if test "$wxUSE_GAUGE" = "yes"; then
19599 cat >> confdefs.h <<\EOF
19600 #define wxUSE_GAUGE 1
19601 EOF
19602
19603 USES_CONTROLS=1
19604 fi
19605
19606 if test "$wxUSE_NEW_GRID" = "yes"; then
19607 wxUSE_GRID="yes"
19608 cat >> confdefs.h <<\EOF
19609 #define wxUSE_NEW_GRID 1
19610 EOF
19611
19612 USES_CONTROLS=1
19613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
19614 fi
19615
19616 if test "$wxUSE_GRID" = "yes"; then
19617 cat >> confdefs.h <<\EOF
19618 #define wxUSE_GRID 1
19619 EOF
19620
19621 USES_CONTROLS=1
19622 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
19623 fi
19624
19625 if test "$wxUSE_IMAGLIST" = "yes"; then
19626 cat >> confdefs.h <<\EOF
19627 #define wxUSE_IMAGLIST 1
19628 EOF
19629
19630 fi
19631
19632 if test "$wxUSE_LISTBOX" = "yes"; then
19633 cat >> confdefs.h <<\EOF
19634 #define wxUSE_LISTBOX 1
19635 EOF
19636
19637 USES_CONTROLS=1
19638 fi
19639
19640 if test "$wxUSE_LISTCTRL" = "yes"; then
19641 if test "$wxUSE_IMAGLIST" = "yes"; then
19642 cat >> confdefs.h <<\EOF
19643 #define wxUSE_LISTCTRL 1
19644 EOF
19645
19646 USES_CONTROLS=1
19647 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
19648 else
19649 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
19650 fi
19651 fi
19652
19653 if test "$wxUSE_NOTEBOOK" = "yes"; then
19654 cat >> confdefs.h <<\EOF
19655 #define wxUSE_NOTEBOOK 1
19656 EOF
19657
19658 USES_CONTROLS=1
19659 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
19660 fi
19661
19662 if test "$wxUSE_PROPSHEET" = "yes"; then
19663 cat >> confdefs.h <<\EOF
19664 #define wxUSE_PROPSHEET 1
19665 EOF
19666
19667 USES_CONTROLS=1
19668 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
19669 fi
19670
19671 if test "$wxUSE_RADIOBOX" = "yes"; then
19672 cat >> confdefs.h <<\EOF
19673 #define wxUSE_RADIOBOX 1
19674 EOF
19675
19676 USES_CONTROLS=1
19677 fi
19678
19679 if test "$wxUSE_RADIOBTN" = "yes"; then
19680 cat >> confdefs.h <<\EOF
19681 #define wxUSE_RADIOBTN 1
19682 EOF
19683
19684 USES_CONTROLS=1
19685 fi
19686
19687 if test "$wxUSE_SASH" = "yes"; then
19688 cat >> confdefs.h <<\EOF
19689 #define wxUSE_SASH 1
19690 EOF
19691
19692 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
19693 fi
19694
19695 if test "$wxUSE_SCROLLBAR" = "yes"; then
19696 cat >> confdefs.h <<\EOF
19697 #define wxUSE_SCROLLBAR 1
19698 EOF
19699
19700 USES_CONTROLS=1
19701 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
19702 fi
19703
19704 if test "$wxUSE_SLIDER" = "yes"; then
19705 cat >> confdefs.h <<\EOF
19706 #define wxUSE_SLIDER 1
19707 EOF
19708
19709 USES_CONTROLS=1
19710 fi
19711
19712 if test "$wxUSE_SPINBTN" = "yes"; then
19713 cat >> confdefs.h <<\EOF
19714 #define wxUSE_SPINBTN 1
19715 EOF
19716
19717 USES_CONTROLS=1
19718 fi
19719
19720 if test "$wxUSE_SPINCTRL" = "yes"; then
19721 cat >> confdefs.h <<\EOF
19722 #define wxUSE_SPINCTRL 1
19723 EOF
19724
19725 USES_CONTROLS=1
19726 fi
19727
19728 if test "$wxUSE_SPLITTER" = "yes"; then
19729 cat >> confdefs.h <<\EOF
19730 #define wxUSE_SPLITTER 1
19731 EOF
19732
19733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19734 fi
19735
19736 if test "$wxUSE_STATBMP" = "yes"; then
19737 cat >> confdefs.h <<\EOF
19738 #define wxUSE_STATBMP 1
19739 EOF
19740
19741 USES_CONTROLS=1
19742 fi
19743
19744 if test "$wxUSE_STATBOX" = "yes"; then
19745 cat >> confdefs.h <<\EOF
19746 #define wxUSE_STATBOX 1
19747 EOF
19748
19749 USES_CONTROLS=1
19750 fi
19751
19752 if test "$wxUSE_STATTEXT" = "yes"; then
19753 cat >> confdefs.h <<\EOF
19754 #define wxUSE_STATTEXT 1
19755 EOF
19756
19757 USES_CONTROLS=1
19758 fi
19759
19760 if test "$wxUSE_STATLINE" = "yes"; then
19761 if test "$wxUSE_WINE" = 1 ; then
19762 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
19763 else
19764 cat >> confdefs.h <<\EOF
19765 #define wxUSE_STATLINE 1
19766 EOF
19767
19768 USES_CONTROLS=1
19769 fi
19770 fi
19771
19772 if test "$wxUSE_STATUSBAR" = "yes"; then
19773 cat >> confdefs.h <<\EOF
19774 #define wxUSE_STATUSBAR 1
19775 EOF
19776
19777 USES_CONTROLS=1
19778
19779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
19780 fi
19781
19782 if test "$wxUSE_TABDIALOG" = "yes"; then
19783 cat >> confdefs.h <<\EOF
19784 #define wxUSE_TAB_DIALOG 1
19785 EOF
19786
19787 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19788 fi
19789
19790 if test "$wxUSE_TEXTCTRL" = "yes"; then
19791 cat >> confdefs.h <<\EOF
19792 #define wxUSE_TEXTCTRL 1
19793 EOF
19794
19795 USES_CONTROLS=1
19796 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
19797 fi
19798
19799 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19800 if test "$wxUSE_MAC" = 1; then
19801 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
19802 wxUSE_TOGGLEBTN=no
19803 fi
19804 if test "$wxUSE_UNIVERSAL" = "yes"; then
19805 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
19806 wxUSE_TOGGLEBTN=no
19807 fi
19808
19809 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19810 cat >> confdefs.h <<\EOF
19811 #define wxUSE_TOGGLEBTN 1
19812 EOF
19813
19814 USES_CONTROLS=1
19815 fi
19816 fi
19817
19818 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
19819 cat >> confdefs.h <<\EOF
19820 #define wxUSE_TOOLBAR_SIMPLE 1
19821 EOF
19822
19823 wxUSE_TOOLBAR="yes"
19824 USES_CONTROLS=1
19825 fi
19826
19827 if test "$wxUSE_TOOLBAR" = "yes"; then
19828 cat >> confdefs.h <<\EOF
19829 #define wxUSE_TOOLBAR 1
19830 EOF
19831
19832 USES_CONTROLS=1
19833
19834 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
19835 wxUSE_TOOLBAR_NATIVE="yes"
19836 fi
19837
19838 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
19839 cat >> confdefs.h <<\EOF
19840 #define wxUSE_TOOLBAR_NATIVE 1
19841 EOF
19842
19843 USES_CONTROLS=1
19844 fi
19845
19846 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
19847 fi
19848
19849 if test "$wxUSE_TOOLTIPS" = "yes"; then
19850 if test "$wxUSE_MOTIF" = 1; then
19851 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
19852 else
19853 if test "$wxUSE_WINE" = 1; then
19854 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
19855 else
19856 if test "$wxUSE_UNIVERSAL" = "yes"; then
19857 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
19858 else
19859 cat >> confdefs.h <<\EOF
19860 #define wxUSE_TOOLTIPS 1
19861 EOF
19862
19863 fi
19864 fi
19865 fi
19866 fi
19867
19868 if test "$wxUSE_TREECTRL" = "yes"; then
19869 if test "$wxUSE_IMAGLIST" = "yes"; then
19870 cat >> confdefs.h <<\EOF
19871 #define wxUSE_TREECTRL 1
19872 EOF
19873
19874 USES_CONTROLS=1
19875 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
19876 else
19877 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
19878 fi
19879 fi
19880
19881 if test "$wxUSE_POPUPWIN" = "yes"; then
19882 if test "$wxUSE_MAC" = 1; then
19883 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
19884 else
19885 if test "$wxUSE_MOTIF" = 1; then
19886 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
19887 else
19888 cat >> confdefs.h <<\EOF
19889 #define wxUSE_POPUPWIN 1
19890 EOF
19891
19892
19893 USES_CONTROLS=1
19894 fi
19895 fi
19896 fi
19897
19898 if test "$wxUSE_TIPWINDOW" = "yes"; then
19899 cat >> confdefs.h <<\EOF
19900 #define wxUSE_TIPWINDOW 1
19901 EOF
19902
19903 fi
19904
19905 if test "$USES_CONTROLS" = 1; then
19906 cat >> confdefs.h <<\EOF
19907 #define wxUSE_CONTROLS 1
19908 EOF
19909
19910 fi
19911
19912
19913 if test "$wxUSE_TREELAYOUT" = "yes"; then
19914 cat >> confdefs.h <<\EOF
19915 #define wxUSE_TREELAYOUT 1
19916 EOF
19917
19918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
19919 fi
19920
19921 if test "$wxUSE_DRAGIMAGE" = "yes"; then
19922 cat >> confdefs.h <<\EOF
19923 #define wxUSE_DRAGIMAGE 1
19924 EOF
19925
19926 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
19927 fi
19928
19929 if test "$wxUSE_MENUS" = "yes"; then
19930 cat >> confdefs.h <<\EOF
19931 #define wxUSE_MENUS 1
19932 EOF
19933
19934 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
19935 fi
19936
19937 if test "$wxUSE_METAFILE" = "yes"; then
19938 cat >> confdefs.h <<\EOF
19939 #define wxUSE_METAFILE 1
19940 EOF
19941
19942 fi
19943
19944 if test "$wxUSE_MIMETYPE" = "yes"; then
19945 cat >> confdefs.h <<\EOF
19946 #define wxUSE_MIMETYPE 1
19947 EOF
19948
19949 fi
19950
19951 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
19952 cat >> confdefs.h <<\EOF
19953 #define wxUSE_SYSTEM_OPTIONS 1
19954 EOF
19955
19956 fi
19957
19958 if test "$wxUSE_PROTOCOL" = "yes"; then
19959 if test "$wxUSE_SOCKETS" != "yes"; then
19960 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
19961 wxUSE_PROTOCOL=no
19962 fi
19963
19964 if test "$wxUSE_PROTOCOL" = "yes"; then
19965 cat >> confdefs.h <<\EOF
19966 #define wxUSE_PROTOCOL 1
19967 EOF
19968
19969
19970 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
19971 cat >> confdefs.h <<\EOF
19972 #define wxUSE_PROTOCOL_HTTP 1
19973 EOF
19974
19975 fi
19976 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
19977 cat >> confdefs.h <<\EOF
19978 #define wxUSE_PROTOCOL_FTP 1
19979 EOF
19980
19981 fi
19982 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
19983 cat >> confdefs.h <<\EOF
19984 #define wxUSE_PROTOCOL_FILE 1
19985 EOF
19986
19987 fi
19988 fi
19989 fi
19990
19991 if test "$wxUSE_URL" = "yes"; then
19992 if test "$wxUSE_PROTOCOL" != "yes"; then
19993 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
19994 wxUSE_URL=no
19995 fi
19996 if test "$wxUSE_URL" = "yes"; then
19997 cat >> confdefs.h <<\EOF
19998 #define wxUSE_URL 1
19999 EOF
20000
20001 fi
20002 fi
20003
20004 if test "$wxUSE_MINIFRAME" = "yes"; then
20005 cat >> confdefs.h <<\EOF
20006 #define wxUSE_MINIFRAME 1
20007 EOF
20008
20009 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20010 fi
20011
20012 if test "$wxUSE_HTML" = "yes"; then
20013 cat >> confdefs.h <<\EOF
20014 #define wxUSE_HTML 1
20015 EOF
20016
20017 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20018 fi
20019
20020 if test "$wxUSE_VALIDATORS" = "yes"; then
20021 cat >> confdefs.h <<\EOF
20022 #define wxUSE_VALIDATORS 1
20023 EOF
20024
20025 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20026 fi
20027
20028 if test "$wxUSE_PALETTE" = "yes" ; then
20029 cat >> confdefs.h <<\EOF
20030 #define wxUSE_PALETTE 1
20031 EOF
20032
20033 fi
20034
20035 if test "$wxUSE_IMAGE" = "yes" ; then
20036 cat >> confdefs.h <<\EOF
20037 #define wxUSE_IMAGE 1
20038 EOF
20039
20040 fi
20041
20042 if test "$wxUSE_GIF" = "yes" ; then
20043 cat >> confdefs.h <<\EOF
20044 #define wxUSE_GIF 1
20045 EOF
20046
20047 fi
20048
20049 if test "$wxUSE_PCX" = "yes" ; then
20050 cat >> confdefs.h <<\EOF
20051 #define wxUSE_PCX 1
20052 EOF
20053
20054 fi
20055
20056 if test "$wxUSE_IFF" = "yes" ; then
20057 cat >> confdefs.h <<\EOF
20058 #define wxUSE_IFF 1
20059 EOF
20060
20061 fi
20062
20063 if test "$wxUSE_PNM" = "yes" ; then
20064 cat >> confdefs.h <<\EOF
20065 #define wxUSE_PNM 1
20066 EOF
20067
20068 fi
20069
20070 if test "$wxUSE_XPM" = "yes" ; then
20071 cat >> confdefs.h <<\EOF
20072 #define wxUSE_XPM 1
20073 EOF
20074
20075 fi
20076
20077 if test "$wxUSE_ICO_CUR" = "yes" ; then
20078 cat >> confdefs.h <<\EOF
20079 #define wxUSE_ICO_CUR 1
20080 EOF
20081
20082 fi
20083
20084 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20085 LIBS=" -lunicows $LIBS"
20086 fi
20087
20088
20089 if test "$wxUSE_CHOICEDLG" = "yes"; then
20090 cat >> confdefs.h <<\EOF
20091 #define wxUSE_CHOICEDLG 1
20092 EOF
20093
20094 fi
20095
20096 if test "$wxUSE_COLOURDLG" = "yes"; then
20097 cat >> confdefs.h <<\EOF
20098 #define wxUSE_COLOURDLG 1
20099 EOF
20100
20101 fi
20102
20103 if test "$wxUSE_FILEDLG" = "yes"; then
20104 cat >> confdefs.h <<\EOF
20105 #define wxUSE_FILEDLG 1
20106 EOF
20107
20108 fi
20109
20110 if test "$wxUSE_FINDREPLDLG" = "yes"; then
20111 cat >> confdefs.h <<\EOF
20112 #define wxUSE_FINDREPLDLG 1
20113 EOF
20114
20115 fi
20116
20117 if test "$wxUSE_FONTDLG" = "yes"; then
20118 cat >> confdefs.h <<\EOF
20119 #define wxUSE_FONTDLG 1
20120 EOF
20121
20122 fi
20123
20124 if test "$wxUSE_DIRDLG" = "yes"; then
20125 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20126 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
20127 else
20128 if test "$wxUSE_TREECTRL" != "yes"; then
20129 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20130 else
20131 cat >> confdefs.h <<\EOF
20132 #define wxUSE_DIRDLG 1
20133 EOF
20134
20135 fi
20136 fi
20137 fi
20138
20139 if test "$wxUSE_MSGDLG" = "yes"; then
20140 cat >> confdefs.h <<\EOF
20141 #define wxUSE_MSGDLG 1
20142 EOF
20143
20144 fi
20145
20146 if test "$wxUSE_NUMBERDLG" = "yes"; then
20147 cat >> confdefs.h <<\EOF
20148 #define wxUSE_NUMBERDLG 1
20149 EOF
20150
20151 fi
20152
20153 if test "$wxUSE_PROGRESSDLG" = "yes"; then
20154 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20155 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20156 else
20157 cat >> confdefs.h <<\EOF
20158 #define wxUSE_PROGRESSDLG 1
20159 EOF
20160
20161 fi
20162 fi
20163
20164 if test "$wxUSE_SPLASH" = "yes"; then
20165 cat >> confdefs.h <<\EOF
20166 #define wxUSE_SPLASH 1
20167 EOF
20168
20169 fi
20170
20171 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20172 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20173 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20174 else
20175 cat >> confdefs.h <<\EOF
20176 #define wxUSE_STARTUP_TIPS 1
20177 EOF
20178
20179 fi
20180 fi
20181
20182 if test "$wxUSE_TEXTDLG" = "yes"; then
20183 cat >> confdefs.h <<\EOF
20184 #define wxUSE_TEXTDLG 1
20185 EOF
20186
20187 fi
20188
20189 if test "$wxUSE_WIZARDDLG" = "yes"; then
20190 cat >> confdefs.h <<\EOF
20191 #define wxUSE_WIZARDDLG 1
20192 EOF
20193
20194 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20195 fi
20196
20197
20198 if test "$cross_compiling" = "yes"; then
20199 OSINFO="\"$host\""
20200 else
20201 OSINFO=`uname -s -r -m`
20202 OSINFO="\"$OSINFO\""
20203 fi
20204
20205 cat >> confdefs.h <<EOF
20206 #define WXWIN_OS_DESCRIPTION $OSINFO
20207 EOF
20208
20209
20210
20211 if test "x$prefix" != "xNONE"; then
20212 wxPREFIX=$prefix
20213 else
20214 wxPREFIX=$ac_default_prefix
20215 fi
20216
20217 cat >> confdefs.h <<EOF
20218 #define wxINSTALL_PREFIX "$wxPREFIX"
20219 EOF
20220
20221
20222
20223
20224
20225 if test "$wxUSE_MAC" = 1 ; then
20226 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20227 fi
20228
20229
20230 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DL_LINK -lm $LIBS"
20231
20232 if test "$wxUSE_GUI" = "yes"; then
20233
20234 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
20235
20236
20237 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
20238 drawing dynamic erase event exec font image \
20239 minimal richedit rotate widgets"
20240
20241 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20242 else
20243 SAMPLES_SUBDIRS="console"
20244 fi
20245
20246
20247 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
20248 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE $TOOLKIT_INCLUDE"
20249
20250 if test "$wxUSE_GTK" = 1; then
20251 WXCONFIG_INCLUDE=
20252 else
20253 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20254 fi
20255
20256 if test "$GXX" = yes ; then
20257 CXXWARNINGS="-Wall"
20258
20259 if test "$wxUSE_NO_DEPS" = "no" ; then
20260 CFLAGS="-MMD $CFLAGS"
20261 CXXFLAGS="-MMD $CXXFLAGS"
20262 fi
20263 fi
20264
20265 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20266
20267 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20268 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20269
20270 LDFLAGS="$LDFLAGS$PROFILE"
20271
20272 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20273
20274
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316
20317
20318
20319
20320
20321
20322
20323
20324
20325
20326
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342
20343
20344
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
20361 echo "configure:20362: checking whether ${MAKE-make} sets \${MAKE}" >&5
20362 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20363 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20364 echo $ac_n "(cached) $ac_c" 1>&6
20365 else
20366 cat > conftestmake <<\EOF
20367 all:
20368 @echo 'ac_maketemp="${MAKE}"'
20369 EOF
20370 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20371 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
20372 if test -n "$ac_maketemp"; then
20373 eval ac_cv_prog_make_${ac_make}_set=yes
20374 else
20375 eval ac_cv_prog_make_${ac_make}_set=no
20376 fi
20377 rm -f conftestmake
20378 fi
20379 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20380 echo "$ac_t""yes" 1>&6
20381 SET_MAKE=
20382 else
20383 echo "$ac_t""no" 1>&6
20384 SET_MAKE="MAKE=${MAKE-make}"
20385 fi
20386
20387
20388 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20389 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
20390 fi
20391
20392
20393
20394 if test "$wxUSE_GUI" = "yes"; then
20395 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20396 wx_cv_if_gnu_make=$IF_GNU_MAKE
20397 wx_cv_path_ifs=$PATH_IFS
20398 wx_cv_program_ext=$PROGRAM_EXT
20399 wx_cv_target_library=$WX_TARGET_LIBRARY
20400 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20401 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20402 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20403 wx_cv_path_ifs wx_cv_program_ext \
20404 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20405 subdirs="demos samples utils contrib"
20406
20407 fi
20408
20409 trap '' 1 2 15
20410 cat > confcache <<\EOF
20411 # This file is a shell script that caches the results of configure
20412 # tests run on this system so they can be shared between configure
20413 # scripts and configure runs. It is not useful on other systems.
20414 # If it contains results you don't want to keep, you may remove or edit it.
20415 #
20416 # By default, configure uses ./config.cache as the cache file,
20417 # creating it if it does not exist already. You can give configure
20418 # the --cache-file=FILE option to use a different cache file; that is
20419 # what configure does when it calls configure scripts in
20420 # subdirectories, so they share the cache.
20421 # Giving --cache-file=/dev/null disables caching, for debugging configure.
20422 # config.status only pays attention to the cache file if you give it the
20423 # --recheck option to rerun configure.
20424 #
20425 EOF
20426 # The following way of writing the cache mishandles newlines in values,
20427 # but we know of no workaround that is simple, portable, and efficient.
20428 # So, don't put newlines in cache variables' values.
20429 # Ultrix sh set writes to stderr and can't be redirected directly,
20430 # and sets the high bit in the cache file unless we assign to the vars.
20431 (set) 2>&1 |
20432 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20433 *ac_space=\ *)
20434 # `set' does not quote correctly, so add quotes (double-quote substitution
20435 # turns \\\\ into \\, and sed turns \\ into \).
20436 sed -n \
20437 -e "s/'/'\\\\''/g" \
20438 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20439 ;;
20440 *)
20441 # `set' quotes correctly as required by POSIX, so do not add quotes.
20442 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20443 ;;
20444 esac >> confcache
20445 if cmp -s $cache_file confcache; then
20446 :
20447 else
20448 if test -w $cache_file; then
20449 echo "updating cache $cache_file"
20450 cat confcache > $cache_file
20451 else
20452 echo "not updating unwritable cache $cache_file"
20453 fi
20454 fi
20455 rm -f confcache
20456
20457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20458
20459 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20460 # Let make expand exec_prefix.
20461 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20462
20463 # Any assignment to VPATH causes Sun make to only execute
20464 # the first set of double-colon rules, so remove it if not needed.
20465 # If there is a colon in the path, we need to keep it.
20466 if test "x$srcdir" = x.; then
20467 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
20468 fi
20469
20470 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20471
20472 DEFS=-DHAVE_CONFIG_H
20473
20474 # Without the "./", some shells look in PATH for config.status.
20475 : ${CONFIG_STATUS=./config.status}
20476
20477 echo creating $CONFIG_STATUS
20478 rm -f $CONFIG_STATUS
20479 cat > $CONFIG_STATUS <<EOF
20480 #! /bin/sh
20481 # Generated automatically by configure.
20482 # Run this file to recreate the current configuration.
20483 # This directory was configured as follows,
20484 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20485 #
20486 # $0 $ac_configure_args
20487 #
20488 # Compiler output produced by configure, useful for debugging
20489 # configure, is in ./config.log if it exists.
20490
20491 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20492 for ac_option
20493 do
20494 case "\$ac_option" in
20495 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20496 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20497 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20498 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20499 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20500 exit 0 ;;
20501 -help | --help | --hel | --he | --h)
20502 echo "\$ac_cs_usage"; exit 0 ;;
20503 *) echo "\$ac_cs_usage"; exit 1 ;;
20504 esac
20505 done
20506
20507 ac_given_srcdir=$srcdir
20508 ac_given_INSTALL="$INSTALL"
20509
20510 trap 'rm -fr `echo "
20511 wx-config
20512 src/make.env
20513 src/makeprog.env
20514 src/makelib.env
20515 Makefile
20516 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
20517 EOF
20518 cat >> $CONFIG_STATUS <<EOF
20519
20520 # Protect against being on the right side of a sed subst in config.status.
20521 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20522 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20523 $ac_vpsub
20524 $extrasub
20525 s%@SHELL@%$SHELL%g
20526 s%@CFLAGS@%$CFLAGS%g
20527 s%@CPPFLAGS@%$CPPFLAGS%g
20528 s%@CXXFLAGS@%$CXXFLAGS%g
20529 s%@FFLAGS@%$FFLAGS%g
20530 s%@DEFS@%$DEFS%g
20531 s%@LDFLAGS@%$LDFLAGS%g
20532 s%@LIBS@%$LIBS%g
20533 s%@exec_prefix@%$exec_prefix%g
20534 s%@prefix@%$prefix%g
20535 s%@program_transform_name@%$program_transform_name%g
20536 s%@bindir@%$bindir%g
20537 s%@sbindir@%$sbindir%g
20538 s%@libexecdir@%$libexecdir%g
20539 s%@datadir@%$datadir%g
20540 s%@sysconfdir@%$sysconfdir%g
20541 s%@sharedstatedir@%$sharedstatedir%g
20542 s%@localstatedir@%$localstatedir%g
20543 s%@libdir@%$libdir%g
20544 s%@includedir@%$includedir%g
20545 s%@oldincludedir@%$oldincludedir%g
20546 s%@infodir@%$infodir%g
20547 s%@mandir@%$mandir%g
20548 s%@host@%$host%g
20549 s%@host_alias@%$host_alias%g
20550 s%@host_cpu@%$host_cpu%g
20551 s%@host_vendor@%$host_vendor%g
20552 s%@host_os@%$host_os%g
20553 s%@target@%$target%g
20554 s%@target_alias@%$target_alias%g
20555 s%@target_cpu@%$target_cpu%g
20556 s%@target_vendor@%$target_vendor%g
20557 s%@target_os@%$target_os%g
20558 s%@build@%$build%g
20559 s%@build_alias@%$build_alias%g
20560 s%@build_cpu@%$build_cpu%g
20561 s%@build_vendor@%$build_vendor%g
20562 s%@build_os@%$build_os%g
20563 s%@CC@%$CC%g
20564 s%@CPP@%$CPP%g
20565 s%@CXX@%$CXX%g
20566 s%@RANLIB@%$RANLIB%g
20567 s%@AR@%$AR%g
20568 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
20569 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
20570 s%@INSTALL_DATA@%$INSTALL_DATA%g
20571 s%@STRIP@%$STRIP%g
20572 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
20573 s%@YACC@%$YACC%g
20574 s%@LEX@%$LEX%g
20575 s%@LEXLIB@%$LEXLIB%g
20576 s%@LN_S@%$LN_S%g
20577 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
20578 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
20579 s%@GTK_LIBS@%$GTK_LIBS%g
20580 s%@GTK_CONFIG@%$GTK_CONFIG%g
20581 s%@X_CFLAGS@%$X_CFLAGS%g
20582 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
20583 s%@X_LIBS@%$X_LIBS%g
20584 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
20585 s%@RESCOMP@%$RESCOMP%g
20586 s%@DEREZ@%$DEREZ%g
20587 s%@CXXCPP@%$CXXCPP%g
20588 s%@LIBICONV@%$LIBICONV%g
20589 s%@LEX_STEM@%$LEX_STEM%g
20590 s%@PATH_IFS@%$PATH_IFS%g
20591 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
20592 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
20593 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
20594 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
20595 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
20596 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
20597 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
20598 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
20599 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
20600 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
20601 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
20602 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
20603 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
20604 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
20605 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
20606 s%@WX_ALL@%$WX_ALL%g
20607 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
20608 s%@SHARED_LD@%$SHARED_LD%g
20609 s%@PIC_FLAG@%$PIC_FLAG%g
20610 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
20611 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
20612 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
20613 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
20614 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
20615 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
20616 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
20617 s%@USE_GUI@%$USE_GUI%g
20618 s%@AFMINSTALL@%$AFMINSTALL%g
20619 s%@TOOLKIT@%$TOOLKIT%g
20620 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
20621 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
20622 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
20623 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
20624 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
20625 s%@cross_compiling@%$cross_compiling%g
20626 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
20627 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
20628 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
20629 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
20630 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
20631 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
20632 s%@ALL_HEADERS@%$ALL_HEADERS%g
20633 s%@ALL_SOURCES@%$ALL_SOURCES%g
20634 s%@GUIDIST@%$GUIDIST%g
20635 s%@PORT_FILES@%$PORT_FILES%g
20636 s%@DISTDIR@%$DISTDIR%g
20637 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
20638 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
20639 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
20640 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
20641 s%@EXTRADEFS@%$EXTRADEFS%g
20642 s%@RESFLAGS@%$RESFLAGS%g
20643 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
20644 s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
20645 s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
20646 s%@LIBWXMACRES@%$LIBWXMACRES%g
20647 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
20648 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
20649 s%@DLLTOOL@%$DLLTOOL%g
20650 s%@AS@%$AS%g
20651 s%@NM@%$NM%g
20652 s%@LD@%$LD%g
20653 s%@MAKEINFO@%$MAKEINFO%g
20654 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
20655 s%@SET_MAKE@%$SET_MAKE%g
20656 s%@subdirs@%$subdirs%g
20657
20658 CEOF
20659 EOF
20660
20661 cat >> $CONFIG_STATUS <<\EOF
20662
20663 # Split the substitutions into bite-sized pieces for seds with
20664 # small command number limits, like on Digital OSF/1 and HP-UX.
20665 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
20666 ac_file=1 # Number of current file.
20667 ac_beg=1 # First line for current file.
20668 ac_end=$ac_max_sed_cmds # Line after last line for current file.
20669 ac_more_lines=:
20670 ac_sed_cmds=""
20671 while $ac_more_lines; do
20672 if test $ac_beg -gt 1; then
20673 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
20674 else
20675 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
20676 fi
20677 if test ! -s conftest.s$ac_file; then
20678 ac_more_lines=false
20679 rm -f conftest.s$ac_file
20680 else
20681 if test -z "$ac_sed_cmds"; then
20682 ac_sed_cmds="sed -f conftest.s$ac_file"
20683 else
20684 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
20685 fi
20686 ac_file=`expr $ac_file + 1`
20687 ac_beg=$ac_end
20688 ac_end=`expr $ac_end + $ac_max_sed_cmds`
20689 fi
20690 done
20691 if test -z "$ac_sed_cmds"; then
20692 ac_sed_cmds=cat
20693 fi
20694 EOF
20695
20696 cat >> $CONFIG_STATUS <<EOF
20697
20698 CONFIG_FILES=\${CONFIG_FILES-"wx-config
20699 src/make.env
20700 src/makeprog.env
20701 src/makelib.env
20702 Makefile
20703 "}
20704 EOF
20705 cat >> $CONFIG_STATUS <<\EOF
20706 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
20707 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20708 case "$ac_file" in
20709 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20710 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20711 *) ac_file_in="${ac_file}.in" ;;
20712 esac
20713
20714 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
20715
20716 # Remove last slash and all that follows it. Not all systems have dirname.
20717 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20718 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20719 # The file is in a subdirectory.
20720 test ! -d "$ac_dir" && mkdir "$ac_dir"
20721 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
20722 # A "../" for each directory in $ac_dir_suffix.
20723 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
20724 else
20725 ac_dir_suffix= ac_dots=
20726 fi
20727
20728 case "$ac_given_srcdir" in
20729 .) srcdir=.
20730 if test -z "$ac_dots"; then top_srcdir=.
20731 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20732 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
20733 *) # Relative path.
20734 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20735 top_srcdir="$ac_dots$ac_given_srcdir" ;;
20736 esac
20737
20738 case "$ac_given_INSTALL" in
20739 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20740 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20741 esac
20742
20743 echo creating "$ac_file"
20744 rm -f "$ac_file"
20745 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20746 case "$ac_file" in
20747 *Makefile*) ac_comsub="1i\\
20748 # $configure_input" ;;
20749 *) ac_comsub= ;;
20750 esac
20751
20752 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20753 sed -e "$ac_comsub
20754 s%@configure_input@%$configure_input%g
20755 s%@srcdir@%$srcdir%g
20756 s%@top_srcdir@%$top_srcdir%g
20757 s%@INSTALL@%$INSTALL%g
20758 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20759 fi; done
20760 rm -f conftest.s*
20761
20762 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20763 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20764 #
20765 # ac_d sets the value in "#define NAME VALUE" lines.
20766 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20767 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20768 ac_dC='\3'
20769 ac_dD='%g'
20770 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20771 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20772 ac_uB='\([ ]\)%\1#\2define\3'
20773 ac_uC=' '
20774 ac_uD='\4%g'
20775 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20776 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20777 ac_eB='$%\1#\2define\3'
20778 ac_eC=' '
20779 ac_eD='%g'
20780
20781 if test "${CONFIG_HEADERS+set}" != set; then
20782 EOF
20783 cat >> $CONFIG_STATUS <<EOF
20784 CONFIG_HEADERS="setup.h:setup.h.in"
20785 EOF
20786 cat >> $CONFIG_STATUS <<\EOF
20787 fi
20788 for ac_file in .. $CONFIG_HEADERS; 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 echo creating $ac_file
20797
20798 rm -f conftest.frag conftest.in conftest.out
20799 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20800 cat $ac_file_inputs > conftest.in
20801
20802 EOF
20803
20804 # Transform confdefs.h into a sed script conftest.vals that substitutes
20805 # the proper values into config.h.in to produce config.h. And first:
20806 # Protect against being on the right side of a sed subst in config.status.
20807 # Protect against being in an unquoted here document in config.status.
20808 rm -f conftest.vals
20809 cat > conftest.hdr <<\EOF
20810 s/[\\&%]/\\&/g
20811 s%[\\$`]%\\&%g
20812 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20813 s%ac_d%ac_u%gp
20814 s%ac_u%ac_e%gp
20815 EOF
20816 sed -n -f conftest.hdr confdefs.h > conftest.vals
20817 rm -f conftest.hdr
20818
20819 # This sed command replaces #undef with comments. This is necessary, for
20820 # example, in the case of _POSIX_SOURCE, which is predefined and required
20821 # on some systems where configure will not decide to define it.
20822 cat >> conftest.vals <<\EOF
20823 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
20824 EOF
20825
20826 # Break up conftest.vals because some shells have a limit on
20827 # the size of here documents, and old seds have small limits too.
20828
20829 rm -f conftest.tail
20830 while :
20831 do
20832 ac_lines=`grep -c . conftest.vals`
20833 # grep -c gives empty output for an empty file on some AIX systems.
20834 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20835 # Write a limited-size here document to conftest.frag.
20836 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20837 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
20838 echo 'CEOF
20839 sed -f conftest.frag conftest.in > conftest.out
20840 rm -f conftest.in
20841 mv conftest.out conftest.in
20842 ' >> $CONFIG_STATUS
20843 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20844 rm -f conftest.vals
20845 mv conftest.tail conftest.vals
20846 done
20847 rm -f conftest.vals
20848
20849 cat >> $CONFIG_STATUS <<\EOF
20850 rm -f conftest.frag conftest.h
20851 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
20852 cat conftest.in >> conftest.h
20853 rm -f conftest.in
20854 if cmp -s $ac_file conftest.h 2>/dev/null; then
20855 echo "$ac_file is unchanged"
20856 rm -f conftest.h
20857 else
20858 # Remove last slash and all that follows it. Not all systems have dirname.
20859 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20860 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20861 # The file is in a subdirectory.
20862 test ! -d "$ac_dir" && mkdir "$ac_dir"
20863 fi
20864 rm -f $ac_file
20865 mv conftest.h $ac_file
20866 fi
20867 fi; done
20868
20869 EOF
20870 cat >> $CONFIG_STATUS <<EOF
20871
20872 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
20873 LN_S="${LN_S}"
20874
20875
20876 EOF
20877 cat >> $CONFIG_STATUS <<\EOF
20878
20879 if test ! -h wx-config; then
20880 chmod +x wx-config
20881 mv wx-config wx${TOOLCHAIN_NAME}-config
20882 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
20883 fi
20884
20885 if test ! -d lib; then
20886 mkdir lib
20887 fi
20888 if test ! -d lib/wx; then
20889 mkdir lib/wx
20890 fi
20891 if test ! -d lib/wx/include; then
20892 mkdir lib/wx/include
20893 fi
20894 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
20895 mkdir lib/wx/include/${TOOLCHAIN_NAME}
20896 fi
20897 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
20898 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
20899 fi
20900 if test -f setup.h; then
20901 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
20902 fi
20903
20904 exit 0
20905 EOF
20906 chmod +x $CONFIG_STATUS
20907 rm -fr confdefs* $ac_clean_files
20908 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
20909
20910 if test "$no_recursion" != yes; then
20911
20912 # Remove --cache-file and --srcdir arguments so they do not pile up.
20913 ac_sub_configure_args=
20914 ac_prev=
20915 for ac_arg in $ac_configure_args; do
20916 if test -n "$ac_prev"; then
20917 ac_prev=
20918 continue
20919 fi
20920 case "$ac_arg" in
20921 -cache-file | --cache-file | --cache-fil | --cache-fi \
20922 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20923 ac_prev=cache_file ;;
20924 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20925 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
20926 ;;
20927 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20928 ac_prev=srcdir ;;
20929 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20930 ;;
20931 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20932 esac
20933 done
20934
20935 for ac_config_dir in demos samples utils contrib; do
20936
20937 # Do not complain, so a configure script can configure whichever
20938 # parts of a large source tree are present.
20939 if test ! -d $srcdir/$ac_config_dir; then
20940 continue
20941 fi
20942
20943 echo configuring in $ac_config_dir
20944
20945 case "$srcdir" in
20946 .) ;;
20947 *)
20948 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
20949 else
20950 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
20951 fi
20952 ;;
20953 esac
20954
20955 ac_popdir=`pwd`
20956 cd $ac_config_dir
20957
20958 # A "../" for each directory in /$ac_config_dir.
20959 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
20960
20961 case "$srcdir" in
20962 .) # No --srcdir option. We are building in place.
20963 ac_sub_srcdir=$srcdir ;;
20964 /*) # Absolute path.
20965 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
20966 *) # Relative path.
20967 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
20968 esac
20969
20970 # Check for guested configure; otherwise get Cygnus style configure.
20971 if test -f $ac_sub_srcdir/configure; then
20972 ac_sub_configure=$ac_sub_srcdir/configure
20973 elif test -f $ac_sub_srcdir/configure.in; then
20974 ac_sub_configure=$ac_configure
20975 else
20976 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
20977 ac_sub_configure=
20978 fi
20979
20980 # The recursion is here.
20981 if test -n "$ac_sub_configure"; then
20982
20983 # Make the cache file name correct relative to the subdirectory.
20984 case "$cache_file" in
20985 /*) ac_sub_cache_file=$cache_file ;;
20986 *) # Relative path.
20987 ac_sub_cache_file="$ac_dots$cache_file" ;;
20988 esac
20989 case "$ac_given_INSTALL" in
20990 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20991 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20992 esac
20993
20994 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
20995 # The eval makes quoting arguments work.
20996 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
20997 then :
20998 else
20999 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21000 fi
21001 fi
21002
21003 cd $ac_popdir
21004 done
21005 fi
21006
21007