]> git.saurik.com Git - wxWidgets.git/blob - configure
fixed typo
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59 # Configure paths for GTK+
60 # Owen Taylor 1997-2001
61
62
63
64 # Configure paths for GTK+
65 # Owen Taylor 97-11-3
66
67
68
69 # Guess values for system-dependent variables and create Makefiles.
70 # Generated automatically using autoconf version 2.13
71 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
72 #
73 # This configure script is free software; the Free Software Foundation
74 # gives unlimited permission to copy, distribute and modify it.
75
76 # Defaults:
77 ac_help=
78 ac_default_prefix=/usr/local
79 # Any additions from configure.in:
80 ac_help="$ac_help
81 --enable-gui use GUI classes"
82 ac_help="$ac_help
83 --enable-universal use wxWindows GUI controls instead of native ones"
84 ac_help="$ac_help
85 --with-gtk use GTK+"
86 ac_help="$ac_help
87 --with-motif use Motif/Lesstif"
88 ac_help="$ac_help
89 --with-mac use Mac OS X"
90 ac_help="$ac_help
91 --with-wine use WINE"
92 ac_help="$ac_help
93 --with-msw use MS-Windows"
94 ac_help="$ac_help
95 --with-pm use OS/2 Presentation Manager"
96 ac_help="$ac_help
97 --with-mgl use SciTech MGL"
98 ac_help="$ac_help
99 --with-microwin use MicroWindows"
100 ac_help="$ac_help
101 --with-x11 use X11"
102 ac_help="$ac_help
103 --enable-nanox use NanoX"
104 ac_help="$ac_help
105 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
106 ac_help="$ac_help
107 --with-libpng use libpng (PNG image format)"
108 ac_help="$ac_help
109 --with-libjpeg use libjpeg (JPEG file format)"
110 ac_help="$ac_help
111 --with-libtiff use libtiff (TIFF file format)"
112 ac_help="$ac_help
113 --with-opengl use OpenGL (or Mesa)"
114 ac_help="$ac_help
115 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
116 ac_help="$ac_help
117 --with-regex enable support for wxRegEx class"
118 ac_help="$ac_help
119 --with-zlib use zlib for LZW compression"
120 ac_help="$ac_help
121 --with-odbc use the IODBC and wxODBC classes"
122 ac_help="$ac_help
123 --enable-shared create shared library code"
124 ac_help="$ac_help
125 --enable-soname set the DT_SONAME field in ELF shared libraries"
126 ac_help="$ac_help
127 --enable-optimise create optimised code"
128 ac_help="$ac_help
129 --enable-debug same as debug_flag and debug_info"
130 ac_help="$ac_help
131 --enable-precomp enable use of precompiled headers (Mac OS X)"
132 ac_help="$ac_help
133 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
134 ac_help="$ac_help
135 --enable-debug_info create code with debugging information"
136 ac_help="$ac_help
137 --enable-debug_gdb create code with extra GDB debugging information"
138 ac_help="$ac_help
139 --enable-debug_cntxt use wxDebugContext"
140 ac_help="$ac_help
141 --enable-mem_tracing create code with memory tracing"
142 ac_help="$ac_help
143 --enable-profile create code with profiling information"
144 ac_help="$ac_help
145 --enable-no_rtti create code without RTTI information"
146 ac_help="$ac_help
147 --enable-no_exceptions create code without C++ exceptions handling"
148 ac_help="$ac_help
149 --enable-permissive compile code disregarding strict ANSI"
150 ac_help="$ac_help
151 --enable-no_deps create code without dependency information"
152 ac_help="$ac_help
153 --enable-compat20 enable wxWindows 2.0 compatibility"
154 ac_help="$ac_help
155 --disable-compat22 disable wxWindows 2.2 compatibility"
156 ac_help="$ac_help
157 --enable-intl use internationalization system"
158 ac_help="$ac_help
159 --enable-config use wxConfig (and derived) classes"
160 ac_help="$ac_help
161 --enable-protocols use wxProtocol and derived classes"
162 ac_help="$ac_help
163 --enable-ftp use wxFTP (requires wxProtocol"
164 ac_help="$ac_help
165 --enable-http use wxHTTP (requires wxProtocol"
166 ac_help="$ac_help
167 --enable-fileproto use wxFileProto class (requires wxProtocol"
168 ac_help="$ac_help
169 --enable-sockets use socket/network classes"
170 ac_help="$ac_help
171 --enable-ipc use interprocess communication (wxSocket etc.)"
172 ac_help="$ac_help
173 --enable-cmdline use wxCmdLineParser class"
174 ac_help="$ac_help
175 --enable-datetime use wxDateTime class"
176 ac_help="$ac_help
177 --enable-timedate use obsolete wxDate/wxTime classes"
178 ac_help="$ac_help
179 --enable-stopwatch use wxStopWatch class"
180 ac_help="$ac_help
181 --enable-dialupman use dialup network classes"
182 ac_help="$ac_help
183 --enable-apple_ieee use the Apple IEEE codec"
184 ac_help="$ac_help
185 --enable-timer use wxTimer class"
186 ac_help="$ac_help
187 --enable-wave use wxWave class"
188 ac_help="$ac_help
189 --enable-fraction use wxFraction class"
190 ac_help="$ac_help
191 --enable-dynlib use wxLibrary class for DLL loading"
192 ac_help="$ac_help
193 --enable-dynamicloader use (new) wxDynamicLibrary class"
194 ac_help="$ac_help
195 --enable-longlong use wxLongLong class"
196 ac_help="$ac_help
197 --enable-geometry use geometry class"
198 ac_help="$ac_help
199 --enable-log use logging system"
200 ac_help="$ac_help
201 --enable-streams use wxStream etc classes"
202 ac_help="$ac_help
203 --enable-file use wxFile classes"
204 ac_help="$ac_help
205 --enable-ffile use wxFFile classes"
206 ac_help="$ac_help
207 --enable-textbuf use wxTextBuffer class"
208 ac_help="$ac_help
209 --enable-textfile use wxTextFile class"
210 ac_help="$ac_help
211 --enable-fontmap use font encodings conversion classes"
212 ac_help="$ac_help
213 --enable-unicode compile wxString with Unicode support"
214 ac_help="$ac_help
215 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
216 ac_help="$ac_help
217 --enable-wxprintfv use wxWindows implementation of vprintf()"
218 ac_help="$ac_help
219 --enable-std_iostreams use standard C++ stream classes"
220 ac_help="$ac_help
221 --enable-filesystem use virtual file systems classes"
222 ac_help="$ac_help
223 --enable-fs_inet use virtual HTTP/FTP filesystems"
224 ac_help="$ac_help
225 --enable-fs_zip use virtual ZIP filesystems"
226 ac_help="$ac_help
227 --enable-zipstream use wxZipInputStream"
228 ac_help="$ac_help
229 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
230 ac_help="$ac_help
231 --enable-snglinst use wxSingleInstanceChecker class"
232 ac_help="$ac_help
233 --enable-mimetype use wxMimeTypesManager"
234 ac_help="$ac_help
235 --enable-sysoptions use wxSystemOptions"
236 ac_help="$ac_help
237 --enable-url use wxURL class"
238 ac_help="$ac_help
239 --enable-protocol use wxProtocol class"
240 ac_help="$ac_help
241 --enable-protocol-http HTTP support in wxProtocol"
242 ac_help="$ac_help
243 --enable-protocol-ftp FTP support in wxProtocol"
244 ac_help="$ac_help
245 --enable-protocol-file FILE support in wxProtocol"
246 ac_help="$ac_help
247 --enable-threads use threads"
248 ac_help="$ac_help
249 --enable-docview use document view architecture"
250 ac_help="$ac_help
251 --enable-help use help subsystem"
252 ac_help="$ac_help
253 --enable-mshtmlhelp use MS HTML Help (win32)"
254 ac_help="$ac_help
255 --enable-html use wxHTML sub-library"
256 ac_help="$ac_help
257 --enable-htmlhelp use wxHTML-based help"
258 ac_help="$ac_help
259 --enable-constraints use layout-constraints system"
260 ac_help="$ac_help
261 --enable-printarch use printing architecture"
262 ac_help="$ac_help
263 --enable-mdi use multiple document interface architecture"
264 ac_help="$ac_help
265 --enable-loggui use standard GUI logger"
266 ac_help="$ac_help
267 --enable-logwin use wxLogWindow"
268 ac_help="$ac_help
269 --enable-logdialog use wxLogDialog"
270 ac_help="$ac_help
271 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
272 ac_help="$ac_help
273 --enable-prologio use Prolog IO library"
274 ac_help="$ac_help
275 --enable-resources use wxWindows resources"
276 ac_help="$ac_help
277 --enable-xresources use X resources for save (default for gtk+)"
278 ac_help="$ac_help
279 --enable-clipboard use wxClipboard classes"
280 ac_help="$ac_help
281 --enable-dnd use Drag'n'Drop classes"
282 ac_help="$ac_help
283 --enable-metafile use win32 metafiles"
284 ac_help="$ac_help
285 --enable-treelayout use wxTreeLayout classes"
286 ac_help="$ac_help
287 --enable-controls use all usual controls"
288 ac_help="$ac_help
289 --enable-accel use accelerators"
290 ac_help="$ac_help
291 --enable-button use wxButton class"
292 ac_help="$ac_help
293 --enable-bmpbutton use wxBitmapButton class"
294 ac_help="$ac_help
295 --enable-calendar use wxCalendarCtrl class"
296 ac_help="$ac_help
297 --enable-caret use wxCaret class"
298 ac_help="$ac_help
299 --enable-checkbox use wxCheckBox class"
300 ac_help="$ac_help
301 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
302 ac_help="$ac_help
303 --enable-choice use wxChoice class"
304 ac_help="$ac_help
305 --enable-combobox use wxComboBox classes"
306 ac_help="$ac_help
307 --enable-gauge use wxGauge class"
308 ac_help="$ac_help
309 --enable-grid use wxGrid class"
310 ac_help="$ac_help
311 --enable-newgrid use new wxGrid class"
312 ac_help="$ac_help
313 --enable-imaglist use wxImageList class"
314 ac_help="$ac_help
315 --enable-listbox use wxListBox class"
316 ac_help="$ac_help
317 --enable-listctrl use wxListCtrl class"
318 ac_help="$ac_help
319 --enable-notebook use wxNotebook class"
320 ac_help="$ac_help
321 --enable-propsheet use wxPropertySheet class"
322 ac_help="$ac_help
323 --enable-radiobox use wxRadioBox class"
324 ac_help="$ac_help
325 --enable-radiobtn use wxRadioButton class"
326 ac_help="$ac_help
327 --enable-sash use wxSashWindow class"
328 ac_help="$ac_help
329 --enable-scrollbar use wxScrollBar class and scrollable windows"
330 ac_help="$ac_help
331 --enable-slider use wxSlider class"
332 ac_help="$ac_help
333 --enable-spinbtn use wxSpinButton class"
334 ac_help="$ac_help
335 --enable-spinctrl use wxSpinCtrl class"
336 ac_help="$ac_help
337 --enable-splitter use wxSplitterWindow class"
338 ac_help="$ac_help
339 --enable-statbmp use wxStaticBitmap class"
340 ac_help="$ac_help
341 --enable-statbox use wxStaticBox class"
342 ac_help="$ac_help
343 --enable-statline use wxStaticLine class"
344 ac_help="$ac_help
345 --enable-stattext use wxStaticText class"
346 ac_help="$ac_help
347 --enable-statusbar use wxStatusBar class"
348 ac_help="$ac_help
349 --enable-tabdialog use wxTabControl class"
350 ac_help="$ac_help
351 --enable-textctrl use wxTextCtrl class"
352 ac_help="$ac_help
353 --enable-togglebtn use wxToggleButton class"
354 ac_help="$ac_help
355 --enable-toolbar use wxToolBar class"
356 ac_help="$ac_help
357 --enable-tbarnative use native wxToolBar class"
358 ac_help="$ac_help
359 --enable-tbarsmpl use wxToolBarSimple class"
360 ac_help="$ac_help
361 --enable-treectrl use wxTreeCtrl class"
362 ac_help="$ac_help
363 --enable-tipwindow use wxTipWindow class"
364 ac_help="$ac_help
365 --enable-popupwin use wxPopUpWindow class"
366 ac_help="$ac_help
367 --enable-commondlg use all common dialogs"
368 ac_help="$ac_help
369 --enable-choicedlg use wxChoiceDialog"
370 ac_help="$ac_help
371 --enable-coldlg use wxColourDialog"
372 ac_help="$ac_help
373 --enable-filedlg use wxFileDialog"
374 ac_help="$ac_help
375 --enable-finddlg use wxFindReplaceDialog"
376 ac_help="$ac_help
377 --enable-fontdlg use wxFontDialog"
378 ac_help="$ac_help
379 --enable-dirdlg use wxDirDialog"
380 ac_help="$ac_help
381 --enable-msgdlg use wxMessageDialog"
382 ac_help="$ac_help
383 --enable-numberdlg use wxNumberEntryDialog"
384 ac_help="$ac_help
385 --enable-splash use wxSplashScreen"
386 ac_help="$ac_help
387 --enable-textdlg use wxTextDialog"
388 ac_help="$ac_help
389 --enable-tipdlg use startup tips"
390 ac_help="$ac_help
391 --enable-progressdlg use wxProgressDialog"
392 ac_help="$ac_help
393 --enable-wizarddlg use wxWizard"
394 ac_help="$ac_help
395 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
396 ac_help="$ac_help
397 --enable-miniframe use wxMiniFrame class"
398 ac_help="$ac_help
399 --enable-tooltips use wxToolTip class"
400 ac_help="$ac_help
401 --enable-splines use spline drawing code"
402 ac_help="$ac_help
403 --enable-validators use wxValidator and derived classes"
404 ac_help="$ac_help
405 --enable-busyinfo use wxBusyInfo"
406 ac_help="$ac_help
407 --enable-joystick use wxJoystick (Linux only)"
408 ac_help="$ac_help
409 --enable-metafiles use wxMetaFile (Windows only)"
410 ac_help="$ac_help
411 --enable-dragimage use wxDragImage"
412 ac_help="$ac_help
413 --enable-palette use wxPalette class"
414 ac_help="$ac_help
415 --enable-image use wxImage class"
416 ac_help="$ac_help
417 --enable-gif use gif images (GIF file format)"
418 ac_help="$ac_help
419 --enable-pcx use pcx images (PCX file format)"
420 ac_help="$ac_help
421 --enable-iff use iff images (IFF file format)"
422 ac_help="$ac_help
423 --enable-pnm use pnm images (PNM file format)"
424 ac_help="$ac_help
425 --enable-xpm use xpm images (XPM file format)"
426 ac_help="$ac_help
427 --enable-icocur use Windows ICO and CUR formats"
428 ac_help="$ac_help
429 --disable-largefile omit support for large files"
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-gtk-prefix=PFX Prefix where GTK is installed (optional)"
434 ac_help="$ac_help
435 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
436 ac_help="$ac_help
437 --disable-gtktest Do not try to compile and run a test GTK program"
438 ac_help="$ac_help
439 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
440 ac_help="$ac_help
441 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
442 ac_help="$ac_help
443 --disable-gtktest Do not try to compile and run a test GTK program"
444 ac_help="$ac_help
445 --with-x use the X Window System"
446 ac_help="$ac_help
447 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
448
449 # Initialize some variables set by options.
450 # The variables have the same names as the options, with
451 # dashes changed to underlines.
452 build=NONE
453 cache_file=./config.cache
454 exec_prefix=NONE
455 host=NONE
456 no_create=
457 nonopt=NONE
458 no_recursion=
459 prefix=NONE
460 program_prefix=NONE
461 program_suffix=NONE
462 program_transform_name=s,x,x,
463 silent=
464 site=
465 srcdir=
466 target=NONE
467 verbose=
468 x_includes=NONE
469 x_libraries=NONE
470 bindir='${exec_prefix}/bin'
471 sbindir='${exec_prefix}/sbin'
472 libexecdir='${exec_prefix}/libexec'
473 datadir='${prefix}/share'
474 sysconfdir='${prefix}/etc'
475 sharedstatedir='${prefix}/com'
476 localstatedir='${prefix}/var'
477 libdir='${exec_prefix}/lib'
478 includedir='${prefix}/include'
479 oldincludedir='/usr/include'
480 infodir='${prefix}/info'
481 mandir='${prefix}/man'
482
483 # Initialize some other variables.
484 subdirs=
485 MFLAGS= MAKEFLAGS=
486 SHELL=${CONFIG_SHELL-/bin/sh}
487 # Maximum number of lines to put in a shell here document.
488 ac_max_here_lines=12
489
490 ac_prev=
491 for ac_option
492 do
493
494 # If the previous option needs an argument, assign it.
495 if test -n "$ac_prev"; then
496 eval "$ac_prev=\$ac_option"
497 ac_prev=
498 continue
499 fi
500
501 case "$ac_option" in
502 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
503 *) ac_optarg= ;;
504 esac
505
506 # Accept the important Cygnus configure options, so we can diagnose typos.
507
508 case "$ac_option" in
509
510 -bindir | --bindir | --bindi | --bind | --bin | --bi)
511 ac_prev=bindir ;;
512 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
513 bindir="$ac_optarg" ;;
514
515 -build | --build | --buil | --bui | --bu)
516 ac_prev=build ;;
517 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
518 build="$ac_optarg" ;;
519
520 -cache-file | --cache-file | --cache-fil | --cache-fi \
521 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
522 ac_prev=cache_file ;;
523 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
524 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
525 cache_file="$ac_optarg" ;;
526
527 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
528 ac_prev=datadir ;;
529 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
530 | --da=*)
531 datadir="$ac_optarg" ;;
532
533 -disable-* | --disable-*)
534 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
535 # Reject names that are not valid shell variable names.
536 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
537 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
538 fi
539 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
540 eval "enable_${ac_feature}=no" ;;
541
542 -enable-* | --enable-*)
543 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
544 # Reject names that are not valid shell variable names.
545 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
546 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
547 fi
548 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
549 case "$ac_option" in
550 *=*) ;;
551 *) ac_optarg=yes ;;
552 esac
553 eval "enable_${ac_feature}='$ac_optarg'" ;;
554
555 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
556 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
557 | --exec | --exe | --ex)
558 ac_prev=exec_prefix ;;
559 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
560 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
561 | --exec=* | --exe=* | --ex=*)
562 exec_prefix="$ac_optarg" ;;
563
564 -gas | --gas | --ga | --g)
565 # Obsolete; use --with-gas.
566 with_gas=yes ;;
567
568 -help | --help | --hel | --he)
569 # Omit some internal or obsolete options to make the list less imposing.
570 # This message is too long to be a string in the A/UX 3.1 sh.
571 cat << EOF
572 Usage: configure [options] [host]
573 Options: [defaults in brackets after descriptions]
574 Configuration:
575 --cache-file=FILE cache test results in FILE
576 --help print this message
577 --no-create do not create output files
578 --quiet, --silent do not print \`checking...' messages
579 --version print the version of autoconf that created configure
580 Directory and file names:
581 --prefix=PREFIX install architecture-independent files in PREFIX
582 [$ac_default_prefix]
583 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
584 [same as prefix]
585 --bindir=DIR user executables in DIR [EPREFIX/bin]
586 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
587 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
588 --datadir=DIR read-only architecture-independent data in DIR
589 [PREFIX/share]
590 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
591 --sharedstatedir=DIR modifiable architecture-independent data in DIR
592 [PREFIX/com]
593 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
594 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
595 --includedir=DIR C header files in DIR [PREFIX/include]
596 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
597 --infodir=DIR info documentation in DIR [PREFIX/info]
598 --mandir=DIR man documentation in DIR [PREFIX/man]
599 --srcdir=DIR find the sources in DIR [configure dir or ..]
600 --program-prefix=PREFIX prepend PREFIX to installed program names
601 --program-suffix=SUFFIX append SUFFIX to installed program names
602 --program-transform-name=PROGRAM
603 run sed PROGRAM on installed program names
604 EOF
605 cat << EOF
606 Host type:
607 --build=BUILD configure for building on BUILD [BUILD=HOST]
608 --host=HOST configure for HOST [guessed]
609 --target=TARGET configure for TARGET [TARGET=HOST]
610 Features and packages:
611 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
612 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
613 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
614 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
615 --x-includes=DIR X include files are in DIR
616 --x-libraries=DIR X library files are in DIR
617 EOF
618 if test -n "$ac_help"; then
619 echo "--enable and --with options recognized:$ac_help"
620 fi
621 exit 0 ;;
622
623 -host | --host | --hos | --ho)
624 ac_prev=host ;;
625 -host=* | --host=* | --hos=* | --ho=*)
626 host="$ac_optarg" ;;
627
628 -includedir | --includedir | --includedi | --included | --include \
629 | --includ | --inclu | --incl | --inc)
630 ac_prev=includedir ;;
631 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
632 | --includ=* | --inclu=* | --incl=* | --inc=*)
633 includedir="$ac_optarg" ;;
634
635 -infodir | --infodir | --infodi | --infod | --info | --inf)
636 ac_prev=infodir ;;
637 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
638 infodir="$ac_optarg" ;;
639
640 -libdir | --libdir | --libdi | --libd)
641 ac_prev=libdir ;;
642 -libdir=* | --libdir=* | --libdi=* | --libd=*)
643 libdir="$ac_optarg" ;;
644
645 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
646 | --libexe | --libex | --libe)
647 ac_prev=libexecdir ;;
648 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
649 | --libexe=* | --libex=* | --libe=*)
650 libexecdir="$ac_optarg" ;;
651
652 -localstatedir | --localstatedir | --localstatedi | --localstated \
653 | --localstate | --localstat | --localsta | --localst \
654 | --locals | --local | --loca | --loc | --lo)
655 ac_prev=localstatedir ;;
656 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
657 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
658 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
659 localstatedir="$ac_optarg" ;;
660
661 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
662 ac_prev=mandir ;;
663 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
664 mandir="$ac_optarg" ;;
665
666 -nfp | --nfp | --nf)
667 # Obsolete; use --without-fp.
668 with_fp=no ;;
669
670 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
671 | --no-cr | --no-c)
672 no_create=yes ;;
673
674 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
675 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
676 no_recursion=yes ;;
677
678 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
679 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
680 | --oldin | --oldi | --old | --ol | --o)
681 ac_prev=oldincludedir ;;
682 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
683 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
684 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
685 oldincludedir="$ac_optarg" ;;
686
687 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
688 ac_prev=prefix ;;
689 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
690 prefix="$ac_optarg" ;;
691
692 -program-prefix | --program-prefix | --program-prefi | --program-pref \
693 | --program-pre | --program-pr | --program-p)
694 ac_prev=program_prefix ;;
695 -program-prefix=* | --program-prefix=* | --program-prefi=* \
696 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
697 program_prefix="$ac_optarg" ;;
698
699 -program-suffix | --program-suffix | --program-suffi | --program-suff \
700 | --program-suf | --program-su | --program-s)
701 ac_prev=program_suffix ;;
702 -program-suffix=* | --program-suffix=* | --program-suffi=* \
703 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
704 program_suffix="$ac_optarg" ;;
705
706 -program-transform-name | --program-transform-name \
707 | --program-transform-nam | --program-transform-na \
708 | --program-transform-n | --program-transform- \
709 | --program-transform | --program-transfor \
710 | --program-transfo | --program-transf \
711 | --program-trans | --program-tran \
712 | --progr-tra | --program-tr | --program-t)
713 ac_prev=program_transform_name ;;
714 -program-transform-name=* | --program-transform-name=* \
715 | --program-transform-nam=* | --program-transform-na=* \
716 | --program-transform-n=* | --program-transform-=* \
717 | --program-transform=* | --program-transfor=* \
718 | --program-transfo=* | --program-transf=* \
719 | --program-trans=* | --program-tran=* \
720 | --progr-tra=* | --program-tr=* | --program-t=*)
721 program_transform_name="$ac_optarg" ;;
722
723 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
724 | -silent | --silent | --silen | --sile | --sil)
725 silent=yes ;;
726
727 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
728 ac_prev=sbindir ;;
729 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
730 | --sbi=* | --sb=*)
731 sbindir="$ac_optarg" ;;
732
733 -sharedstatedir | --sharedstatedir | --sharedstatedi \
734 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
735 | --sharedst | --shareds | --shared | --share | --shar \
736 | --sha | --sh)
737 ac_prev=sharedstatedir ;;
738 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
739 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
740 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
741 | --sha=* | --sh=*)
742 sharedstatedir="$ac_optarg" ;;
743
744 -site | --site | --sit)
745 ac_prev=site ;;
746 -site=* | --site=* | --sit=*)
747 site="$ac_optarg" ;;
748
749 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
750 ac_prev=srcdir ;;
751 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
752 srcdir="$ac_optarg" ;;
753
754 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
755 | --syscon | --sysco | --sysc | --sys | --sy)
756 ac_prev=sysconfdir ;;
757 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
758 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
759 sysconfdir="$ac_optarg" ;;
760
761 -target | --target | --targe | --targ | --tar | --ta | --t)
762 ac_prev=target ;;
763 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
764 target="$ac_optarg" ;;
765
766 -v | -verbose | --verbose | --verbos | --verbo | --verb)
767 verbose=yes ;;
768
769 -version | --version | --versio | --versi | --vers)
770 echo "configure generated by autoconf version 2.13"
771 exit 0 ;;
772
773 -with-* | --with-*)
774 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
775 # Reject names that are not valid shell variable names.
776 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
777 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
778 fi
779 ac_package=`echo $ac_package| sed 's/-/_/g'`
780 case "$ac_option" in
781 *=*) ;;
782 *) ac_optarg=yes ;;
783 esac
784 eval "with_${ac_package}='$ac_optarg'" ;;
785
786 -without-* | --without-*)
787 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
788 # Reject names that are not valid shell variable names.
789 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
790 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
791 fi
792 ac_package=`echo $ac_package| sed 's/-/_/g'`
793 eval "with_${ac_package}=no" ;;
794
795 --x)
796 # Obsolete; use --with-x.
797 with_x=yes ;;
798
799 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
800 | --x-incl | --x-inc | --x-in | --x-i)
801 ac_prev=x_includes ;;
802 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
803 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
804 x_includes="$ac_optarg" ;;
805
806 -x-libraries | --x-libraries | --x-librarie | --x-librari \
807 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
808 ac_prev=x_libraries ;;
809 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
810 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
811 x_libraries="$ac_optarg" ;;
812
813 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
814 ;;
815
816 *)
817 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
818 echo "configure: warning: $ac_option: invalid host type" 1>&2
819 fi
820 if test "x$nonopt" != xNONE; then
821 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
822 fi
823 nonopt="$ac_option"
824 ;;
825
826 esac
827 done
828
829 if test -n "$ac_prev"; then
830 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
831 fi
832
833 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
834
835 # File descriptor usage:
836 # 0 standard input
837 # 1 file creation
838 # 2 errors and warnings
839 # 3 some systems may open it to /dev/tty
840 # 4 used on the Kubota Titan
841 # 6 checking for... messages and results
842 # 5 compiler messages saved in config.log
843 if test "$silent" = yes; then
844 exec 6>/dev/null
845 else
846 exec 6>&1
847 fi
848 exec 5>./config.log
849
850 echo "\
851 This file contains any messages produced by compilers while
852 running configure, to aid debugging if configure makes a mistake.
853 " 1>&5
854
855 # Strip out --no-create and --no-recursion so they do not pile up.
856 # Also quote any args containing shell metacharacters.
857 ac_configure_args=
858 for ac_arg
859 do
860 case "$ac_arg" in
861 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
862 | --no-cr | --no-c) ;;
863 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
864 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
865 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
866 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
867 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
868 esac
869 done
870
871 # NLS nuisances.
872 # Only set these to C if already set. These must not be set unconditionally
873 # because not all systems understand e.g. LANG=C (notably SCO).
874 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
875 # Non-C LC_CTYPE values break the ctype check.
876 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
877 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
878 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
879 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
880
881 # confdefs.h avoids OS command line length limits that DEFS can exceed.
882 rm -rf conftest* confdefs.h
883 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
884 echo > confdefs.h
885
886 # A filename unique to this package, relative to the directory that
887 # configure is in, which we can look for to find out if srcdir is correct.
888 ac_unique_file=wx-config.in
889
890 # Find the source files, if location was not specified.
891 if test -z "$srcdir"; then
892 ac_srcdir_defaulted=yes
893 # Try the directory containing this script, then its parent.
894 ac_prog=$0
895 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
896 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
897 srcdir=$ac_confdir
898 if test ! -r $srcdir/$ac_unique_file; then
899 srcdir=..
900 fi
901 else
902 ac_srcdir_defaulted=no
903 fi
904 if test ! -r $srcdir/$ac_unique_file; then
905 if test "$ac_srcdir_defaulted" = yes; then
906 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
907 else
908 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
909 fi
910 fi
911 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
912
913 # Prefer explicitly selected file to automatically selected ones.
914 if test -z "$CONFIG_SITE"; then
915 if test "x$prefix" != xNONE; then
916 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
917 else
918 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
919 fi
920 fi
921 for ac_site_file in $CONFIG_SITE; do
922 if test -r "$ac_site_file"; then
923 echo "loading site script $ac_site_file"
924 . "$ac_site_file"
925 fi
926 done
927
928 if test -r "$cache_file"; then
929 echo "loading cache $cache_file"
930 . $cache_file
931 else
932 echo "creating cache $cache_file"
933 > $cache_file
934 fi
935
936 ac_ext=c
937 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
938 ac_cpp='$CPP $CPPFLAGS'
939 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
940 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
941 cross_compiling=$ac_cv_prog_cc_cross
942
943 ac_exeext=
944 ac_objext=o
945 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
946 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
947 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
948 ac_n= ac_c='
949 ' ac_t=' '
950 else
951 ac_n=-n ac_c= ac_t=
952 fi
953 else
954 ac_n= ac_c='\c' ac_t=
955 fi
956
957
958
959 ac_aux_dir=
960 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
961 if test -f $ac_dir/install-sh; then
962 ac_aux_dir=$ac_dir
963 ac_install_sh="$ac_aux_dir/install-sh -c"
964 break
965 elif test -f $ac_dir/install.sh; then
966 ac_aux_dir=$ac_dir
967 ac_install_sh="$ac_aux_dir/install.sh -c"
968 break
969 fi
970 done
971 if test -z "$ac_aux_dir"; then
972 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
973 fi
974 ac_config_guess=$ac_aux_dir/config.guess
975 ac_config_sub=$ac_aux_dir/config.sub
976 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
977
978
979 # Do some error checking and defaulting for the host and target type.
980 # The inputs are:
981 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
982 #
983 # The rules are:
984 # 1. You are not allowed to specify --host, --target, and nonopt at the
985 # same time.
986 # 2. Host defaults to nonopt.
987 # 3. If nonopt is not specified, then host defaults to the current host,
988 # as determined by config.guess.
989 # 4. Target and build default to nonopt.
990 # 5. If nonopt is not specified, then target and build default to host.
991
992 # The aliases save the names the user supplied, while $host etc.
993 # will get canonicalized.
994 case $host---$target---$nonopt in
995 NONE---*---* | *---NONE---* | *---*---NONE) ;;
996 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
997 esac
998
999
1000 # Make sure we can run config.sub.
1001 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1002 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1003 fi
1004
1005 echo $ac_n "checking host system type""... $ac_c" 1>&6
1006 echo "configure:1007: checking host system type" >&5
1007
1008 host_alias=$host
1009 case "$host_alias" in
1010 NONE)
1011 case $nonopt in
1012 NONE)
1013 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1014 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1015 fi ;;
1016 *) host_alias=$nonopt ;;
1017 esac ;;
1018 esac
1019
1020 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1021 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1022 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1023 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1024 echo "$ac_t""$host" 1>&6
1025
1026 echo $ac_n "checking target system type""... $ac_c" 1>&6
1027 echo "configure:1028: checking target system type" >&5
1028
1029 target_alias=$target
1030 case "$target_alias" in
1031 NONE)
1032 case $nonopt in
1033 NONE) target_alias=$host_alias ;;
1034 *) target_alias=$nonopt ;;
1035 esac ;;
1036 esac
1037
1038 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1039 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1040 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1041 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1042 echo "$ac_t""$target" 1>&6
1043
1044 echo $ac_n "checking build system type""... $ac_c" 1>&6
1045 echo "configure:1046: checking build system type" >&5
1046
1047 build_alias=$build
1048 case "$build_alias" in
1049 NONE)
1050 case $nonopt in
1051 NONE) build_alias=$host_alias ;;
1052 *) build_alias=$nonopt ;;
1053 esac ;;
1054 esac
1055
1056 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1057 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1058 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1059 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1060 echo "$ac_t""$build" 1>&6
1061
1062 test "$host_alias" != "$target_alias" &&
1063 test "$program_prefix$program_suffix$program_transform_name" = \
1064 NONENONEs,x,x, &&
1065 program_prefix=${target_alias}-
1066
1067
1068
1069 WX_MAJOR_VERSION_NUMBER=2
1070 WX_MINOR_VERSION_NUMBER=3
1071 WX_RELEASE_NUMBER=3
1072
1073 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1074 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1075
1076 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1077
1078 WX_CURRENT=2
1079 WX_REVISION=0
1080 WX_AGE=0
1081
1082
1083
1084 USE_UNIX=1
1085 USE_WIN32=0
1086 USE_DOS=0
1087 USE_BEOS=0
1088 USE_MAC=0
1089
1090 USE_LINUX=
1091 USE_SGI=
1092 USE_HPUX=
1093 USE_SYSV=
1094 USE_SVR4=
1095 USE_AIX=
1096 USE_SUN=
1097 USE_SOLARIS=
1098 USE_SUNOS=
1099 USE_ALPHA=
1100 USE_OSF=
1101 USE_BSD=
1102 USE_DARWIN=
1103 USE_FREEBSD=
1104 USE_OPENBSD=
1105 USE_NETBSD=
1106 USE_VMS=
1107 USE_ULTRIX=
1108 USE_DATA_GENERAL=
1109
1110 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1111
1112 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE X11"
1113
1114 DEFAULT_wxUSE_GTK=0
1115 DEFAULT_wxUSE_MAC=0
1116 DEFAULT_wxUSE_MGL=0
1117 DEFAULT_wxUSE_MICROWIN=0
1118 DEFAULT_wxUSE_MOTIF=0
1119 DEFAULT_wxUSE_MSW=0
1120 DEFAULT_wxUSE_PM=0
1121 DEFAULT_wxUSE_WINE=0
1122 DEFAULT_wxUSE_X11=0
1123
1124 DEFAULT_DEFAULT_wxUSE_GTK=0
1125 DEFAULT_DEFAULT_wxUSE_MAC=0
1126 DEFAULT_DEFAULT_wxUSE_MGL=0
1127 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1128 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1129 DEFAULT_DEFAULT_wxUSE_MSW=0
1130 DEFAULT_DEFAULT_wxUSE_PM=0
1131 DEFAULT_DEFAULT_wxUSE_WINE=0
1132 DEFAULT_DEFAULT_wxUSE_X11=0
1133
1134 PROGRAM_EXT=
1135 SO_SUFFIX=so
1136
1137 case "${host}" in
1138 *-hp-hpux* )
1139 USE_HPUX=1
1140 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1141 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1142 SO_SUFFIX=sl
1143 cat >> confdefs.h <<\EOF
1144 #define __HPUX__ 1
1145 EOF
1146
1147 ;;
1148 *-*-linux* )
1149 USE_LINUX=1
1150 cat >> confdefs.h <<\EOF
1151 #define __LINUX__ 1
1152 EOF
1153
1154 TMP=`uname -m`
1155 if test "x$TMP" = "xalpha"; then
1156 USE_ALPHA=1
1157 cat >> confdefs.h <<\EOF
1158 #define __ALPHA__ 1
1159 EOF
1160
1161 fi
1162 DEFAULT_DEFAULT_wxUSE_GTK=1
1163 ;;
1164 *-*-irix5* | *-*-irix6* )
1165 USE_SGI=1
1166 USE_SVR4=1
1167 cat >> confdefs.h <<\EOF
1168 #define __SGI__ 1
1169 EOF
1170
1171 cat >> confdefs.h <<\EOF
1172 #define __SVR4__ 1
1173 EOF
1174
1175 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1176 ;;
1177 *-*-solaris2* )
1178 USE_SUN=1
1179 USE_SOLARIS=1
1180 USE_SVR4=1
1181 cat >> confdefs.h <<\EOF
1182 #define __SUN__ 1
1183 EOF
1184
1185 cat >> confdefs.h <<\EOF
1186 #define __SOLARIS__ 1
1187 EOF
1188
1189 cat >> confdefs.h <<\EOF
1190 #define __SVR4__ 1
1191 EOF
1192
1193 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1194 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1195 ;;
1196 *-*-sunos4* )
1197 USE_SUN=1
1198 USE_SUNOS=1
1199 USE_BSD=1
1200 cat >> confdefs.h <<\EOF
1201 #define __SUN__ 1
1202 EOF
1203
1204 cat >> confdefs.h <<\EOF
1205 #define __SUNOS__ 1
1206 EOF
1207
1208 cat >> confdefs.h <<\EOF
1209 #define __BSD__ 1
1210 EOF
1211
1212 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1213 ;;
1214 *-*-freebsd*)
1215 USE_BSD=1
1216 USE_FREEBSD=1
1217 cat >> confdefs.h <<\EOF
1218 #define __FREEBSD__ 1
1219 EOF
1220
1221 cat >> confdefs.h <<\EOF
1222 #define __BSD__ 1
1223 EOF
1224
1225 DEFAULT_DEFAULT_wxUSE_GTK=1
1226 ;;
1227 *-*-openbsd*)
1228 USE_BSD=1
1229 USE_OPENBSD=1
1230 cat >> confdefs.h <<\EOF
1231 #define __FREEBSD__ 1
1232 EOF
1233
1234 cat >> confdefs.h <<\EOF
1235 #define __OPENBSD__ 1
1236 EOF
1237
1238 DEFAULT_DEFAULT_wxUSE_GTK=1
1239 ;;
1240 *-*-netbsd*)
1241 USE_BSD=1
1242 USE_NETBSD=1
1243 cat >> confdefs.h <<\EOF
1244 #define __FREEBSD__ 1
1245 EOF
1246
1247 cat >> confdefs.h <<\EOF
1248 #define __NETBSD__ 1
1249 EOF
1250
1251 DEFAULT_DEFAULT_wxUSE_GTK=1
1252 ;;
1253 *-*-osf* )
1254 USE_ALPHA=1
1255 USE_OSF=1
1256 cat >> confdefs.h <<\EOF
1257 #define __ALPHA__ 1
1258 EOF
1259
1260 cat >> confdefs.h <<\EOF
1261 #define __OSF__ 1
1262 EOF
1263
1264 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1265 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1266 ;;
1267 *-*-dgux5* )
1268 USE_ALPHA=1
1269 USE_SVR4=1
1270 cat >> confdefs.h <<\EOF
1271 #define __ALPHA__ 1
1272 EOF
1273
1274 cat >> confdefs.h <<\EOF
1275 #define __SVR4__ 1
1276 EOF
1277
1278 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1279 ;;
1280 *-*-sysv5* )
1281 USE_SYSV=1
1282 USE_SVR4=1
1283 cat >> confdefs.h <<\EOF
1284 #define __SYSV__ 1
1285 EOF
1286
1287 cat >> confdefs.h <<\EOF
1288 #define __SVR4__ 1
1289 EOF
1290
1291 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1292 ;;
1293 *-*-aix* )
1294 USE_AIX=1
1295 USE_SYSV=1
1296 USE_SVR4=1
1297 SO_SUFFIX=a
1298 cat >> confdefs.h <<\EOF
1299 #define __AIX__ 1
1300 EOF
1301
1302 cat >> confdefs.h <<\EOF
1303 #define __SYSV__ 1
1304 EOF
1305
1306 cat >> confdefs.h <<\EOF
1307 #define __SVR4__ 1
1308 EOF
1309
1310 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1311 ;;
1312
1313 *-*-cygwin* | *-*-mingw32* )
1314 SO_SUFFIX=dll
1315 PROGRAM_EXT=".exe"
1316 RESCOMP=windres
1317 DEFAULT_DEFAULT_wxUSE_MSW=1
1318 ;;
1319
1320 *-pc-msdosdjgpp )
1321 USE_UNIX=0
1322 USE_DOS=1
1323 cat >> confdefs.h <<\EOF
1324 #define __DOS__ 1
1325 EOF
1326
1327 PROGRAM_EXT=".exe"
1328 DEFAULT_DEFAULT_wxUSE_MGL=1
1329 LIBS="$LIBS -lstdc++"
1330 ;;
1331
1332 *-pc-os2_emx | *-pc-os2-emx )
1333 cat >> confdefs.h <<\EOF
1334 #define __EMX__ 1
1335 EOF
1336
1337 PROGRAM_EXT=".exe"
1338 DEFAULT_DEFAULT_wxUSE_PM=1
1339 LIBS="$LIBS -lstdcpp"
1340 ;;
1341
1342 powerpc-*-darwin* )
1343 USE_BSD=1
1344 USE_DARWIN=1
1345 SO_SUFFIX=dylib
1346 cat >> confdefs.h <<\EOF
1347 #define __BSD__ 1
1348 EOF
1349
1350 cat >> confdefs.h <<\EOF
1351 #define __DARWIN__ 1
1352 EOF
1353
1354 cat >> confdefs.h <<\EOF
1355 #define __POWERPC__ 1
1356 EOF
1357
1358 DEFAULT_DEFAULT_wxUSE_MAC=1
1359 ;;
1360
1361 *-*-beos* )
1362 USE_BEOS=1
1363 cat >> confdefs.h <<\EOF
1364 #define __BEOS__ 1
1365 EOF
1366
1367 ;;
1368
1369 *)
1370 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1371 esac
1372
1373
1374
1375
1376 wx_arg_cache_file="configarg.cache"
1377 echo "loading argument cache $wx_arg_cache_file"
1378 rm -f ${wx_arg_cache_file}.tmp
1379 touch ${wx_arg_cache_file}.tmp
1380 touch ${wx_arg_cache_file}
1381
1382
1383 DEBUG_CONFIGURE=0
1384 if test $DEBUG_CONFIGURE = 1; then
1385 DEFAULT_wxUSE_UNIVERSAL=no
1386
1387 DEFAULT_wxUSE_NANOX=no
1388
1389 DEFAULT_wxUSE_THREADS=yes
1390
1391 DEFAULT_wxUSE_SHARED=yes
1392 DEFAULT_wxUSE_SONAME=no
1393 DEFAULT_wxUSE_OPTIMISE=no
1394 DEFAULT_wxUSE_PROFILE=no
1395 DEFAULT_wxUSE_NO_DEPS=no
1396 DEFAULT_wxUSE_NO_RTTI=no
1397 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1398 DEFAULT_wxUSE_PERMISSIVE=no
1399 DEFAULT_wxUSE_DEBUG_FLAG=yes
1400 DEFAULT_wxUSE_DEBUG_INFO=yes
1401 DEFAULT_wxUSE_DEBUG_GDB=yes
1402 DEFAULT_wxUSE_MEM_TRACING=no
1403 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1404 DEFAULT_wxUSE_DMALLOC=no
1405 DEFAULT_wxUSE_PRECOMP=no
1406 DEFAULT_wxUSE_APPLE_IEEE=no
1407
1408 DEFAULT_wxUSE_LOG=yes
1409 DEFAULT_wxUSE_LOGWINDOW=no
1410 DEFAULT_wxUSE_LOGGUI=no
1411 DEFAULT_wxUSE_LOGDIALOG=no
1412
1413 DEFAULT_wxUSE_GUI=yes
1414 DEFAULT_wxUSE_CONTROLS=no
1415
1416 DEFAULT_wxUSE_REGEX=no
1417 DEFAULT_wxUSE_ZLIB=no
1418 DEFAULT_wxUSE_LIBPNG=no
1419 DEFAULT_wxUSE_LIBJPEG=no
1420 DEFAULT_wxUSE_LIBTIFF=no
1421 DEFAULT_wxUSE_ODBC=no
1422 DEFAULT_wxUSE_OPENGL=no
1423
1424 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1425 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1426 DEFAULT_wxUSE_STD_IOSTREAM=no
1427 DEFAULT_wxUSE_CMDLINE_PARSER=no
1428 DEFAULT_wxUSE_DATETIME=no
1429 DEFAULT_wxUSE_TIMEDATE=no
1430 DEFAULT_wxUSE_TIMER=no
1431 DEFAULT_wxUSE_STOPWATCH=no
1432 DEFAULT_wxUSE_FILE=no
1433 DEFAULT_wxUSE_FFILE=no
1434 DEFAULT_wxUSE_TEXTBUFFER=no
1435 DEFAULT_wxUSE_TEXTFILE=no
1436 DEFAULT_wxUSE_WAVE=no
1437 DEFAULT_wxUSE_INTL=no
1438 DEFAULT_wxUSE_CONFIG=no
1439 DEFAULT_wxUSE_FONTMAP=no
1440 DEFAULT_wxUSE_STREAMS=no
1441 DEFAULT_wxUSE_SOCKETS=no
1442 DEFAULT_wxUSE_DIALUP_MANAGER=no
1443 DEFAULT_wxUSE_JOYSTICK=no
1444 DEFAULT_wxUSE_DYNLIB_CLASS=no
1445 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1446 DEFAULT_wxUSE_LONGLONG=no
1447 DEFAULT_wxUSE_GEOMETRY=no
1448
1449 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1450 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1451 DEFAULT_wxUSE_POSTSCRIPT=no
1452
1453 DEFAULT_wxUSE_X_RESOURCES=no
1454 DEFAULT_wxUSE_CLIPBOARD=no
1455 DEFAULT_wxUSE_TOOLTIPS=no
1456 DEFAULT_wxUSE_DRAG_AND_DROP=no
1457 DEFAULT_wxUSE_DRAGIMAGE=no
1458 DEFAULT_wxUSE_SPLINES=no
1459
1460 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1461 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1462 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1463
1464 DEFAULT_wxUSE_PROLOGIO=no
1465 DEFAULT_wxUSE_RESOURCES=no
1466 DEFAULT_wxUSE_CONSTRAINTS=no
1467 DEFAULT_wxUSE_IPC=no
1468 DEFAULT_wxUSE_HELP=no
1469 DEFAULT_wxUSE_MS_HTML_HELP=no
1470 DEFAULT_wxUSE_WXHTML_HELP=no
1471 DEFAULT_wxUSE_TREELAYOUT=no
1472 DEFAULT_wxUSE_METAFILE=no
1473 DEFAULT_wxUSE_MIMETYPE=no
1474 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1475 DEFAULT_wxUSE_PROTOCOL=no
1476 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1477 DEFAULT_wxUSE_PROTOCOL_FTP=no
1478 DEFAULT_wxUSE_PROTOCOL_FILE=no
1479 DEFAULT_wxUSE_URL=no
1480
1481 DEFAULT_wxUSE_COMMONDLGS=no
1482 DEFAULT_wxUSE_CHOICEDLG=no
1483 DEFAULT_wxUSE_COLOURDLG=no
1484 DEFAULT_wxUSE_DIRDLG=no
1485 DEFAULT_wxUSE_FILEDLG=no
1486 DEFAULT_wxUSE_FINDREPLDLG=no
1487 DEFAULT_wxUSE_FONTDLG=no
1488 DEFAULT_wxUSE_MSGDLG=no
1489 DEFAULT_wxUSE_NUMBERDLG=no
1490 DEFAULT_wxUSE_TEXTDLG=no
1491 DEFAULT_wxUSE_SPLASH=no
1492 DEFAULT_wxUSE_STARTUP_TIPS=no
1493 DEFAULT_wxUSE_PROGRESSDLG=no
1494 DEFAULT_wxUSE_WIZARDDLG=no
1495
1496 DEFAULT_wxUSE_MENUS=no
1497 DEFAULT_wxUSE_MINIFRAME=no
1498 DEFAULT_wxUSE_HTML=no
1499 DEFAULT_wxUSE_FILESYSTEM=no
1500 DEFAULT_wxUSE_FS_INET=no
1501 DEFAULT_wxUSE_FS_ZIP=no
1502 DEFAULT_wxUSE_BUSYINFO=no
1503 DEFAULT_wxUSE_ZIPSTREAM=no
1504 DEFAULT_wxUSE_VALIDATORS=no
1505
1506 DEFAULT_wxUSE_ACCEL=no
1507 DEFAULT_wxUSE_BUTTON=no
1508 DEFAULT_wxUSE_BMPBUTTON=no
1509 DEFAULT_wxUSE_CALCTRL=no
1510 DEFAULT_wxUSE_CARET=no
1511 DEFAULT_wxUSE_CHECKBOX=no
1512 DEFAULT_wxUSE_CHECKLST=no
1513 DEFAULT_wxUSE_CHOICE=no
1514 DEFAULT_wxUSE_COMBOBOX=no
1515 DEFAULT_wxUSE_GAUGE=no
1516 DEFAULT_wxUSE_GRID=no
1517 DEFAULT_wxUSE_NEW_GRID=no
1518 DEFAULT_wxUSE_IMAGLIST=no
1519 DEFAULT_wxUSE_LISTBOX=no
1520 DEFAULT_wxUSE_LISTCTRL=no
1521 DEFAULT_wxUSE_NOTEBOOK=no
1522 DEFAULT_wxUSE_PROPSHEET=no
1523 DEFAULT_wxUSE_RADIOBOX=no
1524 DEFAULT_wxUSE_RADIOBTN=no
1525 DEFAULT_wxUSE_SASH=no
1526 DEFAULT_wxUSE_SCROLLBAR=no
1527 DEFAULT_wxUSE_SLIDER=no
1528 DEFAULT_wxUSE_SPINBTN=no
1529 DEFAULT_wxUSE_SPINCTRL=no
1530 DEFAULT_wxUSE_SPLITTER=no
1531 DEFAULT_wxUSE_STATBMP=no
1532 DEFAULT_wxUSE_STATBOX=no
1533 DEFAULT_wxUSE_STATLINE=no
1534 DEFAULT_wxUSE_STATTEXT=no
1535 DEFAULT_wxUSE_STATUSBAR=yes
1536 DEFAULT_wxUSE_TABDIALOG=no
1537 DEFAULT_wxUSE_TEXTCTRL=no
1538 DEFAULT_wxUSE_TOGGLEBTN=no
1539 DEFAULT_wxUSE_TOOLBAR=no
1540 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1541 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1542 DEFAULT_wxUSE_TREECTRL=no
1543 DEFAULT_wxUSE_POPUPWIN=no
1544 DEFAULT_wxUSE_TIPWINDOW=no
1545
1546 DEFAULT_wxUSE_UNICODE=no
1547 DEFAULT_wxUSE_UNICODE_MSLU=no
1548 DEFAULT_wxUSE_WCSRTOMBS=no
1549
1550 DEFAULT_wxUSE_PALETTE=no
1551 DEFAULT_wxUSE_IMAGE=no
1552 DEFAULT_wxUSE_GIF=no
1553 DEFAULT_wxUSE_PCX=no
1554 DEFAULT_wxUSE_PNM=no
1555 DEFAULT_wxUSE_IFF=no
1556 DEFAULT_wxUSE_XPM=no
1557 DEFAULT_wxUSE_ICO_CUR=no
1558 else
1559 DEFAULT_wxUSE_UNIVERSAL=no
1560
1561 DEFAULT_wxUSE_NANOX=no
1562
1563 DEFAULT_wxUSE_THREADS=yes
1564
1565 DEFAULT_wxUSE_SHARED=yes
1566 DEFAULT_wxUSE_SONAME=no
1567 DEFAULT_wxUSE_OPTIMISE=yes
1568 DEFAULT_wxUSE_PROFILE=no
1569 DEFAULT_wxUSE_NO_DEPS=no
1570 DEFAULT_wxUSE_NO_RTTI=no
1571 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1572 DEFAULT_wxUSE_PERMISSIVE=no
1573 DEFAULT_wxUSE_DEBUG_FLAG=no
1574 DEFAULT_wxUSE_DEBUG_INFO=no
1575 DEFAULT_wxUSE_DEBUG_GDB=no
1576 DEFAULT_wxUSE_MEM_TRACING=no
1577 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1578 DEFAULT_wxUSE_DMALLOC=no
1579 DEFAULT_wxUSE_PRECOMP=no
1580 DEFAULT_wxUSE_APPLE_IEEE=yes
1581
1582 DEFAULT_wxUSE_LOG=yes
1583 DEFAULT_wxUSE_LOGWINDOW=yes
1584 DEFAULT_wxUSE_LOGGUI=yes
1585 DEFAULT_wxUSE_LOGDIALOG=yes
1586
1587 DEFAULT_wxUSE_GUI=yes
1588
1589 DEFAULT_wxUSE_REGEX=yes
1590 DEFAULT_wxUSE_ZLIB=yes
1591 DEFAULT_wxUSE_LIBPNG=yes
1592 DEFAULT_wxUSE_LIBJPEG=yes
1593 DEFAULT_wxUSE_LIBTIFF=yes
1594 DEFAULT_wxUSE_ODBC=no
1595 DEFAULT_wxUSE_OPENGL=no
1596
1597 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1598 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1599 DEFAULT_wxUSE_STD_IOSTREAM=no
1600 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1601 DEFAULT_wxUSE_DATETIME=yes
1602 DEFAULT_wxUSE_TIMEDATE=no
1603 DEFAULT_wxUSE_TIMER=yes
1604 DEFAULT_wxUSE_STOPWATCH=yes
1605 DEFAULT_wxUSE_FILE=yes
1606 DEFAULT_wxUSE_FFILE=yes
1607 DEFAULT_wxUSE_TEXTBUFFER=yes
1608 DEFAULT_wxUSE_TEXTFILE=yes
1609 DEFAULT_wxUSE_WAVE=no
1610 DEFAULT_wxUSE_INTL=yes
1611 DEFAULT_wxUSE_CONFIG=yes
1612 DEFAULT_wxUSE_FONTMAP=yes
1613 DEFAULT_wxUSE_STREAMS=yes
1614 DEFAULT_wxUSE_SOCKETS=yes
1615 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1616 DEFAULT_wxUSE_JOYSTICK=yes
1617 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1618 DEFAULT_wxUSE_DYNAMIC_LOADER=yes
1619 DEFAULT_wxUSE_LONGLONG=yes
1620 DEFAULT_wxUSE_GEOMETRY=yes
1621
1622 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1623 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1624 DEFAULT_wxUSE_POSTSCRIPT=yes
1625
1626 DEFAULT_wxUSE_X_RESOURCES=no
1627 DEFAULT_wxUSE_CLIPBOARD=yes
1628 DEFAULT_wxUSE_TOOLTIPS=yes
1629 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1630 DEFAULT_wxUSE_DRAGIMAGE=yes
1631 DEFAULT_wxUSE_SPLINES=yes
1632
1633 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1634 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1635 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1636
1637 DEFAULT_wxUSE_PROLOGIO=yes
1638 DEFAULT_wxUSE_RESOURCES=yes
1639 DEFAULT_wxUSE_CONSTRAINTS=yes
1640 DEFAULT_wxUSE_IPC=yes
1641 DEFAULT_wxUSE_HELP=yes
1642 DEFAULT_wxUSE_MS_HTML_HELP=yes
1643 DEFAULT_wxUSE_WXHTML_HELP=yes
1644 DEFAULT_wxUSE_TREELAYOUT=yes
1645 DEFAULT_wxUSE_METAFILE=yes
1646 DEFAULT_wxUSE_MIMETYPE=yes
1647 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1648 DEFAULT_wxUSE_PROTOCOL=yes
1649 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1650 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1651 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1652 DEFAULT_wxUSE_URL=yes
1653
1654 DEFAULT_wxUSE_COMMONDLGS=yes
1655 DEFAULT_wxUSE_CHOICEDLG=yes
1656 DEFAULT_wxUSE_COLOURDLG=yes
1657 DEFAULT_wxUSE_DIRDLG=yes
1658 DEFAULT_wxUSE_FILEDLG=yes
1659 DEFAULT_wxUSE_FINDREPLDLG=yes
1660 DEFAULT_wxUSE_FONTDLG=yes
1661 DEFAULT_wxUSE_MSGDLG=yes
1662 DEFAULT_wxUSE_NUMBERDLG=yes
1663 DEFAULT_wxUSE_TEXTDLG=yes
1664 DEFAULT_wxUSE_SPLASH=yes
1665 DEFAULT_wxUSE_STARTUP_TIPS=yes
1666 DEFAULT_wxUSE_PROGRESSDLG=yes
1667 DEFAULT_wxUSE_WIZARDDLG=yes
1668
1669 DEFAULT_wxUSE_MENUS=yes
1670 DEFAULT_wxUSE_MINIFRAME=yes
1671 DEFAULT_wxUSE_HTML=yes
1672 DEFAULT_wxUSE_FILESYSTEM=yes
1673 DEFAULT_wxUSE_FS_INET=yes
1674 DEFAULT_wxUSE_FS_ZIP=yes
1675 DEFAULT_wxUSE_BUSYINFO=yes
1676 DEFAULT_wxUSE_ZIPSTREAM=yes
1677 DEFAULT_wxUSE_VALIDATORS=yes
1678
1679 DEFAULT_wxUSE_ACCEL=yes
1680 DEFAULT_wxUSE_BUTTON=yes
1681 DEFAULT_wxUSE_BMPBUTTON=yes
1682 DEFAULT_wxUSE_CALCTRL=yes
1683 DEFAULT_wxUSE_CARET=yes
1684 DEFAULT_wxUSE_CHECKBOX=yes
1685 DEFAULT_wxUSE_CHECKLST=yes
1686 DEFAULT_wxUSE_CHOICE=yes
1687 DEFAULT_wxUSE_COMBOBOX=yes
1688 DEFAULT_wxUSE_GAUGE=yes
1689 DEFAULT_wxUSE_GRID=yes
1690 DEFAULT_wxUSE_NEW_GRID=yes
1691 DEFAULT_wxUSE_IMAGLIST=yes
1692 DEFAULT_wxUSE_LISTBOX=yes
1693 DEFAULT_wxUSE_LISTCTRL=yes
1694 DEFAULT_wxUSE_NOTEBOOK=yes
1695 DEFAULT_wxUSE_PROPSHEET=yes
1696 DEFAULT_wxUSE_RADIOBOX=yes
1697 DEFAULT_wxUSE_RADIOBTN=yes
1698 DEFAULT_wxUSE_SASH=yes
1699 DEFAULT_wxUSE_SCROLLBAR=yes
1700 DEFAULT_wxUSE_SLIDER=yes
1701 DEFAULT_wxUSE_SPINBTN=yes
1702 DEFAULT_wxUSE_SPINCTRL=yes
1703 DEFAULT_wxUSE_SPLITTER=yes
1704 DEFAULT_wxUSE_STATBMP=yes
1705 DEFAULT_wxUSE_STATBOX=yes
1706 DEFAULT_wxUSE_STATLINE=yes
1707 DEFAULT_wxUSE_STATTEXT=yes
1708 DEFAULT_wxUSE_STATUSBAR=yes
1709 DEFAULT_wxUSE_TABDIALOG=no
1710 DEFAULT_wxUSE_TEXTCTRL=yes
1711 DEFAULT_wxUSE_TOGGLEBTN=yes
1712 DEFAULT_wxUSE_TOOLBAR=yes
1713 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1714 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1715 DEFAULT_wxUSE_TREECTRL=yes
1716 DEFAULT_wxUSE_POPUPWIN=yes
1717 DEFAULT_wxUSE_TIPWINDOW=yes
1718
1719 DEFAULT_wxUSE_UNICODE=no
1720 DEFAULT_wxUSE_UNICODE_MSLU=yes
1721 DEFAULT_wxUSE_WCSRTOMBS=no
1722
1723 DEFAULT_wxUSE_PALETTE=yes
1724 DEFAULT_wxUSE_IMAGE=yes
1725 DEFAULT_wxUSE_GIF=yes
1726 DEFAULT_wxUSE_PCX=yes
1727 DEFAULT_wxUSE_IFF=no
1728 DEFAULT_wxUSE_PNM=yes
1729 DEFAULT_wxUSE_XPM=yes
1730 DEFAULT_wxUSE_ICO_CUR=yes
1731 fi
1732
1733
1734
1735 for toolkit in `echo $ALL_TOOLKITS`; do
1736 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1737 if test "x$LINE" != x ; then
1738 has_toolkit_in_cache=1
1739 eval "DEFAULT_$LINE"
1740 eval "CACHE_$toolkit=1"
1741 fi
1742 done
1743
1744
1745
1746 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1747 echo "configure:1748: checking for --enable-gui" >&5
1748 no_cache=0
1749 # Check whether --enable-gui or --disable-gui was given.
1750 if test "${enable_gui+set}" = set; then
1751 enableval="$enable_gui"
1752
1753 if test "$enableval" = yes; then
1754 ac_cv_use_gui='wxUSE_GUI=yes'
1755 else
1756 ac_cv_use_gui='wxUSE_GUI=no'
1757 fi
1758
1759 else
1760
1761 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1762 if test "x$LINE" != x ; then
1763 eval "DEFAULT_$LINE"
1764 else
1765 no_cache=1
1766 fi
1767
1768 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1769
1770 fi
1771
1772
1773 eval "$ac_cv_use_gui"
1774 if test "$no_cache" != 1; then
1775 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1776 fi
1777
1778 if test "$wxUSE_GUI" = yes; then
1779 echo "$ac_t""yes" 1>&6
1780 else
1781 echo "$ac_t""no" 1>&6
1782 fi
1783
1784
1785 if test "$wxUSE_GUI" = "yes"; then
1786
1787
1788 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1789 echo "configure:1790: checking for --enable-universal" >&5
1790 no_cache=0
1791 # Check whether --enable-universal or --disable-universal was given.
1792 if test "${enable_universal+set}" = set; then
1793 enableval="$enable_universal"
1794
1795 if test "$enableval" = yes; then
1796 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1797 else
1798 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1799 fi
1800
1801 else
1802
1803 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1804 if test "x$LINE" != x ; then
1805 eval "DEFAULT_$LINE"
1806 else
1807 no_cache=1
1808 fi
1809
1810 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1811
1812 fi
1813
1814
1815 eval "$ac_cv_use_universal"
1816 if test "$no_cache" != 1; then
1817 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1818 fi
1819
1820 if test "$wxUSE_UNIVERSAL" = yes; then
1821 echo "$ac_t""yes" 1>&6
1822 else
1823 echo "$ac_t""no" 1>&6
1824 fi
1825
1826 # Check whether --with-gtk or --without-gtk was given.
1827 if test "${with_gtk+set}" = set; then
1828 withval="$with_gtk"
1829 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1830 fi
1831
1832 # Check whether --with-motif or --without-motif was given.
1833 if test "${with_motif+set}" = set; then
1834 withval="$with_motif"
1835 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1836 fi
1837
1838 # Check whether --with-mac or --without-mac was given.
1839 if test "${with_mac+set}" = set; then
1840 withval="$with_mac"
1841 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1842 fi
1843
1844 # Check whether --with-wine or --without-wine was given.
1845 if test "${with_wine+set}" = set; then
1846 withval="$with_wine"
1847 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1848 fi
1849
1850 # Check whether --with-msw or --without-msw was given.
1851 if test "${with_msw+set}" = set; then
1852 withval="$with_msw"
1853 wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
1854 fi
1855
1856 # Check whether --with-pm or --without-pm was given.
1857 if test "${with_pm+set}" = set; then
1858 withval="$with_pm"
1859 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1860 fi
1861
1862 # Check whether --with-mgl or --without-mgl was given.
1863 if test "${with_mgl+set}" = set; then
1864 withval="$with_mgl"
1865 wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
1866 fi
1867
1868 # Check whether --with-microwin or --without-microwin was given.
1869 if test "${with_microwin+set}" = set; then
1870 withval="$with_microwin"
1871 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1872 fi
1873
1874 # Check whether --with-x11 or --without-x11 was given.
1875 if test "${with_x11+set}" = set; then
1876 withval="$with_x11"
1877 wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
1878 fi
1879
1880
1881 echo $ac_n "checking for --enable-nanox""... $ac_c" 1>&6
1882 echo "configure:1883: checking for --enable-nanox" >&5
1883 no_cache=0
1884 # Check whether --enable-nanox or --disable-nanox was given.
1885 if test "${enable_nanox+set}" = set; then
1886 enableval="$enable_nanox"
1887
1888 if test "$enableval" = yes; then
1889 ac_cv_use_nanox='wxUSE_NANOX=yes'
1890 else
1891 ac_cv_use_nanox='wxUSE_NANOX=no'
1892 fi
1893
1894 else
1895
1896 LINE=`grep "wxUSE_NANOX" ${wx_arg_cache_file}`
1897 if test "x$LINE" != x ; then
1898 eval "DEFAULT_$LINE"
1899 else
1900 no_cache=1
1901 fi
1902
1903 ac_cv_use_nanox='wxUSE_NANOX='$DEFAULT_wxUSE_NANOX
1904
1905 fi
1906
1907
1908 eval "$ac_cv_use_nanox"
1909 if test "$no_cache" != 1; then
1910 echo $ac_cv_use_nanox >> ${wx_arg_cache_file}.tmp
1911 fi
1912
1913 if test "$wxUSE_NANOX" = yes; then
1914 echo "$ac_t""yes" 1>&6
1915 else
1916 echo "$ac_t""no" 1>&6
1917 fi
1918
1919
1920 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1921 if test "${enable_gtk2+set}" = set; then
1922 enableval="$enable_gtk2"
1923 wxUSE_GTK2="yes"
1924 else
1925 wxUSE_GTK2="no"
1926 fi
1927
1928
1929
1930 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1931 echo "configure:1932: checking for --with-libpng" >&5
1932 no_cache=0
1933 # Check whether --with-libpng or --without-libpng was given.
1934 if test "${with_libpng+set}" = set; then
1935 withval="$with_libpng"
1936
1937 if test "$withval" = yes; then
1938 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1939 elif test "$withval" = no; then
1940 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1941 elif test "$withval" = sys; then
1942 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1943 elif test "$withval" = builtin; then
1944 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1945 else
1946 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1947 fi
1948
1949 else
1950
1951 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1952 if test "x$LINE" != x ; then
1953 eval "DEFAULT_$LINE"
1954 else
1955 no_cache=1
1956 fi
1957
1958 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1959
1960 fi
1961
1962
1963 eval "$ac_cv_use_libpng"
1964 if test "$no_cache" != 1; then
1965 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1966 fi
1967
1968 if test "$wxUSE_LIBPNG" = yes; then
1969 echo "$ac_t""yes" 1>&6
1970 elif test "$wxUSE_LIBPNG" = no; then
1971 echo "$ac_t""no" 1>&6
1972 elif test "$wxUSE_LIBPNG" = sys; then
1973 echo "$ac_t""system version" 1>&6
1974 elif test "$wxUSE_LIBPNG" = builtin; then
1975 echo "$ac_t""builtin version" 1>&6
1976 else
1977 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1978 fi
1979
1980
1981 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1982 echo "configure:1983: checking for --with-libjpeg" >&5
1983 no_cache=0
1984 # Check whether --with-libjpeg or --without-libjpeg was given.
1985 if test "${with_libjpeg+set}" = set; then
1986 withval="$with_libjpeg"
1987
1988 if test "$withval" = yes; then
1989 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1990 elif test "$withval" = no; then
1991 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1992 elif test "$withval" = sys; then
1993 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1994 elif test "$withval" = builtin; then
1995 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
1996 else
1997 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1998 fi
1999
2000 else
2001
2002 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2003 if test "x$LINE" != x ; then
2004 eval "DEFAULT_$LINE"
2005 else
2006 no_cache=1
2007 fi
2008
2009 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2010
2011 fi
2012
2013
2014 eval "$ac_cv_use_libjpeg"
2015 if test "$no_cache" != 1; then
2016 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2017 fi
2018
2019 if test "$wxUSE_LIBJPEG" = yes; then
2020 echo "$ac_t""yes" 1>&6
2021 elif test "$wxUSE_LIBJPEG" = no; then
2022 echo "$ac_t""no" 1>&6
2023 elif test "$wxUSE_LIBJPEG" = sys; then
2024 echo "$ac_t""system version" 1>&6
2025 elif test "$wxUSE_LIBJPEG" = builtin; then
2026 echo "$ac_t""builtin version" 1>&6
2027 else
2028 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2029 fi
2030
2031
2032 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2033 echo "configure:2034: checking for --with-libtiff" >&5
2034 no_cache=0
2035 # Check whether --with-libtiff or --without-libtiff was given.
2036 if test "${with_libtiff+set}" = set; then
2037 withval="$with_libtiff"
2038
2039 if test "$withval" = yes; then
2040 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2041 elif test "$withval" = no; then
2042 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2043 elif test "$withval" = sys; then
2044 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2045 elif test "$withval" = builtin; then
2046 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2047 else
2048 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2049 fi
2050
2051 else
2052
2053 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2054 if test "x$LINE" != x ; then
2055 eval "DEFAULT_$LINE"
2056 else
2057 no_cache=1
2058 fi
2059
2060 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2061
2062 fi
2063
2064
2065 eval "$ac_cv_use_libtiff"
2066 if test "$no_cache" != 1; then
2067 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2068 fi
2069
2070 if test "$wxUSE_LIBTIFF" = yes; then
2071 echo "$ac_t""yes" 1>&6
2072 elif test "$wxUSE_LIBTIFF" = no; then
2073 echo "$ac_t""no" 1>&6
2074 elif test "$wxUSE_LIBTIFF" = sys; then
2075 echo "$ac_t""system version" 1>&6
2076 elif test "$wxUSE_LIBTIFF" = builtin; then
2077 echo "$ac_t""builtin version" 1>&6
2078 else
2079 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2080 fi
2081
2082
2083 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2084 echo "configure:2085: checking for --with-opengl" >&5
2085 no_cache=0
2086 # Check whether --with-opengl or --without-opengl was given.
2087 if test "${with_opengl+set}" = set; then
2088 withval="$with_opengl"
2089
2090 if test "$withval" = yes; then
2091 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2092 else
2093 ac_cv_use_opengl='wxUSE_OPENGL=no'
2094 fi
2095
2096 else
2097
2098 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2099 if test "x$LINE" != x ; then
2100 eval "DEFAULT_$LINE"
2101 else
2102 no_cache=1
2103 fi
2104
2105 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2106
2107 fi
2108
2109
2110 eval "$ac_cv_use_opengl"
2111 if test "$no_cache" != 1; then
2112 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2113 fi
2114
2115 if test "$wxUSE_OPENGL" = yes; then
2116 echo "$ac_t""yes" 1>&6
2117 else
2118 echo "$ac_t""no" 1>&6
2119 fi
2120
2121
2122 fi
2123
2124
2125 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2126 echo "configure:2127: checking for --with-dmalloc" >&5
2127 no_cache=0
2128 # Check whether --with-dmalloc or --without-dmalloc was given.
2129 if test "${with_dmalloc+set}" = set; then
2130 withval="$with_dmalloc"
2131
2132 if test "$withval" = yes; then
2133 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2134 else
2135 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2136 fi
2137
2138 else
2139
2140 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2141 if test "x$LINE" != x ; then
2142 eval "DEFAULT_$LINE"
2143 else
2144 no_cache=1
2145 fi
2146
2147 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2148
2149 fi
2150
2151
2152 eval "$ac_cv_use_dmalloc"
2153 if test "$no_cache" != 1; then
2154 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2155 fi
2156
2157 if test "$wxUSE_DMALLOC" = yes; then
2158 echo "$ac_t""yes" 1>&6
2159 else
2160 echo "$ac_t""no" 1>&6
2161 fi
2162
2163
2164 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2165 echo "configure:2166: checking for --with-regex" >&5
2166 no_cache=0
2167 # Check whether --with-regex or --without-regex was given.
2168 if test "${with_regex+set}" = set; then
2169 withval="$with_regex"
2170
2171 if test "$withval" = yes; then
2172 ac_cv_use_regex='wxUSE_REGEX=yes'
2173 elif test "$withval" = no; then
2174 ac_cv_use_regex='wxUSE_REGEX=no'
2175 elif test "$withval" = sys; then
2176 ac_cv_use_regex='wxUSE_REGEX=sys'
2177 elif test "$withval" = builtin; then
2178 ac_cv_use_regex='wxUSE_REGEX=builtin'
2179 else
2180 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2181 fi
2182
2183 else
2184
2185 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2186 if test "x$LINE" != x ; then
2187 eval "DEFAULT_$LINE"
2188 else
2189 no_cache=1
2190 fi
2191
2192 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2193
2194 fi
2195
2196
2197 eval "$ac_cv_use_regex"
2198 if test "$no_cache" != 1; then
2199 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2200 fi
2201
2202 if test "$wxUSE_REGEX" = yes; then
2203 echo "$ac_t""yes" 1>&6
2204 elif test "$wxUSE_REGEX" = no; then
2205 echo "$ac_t""no" 1>&6
2206 elif test "$wxUSE_REGEX" = sys; then
2207 echo "$ac_t""system version" 1>&6
2208 elif test "$wxUSE_REGEX" = builtin; then
2209 echo "$ac_t""builtin version" 1>&6
2210 else
2211 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2212 fi
2213
2214
2215 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2216 echo "configure:2217: checking for --with-zlib" >&5
2217 no_cache=0
2218 # Check whether --with-zlib or --without-zlib was given.
2219 if test "${with_zlib+set}" = set; then
2220 withval="$with_zlib"
2221
2222 if test "$withval" = yes; then
2223 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2224 elif test "$withval" = no; then
2225 ac_cv_use_zlib='wxUSE_ZLIB=no'
2226 elif test "$withval" = sys; then
2227 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2228 elif test "$withval" = builtin; then
2229 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2230 else
2231 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2232 fi
2233
2234 else
2235
2236 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2237 if test "x$LINE" != x ; then
2238 eval "DEFAULT_$LINE"
2239 else
2240 no_cache=1
2241 fi
2242
2243 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2244
2245 fi
2246
2247
2248 eval "$ac_cv_use_zlib"
2249 if test "$no_cache" != 1; then
2250 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2251 fi
2252
2253 if test "$wxUSE_ZLIB" = yes; then
2254 echo "$ac_t""yes" 1>&6
2255 elif test "$wxUSE_ZLIB" = no; then
2256 echo "$ac_t""no" 1>&6
2257 elif test "$wxUSE_ZLIB" = sys; then
2258 echo "$ac_t""system version" 1>&6
2259 elif test "$wxUSE_ZLIB" = builtin; then
2260 echo "$ac_t""builtin version" 1>&6
2261 else
2262 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2263 fi
2264
2265
2266 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2267 echo "configure:2268: checking for --with-odbc" >&5
2268 no_cache=0
2269 # Check whether --with-odbc or --without-odbc was given.
2270 if test "${with_odbc+set}" = set; then
2271 withval="$with_odbc"
2272
2273 if test "$withval" = yes; then
2274 ac_cv_use_odbc='wxUSE_ODBC=yes'
2275 else
2276 ac_cv_use_odbc='wxUSE_ODBC=no'
2277 fi
2278
2279 else
2280
2281 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2282 if test "x$LINE" != x ; then
2283 eval "DEFAULT_$LINE"
2284 else
2285 no_cache=1
2286 fi
2287
2288 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2289
2290 fi
2291
2292
2293 eval "$ac_cv_use_odbc"
2294 if test "$no_cache" != 1; then
2295 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2296 fi
2297
2298 if test "$wxUSE_ODBC" = yes; then
2299 echo "$ac_t""yes" 1>&6
2300 else
2301 echo "$ac_t""no" 1>&6
2302 fi
2303
2304
2305
2306
2307 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2308 echo "configure:2309: checking for --enable-shared" >&5
2309 no_cache=0
2310 # Check whether --enable-shared or --disable-shared was given.
2311 if test "${enable_shared+set}" = set; then
2312 enableval="$enable_shared"
2313
2314 if test "$enableval" = yes; then
2315 ac_cv_use_shared='wxUSE_SHARED=yes'
2316 else
2317 ac_cv_use_shared='wxUSE_SHARED=no'
2318 fi
2319
2320 else
2321
2322 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2323 if test "x$LINE" != x ; then
2324 eval "DEFAULT_$LINE"
2325 else
2326 no_cache=1
2327 fi
2328
2329 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2330
2331 fi
2332
2333
2334 eval "$ac_cv_use_shared"
2335 if test "$no_cache" != 1; then
2336 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2337 fi
2338
2339 if test "$wxUSE_SHARED" = yes; then
2340 echo "$ac_t""yes" 1>&6
2341 else
2342 echo "$ac_t""no" 1>&6
2343 fi
2344
2345
2346 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2347 echo "configure:2348: checking for --enable-soname" >&5
2348 no_cache=0
2349 # Check whether --enable-soname or --disable-soname was given.
2350 if test "${enable_soname+set}" = set; then
2351 enableval="$enable_soname"
2352
2353 if test "$enableval" = yes; then
2354 ac_cv_use_soname='wxUSE_SONAME=yes'
2355 else
2356 ac_cv_use_soname='wxUSE_SONAME=no'
2357 fi
2358
2359 else
2360
2361 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2362 if test "x$LINE" != x ; then
2363 eval "DEFAULT_$LINE"
2364 else
2365 no_cache=1
2366 fi
2367
2368 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2369
2370 fi
2371
2372
2373 eval "$ac_cv_use_soname"
2374 if test "$no_cache" != 1; then
2375 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2376 fi
2377
2378 if test "$wxUSE_SONAME" = yes; then
2379 echo "$ac_t""yes" 1>&6
2380 else
2381 echo "$ac_t""no" 1>&6
2382 fi
2383
2384
2385 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2386 echo "configure:2387: checking for --enable-optimise" >&5
2387 no_cache=0
2388 # Check whether --enable-optimise or --disable-optimise was given.
2389 if test "${enable_optimise+set}" = set; then
2390 enableval="$enable_optimise"
2391
2392 if test "$enableval" = yes; then
2393 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2394 else
2395 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2396 fi
2397
2398 else
2399
2400 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2401 if test "x$LINE" != x ; then
2402 eval "DEFAULT_$LINE"
2403 else
2404 no_cache=1
2405 fi
2406
2407 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2408
2409 fi
2410
2411
2412 eval "$ac_cv_use_optimise"
2413 if test "$no_cache" != 1; then
2414 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2415 fi
2416
2417 if test "$wxUSE_OPTIMISE" = yes; then
2418 echo "$ac_t""yes" 1>&6
2419 else
2420 echo "$ac_t""no" 1>&6
2421 fi
2422
2423
2424 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2425 echo "configure:2426: checking for --enable-debug" >&5
2426 no_cache=0
2427 # Check whether --enable-debug or --disable-debug was given.
2428 if test "${enable_debug+set}" = set; then
2429 enableval="$enable_debug"
2430
2431 if test "$enableval" = yes; then
2432 ac_cv_use_debug='wxUSE_DEBUG=yes'
2433 else
2434 ac_cv_use_debug='wxUSE_DEBUG=no'
2435 fi
2436
2437 else
2438
2439 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2440 if test "x$LINE" != x ; then
2441 eval "DEFAULT_$LINE"
2442 else
2443 no_cache=1
2444 fi
2445
2446 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2447
2448 fi
2449
2450
2451 eval "$ac_cv_use_debug"
2452 if test "$no_cache" != 1; then
2453 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2454 fi
2455
2456 if test "$wxUSE_DEBUG" = yes; then
2457 echo "$ac_t""yes" 1>&6
2458 else
2459 echo "$ac_t""no" 1>&6
2460 fi
2461
2462
2463
2464 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2465 echo "configure:2466: checking for --enable-precomp" >&5
2466 no_cache=0
2467 # Check whether --enable-precomp or --disable-precomp was given.
2468 if test "${enable_precomp+set}" = set; then
2469 enableval="$enable_precomp"
2470
2471 if test "$enableval" = yes; then
2472 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2473 else
2474 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2475 fi
2476
2477 else
2478
2479 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2480 if test "x$LINE" != x ; then
2481 eval "DEFAULT_$LINE"
2482 else
2483 no_cache=1
2484 fi
2485
2486 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2487
2488 fi
2489
2490
2491 eval "$ac_cv_use_precomp"
2492 if test "$no_cache" != 1; then
2493 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2494 fi
2495
2496 if test "$wxUSE_PRECOMP" = yes; then
2497 echo "$ac_t""yes" 1>&6
2498 else
2499 echo "$ac_t""no" 1>&6
2500 fi
2501
2502
2503 if test "$wxUSE_DEBUG" = "yes"; then
2504 DEFAULT_wxUSE_DEBUG_FLAG=yes
2505 DEFAULT_wxUSE_DEBUG_INFO=yes
2506 elif test "$wxUSE_DEBUG" = "no"; then
2507 DEFAULT_wxUSE_DEBUG_FLAG=no
2508 DEFAULT_wxUSE_DEBUG_INFO=no
2509 fi
2510
2511
2512 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2513 echo "configure:2514: checking for --enable-debug_flag" >&5
2514 no_cache=0
2515 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2516 if test "${enable_debug_flag+set}" = set; then
2517 enableval="$enable_debug_flag"
2518
2519 if test "$enableval" = yes; then
2520 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2521 else
2522 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2523 fi
2524
2525 else
2526
2527 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2528 if test "x$LINE" != x ; then
2529 eval "DEFAULT_$LINE"
2530 else
2531 no_cache=1
2532 fi
2533
2534 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2535
2536 fi
2537
2538
2539 eval "$ac_cv_use_debug_flag"
2540 if test "$no_cache" != 1; then
2541 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2542 fi
2543
2544 if test "$wxUSE_DEBUG_FLAG" = yes; then
2545 echo "$ac_t""yes" 1>&6
2546 else
2547 echo "$ac_t""no" 1>&6
2548 fi
2549
2550
2551 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2552 echo "configure:2553: checking for --enable-debug_info" >&5
2553 no_cache=0
2554 # Check whether --enable-debug_info or --disable-debug_info was given.
2555 if test "${enable_debug_info+set}" = set; then
2556 enableval="$enable_debug_info"
2557
2558 if test "$enableval" = yes; then
2559 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2560 else
2561 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2562 fi
2563
2564 else
2565
2566 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2567 if test "x$LINE" != x ; then
2568 eval "DEFAULT_$LINE"
2569 else
2570 no_cache=1
2571 fi
2572
2573 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2574
2575 fi
2576
2577
2578 eval "$ac_cv_use_debug_info"
2579 if test "$no_cache" != 1; then
2580 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2581 fi
2582
2583 if test "$wxUSE_DEBUG_INFO" = yes; then
2584 echo "$ac_t""yes" 1>&6
2585 else
2586 echo "$ac_t""no" 1>&6
2587 fi
2588
2589
2590 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2591 echo "configure:2592: checking for --enable-debug_gdb" >&5
2592 no_cache=0
2593 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2594 if test "${enable_debug_gdb+set}" = set; then
2595 enableval="$enable_debug_gdb"
2596
2597 if test "$enableval" = yes; then
2598 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2599 else
2600 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2601 fi
2602
2603 else
2604
2605 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2606 if test "x$LINE" != x ; then
2607 eval "DEFAULT_$LINE"
2608 else
2609 no_cache=1
2610 fi
2611
2612 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2613
2614 fi
2615
2616
2617 eval "$ac_cv_use_debug_gdb"
2618 if test "$no_cache" != 1; then
2619 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2620 fi
2621
2622 if test "$wxUSE_DEBUG_GDB" = yes; then
2623 echo "$ac_t""yes" 1>&6
2624 else
2625 echo "$ac_t""no" 1>&6
2626 fi
2627
2628
2629 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2630 echo "configure:2631: checking for --enable-debug_cntxt" >&5
2631 no_cache=0
2632 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2633 if test "${enable_debug_cntxt+set}" = set; then
2634 enableval="$enable_debug_cntxt"
2635
2636 if test "$enableval" = yes; then
2637 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2638 else
2639 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2640 fi
2641
2642 else
2643
2644 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2645 if test "x$LINE" != x ; then
2646 eval "DEFAULT_$LINE"
2647 else
2648 no_cache=1
2649 fi
2650
2651 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2652
2653 fi
2654
2655
2656 eval "$ac_cv_use_debug_cntxt"
2657 if test "$no_cache" != 1; then
2658 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2659 fi
2660
2661 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2662 echo "$ac_t""yes" 1>&6
2663 else
2664 echo "$ac_t""no" 1>&6
2665 fi
2666
2667
2668 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2669 echo "configure:2670: checking for --enable-mem_tracing" >&5
2670 no_cache=0
2671 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2672 if test "${enable_mem_tracing+set}" = set; then
2673 enableval="$enable_mem_tracing"
2674
2675 if test "$enableval" = yes; then
2676 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2677 else
2678 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2679 fi
2680
2681 else
2682
2683 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2684 if test "x$LINE" != x ; then
2685 eval "DEFAULT_$LINE"
2686 else
2687 no_cache=1
2688 fi
2689
2690 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2691
2692 fi
2693
2694
2695 eval "$ac_cv_use_mem_tracing"
2696 if test "$no_cache" != 1; then
2697 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2698 fi
2699
2700 if test "$wxUSE_MEM_TRACING" = yes; then
2701 echo "$ac_t""yes" 1>&6
2702 else
2703 echo "$ac_t""no" 1>&6
2704 fi
2705
2706
2707 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2708 echo "configure:2709: checking for --enable-profile" >&5
2709 no_cache=0
2710 # Check whether --enable-profile or --disable-profile was given.
2711 if test "${enable_profile+set}" = set; then
2712 enableval="$enable_profile"
2713
2714 if test "$enableval" = yes; then
2715 ac_cv_use_profile='wxUSE_PROFILE=yes'
2716 else
2717 ac_cv_use_profile='wxUSE_PROFILE=no'
2718 fi
2719
2720 else
2721
2722 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2723 if test "x$LINE" != x ; then
2724 eval "DEFAULT_$LINE"
2725 else
2726 no_cache=1
2727 fi
2728
2729 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2730
2731 fi
2732
2733
2734 eval "$ac_cv_use_profile"
2735 if test "$no_cache" != 1; then
2736 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2737 fi
2738
2739 if test "$wxUSE_PROFILE" = yes; then
2740 echo "$ac_t""yes" 1>&6
2741 else
2742 echo "$ac_t""no" 1>&6
2743 fi
2744
2745
2746 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2747 echo "configure:2748: checking for --enable-no_rtti" >&5
2748 no_cache=0
2749 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2750 if test "${enable_no_rtti+set}" = set; then
2751 enableval="$enable_no_rtti"
2752
2753 if test "$enableval" = yes; then
2754 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2755 else
2756 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2757 fi
2758
2759 else
2760
2761 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2762 if test "x$LINE" != x ; then
2763 eval "DEFAULT_$LINE"
2764 else
2765 no_cache=1
2766 fi
2767
2768 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2769
2770 fi
2771
2772
2773 eval "$ac_cv_use_no_rtti"
2774 if test "$no_cache" != 1; then
2775 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2776 fi
2777
2778 if test "$wxUSE_NO_RTTI" = yes; then
2779 echo "$ac_t""yes" 1>&6
2780 else
2781 echo "$ac_t""no" 1>&6
2782 fi
2783
2784
2785 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2786 echo "configure:2787: checking for --enable-no_exceptions" >&5
2787 no_cache=0
2788 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2789 if test "${enable_no_exceptions+set}" = set; then
2790 enableval="$enable_no_exceptions"
2791
2792 if test "$enableval" = yes; then
2793 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2794 else
2795 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2796 fi
2797
2798 else
2799
2800 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2801 if test "x$LINE" != x ; then
2802 eval "DEFAULT_$LINE"
2803 else
2804 no_cache=1
2805 fi
2806
2807 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2808
2809 fi
2810
2811
2812 eval "$ac_cv_use_no_exceptions"
2813 if test "$no_cache" != 1; then
2814 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2815 fi
2816
2817 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2818 echo "$ac_t""yes" 1>&6
2819 else
2820 echo "$ac_t""no" 1>&6
2821 fi
2822
2823
2824 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2825 echo "configure:2826: checking for --enable-permissive" >&5
2826 no_cache=0
2827 # Check whether --enable-permissive or --disable-permissive was given.
2828 if test "${enable_permissive+set}" = set; then
2829 enableval="$enable_permissive"
2830
2831 if test "$enableval" = yes; then
2832 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2833 else
2834 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2835 fi
2836
2837 else
2838
2839 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2840 if test "x$LINE" != x ; then
2841 eval "DEFAULT_$LINE"
2842 else
2843 no_cache=1
2844 fi
2845
2846 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2847
2848 fi
2849
2850
2851 eval "$ac_cv_use_permissive"
2852 if test "$no_cache" != 1; then
2853 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2854 fi
2855
2856 if test "$wxUSE_PERMISSIVE" = yes; then
2857 echo "$ac_t""yes" 1>&6
2858 else
2859 echo "$ac_t""no" 1>&6
2860 fi
2861
2862
2863 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2864 echo "configure:2865: checking for --enable-no_deps" >&5
2865 no_cache=0
2866 # Check whether --enable-no_deps or --disable-no_deps was given.
2867 if test "${enable_no_deps+set}" = set; then
2868 enableval="$enable_no_deps"
2869
2870 if test "$enableval" = yes; then
2871 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2872 else
2873 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2874 fi
2875
2876 else
2877
2878 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2879 if test "x$LINE" != x ; then
2880 eval "DEFAULT_$LINE"
2881 else
2882 no_cache=1
2883 fi
2884
2885 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2886
2887 fi
2888
2889
2890 eval "$ac_cv_use_no_deps"
2891 if test "$no_cache" != 1; then
2892 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2893 fi
2894
2895 if test "$wxUSE_NO_DEPS" = yes; then
2896 echo "$ac_t""yes" 1>&6
2897 else
2898 echo "$ac_t""no" 1>&6
2899 fi
2900
2901
2902
2903 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2904 echo "configure:2905: checking for --enable-compat20" >&5
2905 no_cache=0
2906 # Check whether --enable-compat20 or --disable-compat20 was given.
2907 if test "${enable_compat20+set}" = set; then
2908 enableval="$enable_compat20"
2909
2910 if test "$enableval" = yes; then
2911 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2912 else
2913 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2914 fi
2915
2916 else
2917
2918 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2919 if test "x$LINE" != x ; then
2920 eval "DEFAULT_$LINE"
2921 else
2922 no_cache=1
2923 fi
2924
2925 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2926
2927 fi
2928
2929
2930 eval "$ac_cv_use_compat20"
2931 if test "$no_cache" != 1; then
2932 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2933 fi
2934
2935 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2936 echo "$ac_t""yes" 1>&6
2937 else
2938 echo "$ac_t""no" 1>&6
2939 fi
2940
2941
2942 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2943 echo "configure:2944: checking for --enable-compat22" >&5
2944 no_cache=0
2945 # Check whether --enable-compat22 or --disable-compat22 was given.
2946 if test "${enable_compat22+set}" = set; then
2947 enableval="$enable_compat22"
2948
2949 if test "$enableval" = yes; then
2950 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2951 else
2952 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2953 fi
2954
2955 else
2956
2957 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2958 if test "x$LINE" != x ; then
2959 eval "DEFAULT_$LINE"
2960 else
2961 no_cache=1
2962 fi
2963
2964 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2965
2966 fi
2967
2968
2969 eval "$ac_cv_use_compat22"
2970 if test "$no_cache" != 1; then
2971 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2972 fi
2973
2974 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2975 echo "$ac_t""yes" 1>&6
2976 else
2977 echo "$ac_t""no" 1>&6
2978 fi
2979
2980
2981
2982
2983 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2984 echo "configure:2985: checking for --enable-intl" >&5
2985 no_cache=0
2986 # Check whether --enable-intl or --disable-intl was given.
2987 if test "${enable_intl+set}" = set; then
2988 enableval="$enable_intl"
2989
2990 if test "$enableval" = yes; then
2991 ac_cv_use_intl='wxUSE_INTL=yes'
2992 else
2993 ac_cv_use_intl='wxUSE_INTL=no'
2994 fi
2995
2996 else
2997
2998 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2999 if test "x$LINE" != x ; then
3000 eval "DEFAULT_$LINE"
3001 else
3002 no_cache=1
3003 fi
3004
3005 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3006
3007 fi
3008
3009
3010 eval "$ac_cv_use_intl"
3011 if test "$no_cache" != 1; then
3012 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3013 fi
3014
3015 if test "$wxUSE_INTL" = yes; then
3016 echo "$ac_t""yes" 1>&6
3017 else
3018 echo "$ac_t""no" 1>&6
3019 fi
3020
3021
3022 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3023 echo "configure:3024: checking for --enable-config" >&5
3024 no_cache=0
3025 # Check whether --enable-config or --disable-config was given.
3026 if test "${enable_config+set}" = set; then
3027 enableval="$enable_config"
3028
3029 if test "$enableval" = yes; then
3030 ac_cv_use_config='wxUSE_CONFIG=yes'
3031 else
3032 ac_cv_use_config='wxUSE_CONFIG=no'
3033 fi
3034
3035 else
3036
3037 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3038 if test "x$LINE" != x ; then
3039 eval "DEFAULT_$LINE"
3040 else
3041 no_cache=1
3042 fi
3043
3044 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3045
3046 fi
3047
3048
3049 eval "$ac_cv_use_config"
3050 if test "$no_cache" != 1; then
3051 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3052 fi
3053
3054 if test "$wxUSE_CONFIG" = yes; then
3055 echo "$ac_t""yes" 1>&6
3056 else
3057 echo "$ac_t""no" 1>&6
3058 fi
3059
3060
3061
3062 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3063 echo "configure:3064: checking for --enable-protocols" >&5
3064 no_cache=0
3065 # Check whether --enable-protocols or --disable-protocols was given.
3066 if test "${enable_protocols+set}" = set; then
3067 enableval="$enable_protocols"
3068
3069 if test "$enableval" = yes; then
3070 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3071 else
3072 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3073 fi
3074
3075 else
3076
3077 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3078 if test "x$LINE" != x ; then
3079 eval "DEFAULT_$LINE"
3080 else
3081 no_cache=1
3082 fi
3083
3084 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3085
3086 fi
3087
3088
3089 eval "$ac_cv_use_protocols"
3090 if test "$no_cache" != 1; then
3091 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3092 fi
3093
3094 if test "$wxUSE_PROTOCOL" = yes; then
3095 echo "$ac_t""yes" 1>&6
3096 else
3097 echo "$ac_t""no" 1>&6
3098 fi
3099
3100
3101 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3102 echo "configure:3103: checking for --enable-ftp" >&5
3103 no_cache=0
3104 # Check whether --enable-ftp or --disable-ftp was given.
3105 if test "${enable_ftp+set}" = set; then
3106 enableval="$enable_ftp"
3107
3108 if test "$enableval" = yes; then
3109 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3110 else
3111 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3112 fi
3113
3114 else
3115
3116 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3117 if test "x$LINE" != x ; then
3118 eval "DEFAULT_$LINE"
3119 else
3120 no_cache=1
3121 fi
3122
3123 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3124
3125 fi
3126
3127
3128 eval "$ac_cv_use_ftp"
3129 if test "$no_cache" != 1; then
3130 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3131 fi
3132
3133 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3134 echo "$ac_t""yes" 1>&6
3135 else
3136 echo "$ac_t""no" 1>&6
3137 fi
3138
3139
3140 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3141 echo "configure:3142: checking for --enable-http" >&5
3142 no_cache=0
3143 # Check whether --enable-http or --disable-http was given.
3144 if test "${enable_http+set}" = set; then
3145 enableval="$enable_http"
3146
3147 if test "$enableval" = yes; then
3148 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3149 else
3150 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3151 fi
3152
3153 else
3154
3155 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3156 if test "x$LINE" != x ; then
3157 eval "DEFAULT_$LINE"
3158 else
3159 no_cache=1
3160 fi
3161
3162 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3163
3164 fi
3165
3166
3167 eval "$ac_cv_use_http"
3168 if test "$no_cache" != 1; then
3169 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3170 fi
3171
3172 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3173 echo "$ac_t""yes" 1>&6
3174 else
3175 echo "$ac_t""no" 1>&6
3176 fi
3177
3178
3179 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3180 echo "configure:3181: checking for --enable-fileproto" >&5
3181 no_cache=0
3182 # Check whether --enable-fileproto or --disable-fileproto was given.
3183 if test "${enable_fileproto+set}" = set; then
3184 enableval="$enable_fileproto"
3185
3186 if test "$enableval" = yes; then
3187 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3188 else
3189 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3190 fi
3191
3192 else
3193
3194 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3195 if test "x$LINE" != x ; then
3196 eval "DEFAULT_$LINE"
3197 else
3198 no_cache=1
3199 fi
3200
3201 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3202
3203 fi
3204
3205
3206 eval "$ac_cv_use_fileproto"
3207 if test "$no_cache" != 1; then
3208 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3209 fi
3210
3211 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3212 echo "$ac_t""yes" 1>&6
3213 else
3214 echo "$ac_t""no" 1>&6
3215 fi
3216
3217
3218 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3219 echo "configure:3220: checking for --enable-sockets" >&5
3220 no_cache=0
3221 # Check whether --enable-sockets or --disable-sockets was given.
3222 if test "${enable_sockets+set}" = set; then
3223 enableval="$enable_sockets"
3224
3225 if test "$enableval" = yes; then
3226 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3227 else
3228 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3229 fi
3230
3231 else
3232
3233 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3234 if test "x$LINE" != x ; then
3235 eval "DEFAULT_$LINE"
3236 else
3237 no_cache=1
3238 fi
3239
3240 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3241
3242 fi
3243
3244
3245 eval "$ac_cv_use_sockets"
3246 if test "$no_cache" != 1; then
3247 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3248 fi
3249
3250 if test "$wxUSE_SOCKETS" = yes; then
3251 echo "$ac_t""yes" 1>&6
3252 else
3253 echo "$ac_t""no" 1>&6
3254 fi
3255
3256
3257
3258 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3259 echo "configure:3260: checking for --enable-ipc" >&5
3260 no_cache=0
3261 # Check whether --enable-ipc or --disable-ipc was given.
3262 if test "${enable_ipc+set}" = set; then
3263 enableval="$enable_ipc"
3264
3265 if test "$enableval" = yes; then
3266 ac_cv_use_ipc='wxUSE_IPC=yes'
3267 else
3268 ac_cv_use_ipc='wxUSE_IPC=no'
3269 fi
3270
3271 else
3272
3273 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3274 if test "x$LINE" != x ; then
3275 eval "DEFAULT_$LINE"
3276 else
3277 no_cache=1
3278 fi
3279
3280 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3281
3282 fi
3283
3284
3285 eval "$ac_cv_use_ipc"
3286 if test "$no_cache" != 1; then
3287 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3288 fi
3289
3290 if test "$wxUSE_IPC" = yes; then
3291 echo "$ac_t""yes" 1>&6
3292 else
3293 echo "$ac_t""no" 1>&6
3294 fi
3295
3296
3297
3298 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3299 echo "configure:3300: checking for --enable-cmdline" >&5
3300 no_cache=0
3301 # Check whether --enable-cmdline or --disable-cmdline was given.
3302 if test "${enable_cmdline+set}" = set; then
3303 enableval="$enable_cmdline"
3304
3305 if test "$enableval" = yes; then
3306 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3307 else
3308 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3309 fi
3310
3311 else
3312
3313 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3314 if test "x$LINE" != x ; then
3315 eval "DEFAULT_$LINE"
3316 else
3317 no_cache=1
3318 fi
3319
3320 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3321
3322 fi
3323
3324
3325 eval "$ac_cv_use_cmdline"
3326 if test "$no_cache" != 1; then
3327 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3328 fi
3329
3330 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3331 echo "$ac_t""yes" 1>&6
3332 else
3333 echo "$ac_t""no" 1>&6
3334 fi
3335
3336
3337 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3338 echo "configure:3339: checking for --enable-datetime" >&5
3339 no_cache=0
3340 # Check whether --enable-datetime or --disable-datetime was given.
3341 if test "${enable_datetime+set}" = set; then
3342 enableval="$enable_datetime"
3343
3344 if test "$enableval" = yes; then
3345 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3346 else
3347 ac_cv_use_datetime='wxUSE_DATETIME=no'
3348 fi
3349
3350 else
3351
3352 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3353 if test "x$LINE" != x ; then
3354 eval "DEFAULT_$LINE"
3355 else
3356 no_cache=1
3357 fi
3358
3359 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3360
3361 fi
3362
3363
3364 eval "$ac_cv_use_datetime"
3365 if test "$no_cache" != 1; then
3366 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3367 fi
3368
3369 if test "$wxUSE_DATETIME" = yes; then
3370 echo "$ac_t""yes" 1>&6
3371 else
3372 echo "$ac_t""no" 1>&6
3373 fi
3374
3375
3376 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3377 echo "configure:3378: checking for --enable-timedate" >&5
3378 no_cache=0
3379 # Check whether --enable-timedate or --disable-timedate was given.
3380 if test "${enable_timedate+set}" = set; then
3381 enableval="$enable_timedate"
3382
3383 if test "$enableval" = yes; then
3384 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3385 else
3386 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3387 fi
3388
3389 else
3390
3391 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3392 if test "x$LINE" != x ; then
3393 eval "DEFAULT_$LINE"
3394 else
3395 no_cache=1
3396 fi
3397
3398 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3399
3400 fi
3401
3402
3403 eval "$ac_cv_use_timedate"
3404 if test "$no_cache" != 1; then
3405 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3406 fi
3407
3408 if test "$wxUSE_TIMEDATE" = yes; then
3409 echo "$ac_t""yes" 1>&6
3410 else
3411 echo "$ac_t""no" 1>&6
3412 fi
3413
3414
3415 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3416 echo "configure:3417: checking for --enable-stopwatch" >&5
3417 no_cache=0
3418 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3419 if test "${enable_stopwatch+set}" = set; then
3420 enableval="$enable_stopwatch"
3421
3422 if test "$enableval" = yes; then
3423 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3424 else
3425 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3426 fi
3427
3428 else
3429
3430 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3431 if test "x$LINE" != x ; then
3432 eval "DEFAULT_$LINE"
3433 else
3434 no_cache=1
3435 fi
3436
3437 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3438
3439 fi
3440
3441
3442 eval "$ac_cv_use_stopwatch"
3443 if test "$no_cache" != 1; then
3444 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3445 fi
3446
3447 if test "$wxUSE_STOPWATCH" = yes; then
3448 echo "$ac_t""yes" 1>&6
3449 else
3450 echo "$ac_t""no" 1>&6
3451 fi
3452
3453
3454 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3455 echo "configure:3456: checking for --enable-dialupman" >&5
3456 no_cache=0
3457 # Check whether --enable-dialupman or --disable-dialupman was given.
3458 if test "${enable_dialupman+set}" = set; then
3459 enableval="$enable_dialupman"
3460
3461 if test "$enableval" = yes; then
3462 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3463 else
3464 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3465 fi
3466
3467 else
3468
3469 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3470 if test "x$LINE" != x ; then
3471 eval "DEFAULT_$LINE"
3472 else
3473 no_cache=1
3474 fi
3475
3476 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3477
3478 fi
3479
3480
3481 eval "$ac_cv_use_dialupman"
3482 if test "$no_cache" != 1; then
3483 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3484 fi
3485
3486 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3487 echo "$ac_t""yes" 1>&6
3488 else
3489 echo "$ac_t""no" 1>&6
3490 fi
3491
3492
3493 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3494 echo "configure:3495: checking for --enable-apple_ieee" >&5
3495 no_cache=0
3496 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3497 if test "${enable_apple_ieee+set}" = set; then
3498 enableval="$enable_apple_ieee"
3499
3500 if test "$enableval" = yes; then
3501 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3502 else
3503 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3504 fi
3505
3506 else
3507
3508 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3509 if test "x$LINE" != x ; then
3510 eval "DEFAULT_$LINE"
3511 else
3512 no_cache=1
3513 fi
3514
3515 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3516
3517 fi
3518
3519
3520 eval "$ac_cv_use_apple_ieee"
3521 if test "$no_cache" != 1; then
3522 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3523 fi
3524
3525 if test "$wxUSE_APPLE_IEEE" = yes; then
3526 echo "$ac_t""yes" 1>&6
3527 else
3528 echo "$ac_t""no" 1>&6
3529 fi
3530
3531
3532 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3533 echo "configure:3534: checking for --enable-timer" >&5
3534 no_cache=0
3535 # Check whether --enable-timer or --disable-timer was given.
3536 if test "${enable_timer+set}" = set; then
3537 enableval="$enable_timer"
3538
3539 if test "$enableval" = yes; then
3540 ac_cv_use_timer='wxUSE_TIMER=yes'
3541 else
3542 ac_cv_use_timer='wxUSE_TIMER=no'
3543 fi
3544
3545 else
3546
3547 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3548 if test "x$LINE" != x ; then
3549 eval "DEFAULT_$LINE"
3550 else
3551 no_cache=1
3552 fi
3553
3554 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3555
3556 fi
3557
3558
3559 eval "$ac_cv_use_timer"
3560 if test "$no_cache" != 1; then
3561 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3562 fi
3563
3564 if test "$wxUSE_TIMER" = yes; then
3565 echo "$ac_t""yes" 1>&6
3566 else
3567 echo "$ac_t""no" 1>&6
3568 fi
3569
3570
3571 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3572 echo "configure:3573: checking for --enable-wave" >&5
3573 no_cache=0
3574 # Check whether --enable-wave or --disable-wave was given.
3575 if test "${enable_wave+set}" = set; then
3576 enableval="$enable_wave"
3577
3578 if test "$enableval" = yes; then
3579 ac_cv_use_wave='wxUSE_WAVE=yes'
3580 else
3581 ac_cv_use_wave='wxUSE_WAVE=no'
3582 fi
3583
3584 else
3585
3586 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3587 if test "x$LINE" != x ; then
3588 eval "DEFAULT_$LINE"
3589 else
3590 no_cache=1
3591 fi
3592
3593 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3594
3595 fi
3596
3597
3598 eval "$ac_cv_use_wave"
3599 if test "$no_cache" != 1; then
3600 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3601 fi
3602
3603 if test "$wxUSE_WAVE" = yes; then
3604 echo "$ac_t""yes" 1>&6
3605 else
3606 echo "$ac_t""no" 1>&6
3607 fi
3608
3609
3610 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3611 echo "configure:3612: checking for --enable-fraction" >&5
3612 no_cache=0
3613 # Check whether --enable-fraction or --disable-fraction was given.
3614 if test "${enable_fraction+set}" = set; then
3615 enableval="$enable_fraction"
3616
3617 if test "$enableval" = yes; then
3618 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3619 else
3620 ac_cv_use_fraction='wxUSE_FRACTION=no'
3621 fi
3622
3623 else
3624
3625 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3626 if test "x$LINE" != x ; then
3627 eval "DEFAULT_$LINE"
3628 else
3629 no_cache=1
3630 fi
3631
3632 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3633
3634 fi
3635
3636
3637 eval "$ac_cv_use_fraction"
3638 if test "$no_cache" != 1; then
3639 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3640 fi
3641
3642 if test "$wxUSE_FRACTION" = yes; then
3643 echo "$ac_t""yes" 1>&6
3644 else
3645 echo "$ac_t""no" 1>&6
3646 fi
3647
3648
3649 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3650 echo "configure:3651: checking for --enable-dynlib" >&5
3651 no_cache=0
3652 # Check whether --enable-dynlib or --disable-dynlib was given.
3653 if test "${enable_dynlib+set}" = set; then
3654 enableval="$enable_dynlib"
3655
3656 if test "$enableval" = yes; then
3657 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3658 else
3659 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3660 fi
3661
3662 else
3663
3664 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3665 if test "x$LINE" != x ; then
3666 eval "DEFAULT_$LINE"
3667 else
3668 no_cache=1
3669 fi
3670
3671 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3672
3673 fi
3674
3675
3676 eval "$ac_cv_use_dynlib"
3677 if test "$no_cache" != 1; then
3678 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3679 fi
3680
3681 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3682 echo "$ac_t""yes" 1>&6
3683 else
3684 echo "$ac_t""no" 1>&6
3685 fi
3686
3687
3688 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3689 echo "configure:3690: checking for --enable-dynamicloader" >&5
3690 no_cache=0
3691 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3692 if test "${enable_dynamicloader+set}" = set; then
3693 enableval="$enable_dynamicloader"
3694
3695 if test "$enableval" = yes; then
3696 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3697 else
3698 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3699 fi
3700
3701 else
3702
3703 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3704 if test "x$LINE" != x ; then
3705 eval "DEFAULT_$LINE"
3706 else
3707 no_cache=1
3708 fi
3709
3710 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3711
3712 fi
3713
3714
3715 eval "$ac_cv_use_dynamicloader"
3716 if test "$no_cache" != 1; then
3717 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3718 fi
3719
3720 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3721 echo "$ac_t""yes" 1>&6
3722 else
3723 echo "$ac_t""no" 1>&6
3724 fi
3725
3726
3727 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3728 echo "configure:3729: checking for --enable-longlong" >&5
3729 no_cache=0
3730 # Check whether --enable-longlong or --disable-longlong was given.
3731 if test "${enable_longlong+set}" = set; then
3732 enableval="$enable_longlong"
3733
3734 if test "$enableval" = yes; then
3735 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3736 else
3737 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3738 fi
3739
3740 else
3741
3742 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3743 if test "x$LINE" != x ; then
3744 eval "DEFAULT_$LINE"
3745 else
3746 no_cache=1
3747 fi
3748
3749 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3750
3751 fi
3752
3753
3754 eval "$ac_cv_use_longlong"
3755 if test "$no_cache" != 1; then
3756 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3757 fi
3758
3759 if test "$wxUSE_LONGLONG" = yes; then
3760 echo "$ac_t""yes" 1>&6
3761 else
3762 echo "$ac_t""no" 1>&6
3763 fi
3764
3765
3766 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3767 echo "configure:3768: checking for --enable-geometry" >&5
3768 no_cache=0
3769 # Check whether --enable-geometry or --disable-geometry was given.
3770 if test "${enable_geometry+set}" = set; then
3771 enableval="$enable_geometry"
3772
3773 if test "$enableval" = yes; then
3774 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3775 else
3776 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3777 fi
3778
3779 else
3780
3781 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3782 if test "x$LINE" != x ; then
3783 eval "DEFAULT_$LINE"
3784 else
3785 no_cache=1
3786 fi
3787
3788 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3789
3790 fi
3791
3792
3793 eval "$ac_cv_use_geometry"
3794 if test "$no_cache" != 1; then
3795 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3796 fi
3797
3798 if test "$wxUSE_GEOMETRY" = yes; then
3799 echo "$ac_t""yes" 1>&6
3800 else
3801 echo "$ac_t""no" 1>&6
3802 fi
3803
3804
3805 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3806 echo "configure:3807: checking for --enable-log" >&5
3807 no_cache=0
3808 # Check whether --enable-log or --disable-log was given.
3809 if test "${enable_log+set}" = set; then
3810 enableval="$enable_log"
3811
3812 if test "$enableval" = yes; then
3813 ac_cv_use_log='wxUSE_LOG=yes'
3814 else
3815 ac_cv_use_log='wxUSE_LOG=no'
3816 fi
3817
3818 else
3819
3820 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3821 if test "x$LINE" != x ; then
3822 eval "DEFAULT_$LINE"
3823 else
3824 no_cache=1
3825 fi
3826
3827 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3828
3829 fi
3830
3831
3832 eval "$ac_cv_use_log"
3833 if test "$no_cache" != 1; then
3834 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3835 fi
3836
3837 if test "$wxUSE_LOG" = yes; then
3838 echo "$ac_t""yes" 1>&6
3839 else
3840 echo "$ac_t""no" 1>&6
3841 fi
3842
3843
3844 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3845 echo "configure:3846: checking for --enable-streams" >&5
3846 no_cache=0
3847 # Check whether --enable-streams or --disable-streams was given.
3848 if test "${enable_streams+set}" = set; then
3849 enableval="$enable_streams"
3850
3851 if test "$enableval" = yes; then
3852 ac_cv_use_streams='wxUSE_STREAMS=yes'
3853 else
3854 ac_cv_use_streams='wxUSE_STREAMS=no'
3855 fi
3856
3857 else
3858
3859 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3860 if test "x$LINE" != x ; then
3861 eval "DEFAULT_$LINE"
3862 else
3863 no_cache=1
3864 fi
3865
3866 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3867
3868 fi
3869
3870
3871 eval "$ac_cv_use_streams"
3872 if test "$no_cache" != 1; then
3873 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3874 fi
3875
3876 if test "$wxUSE_STREAMS" = yes; then
3877 echo "$ac_t""yes" 1>&6
3878 else
3879 echo "$ac_t""no" 1>&6
3880 fi
3881
3882
3883 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3884 echo "configure:3885: checking for --enable-file" >&5
3885 no_cache=0
3886 # Check whether --enable-file or --disable-file was given.
3887 if test "${enable_file+set}" = set; then
3888 enableval="$enable_file"
3889
3890 if test "$enableval" = yes; then
3891 ac_cv_use_file='wxUSE_FILE=yes'
3892 else
3893 ac_cv_use_file='wxUSE_FILE=no'
3894 fi
3895
3896 else
3897
3898 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3899 if test "x$LINE" != x ; then
3900 eval "DEFAULT_$LINE"
3901 else
3902 no_cache=1
3903 fi
3904
3905 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3906
3907 fi
3908
3909
3910 eval "$ac_cv_use_file"
3911 if test "$no_cache" != 1; then
3912 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3913 fi
3914
3915 if test "$wxUSE_FILE" = yes; then
3916 echo "$ac_t""yes" 1>&6
3917 else
3918 echo "$ac_t""no" 1>&6
3919 fi
3920
3921
3922 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3923 echo "configure:3924: checking for --enable-ffile" >&5
3924 no_cache=0
3925 # Check whether --enable-ffile or --disable-ffile was given.
3926 if test "${enable_ffile+set}" = set; then
3927 enableval="$enable_ffile"
3928
3929 if test "$enableval" = yes; then
3930 ac_cv_use_ffile='wxUSE_FFILE=yes'
3931 else
3932 ac_cv_use_ffile='wxUSE_FFILE=no'
3933 fi
3934
3935 else
3936
3937 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3938 if test "x$LINE" != x ; then
3939 eval "DEFAULT_$LINE"
3940 else
3941 no_cache=1
3942 fi
3943
3944 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3945
3946 fi
3947
3948
3949 eval "$ac_cv_use_ffile"
3950 if test "$no_cache" != 1; then
3951 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3952 fi
3953
3954 if test "$wxUSE_FFILE" = yes; then
3955 echo "$ac_t""yes" 1>&6
3956 else
3957 echo "$ac_t""no" 1>&6
3958 fi
3959
3960
3961 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3962 echo "configure:3963: checking for --enable-textbuf" >&5
3963 no_cache=0
3964 # Check whether --enable-textbuf or --disable-textbuf was given.
3965 if test "${enable_textbuf+set}" = set; then
3966 enableval="$enable_textbuf"
3967
3968 if test "$enableval" = yes; then
3969 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3970 else
3971 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3972 fi
3973
3974 else
3975
3976 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3977 if test "x$LINE" != x ; then
3978 eval "DEFAULT_$LINE"
3979 else
3980 no_cache=1
3981 fi
3982
3983 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
3984
3985 fi
3986
3987
3988 eval "$ac_cv_use_textbuf"
3989 if test "$no_cache" != 1; then
3990 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
3991 fi
3992
3993 if test "$wxUSE_TEXTBUFFER" = yes; then
3994 echo "$ac_t""yes" 1>&6
3995 else
3996 echo "$ac_t""no" 1>&6
3997 fi
3998
3999
4000 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4001 echo "configure:4002: checking for --enable-textfile" >&5
4002 no_cache=0
4003 # Check whether --enable-textfile or --disable-textfile was given.
4004 if test "${enable_textfile+set}" = set; then
4005 enableval="$enable_textfile"
4006
4007 if test "$enableval" = yes; then
4008 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4009 else
4010 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4011 fi
4012
4013 else
4014
4015 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4016 if test "x$LINE" != x ; then
4017 eval "DEFAULT_$LINE"
4018 else
4019 no_cache=1
4020 fi
4021
4022 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4023
4024 fi
4025
4026
4027 eval "$ac_cv_use_textfile"
4028 if test "$no_cache" != 1; then
4029 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4030 fi
4031
4032 if test "$wxUSE_TEXTFILE" = yes; then
4033 echo "$ac_t""yes" 1>&6
4034 else
4035 echo "$ac_t""no" 1>&6
4036 fi
4037
4038
4039 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4040 echo "configure:4041: checking for --enable-fontmap" >&5
4041 no_cache=0
4042 # Check whether --enable-fontmap or --disable-fontmap was given.
4043 if test "${enable_fontmap+set}" = set; then
4044 enableval="$enable_fontmap"
4045
4046 if test "$enableval" = yes; then
4047 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4048 else
4049 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4050 fi
4051
4052 else
4053
4054 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4055 if test "x$LINE" != x ; then
4056 eval "DEFAULT_$LINE"
4057 else
4058 no_cache=1
4059 fi
4060
4061 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4062
4063 fi
4064
4065
4066 eval "$ac_cv_use_fontmap"
4067 if test "$no_cache" != 1; then
4068 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4069 fi
4070
4071 if test "$wxUSE_FONTMAP" = yes; then
4072 echo "$ac_t""yes" 1>&6
4073 else
4074 echo "$ac_t""no" 1>&6
4075 fi
4076
4077
4078 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4079 echo "configure:4080: checking for --enable-unicode" >&5
4080 no_cache=0
4081 # Check whether --enable-unicode or --disable-unicode was given.
4082 if test "${enable_unicode+set}" = set; then
4083 enableval="$enable_unicode"
4084
4085 if test "$enableval" = yes; then
4086 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4087 else
4088 ac_cv_use_unicode='wxUSE_UNICODE=no'
4089 fi
4090
4091 else
4092
4093 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4094 if test "x$LINE" != x ; then
4095 eval "DEFAULT_$LINE"
4096 else
4097 no_cache=1
4098 fi
4099
4100 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4101
4102 fi
4103
4104
4105 eval "$ac_cv_use_unicode"
4106 if test "$no_cache" != 1; then
4107 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4108 fi
4109
4110 if test "$wxUSE_UNICODE" = yes; then
4111 echo "$ac_t""yes" 1>&6
4112 else
4113 echo "$ac_t""no" 1>&6
4114 fi
4115
4116
4117 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4118 echo "configure:4119: checking for --enable-mslu" >&5
4119 no_cache=0
4120 # Check whether --enable-mslu or --disable-mslu was given.
4121 if test "${enable_mslu+set}" = set; then
4122 enableval="$enable_mslu"
4123
4124 if test "$enableval" = yes; then
4125 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4126 else
4127 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4128 fi
4129
4130 else
4131
4132 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4133 if test "x$LINE" != x ; then
4134 eval "DEFAULT_$LINE"
4135 else
4136 no_cache=1
4137 fi
4138
4139 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4140
4141 fi
4142
4143
4144 eval "$ac_cv_use_mslu"
4145 if test "$no_cache" != 1; then
4146 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4147 fi
4148
4149 if test "$wxUSE_UNICODE_MSLU" = yes; then
4150 echo "$ac_t""yes" 1>&6
4151 else
4152 echo "$ac_t""no" 1>&6
4153 fi
4154
4155
4156 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4157 echo "configure:4158: checking for --enable-wxprintfv" >&5
4158 no_cache=0
4159 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4160 if test "${enable_wxprintfv+set}" = set; then
4161 enableval="$enable_wxprintfv"
4162
4163 if test "$enableval" = yes; then
4164 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4165 else
4166 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4167 fi
4168
4169 else
4170
4171 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4172 if test "x$LINE" != x ; then
4173 eval "DEFAULT_$LINE"
4174 else
4175 no_cache=1
4176 fi
4177
4178 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4179
4180 fi
4181
4182
4183 eval "$ac_cv_use_wxprintfv"
4184 if test "$no_cache" != 1; then
4185 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4186 fi
4187
4188 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4189 echo "$ac_t""yes" 1>&6
4190 else
4191 echo "$ac_t""no" 1>&6
4192 fi
4193
4194
4195 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4196 echo "configure:4197: checking for --enable-std_iostreams" >&5
4197 no_cache=0
4198 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4199 if test "${enable_std_iostreams+set}" = set; then
4200 enableval="$enable_std_iostreams"
4201
4202 if test "$enableval" = yes; then
4203 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4204 else
4205 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4206 fi
4207
4208 else
4209
4210 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4211 if test "x$LINE" != x ; then
4212 eval "DEFAULT_$LINE"
4213 else
4214 no_cache=1
4215 fi
4216
4217 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4218
4219 fi
4220
4221
4222 eval "$ac_cv_use_std_iostreams"
4223 if test "$no_cache" != 1; then
4224 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4225 fi
4226
4227 if test "$wxUSE_STD_IOSTREAM" = yes; then
4228 echo "$ac_t""yes" 1>&6
4229 else
4230 echo "$ac_t""no" 1>&6
4231 fi
4232
4233
4234 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4235 echo "configure:4236: checking for --enable-filesystem" >&5
4236 no_cache=0
4237 # Check whether --enable-filesystem or --disable-filesystem was given.
4238 if test "${enable_filesystem+set}" = set; then
4239 enableval="$enable_filesystem"
4240
4241 if test "$enableval" = yes; then
4242 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4243 else
4244 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4245 fi
4246
4247 else
4248
4249 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4250 if test "x$LINE" != x ; then
4251 eval "DEFAULT_$LINE"
4252 else
4253 no_cache=1
4254 fi
4255
4256 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4257
4258 fi
4259
4260
4261 eval "$ac_cv_use_filesystem"
4262 if test "$no_cache" != 1; then
4263 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4264 fi
4265
4266 if test "$wxUSE_FILESYSTEM" = yes; then
4267 echo "$ac_t""yes" 1>&6
4268 else
4269 echo "$ac_t""no" 1>&6
4270 fi
4271
4272
4273 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4274 echo "configure:4275: checking for --enable-fs_inet" >&5
4275 no_cache=0
4276 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4277 if test "${enable_fs_inet+set}" = set; then
4278 enableval="$enable_fs_inet"
4279
4280 if test "$enableval" = yes; then
4281 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4282 else
4283 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4284 fi
4285
4286 else
4287
4288 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4289 if test "x$LINE" != x ; then
4290 eval "DEFAULT_$LINE"
4291 else
4292 no_cache=1
4293 fi
4294
4295 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4296
4297 fi
4298
4299
4300 eval "$ac_cv_use_fs_inet"
4301 if test "$no_cache" != 1; then
4302 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4303 fi
4304
4305 if test "$wxUSE_FS_INET" = yes; then
4306 echo "$ac_t""yes" 1>&6
4307 else
4308 echo "$ac_t""no" 1>&6
4309 fi
4310
4311
4312 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4313 echo "configure:4314: checking for --enable-fs_zip" >&5
4314 no_cache=0
4315 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4316 if test "${enable_fs_zip+set}" = set; then
4317 enableval="$enable_fs_zip"
4318
4319 if test "$enableval" = yes; then
4320 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4321 else
4322 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4323 fi
4324
4325 else
4326
4327 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4328 if test "x$LINE" != x ; then
4329 eval "DEFAULT_$LINE"
4330 else
4331 no_cache=1
4332 fi
4333
4334 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4335
4336 fi
4337
4338
4339 eval "$ac_cv_use_fs_zip"
4340 if test "$no_cache" != 1; then
4341 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4342 fi
4343
4344 if test "$wxUSE_FS_ZIP" = yes; then
4345 echo "$ac_t""yes" 1>&6
4346 else
4347 echo "$ac_t""no" 1>&6
4348 fi
4349
4350
4351 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4352 echo "configure:4353: checking for --enable-zipstream" >&5
4353 no_cache=0
4354 # Check whether --enable-zipstream or --disable-zipstream was given.
4355 if test "${enable_zipstream+set}" = set; then
4356 enableval="$enable_zipstream"
4357
4358 if test "$enableval" = yes; then
4359 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4360 else
4361 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4362 fi
4363
4364 else
4365
4366 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4367 if test "x$LINE" != x ; then
4368 eval "DEFAULT_$LINE"
4369 else
4370 no_cache=1
4371 fi
4372
4373 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4374
4375 fi
4376
4377
4378 eval "$ac_cv_use_zipstream"
4379 if test "$no_cache" != 1; then
4380 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4381 fi
4382
4383 if test "$wxUSE_ZIPSTREAM" = yes; then
4384 echo "$ac_t""yes" 1>&6
4385 else
4386 echo "$ac_t""no" 1>&6
4387 fi
4388
4389
4390
4391 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4392 echo "configure:4393: checking for --enable-catch_segvs" >&5
4393 no_cache=0
4394 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4395 if test "${enable_catch_segvs+set}" = set; then
4396 enableval="$enable_catch_segvs"
4397
4398 if test "$enableval" = yes; then
4399 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4400 else
4401 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4402 fi
4403
4404 else
4405
4406 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4407 if test "x$LINE" != x ; then
4408 eval "DEFAULT_$LINE"
4409 else
4410 no_cache=1
4411 fi
4412
4413 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4414
4415 fi
4416
4417
4418 eval "$ac_cv_use_catch_segvs"
4419 if test "$no_cache" != 1; then
4420 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4421 fi
4422
4423 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4424 echo "$ac_t""yes" 1>&6
4425 else
4426 echo "$ac_t""no" 1>&6
4427 fi
4428
4429
4430 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4431 echo "configure:4432: checking for --enable-snglinst" >&5
4432 no_cache=0
4433 # Check whether --enable-snglinst or --disable-snglinst was given.
4434 if test "${enable_snglinst+set}" = set; then
4435 enableval="$enable_snglinst"
4436
4437 if test "$enableval" = yes; then
4438 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4439 else
4440 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4441 fi
4442
4443 else
4444
4445 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4446 if test "x$LINE" != x ; then
4447 eval "DEFAULT_$LINE"
4448 else
4449 no_cache=1
4450 fi
4451
4452 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4453
4454 fi
4455
4456
4457 eval "$ac_cv_use_snglinst"
4458 if test "$no_cache" != 1; then
4459 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4460 fi
4461
4462 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4463 echo "$ac_t""yes" 1>&6
4464 else
4465 echo "$ac_t""no" 1>&6
4466 fi
4467
4468
4469
4470 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4471 echo "configure:4472: checking for --enable-mimetype" >&5
4472 no_cache=0
4473 # Check whether --enable-mimetype or --disable-mimetype was given.
4474 if test "${enable_mimetype+set}" = set; then
4475 enableval="$enable_mimetype"
4476
4477 if test "$enableval" = yes; then
4478 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4479 else
4480 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4481 fi
4482
4483 else
4484
4485 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4486 if test "x$LINE" != x ; then
4487 eval "DEFAULT_$LINE"
4488 else
4489 no_cache=1
4490 fi
4491
4492 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4493
4494 fi
4495
4496
4497 eval "$ac_cv_use_mimetype"
4498 if test "$no_cache" != 1; then
4499 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4500 fi
4501
4502 if test "$wxUSE_MIMETYPE" = yes; then
4503 echo "$ac_t""yes" 1>&6
4504 else
4505 echo "$ac_t""no" 1>&6
4506 fi
4507
4508
4509 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4510 echo "configure:4511: checking for --enable-system_options" >&5
4511 no_cache=0
4512 # Check whether --enable-system_options or --disable-system_options was given.
4513 if test "${enable_system_options+set}" = set; then
4514 enableval="$enable_system_options"
4515
4516 if test "$enableval" = yes; then
4517 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4518 else
4519 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4520 fi
4521
4522 else
4523
4524 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4525 if test "x$LINE" != x ; then
4526 eval "DEFAULT_$LINE"
4527 else
4528 no_cache=1
4529 fi
4530
4531 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4532
4533 fi
4534
4535
4536 eval "$ac_cv_use_system_options"
4537 if test "$no_cache" != 1; then
4538 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4539 fi
4540
4541 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4542 echo "$ac_t""yes" 1>&6
4543 else
4544 echo "$ac_t""no" 1>&6
4545 fi
4546
4547
4548
4549 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4550 echo "configure:4551: checking for --enable-url" >&5
4551 no_cache=0
4552 # Check whether --enable-url or --disable-url was given.
4553 if test "${enable_url+set}" = set; then
4554 enableval="$enable_url"
4555
4556 if test "$enableval" = yes; then
4557 ac_cv_use_url='wxUSE_URL=yes'
4558 else
4559 ac_cv_use_url='wxUSE_URL=no'
4560 fi
4561
4562 else
4563
4564 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4565 if test "x$LINE" != x ; then
4566 eval "DEFAULT_$LINE"
4567 else
4568 no_cache=1
4569 fi
4570
4571 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4572
4573 fi
4574
4575
4576 eval "$ac_cv_use_url"
4577 if test "$no_cache" != 1; then
4578 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4579 fi
4580
4581 if test "$wxUSE_URL" = yes; then
4582 echo "$ac_t""yes" 1>&6
4583 else
4584 echo "$ac_t""no" 1>&6
4585 fi
4586
4587
4588 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4589 echo "configure:4590: checking for --enable-protocol" >&5
4590 no_cache=0
4591 # Check whether --enable-protocol or --disable-protocol was given.
4592 if test "${enable_protocol+set}" = set; then
4593 enableval="$enable_protocol"
4594
4595 if test "$enableval" = yes; then
4596 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4597 else
4598 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4599 fi
4600
4601 else
4602
4603 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4604 if test "x$LINE" != x ; then
4605 eval "DEFAULT_$LINE"
4606 else
4607 no_cache=1
4608 fi
4609
4610 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4611
4612 fi
4613
4614
4615 eval "$ac_cv_use_protocol"
4616 if test "$no_cache" != 1; then
4617 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4618 fi
4619
4620 if test "$wxUSE_PROTOCOL" = yes; then
4621 echo "$ac_t""yes" 1>&6
4622 else
4623 echo "$ac_t""no" 1>&6
4624 fi
4625
4626
4627 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4628 echo "configure:4629: checking for --enable-protocol_http" >&5
4629 no_cache=0
4630 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4631 if test "${enable_protocol_http+set}" = set; then
4632 enableval="$enable_protocol_http"
4633
4634 if test "$enableval" = yes; then
4635 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4636 else
4637 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4638 fi
4639
4640 else
4641
4642 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4643 if test "x$LINE" != x ; then
4644 eval "DEFAULT_$LINE"
4645 else
4646 no_cache=1
4647 fi
4648
4649 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4650
4651 fi
4652
4653
4654 eval "$ac_cv_use_protocol_http"
4655 if test "$no_cache" != 1; then
4656 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4657 fi
4658
4659 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4660 echo "$ac_t""yes" 1>&6
4661 else
4662 echo "$ac_t""no" 1>&6
4663 fi
4664
4665
4666 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4667 echo "configure:4668: checking for --enable-protocol_ftp" >&5
4668 no_cache=0
4669 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4670 if test "${enable_protocol_ftp+set}" = set; then
4671 enableval="$enable_protocol_ftp"
4672
4673 if test "$enableval" = yes; then
4674 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4675 else
4676 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4677 fi
4678
4679 else
4680
4681 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4682 if test "x$LINE" != x ; then
4683 eval "DEFAULT_$LINE"
4684 else
4685 no_cache=1
4686 fi
4687
4688 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4689
4690 fi
4691
4692
4693 eval "$ac_cv_use_protocol_ftp"
4694 if test "$no_cache" != 1; then
4695 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4696 fi
4697
4698 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4699 echo "$ac_t""yes" 1>&6
4700 else
4701 echo "$ac_t""no" 1>&6
4702 fi
4703
4704
4705 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4706 echo "configure:4707: checking for --enable-protocol_file" >&5
4707 no_cache=0
4708 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4709 if test "${enable_protocol_file+set}" = set; then
4710 enableval="$enable_protocol_file"
4711
4712 if test "$enableval" = yes; then
4713 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4714 else
4715 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4716 fi
4717
4718 else
4719
4720 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4721 if test "x$LINE" != x ; then
4722 eval "DEFAULT_$LINE"
4723 else
4724 no_cache=1
4725 fi
4726
4727 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4728
4729 fi
4730
4731
4732 eval "$ac_cv_use_protocol_file"
4733 if test "$no_cache" != 1; then
4734 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4735 fi
4736
4737 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4738 echo "$ac_t""yes" 1>&6
4739 else
4740 echo "$ac_t""no" 1>&6
4741 fi
4742
4743
4744
4745
4746
4747 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4748 echo "configure:4749: checking for --enable-threads" >&5
4749 no_cache=0
4750 # Check whether --enable-threads or --disable-threads was given.
4751 if test "${enable_threads+set}" = set; then
4752 enableval="$enable_threads"
4753
4754 if test "$enableval" = yes; then
4755 ac_cv_use_threads='wxUSE_THREADS=yes'
4756 else
4757 ac_cv_use_threads='wxUSE_THREADS=no'
4758 fi
4759
4760 else
4761
4762 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4763 if test "x$LINE" != x ; then
4764 eval "DEFAULT_$LINE"
4765 else
4766 no_cache=1
4767 fi
4768
4769 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4770
4771 fi
4772
4773
4774 eval "$ac_cv_use_threads"
4775 if test "$no_cache" != 1; then
4776 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4777 fi
4778
4779 if test "$wxUSE_THREADS" = yes; then
4780 echo "$ac_t""yes" 1>&6
4781 else
4782 echo "$ac_t""no" 1>&6
4783 fi
4784
4785
4786 if test "$wxUSE_GUI" = "yes"; then
4787
4788
4789
4790 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4791 echo "configure:4792: checking for --enable-docview" >&5
4792 no_cache=0
4793 # Check whether --enable-docview or --disable-docview was given.
4794 if test "${enable_docview+set}" = set; then
4795 enableval="$enable_docview"
4796
4797 if test "$enableval" = yes; then
4798 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4799 else
4800 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4801 fi
4802
4803 else
4804
4805 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4806 if test "x$LINE" != x ; then
4807 eval "DEFAULT_$LINE"
4808 else
4809 no_cache=1
4810 fi
4811
4812 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4813
4814 fi
4815
4816
4817 eval "$ac_cv_use_docview"
4818 if test "$no_cache" != 1; then
4819 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4820 fi
4821
4822 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4823 echo "$ac_t""yes" 1>&6
4824 else
4825 echo "$ac_t""no" 1>&6
4826 fi
4827
4828
4829 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4830 echo "configure:4831: checking for --enable-help" >&5
4831 no_cache=0
4832 # Check whether --enable-help or --disable-help was given.
4833 if test "${enable_help+set}" = set; then
4834 enableval="$enable_help"
4835
4836 if test "$enableval" = yes; then
4837 ac_cv_use_help='wxUSE_HELP=yes'
4838 else
4839 ac_cv_use_help='wxUSE_HELP=no'
4840 fi
4841
4842 else
4843
4844 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4845 if test "x$LINE" != x ; then
4846 eval "DEFAULT_$LINE"
4847 else
4848 no_cache=1
4849 fi
4850
4851 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4852
4853 fi
4854
4855
4856 eval "$ac_cv_use_help"
4857 if test "$no_cache" != 1; then
4858 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4859 fi
4860
4861 if test "$wxUSE_HELP" = yes; then
4862 echo "$ac_t""yes" 1>&6
4863 else
4864 echo "$ac_t""no" 1>&6
4865 fi
4866
4867
4868 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4869 echo "configure:4870: checking for --enable-mshtmlhelp" >&5
4870 no_cache=0
4871 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4872 if test "${enable_mshtmlhelp+set}" = set; then
4873 enableval="$enable_mshtmlhelp"
4874
4875 if test "$enableval" = yes; then
4876 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4877 else
4878 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4879 fi
4880
4881 else
4882
4883 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4884 if test "x$LINE" != x ; then
4885 eval "DEFAULT_$LINE"
4886 else
4887 no_cache=1
4888 fi
4889
4890 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4891
4892 fi
4893
4894
4895 eval "$ac_cv_use_mshtmlhelp"
4896 if test "$no_cache" != 1; then
4897 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4898 fi
4899
4900 if test "$wxUSE_MS_HTML_HELP" = yes; then
4901 echo "$ac_t""yes" 1>&6
4902 else
4903 echo "$ac_t""no" 1>&6
4904 fi
4905
4906
4907 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4908 echo "configure:4909: checking for --enable-html" >&5
4909 no_cache=0
4910 # Check whether --enable-html or --disable-html was given.
4911 if test "${enable_html+set}" = set; then
4912 enableval="$enable_html"
4913
4914 if test "$enableval" = yes; then
4915 ac_cv_use_html='wxUSE_HTML=yes'
4916 else
4917 ac_cv_use_html='wxUSE_HTML=no'
4918 fi
4919
4920 else
4921
4922 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4923 if test "x$LINE" != x ; then
4924 eval "DEFAULT_$LINE"
4925 else
4926 no_cache=1
4927 fi
4928
4929 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4930
4931 fi
4932
4933
4934 eval "$ac_cv_use_html"
4935 if test "$no_cache" != 1; then
4936 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4937 fi
4938
4939 if test "$wxUSE_HTML" = yes; then
4940 echo "$ac_t""yes" 1>&6
4941 else
4942 echo "$ac_t""no" 1>&6
4943 fi
4944
4945
4946 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4947 echo "configure:4948: checking for --enable-htmlhelp" >&5
4948 no_cache=0
4949 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4950 if test "${enable_htmlhelp+set}" = set; then
4951 enableval="$enable_htmlhelp"
4952
4953 if test "$enableval" = yes; then
4954 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4955 else
4956 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4957 fi
4958
4959 else
4960
4961 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4962 if test "x$LINE" != x ; then
4963 eval "DEFAULT_$LINE"
4964 else
4965 no_cache=1
4966 fi
4967
4968 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4969
4970 fi
4971
4972
4973 eval "$ac_cv_use_htmlhelp"
4974 if test "$no_cache" != 1; then
4975 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4976 fi
4977
4978 if test "$wxUSE_WXHTML_HELP" = yes; then
4979 echo "$ac_t""yes" 1>&6
4980 else
4981 echo "$ac_t""no" 1>&6
4982 fi
4983
4984
4985 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4986 echo "configure:4987: checking for --enable-constraints" >&5
4987 no_cache=0
4988 # Check whether --enable-constraints or --disable-constraints was given.
4989 if test "${enable_constraints+set}" = set; then
4990 enableval="$enable_constraints"
4991
4992 if test "$enableval" = yes; then
4993 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4994 else
4995 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4996 fi
4997
4998 else
4999
5000 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5001 if test "x$LINE" != x ; then
5002 eval "DEFAULT_$LINE"
5003 else
5004 no_cache=1
5005 fi
5006
5007 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5008
5009 fi
5010
5011
5012 eval "$ac_cv_use_constraints"
5013 if test "$no_cache" != 1; then
5014 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5015 fi
5016
5017 if test "$wxUSE_CONSTRAINTS" = yes; then
5018 echo "$ac_t""yes" 1>&6
5019 else
5020 echo "$ac_t""no" 1>&6
5021 fi
5022
5023
5024 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5025 echo "configure:5026: checking for --enable-printarch" >&5
5026 no_cache=0
5027 # Check whether --enable-printarch or --disable-printarch was given.
5028 if test "${enable_printarch+set}" = set; then
5029 enableval="$enable_printarch"
5030
5031 if test "$enableval" = yes; then
5032 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5033 else
5034 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5035 fi
5036
5037 else
5038
5039 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5040 if test "x$LINE" != x ; then
5041 eval "DEFAULT_$LINE"
5042 else
5043 no_cache=1
5044 fi
5045
5046 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5047
5048 fi
5049
5050
5051 eval "$ac_cv_use_printarch"
5052 if test "$no_cache" != 1; then
5053 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5054 fi
5055
5056 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5057 echo "$ac_t""yes" 1>&6
5058 else
5059 echo "$ac_t""no" 1>&6
5060 fi
5061
5062
5063 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5064 echo "configure:5065: checking for --enable-mdi" >&5
5065 no_cache=0
5066 # Check whether --enable-mdi or --disable-mdi was given.
5067 if test "${enable_mdi+set}" = set; then
5068 enableval="$enable_mdi"
5069
5070 if test "$enableval" = yes; then
5071 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5072 else
5073 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5074 fi
5075
5076 else
5077
5078 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5079 if test "x$LINE" != x ; then
5080 eval "DEFAULT_$LINE"
5081 else
5082 no_cache=1
5083 fi
5084
5085 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5086
5087 fi
5088
5089
5090 eval "$ac_cv_use_mdi"
5091 if test "$no_cache" != 1; then
5092 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5093 fi
5094
5095 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5096 echo "$ac_t""yes" 1>&6
5097 else
5098 echo "$ac_t""no" 1>&6
5099 fi
5100
5101
5102 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5103 echo "configure:5104: checking for --enable-loggui" >&5
5104 no_cache=0
5105 # Check whether --enable-loggui or --disable-loggui was given.
5106 if test "${enable_loggui+set}" = set; then
5107 enableval="$enable_loggui"
5108
5109 if test "$enableval" = yes; then
5110 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5111 else
5112 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5113 fi
5114
5115 else
5116
5117 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5118 if test "x$LINE" != x ; then
5119 eval "DEFAULT_$LINE"
5120 else
5121 no_cache=1
5122 fi
5123
5124 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5125
5126 fi
5127
5128
5129 eval "$ac_cv_use_loggui"
5130 if test "$no_cache" != 1; then
5131 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5132 fi
5133
5134 if test "$wxUSE_LOGGUI" = yes; then
5135 echo "$ac_t""yes" 1>&6
5136 else
5137 echo "$ac_t""no" 1>&6
5138 fi
5139
5140
5141 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5142 echo "configure:5143: checking for --enable-logwin" >&5
5143 no_cache=0
5144 # Check whether --enable-logwin or --disable-logwin was given.
5145 if test "${enable_logwin+set}" = set; then
5146 enableval="$enable_logwin"
5147
5148 if test "$enableval" = yes; then
5149 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5150 else
5151 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5152 fi
5153
5154 else
5155
5156 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5157 if test "x$LINE" != x ; then
5158 eval "DEFAULT_$LINE"
5159 else
5160 no_cache=1
5161 fi
5162
5163 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5164
5165 fi
5166
5167
5168 eval "$ac_cv_use_logwin"
5169 if test "$no_cache" != 1; then
5170 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5171 fi
5172
5173 if test "$wxUSE_LOGWINDOW" = yes; then
5174 echo "$ac_t""yes" 1>&6
5175 else
5176 echo "$ac_t""no" 1>&6
5177 fi
5178
5179
5180 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5181 echo "configure:5182: checking for --enable-logdialog" >&5
5182 no_cache=0
5183 # Check whether --enable-logdialog or --disable-logdialog was given.
5184 if test "${enable_logdialog+set}" = set; then
5185 enableval="$enable_logdialog"
5186
5187 if test "$enableval" = yes; then
5188 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5189 else
5190 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5191 fi
5192
5193 else
5194
5195 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5196 if test "x$LINE" != x ; then
5197 eval "DEFAULT_$LINE"
5198 else
5199 no_cache=1
5200 fi
5201
5202 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5203
5204 fi
5205
5206
5207 eval "$ac_cv_use_logdialog"
5208 if test "$no_cache" != 1; then
5209 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5210 fi
5211
5212 if test "$wxUSE_LOGDIALOG" = yes; then
5213 echo "$ac_t""yes" 1>&6
5214 else
5215 echo "$ac_t""no" 1>&6
5216 fi
5217
5218
5219
5220 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5221 echo "configure:5222: checking for --enable-postscript" >&5
5222 no_cache=0
5223 # Check whether --enable-postscript or --disable-postscript was given.
5224 if test "${enable_postscript+set}" = set; then
5225 enableval="$enable_postscript"
5226
5227 if test "$enableval" = yes; then
5228 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5229 else
5230 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5231 fi
5232
5233 else
5234
5235 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5236 if test "x$LINE" != x ; then
5237 eval "DEFAULT_$LINE"
5238 else
5239 no_cache=1
5240 fi
5241
5242 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5243
5244 fi
5245
5246
5247 eval "$ac_cv_use_postscript"
5248 if test "$no_cache" != 1; then
5249 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5250 fi
5251
5252 if test "$wxUSE_POSTSCRIPT" = yes; then
5253 echo "$ac_t""yes" 1>&6
5254 else
5255 echo "$ac_t""no" 1>&6
5256 fi
5257
5258
5259
5260
5261
5262 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5263 echo "configure:5264: checking for --enable-prologio" >&5
5264 no_cache=0
5265 # Check whether --enable-prologio or --disable-prologio was given.
5266 if test "${enable_prologio+set}" = set; then
5267 enableval="$enable_prologio"
5268
5269 if test "$enableval" = yes; then
5270 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5271 else
5272 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5273 fi
5274
5275 else
5276
5277 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5278 if test "x$LINE" != x ; then
5279 eval "DEFAULT_$LINE"
5280 else
5281 no_cache=1
5282 fi
5283
5284 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5285
5286 fi
5287
5288
5289 eval "$ac_cv_use_prologio"
5290 if test "$no_cache" != 1; then
5291 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5292 fi
5293
5294 if test "$wxUSE_PROLOGIO" = yes; then
5295 echo "$ac_t""yes" 1>&6
5296 else
5297 echo "$ac_t""no" 1>&6
5298 fi
5299
5300
5301 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5302 echo "configure:5303: checking for --enable-resources" >&5
5303 no_cache=0
5304 # Check whether --enable-resources or --disable-resources was given.
5305 if test "${enable_resources+set}" = set; then
5306 enableval="$enable_resources"
5307
5308 if test "$enableval" = yes; then
5309 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5310 else
5311 ac_cv_use_resources='wxUSE_RESOURCES=no'
5312 fi
5313
5314 else
5315
5316 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5317 if test "x$LINE" != x ; then
5318 eval "DEFAULT_$LINE"
5319 else
5320 no_cache=1
5321 fi
5322
5323 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5324
5325 fi
5326
5327
5328 eval "$ac_cv_use_resources"
5329 if test "$no_cache" != 1; then
5330 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5331 fi
5332
5333 if test "$wxUSE_RESOURCES" = yes; then
5334 echo "$ac_t""yes" 1>&6
5335 else
5336 echo "$ac_t""no" 1>&6
5337 fi
5338
5339
5340
5341 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5342 echo "configure:5343: checking for --enable-xresources" >&5
5343 no_cache=0
5344 # Check whether --enable-xresources or --disable-xresources was given.
5345 if test "${enable_xresources+set}" = set; then
5346 enableval="$enable_xresources"
5347
5348 if test "$enableval" = yes; then
5349 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5350 else
5351 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5352 fi
5353
5354 else
5355
5356 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5357 if test "x$LINE" != x ; then
5358 eval "DEFAULT_$LINE"
5359 else
5360 no_cache=1
5361 fi
5362
5363 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5364
5365 fi
5366
5367
5368 eval "$ac_cv_use_xresources"
5369 if test "$no_cache" != 1; then
5370 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5371 fi
5372
5373 if test "$wxUSE_X_RESOURCES" = yes; then
5374 echo "$ac_t""yes" 1>&6
5375 else
5376 echo "$ac_t""no" 1>&6
5377 fi
5378
5379
5380
5381
5382 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5383 echo "configure:5384: checking for --enable-clipboard" >&5
5384 no_cache=0
5385 # Check whether --enable-clipboard or --disable-clipboard was given.
5386 if test "${enable_clipboard+set}" = set; then
5387 enableval="$enable_clipboard"
5388
5389 if test "$enableval" = yes; then
5390 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5391 else
5392 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5393 fi
5394
5395 else
5396
5397 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5398 if test "x$LINE" != x ; then
5399 eval "DEFAULT_$LINE"
5400 else
5401 no_cache=1
5402 fi
5403
5404 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5405
5406 fi
5407
5408
5409 eval "$ac_cv_use_clipboard"
5410 if test "$no_cache" != 1; then
5411 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5412 fi
5413
5414 if test "$wxUSE_CLIPBOARD" = yes; then
5415 echo "$ac_t""yes" 1>&6
5416 else
5417 echo "$ac_t""no" 1>&6
5418 fi
5419
5420
5421 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5422 echo "configure:5423: checking for --enable-dnd" >&5
5423 no_cache=0
5424 # Check whether --enable-dnd or --disable-dnd was given.
5425 if test "${enable_dnd+set}" = set; then
5426 enableval="$enable_dnd"
5427
5428 if test "$enableval" = yes; then
5429 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5430 else
5431 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5432 fi
5433
5434 else
5435
5436 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5437 if test "x$LINE" != x ; then
5438 eval "DEFAULT_$LINE"
5439 else
5440 no_cache=1
5441 fi
5442
5443 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5444
5445 fi
5446
5447
5448 eval "$ac_cv_use_dnd"
5449 if test "$no_cache" != 1; then
5450 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5451 fi
5452
5453 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5454 echo "$ac_t""yes" 1>&6
5455 else
5456 echo "$ac_t""no" 1>&6
5457 fi
5458
5459
5460 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5461 echo "configure:5462: checking for --enable-metafile" >&5
5462 no_cache=0
5463 # Check whether --enable-metafile or --disable-metafile was given.
5464 if test "${enable_metafile+set}" = set; then
5465 enableval="$enable_metafile"
5466
5467 if test "$enableval" = yes; then
5468 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5469 else
5470 ac_cv_use_metafile='wxUSE_METAFILE=no'
5471 fi
5472
5473 else
5474
5475 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5476 if test "x$LINE" != x ; then
5477 eval "DEFAULT_$LINE"
5478 else
5479 no_cache=1
5480 fi
5481
5482 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5483
5484 fi
5485
5486
5487 eval "$ac_cv_use_metafile"
5488 if test "$no_cache" != 1; then
5489 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5490 fi
5491
5492 if test "$wxUSE_METAFILE" = yes; then
5493 echo "$ac_t""yes" 1>&6
5494 else
5495 echo "$ac_t""no" 1>&6
5496 fi
5497
5498
5499
5500 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5501 echo "configure:5502: checking for --enable-treelayout" >&5
5502 no_cache=0
5503 # Check whether --enable-treelayout or --disable-treelayout was given.
5504 if test "${enable_treelayout+set}" = set; then
5505 enableval="$enable_treelayout"
5506
5507 if test "$enableval" = yes; then
5508 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5509 else
5510 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5511 fi
5512
5513 else
5514
5515 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5516 if test "x$LINE" != x ; then
5517 eval "DEFAULT_$LINE"
5518 else
5519 no_cache=1
5520 fi
5521
5522 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5523
5524 fi
5525
5526
5527 eval "$ac_cv_use_treelayout"
5528 if test "$no_cache" != 1; then
5529 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5530 fi
5531
5532 if test "$wxUSE_TREELAYOUT" = yes; then
5533 echo "$ac_t""yes" 1>&6
5534 else
5535 echo "$ac_t""no" 1>&6
5536 fi
5537
5538
5539
5540
5541 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5542 echo "configure:5543: checking for --enable-controls" >&5
5543 no_cache=0
5544 # Check whether --enable-controls or --disable-controls was given.
5545 if test "${enable_controls+set}" = set; then
5546 enableval="$enable_controls"
5547
5548 if test "$enableval" = yes; then
5549 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5550 else
5551 ac_cv_use_controls='wxUSE_CONTROLS=no'
5552 fi
5553
5554 else
5555
5556 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5557 if test "x$LINE" != x ; then
5558 eval "DEFAULT_$LINE"
5559 else
5560 no_cache=1
5561 fi
5562
5563 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5564
5565 fi
5566
5567
5568 eval "$ac_cv_use_controls"
5569 if test "$no_cache" != 1; then
5570 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5571 fi
5572
5573 if test "$wxUSE_CONTROLS" = yes; then
5574 echo "$ac_t""yes" 1>&6
5575 else
5576 echo "$ac_t""no" 1>&6
5577 fi
5578
5579
5580 if test "$wxUSE_CONTROLS" = "yes"; then
5581 DEFAULT_wxUSE_ACCEL=yes
5582 DEFAULT_wxUSE_BMPBUTTON=yes
5583 DEFAULT_wxUSE_BUTTON=yes
5584 DEFAULT_wxUSE_CALCTRL=no
5585 DEFAULT_wxUSE_CARET=yes
5586 DEFAULT_wxUSE_COMBOBOX=yes
5587 DEFAULT_wxUSE_CHECKBOX=yes
5588 DEFAULT_wxUSE_CHECKLISTBOX=yes
5589 DEFAULT_wxUSE_CHOICE=yes
5590 DEFAULT_wxUSE_GAUGE=yes
5591 DEFAULT_wxUSE_GRID=yes
5592 DEFAULT_wxUSE_NEW_GRID=yes
5593 DEFAULT_wxUSE_IMAGLIST=yes
5594 DEFAULT_wxUSE_LISTBOX=yes
5595 DEFAULT_wxUSE_LISTCTRL=yes
5596 DEFAULT_wxUSE_NOTEBOOK=yes
5597 DEFAULT_wxUSE_PROPSHEET=yes
5598 DEFAULT_wxUSE_RADIOBOX=yes
5599 DEFAULT_wxUSE_RADIOBTN=yes
5600 DEFAULT_wxUSE_SASH=yes
5601 DEFAULT_wxUSE_SCROLLBAR=yes
5602 DEFAULT_wxUSE_SLIDER=yes
5603 DEFAULT_wxUSE_SPINBTN=yes
5604 DEFAULT_wxUSE_SPINCTRL=yes
5605 DEFAULT_wxUSE_SPLITTER=yes
5606 DEFAULT_wxUSE_STATBMP=yes
5607 DEFAULT_wxUSE_STATBOX=yes
5608 DEFAULT_wxUSE_STATLINE=yes
5609 DEFAULT_wxUSE_STATUSBAR=yes
5610 DEFAULT_wxUSE_TAB_DIALOG=yes
5611 DEFAULT_wxUSE_TOGGLEBTN=yes
5612 DEFAULT_wxUSE_TOOLBAR=yes
5613 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5614 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5615 DEFAULT_wxUSE_TOOLTIPS=yes
5616 DEFAULT_wxUSE_TREECTRL=yes
5617 DEFAULT_wxUSE_POPUPWIN=yes
5618 DEFAULT_wxUSE_TIPWINDOW=yes
5619 elif test "$wxUSE_CONTROLS" = "no"; then
5620 DEFAULT_wxUSE_ACCEL=no
5621 DEFAULT_wxUSE_BMPBUTTON=no
5622 DEFAULT_wxUSE_BUTTON=no
5623 DEFAULT_wxUSE_CALCTRL=no
5624 DEFAULT_wxUSE_CARET=no
5625 DEFAULT_wxUSE_COMBOBOX=no
5626 DEFAULT_wxUSE_CHECKBOX=no
5627 DEFAULT_wxUSE_CHECKLISTBOX=no
5628 DEFAULT_wxUSE_CHOICE=no
5629 DEFAULT_wxUSE_GAUGE=no
5630 DEFAULT_wxUSE_GRID=no
5631 DEFAULT_wxUSE_NEW_GRID=no
5632 DEFAULT_wxUSE_IMAGLIST=no
5633 DEFAULT_wxUSE_LISTBOX=no
5634 DEFAULT_wxUSE_LISTCTRL=no
5635 DEFAULT_wxUSE_NOTEBOOK=no
5636 DEFAULT_wxUSE_PROPSHEET=no
5637 DEFAULT_wxUSE_RADIOBOX=no
5638 DEFAULT_wxUSE_RADIOBTN=no
5639 DEFAULT_wxUSE_SASH=no
5640 DEFAULT_wxUSE_SCROLLBAR=no
5641 DEFAULT_wxUSE_SLIDER=no
5642 DEFAULT_wxUSE_SPINBTN=no
5643 DEFAULT_wxUSE_SPINCTRL=no
5644 DEFAULT_wxUSE_SPLITTER=no
5645 DEFAULT_wxUSE_STATBMP=no
5646 DEFAULT_wxUSE_STATBOX=no
5647 DEFAULT_wxUSE_STATLINE=no
5648 DEFAULT_wxUSE_STATUSBAR=no
5649 DEFAULT_wxUSE_TAB_DIALOG=no
5650 DEFAULT_wxUSE_TOGGLEBTN=no
5651 DEFAULT_wxUSE_TOOLBAR=no
5652 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5653 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5654 DEFAULT_wxUSE_TOOLTIPS=no
5655 DEFAULT_wxUSE_TREECTRL=no
5656 DEFAULT_wxUSE_POPUPWIN=no
5657 DEFAULT_wxUSE_TIPWINDOW=no
5658 fi
5659
5660
5661 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5662 echo "configure:5663: checking for --enable-accel" >&5
5663 no_cache=0
5664 # Check whether --enable-accel or --disable-accel was given.
5665 if test "${enable_accel+set}" = set; then
5666 enableval="$enable_accel"
5667
5668 if test "$enableval" = yes; then
5669 ac_cv_use_accel='wxUSE_ACCEL=yes'
5670 else
5671 ac_cv_use_accel='wxUSE_ACCEL=no'
5672 fi
5673
5674 else
5675
5676 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5677 if test "x$LINE" != x ; then
5678 eval "DEFAULT_$LINE"
5679 else
5680 no_cache=1
5681 fi
5682
5683 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5684
5685 fi
5686
5687
5688 eval "$ac_cv_use_accel"
5689 if test "$no_cache" != 1; then
5690 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5691 fi
5692
5693 if test "$wxUSE_ACCEL" = yes; then
5694 echo "$ac_t""yes" 1>&6
5695 else
5696 echo "$ac_t""no" 1>&6
5697 fi
5698
5699
5700 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5701 echo "configure:5702: checking for --enable-button" >&5
5702 no_cache=0
5703 # Check whether --enable-button or --disable-button was given.
5704 if test "${enable_button+set}" = set; then
5705 enableval="$enable_button"
5706
5707 if test "$enableval" = yes; then
5708 ac_cv_use_button='wxUSE_BUTTON=yes'
5709 else
5710 ac_cv_use_button='wxUSE_BUTTON=no'
5711 fi
5712
5713 else
5714
5715 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5716 if test "x$LINE" != x ; then
5717 eval "DEFAULT_$LINE"
5718 else
5719 no_cache=1
5720 fi
5721
5722 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5723
5724 fi
5725
5726
5727 eval "$ac_cv_use_button"
5728 if test "$no_cache" != 1; then
5729 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5730 fi
5731
5732 if test "$wxUSE_BUTTON" = yes; then
5733 echo "$ac_t""yes" 1>&6
5734 else
5735 echo "$ac_t""no" 1>&6
5736 fi
5737
5738
5739 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5740 echo "configure:5741: checking for --enable-bmpbutton" >&5
5741 no_cache=0
5742 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5743 if test "${enable_bmpbutton+set}" = set; then
5744 enableval="$enable_bmpbutton"
5745
5746 if test "$enableval" = yes; then
5747 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5748 else
5749 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5750 fi
5751
5752 else
5753
5754 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5755 if test "x$LINE" != x ; then
5756 eval "DEFAULT_$LINE"
5757 else
5758 no_cache=1
5759 fi
5760
5761 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5762
5763 fi
5764
5765
5766 eval "$ac_cv_use_bmpbutton"
5767 if test "$no_cache" != 1; then
5768 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5769 fi
5770
5771 if test "$wxUSE_BMPBUTTON" = yes; then
5772 echo "$ac_t""yes" 1>&6
5773 else
5774 echo "$ac_t""no" 1>&6
5775 fi
5776
5777
5778 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5779 echo "configure:5780: checking for --enable-calendar" >&5
5780 no_cache=0
5781 # Check whether --enable-calendar or --disable-calendar was given.
5782 if test "${enable_calendar+set}" = set; then
5783 enableval="$enable_calendar"
5784
5785 if test "$enableval" = yes; then
5786 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5787 else
5788 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5789 fi
5790
5791 else
5792
5793 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5794 if test "x$LINE" != x ; then
5795 eval "DEFAULT_$LINE"
5796 else
5797 no_cache=1
5798 fi
5799
5800 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5801
5802 fi
5803
5804
5805 eval "$ac_cv_use_calendar"
5806 if test "$no_cache" != 1; then
5807 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5808 fi
5809
5810 if test "$wxUSE_CALCTRL" = yes; then
5811 echo "$ac_t""yes" 1>&6
5812 else
5813 echo "$ac_t""no" 1>&6
5814 fi
5815
5816
5817 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5818 echo "configure:5819: checking for --enable-caret" >&5
5819 no_cache=0
5820 # Check whether --enable-caret or --disable-caret was given.
5821 if test "${enable_caret+set}" = set; then
5822 enableval="$enable_caret"
5823
5824 if test "$enableval" = yes; then
5825 ac_cv_use_caret='wxUSE_CARET=yes'
5826 else
5827 ac_cv_use_caret='wxUSE_CARET=no'
5828 fi
5829
5830 else
5831
5832 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5833 if test "x$LINE" != x ; then
5834 eval "DEFAULT_$LINE"
5835 else
5836 no_cache=1
5837 fi
5838
5839 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5840
5841 fi
5842
5843
5844 eval "$ac_cv_use_caret"
5845 if test "$no_cache" != 1; then
5846 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5847 fi
5848
5849 if test "$wxUSE_CARET" = yes; then
5850 echo "$ac_t""yes" 1>&6
5851 else
5852 echo "$ac_t""no" 1>&6
5853 fi
5854
5855
5856 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5857 echo "configure:5858: checking for --enable-checkbox" >&5
5858 no_cache=0
5859 # Check whether --enable-checkbox or --disable-checkbox was given.
5860 if test "${enable_checkbox+set}" = set; then
5861 enableval="$enable_checkbox"
5862
5863 if test "$enableval" = yes; then
5864 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5865 else
5866 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5867 fi
5868
5869 else
5870
5871 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5872 if test "x$LINE" != x ; then
5873 eval "DEFAULT_$LINE"
5874 else
5875 no_cache=1
5876 fi
5877
5878 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5879
5880 fi
5881
5882
5883 eval "$ac_cv_use_checkbox"
5884 if test "$no_cache" != 1; then
5885 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5886 fi
5887
5888 if test "$wxUSE_CHECKBOX" = yes; then
5889 echo "$ac_t""yes" 1>&6
5890 else
5891 echo "$ac_t""no" 1>&6
5892 fi
5893
5894
5895 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5896 echo "configure:5897: checking for --enable-checklst" >&5
5897 no_cache=0
5898 # Check whether --enable-checklst or --disable-checklst was given.
5899 if test "${enable_checklst+set}" = set; then
5900 enableval="$enable_checklst"
5901
5902 if test "$enableval" = yes; then
5903 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5904 else
5905 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5906 fi
5907
5908 else
5909
5910 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5911 if test "x$LINE" != x ; then
5912 eval "DEFAULT_$LINE"
5913 else
5914 no_cache=1
5915 fi
5916
5917 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5918
5919 fi
5920
5921
5922 eval "$ac_cv_use_checklst"
5923 if test "$no_cache" != 1; then
5924 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5925 fi
5926
5927 if test "$wxUSE_CHECKLST" = yes; then
5928 echo "$ac_t""yes" 1>&6
5929 else
5930 echo "$ac_t""no" 1>&6
5931 fi
5932
5933
5934 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5935 echo "configure:5936: checking for --enable-choice" >&5
5936 no_cache=0
5937 # Check whether --enable-choice or --disable-choice was given.
5938 if test "${enable_choice+set}" = set; then
5939 enableval="$enable_choice"
5940
5941 if test "$enableval" = yes; then
5942 ac_cv_use_choice='wxUSE_CHOICE=yes'
5943 else
5944 ac_cv_use_choice='wxUSE_CHOICE=no'
5945 fi
5946
5947 else
5948
5949 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5950 if test "x$LINE" != x ; then
5951 eval "DEFAULT_$LINE"
5952 else
5953 no_cache=1
5954 fi
5955
5956 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5957
5958 fi
5959
5960
5961 eval "$ac_cv_use_choice"
5962 if test "$no_cache" != 1; then
5963 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5964 fi
5965
5966 if test "$wxUSE_CHOICE" = yes; then
5967 echo "$ac_t""yes" 1>&6
5968 else
5969 echo "$ac_t""no" 1>&6
5970 fi
5971
5972
5973 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5974 echo "configure:5975: checking for --enable-combobox" >&5
5975 no_cache=0
5976 # Check whether --enable-combobox or --disable-combobox was given.
5977 if test "${enable_combobox+set}" = set; then
5978 enableval="$enable_combobox"
5979
5980 if test "$enableval" = yes; then
5981 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5982 else
5983 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5984 fi
5985
5986 else
5987
5988 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5989 if test "x$LINE" != x ; then
5990 eval "DEFAULT_$LINE"
5991 else
5992 no_cache=1
5993 fi
5994
5995 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5996
5997 fi
5998
5999
6000 eval "$ac_cv_use_combobox"
6001 if test "$no_cache" != 1; then
6002 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6003 fi
6004
6005 if test "$wxUSE_COMBOBOX" = yes; then
6006 echo "$ac_t""yes" 1>&6
6007 else
6008 echo "$ac_t""no" 1>&6
6009 fi
6010
6011
6012 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6013 echo "configure:6014: checking for --enable-gauge" >&5
6014 no_cache=0
6015 # Check whether --enable-gauge or --disable-gauge was given.
6016 if test "${enable_gauge+set}" = set; then
6017 enableval="$enable_gauge"
6018
6019 if test "$enableval" = yes; then
6020 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6021 else
6022 ac_cv_use_gauge='wxUSE_GAUGE=no'
6023 fi
6024
6025 else
6026
6027 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6028 if test "x$LINE" != x ; then
6029 eval "DEFAULT_$LINE"
6030 else
6031 no_cache=1
6032 fi
6033
6034 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6035
6036 fi
6037
6038
6039 eval "$ac_cv_use_gauge"
6040 if test "$no_cache" != 1; then
6041 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6042 fi
6043
6044 if test "$wxUSE_GAUGE" = yes; then
6045 echo "$ac_t""yes" 1>&6
6046 else
6047 echo "$ac_t""no" 1>&6
6048 fi
6049
6050
6051 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6052 echo "configure:6053: checking for --enable-grid" >&5
6053 no_cache=0
6054 # Check whether --enable-grid or --disable-grid was given.
6055 if test "${enable_grid+set}" = set; then
6056 enableval="$enable_grid"
6057
6058 if test "$enableval" = yes; then
6059 ac_cv_use_grid='wxUSE_GRID=yes'
6060 else
6061 ac_cv_use_grid='wxUSE_GRID=no'
6062 fi
6063
6064 else
6065
6066 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6067 if test "x$LINE" != x ; then
6068 eval "DEFAULT_$LINE"
6069 else
6070 no_cache=1
6071 fi
6072
6073 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6074
6075 fi
6076
6077
6078 eval "$ac_cv_use_grid"
6079 if test "$no_cache" != 1; then
6080 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6081 fi
6082
6083 if test "$wxUSE_GRID" = yes; then
6084 echo "$ac_t""yes" 1>&6
6085 else
6086 echo "$ac_t""no" 1>&6
6087 fi
6088
6089
6090 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6091 echo "configure:6092: checking for --enable-newgrid" >&5
6092 no_cache=0
6093 # Check whether --enable-newgrid or --disable-newgrid was given.
6094 if test "${enable_newgrid+set}" = set; then
6095 enableval="$enable_newgrid"
6096
6097 if test "$enableval" = yes; then
6098 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6099 else
6100 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6101 fi
6102
6103 else
6104
6105 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6106 if test "x$LINE" != x ; then
6107 eval "DEFAULT_$LINE"
6108 else
6109 no_cache=1
6110 fi
6111
6112 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6113
6114 fi
6115
6116
6117 eval "$ac_cv_use_newgrid"
6118 if test "$no_cache" != 1; then
6119 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6120 fi
6121
6122 if test "$wxUSE_NEW_GRID" = yes; then
6123 echo "$ac_t""yes" 1>&6
6124 else
6125 echo "$ac_t""no" 1>&6
6126 fi
6127
6128
6129 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6130 echo "configure:6131: checking for --enable-imaglist" >&5
6131 no_cache=0
6132 # Check whether --enable-imaglist or --disable-imaglist was given.
6133 if test "${enable_imaglist+set}" = set; then
6134 enableval="$enable_imaglist"
6135
6136 if test "$enableval" = yes; then
6137 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6138 else
6139 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6140 fi
6141
6142 else
6143
6144 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6145 if test "x$LINE" != x ; then
6146 eval "DEFAULT_$LINE"
6147 else
6148 no_cache=1
6149 fi
6150
6151 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6152
6153 fi
6154
6155
6156 eval "$ac_cv_use_imaglist"
6157 if test "$no_cache" != 1; then
6158 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6159 fi
6160
6161 if test "$wxUSE_IMAGLIST" = yes; then
6162 echo "$ac_t""yes" 1>&6
6163 else
6164 echo "$ac_t""no" 1>&6
6165 fi
6166
6167
6168 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6169 echo "configure:6170: checking for --enable-listbox" >&5
6170 no_cache=0
6171 # Check whether --enable-listbox or --disable-listbox was given.
6172 if test "${enable_listbox+set}" = set; then
6173 enableval="$enable_listbox"
6174
6175 if test "$enableval" = yes; then
6176 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6177 else
6178 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6179 fi
6180
6181 else
6182
6183 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6184 if test "x$LINE" != x ; then
6185 eval "DEFAULT_$LINE"
6186 else
6187 no_cache=1
6188 fi
6189
6190 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6191
6192 fi
6193
6194
6195 eval "$ac_cv_use_listbox"
6196 if test "$no_cache" != 1; then
6197 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6198 fi
6199
6200 if test "$wxUSE_LISTBOX" = yes; then
6201 echo "$ac_t""yes" 1>&6
6202 else
6203 echo "$ac_t""no" 1>&6
6204 fi
6205
6206
6207 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6208 echo "configure:6209: checking for --enable-listctrl" >&5
6209 no_cache=0
6210 # Check whether --enable-listctrl or --disable-listctrl was given.
6211 if test "${enable_listctrl+set}" = set; then
6212 enableval="$enable_listctrl"
6213
6214 if test "$enableval" = yes; then
6215 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6216 else
6217 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6218 fi
6219
6220 else
6221
6222 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6223 if test "x$LINE" != x ; then
6224 eval "DEFAULT_$LINE"
6225 else
6226 no_cache=1
6227 fi
6228
6229 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6230
6231 fi
6232
6233
6234 eval "$ac_cv_use_listctrl"
6235 if test "$no_cache" != 1; then
6236 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6237 fi
6238
6239 if test "$wxUSE_LISTCTRL" = yes; then
6240 echo "$ac_t""yes" 1>&6
6241 else
6242 echo "$ac_t""no" 1>&6
6243 fi
6244
6245
6246 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6247 echo "configure:6248: checking for --enable-notebook" >&5
6248 no_cache=0
6249 # Check whether --enable-notebook or --disable-notebook was given.
6250 if test "${enable_notebook+set}" = set; then
6251 enableval="$enable_notebook"
6252
6253 if test "$enableval" = yes; then
6254 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6255 else
6256 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6257 fi
6258
6259 else
6260
6261 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6262 if test "x$LINE" != x ; then
6263 eval "DEFAULT_$LINE"
6264 else
6265 no_cache=1
6266 fi
6267
6268 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6269
6270 fi
6271
6272
6273 eval "$ac_cv_use_notebook"
6274 if test "$no_cache" != 1; then
6275 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6276 fi
6277
6278 if test "$wxUSE_NOTEBOOK" = yes; then
6279 echo "$ac_t""yes" 1>&6
6280 else
6281 echo "$ac_t""no" 1>&6
6282 fi
6283
6284
6285 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6286 echo "configure:6287: checking for --enable-propsheet" >&5
6287 no_cache=0
6288 # Check whether --enable-propsheet or --disable-propsheet was given.
6289 if test "${enable_propsheet+set}" = set; then
6290 enableval="$enable_propsheet"
6291
6292 if test "$enableval" = yes; then
6293 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6294 else
6295 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6296 fi
6297
6298 else
6299
6300 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6301 if test "x$LINE" != x ; then
6302 eval "DEFAULT_$LINE"
6303 else
6304 no_cache=1
6305 fi
6306
6307 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6308
6309 fi
6310
6311
6312 eval "$ac_cv_use_propsheet"
6313 if test "$no_cache" != 1; then
6314 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6315 fi
6316
6317 if test "$wxUSE_PROPSHEET" = yes; then
6318 echo "$ac_t""yes" 1>&6
6319 else
6320 echo "$ac_t""no" 1>&6
6321 fi
6322
6323
6324 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6325 echo "configure:6326: checking for --enable-radiobox" >&5
6326 no_cache=0
6327 # Check whether --enable-radiobox or --disable-radiobox was given.
6328 if test "${enable_radiobox+set}" = set; then
6329 enableval="$enable_radiobox"
6330
6331 if test "$enableval" = yes; then
6332 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6333 else
6334 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6335 fi
6336
6337 else
6338
6339 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6340 if test "x$LINE" != x ; then
6341 eval "DEFAULT_$LINE"
6342 else
6343 no_cache=1
6344 fi
6345
6346 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6347
6348 fi
6349
6350
6351 eval "$ac_cv_use_radiobox"
6352 if test "$no_cache" != 1; then
6353 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6354 fi
6355
6356 if test "$wxUSE_RADIOBOX" = yes; then
6357 echo "$ac_t""yes" 1>&6
6358 else
6359 echo "$ac_t""no" 1>&6
6360 fi
6361
6362
6363 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6364 echo "configure:6365: checking for --enable-radiobtn" >&5
6365 no_cache=0
6366 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6367 if test "${enable_radiobtn+set}" = set; then
6368 enableval="$enable_radiobtn"
6369
6370 if test "$enableval" = yes; then
6371 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6372 else
6373 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6374 fi
6375
6376 else
6377
6378 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6379 if test "x$LINE" != x ; then
6380 eval "DEFAULT_$LINE"
6381 else
6382 no_cache=1
6383 fi
6384
6385 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6386
6387 fi
6388
6389
6390 eval "$ac_cv_use_radiobtn"
6391 if test "$no_cache" != 1; then
6392 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6393 fi
6394
6395 if test "$wxUSE_RADIOBTN" = yes; then
6396 echo "$ac_t""yes" 1>&6
6397 else
6398 echo "$ac_t""no" 1>&6
6399 fi
6400
6401
6402 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6403 echo "configure:6404: checking for --enable-sash" >&5
6404 no_cache=0
6405 # Check whether --enable-sash or --disable-sash was given.
6406 if test "${enable_sash+set}" = set; then
6407 enableval="$enable_sash"
6408
6409 if test "$enableval" = yes; then
6410 ac_cv_use_sash='wxUSE_SASH=yes'
6411 else
6412 ac_cv_use_sash='wxUSE_SASH=no'
6413 fi
6414
6415 else
6416
6417 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6418 if test "x$LINE" != x ; then
6419 eval "DEFAULT_$LINE"
6420 else
6421 no_cache=1
6422 fi
6423
6424 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6425
6426 fi
6427
6428
6429 eval "$ac_cv_use_sash"
6430 if test "$no_cache" != 1; then
6431 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6432 fi
6433
6434 if test "$wxUSE_SASH" = yes; then
6435 echo "$ac_t""yes" 1>&6
6436 else
6437 echo "$ac_t""no" 1>&6
6438 fi
6439
6440
6441 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6442 echo "configure:6443: checking for --enable-scrollbar" >&5
6443 no_cache=0
6444 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6445 if test "${enable_scrollbar+set}" = set; then
6446 enableval="$enable_scrollbar"
6447
6448 if test "$enableval" = yes; then
6449 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6450 else
6451 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6452 fi
6453
6454 else
6455
6456 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6457 if test "x$LINE" != x ; then
6458 eval "DEFAULT_$LINE"
6459 else
6460 no_cache=1
6461 fi
6462
6463 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6464
6465 fi
6466
6467
6468 eval "$ac_cv_use_scrollbar"
6469 if test "$no_cache" != 1; then
6470 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6471 fi
6472
6473 if test "$wxUSE_SCROLLBAR" = yes; then
6474 echo "$ac_t""yes" 1>&6
6475 else
6476 echo "$ac_t""no" 1>&6
6477 fi
6478
6479
6480 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6481 echo "configure:6482: checking for --enable-slider" >&5
6482 no_cache=0
6483 # Check whether --enable-slider or --disable-slider was given.
6484 if test "${enable_slider+set}" = set; then
6485 enableval="$enable_slider"
6486
6487 if test "$enableval" = yes; then
6488 ac_cv_use_slider='wxUSE_SLIDER=yes'
6489 else
6490 ac_cv_use_slider='wxUSE_SLIDER=no'
6491 fi
6492
6493 else
6494
6495 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6496 if test "x$LINE" != x ; then
6497 eval "DEFAULT_$LINE"
6498 else
6499 no_cache=1
6500 fi
6501
6502 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6503
6504 fi
6505
6506
6507 eval "$ac_cv_use_slider"
6508 if test "$no_cache" != 1; then
6509 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6510 fi
6511
6512 if test "$wxUSE_SLIDER" = yes; then
6513 echo "$ac_t""yes" 1>&6
6514 else
6515 echo "$ac_t""no" 1>&6
6516 fi
6517
6518
6519 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6520 echo "configure:6521: checking for --enable-spinbtn" >&5
6521 no_cache=0
6522 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6523 if test "${enable_spinbtn+set}" = set; then
6524 enableval="$enable_spinbtn"
6525
6526 if test "$enableval" = yes; then
6527 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6528 else
6529 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6530 fi
6531
6532 else
6533
6534 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6535 if test "x$LINE" != x ; then
6536 eval "DEFAULT_$LINE"
6537 else
6538 no_cache=1
6539 fi
6540
6541 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6542
6543 fi
6544
6545
6546 eval "$ac_cv_use_spinbtn"
6547 if test "$no_cache" != 1; then
6548 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6549 fi
6550
6551 if test "$wxUSE_SPINBTN" = yes; then
6552 echo "$ac_t""yes" 1>&6
6553 else
6554 echo "$ac_t""no" 1>&6
6555 fi
6556
6557
6558 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6559 echo "configure:6560: checking for --enable-spinctrl" >&5
6560 no_cache=0
6561 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6562 if test "${enable_spinctrl+set}" = set; then
6563 enableval="$enable_spinctrl"
6564
6565 if test "$enableval" = yes; then
6566 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6567 else
6568 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6569 fi
6570
6571 else
6572
6573 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6574 if test "x$LINE" != x ; then
6575 eval "DEFAULT_$LINE"
6576 else
6577 no_cache=1
6578 fi
6579
6580 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6581
6582 fi
6583
6584
6585 eval "$ac_cv_use_spinctrl"
6586 if test "$no_cache" != 1; then
6587 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6588 fi
6589
6590 if test "$wxUSE_SPINCTRL" = yes; then
6591 echo "$ac_t""yes" 1>&6
6592 else
6593 echo "$ac_t""no" 1>&6
6594 fi
6595
6596
6597 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6598 echo "configure:6599: checking for --enable-splitter" >&5
6599 no_cache=0
6600 # Check whether --enable-splitter or --disable-splitter was given.
6601 if test "${enable_splitter+set}" = set; then
6602 enableval="$enable_splitter"
6603
6604 if test "$enableval" = yes; then
6605 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6606 else
6607 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6608 fi
6609
6610 else
6611
6612 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6613 if test "x$LINE" != x ; then
6614 eval "DEFAULT_$LINE"
6615 else
6616 no_cache=1
6617 fi
6618
6619 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6620
6621 fi
6622
6623
6624 eval "$ac_cv_use_splitter"
6625 if test "$no_cache" != 1; then
6626 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6627 fi
6628
6629 if test "$wxUSE_SPLITTER" = yes; then
6630 echo "$ac_t""yes" 1>&6
6631 else
6632 echo "$ac_t""no" 1>&6
6633 fi
6634
6635
6636 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6637 echo "configure:6638: checking for --enable-statbmp" >&5
6638 no_cache=0
6639 # Check whether --enable-statbmp or --disable-statbmp was given.
6640 if test "${enable_statbmp+set}" = set; then
6641 enableval="$enable_statbmp"
6642
6643 if test "$enableval" = yes; then
6644 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6645 else
6646 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6647 fi
6648
6649 else
6650
6651 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6652 if test "x$LINE" != x ; then
6653 eval "DEFAULT_$LINE"
6654 else
6655 no_cache=1
6656 fi
6657
6658 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6659
6660 fi
6661
6662
6663 eval "$ac_cv_use_statbmp"
6664 if test "$no_cache" != 1; then
6665 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6666 fi
6667
6668 if test "$wxUSE_STATBMP" = yes; then
6669 echo "$ac_t""yes" 1>&6
6670 else
6671 echo "$ac_t""no" 1>&6
6672 fi
6673
6674
6675 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6676 echo "configure:6677: checking for --enable-statbox" >&5
6677 no_cache=0
6678 # Check whether --enable-statbox or --disable-statbox was given.
6679 if test "${enable_statbox+set}" = set; then
6680 enableval="$enable_statbox"
6681
6682 if test "$enableval" = yes; then
6683 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6684 else
6685 ac_cv_use_statbox='wxUSE_STATBOX=no'
6686 fi
6687
6688 else
6689
6690 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6691 if test "x$LINE" != x ; then
6692 eval "DEFAULT_$LINE"
6693 else
6694 no_cache=1
6695 fi
6696
6697 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6698
6699 fi
6700
6701
6702 eval "$ac_cv_use_statbox"
6703 if test "$no_cache" != 1; then
6704 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6705 fi
6706
6707 if test "$wxUSE_STATBOX" = yes; then
6708 echo "$ac_t""yes" 1>&6
6709 else
6710 echo "$ac_t""no" 1>&6
6711 fi
6712
6713
6714 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6715 echo "configure:6716: checking for --enable-statline" >&5
6716 no_cache=0
6717 # Check whether --enable-statline or --disable-statline was given.
6718 if test "${enable_statline+set}" = set; then
6719 enableval="$enable_statline"
6720
6721 if test "$enableval" = yes; then
6722 ac_cv_use_statline='wxUSE_STATLINE=yes'
6723 else
6724 ac_cv_use_statline='wxUSE_STATLINE=no'
6725 fi
6726
6727 else
6728
6729 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6730 if test "x$LINE" != x ; then
6731 eval "DEFAULT_$LINE"
6732 else
6733 no_cache=1
6734 fi
6735
6736 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6737
6738 fi
6739
6740
6741 eval "$ac_cv_use_statline"
6742 if test "$no_cache" != 1; then
6743 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6744 fi
6745
6746 if test "$wxUSE_STATLINE" = yes; then
6747 echo "$ac_t""yes" 1>&6
6748 else
6749 echo "$ac_t""no" 1>&6
6750 fi
6751
6752
6753 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6754 echo "configure:6755: checking for --enable-stattext" >&5
6755 no_cache=0
6756 # Check whether --enable-stattext or --disable-stattext was given.
6757 if test "${enable_stattext+set}" = set; then
6758 enableval="$enable_stattext"
6759
6760 if test "$enableval" = yes; then
6761 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6762 else
6763 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6764 fi
6765
6766 else
6767
6768 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6769 if test "x$LINE" != x ; then
6770 eval "DEFAULT_$LINE"
6771 else
6772 no_cache=1
6773 fi
6774
6775 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6776
6777 fi
6778
6779
6780 eval "$ac_cv_use_stattext"
6781 if test "$no_cache" != 1; then
6782 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6783 fi
6784
6785 if test "$wxUSE_STATTEXT" = yes; then
6786 echo "$ac_t""yes" 1>&6
6787 else
6788 echo "$ac_t""no" 1>&6
6789 fi
6790
6791
6792 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6793 echo "configure:6794: checking for --enable-statusbar" >&5
6794 no_cache=0
6795 # Check whether --enable-statusbar or --disable-statusbar was given.
6796 if test "${enable_statusbar+set}" = set; then
6797 enableval="$enable_statusbar"
6798
6799 if test "$enableval" = yes; then
6800 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6801 else
6802 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6803 fi
6804
6805 else
6806
6807 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6808 if test "x$LINE" != x ; then
6809 eval "DEFAULT_$LINE"
6810 else
6811 no_cache=1
6812 fi
6813
6814 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6815
6816 fi
6817
6818
6819 eval "$ac_cv_use_statusbar"
6820 if test "$no_cache" != 1; then
6821 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6822 fi
6823
6824 if test "$wxUSE_STATUSBAR" = yes; then
6825 echo "$ac_t""yes" 1>&6
6826 else
6827 echo "$ac_t""no" 1>&6
6828 fi
6829
6830
6831 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6832 echo "configure:6833: checking for --enable-tabdialog" >&5
6833 no_cache=0
6834 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6835 if test "${enable_tabdialog+set}" = set; then
6836 enableval="$enable_tabdialog"
6837
6838 if test "$enableval" = yes; then
6839 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6840 else
6841 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6842 fi
6843
6844 else
6845
6846 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6847 if test "x$LINE" != x ; then
6848 eval "DEFAULT_$LINE"
6849 else
6850 no_cache=1
6851 fi
6852
6853 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6854
6855 fi
6856
6857
6858 eval "$ac_cv_use_tabdialog"
6859 if test "$no_cache" != 1; then
6860 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6861 fi
6862
6863 if test "$wxUSE_TABDIALOG" = yes; then
6864 echo "$ac_t""yes" 1>&6
6865 else
6866 echo "$ac_t""no" 1>&6
6867 fi
6868
6869
6870 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6871 echo "configure:6872: checking for --enable-textctrl" >&5
6872 no_cache=0
6873 # Check whether --enable-textctrl or --disable-textctrl was given.
6874 if test "${enable_textctrl+set}" = set; then
6875 enableval="$enable_textctrl"
6876
6877 if test "$enableval" = yes; then
6878 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6879 else
6880 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6881 fi
6882
6883 else
6884
6885 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6886 if test "x$LINE" != x ; then
6887 eval "DEFAULT_$LINE"
6888 else
6889 no_cache=1
6890 fi
6891
6892 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6893
6894 fi
6895
6896
6897 eval "$ac_cv_use_textctrl"
6898 if test "$no_cache" != 1; then
6899 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6900 fi
6901
6902 if test "$wxUSE_TEXTCTRL" = yes; then
6903 echo "$ac_t""yes" 1>&6
6904 else
6905 echo "$ac_t""no" 1>&6
6906 fi
6907
6908
6909 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6910 echo "configure:6911: checking for --enable-togglebtn" >&5
6911 no_cache=0
6912 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6913 if test "${enable_togglebtn+set}" = set; then
6914 enableval="$enable_togglebtn"
6915
6916 if test "$enableval" = yes; then
6917 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6918 else
6919 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6920 fi
6921
6922 else
6923
6924 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6925 if test "x$LINE" != x ; then
6926 eval "DEFAULT_$LINE"
6927 else
6928 no_cache=1
6929 fi
6930
6931 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6932
6933 fi
6934
6935
6936 eval "$ac_cv_use_togglebtn"
6937 if test "$no_cache" != 1; then
6938 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6939 fi
6940
6941 if test "$wxUSE_TOGGLEBTN" = yes; then
6942 echo "$ac_t""yes" 1>&6
6943 else
6944 echo "$ac_t""no" 1>&6
6945 fi
6946
6947
6948 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6949 echo "configure:6950: checking for --enable-toolbar" >&5
6950 no_cache=0
6951 # Check whether --enable-toolbar or --disable-toolbar was given.
6952 if test "${enable_toolbar+set}" = set; then
6953 enableval="$enable_toolbar"
6954
6955 if test "$enableval" = yes; then
6956 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6957 else
6958 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6959 fi
6960
6961 else
6962
6963 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6964 if test "x$LINE" != x ; then
6965 eval "DEFAULT_$LINE"
6966 else
6967 no_cache=1
6968 fi
6969
6970 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6971
6972 fi
6973
6974
6975 eval "$ac_cv_use_toolbar"
6976 if test "$no_cache" != 1; then
6977 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6978 fi
6979
6980 if test "$wxUSE_TOOLBAR" = yes; then
6981 echo "$ac_t""yes" 1>&6
6982 else
6983 echo "$ac_t""no" 1>&6
6984 fi
6985
6986
6987 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6988 echo "configure:6989: checking for --enable-tbarnative" >&5
6989 no_cache=0
6990 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6991 if test "${enable_tbarnative+set}" = set; then
6992 enableval="$enable_tbarnative"
6993
6994 if test "$enableval" = yes; then
6995 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6996 else
6997 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6998 fi
6999
7000 else
7001
7002 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7003 if test "x$LINE" != x ; then
7004 eval "DEFAULT_$LINE"
7005 else
7006 no_cache=1
7007 fi
7008
7009 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7010
7011 fi
7012
7013
7014 eval "$ac_cv_use_tbarnative"
7015 if test "$no_cache" != 1; then
7016 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7017 fi
7018
7019 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7020 echo "$ac_t""yes" 1>&6
7021 else
7022 echo "$ac_t""no" 1>&6
7023 fi
7024
7025
7026 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7027 echo "configure:7028: checking for --enable-tbarsmpl" >&5
7028 no_cache=0
7029 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7030 if test "${enable_tbarsmpl+set}" = set; then
7031 enableval="$enable_tbarsmpl"
7032
7033 if test "$enableval" = yes; then
7034 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7035 else
7036 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7037 fi
7038
7039 else
7040
7041 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7042 if test "x$LINE" != x ; then
7043 eval "DEFAULT_$LINE"
7044 else
7045 no_cache=1
7046 fi
7047
7048 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7049
7050 fi
7051
7052
7053 eval "$ac_cv_use_tbarsmpl"
7054 if test "$no_cache" != 1; then
7055 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7056 fi
7057
7058 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7059 echo "$ac_t""yes" 1>&6
7060 else
7061 echo "$ac_t""no" 1>&6
7062 fi
7063
7064
7065 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7066 echo "configure:7067: checking for --enable-treectrl" >&5
7067 no_cache=0
7068 # Check whether --enable-treectrl or --disable-treectrl was given.
7069 if test "${enable_treectrl+set}" = set; then
7070 enableval="$enable_treectrl"
7071
7072 if test "$enableval" = yes; then
7073 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7074 else
7075 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7076 fi
7077
7078 else
7079
7080 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7081 if test "x$LINE" != x ; then
7082 eval "DEFAULT_$LINE"
7083 else
7084 no_cache=1
7085 fi
7086
7087 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7088
7089 fi
7090
7091
7092 eval "$ac_cv_use_treectrl"
7093 if test "$no_cache" != 1; then
7094 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7095 fi
7096
7097 if test "$wxUSE_TREECTRL" = yes; then
7098 echo "$ac_t""yes" 1>&6
7099 else
7100 echo "$ac_t""no" 1>&6
7101 fi
7102
7103
7104 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7105 echo "configure:7106: checking for --enable-tipwindow" >&5
7106 no_cache=0
7107 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7108 if test "${enable_tipwindow+set}" = set; then
7109 enableval="$enable_tipwindow"
7110
7111 if test "$enableval" = yes; then
7112 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7113 else
7114 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7115 fi
7116
7117 else
7118
7119 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7120 if test "x$LINE" != x ; then
7121 eval "DEFAULT_$LINE"
7122 else
7123 no_cache=1
7124 fi
7125
7126 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7127
7128 fi
7129
7130
7131 eval "$ac_cv_use_tipwindow"
7132 if test "$no_cache" != 1; then
7133 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7134 fi
7135
7136 if test "$wxUSE_TIPWINDOW" = yes; then
7137 echo "$ac_t""yes" 1>&6
7138 else
7139 echo "$ac_t""no" 1>&6
7140 fi
7141
7142
7143 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7144 echo "configure:7145: checking for --enable-popupwin" >&5
7145 no_cache=0
7146 # Check whether --enable-popupwin or --disable-popupwin was given.
7147 if test "${enable_popupwin+set}" = set; then
7148 enableval="$enable_popupwin"
7149
7150 if test "$enableval" = yes; then
7151 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7152 else
7153 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7154 fi
7155
7156 else
7157
7158 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7159 if test "x$LINE" != x ; then
7160 eval "DEFAULT_$LINE"
7161 else
7162 no_cache=1
7163 fi
7164
7165 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7166
7167 fi
7168
7169
7170 eval "$ac_cv_use_popupwin"
7171 if test "$no_cache" != 1; then
7172 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7173 fi
7174
7175 if test "$wxUSE_POPUPWIN" = yes; then
7176 echo "$ac_t""yes" 1>&6
7177 else
7178 echo "$ac_t""no" 1>&6
7179 fi
7180
7181
7182
7183
7184 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7185 echo "configure:7186: checking for --enable-commondlg" >&5
7186 no_cache=0
7187 # Check whether --enable-commondlg or --disable-commondlg was given.
7188 if test "${enable_commondlg+set}" = set; then
7189 enableval="$enable_commondlg"
7190
7191 if test "$enableval" = yes; then
7192 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7193 else
7194 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7195 fi
7196
7197 else
7198
7199 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7200 if test "x$LINE" != x ; then
7201 eval "DEFAULT_$LINE"
7202 else
7203 no_cache=1
7204 fi
7205
7206 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7207
7208 fi
7209
7210
7211 eval "$ac_cv_use_commondlg"
7212 if test "$no_cache" != 1; then
7213 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7214 fi
7215
7216 if test "$wxUSE_COMMONDLGS" = yes; then
7217 echo "$ac_t""yes" 1>&6
7218 else
7219 echo "$ac_t""no" 1>&6
7220 fi
7221
7222
7223 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7224 echo "configure:7225: checking for --enable-choicedlg" >&5
7225 no_cache=0
7226 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7227 if test "${enable_choicedlg+set}" = set; then
7228 enableval="$enable_choicedlg"
7229
7230 if test "$enableval" = yes; then
7231 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7232 else
7233 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7234 fi
7235
7236 else
7237
7238 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7239 if test "x$LINE" != x ; then
7240 eval "DEFAULT_$LINE"
7241 else
7242 no_cache=1
7243 fi
7244
7245 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7246
7247 fi
7248
7249
7250 eval "$ac_cv_use_choicedlg"
7251 if test "$no_cache" != 1; then
7252 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7253 fi
7254
7255 if test "$wxUSE_CHOICEDLG" = yes; then
7256 echo "$ac_t""yes" 1>&6
7257 else
7258 echo "$ac_t""no" 1>&6
7259 fi
7260
7261
7262 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7263 echo "configure:7264: checking for --enable-coldlg" >&5
7264 no_cache=0
7265 # Check whether --enable-coldlg or --disable-coldlg was given.
7266 if test "${enable_coldlg+set}" = set; then
7267 enableval="$enable_coldlg"
7268
7269 if test "$enableval" = yes; then
7270 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7271 else
7272 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7273 fi
7274
7275 else
7276
7277 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7278 if test "x$LINE" != x ; then
7279 eval "DEFAULT_$LINE"
7280 else
7281 no_cache=1
7282 fi
7283
7284 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7285
7286 fi
7287
7288
7289 eval "$ac_cv_use_coldlg"
7290 if test "$no_cache" != 1; then
7291 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7292 fi
7293
7294 if test "$wxUSE_COLOURDLG" = yes; then
7295 echo "$ac_t""yes" 1>&6
7296 else
7297 echo "$ac_t""no" 1>&6
7298 fi
7299
7300
7301 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7302 echo "configure:7303: checking for --enable-filedlg" >&5
7303 no_cache=0
7304 # Check whether --enable-filedlg or --disable-filedlg was given.
7305 if test "${enable_filedlg+set}" = set; then
7306 enableval="$enable_filedlg"
7307
7308 if test "$enableval" = yes; then
7309 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7310 else
7311 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7312 fi
7313
7314 else
7315
7316 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7317 if test "x$LINE" != x ; then
7318 eval "DEFAULT_$LINE"
7319 else
7320 no_cache=1
7321 fi
7322
7323 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7324
7325 fi
7326
7327
7328 eval "$ac_cv_use_filedlg"
7329 if test "$no_cache" != 1; then
7330 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7331 fi
7332
7333 if test "$wxUSE_FILEDLG" = yes; then
7334 echo "$ac_t""yes" 1>&6
7335 else
7336 echo "$ac_t""no" 1>&6
7337 fi
7338
7339
7340 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7341 echo "configure:7342: checking for --enable-finddlg" >&5
7342 no_cache=0
7343 # Check whether --enable-finddlg or --disable-finddlg was given.
7344 if test "${enable_finddlg+set}" = set; then
7345 enableval="$enable_finddlg"
7346
7347 if test "$enableval" = yes; then
7348 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7349 else
7350 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7351 fi
7352
7353 else
7354
7355 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7356 if test "x$LINE" != x ; then
7357 eval "DEFAULT_$LINE"
7358 else
7359 no_cache=1
7360 fi
7361
7362 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7363
7364 fi
7365
7366
7367 eval "$ac_cv_use_finddlg"
7368 if test "$no_cache" != 1; then
7369 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7370 fi
7371
7372 if test "$wxUSE_FINDREPLDLG" = yes; then
7373 echo "$ac_t""yes" 1>&6
7374 else
7375 echo "$ac_t""no" 1>&6
7376 fi
7377
7378
7379 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7380 echo "configure:7381: checking for --enable-fontdlg" >&5
7381 no_cache=0
7382 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7383 if test "${enable_fontdlg+set}" = set; then
7384 enableval="$enable_fontdlg"
7385
7386 if test "$enableval" = yes; then
7387 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7388 else
7389 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7390 fi
7391
7392 else
7393
7394 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7395 if test "x$LINE" != x ; then
7396 eval "DEFAULT_$LINE"
7397 else
7398 no_cache=1
7399 fi
7400
7401 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7402
7403 fi
7404
7405
7406 eval "$ac_cv_use_fontdlg"
7407 if test "$no_cache" != 1; then
7408 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7409 fi
7410
7411 if test "$wxUSE_FONTDLG" = yes; then
7412 echo "$ac_t""yes" 1>&6
7413 else
7414 echo "$ac_t""no" 1>&6
7415 fi
7416
7417
7418 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7419 echo "configure:7420: checking for --enable-dirdlg" >&5
7420 no_cache=0
7421 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7422 if test "${enable_dirdlg+set}" = set; then
7423 enableval="$enable_dirdlg"
7424
7425 if test "$enableval" = yes; then
7426 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7427 else
7428 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7429 fi
7430
7431 else
7432
7433 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7434 if test "x$LINE" != x ; then
7435 eval "DEFAULT_$LINE"
7436 else
7437 no_cache=1
7438 fi
7439
7440 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7441
7442 fi
7443
7444
7445 eval "$ac_cv_use_dirdlg"
7446 if test "$no_cache" != 1; then
7447 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7448 fi
7449
7450 if test "$wxUSE_DIRDLG" = yes; then
7451 echo "$ac_t""yes" 1>&6
7452 else
7453 echo "$ac_t""no" 1>&6
7454 fi
7455
7456
7457 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7458 echo "configure:7459: checking for --enable-msgdlg" >&5
7459 no_cache=0
7460 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7461 if test "${enable_msgdlg+set}" = set; then
7462 enableval="$enable_msgdlg"
7463
7464 if test "$enableval" = yes; then
7465 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7466 else
7467 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7468 fi
7469
7470 else
7471
7472 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7473 if test "x$LINE" != x ; then
7474 eval "DEFAULT_$LINE"
7475 else
7476 no_cache=1
7477 fi
7478
7479 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7480
7481 fi
7482
7483
7484 eval "$ac_cv_use_msgdlg"
7485 if test "$no_cache" != 1; then
7486 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7487 fi
7488
7489 if test "$wxUSE_MSGDLG" = yes; then
7490 echo "$ac_t""yes" 1>&6
7491 else
7492 echo "$ac_t""no" 1>&6
7493 fi
7494
7495
7496 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7497 echo "configure:7498: checking for --enable-numberdlg" >&5
7498 no_cache=0
7499 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7500 if test "${enable_numberdlg+set}" = set; then
7501 enableval="$enable_numberdlg"
7502
7503 if test "$enableval" = yes; then
7504 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7505 else
7506 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7507 fi
7508
7509 else
7510
7511 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7512 if test "x$LINE" != x ; then
7513 eval "DEFAULT_$LINE"
7514 else
7515 no_cache=1
7516 fi
7517
7518 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7519
7520 fi
7521
7522
7523 eval "$ac_cv_use_numberdlg"
7524 if test "$no_cache" != 1; then
7525 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7526 fi
7527
7528 if test "$wxUSE_NUMBERDLG" = yes; then
7529 echo "$ac_t""yes" 1>&6
7530 else
7531 echo "$ac_t""no" 1>&6
7532 fi
7533
7534
7535 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7536 echo "configure:7537: checking for --enable-splash" >&5
7537 no_cache=0
7538 # Check whether --enable-splash or --disable-splash was given.
7539 if test "${enable_splash+set}" = set; then
7540 enableval="$enable_splash"
7541
7542 if test "$enableval" = yes; then
7543 ac_cv_use_splash='wxUSE_SPLASH=yes'
7544 else
7545 ac_cv_use_splash='wxUSE_SPLASH=no'
7546 fi
7547
7548 else
7549
7550 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7551 if test "x$LINE" != x ; then
7552 eval "DEFAULT_$LINE"
7553 else
7554 no_cache=1
7555 fi
7556
7557 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7558
7559 fi
7560
7561
7562 eval "$ac_cv_use_splash"
7563 if test "$no_cache" != 1; then
7564 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7565 fi
7566
7567 if test "$wxUSE_SPLASH" = yes; then
7568 echo "$ac_t""yes" 1>&6
7569 else
7570 echo "$ac_t""no" 1>&6
7571 fi
7572
7573
7574 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7575 echo "configure:7576: checking for --enable-textdlg" >&5
7576 no_cache=0
7577 # Check whether --enable-textdlg or --disable-textdlg was given.
7578 if test "${enable_textdlg+set}" = set; then
7579 enableval="$enable_textdlg"
7580
7581 if test "$enableval" = yes; then
7582 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7583 else
7584 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7585 fi
7586
7587 else
7588
7589 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7590 if test "x$LINE" != x ; then
7591 eval "DEFAULT_$LINE"
7592 else
7593 no_cache=1
7594 fi
7595
7596 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7597
7598 fi
7599
7600
7601 eval "$ac_cv_use_textdlg"
7602 if test "$no_cache" != 1; then
7603 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7604 fi
7605
7606 if test "$wxUSE_TEXTDLG" = yes; then
7607 echo "$ac_t""yes" 1>&6
7608 else
7609 echo "$ac_t""no" 1>&6
7610 fi
7611
7612
7613 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7614 echo "configure:7615: checking for --enable-tipdlg" >&5
7615 no_cache=0
7616 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7617 if test "${enable_tipdlg+set}" = set; then
7618 enableval="$enable_tipdlg"
7619
7620 if test "$enableval" = yes; then
7621 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7622 else
7623 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7624 fi
7625
7626 else
7627
7628 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7629 if test "x$LINE" != x ; then
7630 eval "DEFAULT_$LINE"
7631 else
7632 no_cache=1
7633 fi
7634
7635 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7636
7637 fi
7638
7639
7640 eval "$ac_cv_use_tipdlg"
7641 if test "$no_cache" != 1; then
7642 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7643 fi
7644
7645 if test "$wxUSE_STARTUP_TIPS" = yes; then
7646 echo "$ac_t""yes" 1>&6
7647 else
7648 echo "$ac_t""no" 1>&6
7649 fi
7650
7651
7652 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7653 echo "configure:7654: checking for --enable-progressdlg" >&5
7654 no_cache=0
7655 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7656 if test "${enable_progressdlg+set}" = set; then
7657 enableval="$enable_progressdlg"
7658
7659 if test "$enableval" = yes; then
7660 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7661 else
7662 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7663 fi
7664
7665 else
7666
7667 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7668 if test "x$LINE" != x ; then
7669 eval "DEFAULT_$LINE"
7670 else
7671 no_cache=1
7672 fi
7673
7674 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7675
7676 fi
7677
7678
7679 eval "$ac_cv_use_progressdlg"
7680 if test "$no_cache" != 1; then
7681 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7682 fi
7683
7684 if test "$wxUSE_PROGRESSDLG" = yes; then
7685 echo "$ac_t""yes" 1>&6
7686 else
7687 echo "$ac_t""no" 1>&6
7688 fi
7689
7690
7691 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7692 echo "configure:7693: checking for --enable-wizarddlg" >&5
7693 no_cache=0
7694 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7695 if test "${enable_wizarddlg+set}" = set; then
7696 enableval="$enable_wizarddlg"
7697
7698 if test "$enableval" = yes; then
7699 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7700 else
7701 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7702 fi
7703
7704 else
7705
7706 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7707 if test "x$LINE" != x ; then
7708 eval "DEFAULT_$LINE"
7709 else
7710 no_cache=1
7711 fi
7712
7713 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7714
7715 fi
7716
7717
7718 eval "$ac_cv_use_wizarddlg"
7719 if test "$no_cache" != 1; then
7720 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7721 fi
7722
7723 if test "$wxUSE_WIZARDDLG" = yes; then
7724 echo "$ac_t""yes" 1>&6
7725 else
7726 echo "$ac_t""no" 1>&6
7727 fi
7728
7729
7730
7731
7732 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7733 echo "configure:7734: checking for --enable-menus" >&5
7734 no_cache=0
7735 # Check whether --enable-menus or --disable-menus was given.
7736 if test "${enable_menus+set}" = set; then
7737 enableval="$enable_menus"
7738
7739 if test "$enableval" = yes; then
7740 ac_cv_use_menus='wxUSE_MENUS=yes'
7741 else
7742 ac_cv_use_menus='wxUSE_MENUS=no'
7743 fi
7744
7745 else
7746
7747 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7748 if test "x$LINE" != x ; then
7749 eval "DEFAULT_$LINE"
7750 else
7751 no_cache=1
7752 fi
7753
7754 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7755
7756 fi
7757
7758
7759 eval "$ac_cv_use_menus"
7760 if test "$no_cache" != 1; then
7761 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7762 fi
7763
7764 if test "$wxUSE_MENUS" = yes; then
7765 echo "$ac_t""yes" 1>&6
7766 else
7767 echo "$ac_t""no" 1>&6
7768 fi
7769
7770
7771 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7772 echo "configure:7773: checking for --enable-miniframe" >&5
7773 no_cache=0
7774 # Check whether --enable-miniframe or --disable-miniframe was given.
7775 if test "${enable_miniframe+set}" = set; then
7776 enableval="$enable_miniframe"
7777
7778 if test "$enableval" = yes; then
7779 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7780 else
7781 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7782 fi
7783
7784 else
7785
7786 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7787 if test "x$LINE" != x ; then
7788 eval "DEFAULT_$LINE"
7789 else
7790 no_cache=1
7791 fi
7792
7793 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7794
7795 fi
7796
7797
7798 eval "$ac_cv_use_miniframe"
7799 if test "$no_cache" != 1; then
7800 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7801 fi
7802
7803 if test "$wxUSE_MINIFRAME" = yes; then
7804 echo "$ac_t""yes" 1>&6
7805 else
7806 echo "$ac_t""no" 1>&6
7807 fi
7808
7809
7810 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7811 echo "configure:7812: checking for --enable-tooltips" >&5
7812 no_cache=0
7813 # Check whether --enable-tooltips or --disable-tooltips was given.
7814 if test "${enable_tooltips+set}" = set; then
7815 enableval="$enable_tooltips"
7816
7817 if test "$enableval" = yes; then
7818 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7819 else
7820 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7821 fi
7822
7823 else
7824
7825 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7826 if test "x$LINE" != x ; then
7827 eval "DEFAULT_$LINE"
7828 else
7829 no_cache=1
7830 fi
7831
7832 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7833
7834 fi
7835
7836
7837 eval "$ac_cv_use_tooltips"
7838 if test "$no_cache" != 1; then
7839 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7840 fi
7841
7842 if test "$wxUSE_TOOLTIPS" = yes; then
7843 echo "$ac_t""yes" 1>&6
7844 else
7845 echo "$ac_t""no" 1>&6
7846 fi
7847
7848
7849 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7850 echo "configure:7851: checking for --enable-splines" >&5
7851 no_cache=0
7852 # Check whether --enable-splines or --disable-splines was given.
7853 if test "${enable_splines+set}" = set; then
7854 enableval="$enable_splines"
7855
7856 if test "$enableval" = yes; then
7857 ac_cv_use_splines='wxUSE_SPLINES=yes'
7858 else
7859 ac_cv_use_splines='wxUSE_SPLINES=no'
7860 fi
7861
7862 else
7863
7864 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7865 if test "x$LINE" != x ; then
7866 eval "DEFAULT_$LINE"
7867 else
7868 no_cache=1
7869 fi
7870
7871 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7872
7873 fi
7874
7875
7876 eval "$ac_cv_use_splines"
7877 if test "$no_cache" != 1; then
7878 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7879 fi
7880
7881 if test "$wxUSE_SPLINES" = yes; then
7882 echo "$ac_t""yes" 1>&6
7883 else
7884 echo "$ac_t""no" 1>&6
7885 fi
7886
7887
7888 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7889 echo "configure:7890: checking for --enable-validators" >&5
7890 no_cache=0
7891 # Check whether --enable-validators or --disable-validators was given.
7892 if test "${enable_validators+set}" = set; then
7893 enableval="$enable_validators"
7894
7895 if test "$enableval" = yes; then
7896 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7897 else
7898 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7899 fi
7900
7901 else
7902
7903 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7904 if test "x$LINE" != x ; then
7905 eval "DEFAULT_$LINE"
7906 else
7907 no_cache=1
7908 fi
7909
7910 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7911
7912 fi
7913
7914
7915 eval "$ac_cv_use_validators"
7916 if test "$no_cache" != 1; then
7917 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7918 fi
7919
7920 if test "$wxUSE_VALIDATORS" = yes; then
7921 echo "$ac_t""yes" 1>&6
7922 else
7923 echo "$ac_t""no" 1>&6
7924 fi
7925
7926
7927 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7928 echo "configure:7929: checking for --enable-busyinfo" >&5
7929 no_cache=0
7930 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7931 if test "${enable_busyinfo+set}" = set; then
7932 enableval="$enable_busyinfo"
7933
7934 if test "$enableval" = yes; then
7935 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7936 else
7937 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7938 fi
7939
7940 else
7941
7942 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7943 if test "x$LINE" != x ; then
7944 eval "DEFAULT_$LINE"
7945 else
7946 no_cache=1
7947 fi
7948
7949 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7950
7951 fi
7952
7953
7954 eval "$ac_cv_use_busyinfo"
7955 if test "$no_cache" != 1; then
7956 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7957 fi
7958
7959 if test "$wxUSE_BUSYINFO" = yes; then
7960 echo "$ac_t""yes" 1>&6
7961 else
7962 echo "$ac_t""no" 1>&6
7963 fi
7964
7965
7966 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7967 echo "configure:7968: checking for --enable-joystick" >&5
7968 no_cache=0
7969 # Check whether --enable-joystick or --disable-joystick was given.
7970 if test "${enable_joystick+set}" = set; then
7971 enableval="$enable_joystick"
7972
7973 if test "$enableval" = yes; then
7974 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7975 else
7976 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7977 fi
7978
7979 else
7980
7981 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7982 if test "x$LINE" != x ; then
7983 eval "DEFAULT_$LINE"
7984 else
7985 no_cache=1
7986 fi
7987
7988 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7989
7990 fi
7991
7992
7993 eval "$ac_cv_use_joystick"
7994 if test "$no_cache" != 1; then
7995 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7996 fi
7997
7998 if test "$wxUSE_JOYSTICK" = yes; then
7999 echo "$ac_t""yes" 1>&6
8000 else
8001 echo "$ac_t""no" 1>&6
8002 fi
8003
8004
8005 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8006 echo "configure:8007: checking for --enable-metafile" >&5
8007 no_cache=0
8008 # Check whether --enable-metafile or --disable-metafile was given.
8009 if test "${enable_metafile+set}" = set; then
8010 enableval="$enable_metafile"
8011
8012 if test "$enableval" = yes; then
8013 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8014 else
8015 ac_cv_use_metafile='wxUSE_METAFILE=no'
8016 fi
8017
8018 else
8019
8020 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8021 if test "x$LINE" != x ; then
8022 eval "DEFAULT_$LINE"
8023 else
8024 no_cache=1
8025 fi
8026
8027 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8028
8029 fi
8030
8031
8032 eval "$ac_cv_use_metafile"
8033 if test "$no_cache" != 1; then
8034 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8035 fi
8036
8037 if test "$wxUSE_METAFILE" = yes; then
8038 echo "$ac_t""yes" 1>&6
8039 else
8040 echo "$ac_t""no" 1>&6
8041 fi
8042
8043
8044 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8045 echo "configure:8046: checking for --enable-dragimage" >&5
8046 no_cache=0
8047 # Check whether --enable-dragimage or --disable-dragimage was given.
8048 if test "${enable_dragimage+set}" = set; then
8049 enableval="$enable_dragimage"
8050
8051 if test "$enableval" = yes; then
8052 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8053 else
8054 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8055 fi
8056
8057 else
8058
8059 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8060 if test "x$LINE" != x ; then
8061 eval "DEFAULT_$LINE"
8062 else
8063 no_cache=1
8064 fi
8065
8066 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8067
8068 fi
8069
8070
8071 eval "$ac_cv_use_dragimage"
8072 if test "$no_cache" != 1; then
8073 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8074 fi
8075
8076 if test "$wxUSE_DRAGIMAGE" = yes; then
8077 echo "$ac_t""yes" 1>&6
8078 else
8079 echo "$ac_t""no" 1>&6
8080 fi
8081
8082
8083
8084
8085 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8086 echo "configure:8087: checking for --enable-palette" >&5
8087 no_cache=0
8088 # Check whether --enable-palette or --disable-palette was given.
8089 if test "${enable_palette+set}" = set; then
8090 enableval="$enable_palette"
8091
8092 if test "$enableval" = yes; then
8093 ac_cv_use_palette='wxUSE_PALETTE=yes'
8094 else
8095 ac_cv_use_palette='wxUSE_PALETTE=no'
8096 fi
8097
8098 else
8099
8100 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8101 if test "x$LINE" != x ; then
8102 eval "DEFAULT_$LINE"
8103 else
8104 no_cache=1
8105 fi
8106
8107 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8108
8109 fi
8110
8111
8112 eval "$ac_cv_use_palette"
8113 if test "$no_cache" != 1; then
8114 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8115 fi
8116
8117 if test "$wxUSE_PALETTE" = yes; then
8118 echo "$ac_t""yes" 1>&6
8119 else
8120 echo "$ac_t""no" 1>&6
8121 fi
8122
8123
8124 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8125 echo "configure:8126: checking for --enable-image" >&5
8126 no_cache=0
8127 # Check whether --enable-image or --disable-image was given.
8128 if test "${enable_image+set}" = set; then
8129 enableval="$enable_image"
8130
8131 if test "$enableval" = yes; then
8132 ac_cv_use_image='wxUSE_IMAGE=yes'
8133 else
8134 ac_cv_use_image='wxUSE_IMAGE=no'
8135 fi
8136
8137 else
8138
8139 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8140 if test "x$LINE" != x ; then
8141 eval "DEFAULT_$LINE"
8142 else
8143 no_cache=1
8144 fi
8145
8146 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8147
8148 fi
8149
8150
8151 eval "$ac_cv_use_image"
8152 if test "$no_cache" != 1; then
8153 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8154 fi
8155
8156 if test "$wxUSE_IMAGE" = yes; then
8157 echo "$ac_t""yes" 1>&6
8158 else
8159 echo "$ac_t""no" 1>&6
8160 fi
8161
8162
8163 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8164 echo "configure:8165: checking for --enable-gif" >&5
8165 no_cache=0
8166 # Check whether --enable-gif or --disable-gif was given.
8167 if test "${enable_gif+set}" = set; then
8168 enableval="$enable_gif"
8169
8170 if test "$enableval" = yes; then
8171 ac_cv_use_gif='wxUSE_GIF=yes'
8172 else
8173 ac_cv_use_gif='wxUSE_GIF=no'
8174 fi
8175
8176 else
8177
8178 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8179 if test "x$LINE" != x ; then
8180 eval "DEFAULT_$LINE"
8181 else
8182 no_cache=1
8183 fi
8184
8185 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8186
8187 fi
8188
8189
8190 eval "$ac_cv_use_gif"
8191 if test "$no_cache" != 1; then
8192 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8193 fi
8194
8195 if test "$wxUSE_GIF" = yes; then
8196 echo "$ac_t""yes" 1>&6
8197 else
8198 echo "$ac_t""no" 1>&6
8199 fi
8200
8201
8202 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8203 echo "configure:8204: checking for --enable-pcx" >&5
8204 no_cache=0
8205 # Check whether --enable-pcx or --disable-pcx was given.
8206 if test "${enable_pcx+set}" = set; then
8207 enableval="$enable_pcx"
8208
8209 if test "$enableval" = yes; then
8210 ac_cv_use_pcx='wxUSE_PCX=yes'
8211 else
8212 ac_cv_use_pcx='wxUSE_PCX=no'
8213 fi
8214
8215 else
8216
8217 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8218 if test "x$LINE" != x ; then
8219 eval "DEFAULT_$LINE"
8220 else
8221 no_cache=1
8222 fi
8223
8224 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8225
8226 fi
8227
8228
8229 eval "$ac_cv_use_pcx"
8230 if test "$no_cache" != 1; then
8231 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8232 fi
8233
8234 if test "$wxUSE_PCX" = yes; then
8235 echo "$ac_t""yes" 1>&6
8236 else
8237 echo "$ac_t""no" 1>&6
8238 fi
8239
8240
8241 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8242 echo "configure:8243: checking for --enable-iff" >&5
8243 no_cache=0
8244 # Check whether --enable-iff or --disable-iff was given.
8245 if test "${enable_iff+set}" = set; then
8246 enableval="$enable_iff"
8247
8248 if test "$enableval" = yes; then
8249 ac_cv_use_iff='wxUSE_IFF=yes'
8250 else
8251 ac_cv_use_iff='wxUSE_IFF=no'
8252 fi
8253
8254 else
8255
8256 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8257 if test "x$LINE" != x ; then
8258 eval "DEFAULT_$LINE"
8259 else
8260 no_cache=1
8261 fi
8262
8263 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8264
8265 fi
8266
8267
8268 eval "$ac_cv_use_iff"
8269 if test "$no_cache" != 1; then
8270 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8271 fi
8272
8273 if test "$wxUSE_IFF" = yes; then
8274 echo "$ac_t""yes" 1>&6
8275 else
8276 echo "$ac_t""no" 1>&6
8277 fi
8278
8279
8280 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8281 echo "configure:8282: checking for --enable-pnm" >&5
8282 no_cache=0
8283 # Check whether --enable-pnm or --disable-pnm was given.
8284 if test "${enable_pnm+set}" = set; then
8285 enableval="$enable_pnm"
8286
8287 if test "$enableval" = yes; then
8288 ac_cv_use_pnm='wxUSE_PNM=yes'
8289 else
8290 ac_cv_use_pnm='wxUSE_PNM=no'
8291 fi
8292
8293 else
8294
8295 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8296 if test "x$LINE" != x ; then
8297 eval "DEFAULT_$LINE"
8298 else
8299 no_cache=1
8300 fi
8301
8302 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8303
8304 fi
8305
8306
8307 eval "$ac_cv_use_pnm"
8308 if test "$no_cache" != 1; then
8309 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8310 fi
8311
8312 if test "$wxUSE_PNM" = yes; then
8313 echo "$ac_t""yes" 1>&6
8314 else
8315 echo "$ac_t""no" 1>&6
8316 fi
8317
8318
8319 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8320 echo "configure:8321: checking for --enable-xpm" >&5
8321 no_cache=0
8322 # Check whether --enable-xpm or --disable-xpm was given.
8323 if test "${enable_xpm+set}" = set; then
8324 enableval="$enable_xpm"
8325
8326 if test "$enableval" = yes; then
8327 ac_cv_use_xpm='wxUSE_XPM=yes'
8328 else
8329 ac_cv_use_xpm='wxUSE_XPM=no'
8330 fi
8331
8332 else
8333
8334 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8335 if test "x$LINE" != x ; then
8336 eval "DEFAULT_$LINE"
8337 else
8338 no_cache=1
8339 fi
8340
8341 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8342
8343 fi
8344
8345
8346 eval "$ac_cv_use_xpm"
8347 if test "$no_cache" != 1; then
8348 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8349 fi
8350
8351 if test "$wxUSE_XPM" = yes; then
8352 echo "$ac_t""yes" 1>&6
8353 else
8354 echo "$ac_t""no" 1>&6
8355 fi
8356
8357
8358 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8359 echo "configure:8360: checking for --enable-ico_cur" >&5
8360 no_cache=0
8361 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8362 if test "${enable_ico_cur+set}" = set; then
8363 enableval="$enable_ico_cur"
8364
8365 if test "$enableval" = yes; then
8366 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8367 else
8368 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8369 fi
8370
8371 else
8372
8373 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8374 if test "x$LINE" != x ; then
8375 eval "DEFAULT_$LINE"
8376 else
8377 no_cache=1
8378 fi
8379
8380 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8381
8382 fi
8383
8384
8385 eval "$ac_cv_use_ico_cur"
8386 if test "$no_cache" != 1; then
8387 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8388 fi
8389
8390 if test "$wxUSE_ICO_CUR" = yes; then
8391 echo "$ac_t""yes" 1>&6
8392 else
8393 echo "$ac_t""no" 1>&6
8394 fi
8395
8396
8397 fi
8398
8399 case "${host}" in
8400 *-pc-os2_emx | *-pc-os2-emx )
8401 LEX_STEM="lexyy"
8402 ;;
8403 *)
8404 PATH_IFS=':'
8405 LEX_STEM="lex.yy"
8406 ;;
8407 esac
8408
8409
8410
8411 echo "saving argument cache $wx_arg_cache_file"
8412 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8413
8414
8415
8416 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8417 echo "configure:8418: checking for toolkit" >&5
8418
8419 if test "$wxUSE_GUI" = "yes"; then
8420
8421 if test "$USE_BEOS" = 1; then
8422 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8423 fi
8424
8425 if test "$TOOLKIT_GIVEN" = 1; then
8426 for toolkit in `echo $ALL_TOOLKITS`; do
8427 var=wxUSE_$toolkit
8428 eval "value=\$${var}"
8429 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8430 done
8431 else
8432 for toolkit in `echo $ALL_TOOLKITS`; do
8433 if test "$has_toolkit_in_cache" != 1; then
8434 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8435 else
8436 var=DEFAULT_wxUSE_$toolkit
8437 fi
8438 eval "wxUSE_$toolkit=\$${var}"
8439 done
8440 fi
8441
8442 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8443 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0} + ${wxUSE_X11:-0}`
8444
8445 case "${host}" in
8446 *-pc-os2_emx | *-pc-os2-emx )
8447 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8448 esac
8449
8450 case "$NUM_TOOLKITS" in
8451 1)
8452 ;;
8453 0)
8454 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8455 ;;
8456 *)
8457 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8458 esac
8459
8460 for toolkit in `echo $ALL_TOOLKITS`; do
8461 var=wxUSE_$toolkit
8462 eval "value=\$${var}"
8463 if test "x$value" != x; then
8464 cache_var=CACHE_$toolkit
8465 eval "cache=\$${cache_var}"
8466 if test "$cache" = 1; then
8467 echo "$var=$value" >> ${wx_arg_cache_file}
8468 fi
8469 if test "$value" = 1; then
8470 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8471 echo "$ac_t""$toolkit_echo" 1>&6
8472 fi
8473 fi
8474 done
8475 else
8476 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8477 fi
8478
8479
8480 define_win32=0
8481 case "${host}" in
8482 *-*-cygwin*)
8483 if test "$wxUSE_MSW" = 1 ; then
8484 define_win32=1
8485 fi
8486 ;;
8487 *-*-mingw*)
8488 define_win32=1
8489 ;;
8490 esac
8491
8492 if test "$define_win32" = 1 ; then
8493 USE_UNIX=0
8494 USE_WIN32=1
8495 cat >> confdefs.h <<\EOF
8496 #define __WIN32__ 1
8497 EOF
8498
8499 cat >> confdefs.h <<\EOF
8500 #define __WIN95__ 1
8501 EOF
8502
8503 cat >> confdefs.h <<\EOF
8504 #define __WINDOWS__ 1
8505 EOF
8506
8507 cat >> confdefs.h <<\EOF
8508 #define __GNUWIN32__ 1
8509 EOF
8510
8511 cat >> confdefs.h <<\EOF
8512 #define STRICT 1
8513 EOF
8514
8515 cat >> confdefs.h <<\EOF
8516 #define WINVER 0x0400
8517 EOF
8518
8519 else
8520 USE_UNIX=1
8521 USE_WIN32=0
8522 fi
8523
8524 if test "$USE_UNIX" = 1 ; then
8525 wxUSE_UNIX=yes
8526 cat >> confdefs.h <<\EOF
8527 #define __UNIX__ 1
8528 EOF
8529
8530 fi
8531
8532
8533 cat > confcache <<\EOF
8534 # This file is a shell script that caches the results of configure
8535 # tests run on this system so they can be shared between configure
8536 # scripts and configure runs. It is not useful on other systems.
8537 # If it contains results you don't want to keep, you may remove or edit it.
8538 #
8539 # By default, configure uses ./config.cache as the cache file,
8540 # creating it if it does not exist already. You can give configure
8541 # the --cache-file=FILE option to use a different cache file; that is
8542 # what configure does when it calls configure scripts in
8543 # subdirectories, so they share the cache.
8544 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8545 # config.status only pays attention to the cache file if you give it the
8546 # --recheck option to rerun configure.
8547 #
8548 EOF
8549 # The following way of writing the cache mishandles newlines in values,
8550 # but we know of no workaround that is simple, portable, and efficient.
8551 # So, don't put newlines in cache variables' values.
8552 # Ultrix sh set writes to stderr and can't be redirected directly,
8553 # and sets the high bit in the cache file unless we assign to the vars.
8554 (set) 2>&1 |
8555 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8556 *ac_space=\ *)
8557 # `set' does not quote correctly, so add quotes (double-quote substitution
8558 # turns \\\\ into \\, and sed turns \\ into \).
8559 sed -n \
8560 -e "s/'/'\\\\''/g" \
8561 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8562 ;;
8563 *)
8564 # `set' quotes correctly as required by POSIX, so do not add quotes.
8565 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8566 ;;
8567 esac >> confcache
8568 if cmp -s $cache_file confcache; then
8569 :
8570 else
8571 if test -w $cache_file; then
8572 echo "updating cache $cache_file"
8573 cat confcache > $cache_file
8574 else
8575 echo "not updating unwritable cache $cache_file"
8576 fi
8577 fi
8578 rm -f confcache
8579
8580
8581 if test "$build" != "$host" ; then
8582 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 -o "$USE_UNIX"; then
8583 CC=$host_alias-gcc
8584 CXX=$host_alias-c++
8585 AR=$host_alias-ar
8586 RANLIB=$host_alias-ranlib
8587 DLLTOOL=$host_alias-dlltool
8588 RESCOMP=$host_alias-windres
8589 LD=$host_alias-ld
8590 NM=$host_alias-nm
8591 STRIP=$host_alias-strip
8592 else
8593 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8594 fi
8595 fi
8596
8597 CFLAGS=${CFLAGS:=}
8598 # Extract the first word of "gcc", so it can be a program name with args.
8599 set dummy gcc; 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_dummy="$PATH"
8610 for ac_dir in $ac_dummy; do
8611 test -z "$ac_dir" && ac_dir=.
8612 if test -f $ac_dir/$ac_word; then
8613 ac_cv_prog_CC="gcc"
8614 break
8615 fi
8616 done
8617 IFS="$ac_save_ifs"
8618 fi
8619 fi
8620 CC="$ac_cv_prog_CC"
8621 if test -n "$CC"; then
8622 echo "$ac_t""$CC" 1>&6
8623 else
8624 echo "$ac_t""no" 1>&6
8625 fi
8626
8627 if test -z "$CC"; then
8628 # Extract the first word of "cc", so it can be a program name with args.
8629 set dummy cc; ac_word=$2
8630 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8631 echo "configure:8632: checking for $ac_word" >&5
8632 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8633 echo $ac_n "(cached) $ac_c" 1>&6
8634 else
8635 if test -n "$CC"; then
8636 ac_cv_prog_CC="$CC" # Let the user override the test.
8637 else
8638 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8639 ac_prog_rejected=no
8640 ac_dummy="$PATH"
8641 for ac_dir in $ac_dummy; do
8642 test -z "$ac_dir" && ac_dir=.
8643 if test -f $ac_dir/$ac_word; then
8644 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8645 ac_prog_rejected=yes
8646 continue
8647 fi
8648 ac_cv_prog_CC="cc"
8649 break
8650 fi
8651 done
8652 IFS="$ac_save_ifs"
8653 if test $ac_prog_rejected = yes; then
8654 # We found a bogon in the path, so make sure we never use it.
8655 set dummy $ac_cv_prog_CC
8656 shift
8657 if test $# -gt 0; then
8658 # We chose a different compiler from the bogus one.
8659 # However, it has the same basename, so the bogon will be chosen
8660 # first if we set CC to just the basename; use the full file name.
8661 shift
8662 set dummy "$ac_dir/$ac_word" "$@"
8663 shift
8664 ac_cv_prog_CC="$@"
8665 fi
8666 fi
8667 fi
8668 fi
8669 CC="$ac_cv_prog_CC"
8670 if test -n "$CC"; then
8671 echo "$ac_t""$CC" 1>&6
8672 else
8673 echo "$ac_t""no" 1>&6
8674 fi
8675
8676 if test -z "$CC"; then
8677 case "`uname -s`" in
8678 *win32* | *WIN32*)
8679 # Extract the first word of "cl", so it can be a program name with args.
8680 set dummy cl; ac_word=$2
8681 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8682 echo "configure:8683: checking for $ac_word" >&5
8683 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8684 echo $ac_n "(cached) $ac_c" 1>&6
8685 else
8686 if test -n "$CC"; then
8687 ac_cv_prog_CC="$CC" # Let the user override the test.
8688 else
8689 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8690 ac_dummy="$PATH"
8691 for ac_dir in $ac_dummy; do
8692 test -z "$ac_dir" && ac_dir=.
8693 if test -f $ac_dir/$ac_word; then
8694 ac_cv_prog_CC="cl"
8695 break
8696 fi
8697 done
8698 IFS="$ac_save_ifs"
8699 fi
8700 fi
8701 CC="$ac_cv_prog_CC"
8702 if test -n "$CC"; then
8703 echo "$ac_t""$CC" 1>&6
8704 else
8705 echo "$ac_t""no" 1>&6
8706 fi
8707 ;;
8708 esac
8709 fi
8710 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8711 fi
8712
8713 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8714 echo "configure:8715: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8715
8716 ac_ext=c
8717 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8718 ac_cpp='$CPP $CPPFLAGS'
8719 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8720 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8721 cross_compiling=$ac_cv_prog_cc_cross
8722
8723 cat > conftest.$ac_ext << EOF
8724
8725 #line 8726 "configure"
8726 #include "confdefs.h"
8727
8728 main(){return(0);}
8729 EOF
8730 if { (eval echo configure:8731: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8731 ac_cv_prog_cc_works=yes
8732 # If we can't run a trivial program, we are probably using a cross compiler.
8733 if (./conftest; exit) 2>/dev/null; then
8734 ac_cv_prog_cc_cross=no
8735 else
8736 ac_cv_prog_cc_cross=yes
8737 fi
8738 else
8739 echo "configure: failed program was:" >&5
8740 cat conftest.$ac_ext >&5
8741 ac_cv_prog_cc_works=no
8742 fi
8743 rm -fr conftest*
8744 ac_ext=c
8745 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8746 ac_cpp='$CPP $CPPFLAGS'
8747 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8748 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8749 cross_compiling=$ac_cv_prog_cc_cross
8750
8751 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8752 if test $ac_cv_prog_cc_works = no; then
8753 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8754 fi
8755 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8756 echo "configure:8757: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8757 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8758 cross_compiling=$ac_cv_prog_cc_cross
8759
8760 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8761 echo "configure:8762: checking whether we are using GNU C" >&5
8762 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8763 echo $ac_n "(cached) $ac_c" 1>&6
8764 else
8765 cat > conftest.c <<EOF
8766 #ifdef __GNUC__
8767 yes;
8768 #endif
8769 EOF
8770 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8771 ac_cv_prog_gcc=yes
8772 else
8773 ac_cv_prog_gcc=no
8774 fi
8775 fi
8776
8777 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8778
8779 if test $ac_cv_prog_gcc = yes; then
8780 GCC=yes
8781 else
8782 GCC=
8783 fi
8784
8785 ac_test_CFLAGS="${CFLAGS+set}"
8786 ac_save_CFLAGS="$CFLAGS"
8787 CFLAGS=
8788 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8789 echo "configure:8790: checking whether ${CC-cc} accepts -g" >&5
8790 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8791 echo $ac_n "(cached) $ac_c" 1>&6
8792 else
8793 echo 'void f(){}' > conftest.c
8794 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8795 ac_cv_prog_cc_g=yes
8796 else
8797 ac_cv_prog_cc_g=no
8798 fi
8799 rm -f conftest*
8800
8801 fi
8802
8803 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8804 if test "$ac_test_CFLAGS" = set; then
8805 CFLAGS="$ac_save_CFLAGS"
8806 elif test $ac_cv_prog_cc_g = yes; then
8807 if test "$GCC" = yes; then
8808 CFLAGS="-g -O2"
8809 else
8810 CFLAGS="-g"
8811 fi
8812 else
8813 if test "$GCC" = yes; then
8814 CFLAGS="-O2"
8815 else
8816 CFLAGS=
8817 fi
8818 fi
8819
8820
8821 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8822 echo "configure:8823: checking how to run the C preprocessor" >&5
8823 # On Suns, sometimes $CPP names a directory.
8824 if test -n "$CPP" && test -d "$CPP"; then
8825 CPP=
8826 fi
8827 if test -z "$CPP"; then
8828 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8829 echo $ac_n "(cached) $ac_c" 1>&6
8830 else
8831 # This must be in double quotes, not single quotes, because CPP may get
8832 # substituted into the Makefile and "${CC-cc}" will confuse make.
8833 CPP="${CC-cc} -E"
8834 # On the NeXT, cc -E runs the code through the compiler's parser,
8835 # not just through cpp.
8836 cat > conftest.$ac_ext <<EOF
8837 #line 8838 "configure"
8838 #include "confdefs.h"
8839 #include <assert.h>
8840 Syntax Error
8841 EOF
8842 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8843 { (eval echo configure:8844: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8844 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8845 if test -z "$ac_err"; then
8846 :
8847 else
8848 echo "$ac_err" >&5
8849 echo "configure: failed program was:" >&5
8850 cat conftest.$ac_ext >&5
8851 rm -rf conftest*
8852 CPP="${CC-cc} -E -traditional-cpp"
8853 cat > conftest.$ac_ext <<EOF
8854 #line 8855 "configure"
8855 #include "confdefs.h"
8856 #include <assert.h>
8857 Syntax Error
8858 EOF
8859 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8860 { (eval echo configure:8861: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8861 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8862 if test -z "$ac_err"; then
8863 :
8864 else
8865 echo "$ac_err" >&5
8866 echo "configure: failed program was:" >&5
8867 cat conftest.$ac_ext >&5
8868 rm -rf conftest*
8869 CPP="${CC-cc} -nologo -E"
8870 cat > conftest.$ac_ext <<EOF
8871 #line 8872 "configure"
8872 #include "confdefs.h"
8873 #include <assert.h>
8874 Syntax Error
8875 EOF
8876 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8877 { (eval echo configure:8878: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8878 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8879 if test -z "$ac_err"; then
8880 :
8881 else
8882 echo "$ac_err" >&5
8883 echo "configure: failed program was:" >&5
8884 cat conftest.$ac_ext >&5
8885 rm -rf conftest*
8886 CPP=/lib/cpp
8887 fi
8888 rm -f conftest*
8889 fi
8890 rm -f conftest*
8891 fi
8892 rm -f conftest*
8893 ac_cv_prog_CPP="$CPP"
8894 fi
8895 CPP="$ac_cv_prog_CPP"
8896 else
8897 ac_cv_prog_CPP="$CPP"
8898 fi
8899 echo "$ac_t""$CPP" 1>&6
8900
8901 if test $ac_cv_prog_gcc = yes; then
8902 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8903 echo "configure:8904: checking whether ${CC-cc} needs -traditional" >&5
8904 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8905 echo $ac_n "(cached) $ac_c" 1>&6
8906 else
8907 ac_pattern="Autoconf.*'x'"
8908 cat > conftest.$ac_ext <<EOF
8909 #line 8910 "configure"
8910 #include "confdefs.h"
8911 #include <sgtty.h>
8912 Autoconf TIOCGETP
8913 EOF
8914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8915 egrep "$ac_pattern" >/dev/null 2>&1; then
8916 rm -rf conftest*
8917 ac_cv_prog_gcc_traditional=yes
8918 else
8919 rm -rf conftest*
8920 ac_cv_prog_gcc_traditional=no
8921 fi
8922 rm -f conftest*
8923
8924
8925 if test $ac_cv_prog_gcc_traditional = no; then
8926 cat > conftest.$ac_ext <<EOF
8927 #line 8928 "configure"
8928 #include "confdefs.h"
8929 #include <termio.h>
8930 Autoconf TCGETA
8931 EOF
8932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8933 egrep "$ac_pattern" >/dev/null 2>&1; then
8934 rm -rf conftest*
8935 ac_cv_prog_gcc_traditional=yes
8936 fi
8937 rm -f conftest*
8938
8939 fi
8940 fi
8941
8942 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8943 if test $ac_cv_prog_gcc_traditional = yes; then
8944 CC="$CC -traditional"
8945 fi
8946 fi
8947
8948
8949
8950 ac_ext=C
8951 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8952 ac_cpp='$CXXCPP $CPPFLAGS'
8953 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8954 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8955 cross_compiling=$ac_cv_prog_cxx_cross
8956
8957
8958 CXXFLAGS=${CXXFLAGS:=}
8959 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8960 do
8961 # Extract the first word of "$ac_prog", so it can be a program name with args.
8962 set dummy $ac_prog; ac_word=$2
8963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8964 echo "configure:8965: checking for $ac_word" >&5
8965 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8966 echo $ac_n "(cached) $ac_c" 1>&6
8967 else
8968 if test -n "$CXX"; then
8969 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8970 else
8971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8972 ac_dummy="$PATH"
8973 for ac_dir in $ac_dummy; do
8974 test -z "$ac_dir" && ac_dir=.
8975 if test -f $ac_dir/$ac_word; then
8976 ac_cv_prog_CXX="$ac_prog"
8977 break
8978 fi
8979 done
8980 IFS="$ac_save_ifs"
8981 fi
8982 fi
8983 CXX="$ac_cv_prog_CXX"
8984 if test -n "$CXX"; then
8985 echo "$ac_t""$CXX" 1>&6
8986 else
8987 echo "$ac_t""no" 1>&6
8988 fi
8989
8990 test -n "$CXX" && break
8991 done
8992 test -n "$CXX" || CXX="gcc"
8993
8994
8995 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8996 echo "configure:8997: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8997
8998 ac_ext=C
8999 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9000 ac_cpp='$CXXCPP $CPPFLAGS'
9001 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9002 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9003 cross_compiling=$ac_cv_prog_cxx_cross
9004
9005 cat > conftest.$ac_ext << EOF
9006
9007 #line 9008 "configure"
9008 #include "confdefs.h"
9009
9010 int main(){return(0);}
9011 EOF
9012 if { (eval echo configure:9013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9013 ac_cv_prog_cxx_works=yes
9014 # If we can't run a trivial program, we are probably using a cross compiler.
9015 if (./conftest; exit) 2>/dev/null; then
9016 ac_cv_prog_cxx_cross=no
9017 else
9018 ac_cv_prog_cxx_cross=yes
9019 fi
9020 else
9021 echo "configure: failed program was:" >&5
9022 cat conftest.$ac_ext >&5
9023 ac_cv_prog_cxx_works=no
9024 fi
9025 rm -fr conftest*
9026 ac_ext=C
9027 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9028 ac_cpp='$CXXCPP $CPPFLAGS'
9029 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9030 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9031 cross_compiling=$ac_cv_prog_cxx_cross
9032
9033 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9034 if test $ac_cv_prog_cxx_works = no; then
9035 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9036 fi
9037 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9038 echo "configure:9039: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9039 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9040 cross_compiling=$ac_cv_prog_cxx_cross
9041
9042 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9043 echo "configure:9044: checking whether we are using GNU C++" >&5
9044 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9045 echo $ac_n "(cached) $ac_c" 1>&6
9046 else
9047 cat > conftest.C <<EOF
9048 #ifdef __GNUC__
9049 yes;
9050 #endif
9051 EOF
9052 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9053 ac_cv_prog_gxx=yes
9054 else
9055 ac_cv_prog_gxx=no
9056 fi
9057 fi
9058
9059 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9060
9061 if test $ac_cv_prog_gxx = yes; then
9062 GXX=yes
9063 else
9064 GXX=
9065 fi
9066
9067 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9068 ac_save_CXXFLAGS="$CXXFLAGS"
9069 CXXFLAGS=
9070 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9071 echo "configure:9072: checking whether ${CXX-g++} accepts -g" >&5
9072 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9073 echo $ac_n "(cached) $ac_c" 1>&6
9074 else
9075 echo 'void f(){}' > conftest.cc
9076 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9077 ac_cv_prog_cxx_g=yes
9078 else
9079 ac_cv_prog_cxx_g=no
9080 fi
9081 rm -f conftest*
9082
9083 fi
9084
9085 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9086 if test "$ac_test_CXXFLAGS" = set; then
9087 CXXFLAGS="$ac_save_CXXFLAGS"
9088 elif test $ac_cv_prog_cxx_g = yes; then
9089 if test "$GXX" = yes; then
9090 CXXFLAGS="-g -O2"
9091 else
9092 CXXFLAGS="-g"
9093 fi
9094 else
9095 if test "$GXX" = yes; then
9096 CXXFLAGS="-O2"
9097 else
9098 CXXFLAGS=
9099 fi
9100 fi
9101
9102
9103 ac_ext=c
9104 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9105 ac_cpp='$CPP $CPPFLAGS'
9106 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9107 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9108 cross_compiling=$ac_cv_prog_cc_cross
9109
9110
9111 # Extract the first word of "ranlib", so it can be a program name with args.
9112 set dummy ranlib; ac_word=$2
9113 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9114 echo "configure:9115: checking for $ac_word" >&5
9115 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9116 echo $ac_n "(cached) $ac_c" 1>&6
9117 else
9118 if test -n "$RANLIB"; then
9119 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9120 else
9121 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9122 ac_dummy="$PATH"
9123 for ac_dir in $ac_dummy; do
9124 test -z "$ac_dir" && ac_dir=.
9125 if test -f $ac_dir/$ac_word; then
9126 ac_cv_prog_RANLIB="ranlib"
9127 break
9128 fi
9129 done
9130 IFS="$ac_save_ifs"
9131 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9132 fi
9133 fi
9134 RANLIB="$ac_cv_prog_RANLIB"
9135 if test -n "$RANLIB"; then
9136 echo "$ac_t""$RANLIB" 1>&6
9137 else
9138 echo "$ac_t""no" 1>&6
9139 fi
9140
9141
9142 # Extract the first word of "ar", so it can be a program name with args.
9143 set dummy ar; ac_word=$2
9144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9145 echo "configure:9146: checking for $ac_word" >&5
9146 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9147 echo $ac_n "(cached) $ac_c" 1>&6
9148 else
9149 if test -n "$AR"; then
9150 ac_cv_prog_AR="$AR" # Let the user override the test.
9151 else
9152 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9153 ac_dummy="$PATH"
9154 for ac_dir in $ac_dummy; do
9155 test -z "$ac_dir" && ac_dir=.
9156 if test -f $ac_dir/$ac_word; then
9157 ac_cv_prog_AR="ar"
9158 break
9159 fi
9160 done
9161 IFS="$ac_save_ifs"
9162 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9163 fi
9164 fi
9165 AR="$ac_cv_prog_AR"
9166 if test -n "$AR"; then
9167 echo "$ac_t""$AR" 1>&6
9168 else
9169 echo "$ac_t""no" 1>&6
9170 fi
9171
9172
9173 # Find a good install program. We prefer a C program (faster),
9174 # so one script is as good as another. But avoid the broken or
9175 # incompatible versions:
9176 # SysV /etc/install, /usr/sbin/install
9177 # SunOS /usr/etc/install
9178 # IRIX /sbin/install
9179 # AIX /bin/install
9180 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9181 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9182 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9183 # ./install, which can be erroneously created by make from ./install.sh.
9184 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9185 echo "configure:9186: checking for a BSD compatible install" >&5
9186 if test -z "$INSTALL"; then
9187 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9188 echo $ac_n "(cached) $ac_c" 1>&6
9189 else
9190 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9191 for ac_dir in $PATH; do
9192 # Account for people who put trailing slashes in PATH elements.
9193 case "$ac_dir/" in
9194 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9195 *)
9196 # OSF1 and SCO ODT 3.0 have their own names for install.
9197 # Don't use installbsd from OSF since it installs stuff as root
9198 # by default.
9199 for ac_prog in ginstall scoinst install; do
9200 if test -f $ac_dir/$ac_prog; then
9201 if test $ac_prog = install &&
9202 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9203 # AIX install. It has an incompatible calling convention.
9204 :
9205 else
9206 ac_cv_path_install="$ac_dir/$ac_prog -c"
9207 break 2
9208 fi
9209 fi
9210 done
9211 ;;
9212 esac
9213 done
9214 IFS="$ac_save_IFS"
9215
9216 fi
9217 if test "${ac_cv_path_install+set}" = set; then
9218 INSTALL="$ac_cv_path_install"
9219 else
9220 # As a last resort, use the slow shell script. We don't cache a
9221 # path for INSTALL within a source directory, because that will
9222 # break other packages using the cache if that directory is
9223 # removed, or if the path is relative.
9224 INSTALL="$ac_install_sh"
9225 fi
9226 fi
9227 echo "$ac_t""$INSTALL" 1>&6
9228
9229 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9230 # It thinks the first close brace ends the variable substitution.
9231 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9232
9233 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9234
9235 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9236
9237
9238 case ${INSTALL} in
9239 /* ) # Absolute
9240 ;;
9241 *)
9242 INSTALL=`pwd`/${INSTALL} ;;
9243 esac
9244
9245
9246 case "${host}" in
9247
9248 powerpc-*-darwin* )
9249 INSTALL_PROGRAM="cp -fp"
9250 INSTALL_DATA="cp -fp"
9251 ;;
9252 *)
9253 ;;
9254 esac
9255
9256 # Extract the first word of "strip", so it can be a program name with args.
9257 set dummy strip; ac_word=$2
9258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9259 echo "configure:9260: checking for $ac_word" >&5
9260 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9261 echo $ac_n "(cached) $ac_c" 1>&6
9262 else
9263 if test -n "$STRIP"; then
9264 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9265 else
9266 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9267 ac_dummy="$PATH"
9268 for ac_dir in $ac_dummy; do
9269 test -z "$ac_dir" && ac_dir=.
9270 if test -f $ac_dir/$ac_word; then
9271 ac_cv_prog_STRIP="strip"
9272 break
9273 fi
9274 done
9275 IFS="$ac_save_ifs"
9276 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9277 fi
9278 fi
9279 STRIP="$ac_cv_prog_STRIP"
9280 if test -n "$STRIP"; then
9281 echo "$ac_t""$STRIP" 1>&6
9282 else
9283 echo "$ac_t""no" 1>&6
9284 fi
9285
9286
9287 echo $ac_n "checking if make is GNU make""... $ac_c" 1>&6
9288 echo "configure:9289: checking if make is GNU make" >&5
9289 if eval "test \"`echo '$''{'wx_cv_prog_makeisgnu'+set}'`\" = set"; then
9290 echo $ac_n "(cached) $ac_c" 1>&6
9291 else
9292
9293 if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
9294 egrep -s GNU > /dev/null); then
9295 wx_cv_prog_makeisgnu="yes"
9296 else
9297 wx_cv_prog_makeisgnu="no"
9298 fi
9299
9300 fi
9301
9302 echo "$ac_t""$wx_cv_prog_makeisgnu" 1>&6
9303
9304 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
9305 IF_GNU_MAKE=""
9306 else
9307 IF_GNU_MAKE="#"
9308 fi
9309
9310
9311
9312 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
9313 echo $ac_n "checking if make supports VPATH""... $ac_c" 1>&6
9314 echo "configure:9315: checking if make supports VPATH" >&5
9315 if eval "test \"`echo '$''{'wx_cv_prog_makevpath'+set}'`\" = set"; then
9316 echo $ac_n "(cached) $ac_c" 1>&6
9317 else
9318
9319 cat - << EOF > confMake
9320 check : file
9321 cp \$? \$@
9322 cp \$? final_file
9323 EOF
9324
9325 if test ! -d sub ; then
9326 mkdir sub
9327 fi
9328 echo dummy > sub/file
9329 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9330 RESULT=$?
9331 rm -f sub/file check final_file confMake
9332 rmdir sub
9333 if test "$RESULT" = 0; then
9334 wx_cv_prog_makevpath="yes"
9335 else
9336 wx_cv_prog_makevpath="no"
9337 fi
9338
9339 fi
9340
9341 echo "$ac_t""$wx_cv_prog_makevpath" 1>&6
9342
9343 if test "x$wx_cv_prog_makevpath" != "xyes"; then
9344 { echo "configure: error:
9345 You need a make-utility that is able to use the variable
9346 VPATH correctly.
9347 If your version of make does not support VPATH correctly,
9348 please install GNU-make (possibly as gmake), and start
9349 configure with the following command:
9350 export MAKE=gmake; ./configure for sh-type shells
9351 setenv MAKE gmake; ./configure for csh-type shells
9352 Also please do remember to use gmake in this case every time
9353 you are trying to compile.
9354 " 1>&2; exit 1; }
9355 fi fi
9356 for ac_prog in 'bison -y' byacc
9357 do
9358 # Extract the first word of "$ac_prog", so it can be a program name with args.
9359 set dummy $ac_prog; ac_word=$2
9360 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9361 echo "configure:9362: checking for $ac_word" >&5
9362 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9363 echo $ac_n "(cached) $ac_c" 1>&6
9364 else
9365 if test -n "$YACC"; then
9366 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9367 else
9368 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9369 ac_dummy="$PATH"
9370 for ac_dir in $ac_dummy; do
9371 test -z "$ac_dir" && ac_dir=.
9372 if test -f $ac_dir/$ac_word; then
9373 ac_cv_prog_YACC="$ac_prog"
9374 break
9375 fi
9376 done
9377 IFS="$ac_save_ifs"
9378 fi
9379 fi
9380 YACC="$ac_cv_prog_YACC"
9381 if test -n "$YACC"; then
9382 echo "$ac_t""$YACC" 1>&6
9383 else
9384 echo "$ac_t""no" 1>&6
9385 fi
9386
9387 test -n "$YACC" && break
9388 done
9389 test -n "$YACC" || YACC="yacc"
9390
9391
9392 # Extract the first word of "flex", so it can be a program name with args.
9393 set dummy flex; ac_word=$2
9394 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9395 echo "configure:9396: checking for $ac_word" >&5
9396 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9397 echo $ac_n "(cached) $ac_c" 1>&6
9398 else
9399 if test -n "$LEX"; then
9400 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9401 else
9402 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9403 ac_dummy="$PATH"
9404 for ac_dir in $ac_dummy; do
9405 test -z "$ac_dir" && ac_dir=.
9406 if test -f $ac_dir/$ac_word; then
9407 ac_cv_prog_LEX="flex"
9408 break
9409 fi
9410 done
9411 IFS="$ac_save_ifs"
9412 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9413 fi
9414 fi
9415 LEX="$ac_cv_prog_LEX"
9416 if test -n "$LEX"; then
9417 echo "$ac_t""$LEX" 1>&6
9418 else
9419 echo "$ac_t""no" 1>&6
9420 fi
9421
9422 if test -z "$LEXLIB"
9423 then
9424 case "$LEX" in
9425 flex*) ac_lib=fl ;;
9426 *) ac_lib=l ;;
9427 esac
9428 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9429 echo "configure:9430: checking for yywrap in -l$ac_lib" >&5
9430 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9431 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9432 echo $ac_n "(cached) $ac_c" 1>&6
9433 else
9434 ac_save_LIBS="$LIBS"
9435 LIBS="-l$ac_lib $LIBS"
9436 cat > conftest.$ac_ext <<EOF
9437 #line 9438 "configure"
9438 #include "confdefs.h"
9439 /* Override any gcc2 internal prototype to avoid an error. */
9440 /* We use char because int might match the return type of a gcc2
9441 builtin and then its argument prototype would still apply. */
9442 char yywrap();
9443
9444 int main() {
9445 yywrap()
9446 ; return 0; }
9447 EOF
9448 if { (eval echo configure:9449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9449 rm -rf conftest*
9450 eval "ac_cv_lib_$ac_lib_var=yes"
9451 else
9452 echo "configure: failed program was:" >&5
9453 cat conftest.$ac_ext >&5
9454 rm -rf conftest*
9455 eval "ac_cv_lib_$ac_lib_var=no"
9456 fi
9457 rm -f conftest*
9458 LIBS="$ac_save_LIBS"
9459
9460 fi
9461 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9462 echo "$ac_t""yes" 1>&6
9463 LEXLIB="-l$ac_lib"
9464 else
9465 echo "$ac_t""no" 1>&6
9466 fi
9467
9468 fi
9469
9470
9471 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9472 echo "configure:9473: checking whether ln -s works" >&5
9473 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9474 echo $ac_n "(cached) $ac_c" 1>&6
9475 else
9476 rm -f conftestdata
9477 if ln -s X conftestdata 2>/dev/null
9478 then
9479 rm -f conftestdata
9480 ac_cv_prog_LN_S="ln -s"
9481 else
9482 ac_cv_prog_LN_S=ln
9483 fi
9484 fi
9485 LN_S="$ac_cv_prog_LN_S"
9486 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9487 echo "$ac_t""yes" 1>&6
9488 else
9489 echo "$ac_t""no" 1>&6
9490 fi
9491
9492
9493
9494 if test "$wxUSE_MAC" != 1; then
9495 for ac_hdr in strings.h
9496 do
9497 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9498 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9499 echo "configure:9500: checking for $ac_hdr" >&5
9500 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9501 echo $ac_n "(cached) $ac_c" 1>&6
9502 else
9503 cat > conftest.$ac_ext <<EOF
9504 #line 9505 "configure"
9505 #include "confdefs.h"
9506 #include <$ac_hdr>
9507 EOF
9508 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9509 { (eval echo configure:9510: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9510 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9511 if test -z "$ac_err"; then
9512 rm -rf conftest*
9513 eval "ac_cv_header_$ac_safe=yes"
9514 else
9515 echo "$ac_err" >&5
9516 echo "configure: failed program was:" >&5
9517 cat conftest.$ac_ext >&5
9518 rm -rf conftest*
9519 eval "ac_cv_header_$ac_safe=no"
9520 fi
9521 rm -f conftest*
9522 fi
9523 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9524 echo "$ac_t""yes" 1>&6
9525 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9526 cat >> confdefs.h <<EOF
9527 #define $ac_tr_hdr 1
9528 EOF
9529
9530 else
9531 echo "$ac_t""no" 1>&6
9532 fi
9533 done
9534
9535 fi
9536
9537 for ac_hdr in stdlib.h
9538 do
9539 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9540 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9541 echo "configure:9542: checking for $ac_hdr" >&5
9542 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9543 echo $ac_n "(cached) $ac_c" 1>&6
9544 else
9545 cat > conftest.$ac_ext <<EOF
9546 #line 9547 "configure"
9547 #include "confdefs.h"
9548 #include <$ac_hdr>
9549 EOF
9550 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9551 { (eval echo configure:9552: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9552 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9553 if test -z "$ac_err"; then
9554 rm -rf conftest*
9555 eval "ac_cv_header_$ac_safe=yes"
9556 else
9557 echo "$ac_err" >&5
9558 echo "configure: failed program was:" >&5
9559 cat conftest.$ac_ext >&5
9560 rm -rf conftest*
9561 eval "ac_cv_header_$ac_safe=no"
9562 fi
9563 rm -f conftest*
9564 fi
9565 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9566 echo "$ac_t""yes" 1>&6
9567 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9568 cat >> confdefs.h <<EOF
9569 #define $ac_tr_hdr 1
9570 EOF
9571
9572 else
9573 echo "$ac_t""no" 1>&6
9574 fi
9575 done
9576
9577 for ac_hdr in malloc.h
9578 do
9579 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9580 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9581 echo "configure:9582: checking for $ac_hdr" >&5
9582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9583 echo $ac_n "(cached) $ac_c" 1>&6
9584 else
9585 cat > conftest.$ac_ext <<EOF
9586 #line 9587 "configure"
9587 #include "confdefs.h"
9588 #include <$ac_hdr>
9589 EOF
9590 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9591 { (eval echo configure:9592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9592 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9593 if test -z "$ac_err"; then
9594 rm -rf conftest*
9595 eval "ac_cv_header_$ac_safe=yes"
9596 else
9597 echo "$ac_err" >&5
9598 echo "configure: failed program was:" >&5
9599 cat conftest.$ac_ext >&5
9600 rm -rf conftest*
9601 eval "ac_cv_header_$ac_safe=no"
9602 fi
9603 rm -f conftest*
9604 fi
9605 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9606 echo "$ac_t""yes" 1>&6
9607 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9608 cat >> confdefs.h <<EOF
9609 #define $ac_tr_hdr 1
9610 EOF
9611
9612 else
9613 echo "$ac_t""no" 1>&6
9614 fi
9615 done
9616
9617 for ac_hdr in unistd.h
9618 do
9619 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9620 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9621 echo "configure:9622: checking for $ac_hdr" >&5
9622 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9623 echo $ac_n "(cached) $ac_c" 1>&6
9624 else
9625 cat > conftest.$ac_ext <<EOF
9626 #line 9627 "configure"
9627 #include "confdefs.h"
9628 #include <$ac_hdr>
9629 EOF
9630 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9631 { (eval echo configure:9632: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9632 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9633 if test -z "$ac_err"; then
9634 rm -rf conftest*
9635 eval "ac_cv_header_$ac_safe=yes"
9636 else
9637 echo "$ac_err" >&5
9638 echo "configure: failed program was:" >&5
9639 cat conftest.$ac_ext >&5
9640 rm -rf conftest*
9641 eval "ac_cv_header_$ac_safe=no"
9642 fi
9643 rm -f conftest*
9644 fi
9645 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9646 echo "$ac_t""yes" 1>&6
9647 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9648 cat >> confdefs.h <<EOF
9649 #define $ac_tr_hdr 1
9650 EOF
9651
9652 else
9653 echo "$ac_t""no" 1>&6
9654 fi
9655 done
9656
9657 for ac_hdr in wchar.h
9658 do
9659 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9660 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9661 echo "configure:9662: checking for $ac_hdr" >&5
9662 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9663 echo $ac_n "(cached) $ac_c" 1>&6
9664 else
9665 cat > conftest.$ac_ext <<EOF
9666 #line 9667 "configure"
9667 #include "confdefs.h"
9668 #include <$ac_hdr>
9669 EOF
9670 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9671 { (eval echo configure:9672: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9672 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9673 if test -z "$ac_err"; then
9674 rm -rf conftest*
9675 eval "ac_cv_header_$ac_safe=yes"
9676 else
9677 echo "$ac_err" >&5
9678 echo "configure: failed program was:" >&5
9679 cat conftest.$ac_ext >&5
9680 rm -rf conftest*
9681 eval "ac_cv_header_$ac_safe=no"
9682 fi
9683 rm -f conftest*
9684 fi
9685 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9686 echo "$ac_t""yes" 1>&6
9687 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9688 cat >> confdefs.h <<EOF
9689 #define $ac_tr_hdr 1
9690 EOF
9691
9692 else
9693 echo "$ac_t""no" 1>&6
9694 fi
9695 done
9696
9697
9698 if test "$ac_cv_header_wchar_h" != "yes"; then
9699 for ac_hdr in wcstr.h
9700 do
9701 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9702 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9703 echo "configure:9704: checking for $ac_hdr" >&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 <$ac_hdr>
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 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9730 cat >> confdefs.h <<EOF
9731 #define $ac_tr_hdr 1
9732 EOF
9733
9734 else
9735 echo "$ac_t""no" 1>&6
9736 fi
9737 done
9738
9739 fi
9740
9741
9742 for ac_hdr in fnmatch.h
9743 do
9744 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9745 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9746 echo "configure:9747: checking for $ac_hdr" >&5
9747 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9748 echo $ac_n "(cached) $ac_c" 1>&6
9749 else
9750 cat > conftest.$ac_ext <<EOF
9751 #line 9752 "configure"
9752 #include "confdefs.h"
9753 #include <$ac_hdr>
9754 EOF
9755 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9756 { (eval echo configure:9757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9757 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9758 if test -z "$ac_err"; then
9759 rm -rf conftest*
9760 eval "ac_cv_header_$ac_safe=yes"
9761 else
9762 echo "$ac_err" >&5
9763 echo "configure: failed program was:" >&5
9764 cat conftest.$ac_ext >&5
9765 rm -rf conftest*
9766 eval "ac_cv_header_$ac_safe=no"
9767 fi
9768 rm -f conftest*
9769 fi
9770 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9771 echo "$ac_t""yes" 1>&6
9772 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9773 cat >> confdefs.h <<EOF
9774 #define $ac_tr_hdr 1
9775 EOF
9776
9777 else
9778 echo "$ac_t""no" 1>&6
9779 fi
9780 done
9781
9782
9783 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
9784 for ac_func in fnmatch
9785 do
9786 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9787 echo "configure:9788: checking for $ac_func" >&5
9788 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9789 echo $ac_n "(cached) $ac_c" 1>&6
9790 else
9791 cat > conftest.$ac_ext <<EOF
9792 #line 9793 "configure"
9793 #include "confdefs.h"
9794 /* System header to define __stub macros and hopefully few prototypes,
9795 which can conflict with char $ac_func(); below. */
9796 #include <assert.h>
9797 /* Override any gcc2 internal prototype to avoid an error. */
9798 /* We use char because int might match the return type of a gcc2
9799 builtin and then its argument prototype would still apply. */
9800 char $ac_func();
9801
9802 int main() {
9803
9804 /* The GNU C library defines this for functions which it implements
9805 to always fail with ENOSYS. Some functions are actually named
9806 something starting with __ and the normal name is an alias. */
9807 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9808 choke me
9809 #else
9810 $ac_func();
9811 #endif
9812
9813 ; return 0; }
9814 EOF
9815 if { (eval echo configure:9816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9816 rm -rf conftest*
9817 eval "ac_cv_func_$ac_func=yes"
9818 else
9819 echo "configure: failed program was:" >&5
9820 cat conftest.$ac_ext >&5
9821 rm -rf conftest*
9822 eval "ac_cv_func_$ac_func=no"
9823 fi
9824 rm -f conftest*
9825 fi
9826
9827 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9828 echo "$ac_t""yes" 1>&6
9829 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9830 cat >> confdefs.h <<EOF
9831 #define $ac_tr_func 1
9832 EOF
9833
9834 else
9835 echo "$ac_t""no" 1>&6
9836 fi
9837 done
9838
9839 fi
9840
9841 for ac_hdr in langinfo.h
9842 do
9843 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9844 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9845 echo "configure:9846: checking for $ac_hdr" >&5
9846 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9847 echo $ac_n "(cached) $ac_c" 1>&6
9848 else
9849 cat > conftest.$ac_ext <<EOF
9850 #line 9851 "configure"
9851 #include "confdefs.h"
9852 #include <$ac_hdr>
9853 EOF
9854 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9855 { (eval echo configure:9856: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9856 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9857 if test -z "$ac_err"; then
9858 rm -rf conftest*
9859 eval "ac_cv_header_$ac_safe=yes"
9860 else
9861 echo "$ac_err" >&5
9862 echo "configure: failed program was:" >&5
9863 cat conftest.$ac_ext >&5
9864 rm -rf conftest*
9865 eval "ac_cv_header_$ac_safe=no"
9866 fi
9867 rm -f conftest*
9868 fi
9869 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9870 echo "$ac_t""yes" 1>&6
9871 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9872 cat >> confdefs.h <<EOF
9873 #define $ac_tr_hdr 1
9874 EOF
9875
9876 else
9877 echo "$ac_t""no" 1>&6
9878 fi
9879 done
9880
9881
9882 if test "$wxUSE_GUI" = "yes"; then
9883 if test "$wxUSE_UNIX" = "yes"; then
9884 for ac_hdr in X11/XKBlib.h
9885 do
9886 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9887 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9888 echo "configure:9889: checking for $ac_hdr" >&5
9889 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9890 echo $ac_n "(cached) $ac_c" 1>&6
9891 else
9892 cat > conftest.$ac_ext <<EOF
9893 #line 9894 "configure"
9894 #include "confdefs.h"
9895 #include <$ac_hdr>
9896 EOF
9897 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9898 { (eval echo configure:9899: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9899 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9900 if test -z "$ac_err"; then
9901 rm -rf conftest*
9902 eval "ac_cv_header_$ac_safe=yes"
9903 else
9904 echo "$ac_err" >&5
9905 echo "configure: failed program was:" >&5
9906 cat conftest.$ac_ext >&5
9907 rm -rf conftest*
9908 eval "ac_cv_header_$ac_safe=no"
9909 fi
9910 rm -f conftest*
9911 fi
9912 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9913 echo "$ac_t""yes" 1>&6
9914 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9915 cat >> confdefs.h <<EOF
9916 #define $ac_tr_hdr 1
9917 EOF
9918
9919 else
9920 echo "$ac_t""no" 1>&6
9921 fi
9922 done
9923
9924 fi
9925 fi
9926
9927
9928 echo $ac_n "checking for working const""... $ac_c" 1>&6
9929 echo "configure:9930: checking for working const" >&5
9930 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
9931 echo $ac_n "(cached) $ac_c" 1>&6
9932 else
9933 cat > conftest.$ac_ext <<EOF
9934 #line 9935 "configure"
9935 #include "confdefs.h"
9936
9937 int main() {
9938
9939 /* Ultrix mips cc rejects this. */
9940 typedef int charset[2]; const charset x;
9941 /* SunOS 4.1.1 cc rejects this. */
9942 char const *const *ccp;
9943 char **p;
9944 /* NEC SVR4.0.2 mips cc rejects this. */
9945 struct point {int x, y;};
9946 static struct point const zero = {0,0};
9947 /* AIX XL C 1.02.0.0 rejects this.
9948 It does not let you subtract one const X* pointer from another in an arm
9949 of an if-expression whose if-part is not a constant expression */
9950 const char *g = "string";
9951 ccp = &g + (g ? g-g : 0);
9952 /* HPUX 7.0 cc rejects these. */
9953 ++ccp;
9954 p = (char**) ccp;
9955 ccp = (char const *const *) p;
9956 { /* SCO 3.2v4 cc rejects this. */
9957 char *t;
9958 char const *s = 0 ? (char *) 0 : (char const *) 0;
9959
9960 *t++ = 0;
9961 }
9962 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9963 int x[] = {25, 17};
9964 const int *foo = &x[0];
9965 ++foo;
9966 }
9967 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9968 typedef const int *iptr;
9969 iptr p = 0;
9970 ++p;
9971 }
9972 { /* AIX XL C 1.02.0.0 rejects this saying
9973 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9974 struct s { int j; const int *ap[3]; };
9975 struct s *b; b->j = 5;
9976 }
9977 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9978 const int foo = 10;
9979 }
9980
9981 ; return 0; }
9982 EOF
9983 if { (eval echo configure:9984: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9984 rm -rf conftest*
9985 ac_cv_c_const=yes
9986 else
9987 echo "configure: failed program was:" >&5
9988 cat conftest.$ac_ext >&5
9989 rm -rf conftest*
9990 ac_cv_c_const=no
9991 fi
9992 rm -f conftest*
9993 fi
9994
9995 echo "$ac_t""$ac_cv_c_const" 1>&6
9996 if test $ac_cv_c_const = no; then
9997 cat >> confdefs.h <<\EOF
9998 #define const
9999 EOF
10000
10001 fi
10002
10003 echo $ac_n "checking for inline""... $ac_c" 1>&6
10004 echo "configure:10005: checking for inline" >&5
10005 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
10006 echo $ac_n "(cached) $ac_c" 1>&6
10007 else
10008 ac_cv_c_inline=no
10009 for ac_kw in inline __inline__ __inline; do
10010 cat > conftest.$ac_ext <<EOF
10011 #line 10012 "configure"
10012 #include "confdefs.h"
10013
10014 int main() {
10015 } $ac_kw foo() {
10016 ; return 0; }
10017 EOF
10018 if { (eval echo configure:10019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10019 rm -rf conftest*
10020 ac_cv_c_inline=$ac_kw; break
10021 else
10022 echo "configure: failed program was:" >&5
10023 cat conftest.$ac_ext >&5
10024 fi
10025 rm -f conftest*
10026 done
10027
10028 fi
10029
10030 echo "$ac_t""$ac_cv_c_inline" 1>&6
10031 case "$ac_cv_c_inline" in
10032 inline | yes) ;;
10033 no) cat >> confdefs.h <<\EOF
10034 #define inline
10035 EOF
10036 ;;
10037 *) cat >> confdefs.h <<EOF
10038 #define inline $ac_cv_c_inline
10039 EOF
10040 ;;
10041 esac
10042
10043
10044 echo $ac_n "checking size of char""... $ac_c" 1>&6
10045 echo "configure:10046: checking size of char" >&5
10046 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
10047 echo $ac_n "(cached) $ac_c" 1>&6
10048 else
10049 if test "$cross_compiling" = yes; then
10050 ac_cv_sizeof_char=1
10051 else
10052 cat > conftest.$ac_ext <<EOF
10053 #line 10054 "configure"
10054 #include "confdefs.h"
10055 #include <stdio.h>
10056 main()
10057 {
10058 FILE *f=fopen("conftestval", "w");
10059 if (!f) exit(1);
10060 fprintf(f, "%d\n", sizeof(char));
10061 exit(0);
10062 }
10063 EOF
10064 if { (eval echo configure:10065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10065 then
10066 ac_cv_sizeof_char=`cat conftestval`
10067 else
10068 echo "configure: failed program was:" >&5
10069 cat conftest.$ac_ext >&5
10070 rm -fr conftest*
10071 ac_cv_sizeof_char=0
10072 fi
10073 rm -fr conftest*
10074 fi
10075
10076 fi
10077 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
10078 cat >> confdefs.h <<EOF
10079 #define SIZEOF_CHAR $ac_cv_sizeof_char
10080 EOF
10081
10082
10083 echo $ac_n "checking size of short""... $ac_c" 1>&6
10084 echo "configure:10085: checking size of short" >&5
10085 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
10086 echo $ac_n "(cached) $ac_c" 1>&6
10087 else
10088 if test "$cross_compiling" = yes; then
10089 ac_cv_sizeof_short=2
10090 else
10091 cat > conftest.$ac_ext <<EOF
10092 #line 10093 "configure"
10093 #include "confdefs.h"
10094 #include <stdio.h>
10095 main()
10096 {
10097 FILE *f=fopen("conftestval", "w");
10098 if (!f) exit(1);
10099 fprintf(f, "%d\n", sizeof(short));
10100 exit(0);
10101 }
10102 EOF
10103 if { (eval echo configure:10104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10104 then
10105 ac_cv_sizeof_short=`cat conftestval`
10106 else
10107 echo "configure: failed program was:" >&5
10108 cat conftest.$ac_ext >&5
10109 rm -fr conftest*
10110 ac_cv_sizeof_short=0
10111 fi
10112 rm -fr conftest*
10113 fi
10114
10115 fi
10116 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
10117 cat >> confdefs.h <<EOF
10118 #define SIZEOF_SHORT $ac_cv_sizeof_short
10119 EOF
10120
10121
10122 echo $ac_n "checking size of void *""... $ac_c" 1>&6
10123 echo "configure:10124: checking size of void *" >&5
10124 if eval "test \"`echo '$''{'ac_cv_sizeof_void_p'+set}'`\" = set"; then
10125 echo $ac_n "(cached) $ac_c" 1>&6
10126 else
10127 if test "$cross_compiling" = yes; then
10128 ac_cv_sizeof_void_p=4
10129 else
10130 cat > conftest.$ac_ext <<EOF
10131 #line 10132 "configure"
10132 #include "confdefs.h"
10133 #include <stdio.h>
10134 main()
10135 {
10136 FILE *f=fopen("conftestval", "w");
10137 if (!f) exit(1);
10138 fprintf(f, "%d\n", sizeof(void *));
10139 exit(0);
10140 }
10141 EOF
10142 if { (eval echo configure:10143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10143 then
10144 ac_cv_sizeof_void_p=`cat conftestval`
10145 else
10146 echo "configure: failed program was:" >&5
10147 cat conftest.$ac_ext >&5
10148 rm -fr conftest*
10149 ac_cv_sizeof_void_p=0
10150 fi
10151 rm -fr conftest*
10152 fi
10153
10154 fi
10155 echo "$ac_t""$ac_cv_sizeof_void_p" 1>&6
10156 cat >> confdefs.h <<EOF
10157 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
10158 EOF
10159
10160
10161 echo $ac_n "checking size of int""... $ac_c" 1>&6
10162 echo "configure:10163: checking size of int" >&5
10163 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
10164 echo $ac_n "(cached) $ac_c" 1>&6
10165 else
10166 if test "$cross_compiling" = yes; then
10167 ac_cv_sizeof_int=4
10168 else
10169 cat > conftest.$ac_ext <<EOF
10170 #line 10171 "configure"
10171 #include "confdefs.h"
10172 #include <stdio.h>
10173 main()
10174 {
10175 FILE *f=fopen("conftestval", "w");
10176 if (!f) exit(1);
10177 fprintf(f, "%d\n", sizeof(int));
10178 exit(0);
10179 }
10180 EOF
10181 if { (eval echo configure:10182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10182 then
10183 ac_cv_sizeof_int=`cat conftestval`
10184 else
10185 echo "configure: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10187 rm -fr conftest*
10188 ac_cv_sizeof_int=0
10189 fi
10190 rm -fr conftest*
10191 fi
10192
10193 fi
10194 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
10195 cat >> confdefs.h <<EOF
10196 #define SIZEOF_INT $ac_cv_sizeof_int
10197 EOF
10198
10199
10200 echo $ac_n "checking size of long""... $ac_c" 1>&6
10201 echo "configure:10202: checking size of long" >&5
10202 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
10203 echo $ac_n "(cached) $ac_c" 1>&6
10204 else
10205 if test "$cross_compiling" = yes; then
10206 ac_cv_sizeof_long=4
10207 else
10208 cat > conftest.$ac_ext <<EOF
10209 #line 10210 "configure"
10210 #include "confdefs.h"
10211 #include <stdio.h>
10212 main()
10213 {
10214 FILE *f=fopen("conftestval", "w");
10215 if (!f) exit(1);
10216 fprintf(f, "%d\n", sizeof(long));
10217 exit(0);
10218 }
10219 EOF
10220 if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10221 then
10222 ac_cv_sizeof_long=`cat conftestval`
10223 else
10224 echo "configure: failed program was:" >&5
10225 cat conftest.$ac_ext >&5
10226 rm -fr conftest*
10227 ac_cv_sizeof_long=0
10228 fi
10229 rm -fr conftest*
10230 fi
10231
10232 fi
10233 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
10234 cat >> confdefs.h <<EOF
10235 #define SIZEOF_LONG $ac_cv_sizeof_long
10236 EOF
10237
10238
10239
10240 case "${host}" in
10241 arm-*-linux* )
10242 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10243 echo "configure:10244: checking size of long long" >&5
10244 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10245 echo $ac_n "(cached) $ac_c" 1>&6
10246 else
10247 if test "$cross_compiling" = yes; then
10248 ac_cv_sizeof_long_long=8
10249 else
10250 cat > conftest.$ac_ext <<EOF
10251 #line 10252 "configure"
10252 #include "confdefs.h"
10253 #include <stdio.h>
10254 main()
10255 {
10256 FILE *f=fopen("conftestval", "w");
10257 if (!f) exit(1);
10258 fprintf(f, "%d\n", sizeof(long long));
10259 exit(0);
10260 }
10261 EOF
10262 if { (eval echo configure:10263: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10263 then
10264 ac_cv_sizeof_long_long=`cat conftestval`
10265 else
10266 echo "configure: failed program was:" >&5
10267 cat conftest.$ac_ext >&5
10268 rm -fr conftest*
10269 ac_cv_sizeof_long_long=0
10270 fi
10271 rm -fr conftest*
10272 fi
10273
10274 fi
10275 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10276 cat >> confdefs.h <<EOF
10277 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10278 EOF
10279
10280
10281 ;;
10282 * )
10283 echo $ac_n "checking size of long long""... $ac_c" 1>&6
10284 echo "configure:10285: checking size of long long" >&5
10285 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
10286 echo $ac_n "(cached) $ac_c" 1>&6
10287 else
10288 if test "$cross_compiling" = yes; then
10289 ac_cv_sizeof_long_long=0
10290 else
10291 cat > conftest.$ac_ext <<EOF
10292 #line 10293 "configure"
10293 #include "confdefs.h"
10294 #include <stdio.h>
10295 main()
10296 {
10297 FILE *f=fopen("conftestval", "w");
10298 if (!f) exit(1);
10299 fprintf(f, "%d\n", sizeof(long long));
10300 exit(0);
10301 }
10302 EOF
10303 if { (eval echo configure:10304: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10304 then
10305 ac_cv_sizeof_long_long=`cat conftestval`
10306 else
10307 echo "configure: failed program was:" >&5
10308 cat conftest.$ac_ext >&5
10309 rm -fr conftest*
10310 ac_cv_sizeof_long_long=0
10311 fi
10312 rm -fr conftest*
10313 fi
10314
10315 fi
10316 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
10317 cat >> confdefs.h <<EOF
10318 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10319 EOF
10320
10321
10322 esac
10323
10324 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
10325 echo "configure:10326: checking size of wchar_t" >&5
10326 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
10327 echo $ac_n "(cached) $ac_c" 1>&6
10328 else
10329
10330 if test "$cross_compiling" = yes; then
10331 wx_cv_sizeof_wchar_t=4
10332
10333 else
10334 cat > conftest.$ac_ext <<EOF
10335 #line 10336 "configure"
10336 #include "confdefs.h"
10337
10338 #ifdef HAVE_WCHAR_H
10339 # ifdef __CYGWIN__
10340 # include <stddef.h>
10341 # endif
10342 # include <wchar.h>
10343 #endif
10344 #ifdef HAVE_STDLIB_H
10345 # include <stdlib.h>
10346 #endif
10347 #include <stdio.h>
10348 int main()
10349 {
10350 FILE *f=fopen("conftestval", "w");
10351 if (!f) exit(1);
10352 fprintf(f, "%i", sizeof(wchar_t));
10353 exit(0);
10354 }
10355
10356 EOF
10357 if { (eval echo configure:10358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10358 then
10359 wx_cv_sizeof_wchar_t=`cat conftestval`
10360 else
10361 echo "configure: failed program was:" >&5
10362 cat conftest.$ac_ext >&5
10363 rm -fr conftest*
10364 wx_cv_sizeof_wchar_t=0
10365 fi
10366 rm -fr conftest*
10367 fi
10368
10369
10370 fi
10371
10372 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
10373
10374 cat >> confdefs.h <<EOF
10375 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
10376 EOF
10377
10378
10379 # Check whether --enable-largefile or --disable-largefile was given.
10380 if test "${enable_largefile+set}" = set; then
10381 enableval="$enable_largefile"
10382 :
10383 fi
10384
10385 if test "$enable_largefile" != no; then
10386 wx_largefile=no
10387
10388 echo $ac_n "checking for _FILE_OFFSET_BITS value needed for large files""... $ac_c" 1>&6
10389 echo "configure:10390: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10390 if eval "test \"`echo '$''{'ac_cv_sys_file_offset_bits'+set}'`\" = set"; then
10391 echo $ac_n "(cached) $ac_c" 1>&6
10392 else
10393
10394 cat > conftest.$ac_ext <<EOF
10395 #line 10396 "configure"
10396 #include "confdefs.h"
10397 #define _FILE_OFFSET_BITS 64
10398 #include <sys/types.h>
10399 int main() {
10400 typedef struct {
10401 unsigned int field: sizeof(off_t) == 8;
10402 } wxlf;
10403
10404 ; return 0; }
10405 EOF
10406 if { (eval echo configure:10407: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10407 rm -rf conftest*
10408 ac_cv_sys_file_offset_bits=64
10409 else
10410 echo "configure: failed program was:" >&5
10411 cat conftest.$ac_ext >&5
10412 rm -rf conftest*
10413 ac_cv_sys_file_offset_bits=no
10414 fi
10415 rm -f conftest*
10416
10417
10418 fi
10419
10420 echo "$ac_t""$ac_cv_sys_file_offset_bits" 1>&6
10421
10422 if test "$ac_cv_sys_file_offset_bits" != no; then
10423 wx_largefile=yes
10424 cat >> confdefs.h <<EOF
10425 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10426 EOF
10427
10428 fi
10429
10430 if test "x$wx_largefile" != "xyes"; then
10431
10432 echo $ac_n "checking for _LARGE_FILES value needed for large files""... $ac_c" 1>&6
10433 echo "configure:10434: checking for _LARGE_FILES value needed for large files" >&5
10434 if eval "test \"`echo '$''{'ac_cv_sys_large_files'+set}'`\" = set"; then
10435 echo $ac_n "(cached) $ac_c" 1>&6
10436 else
10437
10438 cat > conftest.$ac_ext <<EOF
10439 #line 10440 "configure"
10440 #include "confdefs.h"
10441 #define _LARGE_FILES 1
10442 #include <sys/types.h>
10443 int main() {
10444 typedef struct {
10445 unsigned int field: sizeof(off_t) == 8;
10446 } wxlf;
10447
10448 ; return 0; }
10449 EOF
10450 if { (eval echo configure:10451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10451 rm -rf conftest*
10452 ac_cv_sys_large_files=1
10453 else
10454 echo "configure: failed program was:" >&5
10455 cat conftest.$ac_ext >&5
10456 rm -rf conftest*
10457 ac_cv_sys_large_files=no
10458 fi
10459 rm -f conftest*
10460
10461
10462 fi
10463
10464 echo "$ac_t""$ac_cv_sys_large_files" 1>&6
10465
10466 if test "$ac_cv_sys_large_files" != no; then
10467 wx_largefile=yes
10468 cat >> confdefs.h <<EOF
10469 #define _LARGE_FILES $ac_cv_sys_large_files
10470 EOF
10471
10472 fi
10473
10474 fi
10475
10476 echo $ac_n "checking if large file support is available""... $ac_c" 1>&6
10477 echo "configure:10478: checking if large file support is available" >&5
10478 if test "x$wx_largefile" = "xyes"; then
10479 cat >> confdefs.h <<\EOF
10480 #define HAVE_LARGEFILE_SUPPORT 1
10481 EOF
10482
10483 fi
10484 echo "$ac_t""$wx_largefile" 1>&6
10485 fi
10486
10487
10488 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
10489 echo "configure:10490: checking whether byte ordering is bigendian" >&5
10490 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
10491 echo $ac_n "(cached) $ac_c" 1>&6
10492 else
10493 ac_cv_c_bigendian=unknown
10494 # See if sys/param.h defines the BYTE_ORDER macro.
10495 cat > conftest.$ac_ext <<EOF
10496 #line 10497 "configure"
10497 #include "confdefs.h"
10498 #include <sys/types.h>
10499 #include <sys/param.h>
10500 int main() {
10501
10502 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
10503 bogus endian macros
10504 #endif
10505 ; return 0; }
10506 EOF
10507 if { (eval echo configure:10508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10508 rm -rf conftest*
10509 # It does; now see whether it defined to BIG_ENDIAN or not.
10510 cat > conftest.$ac_ext <<EOF
10511 #line 10512 "configure"
10512 #include "confdefs.h"
10513 #include <sys/types.h>
10514 #include <sys/param.h>
10515 int main() {
10516
10517 #if BYTE_ORDER != BIG_ENDIAN
10518 not big endian
10519 #endif
10520 ; return 0; }
10521 EOF
10522 if { (eval echo configure:10523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10523 rm -rf conftest*
10524 ac_cv_c_bigendian=yes
10525 else
10526 echo "configure: failed program was:" >&5
10527 cat conftest.$ac_ext >&5
10528 rm -rf conftest*
10529 ac_cv_c_bigendian=no
10530 fi
10531 rm -f conftest*
10532 else
10533 echo "configure: failed program was:" >&5
10534 cat conftest.$ac_ext >&5
10535 fi
10536 rm -f conftest*
10537 if test $ac_cv_c_bigendian = unknown; then
10538 if test "$cross_compiling" = yes; then
10539 ac_cv_c_bigendian=unknown
10540 else
10541 cat > conftest.$ac_ext <<EOF
10542 #line 10543 "configure"
10543 #include "confdefs.h"
10544 main () {
10545 /* Are we little or big endian? From Harbison&Steele. */
10546 union
10547 {
10548 long l;
10549 char c[sizeof (long)];
10550 } u;
10551 u.l = 1;
10552 exit (u.c[sizeof (long) - 1] == 1);
10553 }
10554 EOF
10555 if { (eval echo configure:10556: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10556 then
10557 ac_cv_c_bigendian=no
10558 else
10559 echo "configure: failed program was:" >&5
10560 cat conftest.$ac_ext >&5
10561 rm -fr conftest*
10562 ac_cv_c_bigendian=yes
10563 fi
10564 rm -fr conftest*
10565 fi
10566
10567 fi
10568 fi
10569
10570 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
10571 if test $ac_cv_c_bigendian = unknown; then
10572 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
10573 fi
10574 if test $ac_cv_c_bigendian = yes; then
10575 cat >> confdefs.h <<\EOF
10576 #define WORDS_BIGENDIAN 1
10577 EOF
10578
10579 fi
10580
10581
10582 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
10583 echo "configure:10584: checking how to run the C++ preprocessor" >&5
10584 if test -z "$CXXCPP"; then
10585 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
10586 echo $ac_n "(cached) $ac_c" 1>&6
10587 else
10588 ac_ext=C
10589 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10590 ac_cpp='$CXXCPP $CPPFLAGS'
10591 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10592 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10593 cross_compiling=$ac_cv_prog_cxx_cross
10594 CXXCPP="${CXX-g++} -E"
10595 cat > conftest.$ac_ext <<EOF
10596 #line 10597 "configure"
10597 #include "confdefs.h"
10598 #include <stdlib.h>
10599 EOF
10600 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10601 { (eval echo configure:10602: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10602 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10603 if test -z "$ac_err"; then
10604 :
10605 else
10606 echo "$ac_err" >&5
10607 echo "configure: failed program was:" >&5
10608 cat conftest.$ac_ext >&5
10609 rm -rf conftest*
10610 CXXCPP=/lib/cpp
10611 fi
10612 rm -f conftest*
10613 ac_cv_prog_CXXCPP="$CXXCPP"
10614 ac_ext=C
10615 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10616 ac_cpp='$CXXCPP $CPPFLAGS'
10617 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10618 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10619 cross_compiling=$ac_cv_prog_cxx_cross
10620 fi
10621 fi
10622 CXXCPP="$ac_cv_prog_CXXCPP"
10623 echo "$ac_t""$CXXCPP" 1>&6
10624
10625
10626 if test "$cross_compiling" = "yes"; then
10627 cat >> confdefs.h <<\EOF
10628 #define wxUSE_IOSTREAMH 1
10629 EOF
10630
10631 else
10632
10633 ac_ext=C
10634 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10635 ac_cpp='$CXXCPP $CPPFLAGS'
10636 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10637 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10638 cross_compiling=$ac_cv_prog_cxx_cross
10639
10640
10641 for ac_hdr in iostream
10642 do
10643 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10644 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10645 echo "configure:10646: checking for $ac_hdr" >&5
10646 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10647 echo $ac_n "(cached) $ac_c" 1>&6
10648 else
10649 cat > conftest.$ac_ext <<EOF
10650 #line 10651 "configure"
10651 #include "confdefs.h"
10652 #include <$ac_hdr>
10653 EOF
10654 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10655 { (eval echo configure:10656: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10656 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10657 if test -z "$ac_err"; then
10658 rm -rf conftest*
10659 eval "ac_cv_header_$ac_safe=yes"
10660 else
10661 echo "$ac_err" >&5
10662 echo "configure: failed program was:" >&5
10663 cat conftest.$ac_ext >&5
10664 rm -rf conftest*
10665 eval "ac_cv_header_$ac_safe=no"
10666 fi
10667 rm -f conftest*
10668 fi
10669 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10670 echo "$ac_t""yes" 1>&6
10671 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10672 cat >> confdefs.h <<EOF
10673 #define $ac_tr_hdr 1
10674 EOF
10675
10676 else
10677 echo "$ac_t""no" 1>&6
10678 fi
10679 done
10680
10681
10682 if test "$ac_cv_header_iostream" = "yes" ; then
10683 :
10684 else
10685 cat >> confdefs.h <<\EOF
10686 #define wxUSE_IOSTREAMH 1
10687 EOF
10688
10689 fi
10690
10691 ac_ext=c
10692 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10693 ac_cpp='$CPP $CPPFLAGS'
10694 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10695 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10696 cross_compiling=$ac_cv_prog_cc_cross
10697
10698 fi
10699
10700
10701
10702 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
10703 echo "configure:10704: checking if C++ compiler supports bool" >&5
10704 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
10705 echo $ac_n "(cached) $ac_c" 1>&6
10706 else
10707
10708
10709 ac_ext=C
10710 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10711 ac_cpp='$CXXCPP $CPPFLAGS'
10712 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10713 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10714 cross_compiling=$ac_cv_prog_cxx_cross
10715
10716
10717 cat > conftest.$ac_ext <<EOF
10718 #line 10719 "configure"
10719 #include "confdefs.h"
10720
10721
10722 int main() {
10723
10724 bool b = true;
10725
10726 return 0;
10727
10728 ; return 0; }
10729 EOF
10730 if { (eval echo configure:10731: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10731 rm -rf conftest*
10732
10733 wx_cv_cpp_bool=yes
10734
10735 else
10736 echo "configure: failed program was:" >&5
10737 cat conftest.$ac_ext >&5
10738 rm -rf conftest*
10739
10740 wx_cv_cpp_bool=no
10741
10742
10743 fi
10744 rm -f conftest*
10745
10746 ac_ext=c
10747 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10748 ac_cpp='$CPP $CPPFLAGS'
10749 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10750 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10751 cross_compiling=$ac_cv_prog_cc_cross
10752
10753
10754 fi
10755
10756 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
10757
10758 if test "$wx_cv_cpp_bool" = "yes"; then
10759 cat >> confdefs.h <<\EOF
10760 #define HAVE_BOOL 1
10761 EOF
10762
10763 fi
10764
10765
10766
10767 echo $ac_n "checking if C++ compiler supports the explicit keyword""... $ac_c" 1>&6
10768 echo "configure:10769: checking if C++ compiler supports the explicit keyword" >&5
10769 if eval "test \"`echo '$''{'wx_cv_explicit'+set}'`\" = set"; then
10770 echo $ac_n "(cached) $ac_c" 1>&6
10771 else
10772
10773
10774 ac_ext=C
10775 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10776 ac_cpp='$CXXCPP $CPPFLAGS'
10777 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10778 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10779 cross_compiling=$ac_cv_prog_cxx_cross
10780
10781
10782 cat > conftest.$ac_ext <<EOF
10783 #line 10784 "configure"
10784 #include "confdefs.h"
10785
10786 class Foo { public: explicit Foo(int) {} };
10787
10788 int main() {
10789
10790 return 0;
10791
10792 ; return 0; }
10793 EOF
10794 if { (eval echo configure:10795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10795 rm -rf conftest*
10796
10797 cat > conftest.$ac_ext <<EOF
10798 #line 10799 "configure"
10799 #include "confdefs.h"
10800
10801 class Foo { public: explicit Foo(int) {} };
10802 static void TakeFoo(const Foo& foo) { }
10803
10804 int main() {
10805
10806 TakeFoo(17);
10807 return 0;
10808
10809 ; return 0; }
10810 EOF
10811 if { (eval echo configure:10812: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10812 rm -rf conftest*
10813 wx_cv_explicit=no
10814 else
10815 echo "configure: failed program was:" >&5
10816 cat conftest.$ac_ext >&5
10817 rm -rf conftest*
10818 wx_cv_explicit=yes
10819
10820 fi
10821 rm -f conftest*
10822
10823 else
10824 echo "configure: failed program was:" >&5
10825 cat conftest.$ac_ext >&5
10826 rm -rf conftest*
10827 wx_cv_explicit=no
10828
10829 fi
10830 rm -f conftest*
10831
10832 ac_ext=c
10833 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
10834 ac_cpp='$CPP $CPPFLAGS'
10835 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
10836 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
10837 cross_compiling=$ac_cv_prog_cc_cross
10838
10839
10840 fi
10841
10842 echo "$ac_t""$wx_cv_explicit" 1>&6
10843
10844 if test "$wx_cv_explicit" = "yes"; then
10845 cat >> confdefs.h <<\EOF
10846 #define HAVE_EXPLICIT 1
10847 EOF
10848
10849 fi
10850
10851
10852
10853 SEARCH_INCLUDE="\
10854 /usr/local/include \
10855 \
10856 /usr/Motif-1.2/include \
10857 /usr/Motif-2.1/include \
10858 \
10859 /usr/include/Motif1.2 \
10860 /opt/xpm/include/X11 \
10861 /opt/GBxpm/include/ \
10862 /opt/GBxpm/X11/include/ \
10863 \
10864 /usr/Motif1.2/include \
10865 /usr/dt/include \
10866 /usr/openwin/include \
10867 \
10868 /usr/include/Xm \
10869 \
10870 /usr/X11R6/include \
10871 /usr/X11R6.4/include \
10872 /usr/X11R5/include \
10873 /usr/X11R4/include \
10874 \
10875 /usr/include/X11R6 \
10876 /usr/include/X11R5 \
10877 /usr/include/X11R4 \
10878 \
10879 /usr/local/X11R6/include \
10880 /usr/local/X11R5/include \
10881 /usr/local/X11R4/include \
10882 \
10883 /usr/local/include/X11R6 \
10884 /usr/local/include/X11R5 \
10885 /usr/local/include/X11R4 \
10886 \
10887 /usr/X11/include \
10888 /usr/include/X11 \
10889 /usr/local/X11/include \
10890 /usr/local/include/X11 \
10891 \
10892 /usr/X386/include \
10893 /usr/x386/include \
10894 /usr/XFree86/include/X11 \
10895 \
10896 X:/XFree86/include \
10897 X:/XFree86/include/X11 \
10898 \
10899 /usr/include/gtk \
10900 /usr/local/include/gtk \
10901 /usr/include/glib \
10902 /usr/local/include/glib \
10903 \
10904 /usr/include/qt \
10905 /usr/local/include/qt \
10906 \
10907 /usr/include/windows \
10908 /usr/include/wine \
10909 /usr/local/include/wine \
10910 \
10911 /usr/unsupported/include \
10912 /usr/athena/include \
10913 /usr/local/x11r5/include \
10914 /usr/lpp/Xamples/include \
10915 \
10916 /usr/openwin/share/include \
10917 \
10918 /usr/include"
10919
10920 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
10921
10922
10923 cat > confcache <<\EOF
10924 # This file is a shell script that caches the results of configure
10925 # tests run on this system so they can be shared between configure
10926 # scripts and configure runs. It is not useful on other systems.
10927 # If it contains results you don't want to keep, you may remove or edit it.
10928 #
10929 # By default, configure uses ./config.cache as the cache file,
10930 # creating it if it does not exist already. You can give configure
10931 # the --cache-file=FILE option to use a different cache file; that is
10932 # what configure does when it calls configure scripts in
10933 # subdirectories, so they share the cache.
10934 # Giving --cache-file=/dev/null disables caching, for debugging configure.
10935 # config.status only pays attention to the cache file if you give it the
10936 # --recheck option to rerun configure.
10937 #
10938 EOF
10939 # The following way of writing the cache mishandles newlines in values,
10940 # but we know of no workaround that is simple, portable, and efficient.
10941 # So, don't put newlines in cache variables' values.
10942 # Ultrix sh set writes to stderr and can't be redirected directly,
10943 # and sets the high bit in the cache file unless we assign to the vars.
10944 (set) 2>&1 |
10945 case `(ac_space=' '; set | grep ac_space) 2>&1` in
10946 *ac_space=\ *)
10947 # `set' does not quote correctly, so add quotes (double-quote substitution
10948 # turns \\\\ into \\, and sed turns \\ into \).
10949 sed -n \
10950 -e "s/'/'\\\\''/g" \
10951 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
10952 ;;
10953 *)
10954 # `set' quotes correctly as required by POSIX, so do not add quotes.
10955 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
10956 ;;
10957 esac >> confcache
10958 if cmp -s $cache_file confcache; then
10959 :
10960 else
10961 if test -w $cache_file; then
10962 echo "updating cache $cache_file"
10963 cat confcache > $cache_file
10964 else
10965 echo "not updating unwritable cache $cache_file"
10966 fi
10967 fi
10968 rm -f confcache
10969
10970
10971 if test "$USE_LINUX" = 1; then
10972 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
10973 echo "configure:10974: checking for glibc 2.1 or later" >&5
10974 if eval "test \"`echo '$''{'wx_cv_lib_glibc21'+set}'`\" = set"; then
10975 echo $ac_n "(cached) $ac_c" 1>&6
10976 else
10977
10978 cat > conftest.$ac_ext <<EOF
10979 #line 10980 "configure"
10980 #include "confdefs.h"
10981 #include <features.h>
10982 int main() {
10983
10984 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
10985 #error not glibc2.1
10986 #endif
10987
10988 ; return 0; }
10989 EOF
10990 if { (eval echo configure:10991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10991 rm -rf conftest*
10992
10993 wx_cv_lib_glibc21=yes
10994
10995 else
10996 echo "configure: failed program was:" >&5
10997 cat conftest.$ac_ext >&5
10998 rm -rf conftest*
10999
11000 wx_cv_lib_glibc21=no
11001
11002
11003 fi
11004 rm -f conftest*
11005
11006 fi
11007
11008 echo "$ac_t""$wx_cv_lib_glibc21" 1>&6
11009 if test "$wx_cv_lib_glibc21" = "yes"; then
11010 cat >> confdefs.h <<\EOF
11011 #define wxHAVE_GLIBC2 1
11012 EOF
11013
11014 fi
11015 fi
11016
11017
11018
11019 REGEX_INCLUDE=
11020 if test "$wxUSE_REGEX" != "no"; then
11021 cat >> confdefs.h <<\EOF
11022 #define wxUSE_REGEX 1
11023 EOF
11024
11025
11026 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
11027 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
11028 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
11029 echo "configure:11030: checking for regex.h" >&5
11030 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11031 echo $ac_n "(cached) $ac_c" 1>&6
11032 else
11033 cat > conftest.$ac_ext <<EOF
11034 #line 11035 "configure"
11035 #include "confdefs.h"
11036 #include <regex.h>
11037 EOF
11038 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11039 { (eval echo configure:11040: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11040 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11041 if test -z "$ac_err"; then
11042 rm -rf conftest*
11043 eval "ac_cv_header_$ac_safe=yes"
11044 else
11045 echo "$ac_err" >&5
11046 echo "configure: failed program was:" >&5
11047 cat conftest.$ac_ext >&5
11048 rm -rf conftest*
11049 eval "ac_cv_header_$ac_safe=no"
11050 fi
11051 rm -f conftest*
11052 fi
11053 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11054 echo "$ac_t""yes" 1>&6
11055 for ac_func in regcomp
11056 do
11057 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
11058 echo "configure:11059: checking for $ac_func" >&5
11059 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
11060 echo $ac_n "(cached) $ac_c" 1>&6
11061 else
11062 cat > conftest.$ac_ext <<EOF
11063 #line 11064 "configure"
11064 #include "confdefs.h"
11065 /* System header to define __stub macros and hopefully few prototypes,
11066 which can conflict with char $ac_func(); below. */
11067 #include <assert.h>
11068 /* Override any gcc2 internal prototype to avoid an error. */
11069 /* We use char because int might match the return type of a gcc2
11070 builtin and then its argument prototype would still apply. */
11071 char $ac_func();
11072
11073 int main() {
11074
11075 /* The GNU C library defines this for functions which it implements
11076 to always fail with ENOSYS. Some functions are actually named
11077 something starting with __ and the normal name is an alias. */
11078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11079 choke me
11080 #else
11081 $ac_func();
11082 #endif
11083
11084 ; return 0; }
11085 EOF
11086 if { (eval echo configure:11087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11087 rm -rf conftest*
11088 eval "ac_cv_func_$ac_func=yes"
11089 else
11090 echo "configure: failed program was:" >&5
11091 cat conftest.$ac_ext >&5
11092 rm -rf conftest*
11093 eval "ac_cv_func_$ac_func=no"
11094 fi
11095 rm -f conftest*
11096 fi
11097
11098 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
11099 echo "$ac_t""yes" 1>&6
11100 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
11101 cat >> confdefs.h <<EOF
11102 #define $ac_tr_func 1
11103 EOF
11104
11105 else
11106 echo "$ac_t""no" 1>&6
11107 fi
11108 done
11109
11110 else
11111 echo "$ac_t""no" 1>&6
11112 fi
11113
11114
11115 if test "x$ac_cv_func_regcomp" != "xyes"; then
11116 if test "$wxUSE_REGEX" = "sys" ; then
11117 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
11118 else
11119 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
11120 wxUSE_REGEX=builtin
11121 fi
11122 else
11123 wxUSE_REGEX=sys
11124 fi
11125 fi
11126
11127 if test "$wxUSE_REGEX" = "builtin" ; then
11128 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
11129 fi
11130 fi
11131
11132
11133 ZLIB_INCLUDE=
11134 ZLIB_LINK=
11135 if test "$wxUSE_ZLIB" != "no" ; then
11136 cat >> confdefs.h <<\EOF
11137 #define wxUSE_ZLIB 1
11138 EOF
11139
11140
11141 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
11142 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
11143 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
11144 echo "configure:11145: checking for zlib.h" >&5
11145 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11146 echo $ac_n "(cached) $ac_c" 1>&6
11147 else
11148 cat > conftest.$ac_ext <<EOF
11149 #line 11150 "configure"
11150 #include "confdefs.h"
11151 #include <zlib.h>
11152 EOF
11153 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11154 { (eval echo configure:11155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11155 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11156 if test -z "$ac_err"; then
11157 rm -rf conftest*
11158 eval "ac_cv_header_$ac_safe=yes"
11159 else
11160 echo "$ac_err" >&5
11161 echo "configure: failed program was:" >&5
11162 cat conftest.$ac_ext >&5
11163 rm -rf conftest*
11164 eval "ac_cv_header_$ac_safe=no"
11165 fi
11166 rm -f conftest*
11167 fi
11168 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11169 echo "$ac_t""yes" 1>&6
11170 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
11171 echo "configure:11172: checking for deflate in -lz" >&5
11172 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
11173 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11174 echo $ac_n "(cached) $ac_c" 1>&6
11175 else
11176 ac_save_LIBS="$LIBS"
11177 LIBS="-lz $LIBS"
11178 cat > conftest.$ac_ext <<EOF
11179 #line 11180 "configure"
11180 #include "confdefs.h"
11181 /* Override any gcc2 internal prototype to avoid an error. */
11182 /* We use char because int might match the return type of a gcc2
11183 builtin and then its argument prototype would still apply. */
11184 char deflate();
11185
11186 int main() {
11187 deflate()
11188 ; return 0; }
11189 EOF
11190 if { (eval echo configure:11191: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11191 rm -rf conftest*
11192 eval "ac_cv_lib_$ac_lib_var=yes"
11193 else
11194 echo "configure: failed program was:" >&5
11195 cat conftest.$ac_ext >&5
11196 rm -rf conftest*
11197 eval "ac_cv_lib_$ac_lib_var=no"
11198 fi
11199 rm -f conftest*
11200 LIBS="$ac_save_LIBS"
11201
11202 fi
11203 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11204 echo "$ac_t""yes" 1>&6
11205 ZLIB_LINK=" -lz"
11206 else
11207 echo "$ac_t""no" 1>&6
11208 fi
11209
11210 else
11211 echo "$ac_t""no" 1>&6
11212 fi
11213
11214
11215 if test "x$ZLIB_LINK" = "x" ; then
11216 if test "$wxUSE_ZLIB" = "sys" ; then
11217 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
11218 else
11219 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
11220 wxUSE_ZLIB=builtin
11221 fi
11222 else
11223 wxUSE_ZLIB=sys
11224 fi
11225 fi
11226
11227 if test "$wxUSE_ZLIB" = "builtin" ; then
11228 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
11229 fi
11230 fi
11231
11232
11233 PNG_INCLUDE=
11234 PNG_LINK=
11235 if test "$wxUSE_LIBPNG" != "no" ; then
11236 cat >> confdefs.h <<\EOF
11237 #define wxUSE_LIBPNG 1
11238 EOF
11239
11240
11241 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
11242 echo "configure: warning: wxMGL doesn't work with builtin png library, will use MGL one instead" 1>&2
11243 wxUSE_LIBPNG=sys
11244 fi
11245
11246 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
11247 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
11248 wxUSE_LIBPNG=builtin
11249 fi
11250
11251 if test "$wxUSE_MGL" != 1 ; then
11252 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
11253 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
11254 echo $ac_n "checking for png.h""... $ac_c" 1>&6
11255 echo "configure:11256: checking for png.h" >&5
11256 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11257 echo $ac_n "(cached) $ac_c" 1>&6
11258 else
11259 cat > conftest.$ac_ext <<EOF
11260 #line 11261 "configure"
11261 #include "confdefs.h"
11262 #include <png.h>
11263 EOF
11264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11265 { (eval echo configure:11266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11267 if test -z "$ac_err"; then
11268 rm -rf conftest*
11269 eval "ac_cv_header_$ac_safe=yes"
11270 else
11271 echo "$ac_err" >&5
11272 echo "configure: failed program was:" >&5
11273 cat conftest.$ac_ext >&5
11274 rm -rf conftest*
11275 eval "ac_cv_header_$ac_safe=no"
11276 fi
11277 rm -f conftest*
11278 fi
11279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11280 echo "$ac_t""yes" 1>&6
11281 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
11282 echo "configure:11283: checking for png_check_sig in -lpng" >&5
11283 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
11284 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11285 echo $ac_n "(cached) $ac_c" 1>&6
11286 else
11287 ac_save_LIBS="$LIBS"
11288 LIBS="-lpng -lz -lm $LIBS"
11289 cat > conftest.$ac_ext <<EOF
11290 #line 11291 "configure"
11291 #include "confdefs.h"
11292 /* Override any gcc2 internal prototype to avoid an error. */
11293 /* We use char because int might match the return type of a gcc2
11294 builtin and then its argument prototype would still apply. */
11295 char png_check_sig();
11296
11297 int main() {
11298 png_check_sig()
11299 ; return 0; }
11300 EOF
11301 if { (eval echo configure:11302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11302 rm -rf conftest*
11303 eval "ac_cv_lib_$ac_lib_var=yes"
11304 else
11305 echo "configure: failed program was:" >&5
11306 cat conftest.$ac_ext >&5
11307 rm -rf conftest*
11308 eval "ac_cv_lib_$ac_lib_var=no"
11309 fi
11310 rm -f conftest*
11311 LIBS="$ac_save_LIBS"
11312
11313 fi
11314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11315 echo "$ac_t""yes" 1>&6
11316 PNG_LINK=" -lpng"
11317 else
11318 echo "$ac_t""no" 1>&6
11319 fi
11320
11321
11322 else
11323 echo "$ac_t""no" 1>&6
11324 fi
11325
11326
11327 if test "x$PNG_LINK" = "x" ; then
11328 if test "$wxUSE_LIBPNG" = "sys" ; then
11329 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
11330 else
11331 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
11332 wxUSE_LIBPNG=builtin
11333 fi
11334 else
11335 wxUSE_LIBPNG=yes
11336 fi
11337 fi
11338 fi
11339
11340 if test "$wxUSE_LIBPNG" = "builtin" ; then
11341 PNG_INCLUDE="-I\${top_srcdir}/src/png"
11342 fi
11343
11344 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
11345 fi
11346
11347
11348 JPEG_INCLUDE=
11349 JPEG_LINK=
11350 if test "$wxUSE_LIBJPEG" != "no" ; then
11351 cat >> confdefs.h <<\EOF
11352 #define wxUSE_LIBJPEG 1
11353 EOF
11354
11355
11356 if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
11357 echo "configure: warning: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" 1>&2
11358 wxUSE_LIBJPEG=sys
11359 fi
11360
11361 if test "$wxUSE_MGL" != 1 ; then
11362 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
11363 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
11364 echo "configure:11365: checking for jpeglib.h" >&5
11365 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
11366 echo $ac_n "(cached) $ac_c" 1>&6
11367 else
11368 cat > conftest.$ac_ext <<EOF
11369 #line 11370 "configure"
11370 #include "confdefs.h"
11371
11372 #undef HAVE_STDLIB_H
11373 #include <stdio.h>
11374 #include <jpeglib.h>
11375
11376 int main() {
11377
11378
11379 ; return 0; }
11380 EOF
11381 if { (eval echo configure:11382: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11382 rm -rf conftest*
11383 ac_cv_header_jpeglib_h=yes
11384 else
11385 echo "configure: failed program was:" >&5
11386 cat conftest.$ac_ext >&5
11387 rm -rf conftest*
11388 ac_cv_header_jpeglib_h=no
11389
11390 fi
11391 rm -f conftest*
11392
11393 fi
11394
11395 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
11396
11397 if test "$ac_cv_header_jpeglib_h" = "yes"; then
11398 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
11399 echo "configure:11400: checking for jpeg_read_header in -ljpeg" >&5
11400 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
11401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11402 echo $ac_n "(cached) $ac_c" 1>&6
11403 else
11404 ac_save_LIBS="$LIBS"
11405 LIBS="-ljpeg $LIBS"
11406 cat > conftest.$ac_ext <<EOF
11407 #line 11408 "configure"
11408 #include "confdefs.h"
11409 /* Override any gcc2 internal prototype to avoid an error. */
11410 /* We use char because int might match the return type of a gcc2
11411 builtin and then its argument prototype would still apply. */
11412 char jpeg_read_header();
11413
11414 int main() {
11415 jpeg_read_header()
11416 ; return 0; }
11417 EOF
11418 if { (eval echo configure:11419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11419 rm -rf conftest*
11420 eval "ac_cv_lib_$ac_lib_var=yes"
11421 else
11422 echo "configure: failed program was:" >&5
11423 cat conftest.$ac_ext >&5
11424 rm -rf conftest*
11425 eval "ac_cv_lib_$ac_lib_var=no"
11426 fi
11427 rm -f conftest*
11428 LIBS="$ac_save_LIBS"
11429
11430 fi
11431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11432 echo "$ac_t""yes" 1>&6
11433 JPEG_LINK=" -ljpeg"
11434 else
11435 echo "$ac_t""no" 1>&6
11436 fi
11437
11438 fi
11439
11440 if test "x$JPEG_LINK" = "x" ; then
11441 if test "$wxUSE_LIBJPEG" = "sys" ; then
11442 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
11443 else
11444 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
11445 wxUSE_LIBJPEG=builtin
11446 fi
11447 else
11448 wxUSE_LIBJPEG=sys
11449 fi
11450 fi
11451 fi
11452
11453 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11454 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
11455 fi
11456 fi
11457
11458
11459 TIFF_INCLUDE=
11460 TIFF_LINK=
11461 if test "$wxUSE_LIBTIFF" != "no" ; then
11462 cat >> confdefs.h <<\EOF
11463 #define wxUSE_LIBTIFF 1
11464 EOF
11465
11466
11467 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
11468 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
11469 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
11470 echo "configure:11471: checking for tiffio.h" >&5
11471 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11472 echo $ac_n "(cached) $ac_c" 1>&6
11473 else
11474 cat > conftest.$ac_ext <<EOF
11475 #line 11476 "configure"
11476 #include "confdefs.h"
11477 #include <tiffio.h>
11478 EOF
11479 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11480 { (eval echo configure:11481: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11481 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11482 if test -z "$ac_err"; then
11483 rm -rf conftest*
11484 eval "ac_cv_header_$ac_safe=yes"
11485 else
11486 echo "$ac_err" >&5
11487 echo "configure: failed program was:" >&5
11488 cat conftest.$ac_ext >&5
11489 rm -rf conftest*
11490 eval "ac_cv_header_$ac_safe=no"
11491 fi
11492 rm -f conftest*
11493 fi
11494 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11495 echo "$ac_t""yes" 1>&6
11496 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
11497 echo "configure:11498: checking for TIFFError in -ltiff" >&5
11498 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
11499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11500 echo $ac_n "(cached) $ac_c" 1>&6
11501 else
11502 ac_save_LIBS="$LIBS"
11503 LIBS="-ltiff -lm $LIBS"
11504 cat > conftest.$ac_ext <<EOF
11505 #line 11506 "configure"
11506 #include "confdefs.h"
11507 /* Override any gcc2 internal prototype to avoid an error. */
11508 /* We use char because int might match the return type of a gcc2
11509 builtin and then its argument prototype would still apply. */
11510 char TIFFError();
11511
11512 int main() {
11513 TIFFError()
11514 ; return 0; }
11515 EOF
11516 if { (eval echo configure:11517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11517 rm -rf conftest*
11518 eval "ac_cv_lib_$ac_lib_var=yes"
11519 else
11520 echo "configure: failed program was:" >&5
11521 cat conftest.$ac_ext >&5
11522 rm -rf conftest*
11523 eval "ac_cv_lib_$ac_lib_var=no"
11524 fi
11525 rm -f conftest*
11526 LIBS="$ac_save_LIBS"
11527
11528 fi
11529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11530 echo "$ac_t""yes" 1>&6
11531 TIFF_LINK=" -ltiff"
11532 else
11533 echo "$ac_t""no" 1>&6
11534 fi
11535
11536
11537 else
11538 echo "$ac_t""no" 1>&6
11539 fi
11540
11541
11542 if test "x$TIFF_LINK" = "x" ; then
11543 if test "$wxUSE_LIBTIFF" = "sys" ; then
11544 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
11545 else
11546 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
11547 wxUSE_LIBTIFF=builtin
11548 fi
11549 else
11550 wxUSE_LIBTIFF=sys
11551 fi
11552 fi
11553
11554 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11555 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
11556 fi
11557 fi
11558
11559
11560 AFMINSTALL=
11561
11562 TOOLKIT=
11563 TOOLKIT_INCLUDE=
11564 WIDGET_SET=
11565
11566 if test "$USE_WIN32" = 1 ; then
11567 for ac_hdr in w32api.h
11568 do
11569 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11570 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11571 echo "configure:11572: checking for $ac_hdr" >&5
11572 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11573 echo $ac_n "(cached) $ac_c" 1>&6
11574 else
11575 cat > conftest.$ac_ext <<EOF
11576 #line 11577 "configure"
11577 #include "confdefs.h"
11578 #include <$ac_hdr>
11579 EOF
11580 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11581 { (eval echo configure:11582: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11582 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11583 if test -z "$ac_err"; then
11584 rm -rf conftest*
11585 eval "ac_cv_header_$ac_safe=yes"
11586 else
11587 echo "$ac_err" >&5
11588 echo "configure: failed program was:" >&5
11589 cat conftest.$ac_ext >&5
11590 rm -rf conftest*
11591 eval "ac_cv_header_$ac_safe=no"
11592 fi
11593 rm -f conftest*
11594 fi
11595 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11596 echo "$ac_t""yes" 1>&6
11597 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11598 cat >> confdefs.h <<EOF
11599 #define $ac_tr_hdr 1
11600 EOF
11601
11602 else
11603 echo "$ac_t""no" 1>&6
11604 fi
11605 done
11606
11607 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11608 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
11609 echo "configure:11610: checking for windows.h" >&5
11610 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11611 echo $ac_n "(cached) $ac_c" 1>&6
11612 else
11613 cat > conftest.$ac_ext <<EOF
11614 #line 11615 "configure"
11615 #include "confdefs.h"
11616 #include <windows.h>
11617 EOF
11618 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11619 { (eval echo configure:11620: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11620 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11621 if test -z "$ac_err"; then
11622 rm -rf conftest*
11623 eval "ac_cv_header_$ac_safe=yes"
11624 else
11625 echo "$ac_err" >&5
11626 echo "configure: failed program was:" >&5
11627 cat conftest.$ac_ext >&5
11628 rm -rf conftest*
11629 eval "ac_cv_header_$ac_safe=no"
11630 fi
11631 rm -f conftest*
11632 fi
11633 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11634 echo "$ac_t""yes" 1>&6
11635 :
11636 else
11637 echo "$ac_t""no" 1>&6
11638
11639 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11640
11641 fi
11642
11643
11644 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
11645 echo "configure:11646: checking if w32api has good enough MSIE support" >&5
11646 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
11647 echo $ac_n "(cached) $ac_c" 1>&6
11648 else
11649
11650 cat > conftest.$ac_ext <<EOF
11651 #line 11652 "configure"
11652 #include "confdefs.h"
11653 #include <w32api.h>
11654 int main() {
11655
11656 #define wxCHECK_W32API_VERSION( major, minor ) \
11657 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
11658 && ( ( __W32API_MAJOR_VERSION > (major) ) \
11659 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
11660
11661 #if !wxCHECK_W32API_VERSION(1,1)
11662 #error You need w32api 1.1 or newer
11663 #endif
11664
11665 ; return 0; }
11666 EOF
11667 if { (eval echo configure:11668: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11668 rm -rf conftest*
11669
11670 wx_cv_w32api_win32_ie=yes
11671
11672 else
11673 echo "configure: failed program was:" >&5
11674 cat conftest.$ac_ext >&5
11675 rm -rf conftest*
11676
11677 wx_cv_w32api_win32_ie=no
11678
11679 fi
11680 rm -f conftest*
11681
11682 fi
11683
11684 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
11685 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
11686 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
11687 fi
11688
11689 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
11690
11691 case "${host}" in
11692 *-*-cygwin* )
11693 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
11694 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11695 esac
11696
11697 if test "$wxUSE_ODBC" = "yes" ; then
11698 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
11699 fi
11700
11701 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
11702 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
11703 fi
11704
11705 if test "$wxUSE_GUI" = "yes"; then
11706 USE_GUI=1
11707
11708 GUI_TK_LIBRARY=
11709
11710 WXGTK12=
11711 WXGTK127=
11712 WXGTK20=
11713
11714 if test "$wxUSE_MSW" = 1 ; then
11715 TOOLKIT=MSW
11716 GUIDIST=MSW_DIST
11717
11718 case "${host}" in
11719 *-*-mingw32* )
11720 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
11721 esac
11722 fi
11723
11724 if test "$wxUSE_GTK" = 1; then
11725 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
11726 echo "configure:11727: checking for GTK+ version" >&5
11727
11728 gtk_version_cached=1
11729 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
11730 echo $ac_n "(cached) $ac_c" 1>&6
11731 else
11732
11733 gtk_version_cached=0
11734 echo "$ac_t""" 1>&6
11735
11736 GTK_MODULES=
11737 if test "$wxUSE_THREADS" = "yes"; then
11738 GTK_MODULES=gthread
11739 fi
11740
11741 wx_cv_lib_gtk=
11742 if test "x$wxUSE_GTK2" = "xyes"; then
11743 # Check whether --enable-gtktest or --disable-gtktest was given.
11744 if test "${enable_gtktest+set}" = set; then
11745 enableval="$enable_gtktest"
11746 :
11747 else
11748 enable_gtktest=yes
11749 fi
11750
11751
11752 pkg_config_args=gtk+-2.0
11753 for module in . $GTK_MODULES
11754 do
11755 case "$module" in
11756 gthread)
11757 pkg_config_args="$pkg_config_args gthread-2.0"
11758 ;;
11759 esac
11760 done
11761
11762 no_gtk=""
11763
11764 # Extract the first word of "pkg-config", so it can be a program name with args.
11765 set dummy pkg-config; ac_word=$2
11766 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11767 echo "configure:11768: checking for $ac_word" >&5
11768 if eval "test \"`echo '$''{'ac_cv_path_PKG_CONFIG'+set}'`\" = set"; then
11769 echo $ac_n "(cached) $ac_c" 1>&6
11770 else
11771 case "$PKG_CONFIG" in
11772 /*)
11773 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11774 ;;
11775 ?:/*)
11776 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a dos path.
11777 ;;
11778 *)
11779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11780 ac_dummy="$PATH"
11781 for ac_dir in $ac_dummy; do
11782 test -z "$ac_dir" && ac_dir=.
11783 if test -f $ac_dir/$ac_word; then
11784 ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
11785 break
11786 fi
11787 done
11788 IFS="$ac_save_ifs"
11789 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11790 ;;
11791 esac
11792 fi
11793 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11794 if test -n "$PKG_CONFIG"; then
11795 echo "$ac_t""$PKG_CONFIG" 1>&6
11796 else
11797 echo "$ac_t""no" 1>&6
11798 fi
11799
11800
11801 if test x$PKG_CONFIG != xno ; then
11802 if pkg-config --atleast-pkgconfig-version 0.7 ; then
11803 :
11804 else
11805 echo *** pkg-config too old; version 0.7 or better required.
11806 no_gtk=yes
11807 PKG_CONFIG=no
11808 fi
11809 else
11810 no_gtk=yes
11811 fi
11812
11813 min_gtk_version=2.0.0
11814 echo $ac_n "checking for GTK+ - version >= $min_gtk_version""... $ac_c" 1>&6
11815 echo "configure:11816: checking for GTK+ - version >= $min_gtk_version" >&5
11816
11817 if test x$PKG_CONFIG != xno ; then
11818 ## don't try to run the test against uninstalled libtool libs
11819 if $PKG_CONFIG --uninstalled $pkg_config_args; then
11820 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
11821 enable_gtktest=no
11822 fi
11823
11824 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
11825 :
11826 else
11827 no_gtk=yes
11828 fi
11829 fi
11830
11831 if test x"$no_gtk" = x ; then
11832 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
11833 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
11834 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11835 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11836 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11837 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11838 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
11839 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11840 if test "x$enable_gtktest" = "xyes" ; then
11841 ac_save_CFLAGS="$CFLAGS"
11842 ac_save_LIBS="$LIBS"
11843 CFLAGS="$CFLAGS $GTK_CFLAGS"
11844 LIBS="$GTK_LIBS $LIBS"
11845 rm -f conf.gtktest
11846 if test "$cross_compiling" = yes; then
11847 echo $ac_n "cross compiling; assumed OK... $ac_c"
11848 else
11849 cat > conftest.$ac_ext <<EOF
11850 #line 11851 "configure"
11851 #include "confdefs.h"
11852
11853 #include <gtk/gtk.h>
11854 #include <stdio.h>
11855 #include <stdlib.h>
11856
11857 int
11858 main ()
11859 {
11860 int major, minor, micro;
11861 char *tmp_version;
11862
11863 system ("touch conf.gtktest");
11864
11865 /* HP/UX 9 (%@#!) writes to sscanf strings */
11866 tmp_version = g_strdup("$min_gtk_version");
11867 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11868 printf("%s, bad version string\n", "$min_gtk_version");
11869 exit(1);
11870 }
11871
11872 if ((gtk_major_version != $gtk_config_major_version) ||
11873 (gtk_minor_version != $gtk_config_minor_version) ||
11874 (gtk_micro_version != $gtk_config_micro_version))
11875 {
11876 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11877 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11878 gtk_major_version, gtk_minor_version, gtk_micro_version);
11879 printf ("*** was found! If pkg-config was correct, then it is best\n");
11880 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11881 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11882 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11883 printf("*** required on your system.\n");
11884 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
11885 printf("*** to point to the correct configuration files\n");
11886 }
11887 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11888 (gtk_minor_version != GTK_MINOR_VERSION) ||
11889 (gtk_micro_version != GTK_MICRO_VERSION))
11890 {
11891 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11892 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11893 printf("*** library (version %d.%d.%d)\n",
11894 gtk_major_version, gtk_minor_version, gtk_micro_version);
11895 }
11896 else
11897 {
11898 if ((gtk_major_version > major) ||
11899 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11900 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11901 {
11902 return 0;
11903 }
11904 else
11905 {
11906 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11907 gtk_major_version, gtk_minor_version, gtk_micro_version);
11908 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11909 major, minor, micro);
11910 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11911 printf("***\n");
11912 printf("*** If you have already installed a sufficiently new version, this error\n");
11913 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
11914 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11915 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
11916 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
11917 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11918 printf("*** so that the correct libraries are found at run-time))\n");
11919 }
11920 }
11921 return 1;
11922 }
11923
11924 EOF
11925 if { (eval echo configure:11926: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11926 then
11927 :
11928 else
11929 echo "configure: failed program was:" >&5
11930 cat conftest.$ac_ext >&5
11931 rm -fr conftest*
11932 no_gtk=yes
11933 fi
11934 rm -fr conftest*
11935 fi
11936
11937 CFLAGS="$ac_save_CFLAGS"
11938 LIBS="$ac_save_LIBS"
11939 fi
11940 fi
11941 if test "x$no_gtk" = x ; then
11942 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
11943 wx_cv_lib_gtk=2.0
11944 else
11945 echo "$ac_t""no" 1>&6
11946 if test "$PKG_CONFIG" = "no" ; then
11947 echo "*** A new enough version of pkg-config was not found."
11948 echo "*** See http://pkgconfig.sourceforge.net"
11949 else
11950 if test -f conf.gtktest ; then
11951 :
11952 else
11953 echo "*** Could not run GTK+ test program, checking why..."
11954 CFLAGS="$CFLAGS $GTK_CFLAGS"
11955 LIBS="$LIBS $GTK_LIBS"
11956 cat > conftest.$ac_ext <<EOF
11957 #line 11958 "configure"
11958 #include "confdefs.h"
11959
11960 #include <gtk/gtk.h>
11961 #include <stdio.h>
11962
11963 int main() {
11964 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11965 ; return 0; }
11966 EOF
11967 if { (eval echo configure:11968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11968 rm -rf conftest*
11969 echo "*** The test program compiled, but did not run. This usually means"
11970 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
11971 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
11972 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11973 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11974 echo "*** is required on your system"
11975 echo "***"
11976 echo "*** If you have an old version installed, it is best to remove it, although"
11977 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11978 else
11979 echo "configure: failed program was:" >&5
11980 cat conftest.$ac_ext >&5
11981 rm -rf conftest*
11982 echo "*** The test program failed to compile or link. See the file config.log for the"
11983 echo "*** exact error that occured. This usually means GTK+ was incorrectly installed"
11984 echo "*** or that you have moved GTK+ since it was installed. In the latter case, you"
11985 echo "*** may want to edit the pkg-config script: $PKG_CONFIG"
11986 fi
11987 rm -f conftest*
11988 CFLAGS="$ac_save_CFLAGS"
11989 LIBS="$ac_save_LIBS"
11990 fi
11991 fi
11992 GTK_CFLAGS=""
11993 GTK_LIBS=""
11994 :
11995 fi
11996
11997
11998 rm -f conf.gtktest
11999
12000 fi
12001
12002 if test -z "$wx_cv_lib_gtk"; then
12003 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12004 if test "${with_gtk_prefix+set}" = set; then
12005 withval="$with_gtk_prefix"
12006 gtk_config_prefix="$withval"
12007 else
12008 gtk_config_prefix=""
12009 fi
12010
12011 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12012 if test "${with_gtk_exec_prefix+set}" = set; then
12013 withval="$with_gtk_exec_prefix"
12014 gtk_config_exec_prefix="$withval"
12015 else
12016 gtk_config_exec_prefix=""
12017 fi
12018
12019 # Check whether --enable-gtktest or --disable-gtktest was given.
12020 if test "${enable_gtktest+set}" = set; then
12021 enableval="$enable_gtktest"
12022 :
12023 else
12024 enable_gtktest=yes
12025 fi
12026
12027
12028 for module in . $GTK_MODULES
12029 do
12030 case "$module" in
12031 gthread)
12032 gtk_config_args="$gtk_config_args gthread"
12033 ;;
12034 esac
12035 done
12036
12037 if test x$gtk_config_exec_prefix != x ; then
12038 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12039 if test x${GTK_CONFIG+set} != xset ; then
12040 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12041 fi
12042 fi
12043 if test x$gtk_config_prefix != x ; then
12044 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12045 if test x${GTK_CONFIG+set} != xset ; then
12046 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12047 fi
12048 fi
12049
12050 # Extract the first word of "gtk-config", so it can be a program name with args.
12051 set dummy gtk-config; ac_word=$2
12052 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12053 echo "configure:12054: checking for $ac_word" >&5
12054 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12055 echo $ac_n "(cached) $ac_c" 1>&6
12056 else
12057 case "$GTK_CONFIG" in
12058 /*)
12059 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12060 ;;
12061 ?:/*)
12062 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12063 ;;
12064 *)
12065 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12066 ac_dummy="$PATH"
12067 for ac_dir in $ac_dummy; do
12068 test -z "$ac_dir" && ac_dir=.
12069 if test -f $ac_dir/$ac_word; then
12070 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12071 break
12072 fi
12073 done
12074 IFS="$ac_save_ifs"
12075 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12076 ;;
12077 esac
12078 fi
12079 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12080 if test -n "$GTK_CONFIG"; then
12081 echo "$ac_t""$GTK_CONFIG" 1>&6
12082 else
12083 echo "$ac_t""no" 1>&6
12084 fi
12085
12086 min_gtk_version=1.2.7
12087 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12088 echo "configure:12089: checking for GTK - version >= $min_gtk_version" >&5
12089 no_gtk=""
12090 if test "$GTK_CONFIG" = "no" ; then
12091 no_gtk=yes
12092 else
12093 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12094 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12095 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12096 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12097 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12098 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12099 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12100 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12101 if test "x$enable_gtktest" = "xyes" ; then
12102 ac_save_CFLAGS="$CFLAGS"
12103 ac_save_LIBS="$LIBS"
12104 CFLAGS="$CFLAGS $GTK_CFLAGS"
12105 LIBS="$GTK_LIBS $LIBS"
12106 rm -f conf.gtktest
12107 if test "$cross_compiling" = yes; then
12108 echo $ac_n "cross compiling; assumed OK... $ac_c"
12109 else
12110 cat > conftest.$ac_ext <<EOF
12111 #line 12112 "configure"
12112 #include "confdefs.h"
12113
12114 #include <gtk/gtk.h>
12115 #include <stdio.h>
12116 #include <stdlib.h>
12117
12118 int
12119 main ()
12120 {
12121 int major, minor, micro;
12122 char *tmp_version;
12123
12124 system ("touch conf.gtktest");
12125
12126 /* HP/UX 9 (%@#!) writes to sscanf strings */
12127 tmp_version = g_strdup("$min_gtk_version");
12128 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12129 printf("%s, bad version string\n", "$min_gtk_version");
12130 exit(1);
12131 }
12132
12133 if ((gtk_major_version != $gtk_config_major_version) ||
12134 (gtk_minor_version != $gtk_config_minor_version) ||
12135 (gtk_micro_version != $gtk_config_micro_version))
12136 {
12137 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12138 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12139 gtk_major_version, gtk_minor_version, gtk_micro_version);
12140 printf ("*** was found! If gtk-config was correct, then it is best\n");
12141 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12142 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12143 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12144 printf("*** required on your system.\n");
12145 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12146 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12147 printf("*** before re-running configure\n");
12148 }
12149 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12150 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12151 (gtk_minor_version != GTK_MINOR_VERSION) ||
12152 (gtk_micro_version != GTK_MICRO_VERSION))
12153 {
12154 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12155 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12156 printf("*** library (version %d.%d.%d)\n",
12157 gtk_major_version, gtk_minor_version, gtk_micro_version);
12158 }
12159 #endif /* defined (GTK_MAJOR_VERSION) ... */
12160 else
12161 {
12162 if ((gtk_major_version > major) ||
12163 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12164 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12165 {
12166 return 0;
12167 }
12168 else
12169 {
12170 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12171 gtk_major_version, gtk_minor_version, gtk_micro_version);
12172 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12173 major, minor, micro);
12174 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12175 printf("***\n");
12176 printf("*** If you have already installed a sufficiently new version, this error\n");
12177 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12178 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12179 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12180 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12181 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12182 printf("*** so that the correct libraries are found at run-time))\n");
12183 }
12184 }
12185 return 1;
12186 }
12187
12188 EOF
12189 if { (eval echo configure:12190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12190 then
12191 :
12192 else
12193 echo "configure: failed program was:" >&5
12194 cat conftest.$ac_ext >&5
12195 rm -fr conftest*
12196 no_gtk=yes
12197 fi
12198 rm -fr conftest*
12199 fi
12200
12201 CFLAGS="$ac_save_CFLAGS"
12202 LIBS="$ac_save_LIBS"
12203 fi
12204 fi
12205 if test "x$no_gtk" = x ; then
12206 echo "$ac_t""yes" 1>&6
12207 wx_cv_lib_gtk=1.2.7
12208 else
12209 echo "$ac_t""no" 1>&6
12210 if test "$GTK_CONFIG" = "no" ; then
12211 echo "*** The gtk-config script installed by GTK could not be found"
12212 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12213 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12214 echo "*** full path to gtk-config."
12215 else
12216 if test -f conf.gtktest ; then
12217 :
12218 else
12219 echo "*** Could not run GTK test program, checking why..."
12220 CFLAGS="$CFLAGS $GTK_CFLAGS"
12221 LIBS="$LIBS $GTK_LIBS"
12222 cat > conftest.$ac_ext <<EOF
12223 #line 12224 "configure"
12224 #include "confdefs.h"
12225
12226 #include <gtk/gtk.h>
12227 #include <stdio.h>
12228
12229 int main() {
12230 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12231 ; return 0; }
12232 EOF
12233 if { (eval echo configure:12234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12234 rm -rf conftest*
12235 echo "*** The test program compiled, but did not run. This usually means"
12236 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12237 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12238 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12239 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12240 echo "*** is required on your system"
12241 echo "***"
12242 echo "*** If you have an old version installed, it is best to remove it, although"
12243 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12244 echo "***"
12245 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12246 echo "*** came with the system with the command"
12247 echo "***"
12248 echo "*** rpm --erase --nodeps gtk gtk-devel"
12249 else
12250 echo "configure: failed program was:" >&5
12251 cat conftest.$ac_ext >&5
12252 rm -rf conftest*
12253 echo "*** The test program failed to compile or link. See the file config.log for the"
12254 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12255 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12256 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12257 fi
12258 rm -f conftest*
12259 CFLAGS="$ac_save_CFLAGS"
12260 LIBS="$ac_save_LIBS"
12261 fi
12262 fi
12263 GTK_CFLAGS=""
12264 GTK_LIBS=""
12265 :
12266 fi
12267
12268
12269 rm -f conf.gtktest
12270
12271 fi
12272
12273 if test -z "$wx_cv_lib_gtk"; then
12274 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
12275 if test "${with_gtk_prefix+set}" = set; then
12276 withval="$with_gtk_prefix"
12277 gtk_config_prefix="$withval"
12278 else
12279 gtk_config_prefix=""
12280 fi
12281
12282 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
12283 if test "${with_gtk_exec_prefix+set}" = set; then
12284 withval="$with_gtk_exec_prefix"
12285 gtk_config_exec_prefix="$withval"
12286 else
12287 gtk_config_exec_prefix=""
12288 fi
12289
12290 # Check whether --enable-gtktest or --disable-gtktest was given.
12291 if test "${enable_gtktest+set}" = set; then
12292 enableval="$enable_gtktest"
12293 :
12294 else
12295 enable_gtktest=yes
12296 fi
12297
12298
12299 for module in . $GTK_MODULES
12300 do
12301 case "$module" in
12302 gthread)
12303 gtk_config_args="$gtk_config_args gthread"
12304 ;;
12305 esac
12306 done
12307
12308 if test x$gtk_config_exec_prefix != x ; then
12309 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
12310 if test x${GTK_CONFIG+set} != xset ; then
12311 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
12312 fi
12313 fi
12314 if test x$gtk_config_prefix != x ; then
12315 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
12316 if test x${GTK_CONFIG+set} != xset ; then
12317 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
12318 fi
12319 fi
12320
12321 # Extract the first word of "gtk-config", so it can be a program name with args.
12322 set dummy gtk-config; ac_word=$2
12323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12324 echo "configure:12325: checking for $ac_word" >&5
12325 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
12326 echo $ac_n "(cached) $ac_c" 1>&6
12327 else
12328 case "$GTK_CONFIG" in
12329 /*)
12330 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
12331 ;;
12332 ?:/*)
12333 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
12334 ;;
12335 *)
12336 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12337 ac_dummy="$PATH"
12338 for ac_dir in $ac_dummy; do
12339 test -z "$ac_dir" && ac_dir=.
12340 if test -f $ac_dir/$ac_word; then
12341 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
12342 break
12343 fi
12344 done
12345 IFS="$ac_save_ifs"
12346 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
12347 ;;
12348 esac
12349 fi
12350 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
12351 if test -n "$GTK_CONFIG"; then
12352 echo "$ac_t""$GTK_CONFIG" 1>&6
12353 else
12354 echo "$ac_t""no" 1>&6
12355 fi
12356
12357 min_gtk_version=1.2.3
12358 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
12359 echo "configure:12360: checking for GTK - version >= $min_gtk_version" >&5
12360 no_gtk=""
12361 if test "$GTK_CONFIG" = "no" ; then
12362 no_gtk=yes
12363 else
12364 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
12365 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
12366 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
12367 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12368 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
12369 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12370 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
12371 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12372 if test "x$enable_gtktest" = "xyes" ; then
12373 ac_save_CFLAGS="$CFLAGS"
12374 ac_save_LIBS="$LIBS"
12375 CFLAGS="$CFLAGS $GTK_CFLAGS"
12376 LIBS="$GTK_LIBS $LIBS"
12377 rm -f conf.gtktest
12378 if test "$cross_compiling" = yes; then
12379 echo $ac_n "cross compiling; assumed OK... $ac_c"
12380 else
12381 cat > conftest.$ac_ext <<EOF
12382 #line 12383 "configure"
12383 #include "confdefs.h"
12384
12385 #include <gtk/gtk.h>
12386 #include <stdio.h>
12387 #include <stdlib.h>
12388
12389 int
12390 main ()
12391 {
12392 int major, minor, micro;
12393 char *tmp_version;
12394
12395 system ("touch conf.gtktest");
12396
12397 /* HP/UX 9 (%@#!) writes to sscanf strings */
12398 tmp_version = g_strdup("$min_gtk_version");
12399 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12400 printf("%s, bad version string\n", "$min_gtk_version");
12401 exit(1);
12402 }
12403
12404 if ((gtk_major_version != $gtk_config_major_version) ||
12405 (gtk_minor_version != $gtk_config_minor_version) ||
12406 (gtk_micro_version != $gtk_config_micro_version))
12407 {
12408 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
12409 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
12410 gtk_major_version, gtk_minor_version, gtk_micro_version);
12411 printf ("*** was found! If gtk-config was correct, then it is best\n");
12412 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
12413 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12414 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12415 printf("*** required on your system.\n");
12416 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
12417 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
12418 printf("*** before re-running configure\n");
12419 }
12420 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
12421 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
12422 (gtk_minor_version != GTK_MINOR_VERSION) ||
12423 (gtk_micro_version != GTK_MICRO_VERSION))
12424 {
12425 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
12426 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
12427 printf("*** library (version %d.%d.%d)\n",
12428 gtk_major_version, gtk_minor_version, gtk_micro_version);
12429 }
12430 #endif /* defined (GTK_MAJOR_VERSION) ... */
12431 else
12432 {
12433 if ((gtk_major_version > major) ||
12434 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
12435 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
12436 {
12437 return 0;
12438 }
12439 else
12440 {
12441 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
12442 gtk_major_version, gtk_minor_version, gtk_micro_version);
12443 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
12444 major, minor, micro);
12445 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
12446 printf("***\n");
12447 printf("*** If you have already installed a sufficiently new version, this error\n");
12448 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
12449 printf("*** being found. The easiest way to fix this is to remove the old version\n");
12450 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
12451 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
12452 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12453 printf("*** so that the correct libraries are found at run-time))\n");
12454 }
12455 }
12456 return 1;
12457 }
12458
12459 EOF
12460 if { (eval echo configure:12461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12461 then
12462 :
12463 else
12464 echo "configure: failed program was:" >&5
12465 cat conftest.$ac_ext >&5
12466 rm -fr conftest*
12467 no_gtk=yes
12468 fi
12469 rm -fr conftest*
12470 fi
12471
12472 CFLAGS="$ac_save_CFLAGS"
12473 LIBS="$ac_save_LIBS"
12474 fi
12475 fi
12476 if test "x$no_gtk" = x ; then
12477 echo "$ac_t""yes" 1>&6
12478 wx_cv_lib_gtk=1.2.3
12479 else
12480 echo "$ac_t""no" 1>&6
12481 if test "$GTK_CONFIG" = "no" ; then
12482 echo "*** The gtk-config script installed by GTK could not be found"
12483 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
12484 echo "*** your path, or set the GTK_CONFIG environment variable to the"
12485 echo "*** full path to gtk-config."
12486 else
12487 if test -f conf.gtktest ; then
12488 :
12489 else
12490 echo "*** Could not run GTK test program, checking why..."
12491 CFLAGS="$CFLAGS $GTK_CFLAGS"
12492 LIBS="$LIBS $GTK_LIBS"
12493 cat > conftest.$ac_ext <<EOF
12494 #line 12495 "configure"
12495 #include "confdefs.h"
12496
12497 #include <gtk/gtk.h>
12498 #include <stdio.h>
12499
12500 int main() {
12501 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
12502 ; return 0; }
12503 EOF
12504 if { (eval echo configure:12505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12505 rm -rf conftest*
12506 echo "*** The test program compiled, but did not run. This usually means"
12507 echo "*** that the run-time linker is not finding GTK or finding the wrong"
12508 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
12509 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12510 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12511 echo "*** is required on your system"
12512 echo "***"
12513 echo "*** If you have an old version installed, it is best to remove it, although"
12514 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12515 echo "***"
12516 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
12517 echo "*** came with the system with the command"
12518 echo "***"
12519 echo "*** rpm --erase --nodeps gtk gtk-devel"
12520 else
12521 echo "configure: failed program was:" >&5
12522 cat conftest.$ac_ext >&5
12523 rm -rf conftest*
12524 echo "*** The test program failed to compile or link. See the file config.log for the"
12525 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
12526 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
12527 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
12528 fi
12529 rm -f conftest*
12530 CFLAGS="$ac_save_CFLAGS"
12531 LIBS="$ac_save_LIBS"
12532 fi
12533 fi
12534 GTK_CFLAGS=""
12535 GTK_LIBS=""
12536 :
12537 fi
12538
12539
12540 rm -f conf.gtktest
12541
12542 fi
12543
12544 if test -z "$wx_cv_lib_gtk"; then
12545 wx_cv_lib_gtk=none
12546 else
12547 wx_cv_cflags_gtk=$GTK_CFLAGS
12548 wx_cv_libs_gtk=$GTK_LIBS
12549 fi
12550
12551
12552 fi
12553
12554
12555 if test "$gtk_version_cached" = 1; then
12556 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
12557 fi
12558
12559 case "$wx_cv_lib_gtk" in
12560 2.0) WXGTK20=1
12561 ;;
12562 1.2.7) WXGTK127=1
12563 WXGTK12=1
12564 ;;
12565 1.2.3) WXGTK12=1
12566 ;;
12567 *) { echo "configure: error:
12568 Please check that gtk-config is in path, the directory
12569 where GTK+ libraries are installed (returned by
12570 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
12571 equivalent variable and GTK+ is version 1.2.3 or above.
12572 " 1>&2; exit 1; }
12573 ;;
12574 esac
12575
12576 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
12577 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
12578
12579 AFMINSTALL=afminstall
12580 TOOLKIT=GTK
12581 GUIDIST=GTK_DIST
12582
12583 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
12584 echo "configure:12585: checking for gdk_im_open in -lgdk" >&5
12585 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
12586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12587 echo $ac_n "(cached) $ac_c" 1>&6
12588 else
12589 ac_save_LIBS="$LIBS"
12590 LIBS="-lgdk $LIBS"
12591 cat > conftest.$ac_ext <<EOF
12592 #line 12593 "configure"
12593 #include "confdefs.h"
12594 /* Override any gcc2 internal prototype to avoid an error. */
12595 /* We use char because int might match the return type of a gcc2
12596 builtin and then its argument prototype would still apply. */
12597 char gdk_im_open();
12598
12599 int main() {
12600 gdk_im_open()
12601 ; return 0; }
12602 EOF
12603 if { (eval echo configure:12604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12604 rm -rf conftest*
12605 eval "ac_cv_lib_$ac_lib_var=yes"
12606 else
12607 echo "configure: failed program was:" >&5
12608 cat conftest.$ac_ext >&5
12609 rm -rf conftest*
12610 eval "ac_cv_lib_$ac_lib_var=no"
12611 fi
12612 rm -f conftest*
12613 LIBS="$ac_save_LIBS"
12614
12615 fi
12616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12617 echo "$ac_t""yes" 1>&6
12618 cat >> confdefs.h <<\EOF
12619 #define HAVE_XIM 1
12620 EOF
12621
12622 else
12623 echo "$ac_t""no" 1>&6
12624 fi
12625
12626 fi
12627
12628 if test "$wxUSE_MGL" = 1; then
12629 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
12630 echo "configure:12631: checking for SciTech MGL library" >&5
12631 if test "x$MGL_ROOT" = x ; then
12632 echo "$ac_t""not found" 1>&6
12633 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
12634 else
12635 echo "$ac_t""$MGL_ROOT" 1>&6
12636 fi
12637
12638 case "${host}" in
12639 *-*-linux* )
12640 mgl_os=linux/gcc/glibc
12641 ;;
12642 *-pc-msdosdjgpp )
12643 mgl_os=dos32/dj2
12644 ;;
12645 *)
12646 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
12647 esac
12648
12649 mgl_lib_type=""
12650
12651 if test "$wxUSE_DEBUG_FLAG" = yes ; then
12652 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
12653 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
12654 mgl_lib_type=debug
12655 fi
12656 fi
12657 if test "x$mgl_lib_type" = x ; then
12658 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
12659 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
12660 mgl_lib_type=release
12661 else
12662 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
12663 fi
12664 fi
12665
12666 wxUSE_UNIVERSAL="yes"
12667
12668 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
12669 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
12670
12671 AFMINSTALL=afminstall
12672 TOOLKIT=MGL
12673 GUIDIST=MGL_DIST
12674 fi
12675
12676 if test "$wxUSE_MICROWIN" = 1; then
12677 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
12678 echo "configure:12679: checking for MicroWindows" >&5
12679 if test "x$MICROWINDOWS" = x ; then
12680 echo "$ac_t""not found" 1>&6
12681 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
12682 else
12683 echo "$ac_t""$MICROWINDOWS" 1>&6
12684 fi
12685
12686 if test -f $MICROWINDOWS/lib/libmwin.a; then
12687 echo "$ac_t""MicroWindows' libraries found." 1>&6
12688 else
12689 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
12690 fi
12691
12692 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
12693 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
12694
12695 wxUSE_UNIVERSAL="yes"
12696
12697 AFMINSTALL=afminstall
12698 TOOLKIT=MICROWIN
12699 GUIDIST=MICROWIN_DIST
12700
12701 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
12702 fi
12703
12704 if test "$wxUSE_X11" = 1; then
12705 # If we find X, set shell vars x_includes and x_libraries to the
12706 # paths, otherwise set no_x=yes.
12707 # Uses ac_ vars as temps to allow command line to override cache and checks.
12708 # --without-x overrides everything else, but does not touch the cache.
12709 echo $ac_n "checking for X""... $ac_c" 1>&6
12710 echo "configure:12711: checking for X" >&5
12711
12712 # Check whether --with-x or --without-x was given.
12713 if test "${with_x+set}" = set; then
12714 withval="$with_x"
12715 :
12716 fi
12717
12718 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12719 if test "x$with_x" = xno; then
12720 # The user explicitly disabled X.
12721 have_x=disabled
12722 else
12723 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
12724 # Both variables are already set.
12725 have_x=yes
12726 else
12727 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
12728 echo $ac_n "(cached) $ac_c" 1>&6
12729 else
12730 # One or both of the vars are not set, and there is no cached value.
12731 ac_x_includes=NO ac_x_libraries=NO
12732 rm -fr conftestdir
12733 if mkdir conftestdir; then
12734 cd conftestdir
12735 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
12736 cat > Imakefile <<'EOF'
12737 acfindx:
12738 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
12739 EOF
12740 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
12741 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
12742 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
12743 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12744 for ac_extension in a so sl; do
12745 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
12746 test -f $ac_im_libdir/libX11.$ac_extension; then
12747 ac_im_usrlibdir=$ac_im_libdir; break
12748 fi
12749 done
12750 # Screen out bogus values from the imake configuration. They are
12751 # bogus both because they are the default anyway, and because
12752 # using them would break gcc on systems where it needs fixed includes.
12753 case "$ac_im_incroot" in
12754 /usr/include) ;;
12755 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
12756 esac
12757 case "$ac_im_usrlibdir" in
12758 /usr/lib | /lib) ;;
12759 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
12760 esac
12761 fi
12762 cd ..
12763 rm -fr conftestdir
12764 fi
12765
12766 if test "$ac_x_includes" = NO; then
12767 # Guess where to find include files, by looking for this one X11 .h file.
12768 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
12769
12770 # First, try using that file with no special directory specified.
12771 cat > conftest.$ac_ext <<EOF
12772 #line 12773 "configure"
12773 #include "confdefs.h"
12774 #include <$x_direct_test_include>
12775 EOF
12776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12777 { (eval echo configure:12778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12779 if test -z "$ac_err"; then
12780 rm -rf conftest*
12781 # We can compile using X headers with no special include directory.
12782 ac_x_includes=
12783 else
12784 echo "$ac_err" >&5
12785 echo "configure: failed program was:" >&5
12786 cat conftest.$ac_ext >&5
12787 rm -rf conftest*
12788 # Look for the header file in a standard set of common directories.
12789 # Check X11 before X11Rn because it is often a symlink to the current release.
12790 for ac_dir in \
12791 /usr/X11/include \
12792 /usr/X11R6/include \
12793 /usr/X11R5/include \
12794 /usr/X11R4/include \
12795 \
12796 /usr/include/X11 \
12797 /usr/include/X11R6 \
12798 /usr/include/X11R5 \
12799 /usr/include/X11R4 \
12800 \
12801 /usr/local/X11/include \
12802 /usr/local/X11R6/include \
12803 /usr/local/X11R5/include \
12804 /usr/local/X11R4/include \
12805 \
12806 /usr/local/include/X11 \
12807 /usr/local/include/X11R6 \
12808 /usr/local/include/X11R5 \
12809 /usr/local/include/X11R4 \
12810 \
12811 /usr/X386/include \
12812 /usr/x386/include \
12813 /usr/XFree86/include/X11 \
12814 \
12815 /usr/include \
12816 /usr/local/include \
12817 /usr/unsupported/include \
12818 /usr/athena/include \
12819 /usr/local/x11r5/include \
12820 /usr/lpp/Xamples/include \
12821 \
12822 /usr/openwin/include \
12823 /usr/openwin/share/include \
12824 ; \
12825 do
12826 if test -r "$ac_dir/$x_direct_test_include"; then
12827 ac_x_includes=$ac_dir
12828 break
12829 fi
12830 done
12831 fi
12832 rm -f conftest*
12833 fi # $ac_x_includes = NO
12834
12835 if test "$ac_x_libraries" = NO; then
12836 # Check for the libraries.
12837
12838 test -z "$x_direct_test_library" && x_direct_test_library=Xt
12839 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
12840
12841 # See if we find them without any special options.
12842 # Don't add to $LIBS permanently.
12843 ac_save_LIBS="$LIBS"
12844 LIBS="-l$x_direct_test_library $LIBS"
12845 cat > conftest.$ac_ext <<EOF
12846 #line 12847 "configure"
12847 #include "confdefs.h"
12848
12849 int main() {
12850 ${x_direct_test_function}()
12851 ; return 0; }
12852 EOF
12853 if { (eval echo configure:12854: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12854 rm -rf conftest*
12855 LIBS="$ac_save_LIBS"
12856 # We can link X programs with no special library path.
12857 ac_x_libraries=
12858 else
12859 echo "configure: failed program was:" >&5
12860 cat conftest.$ac_ext >&5
12861 rm -rf conftest*
12862 LIBS="$ac_save_LIBS"
12863 # First see if replacing the include by lib works.
12864 # Check X11 before X11Rn because it is often a symlink to the current release.
12865 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
12866 /usr/X11/lib \
12867 /usr/X11R6/lib \
12868 /usr/X11R5/lib \
12869 /usr/X11R4/lib \
12870 \
12871 /usr/lib/X11 \
12872 /usr/lib/X11R6 \
12873 /usr/lib/X11R5 \
12874 /usr/lib/X11R4 \
12875 \
12876 /usr/local/X11/lib \
12877 /usr/local/X11R6/lib \
12878 /usr/local/X11R5/lib \
12879 /usr/local/X11R4/lib \
12880 \
12881 /usr/local/lib/X11 \
12882 /usr/local/lib/X11R6 \
12883 /usr/local/lib/X11R5 \
12884 /usr/local/lib/X11R4 \
12885 \
12886 /usr/X386/lib \
12887 /usr/x386/lib \
12888 /usr/XFree86/lib/X11 \
12889 \
12890 /usr/lib \
12891 /usr/local/lib \
12892 /usr/unsupported/lib \
12893 /usr/athena/lib \
12894 /usr/local/x11r5/lib \
12895 /usr/lpp/Xamples/lib \
12896 /lib/usr/lib/X11 \
12897 \
12898 /usr/openwin/lib \
12899 /usr/openwin/share/lib \
12900 ; \
12901 do
12902 for ac_extension in a so sl; do
12903 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
12904 ac_x_libraries=$ac_dir
12905 break 2
12906 fi
12907 done
12908 done
12909 fi
12910 rm -f conftest*
12911 fi # $ac_x_libraries = NO
12912
12913 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
12914 # Didn't find X anywhere. Cache the known absence of X.
12915 ac_cv_have_x="have_x=no"
12916 else
12917 # Record where we found X for the cache.
12918 ac_cv_have_x="have_x=yes \
12919 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
12920 fi
12921 fi
12922 fi
12923 eval "$ac_cv_have_x"
12924 fi # $with_x != no
12925
12926 if test "$have_x" != yes; then
12927 echo "$ac_t""$have_x" 1>&6
12928 no_x=yes
12929 else
12930 # If each of the values was on the command line, it overrides each guess.
12931 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12932 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12933 # Update the cache value to reflect the command line values.
12934 ac_cv_have_x="have_x=yes \
12935 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
12936 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
12937 fi
12938
12939 if test "$no_x" = yes; then
12940 # Not all programs may use this symbol, but it does not hurt to define it.
12941 cat >> confdefs.h <<\EOF
12942 #define X_DISPLAY_MISSING 1
12943 EOF
12944
12945 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12946 else
12947 if test -n "$x_includes"; then
12948 X_CFLAGS="$X_CFLAGS -I$x_includes"
12949 fi
12950
12951 # It would also be nice to do this for all -L options, not just this one.
12952 if test -n "$x_libraries"; then
12953 X_LIBS="$X_LIBS -L$x_libraries"
12954 # For Solaris; some versions of Sun CC require a space after -R and
12955 # others require no space. Words are not sufficient . . . .
12956 case "`(uname -sr) 2>/dev/null`" in
12957 "SunOS 5"*)
12958 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
12959 echo "configure:12960: checking whether -R must be followed by a space" >&5
12960 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
12961 cat > conftest.$ac_ext <<EOF
12962 #line 12963 "configure"
12963 #include "confdefs.h"
12964
12965 int main() {
12966
12967 ; return 0; }
12968 EOF
12969 if { (eval echo configure:12970: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12970 rm -rf conftest*
12971 ac_R_nospace=yes
12972 else
12973 echo "configure: failed program was:" >&5
12974 cat conftest.$ac_ext >&5
12975 rm -rf conftest*
12976 ac_R_nospace=no
12977 fi
12978 rm -f conftest*
12979 if test $ac_R_nospace = yes; then
12980 echo "$ac_t""no" 1>&6
12981 X_LIBS="$X_LIBS -R$x_libraries"
12982 else
12983 LIBS="$ac_xsave_LIBS -R $x_libraries"
12984 cat > conftest.$ac_ext <<EOF
12985 #line 12986 "configure"
12986 #include "confdefs.h"
12987
12988 int main() {
12989
12990 ; return 0; }
12991 EOF
12992 if { (eval echo configure:12993: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12993 rm -rf conftest*
12994 ac_R_space=yes
12995 else
12996 echo "configure: failed program was:" >&5
12997 cat conftest.$ac_ext >&5
12998 rm -rf conftest*
12999 ac_R_space=no
13000 fi
13001 rm -f conftest*
13002 if test $ac_R_space = yes; then
13003 echo "$ac_t""yes" 1>&6
13004 X_LIBS="$X_LIBS -R $x_libraries"
13005 else
13006 echo "$ac_t""neither works" 1>&6
13007 fi
13008 fi
13009 LIBS="$ac_xsave_LIBS"
13010 esac
13011 fi
13012
13013 # Check for system-dependent libraries X programs must link with.
13014 # Do this before checking for the system-independent R6 libraries
13015 # (-lICE), since we may need -lsocket or whatever for X linking.
13016
13017 if test "$ISC" = yes; then
13018 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13019 else
13020 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13021 # libraries were built with DECnet support. And karl@cs.umb.edu says
13022 # the Alpha needs dnet_stub (dnet does not exist).
13023 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13024 echo "configure:13025: checking for dnet_ntoa in -ldnet" >&5
13025 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13026 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13027 echo $ac_n "(cached) $ac_c" 1>&6
13028 else
13029 ac_save_LIBS="$LIBS"
13030 LIBS="-ldnet $LIBS"
13031 cat > conftest.$ac_ext <<EOF
13032 #line 13033 "configure"
13033 #include "confdefs.h"
13034 /* Override any gcc2 internal prototype to avoid an error. */
13035 /* We use char because int might match the return type of a gcc2
13036 builtin and then its argument prototype would still apply. */
13037 char dnet_ntoa();
13038
13039 int main() {
13040 dnet_ntoa()
13041 ; return 0; }
13042 EOF
13043 if { (eval echo configure:13044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13044 rm -rf conftest*
13045 eval "ac_cv_lib_$ac_lib_var=yes"
13046 else
13047 echo "configure: failed program was:" >&5
13048 cat conftest.$ac_ext >&5
13049 rm -rf conftest*
13050 eval "ac_cv_lib_$ac_lib_var=no"
13051 fi
13052 rm -f conftest*
13053 LIBS="$ac_save_LIBS"
13054
13055 fi
13056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13057 echo "$ac_t""yes" 1>&6
13058 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13059 else
13060 echo "$ac_t""no" 1>&6
13061 fi
13062
13063 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13064 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13065 echo "configure:13066: checking for dnet_ntoa in -ldnet_stub" >&5
13066 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13068 echo $ac_n "(cached) $ac_c" 1>&6
13069 else
13070 ac_save_LIBS="$LIBS"
13071 LIBS="-ldnet_stub $LIBS"
13072 cat > conftest.$ac_ext <<EOF
13073 #line 13074 "configure"
13074 #include "confdefs.h"
13075 /* Override any gcc2 internal prototype to avoid an error. */
13076 /* We use char because int might match the return type of a gcc2
13077 builtin and then its argument prototype would still apply. */
13078 char dnet_ntoa();
13079
13080 int main() {
13081 dnet_ntoa()
13082 ; return 0; }
13083 EOF
13084 if { (eval echo configure:13085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13085 rm -rf conftest*
13086 eval "ac_cv_lib_$ac_lib_var=yes"
13087 else
13088 echo "configure: failed program was:" >&5
13089 cat conftest.$ac_ext >&5
13090 rm -rf conftest*
13091 eval "ac_cv_lib_$ac_lib_var=no"
13092 fi
13093 rm -f conftest*
13094 LIBS="$ac_save_LIBS"
13095
13096 fi
13097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13098 echo "$ac_t""yes" 1>&6
13099 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13100 else
13101 echo "$ac_t""no" 1>&6
13102 fi
13103
13104 fi
13105
13106 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13107 # to get the SysV transport functions.
13108 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13109 # needs -lnsl.
13110 # The nsl library prevents programs from opening the X display
13111 # on Irix 5.2, according to dickey@clark.net.
13112 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13113 echo "configure:13114: checking for gethostbyname" >&5
13114 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13115 echo $ac_n "(cached) $ac_c" 1>&6
13116 else
13117 cat > conftest.$ac_ext <<EOF
13118 #line 13119 "configure"
13119 #include "confdefs.h"
13120 /* System header to define __stub macros and hopefully few prototypes,
13121 which can conflict with char gethostbyname(); below. */
13122 #include <assert.h>
13123 /* Override any gcc2 internal prototype to avoid an error. */
13124 /* We use char because int might match the return type of a gcc2
13125 builtin and then its argument prototype would still apply. */
13126 char gethostbyname();
13127
13128 int main() {
13129
13130 /* The GNU C library defines this for functions which it implements
13131 to always fail with ENOSYS. Some functions are actually named
13132 something starting with __ and the normal name is an alias. */
13133 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13134 choke me
13135 #else
13136 gethostbyname();
13137 #endif
13138
13139 ; return 0; }
13140 EOF
13141 if { (eval echo configure:13142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13142 rm -rf conftest*
13143 eval "ac_cv_func_gethostbyname=yes"
13144 else
13145 echo "configure: failed program was:" >&5
13146 cat conftest.$ac_ext >&5
13147 rm -rf conftest*
13148 eval "ac_cv_func_gethostbyname=no"
13149 fi
13150 rm -f conftest*
13151 fi
13152
13153 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13154 echo "$ac_t""yes" 1>&6
13155 :
13156 else
13157 echo "$ac_t""no" 1>&6
13158 fi
13159
13160 if test $ac_cv_func_gethostbyname = no; then
13161 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13162 echo "configure:13163: checking for gethostbyname in -lnsl" >&5
13163 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13165 echo $ac_n "(cached) $ac_c" 1>&6
13166 else
13167 ac_save_LIBS="$LIBS"
13168 LIBS="-lnsl $LIBS"
13169 cat > conftest.$ac_ext <<EOF
13170 #line 13171 "configure"
13171 #include "confdefs.h"
13172 /* Override any gcc2 internal prototype to avoid an error. */
13173 /* We use char because int might match the return type of a gcc2
13174 builtin and then its argument prototype would still apply. */
13175 char gethostbyname();
13176
13177 int main() {
13178 gethostbyname()
13179 ; return 0; }
13180 EOF
13181 if { (eval echo configure:13182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13182 rm -rf conftest*
13183 eval "ac_cv_lib_$ac_lib_var=yes"
13184 else
13185 echo "configure: failed program was:" >&5
13186 cat conftest.$ac_ext >&5
13187 rm -rf conftest*
13188 eval "ac_cv_lib_$ac_lib_var=no"
13189 fi
13190 rm -f conftest*
13191 LIBS="$ac_save_LIBS"
13192
13193 fi
13194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13195 echo "$ac_t""yes" 1>&6
13196 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13197 else
13198 echo "$ac_t""no" 1>&6
13199 fi
13200
13201 fi
13202
13203 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13204 # socket/setsockopt and other routines are undefined under SCO ODT
13205 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13206 # on later versions), says simon@lia.di.epfl.ch: it contains
13207 # gethostby* variants that don't use the nameserver (or something).
13208 # -lsocket must be given before -lnsl if both are needed.
13209 # We assume that if connect needs -lnsl, so does gethostbyname.
13210 echo $ac_n "checking for connect""... $ac_c" 1>&6
13211 echo "configure:13212: checking for connect" >&5
13212 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
13213 echo $ac_n "(cached) $ac_c" 1>&6
13214 else
13215 cat > conftest.$ac_ext <<EOF
13216 #line 13217 "configure"
13217 #include "confdefs.h"
13218 /* System header to define __stub macros and hopefully few prototypes,
13219 which can conflict with char connect(); below. */
13220 #include <assert.h>
13221 /* Override any gcc2 internal prototype to avoid an error. */
13222 /* We use char because int might match the return type of a gcc2
13223 builtin and then its argument prototype would still apply. */
13224 char connect();
13225
13226 int main() {
13227
13228 /* The GNU C library defines this for functions which it implements
13229 to always fail with ENOSYS. Some functions are actually named
13230 something starting with __ and the normal name is an alias. */
13231 #if defined (__stub_connect) || defined (__stub___connect)
13232 choke me
13233 #else
13234 connect();
13235 #endif
13236
13237 ; return 0; }
13238 EOF
13239 if { (eval echo configure:13240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13240 rm -rf conftest*
13241 eval "ac_cv_func_connect=yes"
13242 else
13243 echo "configure: failed program was:" >&5
13244 cat conftest.$ac_ext >&5
13245 rm -rf conftest*
13246 eval "ac_cv_func_connect=no"
13247 fi
13248 rm -f conftest*
13249 fi
13250
13251 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
13252 echo "$ac_t""yes" 1>&6
13253 :
13254 else
13255 echo "$ac_t""no" 1>&6
13256 fi
13257
13258 if test $ac_cv_func_connect = no; then
13259 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
13260 echo "configure:13261: checking for connect in -lsocket" >&5
13261 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
13262 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13263 echo $ac_n "(cached) $ac_c" 1>&6
13264 else
13265 ac_save_LIBS="$LIBS"
13266 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13267 cat > conftest.$ac_ext <<EOF
13268 #line 13269 "configure"
13269 #include "confdefs.h"
13270 /* Override any gcc2 internal prototype to avoid an error. */
13271 /* We use char because int might match the return type of a gcc2
13272 builtin and then its argument prototype would still apply. */
13273 char connect();
13274
13275 int main() {
13276 connect()
13277 ; return 0; }
13278 EOF
13279 if { (eval echo configure:13280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13280 rm -rf conftest*
13281 eval "ac_cv_lib_$ac_lib_var=yes"
13282 else
13283 echo "configure: failed program was:" >&5
13284 cat conftest.$ac_ext >&5
13285 rm -rf conftest*
13286 eval "ac_cv_lib_$ac_lib_var=no"
13287 fi
13288 rm -f conftest*
13289 LIBS="$ac_save_LIBS"
13290
13291 fi
13292 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13293 echo "$ac_t""yes" 1>&6
13294 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13295 else
13296 echo "$ac_t""no" 1>&6
13297 fi
13298
13299 fi
13300
13301 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
13302 echo $ac_n "checking for remove""... $ac_c" 1>&6
13303 echo "configure:13304: checking for remove" >&5
13304 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
13305 echo $ac_n "(cached) $ac_c" 1>&6
13306 else
13307 cat > conftest.$ac_ext <<EOF
13308 #line 13309 "configure"
13309 #include "confdefs.h"
13310 /* System header to define __stub macros and hopefully few prototypes,
13311 which can conflict with char remove(); below. */
13312 #include <assert.h>
13313 /* Override any gcc2 internal prototype to avoid an error. */
13314 /* We use char because int might match the return type of a gcc2
13315 builtin and then its argument prototype would still apply. */
13316 char remove();
13317
13318 int main() {
13319
13320 /* The GNU C library defines this for functions which it implements
13321 to always fail with ENOSYS. Some functions are actually named
13322 something starting with __ and the normal name is an alias. */
13323 #if defined (__stub_remove) || defined (__stub___remove)
13324 choke me
13325 #else
13326 remove();
13327 #endif
13328
13329 ; return 0; }
13330 EOF
13331 if { (eval echo configure:13332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13332 rm -rf conftest*
13333 eval "ac_cv_func_remove=yes"
13334 else
13335 echo "configure: failed program was:" >&5
13336 cat conftest.$ac_ext >&5
13337 rm -rf conftest*
13338 eval "ac_cv_func_remove=no"
13339 fi
13340 rm -f conftest*
13341 fi
13342
13343 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
13344 echo "$ac_t""yes" 1>&6
13345 :
13346 else
13347 echo "$ac_t""no" 1>&6
13348 fi
13349
13350 if test $ac_cv_func_remove = no; then
13351 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
13352 echo "configure:13353: checking for remove in -lposix" >&5
13353 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
13354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13355 echo $ac_n "(cached) $ac_c" 1>&6
13356 else
13357 ac_save_LIBS="$LIBS"
13358 LIBS="-lposix $LIBS"
13359 cat > conftest.$ac_ext <<EOF
13360 #line 13361 "configure"
13361 #include "confdefs.h"
13362 /* Override any gcc2 internal prototype to avoid an error. */
13363 /* We use char because int might match the return type of a gcc2
13364 builtin and then its argument prototype would still apply. */
13365 char remove();
13366
13367 int main() {
13368 remove()
13369 ; return 0; }
13370 EOF
13371 if { (eval echo configure:13372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13372 rm -rf conftest*
13373 eval "ac_cv_lib_$ac_lib_var=yes"
13374 else
13375 echo "configure: failed program was:" >&5
13376 cat conftest.$ac_ext >&5
13377 rm -rf conftest*
13378 eval "ac_cv_lib_$ac_lib_var=no"
13379 fi
13380 rm -f conftest*
13381 LIBS="$ac_save_LIBS"
13382
13383 fi
13384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13385 echo "$ac_t""yes" 1>&6
13386 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13387 else
13388 echo "$ac_t""no" 1>&6
13389 fi
13390
13391 fi
13392
13393 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13394 echo $ac_n "checking for shmat""... $ac_c" 1>&6
13395 echo "configure:13396: checking for shmat" >&5
13396 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
13397 echo $ac_n "(cached) $ac_c" 1>&6
13398 else
13399 cat > conftest.$ac_ext <<EOF
13400 #line 13401 "configure"
13401 #include "confdefs.h"
13402 /* System header to define __stub macros and hopefully few prototypes,
13403 which can conflict with char shmat(); below. */
13404 #include <assert.h>
13405 /* Override any gcc2 internal prototype to avoid an error. */
13406 /* We use char because int might match the return type of a gcc2
13407 builtin and then its argument prototype would still apply. */
13408 char shmat();
13409
13410 int main() {
13411
13412 /* The GNU C library defines this for functions which it implements
13413 to always fail with ENOSYS. Some functions are actually named
13414 something starting with __ and the normal name is an alias. */
13415 #if defined (__stub_shmat) || defined (__stub___shmat)
13416 choke me
13417 #else
13418 shmat();
13419 #endif
13420
13421 ; return 0; }
13422 EOF
13423 if { (eval echo configure:13424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13424 rm -rf conftest*
13425 eval "ac_cv_func_shmat=yes"
13426 else
13427 echo "configure: failed program was:" >&5
13428 cat conftest.$ac_ext >&5
13429 rm -rf conftest*
13430 eval "ac_cv_func_shmat=no"
13431 fi
13432 rm -f conftest*
13433 fi
13434
13435 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
13436 echo "$ac_t""yes" 1>&6
13437 :
13438 else
13439 echo "$ac_t""no" 1>&6
13440 fi
13441
13442 if test $ac_cv_func_shmat = no; then
13443 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
13444 echo "configure:13445: checking for shmat in -lipc" >&5
13445 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
13446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13447 echo $ac_n "(cached) $ac_c" 1>&6
13448 else
13449 ac_save_LIBS="$LIBS"
13450 LIBS="-lipc $LIBS"
13451 cat > conftest.$ac_ext <<EOF
13452 #line 13453 "configure"
13453 #include "confdefs.h"
13454 /* Override any gcc2 internal prototype to avoid an error. */
13455 /* We use char because int might match the return type of a gcc2
13456 builtin and then its argument prototype would still apply. */
13457 char shmat();
13458
13459 int main() {
13460 shmat()
13461 ; return 0; }
13462 EOF
13463 if { (eval echo configure:13464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13464 rm -rf conftest*
13465 eval "ac_cv_lib_$ac_lib_var=yes"
13466 else
13467 echo "configure: failed program was:" >&5
13468 cat conftest.$ac_ext >&5
13469 rm -rf conftest*
13470 eval "ac_cv_lib_$ac_lib_var=no"
13471 fi
13472 rm -f conftest*
13473 LIBS="$ac_save_LIBS"
13474
13475 fi
13476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13477 echo "$ac_t""yes" 1>&6
13478 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13479 else
13480 echo "$ac_t""no" 1>&6
13481 fi
13482
13483 fi
13484 fi
13485
13486 # Check for libraries that X11R6 Xt/Xaw programs need.
13487 ac_save_LDFLAGS="$LDFLAGS"
13488 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13489 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13490 # check for ICE first), but we must link in the order -lSM -lICE or
13491 # we get undefined symbols. So assume we have SM if we have ICE.
13492 # These have to be linked with before -lX11, unlike the other
13493 # libraries we check for below, so use a different variable.
13494 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
13495 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
13496 echo "configure:13497: checking for IceConnectionNumber in -lICE" >&5
13497 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
13498 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13499 echo $ac_n "(cached) $ac_c" 1>&6
13500 else
13501 ac_save_LIBS="$LIBS"
13502 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13503 cat > conftest.$ac_ext <<EOF
13504 #line 13505 "configure"
13505 #include "confdefs.h"
13506 /* Override any gcc2 internal prototype to avoid an error. */
13507 /* We use char because int might match the return type of a gcc2
13508 builtin and then its argument prototype would still apply. */
13509 char IceConnectionNumber();
13510
13511 int main() {
13512 IceConnectionNumber()
13513 ; return 0; }
13514 EOF
13515 if { (eval echo configure:13516: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13516 rm -rf conftest*
13517 eval "ac_cv_lib_$ac_lib_var=yes"
13518 else
13519 echo "configure: failed program was:" >&5
13520 cat conftest.$ac_ext >&5
13521 rm -rf conftest*
13522 eval "ac_cv_lib_$ac_lib_var=no"
13523 fi
13524 rm -f conftest*
13525 LIBS="$ac_save_LIBS"
13526
13527 fi
13528 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13529 echo "$ac_t""yes" 1>&6
13530 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13531 else
13532 echo "$ac_t""no" 1>&6
13533 fi
13534
13535 LDFLAGS="$ac_save_LDFLAGS"
13536
13537 fi
13538
13539
13540 if test "$no_x" = "yes"; then
13541 { echo "configure: error: X11 not found" 1>&2; exit 1; }
13542 fi
13543
13544 GUI_TK_LIBRARY="$X_LIBS"
13545 TOOLKIT_INCLUDE="$X_CFLAGS"
13546 AFMINSTALL=afminstall
13547 COMPILED_X_PROGRAM=0
13548
13549 if test "$wxUSE_NANOX" = "yes"; then
13550 echo $ac_n "checking for MicroWindows/NanoX distribution""... $ac_c" 1>&6
13551 echo "configure:13552: checking for MicroWindows/NanoX distribution" >&5
13552 if test "x$MICROWIN" = x ; then
13553 echo "$ac_t""not found" 1>&6
13554 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWIN is set." 1>&2; exit 1; }
13555 else
13556 echo "$ac_t""$MICROWIN" 1>&6
13557 cat >> confdefs.h <<\EOF
13558 #define wxUSE_NANOX 1
13559 EOF
13560
13561 fi
13562 fi
13563
13564 xpm_link=
13565 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13566 echo "configure:13567: checking for Xpm library" >&5
13567
13568 ac_find_libraries=
13569 for ac_dir in $SEARCH_LIB;
13570 do
13571 for ac_extension in a so sl dylib; do
13572 if test -f "$ac_dir/libXpm.$ac_extension"; then
13573 ac_find_libraries=$ac_dir
13574 break 2
13575 fi
13576 done
13577 done
13578
13579 if test "$ac_find_libraries" != "" ; then
13580
13581 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
13582 result=$?
13583 if test $result = 0; then
13584 ac_path_to_link=""
13585 else
13586 ac_path_to_link=" -L$ac_find_libraries"
13587 fi
13588
13589 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
13590 xpm_link=" -lXpm"
13591 cat >> confdefs.h <<\EOF
13592 #define wxHAVE_LIB_XPM 1
13593 EOF
13594
13595 echo "$ac_t""found at $ac_find_libraries" 1>&6
13596 else
13597 cat > conftest.$ac_ext <<EOF
13598 #line 13599 "configure"
13599 #include "confdefs.h"
13600
13601 #include <X11/xpm.h>
13602
13603 int main() {
13604
13605 int version;
13606 version = XpmLibraryVersion();
13607
13608 ; return 0; }
13609 EOF
13610 if { (eval echo configure:13611: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13611 rm -rf conftest*
13612
13613 xpm_link=" -lXpm"
13614 cat >> confdefs.h <<\EOF
13615 #define wxHAVE_LIB_XPM 1
13616 EOF
13617
13618 echo "$ac_t""found in default search path" 1>&6
13619 COMPILED_X_PROGRAM=0
13620
13621 else
13622 echo "configure: failed program was:" >&5
13623 cat conftest.$ac_ext >&5
13624 rm -rf conftest*
13625
13626 echo "$ac_t""no" 1>&6
13627 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13628
13629
13630 fi
13631 rm -f conftest*
13632 fi
13633
13634 wxUSE_UNIVERSAL="yes"
13635
13636 if test "$wxUSE_NANOX" = "yes"; then
13637 TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
13638 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__NANOX__ -DMWPIXEL_FORMAT=MWPF_TRUECOLOR0888 -DHAVE_FILEIO -DHAVE_BMP_SUPPORT=1 -DHAVE_GIF_SUPPORT=1 -DHAVE_PNM_SUPPORT=1 -DHAVE_XPM_SUPPORT=1 -DLINUX=1 -DUNIX=1 -DUSE_EXPOSURE -DSCREEN_HEIGHT=480 -DSCREEN_WIDTH=640 -DSCREEN_DEPTH=4 -DX11=1"
13639 GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
13640 else
13641 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11$xpm_link"
13642 fi
13643
13644 TOOLKIT_VPATH="\${top_srcdir}/src/x11"
13645 TOOLKIT=X11
13646 GUIDIST=X11_DIST
13647 fi
13648
13649 if test "$wxUSE_WINE" = 1; then
13650 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
13651 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
13652 echo "configure:13653: checking for windows.h" >&5
13653 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13654 echo $ac_n "(cached) $ac_c" 1>&6
13655 else
13656 cat > conftest.$ac_ext <<EOF
13657 #line 13658 "configure"
13658 #include "confdefs.h"
13659 #include <windows.h>
13660 EOF
13661 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13662 { (eval echo configure:13663: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13663 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13664 if test -z "$ac_err"; then
13665 rm -rf conftest*
13666 eval "ac_cv_header_$ac_safe=yes"
13667 else
13668 echo "$ac_err" >&5
13669 echo "configure: failed program was:" >&5
13670 cat conftest.$ac_ext >&5
13671 rm -rf conftest*
13672 eval "ac_cv_header_$ac_safe=no"
13673 fi
13674 rm -f conftest*
13675 fi
13676 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13677 echo "$ac_t""yes" 1>&6
13678 :
13679 else
13680 echo "$ac_t""no" 1>&6
13681
13682 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
13683
13684 fi
13685
13686
13687 xpm_link=
13688 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
13689 echo "configure:13690: checking for Xpm library" >&5
13690
13691 ac_find_libraries=
13692 for ac_dir in $SEARCH_LIB;
13693 do
13694 for ac_extension in a so sl dylib; do
13695 if test -f "$ac_dir/libXpm.$ac_extension"; then
13696 ac_find_libraries=$ac_dir
13697 break 2
13698 fi
13699 done
13700 done
13701
13702 if test "$ac_find_libraries" != "" ; then
13703 GUI_TK_LIBRARY="-L$ac_find_libraries"
13704 xpm_link=" -lXpm"
13705 cat >> confdefs.h <<\EOF
13706 #define wxHAVE_LIB_XPM 1
13707 EOF
13708
13709 echo "$ac_t""found at $ac_find_libraries" 1>&6
13710 else
13711 echo "$ac_t""no" 1>&6
13712 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
13713 fi
13714
13715 mesa_link=
13716 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
13717 echo "configure:13718: checking for Mesa library" >&5
13718
13719 ac_find_libraries=
13720 for ac_dir in $SEARCH_LIB;
13721 do
13722 for ac_extension in a so sl dylib; do
13723 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
13724 ac_find_libraries=$ac_dir
13725 break 2
13726 fi
13727 done
13728 done
13729
13730 if test "$ac_find_libraries" != "" ; then
13731 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
13732 mesa_link=" -lMesaGL"
13733 echo "$ac_t""found at $ac_find_libraries" 1>&6
13734 else
13735 { echo "configure: error: no" 1>&2; exit 1; }
13736 fi
13737
13738 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
13739 TOOLKIT=MSW
13740 GUIDIST=MSW_DIST
13741 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
13742 fi
13743
13744 if test "$wxUSE_MOTIF" = 1; then
13745 if test "$no_x" = yes; then
13746 # Not all programs may use this symbol, but it does not hurt to define it.
13747 cat >> confdefs.h <<\EOF
13748 #define X_DISPLAY_MISSING 1
13749 EOF
13750
13751 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13752 else
13753 if test -n "$x_includes"; then
13754 X_CFLAGS="$X_CFLAGS -I$x_includes"
13755 fi
13756
13757 # It would also be nice to do this for all -L options, not just this one.
13758 if test -n "$x_libraries"; then
13759 X_LIBS="$X_LIBS -L$x_libraries"
13760 # For Solaris; some versions of Sun CC require a space after -R and
13761 # others require no space. Words are not sufficient . . . .
13762 case "`(uname -sr) 2>/dev/null`" in
13763 "SunOS 5"*)
13764 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
13765 echo "configure:13766: checking whether -R must be followed by a space" >&5
13766 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
13767 cat > conftest.$ac_ext <<EOF
13768 #line 13769 "configure"
13769 #include "confdefs.h"
13770
13771 int main() {
13772
13773 ; return 0; }
13774 EOF
13775 if { (eval echo configure:13776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13776 rm -rf conftest*
13777 ac_R_nospace=yes
13778 else
13779 echo "configure: failed program was:" >&5
13780 cat conftest.$ac_ext >&5
13781 rm -rf conftest*
13782 ac_R_nospace=no
13783 fi
13784 rm -f conftest*
13785 if test $ac_R_nospace = yes; then
13786 echo "$ac_t""no" 1>&6
13787 X_LIBS="$X_LIBS -R$x_libraries"
13788 else
13789 LIBS="$ac_xsave_LIBS -R $x_libraries"
13790 cat > conftest.$ac_ext <<EOF
13791 #line 13792 "configure"
13792 #include "confdefs.h"
13793
13794 int main() {
13795
13796 ; return 0; }
13797 EOF
13798 if { (eval echo configure:13799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13799 rm -rf conftest*
13800 ac_R_space=yes
13801 else
13802 echo "configure: failed program was:" >&5
13803 cat conftest.$ac_ext >&5
13804 rm -rf conftest*
13805 ac_R_space=no
13806 fi
13807 rm -f conftest*
13808 if test $ac_R_space = yes; then
13809 echo "$ac_t""yes" 1>&6
13810 X_LIBS="$X_LIBS -R $x_libraries"
13811 else
13812 echo "$ac_t""neither works" 1>&6
13813 fi
13814 fi
13815 LIBS="$ac_xsave_LIBS"
13816 esac
13817 fi
13818
13819 # Check for system-dependent libraries X programs must link with.
13820 # Do this before checking for the system-independent R6 libraries
13821 # (-lICE), since we may need -lsocket or whatever for X linking.
13822
13823 if test "$ISC" = yes; then
13824 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13825 else
13826 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
13827 # libraries were built with DECnet support. And karl@cs.umb.edu says
13828 # the Alpha needs dnet_stub (dnet does not exist).
13829 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
13830 echo "configure:13831: checking for dnet_ntoa in -ldnet" >&5
13831 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13832 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13833 echo $ac_n "(cached) $ac_c" 1>&6
13834 else
13835 ac_save_LIBS="$LIBS"
13836 LIBS="-ldnet $LIBS"
13837 cat > conftest.$ac_ext <<EOF
13838 #line 13839 "configure"
13839 #include "confdefs.h"
13840 /* Override any gcc2 internal prototype to avoid an error. */
13841 /* We use char because int might match the return type of a gcc2
13842 builtin and then its argument prototype would still apply. */
13843 char dnet_ntoa();
13844
13845 int main() {
13846 dnet_ntoa()
13847 ; return 0; }
13848 EOF
13849 if { (eval echo configure:13850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13850 rm -rf conftest*
13851 eval "ac_cv_lib_$ac_lib_var=yes"
13852 else
13853 echo "configure: failed program was:" >&5
13854 cat conftest.$ac_ext >&5
13855 rm -rf conftest*
13856 eval "ac_cv_lib_$ac_lib_var=no"
13857 fi
13858 rm -f conftest*
13859 LIBS="$ac_save_LIBS"
13860
13861 fi
13862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13863 echo "$ac_t""yes" 1>&6
13864 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13865 else
13866 echo "$ac_t""no" 1>&6
13867 fi
13868
13869 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13870 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
13871 echo "configure:13872: checking for dnet_ntoa in -ldnet_stub" >&5
13872 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
13873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13874 echo $ac_n "(cached) $ac_c" 1>&6
13875 else
13876 ac_save_LIBS="$LIBS"
13877 LIBS="-ldnet_stub $LIBS"
13878 cat > conftest.$ac_ext <<EOF
13879 #line 13880 "configure"
13880 #include "confdefs.h"
13881 /* Override any gcc2 internal prototype to avoid an error. */
13882 /* We use char because int might match the return type of a gcc2
13883 builtin and then its argument prototype would still apply. */
13884 char dnet_ntoa();
13885
13886 int main() {
13887 dnet_ntoa()
13888 ; return 0; }
13889 EOF
13890 if { (eval echo configure:13891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13891 rm -rf conftest*
13892 eval "ac_cv_lib_$ac_lib_var=yes"
13893 else
13894 echo "configure: failed program was:" >&5
13895 cat conftest.$ac_ext >&5
13896 rm -rf conftest*
13897 eval "ac_cv_lib_$ac_lib_var=no"
13898 fi
13899 rm -f conftest*
13900 LIBS="$ac_save_LIBS"
13901
13902 fi
13903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13904 echo "$ac_t""yes" 1>&6
13905 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13906 else
13907 echo "$ac_t""no" 1>&6
13908 fi
13909
13910 fi
13911
13912 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13913 # to get the SysV transport functions.
13914 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
13915 # needs -lnsl.
13916 # The nsl library prevents programs from opening the X display
13917 # on Irix 5.2, according to dickey@clark.net.
13918 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
13919 echo "configure:13920: checking for gethostbyname" >&5
13920 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
13921 echo $ac_n "(cached) $ac_c" 1>&6
13922 else
13923 cat > conftest.$ac_ext <<EOF
13924 #line 13925 "configure"
13925 #include "confdefs.h"
13926 /* System header to define __stub macros and hopefully few prototypes,
13927 which can conflict with char gethostbyname(); below. */
13928 #include <assert.h>
13929 /* Override any gcc2 internal prototype to avoid an error. */
13930 /* We use char because int might match the return type of a gcc2
13931 builtin and then its argument prototype would still apply. */
13932 char gethostbyname();
13933
13934 int main() {
13935
13936 /* The GNU C library defines this for functions which it implements
13937 to always fail with ENOSYS. Some functions are actually named
13938 something starting with __ and the normal name is an alias. */
13939 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
13940 choke me
13941 #else
13942 gethostbyname();
13943 #endif
13944
13945 ; return 0; }
13946 EOF
13947 if { (eval echo configure:13948: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13948 rm -rf conftest*
13949 eval "ac_cv_func_gethostbyname=yes"
13950 else
13951 echo "configure: failed program was:" >&5
13952 cat conftest.$ac_ext >&5
13953 rm -rf conftest*
13954 eval "ac_cv_func_gethostbyname=no"
13955 fi
13956 rm -f conftest*
13957 fi
13958
13959 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
13960 echo "$ac_t""yes" 1>&6
13961 :
13962 else
13963 echo "$ac_t""no" 1>&6
13964 fi
13965
13966 if test $ac_cv_func_gethostbyname = no; then
13967 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
13968 echo "configure:13969: checking for gethostbyname in -lnsl" >&5
13969 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
13970 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13971 echo $ac_n "(cached) $ac_c" 1>&6
13972 else
13973 ac_save_LIBS="$LIBS"
13974 LIBS="-lnsl $LIBS"
13975 cat > conftest.$ac_ext <<EOF
13976 #line 13977 "configure"
13977 #include "confdefs.h"
13978 /* Override any gcc2 internal prototype to avoid an error. */
13979 /* We use char because int might match the return type of a gcc2
13980 builtin and then its argument prototype would still apply. */
13981 char gethostbyname();
13982
13983 int main() {
13984 gethostbyname()
13985 ; return 0; }
13986 EOF
13987 if { (eval echo configure:13988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13988 rm -rf conftest*
13989 eval "ac_cv_lib_$ac_lib_var=yes"
13990 else
13991 echo "configure: failed program was:" >&5
13992 cat conftest.$ac_ext >&5
13993 rm -rf conftest*
13994 eval "ac_cv_lib_$ac_lib_var=no"
13995 fi
13996 rm -f conftest*
13997 LIBS="$ac_save_LIBS"
13998
13999 fi
14000 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14001 echo "$ac_t""yes" 1>&6
14002 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
14003 else
14004 echo "$ac_t""no" 1>&6
14005 fi
14006
14007 fi
14008
14009 # lieder@skyler.mavd.honeywell.com says without -lsocket,
14010 # socket/setsockopt and other routines are undefined under SCO ODT
14011 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
14012 # on later versions), says simon@lia.di.epfl.ch: it contains
14013 # gethostby* variants that don't use the nameserver (or something).
14014 # -lsocket must be given before -lnsl if both are needed.
14015 # We assume that if connect needs -lnsl, so does gethostbyname.
14016 echo $ac_n "checking for connect""... $ac_c" 1>&6
14017 echo "configure:14018: checking for connect" >&5
14018 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
14019 echo $ac_n "(cached) $ac_c" 1>&6
14020 else
14021 cat > conftest.$ac_ext <<EOF
14022 #line 14023 "configure"
14023 #include "confdefs.h"
14024 /* System header to define __stub macros and hopefully few prototypes,
14025 which can conflict with char connect(); below. */
14026 #include <assert.h>
14027 /* Override any gcc2 internal prototype to avoid an error. */
14028 /* We use char because int might match the return type of a gcc2
14029 builtin and then its argument prototype would still apply. */
14030 char connect();
14031
14032 int main() {
14033
14034 /* The GNU C library defines this for functions which it implements
14035 to always fail with ENOSYS. Some functions are actually named
14036 something starting with __ and the normal name is an alias. */
14037 #if defined (__stub_connect) || defined (__stub___connect)
14038 choke me
14039 #else
14040 connect();
14041 #endif
14042
14043 ; return 0; }
14044 EOF
14045 if { (eval echo configure:14046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14046 rm -rf conftest*
14047 eval "ac_cv_func_connect=yes"
14048 else
14049 echo "configure: failed program was:" >&5
14050 cat conftest.$ac_ext >&5
14051 rm -rf conftest*
14052 eval "ac_cv_func_connect=no"
14053 fi
14054 rm -f conftest*
14055 fi
14056
14057 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
14058 echo "$ac_t""yes" 1>&6
14059 :
14060 else
14061 echo "$ac_t""no" 1>&6
14062 fi
14063
14064 if test $ac_cv_func_connect = no; then
14065 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
14066 echo "configure:14067: checking for connect in -lsocket" >&5
14067 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
14068 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14069 echo $ac_n "(cached) $ac_c" 1>&6
14070 else
14071 ac_save_LIBS="$LIBS"
14072 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14073 cat > conftest.$ac_ext <<EOF
14074 #line 14075 "configure"
14075 #include "confdefs.h"
14076 /* Override any gcc2 internal prototype to avoid an error. */
14077 /* We use char because int might match the return type of a gcc2
14078 builtin and then its argument prototype would still apply. */
14079 char connect();
14080
14081 int main() {
14082 connect()
14083 ; return 0; }
14084 EOF
14085 if { (eval echo configure:14086: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14086 rm -rf conftest*
14087 eval "ac_cv_lib_$ac_lib_var=yes"
14088 else
14089 echo "configure: failed program was:" >&5
14090 cat conftest.$ac_ext >&5
14091 rm -rf conftest*
14092 eval "ac_cv_lib_$ac_lib_var=no"
14093 fi
14094 rm -f conftest*
14095 LIBS="$ac_save_LIBS"
14096
14097 fi
14098 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14099 echo "$ac_t""yes" 1>&6
14100 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14101 else
14102 echo "$ac_t""no" 1>&6
14103 fi
14104
14105 fi
14106
14107 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
14108 echo $ac_n "checking for remove""... $ac_c" 1>&6
14109 echo "configure:14110: checking for remove" >&5
14110 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
14111 echo $ac_n "(cached) $ac_c" 1>&6
14112 else
14113 cat > conftest.$ac_ext <<EOF
14114 #line 14115 "configure"
14115 #include "confdefs.h"
14116 /* System header to define __stub macros and hopefully few prototypes,
14117 which can conflict with char remove(); below. */
14118 #include <assert.h>
14119 /* Override any gcc2 internal prototype to avoid an error. */
14120 /* We use char because int might match the return type of a gcc2
14121 builtin and then its argument prototype would still apply. */
14122 char remove();
14123
14124 int main() {
14125
14126 /* The GNU C library defines this for functions which it implements
14127 to always fail with ENOSYS. Some functions are actually named
14128 something starting with __ and the normal name is an alias. */
14129 #if defined (__stub_remove) || defined (__stub___remove)
14130 choke me
14131 #else
14132 remove();
14133 #endif
14134
14135 ; return 0; }
14136 EOF
14137 if { (eval echo configure:14138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14138 rm -rf conftest*
14139 eval "ac_cv_func_remove=yes"
14140 else
14141 echo "configure: failed program was:" >&5
14142 cat conftest.$ac_ext >&5
14143 rm -rf conftest*
14144 eval "ac_cv_func_remove=no"
14145 fi
14146 rm -f conftest*
14147 fi
14148
14149 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
14150 echo "$ac_t""yes" 1>&6
14151 :
14152 else
14153 echo "$ac_t""no" 1>&6
14154 fi
14155
14156 if test $ac_cv_func_remove = no; then
14157 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
14158 echo "configure:14159: checking for remove in -lposix" >&5
14159 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
14160 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14161 echo $ac_n "(cached) $ac_c" 1>&6
14162 else
14163 ac_save_LIBS="$LIBS"
14164 LIBS="-lposix $LIBS"
14165 cat > conftest.$ac_ext <<EOF
14166 #line 14167 "configure"
14167 #include "confdefs.h"
14168 /* Override any gcc2 internal prototype to avoid an error. */
14169 /* We use char because int might match the return type of a gcc2
14170 builtin and then its argument prototype would still apply. */
14171 char remove();
14172
14173 int main() {
14174 remove()
14175 ; return 0; }
14176 EOF
14177 if { (eval echo configure:14178: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14178 rm -rf conftest*
14179 eval "ac_cv_lib_$ac_lib_var=yes"
14180 else
14181 echo "configure: failed program was:" >&5
14182 cat conftest.$ac_ext >&5
14183 rm -rf conftest*
14184 eval "ac_cv_lib_$ac_lib_var=no"
14185 fi
14186 rm -f conftest*
14187 LIBS="$ac_save_LIBS"
14188
14189 fi
14190 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14191 echo "$ac_t""yes" 1>&6
14192 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14193 else
14194 echo "$ac_t""no" 1>&6
14195 fi
14196
14197 fi
14198
14199 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14200 echo $ac_n "checking for shmat""... $ac_c" 1>&6
14201 echo "configure:14202: checking for shmat" >&5
14202 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
14203 echo $ac_n "(cached) $ac_c" 1>&6
14204 else
14205 cat > conftest.$ac_ext <<EOF
14206 #line 14207 "configure"
14207 #include "confdefs.h"
14208 /* System header to define __stub macros and hopefully few prototypes,
14209 which can conflict with char shmat(); below. */
14210 #include <assert.h>
14211 /* Override any gcc2 internal prototype to avoid an error. */
14212 /* We use char because int might match the return type of a gcc2
14213 builtin and then its argument prototype would still apply. */
14214 char shmat();
14215
14216 int main() {
14217
14218 /* The GNU C library defines this for functions which it implements
14219 to always fail with ENOSYS. Some functions are actually named
14220 something starting with __ and the normal name is an alias. */
14221 #if defined (__stub_shmat) || defined (__stub___shmat)
14222 choke me
14223 #else
14224 shmat();
14225 #endif
14226
14227 ; return 0; }
14228 EOF
14229 if { (eval echo configure:14230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14230 rm -rf conftest*
14231 eval "ac_cv_func_shmat=yes"
14232 else
14233 echo "configure: failed program was:" >&5
14234 cat conftest.$ac_ext >&5
14235 rm -rf conftest*
14236 eval "ac_cv_func_shmat=no"
14237 fi
14238 rm -f conftest*
14239 fi
14240
14241 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
14242 echo "$ac_t""yes" 1>&6
14243 :
14244 else
14245 echo "$ac_t""no" 1>&6
14246 fi
14247
14248 if test $ac_cv_func_shmat = no; then
14249 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
14250 echo "configure:14251: checking for shmat in -lipc" >&5
14251 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
14252 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14253 echo $ac_n "(cached) $ac_c" 1>&6
14254 else
14255 ac_save_LIBS="$LIBS"
14256 LIBS="-lipc $LIBS"
14257 cat > conftest.$ac_ext <<EOF
14258 #line 14259 "configure"
14259 #include "confdefs.h"
14260 /* Override any gcc2 internal prototype to avoid an error. */
14261 /* We use char because int might match the return type of a gcc2
14262 builtin and then its argument prototype would still apply. */
14263 char shmat();
14264
14265 int main() {
14266 shmat()
14267 ; return 0; }
14268 EOF
14269 if { (eval echo configure:14270: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14270 rm -rf conftest*
14271 eval "ac_cv_lib_$ac_lib_var=yes"
14272 else
14273 echo "configure: failed program was:" >&5
14274 cat conftest.$ac_ext >&5
14275 rm -rf conftest*
14276 eval "ac_cv_lib_$ac_lib_var=no"
14277 fi
14278 rm -f conftest*
14279 LIBS="$ac_save_LIBS"
14280
14281 fi
14282 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14283 echo "$ac_t""yes" 1>&6
14284 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14285 else
14286 echo "$ac_t""no" 1>&6
14287 fi
14288
14289 fi
14290 fi
14291
14292 # Check for libraries that X11R6 Xt/Xaw programs need.
14293 ac_save_LDFLAGS="$LDFLAGS"
14294 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14295 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14296 # check for ICE first), but we must link in the order -lSM -lICE or
14297 # we get undefined symbols. So assume we have SM if we have ICE.
14298 # These have to be linked with before -lX11, unlike the other
14299 # libraries we check for below, so use a different variable.
14300 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
14301 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
14302 echo "configure:14303: checking for IceConnectionNumber in -lICE" >&5
14303 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
14304 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14305 echo $ac_n "(cached) $ac_c" 1>&6
14306 else
14307 ac_save_LIBS="$LIBS"
14308 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14309 cat > conftest.$ac_ext <<EOF
14310 #line 14311 "configure"
14311 #include "confdefs.h"
14312 /* Override any gcc2 internal prototype to avoid an error. */
14313 /* We use char because int might match the return type of a gcc2
14314 builtin and then its argument prototype would still apply. */
14315 char IceConnectionNumber();
14316
14317 int main() {
14318 IceConnectionNumber()
14319 ; return 0; }
14320 EOF
14321 if { (eval echo configure:14322: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14322 rm -rf conftest*
14323 eval "ac_cv_lib_$ac_lib_var=yes"
14324 else
14325 echo "configure: failed program was:" >&5
14326 cat conftest.$ac_ext >&5
14327 rm -rf conftest*
14328 eval "ac_cv_lib_$ac_lib_var=no"
14329 fi
14330 rm -f conftest*
14331 LIBS="$ac_save_LIBS"
14332
14333 fi
14334 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14335 echo "$ac_t""yes" 1>&6
14336 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14337 else
14338 echo "$ac_t""no" 1>&6
14339 fi
14340
14341 LDFLAGS="$ac_save_LDFLAGS"
14342
14343 fi
14344
14345
14346 if test "$no_x" = "yes"; then
14347 { echo "configure: error: X11 not found" 1>&2; exit 1; }
14348 fi
14349
14350 GUI_TK_LIBRARY="$X_LIBS"
14351 TOOLKIT_INCLUDE="$X_CFLAGS"
14352 AFMINSTALL=afminstall
14353 COMPILED_X_PROGRAM=0
14354
14355 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
14356 echo "configure:14357: checking for Motif/Lesstif headers" >&5
14357
14358 ac_find_includes=
14359 for ac_dir in $SEARCH_INCLUDE;
14360 do
14361 if test -f "$ac_dir/Xm/Xm.h"; then
14362 ac_find_includes=$ac_dir
14363 break
14364 fi
14365 done
14366
14367 if test "$ac_find_includes" != "" ; then
14368 echo "$ac_t""found $ac_find_includes" 1>&6
14369 else
14370 cat > conftest.$ac_ext <<EOF
14371 #line 14372 "configure"
14372 #include "confdefs.h"
14373
14374 #include <Xm/Xm.h>
14375
14376 int main() {
14377
14378 int version;
14379 version = xmUseVersion;
14380
14381 ; return 0; }
14382 EOF
14383 if { (eval echo configure:14384: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14384 rm -rf conftest*
14385
14386 echo "$ac_t""found in default search path" 1>&6
14387 COMPILED_X_PROGRAM=1
14388
14389 else
14390 echo "configure: failed program was:" >&5
14391 cat conftest.$ac_ext >&5
14392 rm -rf conftest*
14393
14394 echo "$ac_t""no" 1>&6
14395 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
14396
14397
14398 fi
14399 rm -f conftest*
14400 fi
14401
14402 if test "$COMPILED_X_PROGRAM" = 0; then
14403 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
14404 echo "configure:14405: checking for Motif/Lesstif library" >&5
14405
14406 ac_find_libraries=
14407 for ac_dir in $SEARCH_LIB;
14408 do
14409 for ac_extension in a so sl dylib; do
14410 if test -f "$ac_dir/libXm.$ac_extension"; then
14411 ac_find_libraries=$ac_dir
14412 break 2
14413 fi
14414 done
14415 done
14416
14417 if test "$ac_find_libraries" != "" ; then
14418
14419 ac_path_to_include=$ac_find_includes
14420 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
14421 result=$?
14422 if test $result = 0; then
14423 ac_path_to_include=""
14424 else
14425 ac_path_to_include=" -I$ac_find_includes"
14426 fi
14427
14428
14429 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14430 result=$?
14431 if test $result = 0; then
14432 ac_path_to_link=""
14433 else
14434 ac_path_to_link=" -L$ac_find_libraries"
14435 fi
14436
14437
14438 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14439 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
14440 echo "$ac_t""found at $ac_find_libraries" 1>&6
14441 else
14442 cat > conftest.$ac_ext <<EOF
14443 #line 14444 "configure"
14444 #include "confdefs.h"
14445
14446 #include <Xm/Xm.h>
14447
14448 int main() {
14449
14450 int version;
14451 version = xmUseVersion;
14452
14453 ; return 0; }
14454 EOF
14455 if { (eval echo configure:14456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14456 rm -rf conftest*
14457
14458 echo "$ac_t""found in default search path" 1>&6
14459 COMPILED_X_PROGRAM=1
14460
14461 else
14462 echo "configure: failed program was:" >&5
14463 cat conftest.$ac_ext >&5
14464 rm -rf conftest*
14465
14466 echo "$ac_t""no" 1>&6
14467 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
14468
14469
14470 fi
14471 rm -f conftest*
14472 fi
14473 fi
14474
14475 xpm_link=
14476 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
14477 echo "configure:14478: checking for Xpm library" >&5
14478
14479 ac_find_libraries=
14480 for ac_dir in $SEARCH_LIB;
14481 do
14482 for ac_extension in a so sl dylib; do
14483 if test -f "$ac_dir/libXpm.$ac_extension"; then
14484 ac_find_libraries=$ac_dir
14485 break 2
14486 fi
14487 done
14488 done
14489
14490 if test "$ac_find_libraries" != "" ; then
14491
14492 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
14493 result=$?
14494 if test $result = 0; then
14495 ac_path_to_link=""
14496 else
14497 ac_path_to_link=" -L$ac_find_libraries"
14498 fi
14499
14500 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
14501 xpm_link=" -lXpm"
14502 cat >> confdefs.h <<\EOF
14503 #define wxHAVE_LIB_XPM 1
14504 EOF
14505
14506 echo "$ac_t""found at $ac_find_libraries" 1>&6
14507 else
14508 cat > conftest.$ac_ext <<EOF
14509 #line 14510 "configure"
14510 #include "confdefs.h"
14511
14512 #include <X11/xpm.h>
14513
14514 int main() {
14515
14516 int version;
14517 version = XpmLibraryVersion();
14518
14519 ; return 0; }
14520 EOF
14521 if { (eval echo configure:14522: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14522 rm -rf conftest*
14523
14524 xpm_link=" -lXpm"
14525 cat >> confdefs.h <<\EOF
14526 #define wxHAVE_LIB_XPM 1
14527 EOF
14528
14529 echo "$ac_t""found in default search path" 1>&6
14530 COMPILED_X_PROGRAM=0
14531
14532 else
14533 echo "configure: failed program was:" >&5
14534 cat conftest.$ac_ext >&5
14535 rm -rf conftest*
14536
14537 echo "$ac_t""no" 1>&6
14538 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
14539
14540
14541 fi
14542 rm -f conftest*
14543 fi
14544
14545 xt_needs_sm_ice=
14546 case "${host}" in
14547 *-*-cygwin* )
14548 xt_needs_sm_ice=" -lSM -lICE"
14549 ;;
14550 esac
14551
14552 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt${xt_needs_sm_ice} -lX11"
14553 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
14554 TOOLKIT=MOTIF
14555 GUIDIST=MOTIF_DIST
14556 fi
14557
14558 if test "$wxUSE_MAC" = 1; then
14559 if test "$wxUSE_PRECOMP" = "yes"; then
14560 CPPFLAGS="$CPPFLAGS -cpp-precomp"
14561 else
14562 CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
14563 fi
14564 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
14565 CFLAGS="$CFLAGS -fpascal-strings"
14566 CXXFLAGS="$CXXFLAGS -fpascal-strings"
14567
14568 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
14569 TOOLKIT=MAC
14570 GUIDIST=MACX_DIST
14571 fi
14572
14573 if test "$wxUSE_PM" = 1; then
14574 TOOLKIT=PM
14575 GUIDIST=GTK_DIST
14576 fi
14577
14578 if test "$TOOLKIT" = "PM" ; then
14579 TOOLKIT_DIR="os2"
14580 else
14581 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
14582 fi
14583
14584 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
14585
14586 if test "$wxUSE_UNIVERSAL" = "yes"; then
14587 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
14588
14589 ALL_SOURCES="\$(ALL_SOURCES) \${UNIV_SOURCES}"
14590 ALL_HEADERS="\$(ALL_HEADERS) \${UNIV_HEADERS}"
14591
14592 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
14593 if test "$wxUSE_X11" = 1; then
14594 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
14595 else
14596 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
14597 fi
14598 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
14599 WIDGET_SET=univ
14600 else
14601 ALL_OBJECTS="\$(GUIOBJS)"
14602 ALL_SOURCES="\$(ALL_SOURCES)"
14603 ALL_HEADERS="\$(ALL_HEADERS)"
14604 fi
14605
14606 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
14607
14608 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
14609 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
14610 fi
14611
14612 if test "$wxUSE_HTML" = "yes"; then
14613 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
14614 fi
14615
14616 if test "$wxUSE_LIBJPEG" = "builtin" ; then
14617 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
14618 fi
14619 if test "$wxUSE_LIBTIFF" = "builtin" ; then
14620 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
14621 fi
14622 if test "$wxUSE_LIBPNG" = "builtin" ; then
14623 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
14624 fi
14625
14626 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
14627 DISTDIR="wx\$(TOOLKIT)"
14628 else
14629 USE_GUI=0
14630
14631 TOOLKIT_DIR="base"
14632
14633 if test "$USE_WIN32" = 1 ; then
14634 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
14635 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
14636
14637 TOOLKIT="MSW"
14638 else
14639 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
14640 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
14641 fi
14642
14643 ALL_SOURCES="\$(ALL_SOURCES)"
14644 ALL_HEADERS="\$(ALL_HEADERS)"
14645
14646 PORT_FILES="\${top_srcdir}/src/files.lst"
14647
14648 GUIDIST="BASE_DIST"
14649 DISTDIR="wxBase"
14650 fi
14651
14652
14653 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
14654 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
14655 fi
14656
14657 if test "$wxUSE_REGEX" = "builtin" ; then
14658 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
14659 fi
14660 if test "$wxUSE_ZLIB" = "builtin" ; then
14661 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
14662 fi
14663
14664
14665 if test "$wxUSE_OPENGL" = "yes"; then
14666 if test "$wxUSE_MAC" = 1; then
14667 OPENGL_LIBS="-framework OpenGL -framework AGL"
14668 elif test "$wxUSE_MSW" = 1; then
14669 OPENGL_LIBS="-lopengl32 -lglu32"
14670 else
14671 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
14672 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
14673 echo "configure:14674: checking for GL/gl.h" >&5
14674 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14675 echo $ac_n "(cached) $ac_c" 1>&6
14676 else
14677 cat > conftest.$ac_ext <<EOF
14678 #line 14679 "configure"
14679 #include "confdefs.h"
14680 #include <GL/gl.h>
14681 EOF
14682 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14683 { (eval echo configure:14684: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14684 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14685 if test -z "$ac_err"; then
14686 rm -rf conftest*
14687 eval "ac_cv_header_$ac_safe=yes"
14688 else
14689 echo "$ac_err" >&5
14690 echo "configure: failed program was:" >&5
14691 cat conftest.$ac_ext >&5
14692 rm -rf conftest*
14693 eval "ac_cv_header_$ac_safe=no"
14694 fi
14695 rm -f conftest*
14696 fi
14697 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14698 echo "$ac_t""yes" 1>&6
14699
14700 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
14701 echo "configure:14702: checking for -lGL" >&5
14702
14703 ac_find_libraries=
14704 for ac_dir in $SEARCH_LIB;
14705 do
14706 for ac_extension in a so sl dylib; do
14707 if test -f "$ac_dir/libGL.$ac_extension"; then
14708 ac_find_libraries=$ac_dir
14709 break 2
14710 fi
14711 done
14712 done
14713
14714 if test "$ac_find_libraries" != "" ; then
14715
14716 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14717 result=$?
14718 if test $result = 0; then
14719 ac_path_to_link=""
14720 else
14721 ac_path_to_link=" -L$ac_find_libraries"
14722 fi
14723
14724 if test "$ac_path_to_link" = " -L/usr/lib" ; then
14725 LDFLAGS_GL="$LDFLAGS"
14726 else
14727 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14728 fi
14729 OPENGL_LIBS="-lGL -lGLU"
14730 echo "$ac_t""yes" 1>&6
14731 else
14732 echo "$ac_t""no" 1>&6
14733 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
14734 echo "configure:14735: checking for -lMesaGL" >&5
14735
14736 ac_find_libraries=
14737 for ac_dir in $SEARCH_LIB;
14738 do
14739 for ac_extension in a so sl dylib; do
14740 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
14741 ac_find_libraries=$ac_dir
14742 break 2
14743 fi
14744 done
14745 done
14746
14747 if test "$ac_find_libraries" != "" ; then
14748
14749 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
14750 result=$?
14751 if test $result = 0; then
14752 ac_path_to_link=""
14753 else
14754 ac_path_to_link=" -L$ac_find_libraries"
14755 fi
14756
14757 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
14758 OPENGL_LIBS="-lMesaGL -lMesaGLU"
14759 echo "$ac_t""yes" 1>&6
14760 else
14761 echo "$ac_t""no" 1>&6
14762 fi
14763 fi
14764
14765 else
14766 echo "$ac_t""no" 1>&6
14767 fi
14768
14769
14770 if test "x$OPENGL_LIBS" = "x"; then
14771 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
14772 fi
14773 fi
14774
14775 if test "$wxUSE_OPENGL" = "yes"; then
14776 cat >> confdefs.h <<\EOF
14777 #define wxUSE_OPENGL 1
14778 EOF
14779
14780 cat >> confdefs.h <<\EOF
14781 #define wxUSE_GLCANVAS 1
14782 EOF
14783
14784 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
14785 fi
14786 fi
14787
14788 if test -z "$TOOLKIT_VPATH" ; then
14789 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
14790 fi
14791
14792 if test -n "$TOOLKIT" ; then
14793 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
14794 fi
14795
14796 lib_unicode_suffix=
14797 if test "$wxUSE_UNICODE" = "yes"; then
14798 lib_unicode_suffix=u
14799 fi
14800
14801 lib_debug_suffix=
14802 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
14803 lib_debug_suffix=d
14804 fi
14805
14806 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
14807 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
14808
14809 if test "$cross_compiling" = "yes"; then
14810 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
14811 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
14812 fi
14813
14814 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
14815 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
14816
14817 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14818 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
14819
14820 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
14821 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
14822 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
14823 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14824
14825 case "${host}" in
14826 *-*-cygwin* | *-*-mingw32* )
14827
14828
14829
14830 if test "$cross_compiling" != "yes" -a "$TOOLKIT_DIR" = "msw"; then
14831 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14832 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
14833 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
14834 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
14835 else
14836 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
14837 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
14838 fi
14839 ;;
14840
14841 *-*-darwin* )
14842 if test "$wxUSE_MAC" = 1; then
14843 WX_RESOURCES_MACOSX_ASCII="lib${WX_LIBRARY}.r"
14844 WX_RESOURCES_MACOSX_DATA="lib${WX_LIBRARY}.rsrc"
14845 fi
14846 ;;
14847 esac
14848
14849 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
14850 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
14851
14852 WXCONFIG_LIBS="-l${WX_LIBRARY}"
14853 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
14854
14855 if test "$wxUSE_OPENGL" = "yes"; then
14856 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
14857 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
14858 fi
14859
14860
14861
14862 if test "$wxUSE_SHARED" = "yes"; then
14863 case "${host}" in
14864 *-pc-os2_emx | *-pc-os2-emx | \
14865 *-pc-msdosdjgpp )
14866 wxUSE_SHARED=no
14867 echo "configure: warning: Host system doesn't support shared libraries, disabling" 1>&2
14868 ;;
14869 esac
14870 fi
14871
14872 if test "$wxUSE_SHARED" = "yes"; then
14873
14874 if test "$wxUSE_OPENGL" = "yes"; then
14875 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
14876 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
14877 else
14878 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
14879 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
14880 fi
14881
14882 if test "$GCC" = "yes"; then
14883 PIC_FLAG="-fPIC"
14884 fi
14885
14886 SHARED_LD="${CXX} -shared -o"
14887
14888 case "${host}" in
14889 *-hp-hpux* )
14890 if test "$GCC" == "yes"; then
14891 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
14892 else
14893 LDFLAGS="$LDFLAGS -L/usr/lib"
14894
14895 SHARED_LD="${CXX} -b -o"
14896 PIC_FLAG="+Z"
14897 fi
14898
14899 if test "$wxUSE_OPENGL" = "yes"; then
14900 WX_ALL_INSTALLED="preinstall_gl"
14901 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
14902 else
14903 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
14904 fi
14905 ;;
14906
14907 *-*-linux* )
14908 if test "$GCC" != "yes"; then
14909 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
14910 echo "configure:14911: checking for Intel compiler" >&5
14911 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
14912 echo $ac_n "(cached) $ac_c" 1>&6
14913 else
14914
14915 cat > conftest.$ac_ext <<EOF
14916 #line 14917 "configure"
14917 #include "confdefs.h"
14918
14919 int main() {
14920
14921 #ifndef __INTEL_COMPILER
14922 #error Not icc
14923 #endif
14924
14925 ; return 0; }
14926 EOF
14927 if { (eval echo configure:14928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14928 rm -rf conftest*
14929 wx_cv_prog_icc=yes
14930 else
14931 echo "configure: failed program was:" >&5
14932 cat conftest.$ac_ext >&5
14933 rm -rf conftest*
14934 wx_cv_prog_icc=no
14935
14936 fi
14937 rm -f conftest*
14938
14939 fi
14940
14941 echo "$ac_t""$wx_cv_prog_icc" 1>&6
14942 if test "$wx_cv_prog_icc" = "yes"; then
14943 PIC_FLAG="-KPIC"
14944 fi
14945 fi
14946
14947 if test "$wxUSE_SONAME" = "yes" ; then
14948 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
14949 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
14950 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
14951 fi
14952 ;;
14953
14954 *-*-solaris2* )
14955 if test "$GCC" = yes ; then
14956 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
14957 else
14958 SHARED_LD="${CXX} -G -o"
14959 PIC_FLAG="-KPIC"
14960 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
14961 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
14962 fi
14963 ;;
14964
14965 *-*-darwin* )
14966 CFLAGS="$CFLAGS -fno-common -DWXMAKINGDLL"
14967 CXXFLAGS="$CXXFLAGS -fno-common -DWXMAKINGDLL"
14968 SHARED_LD="\${top_srcdir}/distrib/mac/shared-ld-sh -undefined suppress -flat_namespace -o"
14969 PIC_FLAG="-dynamic -fPIC"
14970 SONAME_FLAGS="-compatibility_version ${WX_RELEASE} -current_version ${WX_VERSION}"
14971 SONAME_FLAGS_GL=${SONAME_FLAGS}
14972 ;;
14973
14974 *-*-aix* )
14975 # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
14976 set dummy makeC++SharedLib; ac_word=$2
14977 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14978 echo "configure:14979: checking for $ac_word" >&5
14979 if eval "test \"`echo '$''{'ac_cv_prog_AIX_CXX_LD'+set}'`\" = set"; then
14980 echo $ac_n "(cached) $ac_c" 1>&6
14981 else
14982 if test -n "$AIX_CXX_LD"; then
14983 ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
14984 else
14985 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14986 ac_dummy="$PATH"
14987 for ac_dir in $ac_dummy; do
14988 test -z "$ac_dir" && ac_dir=.
14989 if test -f $ac_dir/$ac_word; then
14990 ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
14991 break
14992 fi
14993 done
14994 IFS="$ac_save_ifs"
14995 test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
14996 fi
14997 fi
14998 AIX_CXX_LD="$ac_cv_prog_AIX_CXX_LD"
14999 if test -n "$AIX_CXX_LD"; then
15000 echo "$ac_t""$AIX_CXX_LD" 1>&6
15001 else
15002 echo "$ac_t""no" 1>&6
15003 fi
15004
15005
15006 SHARED_LD="$(AIX_CXX_LD) -p 0 -o"
15007 ;;
15008
15009 *-*-cygwin* | *-*-mingw32* )
15010
15011 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
15012
15013 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
15014 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
15015
15016 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
15017
15018 if test "$wxUSE_OPENGL" = "yes"; then
15019 WX_ALL_INSTALLED="preinstall_gl"
15020 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
15021 else
15022 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
15023 fi
15024 ;;
15025
15026 *-*-beos* )
15027 SHARED_LD="${LD} -shared -o"
15028 ;;
15029
15030 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
15031 *-*-sunos4* | \
15032 *-*-irix5* | *-*-irix6* | \
15033 *-*-osf* | \
15034 *-*-dgux5* | \
15035 *-*-sysv5* )
15036 ;;
15037
15038 *)
15039 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
15040 esac
15041
15042 if test "x$WX_TARGET_LIBRARY" = "x"; then
15043 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
15044 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
15045 fi
15046
15047 WX_TARGET_LIBRARY_TYPE="so"
15048 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
15049 fi
15050
15051 if test "$wxUSE_SHARED" = "no"; then
15052
15053 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
15054 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15055 fi
15056
15057 if test "$wxUSE_MAC" = 1; then
15058 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
15059 fi
15060
15061 if test "$wxUSE_OPENGL" = "yes"; then
15062 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
15063 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
15064 else
15065 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
15066 fi
15067
15068 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
15069 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
15070
15071 WX_TARGET_LIBRARY_TYPE="a"
15072 INSTALL_LIBRARY='$(INSTALL_DATA)'
15073 fi
15074
15075 if test "$wxUSE_MAC" = 1; then
15076 LIBWXMACRES="\$(top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
15077 WX_ALL="${WX_ALL} ${LIBWXMACRES}"
15078 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
15079 # Extract the first word of "Rez", so it can be a program name with args.
15080 set dummy Rez; ac_word=$2
15081 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15082 echo "configure:15083: checking for $ac_word" >&5
15083 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
15084 echo $ac_n "(cached) $ac_c" 1>&6
15085 else
15086 if test -n "$RESCOMP"; then
15087 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
15088 else
15089 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15090 ac_dummy="$PATH"
15091 for ac_dir in $ac_dummy; do
15092 test -z "$ac_dir" && ac_dir=.
15093 if test -f $ac_dir/$ac_word; then
15094 ac_cv_prog_RESCOMP="Rez"
15095 break
15096 fi
15097 done
15098 IFS="$ac_save_ifs"
15099 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
15100 fi
15101 fi
15102 RESCOMP="$ac_cv_prog_RESCOMP"
15103 if test -n "$RESCOMP"; then
15104 echo "$ac_t""$RESCOMP" 1>&6
15105 else
15106 echo "$ac_t""no" 1>&6
15107 fi
15108
15109 # Extract the first word of "DeRez", so it can be a program name with args.
15110 set dummy DeRez; ac_word=$2
15111 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
15112 echo "configure:15113: checking for $ac_word" >&5
15113 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
15114 echo $ac_n "(cached) $ac_c" 1>&6
15115 else
15116 if test -n "$DEREZ"; then
15117 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
15118 else
15119 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15120 ac_dummy="$PATH"
15121 for ac_dir in $ac_dummy; do
15122 test -z "$ac_dir" && ac_dir=.
15123 if test -f $ac_dir/$ac_word; then
15124 ac_cv_prog_DEREZ="DeRez"
15125 break
15126 fi
15127 done
15128 IFS="$ac_save_ifs"
15129 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
15130 fi
15131 fi
15132 DEREZ="$ac_cv_prog_DEREZ"
15133 if test -n "$DEREZ"; then
15134 echo "$ac_t""$DEREZ" 1>&6
15135 else
15136 echo "$ac_t""no" 1>&6
15137 fi
15138
15139 MACOSX_BUNDLE="bundle"
15140 if test "$wxUSE_SHARED" = "yes"; then
15141 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r -o \$(BIN_PROGRAM)"
15142 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r -o"
15143 else
15144 LIBWXMACRESCOMP="\$(RESCOMP) -t APPL Carbon.r ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
15145 LIBWXMACRESWXCONFIG="${RESCOMP} -t APPL Carbon.r \${prefix}/lib/${WX_RESOURCES_MACOSX_ASCII} -o"
15146 fi
15147 else
15148 if test "$wxUSE_PM" = 1; then
15149 LIBWXMACRESCOMP="emxbind -ep \$(BIN_PROGRAM)"
15150 fi
15151 fi
15152
15153
15154 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
15155 echo "configure:15156: checking for ANSI C header files" >&5
15156 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
15157 echo $ac_n "(cached) $ac_c" 1>&6
15158 else
15159 cat > conftest.$ac_ext <<EOF
15160 #line 15161 "configure"
15161 #include "confdefs.h"
15162 #include <stdlib.h>
15163 #include <stdarg.h>
15164 #include <string.h>
15165 #include <float.h>
15166 EOF
15167 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15168 { (eval echo configure:15169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15169 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15170 if test -z "$ac_err"; then
15171 rm -rf conftest*
15172 ac_cv_header_stdc=yes
15173 else
15174 echo "$ac_err" >&5
15175 echo "configure: failed program was:" >&5
15176 cat conftest.$ac_ext >&5
15177 rm -rf conftest*
15178 ac_cv_header_stdc=no
15179 fi
15180 rm -f conftest*
15181
15182 if test $ac_cv_header_stdc = yes; then
15183 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15184 cat > conftest.$ac_ext <<EOF
15185 #line 15186 "configure"
15186 #include "confdefs.h"
15187 #include <string.h>
15188 EOF
15189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15190 egrep "memchr" >/dev/null 2>&1; then
15191 :
15192 else
15193 rm -rf conftest*
15194 ac_cv_header_stdc=no
15195 fi
15196 rm -f conftest*
15197
15198 fi
15199
15200 if test $ac_cv_header_stdc = yes; then
15201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15202 cat > conftest.$ac_ext <<EOF
15203 #line 15204 "configure"
15204 #include "confdefs.h"
15205 #include <stdlib.h>
15206 EOF
15207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15208 egrep "free" >/dev/null 2>&1; then
15209 :
15210 else
15211 rm -rf conftest*
15212 ac_cv_header_stdc=no
15213 fi
15214 rm -f conftest*
15215
15216 fi
15217
15218 if test $ac_cv_header_stdc = yes; then
15219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15220 if test "$cross_compiling" = yes; then
15221 :
15222 else
15223 cat > conftest.$ac_ext <<EOF
15224 #line 15225 "configure"
15225 #include "confdefs.h"
15226 #include <ctype.h>
15227 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15228 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15229 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15230 int main () { int i; for (i = 0; i < 256; i++)
15231 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
15232 exit (0); }
15233
15234 EOF
15235 if { (eval echo configure:15236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
15236 then
15237 :
15238 else
15239 echo "configure: failed program was:" >&5
15240 cat conftest.$ac_ext >&5
15241 rm -fr conftest*
15242 ac_cv_header_stdc=no
15243 fi
15244 rm -fr conftest*
15245 fi
15246
15247 fi
15248 fi
15249
15250 echo "$ac_t""$ac_cv_header_stdc" 1>&6
15251 if test $ac_cv_header_stdc = yes; then
15252 cat >> confdefs.h <<\EOF
15253 #define STDC_HEADERS 1
15254 EOF
15255
15256 fi
15257
15258 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
15259 echo "configure:15260: checking for mode_t" >&5
15260 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
15261 echo $ac_n "(cached) $ac_c" 1>&6
15262 else
15263 cat > conftest.$ac_ext <<EOF
15264 #line 15265 "configure"
15265 #include "confdefs.h"
15266 #include <sys/types.h>
15267 #if STDC_HEADERS
15268 #include <stdlib.h>
15269 #include <stddef.h>
15270 #endif
15271 EOF
15272 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15273 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15274 rm -rf conftest*
15275 ac_cv_type_mode_t=yes
15276 else
15277 rm -rf conftest*
15278 ac_cv_type_mode_t=no
15279 fi
15280 rm -f conftest*
15281
15282 fi
15283 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
15284 if test $ac_cv_type_mode_t = no; then
15285 cat >> confdefs.h <<\EOF
15286 #define mode_t int
15287 EOF
15288
15289 fi
15290
15291 echo $ac_n "checking for off_t""... $ac_c" 1>&6
15292 echo "configure:15293: checking for off_t" >&5
15293 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
15294 echo $ac_n "(cached) $ac_c" 1>&6
15295 else
15296 cat > conftest.$ac_ext <<EOF
15297 #line 15298 "configure"
15298 #include "confdefs.h"
15299 #include <sys/types.h>
15300 #if STDC_HEADERS
15301 #include <stdlib.h>
15302 #include <stddef.h>
15303 #endif
15304 EOF
15305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15306 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15307 rm -rf conftest*
15308 ac_cv_type_off_t=yes
15309 else
15310 rm -rf conftest*
15311 ac_cv_type_off_t=no
15312 fi
15313 rm -f conftest*
15314
15315 fi
15316 echo "$ac_t""$ac_cv_type_off_t" 1>&6
15317 if test $ac_cv_type_off_t = no; then
15318 cat >> confdefs.h <<\EOF
15319 #define off_t long
15320 EOF
15321
15322 fi
15323
15324 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
15325 echo "configure:15326: checking for pid_t" >&5
15326 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
15327 echo $ac_n "(cached) $ac_c" 1>&6
15328 else
15329 cat > conftest.$ac_ext <<EOF
15330 #line 15331 "configure"
15331 #include "confdefs.h"
15332 #include <sys/types.h>
15333 #if STDC_HEADERS
15334 #include <stdlib.h>
15335 #include <stddef.h>
15336 #endif
15337 EOF
15338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15339 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15340 rm -rf conftest*
15341 ac_cv_type_pid_t=yes
15342 else
15343 rm -rf conftest*
15344 ac_cv_type_pid_t=no
15345 fi
15346 rm -f conftest*
15347
15348 fi
15349 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
15350 if test $ac_cv_type_pid_t = no; then
15351 cat >> confdefs.h <<\EOF
15352 #define pid_t int
15353 EOF
15354
15355 fi
15356
15357 echo $ac_n "checking for size_t""... $ac_c" 1>&6
15358 echo "configure:15359: checking for size_t" >&5
15359 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
15360 echo $ac_n "(cached) $ac_c" 1>&6
15361 else
15362 cat > conftest.$ac_ext <<EOF
15363 #line 15364 "configure"
15364 #include "confdefs.h"
15365 #include <sys/types.h>
15366 #if STDC_HEADERS
15367 #include <stdlib.h>
15368 #include <stddef.h>
15369 #endif
15370 EOF
15371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15372 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
15373 rm -rf conftest*
15374 ac_cv_type_size_t=yes
15375 else
15376 rm -rf conftest*
15377 ac_cv_type_size_t=no
15378 fi
15379 rm -f conftest*
15380
15381 fi
15382 echo "$ac_t""$ac_cv_type_size_t" 1>&6
15383 if test $ac_cv_type_size_t = no; then
15384 cat >> confdefs.h <<\EOF
15385 #define size_t unsigned
15386 EOF
15387
15388 fi
15389
15390 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
15391 echo "configure:15392: checking for uid_t in sys/types.h" >&5
15392 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
15393 echo $ac_n "(cached) $ac_c" 1>&6
15394 else
15395 cat > conftest.$ac_ext <<EOF
15396 #line 15397 "configure"
15397 #include "confdefs.h"
15398 #include <sys/types.h>
15399 EOF
15400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15401 egrep "uid_t" >/dev/null 2>&1; then
15402 rm -rf conftest*
15403 ac_cv_type_uid_t=yes
15404 else
15405 rm -rf conftest*
15406 ac_cv_type_uid_t=no
15407 fi
15408 rm -f conftest*
15409
15410 fi
15411
15412 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
15413 if test $ac_cv_type_uid_t = no; then
15414 cat >> confdefs.h <<\EOF
15415 #define uid_t int
15416 EOF
15417
15418 cat >> confdefs.h <<\EOF
15419 #define gid_t int
15420 EOF
15421
15422 fi
15423
15424
15425
15426 ac_ext=C
15427 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15428 ac_cpp='$CXXCPP $CPPFLAGS'
15429 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15430 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15431 cross_compiling=$ac_cv_prog_cxx_cross
15432
15433 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
15434 echo "configure:15435: checking if size_t is unsigned int" >&5
15435 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
15436 echo $ac_n "(cached) $ac_c" 1>&6
15437 else
15438 cat > conftest.$ac_ext <<EOF
15439 #line 15440 "configure"
15440 #include "confdefs.h"
15441 #include <stddef.h>
15442 int main() {
15443
15444 return 0; }
15445
15446 struct Foo { void foo(size_t); void foo(unsigned int); };
15447
15448 int bar() {
15449
15450 ; return 0; }
15451 EOF
15452 if { (eval echo configure:15453: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15453 rm -rf conftest*
15454 wx_cv_size_t_is_uint=no
15455 else
15456 echo "configure: failed program was:" >&5
15457 cat conftest.$ac_ext >&5
15458 rm -rf conftest*
15459 wx_cv_size_t_is_uint=yes
15460
15461 fi
15462 rm -f conftest*
15463
15464 fi
15465
15466 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
15467
15468 if test "$wx_cv_size_t_is_uint" = "yes"; then
15469 cat >> confdefs.h <<\EOF
15470 #define wxSIZE_T_IS_UINT 1
15471 EOF
15472
15473 else
15474 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
15475 echo "configure:15476: checking if size_t is unsigned long" >&5
15476 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
15477 echo $ac_n "(cached) $ac_c" 1>&6
15478 else
15479 cat > conftest.$ac_ext <<EOF
15480 #line 15481 "configure"
15481 #include "confdefs.h"
15482 #include <stddef.h>
15483 int main() {
15484
15485 return 0; }
15486
15487 struct Foo { void foo(size_t); void foo(unsigned long); };
15488
15489 int bar() {
15490
15491 ; return 0; }
15492 EOF
15493 if { (eval echo configure:15494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15494 rm -rf conftest*
15495 wx_cv_size_t_is_ulong=no
15496 else
15497 echo "configure: failed program was:" >&5
15498 cat conftest.$ac_ext >&5
15499 rm -rf conftest*
15500 wx_cv_size_t_is_ulong=yes
15501
15502 fi
15503 rm -f conftest*
15504
15505 fi
15506
15507 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
15508
15509 if test "$wx_cv_size_t_is_ulong" = "yes"; then
15510 cat >> confdefs.h <<\EOF
15511 #define wxSIZE_T_IS_ULONG 1
15512 EOF
15513
15514 fi
15515 fi
15516
15517 ac_ext=c
15518 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15519 ac_cpp='$CPP $CPPFLAGS'
15520 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15521 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15522 cross_compiling=$ac_cv_prog_cc_cross
15523
15524
15525
15526 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
15527 echo "configure:15528: checking for pw_gecos in struct passwd" >&5
15528 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
15529 echo $ac_n "(cached) $ac_c" 1>&6
15530 else
15531
15532 cat > conftest.$ac_ext <<EOF
15533 #line 15534 "configure"
15534 #include "confdefs.h"
15535 #include <pwd.h>
15536 int main() {
15537
15538 char *p;
15539 struct passwd *pw;
15540 p = pw->pw_gecos;
15541
15542 ; return 0; }
15543 EOF
15544 if { (eval echo configure:15545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15545 rm -rf conftest*
15546
15547 wx_cv_struct_pw_gecos=yes
15548
15549 else
15550 echo "configure: failed program was:" >&5
15551 cat conftest.$ac_ext >&5
15552 rm -rf conftest*
15553
15554 wx_cv_struct_pw_gecos=no
15555
15556
15557 fi
15558 rm -f conftest*
15559
15560
15561 fi
15562
15563 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
15564
15565 if test "$wx_cv_struct_pw_gecos" = "yes"; then
15566 cat >> confdefs.h <<\EOF
15567 #define HAVE_PW_GECOS 1
15568 EOF
15569
15570 fi
15571
15572
15573 WCHAR_OK=0
15574 if test "$wx_cv_sizeof_wchar_t" != "0"; then
15575 WCHAR_LINK=
15576 for ac_func in wcslen
15577 do
15578 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15579 echo "configure:15580: checking for $ac_func" >&5
15580 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15581 echo $ac_n "(cached) $ac_c" 1>&6
15582 else
15583 cat > conftest.$ac_ext <<EOF
15584 #line 15585 "configure"
15585 #include "confdefs.h"
15586 /* System header to define __stub macros and hopefully few prototypes,
15587 which can conflict with char $ac_func(); below. */
15588 #include <assert.h>
15589 /* Override any gcc2 internal prototype to avoid an error. */
15590 /* We use char because int might match the return type of a gcc2
15591 builtin and then its argument prototype would still apply. */
15592 char $ac_func();
15593
15594 int main() {
15595
15596 /* The GNU C library defines this for functions which it implements
15597 to always fail with ENOSYS. Some functions are actually named
15598 something starting with __ and the normal name is an alias. */
15599 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15600 choke me
15601 #else
15602 $ac_func();
15603 #endif
15604
15605 ; return 0; }
15606 EOF
15607 if { (eval echo configure:15608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15608 rm -rf conftest*
15609 eval "ac_cv_func_$ac_func=yes"
15610 else
15611 echo "configure: failed program was:" >&5
15612 cat conftest.$ac_ext >&5
15613 rm -rf conftest*
15614 eval "ac_cv_func_$ac_func=no"
15615 fi
15616 rm -f conftest*
15617 fi
15618
15619 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15620 echo "$ac_t""yes" 1>&6
15621 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15622 cat >> confdefs.h <<EOF
15623 #define $ac_tr_func 1
15624 EOF
15625
15626 cat >> confdefs.h <<\EOF
15627 #define HAVE_WCSLEN 1
15628 EOF
15629
15630 WCHAR_OK=1
15631
15632 else
15633 echo "$ac_t""no" 1>&6
15634 fi
15635 done
15636
15637
15638 if test "$WCHAR_OK" = 0; then
15639 if test "$TOOLKIT" = "MSW"; then
15640 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
15641 echo "configure:15642: checking for wcslen in -lmsvcrt" >&5
15642 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
15643 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15644 echo $ac_n "(cached) $ac_c" 1>&6
15645 else
15646 ac_save_LIBS="$LIBS"
15647 LIBS="-lmsvcrt $LIBS"
15648 cat > conftest.$ac_ext <<EOF
15649 #line 15650 "configure"
15650 #include "confdefs.h"
15651 /* Override any gcc2 internal prototype to avoid an error. */
15652 /* We use char because int might match the return type of a gcc2
15653 builtin and then its argument prototype would still apply. */
15654 char wcslen();
15655
15656 int main() {
15657 wcslen()
15658 ; return 0; }
15659 EOF
15660 if { (eval echo configure:15661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15661 rm -rf conftest*
15662 eval "ac_cv_lib_$ac_lib_var=yes"
15663 else
15664 echo "configure: failed program was:" >&5
15665 cat conftest.$ac_ext >&5
15666 rm -rf conftest*
15667 eval "ac_cv_lib_$ac_lib_var=no"
15668 fi
15669 rm -f conftest*
15670 LIBS="$ac_save_LIBS"
15671
15672 fi
15673 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15674 echo "$ac_t""yes" 1>&6
15675
15676 cat >> confdefs.h <<\EOF
15677 #define HAVE_WCSLEN 1
15678 EOF
15679
15680 WCHAR_OK=1
15681
15682 else
15683 echo "$ac_t""no" 1>&6
15684 fi
15685
15686 else
15687 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
15688 echo "configure:15689: checking for wcslen in -lw" >&5
15689 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
15690 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15691 echo $ac_n "(cached) $ac_c" 1>&6
15692 else
15693 ac_save_LIBS="$LIBS"
15694 LIBS="-lw $LIBS"
15695 cat > conftest.$ac_ext <<EOF
15696 #line 15697 "configure"
15697 #include "confdefs.h"
15698 /* Override any gcc2 internal prototype to avoid an error. */
15699 /* We use char because int might match the return type of a gcc2
15700 builtin and then its argument prototype would still apply. */
15701 char wcslen();
15702
15703 int main() {
15704 wcslen()
15705 ; return 0; }
15706 EOF
15707 if { (eval echo configure:15708: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15708 rm -rf conftest*
15709 eval "ac_cv_lib_$ac_lib_var=yes"
15710 else
15711 echo "configure: failed program was:" >&5
15712 cat conftest.$ac_ext >&5
15713 rm -rf conftest*
15714 eval "ac_cv_lib_$ac_lib_var=no"
15715 fi
15716 rm -f conftest*
15717 LIBS="$ac_save_LIBS"
15718
15719 fi
15720 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15721 echo "$ac_t""yes" 1>&6
15722
15723 cat >> confdefs.h <<\EOF
15724 #define HAVE_WCSLEN 1
15725 EOF
15726
15727 WCHAR_LINK=" -lw"
15728 WCHAR_OK=1
15729
15730 else
15731 echo "$ac_t""no" 1>&6
15732 fi
15733
15734 fi
15735 fi
15736 fi
15737
15738 if test "$WCHAR_OK" = 1; then
15739 cat >> confdefs.h <<\EOF
15740 #define wxUSE_WCHAR_T 1
15741 EOF
15742
15743
15744 for ac_func in wcsrtombs
15745 do
15746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15747 echo "configure:15748: checking for $ac_func" >&5
15748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15749 echo $ac_n "(cached) $ac_c" 1>&6
15750 else
15751 cat > conftest.$ac_ext <<EOF
15752 #line 15753 "configure"
15753 #include "confdefs.h"
15754 /* System header to define __stub macros and hopefully few prototypes,
15755 which can conflict with char $ac_func(); below. */
15756 #include <assert.h>
15757 /* Override any gcc2 internal prototype to avoid an error. */
15758 /* We use char because int might match the return type of a gcc2
15759 builtin and then its argument prototype would still apply. */
15760 char $ac_func();
15761
15762 int main() {
15763
15764 /* The GNU C library defines this for functions which it implements
15765 to always fail with ENOSYS. Some functions are actually named
15766 something starting with __ and the normal name is an alias. */
15767 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15768 choke me
15769 #else
15770 $ac_func();
15771 #endif
15772
15773 ; return 0; }
15774 EOF
15775 if { (eval echo configure:15776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15776 rm -rf conftest*
15777 eval "ac_cv_func_$ac_func=yes"
15778 else
15779 echo "configure: failed program was:" >&5
15780 cat conftest.$ac_ext >&5
15781 rm -rf conftest*
15782 eval "ac_cv_func_$ac_func=no"
15783 fi
15784 rm -f conftest*
15785 fi
15786
15787 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15788 echo "$ac_t""yes" 1>&6
15789 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15790 cat >> confdefs.h <<EOF
15791 #define $ac_tr_func 1
15792 EOF
15793
15794 else
15795 echo "$ac_t""no" 1>&6
15796 fi
15797 done
15798
15799 else
15800 if test "$USE_DARWIN" = 1; then
15801 cat >> confdefs.h <<\EOF
15802 #define wxUSE_WCHAR_T 1
15803 EOF
15804
15805 else
15806 echo "configure: warning: Wide character support is unavailable" 1>&2
15807 fi
15808 fi
15809
15810 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
15811 echo "configure:15812: checking for vprintf" >&5
15812 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
15813 echo $ac_n "(cached) $ac_c" 1>&6
15814 else
15815 cat > conftest.$ac_ext <<EOF
15816 #line 15817 "configure"
15817 #include "confdefs.h"
15818 /* System header to define __stub macros and hopefully few prototypes,
15819 which can conflict with char vprintf(); below. */
15820 #include <assert.h>
15821 /* Override any gcc2 internal prototype to avoid an error. */
15822 /* We use char because int might match the return type of a gcc2
15823 builtin and then its argument prototype would still apply. */
15824 char vprintf();
15825
15826 int main() {
15827
15828 /* The GNU C library defines this for functions which it implements
15829 to always fail with ENOSYS. Some functions are actually named
15830 something starting with __ and the normal name is an alias. */
15831 #if defined (__stub_vprintf) || defined (__stub___vprintf)
15832 choke me
15833 #else
15834 vprintf();
15835 #endif
15836
15837 ; return 0; }
15838 EOF
15839 if { (eval echo configure:15840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15840 rm -rf conftest*
15841 eval "ac_cv_func_vprintf=yes"
15842 else
15843 echo "configure: failed program was:" >&5
15844 cat conftest.$ac_ext >&5
15845 rm -rf conftest*
15846 eval "ac_cv_func_vprintf=no"
15847 fi
15848 rm -f conftest*
15849 fi
15850
15851 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
15852 echo "$ac_t""yes" 1>&6
15853 cat >> confdefs.h <<\EOF
15854 #define HAVE_VPRINTF 1
15855 EOF
15856
15857 else
15858 echo "$ac_t""no" 1>&6
15859 fi
15860
15861 if test "$ac_cv_func_vprintf" != yes; then
15862 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
15863 echo "configure:15864: checking for _doprnt" >&5
15864 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
15865 echo $ac_n "(cached) $ac_c" 1>&6
15866 else
15867 cat > conftest.$ac_ext <<EOF
15868 #line 15869 "configure"
15869 #include "confdefs.h"
15870 /* System header to define __stub macros and hopefully few prototypes,
15871 which can conflict with char _doprnt(); below. */
15872 #include <assert.h>
15873 /* Override any gcc2 internal prototype to avoid an error. */
15874 /* We use char because int might match the return type of a gcc2
15875 builtin and then its argument prototype would still apply. */
15876 char _doprnt();
15877
15878 int main() {
15879
15880 /* The GNU C library defines this for functions which it implements
15881 to always fail with ENOSYS. Some functions are actually named
15882 something starting with __ and the normal name is an alias. */
15883 #if defined (__stub__doprnt) || defined (__stub____doprnt)
15884 choke me
15885 #else
15886 _doprnt();
15887 #endif
15888
15889 ; return 0; }
15890 EOF
15891 if { (eval echo configure:15892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15892 rm -rf conftest*
15893 eval "ac_cv_func__doprnt=yes"
15894 else
15895 echo "configure: failed program was:" >&5
15896 cat conftest.$ac_ext >&5
15897 rm -rf conftest*
15898 eval "ac_cv_func__doprnt=no"
15899 fi
15900 rm -f conftest*
15901 fi
15902
15903 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
15904 echo "$ac_t""yes" 1>&6
15905 cat >> confdefs.h <<\EOF
15906 #define HAVE_DOPRNT 1
15907 EOF
15908
15909 else
15910 echo "$ac_t""no" 1>&6
15911 fi
15912
15913 fi
15914
15915
15916
15917
15918
15919
15920 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
15921 echo "configure:15922: checking for vsnprintf" >&5
15922 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
15923 echo $ac_n "(cached) $ac_c" 1>&6
15924 else
15925
15926 cat > conftest.$ac_ext <<EOF
15927 #line 15928 "configure"
15928 #include "confdefs.h"
15929
15930 #include <stdio.h>
15931 #include <stdarg.h>
15932
15933 int main() {
15934
15935 int wx_test_vsnprintf(const char *, ...);
15936
15937 wx_test_vsnprintf("%s");
15938 return 0;
15939 }
15940
15941 int wx_test_vsnprintf(const char *fmt, ...)
15942 {
15943 char *s;
15944
15945 va_list argp;
15946 va_start(argp, fmt);
15947 vsnprintf(s, 42, fmt, argp);
15948 va_end(argp);
15949
15950 ; return 0; }
15951 EOF
15952 if { (eval echo configure:15953: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15953 rm -rf conftest*
15954
15955 wx_cv_func_vsnprintf=yes
15956
15957 else
15958 echo "configure: failed program was:" >&5
15959 cat conftest.$ac_ext >&5
15960 rm -rf conftest*
15961
15962 cat > conftest.$ac_ext <<EOF
15963 #line 15964 "configure"
15964 #include "confdefs.h"
15965
15966 #include <stdio.h>
15967 #include <stdarg.h>
15968
15969 int main() {
15970
15971 int wx_test_vsnprintf(const char *, ...);
15972
15973 wx_test_vsnprintf("%s");
15974 return 0;
15975 }
15976
15977 int wx_test_vsnprintf(const char *fmt, ...)
15978 {
15979 char *s;
15980
15981 va_list argp;
15982 va_start(argp, fmt);
15983 _vsnprintf(s, 42, fmt, argp);
15984 va_end(argp);
15985
15986 ; return 0; }
15987 EOF
15988 if { (eval echo configure:15989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15989 rm -rf conftest*
15990
15991 wx_cv_func_vsnprintf=yes
15992
15993 else
15994 echo "configure: failed program was:" >&5
15995 cat conftest.$ac_ext >&5
15996 rm -rf conftest*
15997
15998 wx_cv_func_vsnprintf=no
15999
16000 fi
16001 rm -f conftest*
16002
16003 fi
16004 rm -f conftest*
16005
16006 fi
16007
16008 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
16009
16010 if test "$wx_cv_func_vsnprintf" = yes; then
16011 cat >> confdefs.h <<\EOF
16012 #define HAVE_VSNPRINTF 1
16013 EOF
16014
16015 else
16016 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
16017 fi
16018
16019 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
16020 echo "configure:16021: checking for vsscanf" >&5
16021 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
16022 echo $ac_n "(cached) $ac_c" 1>&6
16023 else
16024
16025 cat > conftest.$ac_ext <<EOF
16026 #line 16027 "configure"
16027 #include "confdefs.h"
16028
16029 #include <stdio.h>
16030 #include <stdarg.h>
16031
16032 int main() {
16033
16034 int wx_test_vsscanf(const char *, ...);
16035
16036 wx_test_vsscanf("%d");
16037 return 0;
16038 }
16039
16040 int wx_test_vsscanf(const char *fmt, ...)
16041 {
16042 va_list argp;
16043 va_start(argp, fmt);
16044 vsscanf("42", fmt, argp);
16045 va_end(argp);
16046
16047 ; return 0; }
16048 EOF
16049 if { (eval echo configure:16050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16050 rm -rf conftest*
16051
16052 wx_cv_func_vsscanf=yes
16053
16054 else
16055 echo "configure: failed program was:" >&5
16056 cat conftest.$ac_ext >&5
16057 rm -rf conftest*
16058
16059 wx_cv_func_vsscanf=no
16060
16061 fi
16062 rm -f conftest*
16063
16064 fi
16065
16066 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
16067
16068 if test "$wx_cv_func_vsscanf" = yes; then
16069 cat >> confdefs.h <<\EOF
16070 #define HAVE_VSSCANF 1
16071 EOF
16072
16073 fi
16074
16075 if test "$TOOLKIT" != "MSW"; then
16076
16077
16078
16079 ac_ext=C
16080 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16081 ac_cpp='$CXXCPP $CPPFLAGS'
16082 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16083 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16084 cross_compiling=$ac_cv_prog_cxx_cross
16085
16086
16087
16088 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
16089 if test "${with_libiconv_prefix+set}" = set; then
16090 withval="$with_libiconv_prefix"
16091
16092 for dir in `echo "$withval" | tr : ' '`; do
16093 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
16094 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
16095 done
16096
16097 fi
16098
16099
16100 echo $ac_n "checking for iconv""... $ac_c" 1>&6
16101 echo "configure:16102: checking for iconv" >&5
16102 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
16103 echo $ac_n "(cached) $ac_c" 1>&6
16104 else
16105
16106 am_cv_func_iconv="no, consider installing GNU libiconv"
16107 am_cv_lib_iconv=no
16108 cat > conftest.$ac_ext <<EOF
16109 #line 16110 "configure"
16110 #include "confdefs.h"
16111 #include <stdlib.h>
16112 #include <iconv.h>
16113 int main() {
16114 iconv_t cd = iconv_open("","");
16115 iconv(cd,NULL,NULL,NULL,NULL);
16116 iconv_close(cd);
16117 ; return 0; }
16118 EOF
16119 if { (eval echo configure:16120: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16120 rm -rf conftest*
16121 am_cv_func_iconv=yes
16122 else
16123 echo "configure: failed program was:" >&5
16124 cat conftest.$ac_ext >&5
16125 fi
16126 rm -f conftest*
16127 if test "$am_cv_func_iconv" != yes; then
16128 am_save_LIBS="$LIBS"
16129 LIBS="$LIBS -liconv"
16130 cat > conftest.$ac_ext <<EOF
16131 #line 16132 "configure"
16132 #include "confdefs.h"
16133 #include <stdlib.h>
16134 #include <iconv.h>
16135 int main() {
16136 iconv_t cd = iconv_open("","");
16137 iconv(cd,NULL,NULL,NULL,NULL);
16138 iconv_close(cd);
16139 ; return 0; }
16140 EOF
16141 if { (eval echo configure:16142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16142 rm -rf conftest*
16143 am_cv_lib_iconv=yes
16144 am_cv_func_iconv=yes
16145 else
16146 echo "configure: failed program was:" >&5
16147 cat conftest.$ac_ext >&5
16148 fi
16149 rm -f conftest*
16150 LIBS="$am_save_LIBS"
16151 fi
16152
16153 fi
16154
16155 echo "$ac_t""$am_cv_func_iconv" 1>&6
16156 if test "$am_cv_func_iconv" = yes; then
16157 cat >> confdefs.h <<\EOF
16158 #define HAVE_ICONV 1
16159 EOF
16160
16161 echo $ac_n "checking if iconv needs const""... $ac_c" 1>&6
16162 echo "configure:16163: checking if iconv needs const" >&5
16163 if eval "test \"`echo '$''{'wx_cv_func_iconv_const'+set}'`\" = set"; then
16164 echo $ac_n "(cached) $ac_c" 1>&6
16165 else
16166 cat > conftest.$ac_ext <<EOF
16167 #line 16168 "configure"
16168 #include "confdefs.h"
16169
16170 #include <stdlib.h>
16171 #include <iconv.h>
16172 extern
16173 #ifdef __cplusplus
16174 "C"
16175 #endif
16176 #if defined(__STDC__) || defined(__cplusplus)
16177 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
16178 #else
16179 size_t iconv();
16180 #endif
16181
16182 int main() {
16183
16184 ; return 0; }
16185 EOF
16186 if { (eval echo configure:16187: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16187 rm -rf conftest*
16188 wx_cv_func_iconv_const="no"
16189 else
16190 echo "configure: failed program was:" >&5
16191 cat conftest.$ac_ext >&5
16192 rm -rf conftest*
16193 wx_cv_func_iconv_const="yes"
16194
16195 fi
16196 rm -f conftest*
16197
16198 fi
16199
16200 echo "$ac_t""$wx_cv_func_iconv_const" 1>&6
16201
16202 iconv_const=
16203 if test "x$wx_cv_func_iconv_const" = "xyes"; then
16204 iconv_const="const"
16205 fi
16206
16207 cat >> confdefs.h <<EOF
16208 #define ICONV_CONST $iconv_const
16209 EOF
16210
16211 fi
16212 LIBICONV=
16213 if test "$am_cv_lib_iconv" = yes; then
16214 LIBICONV="-liconv"
16215 fi
16216
16217
16218 LIBS="$LIBICONV $LIBS"
16219 ac_ext=c
16220 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16221 ac_cpp='$CPP $CPPFLAGS'
16222 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16223 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16224 cross_compiling=$ac_cv_prog_cc_cross
16225
16226
16227 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
16228 for ac_func in sigaction
16229 do
16230 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16231 echo "configure:16232: checking for $ac_func" >&5
16232 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16233 echo $ac_n "(cached) $ac_c" 1>&6
16234 else
16235 cat > conftest.$ac_ext <<EOF
16236 #line 16237 "configure"
16237 #include "confdefs.h"
16238 /* System header to define __stub macros and hopefully few prototypes,
16239 which can conflict with char $ac_func(); below. */
16240 #include <assert.h>
16241 /* Override any gcc2 internal prototype to avoid an error. */
16242 /* We use char because int might match the return type of a gcc2
16243 builtin and then its argument prototype would still apply. */
16244 char $ac_func();
16245
16246 int main() {
16247
16248 /* The GNU C library defines this for functions which it implements
16249 to always fail with ENOSYS. Some functions are actually named
16250 something starting with __ and the normal name is an alias. */
16251 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16252 choke me
16253 #else
16254 $ac_func();
16255 #endif
16256
16257 ; return 0; }
16258 EOF
16259 if { (eval echo configure:16260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16260 rm -rf conftest*
16261 eval "ac_cv_func_$ac_func=yes"
16262 else
16263 echo "configure: failed program was:" >&5
16264 cat conftest.$ac_ext >&5
16265 rm -rf conftest*
16266 eval "ac_cv_func_$ac_func=no"
16267 fi
16268 rm -f conftest*
16269 fi
16270
16271 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16272 echo "$ac_t""yes" 1>&6
16273 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16274 cat >> confdefs.h <<EOF
16275 #define $ac_tr_func 1
16276 EOF
16277
16278 else
16279 echo "$ac_t""no" 1>&6
16280 fi
16281 done
16282
16283
16284 if test "$ac_cv_func_sigaction" = "no"; then
16285 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
16286 wxUSE_ON_FATAL_EXCEPTION=no
16287 fi
16288
16289 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16290
16291 ac_ext=C
16292 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16293 ac_cpp='$CXXCPP $CPPFLAGS'
16294 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16295 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16296 cross_compiling=$ac_cv_prog_cxx_cross
16297
16298
16299 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
16300 echo "configure:16301: checking for sa_handler type" >&5
16301 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
16302 echo $ac_n "(cached) $ac_c" 1>&6
16303 else
16304
16305 cat > conftest.$ac_ext <<EOF
16306 #line 16307 "configure"
16307 #include "confdefs.h"
16308 #include <signal.h>
16309 int main() {
16310
16311 extern void testSigHandler(int);
16312
16313 struct sigaction sa;
16314 sa.sa_handler = testSigHandler;
16315
16316 ; return 0; }
16317 EOF
16318 if { (eval echo configure:16319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16319 rm -rf conftest*
16320
16321 wx_cv_type_sa_handler=int
16322
16323 else
16324 echo "configure: failed program was:" >&5
16325 cat conftest.$ac_ext >&5
16326 rm -rf conftest*
16327
16328 wx_cv_type_sa_handler=void
16329
16330 fi
16331 rm -f conftest*
16332
16333 fi
16334
16335 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
16336
16337 ac_ext=c
16338 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16339 ac_cpp='$CPP $CPPFLAGS'
16340 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16341 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16342 cross_compiling=$ac_cv_prog_cc_cross
16343
16344
16345 cat >> confdefs.h <<EOF
16346 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
16347 EOF
16348
16349 fi
16350 fi
16351
16352 for ac_func in vfork
16353 do
16354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16355 echo "configure:16356: checking for $ac_func" >&5
16356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16357 echo $ac_n "(cached) $ac_c" 1>&6
16358 else
16359 cat > conftest.$ac_ext <<EOF
16360 #line 16361 "configure"
16361 #include "confdefs.h"
16362 /* System header to define __stub macros and hopefully few prototypes,
16363 which can conflict with char $ac_func(); below. */
16364 #include <assert.h>
16365 /* Override any gcc2 internal prototype to avoid an error. */
16366 /* We use char because int might match the return type of a gcc2
16367 builtin and then its argument prototype would still apply. */
16368 char $ac_func();
16369
16370 int main() {
16371
16372 /* The GNU C library defines this for functions which it implements
16373 to always fail with ENOSYS. Some functions are actually named
16374 something starting with __ and the normal name is an alias. */
16375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16376 choke me
16377 #else
16378 $ac_func();
16379 #endif
16380
16381 ; return 0; }
16382 EOF
16383 if { (eval echo configure:16384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16384 rm -rf conftest*
16385 eval "ac_cv_func_$ac_func=yes"
16386 else
16387 echo "configure: failed program was:" >&5
16388 cat conftest.$ac_ext >&5
16389 rm -rf conftest*
16390 eval "ac_cv_func_$ac_func=no"
16391 fi
16392 rm -f conftest*
16393 fi
16394
16395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16396 echo "$ac_t""yes" 1>&6
16397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16398 cat >> confdefs.h <<EOF
16399 #define $ac_tr_func 1
16400 EOF
16401
16402 else
16403 echo "$ac_t""no" 1>&6
16404 fi
16405 done
16406
16407
16408 for ac_func in mkstemp mktemp
16409 do
16410 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16411 echo "configure:16412: checking for $ac_func" >&5
16412 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16413 echo $ac_n "(cached) $ac_c" 1>&6
16414 else
16415 cat > conftest.$ac_ext <<EOF
16416 #line 16417 "configure"
16417 #include "confdefs.h"
16418 /* System header to define __stub macros and hopefully few prototypes,
16419 which can conflict with char $ac_func(); below. */
16420 #include <assert.h>
16421 /* Override any gcc2 internal prototype to avoid an error. */
16422 /* We use char because int might match the return type of a gcc2
16423 builtin and then its argument prototype would still apply. */
16424 char $ac_func();
16425
16426 int main() {
16427
16428 /* The GNU C library defines this for functions which it implements
16429 to always fail with ENOSYS. Some functions are actually named
16430 something starting with __ and the normal name is an alias. */
16431 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16432 choke me
16433 #else
16434 $ac_func();
16435 #endif
16436
16437 ; return 0; }
16438 EOF
16439 if { (eval echo configure:16440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16440 rm -rf conftest*
16441 eval "ac_cv_func_$ac_func=yes"
16442 else
16443 echo "configure: failed program was:" >&5
16444 cat conftest.$ac_ext >&5
16445 rm -rf conftest*
16446 eval "ac_cv_func_$ac_func=no"
16447 fi
16448 rm -f conftest*
16449 fi
16450
16451 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16452 echo "$ac_t""yes" 1>&6
16453 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16454 cat >> confdefs.h <<EOF
16455 #define $ac_tr_func 1
16456 EOF
16457 break
16458 else
16459 echo "$ac_t""no" 1>&6
16460 fi
16461 done
16462
16463
16464 echo $ac_n "checking for statfs""... $ac_c" 1>&6
16465 echo "configure:16466: checking for statfs" >&5
16466 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
16467 echo $ac_n "(cached) $ac_c" 1>&6
16468 else
16469 cat > conftest.$ac_ext <<EOF
16470 #line 16471 "configure"
16471 #include "confdefs.h"
16472
16473 #if defined(__BSD__)
16474 #include <sys/param.h>
16475 #include <sys/mount.h>
16476 #else
16477 #include <sys/vfs.h>
16478 #endif
16479
16480 int main() {
16481
16482 long l;
16483 struct statfs fs;
16484 statfs("/", &fs);
16485 l = fs.f_bsize;
16486 l += fs.f_blocks;
16487 l += fs.f_bavail;
16488
16489 ; return 0; }
16490 EOF
16491 if { (eval echo configure:16492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16492 rm -rf conftest*
16493
16494 wx_cv_func_statfs=yes
16495
16496 else
16497 echo "configure: failed program was:" >&5
16498 cat conftest.$ac_ext >&5
16499 rm -rf conftest*
16500
16501 wx_cv_func_statfs=no
16502
16503
16504 fi
16505 rm -f conftest*
16506
16507 fi
16508
16509 echo "$ac_t""$wx_cv_func_statfs" 1>&6
16510
16511 if test "$wx_cv_func_statfs" = "yes"; then
16512 cat >> confdefs.h <<\EOF
16513 #define HAVE_STATFS 1
16514 EOF
16515
16516 else
16517 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
16518 echo "configure:16519: checking for statvfs" >&5
16519 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
16520 echo $ac_n "(cached) $ac_c" 1>&6
16521 else
16522 cat > conftest.$ac_ext <<EOF
16523 #line 16524 "configure"
16524 #include "confdefs.h"
16525
16526 #include <sys/statvfs.h>
16527
16528 int main() {
16529
16530 long l;
16531 struct statvfs fs;
16532 statvfs("/", &fs);
16533 l = fs.f_bsize;
16534 l += fs.f_blocks;
16535 l += fs.f_bavail;
16536
16537 ; return 0; }
16538 EOF
16539 if { (eval echo configure:16540: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16540 rm -rf conftest*
16541
16542 wx_cv_func_statvfs=yes
16543
16544 else
16545 echo "configure: failed program was:" >&5
16546 cat conftest.$ac_ext >&5
16547 rm -rf conftest*
16548
16549 wx_cv_func_statvfs=no
16550
16551
16552 fi
16553 rm -f conftest*
16554
16555 fi
16556
16557 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
16558
16559 if test "$wx_cv_func_statvfs" = "yes"; then
16560 cat >> confdefs.h <<\EOF
16561 #define HAVE_STATVFS 1
16562 EOF
16563
16564 else
16565 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
16566 fi
16567 fi
16568
16569 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16570 for ac_func in fcntl flock
16571 do
16572 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16573 echo "configure:16574: checking for $ac_func" >&5
16574 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16575 echo $ac_n "(cached) $ac_c" 1>&6
16576 else
16577 cat > conftest.$ac_ext <<EOF
16578 #line 16579 "configure"
16579 #include "confdefs.h"
16580 /* System header to define __stub macros and hopefully few prototypes,
16581 which can conflict with char $ac_func(); below. */
16582 #include <assert.h>
16583 /* Override any gcc2 internal prototype to avoid an error. */
16584 /* We use char because int might match the return type of a gcc2
16585 builtin and then its argument prototype would still apply. */
16586 char $ac_func();
16587
16588 int main() {
16589
16590 /* The GNU C library defines this for functions which it implements
16591 to always fail with ENOSYS. Some functions are actually named
16592 something starting with __ and the normal name is an alias. */
16593 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16594 choke me
16595 #else
16596 $ac_func();
16597 #endif
16598
16599 ; return 0; }
16600 EOF
16601 if { (eval echo configure:16602: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16602 rm -rf conftest*
16603 eval "ac_cv_func_$ac_func=yes"
16604 else
16605 echo "configure: failed program was:" >&5
16606 cat conftest.$ac_ext >&5
16607 rm -rf conftest*
16608 eval "ac_cv_func_$ac_func=no"
16609 fi
16610 rm -f conftest*
16611 fi
16612
16613 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16614 echo "$ac_t""yes" 1>&6
16615 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16616 cat >> confdefs.h <<EOF
16617 #define $ac_tr_func 1
16618 EOF
16619 break
16620 else
16621 echo "$ac_t""no" 1>&6
16622 fi
16623 done
16624
16625
16626 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
16627 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
16628 wxUSE_SNGLINST_CHECKER=no
16629 fi
16630 fi
16631
16632 for ac_func in timegm
16633 do
16634 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16635 echo "configure:16636: checking for $ac_func" >&5
16636 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16637 echo $ac_n "(cached) $ac_c" 1>&6
16638 else
16639 cat > conftest.$ac_ext <<EOF
16640 #line 16641 "configure"
16641 #include "confdefs.h"
16642 /* System header to define __stub macros and hopefully few prototypes,
16643 which can conflict with char $ac_func(); below. */
16644 #include <assert.h>
16645 /* Override any gcc2 internal prototype to avoid an error. */
16646 /* We use char because int might match the return type of a gcc2
16647 builtin and then its argument prototype would still apply. */
16648 char $ac_func();
16649
16650 int main() {
16651
16652 /* The GNU C library defines this for functions which it implements
16653 to always fail with ENOSYS. Some functions are actually named
16654 something starting with __ and the normal name is an alias. */
16655 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16656 choke me
16657 #else
16658 $ac_func();
16659 #endif
16660
16661 ; return 0; }
16662 EOF
16663 if { (eval echo configure:16664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16664 rm -rf conftest*
16665 eval "ac_cv_func_$ac_func=yes"
16666 else
16667 echo "configure: failed program was:" >&5
16668 cat conftest.$ac_ext >&5
16669 rm -rf conftest*
16670 eval "ac_cv_func_$ac_func=no"
16671 fi
16672 rm -f conftest*
16673 fi
16674
16675 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16676 echo "$ac_t""yes" 1>&6
16677 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16678 cat >> confdefs.h <<EOF
16679 #define $ac_tr_func 1
16680 EOF
16681
16682 else
16683 echo "$ac_t""no" 1>&6
16684 fi
16685 done
16686
16687
16688 for ac_func in putenv setenv
16689 do
16690 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16691 echo "configure:16692: checking for $ac_func" >&5
16692 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16693 echo $ac_n "(cached) $ac_c" 1>&6
16694 else
16695 cat > conftest.$ac_ext <<EOF
16696 #line 16697 "configure"
16697 #include "confdefs.h"
16698 /* System header to define __stub macros and hopefully few prototypes,
16699 which can conflict with char $ac_func(); below. */
16700 #include <assert.h>
16701 /* Override any gcc2 internal prototype to avoid an error. */
16702 /* We use char because int might match the return type of a gcc2
16703 builtin and then its argument prototype would still apply. */
16704 char $ac_func();
16705
16706 int main() {
16707
16708 /* The GNU C library defines this for functions which it implements
16709 to always fail with ENOSYS. Some functions are actually named
16710 something starting with __ and the normal name is an alias. */
16711 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16712 choke me
16713 #else
16714 $ac_func();
16715 #endif
16716
16717 ; return 0; }
16718 EOF
16719 if { (eval echo configure:16720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16720 rm -rf conftest*
16721 eval "ac_cv_func_$ac_func=yes"
16722 else
16723 echo "configure: failed program was:" >&5
16724 cat conftest.$ac_ext >&5
16725 rm -rf conftest*
16726 eval "ac_cv_func_$ac_func=no"
16727 fi
16728 rm -f conftest*
16729 fi
16730
16731 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16732 echo "$ac_t""yes" 1>&6
16733 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16734 cat >> confdefs.h <<EOF
16735 #define $ac_tr_func 1
16736 EOF
16737 break
16738 else
16739 echo "$ac_t""no" 1>&6
16740 fi
16741 done
16742
16743
16744 HAVE_SOME_SLEEP_FUNC=0
16745 if test "$USE_BEOS" = 1; then
16746 cat >> confdefs.h <<\EOF
16747 #define HAVE_SLEEP 1
16748 EOF
16749
16750 HAVE_SOME_SLEEP_FUNC=1
16751 fi
16752
16753 if test "$USE_DARWIN" = 1; then
16754 cat >> confdefs.h <<\EOF
16755 #define HAVE_USLEEP 1
16756 EOF
16757
16758 HAVE_SOME_SLEEP_FUNC=1
16759 fi
16760
16761 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
16762 POSIX4_LINK=
16763 for ac_func in nanosleep
16764 do
16765 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16766 echo "configure:16767: checking for $ac_func" >&5
16767 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16768 echo $ac_n "(cached) $ac_c" 1>&6
16769 else
16770 cat > conftest.$ac_ext <<EOF
16771 #line 16772 "configure"
16772 #include "confdefs.h"
16773 /* System header to define __stub macros and hopefully few prototypes,
16774 which can conflict with char $ac_func(); below. */
16775 #include <assert.h>
16776 /* Override any gcc2 internal prototype to avoid an error. */
16777 /* We use char because int might match the return type of a gcc2
16778 builtin and then its argument prototype would still apply. */
16779 char $ac_func();
16780
16781 int main() {
16782
16783 /* The GNU C library defines this for functions which it implements
16784 to always fail with ENOSYS. Some functions are actually named
16785 something starting with __ and the normal name is an alias. */
16786 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16787 choke me
16788 #else
16789 $ac_func();
16790 #endif
16791
16792 ; return 0; }
16793 EOF
16794 if { (eval echo configure:16795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16795 rm -rf conftest*
16796 eval "ac_cv_func_$ac_func=yes"
16797 else
16798 echo "configure: failed program was:" >&5
16799 cat conftest.$ac_ext >&5
16800 rm -rf conftest*
16801 eval "ac_cv_func_$ac_func=no"
16802 fi
16803 rm -f conftest*
16804 fi
16805
16806 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16807 echo "$ac_t""yes" 1>&6
16808 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16809 cat >> confdefs.h <<EOF
16810 #define $ac_tr_func 1
16811 EOF
16812 cat >> confdefs.h <<\EOF
16813 #define HAVE_NANOSLEEP 1
16814 EOF
16815
16816 else
16817 echo "$ac_t""no" 1>&6
16818 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
16819 echo "configure:16820: checking for nanosleep in -lposix4" >&5
16820 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
16821 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16822 echo $ac_n "(cached) $ac_c" 1>&6
16823 else
16824 ac_save_LIBS="$LIBS"
16825 LIBS="-lposix4 $LIBS"
16826 cat > conftest.$ac_ext <<EOF
16827 #line 16828 "configure"
16828 #include "confdefs.h"
16829 /* Override any gcc2 internal prototype to avoid an error. */
16830 /* We use char because int might match the return type of a gcc2
16831 builtin and then its argument prototype would still apply. */
16832 char nanosleep();
16833
16834 int main() {
16835 nanosleep()
16836 ; return 0; }
16837 EOF
16838 if { (eval echo configure:16839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16839 rm -rf conftest*
16840 eval "ac_cv_lib_$ac_lib_var=yes"
16841 else
16842 echo "configure: failed program was:" >&5
16843 cat conftest.$ac_ext >&5
16844 rm -rf conftest*
16845 eval "ac_cv_lib_$ac_lib_var=no"
16846 fi
16847 rm -f conftest*
16848 LIBS="$ac_save_LIBS"
16849
16850 fi
16851 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16852 echo "$ac_t""yes" 1>&6
16853
16854 cat >> confdefs.h <<\EOF
16855 #define HAVE_NANOSLEEP 1
16856 EOF
16857
16858 POSIX4_LINK=" -lposix4"
16859
16860 else
16861 echo "$ac_t""no" 1>&6
16862
16863 for ac_func in usleep
16864 do
16865 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16866 echo "configure:16867: checking for $ac_func" >&5
16867 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16868 echo $ac_n "(cached) $ac_c" 1>&6
16869 else
16870 cat > conftest.$ac_ext <<EOF
16871 #line 16872 "configure"
16872 #include "confdefs.h"
16873 /* System header to define __stub macros and hopefully few prototypes,
16874 which can conflict with char $ac_func(); below. */
16875 #include <assert.h>
16876 /* Override any gcc2 internal prototype to avoid an error. */
16877 /* We use char because int might match the return type of a gcc2
16878 builtin and then its argument prototype would still apply. */
16879 char $ac_func();
16880
16881 int main() {
16882
16883 /* The GNU C library defines this for functions which it implements
16884 to always fail with ENOSYS. Some functions are actually named
16885 something starting with __ and the normal name is an alias. */
16886 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16887 choke me
16888 #else
16889 $ac_func();
16890 #endif
16891
16892 ; return 0; }
16893 EOF
16894 if { (eval echo configure:16895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16895 rm -rf conftest*
16896 eval "ac_cv_func_$ac_func=yes"
16897 else
16898 echo "configure: failed program was:" >&5
16899 cat conftest.$ac_ext >&5
16900 rm -rf conftest*
16901 eval "ac_cv_func_$ac_func=no"
16902 fi
16903 rm -f conftest*
16904 fi
16905
16906 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16907 echo "$ac_t""yes" 1>&6
16908 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16909 cat >> confdefs.h <<EOF
16910 #define $ac_tr_func 1
16911 EOF
16912 cat >> confdefs.h <<\EOF
16913 #define HAVE_USLEEP 1
16914 EOF
16915
16916 else
16917 echo "$ac_t""no" 1>&6
16918 echo "configure: warning: wxSleep() function will not work" 1>&2
16919
16920 fi
16921 done
16922
16923
16924
16925 fi
16926
16927
16928
16929 fi
16930 done
16931
16932 fi
16933
16934 for ac_func in uname gethostname
16935 do
16936 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16937 echo "configure:16938: checking for $ac_func" >&5
16938 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16939 echo $ac_n "(cached) $ac_c" 1>&6
16940 else
16941 cat > conftest.$ac_ext <<EOF
16942 #line 16943 "configure"
16943 #include "confdefs.h"
16944 /* System header to define __stub macros and hopefully few prototypes,
16945 which can conflict with char $ac_func(); below. */
16946 #include <assert.h>
16947 /* Override any gcc2 internal prototype to avoid an error. */
16948 /* We use char because int might match the return type of a gcc2
16949 builtin and then its argument prototype would still apply. */
16950 char $ac_func();
16951
16952 int main() {
16953
16954 /* The GNU C library defines this for functions which it implements
16955 to always fail with ENOSYS. Some functions are actually named
16956 something starting with __ and the normal name is an alias. */
16957 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16958 choke me
16959 #else
16960 $ac_func();
16961 #endif
16962
16963 ; return 0; }
16964 EOF
16965 if { (eval echo configure:16966: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16966 rm -rf conftest*
16967 eval "ac_cv_func_$ac_func=yes"
16968 else
16969 echo "configure: failed program was:" >&5
16970 cat conftest.$ac_ext >&5
16971 rm -rf conftest*
16972 eval "ac_cv_func_$ac_func=no"
16973 fi
16974 rm -f conftest*
16975 fi
16976
16977 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16978 echo "$ac_t""yes" 1>&6
16979 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16980 cat >> confdefs.h <<EOF
16981 #define $ac_tr_func 1
16982 EOF
16983 break
16984 else
16985 echo "$ac_t""no" 1>&6
16986 fi
16987 done
16988
16989
16990
16991 ac_ext=C
16992 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16993 ac_cpp='$CXXCPP $CPPFLAGS'
16994 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16995 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16996 cross_compiling=$ac_cv_prog_cxx_cross
16997
16998
16999 for ac_func in strtok_r
17000 do
17001 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17002 echo "configure:17003: checking for $ac_func" >&5
17003 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17004 echo $ac_n "(cached) $ac_c" 1>&6
17005 else
17006 cat > conftest.$ac_ext <<EOF
17007 #line 17008 "configure"
17008 #include "confdefs.h"
17009 /* System header to define __stub macros and hopefully few prototypes,
17010 which can conflict with char $ac_func(); below. */
17011 #include <assert.h>
17012 /* Override any gcc2 internal prototype to avoid an error. */
17013 #ifdef __cplusplus
17014 extern "C"
17015 #endif
17016 /* We use char because int might match the return type of a gcc2
17017 builtin and then its argument prototype would still apply. */
17018 char $ac_func();
17019
17020 int main() {
17021
17022 /* The GNU C library defines this for functions which it implements
17023 to always fail with ENOSYS. Some functions are actually named
17024 something starting with __ and the normal name is an alias. */
17025 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17026 choke me
17027 #else
17028 $ac_func();
17029 #endif
17030
17031 ; return 0; }
17032 EOF
17033 if { (eval echo configure:17034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17034 rm -rf conftest*
17035 eval "ac_cv_func_$ac_func=yes"
17036 else
17037 echo "configure: failed program was:" >&5
17038 cat conftest.$ac_ext >&5
17039 rm -rf conftest*
17040 eval "ac_cv_func_$ac_func=no"
17041 fi
17042 rm -f conftest*
17043 fi
17044
17045 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17046 echo "$ac_t""yes" 1>&6
17047 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17048 cat >> confdefs.h <<EOF
17049 #define $ac_tr_func 1
17050 EOF
17051
17052 else
17053 echo "$ac_t""no" 1>&6
17054 fi
17055 done
17056
17057
17058 ac_ext=c
17059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17060 ac_cpp='$CPP $CPPFLAGS'
17061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17063 cross_compiling=$ac_cv_prog_cc_cross
17064
17065
17066 INET_LINK=
17067 for ac_func in inet_addr
17068 do
17069 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17070 echo "configure:17071: checking for $ac_func" >&5
17071 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17072 echo $ac_n "(cached) $ac_c" 1>&6
17073 else
17074 cat > conftest.$ac_ext <<EOF
17075 #line 17076 "configure"
17076 #include "confdefs.h"
17077 /* System header to define __stub macros and hopefully few prototypes,
17078 which can conflict with char $ac_func(); below. */
17079 #include <assert.h>
17080 /* Override any gcc2 internal prototype to avoid an error. */
17081 /* We use char because int might match the return type of a gcc2
17082 builtin and then its argument prototype would still apply. */
17083 char $ac_func();
17084
17085 int main() {
17086
17087 /* The GNU C library defines this for functions which it implements
17088 to always fail with ENOSYS. Some functions are actually named
17089 something starting with __ and the normal name is an alias. */
17090 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17091 choke me
17092 #else
17093 $ac_func();
17094 #endif
17095
17096 ; return 0; }
17097 EOF
17098 if { (eval echo configure:17099: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17099 rm -rf conftest*
17100 eval "ac_cv_func_$ac_func=yes"
17101 else
17102 echo "configure: failed program was:" >&5
17103 cat conftest.$ac_ext >&5
17104 rm -rf conftest*
17105 eval "ac_cv_func_$ac_func=no"
17106 fi
17107 rm -f conftest*
17108 fi
17109
17110 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17111 echo "$ac_t""yes" 1>&6
17112 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17113 cat >> confdefs.h <<EOF
17114 #define $ac_tr_func 1
17115 EOF
17116 cat >> confdefs.h <<\EOF
17117 #define HAVE_INET_ADDR 1
17118 EOF
17119
17120 else
17121 echo "$ac_t""no" 1>&6
17122 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
17123 echo "configure:17124: checking for inet_addr in -lnsl" >&5
17124 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
17125 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17126 echo $ac_n "(cached) $ac_c" 1>&6
17127 else
17128 ac_save_LIBS="$LIBS"
17129 LIBS="-lnsl $LIBS"
17130 cat > conftest.$ac_ext <<EOF
17131 #line 17132 "configure"
17132 #include "confdefs.h"
17133 /* Override any gcc2 internal prototype to avoid an error. */
17134 /* We use char because int might match the return type of a gcc2
17135 builtin and then its argument prototype would still apply. */
17136 char inet_addr();
17137
17138 int main() {
17139 inet_addr()
17140 ; return 0; }
17141 EOF
17142 if { (eval echo configure:17143: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17143 rm -rf conftest*
17144 eval "ac_cv_lib_$ac_lib_var=yes"
17145 else
17146 echo "configure: failed program was:" >&5
17147 cat conftest.$ac_ext >&5
17148 rm -rf conftest*
17149 eval "ac_cv_lib_$ac_lib_var=no"
17150 fi
17151 rm -f conftest*
17152 LIBS="$ac_save_LIBS"
17153
17154 fi
17155 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17156 echo "$ac_t""yes" 1>&6
17157 INET_LINK="nsl"
17158 else
17159 echo "$ac_t""no" 1>&6
17160 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
17161 echo "configure:17162: checking for inet_addr in -lresolv" >&5
17162 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
17163 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17164 echo $ac_n "(cached) $ac_c" 1>&6
17165 else
17166 ac_save_LIBS="$LIBS"
17167 LIBS="-lresolv $LIBS"
17168 cat > conftest.$ac_ext <<EOF
17169 #line 17170 "configure"
17170 #include "confdefs.h"
17171 /* Override any gcc2 internal prototype to avoid an error. */
17172 /* We use char because int might match the return type of a gcc2
17173 builtin and then its argument prototype would still apply. */
17174 char inet_addr();
17175
17176 int main() {
17177 inet_addr()
17178 ; return 0; }
17179 EOF
17180 if { (eval echo configure:17181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17181 rm -rf conftest*
17182 eval "ac_cv_lib_$ac_lib_var=yes"
17183 else
17184 echo "configure: failed program was:" >&5
17185 cat conftest.$ac_ext >&5
17186 rm -rf conftest*
17187 eval "ac_cv_lib_$ac_lib_var=no"
17188 fi
17189 rm -f conftest*
17190 LIBS="$ac_save_LIBS"
17191
17192 fi
17193 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17194 echo "$ac_t""yes" 1>&6
17195 INET_LINK="resolv"
17196 else
17197 echo "$ac_t""no" 1>&6
17198 echo $ac_n "checking for inet_addr in -lsocket""... $ac_c" 1>&6
17199 echo "configure:17200: checking for inet_addr in -lsocket" >&5
17200 ac_lib_var=`echo socket'_'inet_addr | sed 'y%./+-%__p_%'`
17201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17202 echo $ac_n "(cached) $ac_c" 1>&6
17203 else
17204 ac_save_LIBS="$LIBS"
17205 LIBS="-lsocket $LIBS"
17206 cat > conftest.$ac_ext <<EOF
17207 #line 17208 "configure"
17208 #include "confdefs.h"
17209 /* Override any gcc2 internal prototype to avoid an error. */
17210 /* We use char because int might match the return type of a gcc2
17211 builtin and then its argument prototype would still apply. */
17212 char inet_addr();
17213
17214 int main() {
17215 inet_addr()
17216 ; return 0; }
17217 EOF
17218 if { (eval echo configure:17219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17219 rm -rf conftest*
17220 eval "ac_cv_lib_$ac_lib_var=yes"
17221 else
17222 echo "configure: failed program was:" >&5
17223 cat conftest.$ac_ext >&5
17224 rm -rf conftest*
17225 eval "ac_cv_lib_$ac_lib_var=no"
17226 fi
17227 rm -f conftest*
17228 LIBS="$ac_save_LIBS"
17229
17230 fi
17231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17232 echo "$ac_t""yes" 1>&6
17233 INET_LINK="socket"
17234
17235 else
17236 echo "$ac_t""no" 1>&6
17237 fi
17238
17239
17240 fi
17241
17242
17243 fi
17244
17245
17246
17247 fi
17248 done
17249
17250
17251 for ac_func in inet_aton
17252 do
17253 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17254 echo "configure:17255: checking for $ac_func" >&5
17255 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17256 echo $ac_n "(cached) $ac_c" 1>&6
17257 else
17258 cat > conftest.$ac_ext <<EOF
17259 #line 17260 "configure"
17260 #include "confdefs.h"
17261 /* System header to define __stub macros and hopefully few prototypes,
17262 which can conflict with char $ac_func(); below. */
17263 #include <assert.h>
17264 /* Override any gcc2 internal prototype to avoid an error. */
17265 /* We use char because int might match the return type of a gcc2
17266 builtin and then its argument prototype would still apply. */
17267 char $ac_func();
17268
17269 int main() {
17270
17271 /* The GNU C library defines this for functions which it implements
17272 to always fail with ENOSYS. Some functions are actually named
17273 something starting with __ and the normal name is an alias. */
17274 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17275 choke me
17276 #else
17277 $ac_func();
17278 #endif
17279
17280 ; return 0; }
17281 EOF
17282 if { (eval echo configure:17283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17283 rm -rf conftest*
17284 eval "ac_cv_func_$ac_func=yes"
17285 else
17286 echo "configure: failed program was:" >&5
17287 cat conftest.$ac_ext >&5
17288 rm -rf conftest*
17289 eval "ac_cv_func_$ac_func=no"
17290 fi
17291 rm -f conftest*
17292 fi
17293
17294 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17295 echo "$ac_t""yes" 1>&6
17296 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17297 cat >> confdefs.h <<EOF
17298 #define $ac_tr_func 1
17299 EOF
17300 cat >> confdefs.h <<\EOF
17301 #define HAVE_INET_ATON 1
17302 EOF
17303
17304 else
17305 echo "$ac_t""no" 1>&6
17306 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
17307 echo "configure:17308: checking for inet_aton in -l$INET_LINK" >&5
17308 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
17309 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17310 echo $ac_n "(cached) $ac_c" 1>&6
17311 else
17312 ac_save_LIBS="$LIBS"
17313 LIBS="-l$INET_LINK $LIBS"
17314 cat > conftest.$ac_ext <<EOF
17315 #line 17316 "configure"
17316 #include "confdefs.h"
17317 /* Override any gcc2 internal prototype to avoid an error. */
17318 /* We use char because int might match the return type of a gcc2
17319 builtin and then its argument prototype would still apply. */
17320 char inet_aton();
17321
17322 int main() {
17323 inet_aton()
17324 ; return 0; }
17325 EOF
17326 if { (eval echo configure:17327: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17327 rm -rf conftest*
17328 eval "ac_cv_lib_$ac_lib_var=yes"
17329 else
17330 echo "configure: failed program was:" >&5
17331 cat conftest.$ac_ext >&5
17332 rm -rf conftest*
17333 eval "ac_cv_lib_$ac_lib_var=no"
17334 fi
17335 rm -f conftest*
17336 LIBS="$ac_save_LIBS"
17337
17338 fi
17339 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17340 echo "$ac_t""yes" 1>&6
17341 cat >> confdefs.h <<\EOF
17342 #define HAVE_INET_ATON 1
17343 EOF
17344
17345 else
17346 echo "$ac_t""no" 1>&6
17347 fi
17348
17349
17350 fi
17351 done
17352
17353
17354 if test "x$INET_LINK" != "x"; then
17355 cat >> confdefs.h <<\EOF
17356 #define HAVE_INET_ADDR 1
17357 EOF
17358
17359 INET_LINK=" -l$INET_LINK"
17360 fi
17361
17362 fi
17363
17364
17365 cat > confcache <<\EOF
17366 # This file is a shell script that caches the results of configure
17367 # tests run on this system so they can be shared between configure
17368 # scripts and configure runs. It is not useful on other systems.
17369 # If it contains results you don't want to keep, you may remove or edit it.
17370 #
17371 # By default, configure uses ./config.cache as the cache file,
17372 # creating it if it does not exist already. You can give configure
17373 # the --cache-file=FILE option to use a different cache file; that is
17374 # what configure does when it calls configure scripts in
17375 # subdirectories, so they share the cache.
17376 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17377 # config.status only pays attention to the cache file if you give it the
17378 # --recheck option to rerun configure.
17379 #
17380 EOF
17381 # The following way of writing the cache mishandles newlines in values,
17382 # but we know of no workaround that is simple, portable, and efficient.
17383 # So, don't put newlines in cache variables' values.
17384 # Ultrix sh set writes to stderr and can't be redirected directly,
17385 # and sets the high bit in the cache file unless we assign to the vars.
17386 (set) 2>&1 |
17387 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17388 *ac_space=\ *)
17389 # `set' does not quote correctly, so add quotes (double-quote substitution
17390 # turns \\\\ into \\, and sed turns \\ into \).
17391 sed -n \
17392 -e "s/'/'\\\\''/g" \
17393 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17394 ;;
17395 *)
17396 # `set' quotes correctly as required by POSIX, so do not add quotes.
17397 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17398 ;;
17399 esac >> confcache
17400 if cmp -s $cache_file confcache; then
17401 :
17402 else
17403 if test -w $cache_file; then
17404 echo "updating cache $cache_file"
17405 cat confcache > $cache_file
17406 else
17407 echo "not updating unwritable cache $cache_file"
17408 fi
17409 fi
17410 rm -f confcache
17411
17412
17413
17414 CPP_MT_FLAG=
17415 if test "$TOOLKIT" != "MSW"; then
17416
17417
17418 THREADS_LINK=
17419 THREADS_CFLAGS=
17420
17421 if test "$wxUSE_THREADS" = "yes" ; then
17422 if test "$wxUSE_WINE" = 1 ; then
17423 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
17424 wxUSE_THREADS="no"
17425 elif test "$USE_BEOS" = 1; then
17426 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
17427 wxUSE_THREADS="no"
17428 fi
17429 fi
17430
17431 if test "$wxUSE_THREADS" = "yes" ; then
17432
17433
17434 THREAD_OPTS="-pthread"
17435 case "${host}" in
17436 *-*-solaris2* | *-*-sunos4* )
17437 if test "x$GCC" = "xyes"; then
17438 THREAD_OPTS="-pthreads $THREAD_OPTS"
17439 else
17440 THREAD_OPTS="-mt $THREAD_OPTS"
17441 fi
17442 ;;
17443 *-*-freebsd*)
17444 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
17445 ;;
17446 *-*-darwin* | *-*-cygwin* )
17447 THREAD_OPTS=""
17448 ;;
17449 *-*-aix*)
17450 THREAD_OPTS="pthreads"
17451 ;;
17452 esac
17453
17454 THREAD_OPTS="$THREAD_OPTS pthread none"
17455
17456 THREADS_OK=no
17457 for flag in $THREAD_OPTS; do
17458 case $flag in
17459 none)
17460 echo $ac_n "checking whether pthreads work without any flags""... $ac_c" 1>&6
17461 echo "configure:17462: checking whether pthreads work without any flags" >&5
17462 ;;
17463
17464 -*)
17465 echo $ac_n "checking whether pthreads work with $flag""... $ac_c" 1>&6
17466 echo "configure:17467: checking whether pthreads work with $flag" >&5
17467 THREADS_CFLAGS="$flag"
17468 ;;
17469
17470 *)
17471 echo $ac_n "checking for the pthreads library -l$flag""... $ac_c" 1>&6
17472 echo "configure:17473: checking for the pthreads library -l$flag" >&5
17473 THREADS_LINK="-l$flag"
17474 ;;
17475 esac
17476
17477 save_LIBS="$LIBS"
17478 save_CFLAGS="$CFLAGS"
17479 LIBS="$THREADS_LINK $LIBS"
17480 CFLAGS="$THREADS_CFLAGS $CFLAGS"
17481
17482 cat > conftest.$ac_ext <<EOF
17483 #line 17484 "configure"
17484 #include "confdefs.h"
17485 #include <pthread.h>
17486 int main() {
17487 pthread_create(0,0,0,0);
17488 ; return 0; }
17489 EOF
17490 if { (eval echo configure:17491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17491 rm -rf conftest*
17492 THREADS_OK=yes
17493 else
17494 echo "configure: failed program was:" >&5
17495 cat conftest.$ac_ext >&5
17496 fi
17497 rm -f conftest*
17498
17499 LIBS="$save_LIBS"
17500 CFLAGS="$save_CFLAGS"
17501
17502 echo "$ac_t""$THREADS_OK" 1>&6
17503 if test "x$THREADS_OK" = "xyes"; then
17504 break;
17505 fi
17506
17507 THREADS_LINK=""
17508 THREADS_CFLAGS=""
17509 done
17510
17511 if test "x$THREADS_OK" != "xyes"; then
17512 wxUSE_THREADS=no
17513 echo "configure: warning: No thread support on this system... disabled" 1>&2
17514 else
17515 LIBS="$THREADS_LINK $THREADS_CFLAGS $LIBS"
17516
17517 echo $ac_n "checking if more special flags are required for pthreads""... $ac_c" 1>&6
17518 echo "configure:17519: checking if more special flags are required for pthreads" >&5
17519 flag=no
17520 case "${host}" in
17521 *-aix* | *-freebsd*)
17522 flag="-D_THREAD_SAFE"
17523 ;;
17524 *solaris* | alpha*-osf*)
17525 flag="-D_REENTRANT"
17526 ;;
17527 esac
17528 echo "$ac_t""${flag}" 1>&6
17529 if test "x$flag" != xno; then
17530 THREADS_CFLAGS="$THREADS_CFLAGS $flag"
17531 fi
17532
17533 if test "x$THREADS_CFLAGS" != "x"; then
17534 CFLAGS="$CFLAGS $THREADS_CFLAGS"
17535 CXXFLAGS="$CXXFLAGS $THREADS_CFLAGS"
17536 fi
17537 fi
17538 fi
17539
17540 if test "$wxUSE_THREADS" = "yes" ; then
17541 for ac_func in thr_setconcurrency
17542 do
17543 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17544 echo "configure:17545: checking for $ac_func" >&5
17545 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17546 echo $ac_n "(cached) $ac_c" 1>&6
17547 else
17548 cat > conftest.$ac_ext <<EOF
17549 #line 17550 "configure"
17550 #include "confdefs.h"
17551 /* System header to define __stub macros and hopefully few prototypes,
17552 which can conflict with char $ac_func(); below. */
17553 #include <assert.h>
17554 /* Override any gcc2 internal prototype to avoid an error. */
17555 /* We use char because int might match the return type of a gcc2
17556 builtin and then its argument prototype would still apply. */
17557 char $ac_func();
17558
17559 int main() {
17560
17561 /* The GNU C library defines this for functions which it implements
17562 to always fail with ENOSYS. Some functions are actually named
17563 something starting with __ and the normal name is an alias. */
17564 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17565 choke me
17566 #else
17567 $ac_func();
17568 #endif
17569
17570 ; return 0; }
17571 EOF
17572 if { (eval echo configure:17573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17573 rm -rf conftest*
17574 eval "ac_cv_func_$ac_func=yes"
17575 else
17576 echo "configure: failed program was:" >&5
17577 cat conftest.$ac_ext >&5
17578 rm -rf conftest*
17579 eval "ac_cv_func_$ac_func=no"
17580 fi
17581 rm -f conftest*
17582 fi
17583
17584 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17585 echo "$ac_t""yes" 1>&6
17586 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17587 cat >> confdefs.h <<EOF
17588 #define $ac_tr_func 1
17589 EOF
17590
17591 else
17592 echo "$ac_t""no" 1>&6
17593 fi
17594 done
17595
17596
17597 for ac_hdr in sched.h
17598 do
17599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17601 echo "configure:17602: checking for $ac_hdr" >&5
17602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17603 echo $ac_n "(cached) $ac_c" 1>&6
17604 else
17605 cat > conftest.$ac_ext <<EOF
17606 #line 17607 "configure"
17607 #include "confdefs.h"
17608 #include <$ac_hdr>
17609 EOF
17610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17611 { (eval echo configure:17612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17613 if test -z "$ac_err"; then
17614 rm -rf conftest*
17615 eval "ac_cv_header_$ac_safe=yes"
17616 else
17617 echo "$ac_err" >&5
17618 echo "configure: failed program was:" >&5
17619 cat conftest.$ac_ext >&5
17620 rm -rf conftest*
17621 eval "ac_cv_header_$ac_safe=no"
17622 fi
17623 rm -f conftest*
17624 fi
17625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17626 echo "$ac_t""yes" 1>&6
17627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17628 cat >> confdefs.h <<EOF
17629 #define $ac_tr_hdr 1
17630 EOF
17631
17632 else
17633 echo "$ac_t""no" 1>&6
17634 fi
17635 done
17636
17637 if test "$ac_cv_header_sched_h" = "yes"; then
17638 echo $ac_n "checking for sched_yield""... $ac_c" 1>&6
17639 echo "configure:17640: checking for sched_yield" >&5
17640 if eval "test \"`echo '$''{'ac_cv_func_sched_yield'+set}'`\" = set"; then
17641 echo $ac_n "(cached) $ac_c" 1>&6
17642 else
17643 cat > conftest.$ac_ext <<EOF
17644 #line 17645 "configure"
17645 #include "confdefs.h"
17646 /* System header to define __stub macros and hopefully few prototypes,
17647 which can conflict with char sched_yield(); below. */
17648 #include <assert.h>
17649 /* Override any gcc2 internal prototype to avoid an error. */
17650 /* We use char because int might match the return type of a gcc2
17651 builtin and then its argument prototype would still apply. */
17652 char sched_yield();
17653
17654 int main() {
17655
17656 /* The GNU C library defines this for functions which it implements
17657 to always fail with ENOSYS. Some functions are actually named
17658 something starting with __ and the normal name is an alias. */
17659 #if defined (__stub_sched_yield) || defined (__stub___sched_yield)
17660 choke me
17661 #else
17662 sched_yield();
17663 #endif
17664
17665 ; return 0; }
17666 EOF
17667 if { (eval echo configure:17668: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17668 rm -rf conftest*
17669 eval "ac_cv_func_sched_yield=yes"
17670 else
17671 echo "configure: failed program was:" >&5
17672 cat conftest.$ac_ext >&5
17673 rm -rf conftest*
17674 eval "ac_cv_func_sched_yield=no"
17675 fi
17676 rm -f conftest*
17677 fi
17678
17679 if eval "test \"`echo '$ac_cv_func_'sched_yield`\" = yes"; then
17680 echo "$ac_t""yes" 1>&6
17681 cat >> confdefs.h <<\EOF
17682 #define HAVE_SCHED_YIELD 1
17683 EOF
17684
17685 else
17686 echo "$ac_t""no" 1>&6
17687
17688 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
17689 echo "configure:17690: checking for sched_yield in -lposix4" >&5
17690 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
17691 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17692 echo $ac_n "(cached) $ac_c" 1>&6
17693 else
17694 ac_save_LIBS="$LIBS"
17695 LIBS="-lposix4 $LIBS"
17696 cat > conftest.$ac_ext <<EOF
17697 #line 17698 "configure"
17698 #include "confdefs.h"
17699 /* Override any gcc2 internal prototype to avoid an error. */
17700 /* We use char because int might match the return type of a gcc2
17701 builtin and then its argument prototype would still apply. */
17702 char sched_yield();
17703
17704 int main() {
17705 sched_yield()
17706 ; return 0; }
17707 EOF
17708 if { (eval echo configure:17709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17709 rm -rf conftest*
17710 eval "ac_cv_lib_$ac_lib_var=yes"
17711 else
17712 echo "configure: failed program was:" >&5
17713 cat conftest.$ac_ext >&5
17714 rm -rf conftest*
17715 eval "ac_cv_lib_$ac_lib_var=no"
17716 fi
17717 rm -f conftest*
17718 LIBS="$ac_save_LIBS"
17719
17720 fi
17721 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17722 echo "$ac_t""yes" 1>&6
17723 cat >> confdefs.h <<\EOF
17724 #define HAVE_SCHED_YIELD 1
17725 EOF
17726 POSIX4_LINK=" -lposix4"
17727 else
17728 echo "$ac_t""no" 1>&6
17729 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
17730
17731 fi
17732
17733
17734
17735 fi
17736
17737 fi
17738
17739 HAVE_PRIOR_FUNCS=0
17740 echo $ac_n "checking for pthread_attr_getschedpolicy""... $ac_c" 1>&6
17741 echo "configure:17742: checking for pthread_attr_getschedpolicy" >&5
17742 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_getschedpolicy'+set}'`\" = set"; then
17743 echo $ac_n "(cached) $ac_c" 1>&6
17744 else
17745 cat > conftest.$ac_ext <<EOF
17746 #line 17747 "configure"
17747 #include "confdefs.h"
17748 /* System header to define __stub macros and hopefully few prototypes,
17749 which can conflict with char pthread_attr_getschedpolicy(); below. */
17750 #include <assert.h>
17751 /* Override any gcc2 internal prototype to avoid an error. */
17752 /* We use char because int might match the return type of a gcc2
17753 builtin and then its argument prototype would still apply. */
17754 char pthread_attr_getschedpolicy();
17755
17756 int main() {
17757
17758 /* The GNU C library defines this for functions which it implements
17759 to always fail with ENOSYS. Some functions are actually named
17760 something starting with __ and the normal name is an alias. */
17761 #if defined (__stub_pthread_attr_getschedpolicy) || defined (__stub___pthread_attr_getschedpolicy)
17762 choke me
17763 #else
17764 pthread_attr_getschedpolicy();
17765 #endif
17766
17767 ; return 0; }
17768 EOF
17769 if { (eval echo configure:17770: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17770 rm -rf conftest*
17771 eval "ac_cv_func_pthread_attr_getschedpolicy=yes"
17772 else
17773 echo "configure: failed program was:" >&5
17774 cat conftest.$ac_ext >&5
17775 rm -rf conftest*
17776 eval "ac_cv_func_pthread_attr_getschedpolicy=no"
17777 fi
17778 rm -f conftest*
17779 fi
17780
17781 if eval "test \"`echo '$ac_cv_func_'pthread_attr_getschedpolicy`\" = yes"; then
17782 echo "$ac_t""yes" 1>&6
17783 echo $ac_n "checking for pthread_attr_setschedparam""... $ac_c" 1>&6
17784 echo "configure:17785: checking for pthread_attr_setschedparam" >&5
17785 if eval "test \"`echo '$''{'ac_cv_func_pthread_attr_setschedparam'+set}'`\" = set"; then
17786 echo $ac_n "(cached) $ac_c" 1>&6
17787 else
17788 cat > conftest.$ac_ext <<EOF
17789 #line 17790 "configure"
17790 #include "confdefs.h"
17791 /* System header to define __stub macros and hopefully few prototypes,
17792 which can conflict with char pthread_attr_setschedparam(); below. */
17793 #include <assert.h>
17794 /* Override any gcc2 internal prototype to avoid an error. */
17795 /* We use char because int might match the return type of a gcc2
17796 builtin and then its argument prototype would still apply. */
17797 char pthread_attr_setschedparam();
17798
17799 int main() {
17800
17801 /* The GNU C library defines this for functions which it implements
17802 to always fail with ENOSYS. Some functions are actually named
17803 something starting with __ and the normal name is an alias. */
17804 #if defined (__stub_pthread_attr_setschedparam) || defined (__stub___pthread_attr_setschedparam)
17805 choke me
17806 #else
17807 pthread_attr_setschedparam();
17808 #endif
17809
17810 ; return 0; }
17811 EOF
17812 if { (eval echo configure:17813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17813 rm -rf conftest*
17814 eval "ac_cv_func_pthread_attr_setschedparam=yes"
17815 else
17816 echo "configure: failed program was:" >&5
17817 cat conftest.$ac_ext >&5
17818 rm -rf conftest*
17819 eval "ac_cv_func_pthread_attr_setschedparam=no"
17820 fi
17821 rm -f conftest*
17822 fi
17823
17824 if eval "test \"`echo '$ac_cv_func_'pthread_attr_setschedparam`\" = yes"; then
17825 echo "$ac_t""yes" 1>&6
17826 echo $ac_n "checking for sched_get_priority_max""... $ac_c" 1>&6
17827 echo "configure:17828: checking for sched_get_priority_max" >&5
17828 if eval "test \"`echo '$''{'ac_cv_func_sched_get_priority_max'+set}'`\" = set"; then
17829 echo $ac_n "(cached) $ac_c" 1>&6
17830 else
17831 cat > conftest.$ac_ext <<EOF
17832 #line 17833 "configure"
17833 #include "confdefs.h"
17834 /* System header to define __stub macros and hopefully few prototypes
17835 else
17836 echo "$ac_t""no" 1>&6
17837 which can conflict with char sched_get_priority_max(); below. */
17838 #include <assert.h>
17839 /* Override any gcc2 internal prototype to avoid an error. */
17840 /* We use char because int might match the return type of a gcc2
17841 builtin and then its argument prototype would still apply. */
17842 char sched_get_priority_max();
17843
17844 int main() {
17845
17846 /* The GNU C library defines this for functions which it implements
17847 to always fail with ENOSYS. Some functions are actually named
17848 something starting with __ and the normal name is an alias. */
17849 #if defined (__stub_sched_get_priority_max) || defined (__stub___sched_get_priority_max)
17850 choke me
17851 #else
17852 sched_get_priority_max();
17853 #endif
17854
17855 ; return 0; }
17856 EOF
17857 if { (eval echo configure:17858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17858 rm -rf conftest*
17859 eval "ac_cv_func_sched_get_priority_max=yes"
17860 else
17861 echo "configure: failed program was:" >&5
17862 cat conftest.$ac_ext >&5
17863 rm -rf conftest*
17864 eval "ac_cv_func_sched_get_priority_max=no"
17865 fi
17866 rm -f conftest*
17867 fi
17868
17869 if eval "test \"`echo '$ac_cv_func_'sched_get_priority_max`\" = yes"; then
17870 echo "$ac_t""yes" 1>&6
17871 HAVE_PRIOR_FUNCS=1
17872 else
17873 echo "$ac_t""no" 1>&6
17874 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
17875 echo "configure:17876: checking for sched_get_priority_max in -lposix4" >&5
17876 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
17877 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17878 echo $ac_n "(cached) $ac_c" 1>&6
17879 else
17880 ac_save_LIBS="$LIBS"
17881 LIBS="-lposix4 $LIBS"
17882 cat > conftest.$ac_ext <<EOF
17883 #line 17884 "configure"
17884 #include "confdefs.h"
17885 /* Override any gcc2 internal prototype to avoid an error. */
17886 /* We use char because int might match the return type of a gcc2
17887 builtin and then its argument prototype would still apply. */
17888 char sched_get_priority_max();
17889
17890 int main() {
17891 sched_get_priority_max()
17892 ; return 0; }
17893 EOF
17894 if { (eval echo configure:17895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17895 rm -rf conftest*
17896 eval "ac_cv_lib_$ac_lib_var=yes"
17897 else
17898 echo "configure: failed program was:" >&5
17899 cat conftest.$ac_ext >&5
17900 rm -rf conftest*
17901 eval "ac_cv_lib_$ac_lib_var=no"
17902 fi
17903 rm -f conftest*
17904 LIBS="$ac_save_LIBS"
17905
17906 fi
17907 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17908 echo "$ac_t""yes" 1>&6
17909
17910 HAVE_PRIOR_FUNCS=1
17911 POSIX4_LINK=" -lposix4"
17912
17913 else
17914 echo "$ac_t""no" 1>&6
17915 fi
17916
17917
17918 fi
17919
17920
17921 else
17922 echo "$ac_t""no" 1>&6
17923 fi
17924
17925
17926 fi
17927
17928
17929 if test "$HAVE_PRIOR_FUNCS" = 1; then
17930 cat >> confdefs.h <<\EOF
17931 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
17932 EOF
17933
17934 else
17935 echo "configure: warning: Setting thread priority will not work" 1>&2
17936 fi
17937
17938 echo $ac_n "checking for pthread_cancel""... $ac_c" 1>&6
17939 echo "configure:17940: checking for pthread_cancel" >&5
17940 if eval "test \"`echo '$''{'ac_cv_func_pthread_cancel'+set}'`\" = set"; then
17941 echo $ac_n "(cached) $ac_c" 1>&6
17942 else
17943 cat > conftest.$ac_ext <<EOF
17944 #line 17945 "configure"
17945 #include "confdefs.h"
17946 /* System header to define __stub macros and hopefully few prototypes,
17947 which can conflict with char pthread_cancel(); below. */
17948 #include <assert.h>
17949 /* Override any gcc2 internal prototype to avoid an error. */
17950 /* We use char because int might match the return type of a gcc2
17951 builtin and then its argument prototype would still apply. */
17952 char pthread_cancel();
17953
17954 int main() {
17955
17956 /* The GNU C library defines this for functions which it implements
17957 to always fail with ENOSYS. Some functions are actually named
17958 something starting with __ and the normal name is an alias. */
17959 #if defined (__stub_pthread_cancel) || defined (__stub___pthread_cancel)
17960 choke me
17961 #else
17962 pthread_cancel();
17963 #endif
17964
17965 ; return 0; }
17966 EOF
17967 if { (eval echo configure:17968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17968 rm -rf conftest*
17969 eval "ac_cv_func_pthread_cancel=yes"
17970 else
17971 echo "configure: failed program was:" >&5
17972 cat conftest.$ac_ext >&5
17973 rm -rf conftest*
17974 eval "ac_cv_func_pthread_cancel=no"
17975 fi
17976 rm -f conftest*
17977 fi
17978
17979 if eval "test \"`echo '$ac_cv_func_'pthread_cancel`\" = yes"; then
17980 echo "$ac_t""yes" 1>&6
17981 cat >> confdefs.h <<\EOF
17982 #define HAVE_PTHREAD_CANCEL 1
17983 EOF
17984
17985 else
17986 echo "$ac_t""no" 1>&6
17987 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
17988 fi
17989
17990
17991 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
17992 echo "configure:17993: checking for pthread_cleanup_push/pop" >&5
17993 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
17994 echo $ac_n "(cached) $ac_c" 1>&6
17995 else
17996
17997 cat > conftest.$ac_ext <<EOF
17998 #line 17999 "configure"
17999 #include "confdefs.h"
18000 #include <pthread.h>
18001 int main() {
18002
18003 pthread_cleanup_push(NULL, NULL);
18004 pthread_cleanup_pop(0);
18005
18006 ; return 0; }
18007 EOF
18008 if { (eval echo configure:18009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18009 rm -rf conftest*
18010
18011 wx_cv_func_pthread_cleanup_push=yes
18012
18013 else
18014 echo "configure: failed program was:" >&5
18015 cat conftest.$ac_ext >&5
18016 rm -rf conftest*
18017
18018 wx_cv_func_pthread_cleanup_push=no
18019
18020 fi
18021 rm -f conftest*
18022
18023 fi
18024
18025 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
18026
18027 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
18028 cat >> confdefs.h <<\EOF
18029 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
18030 EOF
18031
18032 fi
18033
18034
18035 if test "x$wx_cv_lib_glibc21" = "xyes"; then
18036 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
18037 fi
18038
18039 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
18040 echo "configure:18041: checking for pthread_mutexattr_t" >&5
18041 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
18042 echo $ac_n "(cached) $ac_c" 1>&6
18043 else
18044
18045 cat > conftest.$ac_ext <<EOF
18046 #line 18047 "configure"
18047 #include "confdefs.h"
18048 #include <pthread.h>
18049 int main() {
18050
18051 pthread_mutexattr_t attr;
18052 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
18053
18054 ; return 0; }
18055 EOF
18056 if { (eval echo configure:18057: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18057 rm -rf conftest*
18058
18059 wx_cv_type_pthread_mutexattr_t=yes
18060
18061 else
18062 echo "configure: failed program was:" >&5
18063 cat conftest.$ac_ext >&5
18064 rm -rf conftest*
18065
18066 wx_cv_type_pthread_mutexattr_t=no
18067
18068
18069 fi
18070 rm -f conftest*
18071
18072 fi
18073
18074 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
18075
18076 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
18077 cat >> confdefs.h <<\EOF
18078 #define HAVE_PTHREAD_MUTEXATTR_T 1
18079 EOF
18080
18081 else
18082 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
18083 echo "configure:18084: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
18084 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
18085 echo $ac_n "(cached) $ac_c" 1>&6
18086 else
18087
18088 cat > conftest.$ac_ext <<EOF
18089 #line 18090 "configure"
18090 #include "confdefs.h"
18091 #include <pthread.h>
18092 int main() {
18093
18094 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
18095
18096 ; return 0; }
18097 EOF
18098 if { (eval echo configure:18099: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18099 rm -rf conftest*
18100
18101 wx_cv_type_pthread_rec_mutex_init=yes
18102
18103 else
18104 echo "configure: failed program was:" >&5
18105 cat conftest.$ac_ext >&5
18106 rm -rf conftest*
18107
18108 wx_cv_type_pthread_rec_mutex_init=no
18109
18110
18111 fi
18112 rm -f conftest*
18113
18114 fi
18115
18116 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
18117 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
18118 cat >> confdefs.h <<\EOF
18119 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
18120 EOF
18121
18122 else
18123 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
18124 fi
18125 fi
18126 fi
18127
18128 fi
18129
18130 if test "$wxUSE_THREADS" = "yes"; then
18131 cat >> confdefs.h <<\EOF
18132 #define wxUSE_THREADS 1
18133 EOF
18134
18135
18136 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
18137 else
18138 if test "$ac_cv_func_strtok_r" = "yes"; then
18139 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
18140 echo "configure:18141: checking if -D_REENTRANT is needed" >&5
18141 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
18142 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
18143 echo "$ac_t""yes" 1>&6
18144 else
18145 echo "$ac_t""no" 1>&6
18146 fi
18147 fi
18148 fi
18149
18150 if test "$WXGTK20" = 1 ; then
18151 cat >> confdefs.h <<EOF
18152 #define __WXGTK20__ $WXGTK20
18153 EOF
18154
18155 WXGTK12=1
18156 fi
18157
18158 if test "$WXGTK12" = 1 ; then
18159 cat >> confdefs.h <<EOF
18160 #define __WXGTK12__ $WXGTK12
18161 EOF
18162
18163 fi
18164
18165 if test "$WXGTK127" = 1 ; then
18166 cat >> confdefs.h <<EOF
18167 #define __WXGTK127__ $WXGTK127
18168 EOF
18169
18170 fi
18171
18172 WXDEBUG=
18173
18174 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
18175 WXDEBUG="-g"
18176 wxUSE_OPTIMISE=no
18177 fi
18178
18179 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
18180 wxUSE_DEBUG_INFO=yes
18181 WXDEBUG="-ggdb"
18182 fi
18183
18184 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
18185 cat >> confdefs.h <<\EOF
18186 #define WXDEBUG 1
18187 EOF
18188
18189 WXDEBUG_DEFINE="-D__WXDEBUG__"
18190 else
18191 if test "$wxUSE_GTK" = 1 ; then
18192 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
18193 fi
18194 fi
18195
18196 if test "$wxUSE_MEM_TRACING" = "yes" ; then
18197 cat >> confdefs.h <<\EOF
18198 #define wxUSE_MEMORY_TRACING 1
18199 EOF
18200
18201 cat >> confdefs.h <<\EOF
18202 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
18203 EOF
18204
18205 cat >> confdefs.h <<\EOF
18206 #define wxUSE_DEBUG_NEW_ALWAYS 1
18207 EOF
18208
18209 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
18210 fi
18211
18212 if test "$wxUSE_DMALLOC" = "yes" ; then
18213 DMALLOC_LIBS="-ldmalloc"
18214 fi
18215
18216 PROFILE=
18217 if test "$wxUSE_PROFILE" = "yes" ; then
18218 PROFILE=" -pg"
18219 fi
18220
18221 CODE_GEN_FLAGS=
18222 CODE_GEN_FLAGS_CXX=
18223 if test "$GCC" = "yes" ; then
18224 if test "$wxUSE_NO_RTTI" = "yes" ; then
18225 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
18226 fi
18227 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
18228 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
18229 fi
18230 if test "$wxUSE_PERMISSIVE" = "yes" ; then
18231 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
18232 fi
18233 if test "$USE_WIN32" = 1 ; then
18234 # I'm not even really sure what this was ever added to solve,
18235 # but someone added it for mingw native builds, so I guess
18236 # they had a reason, right??
18237 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
18238 fi
18239
18240 case "${host}" in
18241 powerpc*-*-aix* )
18242 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -mminimal-toc"
18243 ;;
18244 esac
18245 fi
18246
18247 if test "$wxUSE_OPTIMISE" = "no" ; then
18248 OPTIMISE=
18249 else
18250 if test "$GCC" = yes ; then
18251 OPTIMISE="-O2"
18252 case "${host}" in
18253 i586-*-*|i686-*-* )
18254 OPTIMISE="${OPTIMISE} "
18255 ;;
18256 esac
18257 else
18258 OPTIMISE="-O"
18259 fi
18260 fi
18261
18262 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
18263 cat >> confdefs.h <<\EOF
18264 #define WXWIN_COMPATIBILITY_2 1
18265 EOF
18266
18267
18268 WXWIN_COMPATIBILITY_2_2="yes"
18269 fi
18270
18271 if test "x$WXWIN_COMPATIBILITY_2_2" != "xno"; then
18272 cat >> confdefs.h <<\EOF
18273 #define WXWIN_COMPATIBILITY_2_2 1
18274 EOF
18275
18276 fi
18277
18278
18279 if test "$wxUSE_GUI" = "yes"; then
18280 cat >> confdefs.h <<\EOF
18281 #define wxUSE_GUI 1
18282 EOF
18283
18284
18285 else
18286 cat >> confdefs.h <<\EOF
18287 #define wxUSE_NOGUI 1
18288 EOF
18289
18290 fi
18291
18292
18293 if test "$wxUSE_UNIX" = "yes"; then
18294 cat >> confdefs.h <<\EOF
18295 #define wxUSE_UNIX 1
18296 EOF
18297
18298 fi
18299
18300
18301 if test "$wxUSE_APPLE_IEEE" = "yes"; then
18302 cat >> confdefs.h <<\EOF
18303 #define wxUSE_APPLE_IEEE 1
18304 EOF
18305
18306 fi
18307
18308 if test "$wxUSE_TIMER" = "yes"; then
18309 cat >> confdefs.h <<\EOF
18310 #define wxUSE_TIMER 1
18311 EOF
18312
18313 fi
18314
18315 if test "$wxUSE_WAVE" = "yes"; then
18316 cat >> confdefs.h <<\EOF
18317 #define wxUSE_WAVE 1
18318 EOF
18319
18320 fi
18321
18322 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
18323 cat >> confdefs.h <<\EOF
18324 #define wxUSE_CMDLINE_PARSER 1
18325 EOF
18326
18327 fi
18328
18329 if test "$wxUSE_STOPWATCH" = "yes"; then
18330 cat >> confdefs.h <<\EOF
18331 #define wxUSE_STOPWATCH 1
18332 EOF
18333
18334 fi
18335
18336 if test "$wxUSE_DATETIME" = "yes"; then
18337 cat >> confdefs.h <<\EOF
18338 #define wxUSE_DATETIME 1
18339 EOF
18340
18341 fi
18342
18343 if test "$wxUSE_TIMEDATE" = "yes"; then
18344 cat >> confdefs.h <<\EOF
18345 #define wxUSE_TIMEDATE 1
18346 EOF
18347
18348 fi
18349
18350 if test "$wxUSE_FILE" = "yes"; then
18351 cat >> confdefs.h <<\EOF
18352 #define wxUSE_FILE 1
18353 EOF
18354
18355 fi
18356
18357 if test "$wxUSE_FFILE" = "yes"; then
18358 cat >> confdefs.h <<\EOF
18359 #define wxUSE_FFILE 1
18360 EOF
18361
18362 fi
18363
18364 if test "$wxUSE_FILESYSTEM" = "yes"; then
18365 cat >> confdefs.h <<\EOF
18366 #define wxUSE_FILESYSTEM 1
18367 EOF
18368
18369 fi
18370
18371 if test "$wxUSE_FS_INET" = "yes"; then
18372 cat >> confdefs.h <<\EOF
18373 #define wxUSE_FS_INET 1
18374 EOF
18375
18376 fi
18377
18378 if test "$wxUSE_FS_ZIP" = "yes"; then
18379 cat >> confdefs.h <<\EOF
18380 #define wxUSE_FS_ZIP 1
18381 EOF
18382
18383 fi
18384
18385 if test "$wxUSE_ZIPSTREAM" = "yes"; then
18386 cat >> confdefs.h <<\EOF
18387 #define wxUSE_ZIPSTREAM 1
18388 EOF
18389
18390 fi
18391
18392 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
18393 cat >> confdefs.h <<\EOF
18394 #define wxUSE_ON_FATAL_EXCEPTION 1
18395 EOF
18396
18397 fi
18398
18399 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
18400 cat >> confdefs.h <<\EOF
18401 #define wxUSE_SNGLINST_CHECKER 1
18402 EOF
18403
18404 fi
18405
18406 if test "$wxUSE_BUSYINFO" = "yes"; then
18407 cat >> confdefs.h <<\EOF
18408 #define wxUSE_BUSYINFO 1
18409 EOF
18410
18411 fi
18412
18413 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
18414 cat >> confdefs.h <<\EOF
18415 #define wxUSE_STD_IOSTREAM 1
18416 EOF
18417
18418 fi
18419
18420 if test "$wxUSE_TEXTBUFFER" = "yes"; then
18421 cat >> confdefs.h <<\EOF
18422 #define wxUSE_TEXTBUFFER 1
18423 EOF
18424
18425 fi
18426
18427 if test "$wxUSE_TEXTFILE" = "yes"; then
18428 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
18429 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
18430 else
18431 cat >> confdefs.h <<\EOF
18432 #define wxUSE_TEXTFILE 1
18433 EOF
18434
18435 fi
18436 fi
18437
18438 if test "$wxUSE_CONFIG" = "yes" ; then
18439 if test "$wxUSE_TEXTFILE" != "yes"; then
18440 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
18441 else
18442 cat >> confdefs.h <<\EOF
18443 #define wxUSE_CONFIG 1
18444 EOF
18445
18446 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
18447 fi
18448 fi
18449
18450 if test "$wxUSE_INTL" = "yes" ; then
18451 if test "$wxUSE_FILE" != "yes"; then
18452 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
18453 else
18454 cat >> confdefs.h <<\EOF
18455 #define wxUSE_INTL 1
18456 EOF
18457
18458 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
18459 GUIDIST="$GUIDIST INTL_DIST"
18460 fi
18461 fi
18462
18463 if test "$wxUSE_LOG" = "yes"; then
18464 cat >> confdefs.h <<\EOF
18465 #define wxUSE_LOG 1
18466 EOF
18467
18468
18469 if test "$wxUSE_LOGGUI" = "yes"; then
18470 cat >> confdefs.h <<\EOF
18471 #define wxUSE_LOGGUI 1
18472 EOF
18473
18474 fi
18475
18476 if test "$wxUSE_LOGWINDOW" = "yes"; then
18477 cat >> confdefs.h <<\EOF
18478 #define wxUSE_LOGWINDOW 1
18479 EOF
18480
18481 fi
18482
18483 if test "$wxUSE_LOGDIALOG" = "yes"; then
18484 cat >> confdefs.h <<\EOF
18485 #define wxUSE_LOG_DIALOG 1
18486 EOF
18487
18488 fi
18489 fi
18490
18491 if test "$wxUSE_LONGLONG" = "yes"; then
18492 cat >> confdefs.h <<\EOF
18493 #define wxUSE_LONGLONG 1
18494 EOF
18495
18496 fi
18497
18498 if test "$wxUSE_GEOMETRY" = "yes"; then
18499 cat >> confdefs.h <<\EOF
18500 #define wxUSE_GEOMETRY 1
18501 EOF
18502
18503 fi
18504
18505 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
18506 cat >> confdefs.h <<\EOF
18507 #define wxUSE_DIALUP_MANAGER 1
18508 EOF
18509
18510 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
18511 fi
18512
18513 if test "$wxUSE_STREAMS" = "yes" ; then
18514 cat >> confdefs.h <<\EOF
18515 #define wxUSE_STREAMS 1
18516 EOF
18517
18518 fi
18519
18520
18521 if test "$wxUSE_DATETIME" = "yes"; then
18522 for ac_func in strptime
18523 do
18524 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18525 echo "configure:18526: checking for $ac_func" >&5
18526 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18527 echo $ac_n "(cached) $ac_c" 1>&6
18528 else
18529 cat > conftest.$ac_ext <<EOF
18530 #line 18531 "configure"
18531 #include "confdefs.h"
18532 /* System header to define __stub macros and hopefully few prototypes,
18533 which can conflict with char $ac_func(); below. */
18534 #include <assert.h>
18535 /* Override any gcc2 internal prototype to avoid an error. */
18536 /* We use char because int might match the return type of a gcc2
18537 builtin and then its argument prototype would still apply. */
18538 char $ac_func();
18539
18540 int main() {
18541
18542 /* The GNU C library defines this for functions which it implements
18543 to always fail with ENOSYS. Some functions are actually named
18544 something starting with __ and the normal name is an alias. */
18545 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18546 choke me
18547 #else
18548 $ac_func();
18549 #endif
18550
18551 ; return 0; }
18552 EOF
18553 if { (eval echo configure:18554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18554 rm -rf conftest*
18555 eval "ac_cv_func_$ac_func=yes"
18556 else
18557 echo "configure: failed program was:" >&5
18558 cat conftest.$ac_ext >&5
18559 rm -rf conftest*
18560 eval "ac_cv_func_$ac_func=no"
18561 fi
18562 rm -f conftest*
18563 fi
18564
18565 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18566 echo "$ac_t""yes" 1>&6
18567 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18568 cat >> confdefs.h <<EOF
18569 #define $ac_tr_func 1
18570 EOF
18571
18572 else
18573 echo "$ac_t""no" 1>&6
18574 fi
18575 done
18576
18577
18578 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
18579 echo "configure:18580: checking for timezone variable in <time.h>" >&5
18580 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
18581 echo $ac_n "(cached) $ac_c" 1>&6
18582 else
18583
18584 cat > conftest.$ac_ext <<EOF
18585 #line 18586 "configure"
18586 #include "confdefs.h"
18587
18588 #include <time.h>
18589
18590 int main() {
18591
18592 int tz;
18593 tz = timezone;
18594
18595 ; return 0; }
18596 EOF
18597 if { (eval echo configure:18598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18598 rm -rf conftest*
18599
18600 wx_cv_var_timezone=timezone
18601
18602 else
18603 echo "configure: failed program was:" >&5
18604 cat conftest.$ac_ext >&5
18605 rm -rf conftest*
18606
18607 cat > conftest.$ac_ext <<EOF
18608 #line 18609 "configure"
18609 #include "confdefs.h"
18610
18611 #include <time.h>
18612
18613 int main() {
18614
18615 int tz;
18616 tz = _timezone;
18617
18618 ; return 0; }
18619 EOF
18620 if { (eval echo configure:18621: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18621 rm -rf conftest*
18622
18623 wx_cv_var_timezone=_timezone
18624
18625 else
18626 echo "configure: failed program was:" >&5
18627 cat conftest.$ac_ext >&5
18628 rm -rf conftest*
18629
18630 cat > conftest.$ac_ext <<EOF
18631 #line 18632 "configure"
18632 #include "confdefs.h"
18633
18634 #include <time.h>
18635
18636 int main() {
18637
18638 int tz;
18639 tz = __timezone;
18640
18641 ; return 0; }
18642 EOF
18643 if { (eval echo configure:18644: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18644 rm -rf conftest*
18645
18646 wx_cv_var_timezone=__timezone
18647
18648 else
18649 echo "configure: failed program was:" >&5
18650 cat conftest.$ac_ext >&5
18651 rm -rf conftest*
18652
18653 if test "$USE_DOS" = 0 ; then
18654 echo "configure: warning: no timezone variable" 1>&2
18655 fi
18656
18657
18658 fi
18659 rm -f conftest*
18660
18661
18662 fi
18663 rm -f conftest*
18664
18665
18666 fi
18667 rm -f conftest*
18668
18669
18670 fi
18671
18672 echo "$ac_t""$wx_cv_var_timezone" 1>&6
18673
18674 if test "x$wx_cv_var_timezone" != x ; then
18675 cat >> confdefs.h <<EOF
18676 #define WX_TIMEZONE $wx_cv_var_timezone
18677 EOF
18678
18679 fi
18680
18681 for ac_func in localtime
18682 do
18683 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18684 echo "configure:18685: checking for $ac_func" >&5
18685 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18686 echo $ac_n "(cached) $ac_c" 1>&6
18687 else
18688 cat > conftest.$ac_ext <<EOF
18689 #line 18690 "configure"
18690 #include "confdefs.h"
18691 /* System header to define __stub macros and hopefully few prototypes,
18692 which can conflict with char $ac_func(); below. */
18693 #include <assert.h>
18694 /* Override any gcc2 internal prototype to avoid an error. */
18695 /* We use char because int might match the return type of a gcc2
18696 builtin and then its argument prototype would still apply. */
18697 char $ac_func();
18698
18699 int main() {
18700
18701 /* The GNU C library defines this for functions which it implements
18702 to always fail with ENOSYS. Some functions are actually named
18703 something starting with __ and the normal name is an alias. */
18704 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18705 choke me
18706 #else
18707 $ac_func();
18708 #endif
18709
18710 ; return 0; }
18711 EOF
18712 if { (eval echo configure:18713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18713 rm -rf conftest*
18714 eval "ac_cv_func_$ac_func=yes"
18715 else
18716 echo "configure: failed program was:" >&5
18717 cat conftest.$ac_ext >&5
18718 rm -rf conftest*
18719 eval "ac_cv_func_$ac_func=no"
18720 fi
18721 rm -f conftest*
18722 fi
18723
18724 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18725 echo "$ac_t""yes" 1>&6
18726 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18727 cat >> confdefs.h <<EOF
18728 #define $ac_tr_func 1
18729 EOF
18730
18731 else
18732 echo "$ac_t""no" 1>&6
18733 fi
18734 done
18735
18736
18737 if test "$ac_cv_func_localtime" = "yes"; then
18738 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
18739 echo "configure:18740: checking for tm_gmtoff in struct tm" >&5
18740 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
18741 echo $ac_n "(cached) $ac_c" 1>&6
18742 else
18743
18744 cat > conftest.$ac_ext <<EOF
18745 #line 18746 "configure"
18746 #include "confdefs.h"
18747
18748 #include <time.h>
18749
18750 int main() {
18751
18752 struct tm tm;
18753 tm.tm_gmtoff++;
18754
18755 ; return 0; }
18756 EOF
18757 if { (eval echo configure:18758: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18758 rm -rf conftest*
18759
18760 wx_cv_struct_tm_has_gmtoff=yes
18761
18762 else
18763 echo "configure: failed program was:" >&5
18764 cat conftest.$ac_ext >&5
18765 rm -rf conftest*
18766 wx_cv_struct_tm_has_gmtoff=no
18767
18768 fi
18769 rm -f conftest*
18770
18771 fi
18772
18773 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
18774 fi
18775
18776 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
18777 cat >> confdefs.h <<\EOF
18778 #define WX_GMTOFF_IN_TM 1
18779 EOF
18780
18781 fi
18782
18783 for ac_func in gettimeofday ftime
18784 do
18785 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18786 echo "configure:18787: checking for $ac_func" >&5
18787 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18788 echo $ac_n "(cached) $ac_c" 1>&6
18789 else
18790 cat > conftest.$ac_ext <<EOF
18791 #line 18792 "configure"
18792 #include "confdefs.h"
18793 /* System header to define __stub macros and hopefully few prototypes,
18794 which can conflict with char $ac_func(); below. */
18795 #include <assert.h>
18796 /* Override any gcc2 internal prototype to avoid an error. */
18797 /* We use char because int might match the return type of a gcc2
18798 builtin and then its argument prototype would still apply. */
18799 char $ac_func();
18800
18801 int main() {
18802
18803 /* The GNU C library defines this for functions which it implements
18804 to always fail with ENOSYS. Some functions are actually named
18805 something starting with __ and the normal name is an alias. */
18806 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18807 choke me
18808 #else
18809 $ac_func();
18810 #endif
18811
18812 ; return 0; }
18813 EOF
18814 if { (eval echo configure:18815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18815 rm -rf conftest*
18816 eval "ac_cv_func_$ac_func=yes"
18817 else
18818 echo "configure: failed program was:" >&5
18819 cat conftest.$ac_ext >&5
18820 rm -rf conftest*
18821 eval "ac_cv_func_$ac_func=no"
18822 fi
18823 rm -f conftest*
18824 fi
18825
18826 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18827 echo "$ac_t""yes" 1>&6
18828 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18829 cat >> confdefs.h <<EOF
18830 #define $ac_tr_func 1
18831 EOF
18832 break
18833 else
18834 echo "$ac_t""no" 1>&6
18835 fi
18836 done
18837
18838
18839 if test "$ac_cv_func_gettimeofday" = "yes"; then
18840 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
18841 echo "configure:18842: checking whether gettimeofday takes two arguments" >&5
18842 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
18843 echo $ac_n "(cached) $ac_c" 1>&6
18844 else
18845
18846
18847 ac_ext=C
18848 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18849 ac_cpp='$CXXCPP $CPPFLAGS'
18850 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18851 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18852 cross_compiling=$ac_cv_prog_cxx_cross
18853
18854
18855 cat > conftest.$ac_ext <<EOF
18856 #line 18857 "configure"
18857 #include "confdefs.h"
18858
18859 #include <sys/time.h>
18860 #include <unistd.h>
18861
18862 int main() {
18863
18864 struct timeval tv;
18865 gettimeofday(&tv, NULL);
18866
18867 ; return 0; }
18868 EOF
18869 if { (eval echo configure:18870: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18870 rm -rf conftest*
18871 wx_cv_func_gettimeofday_has_2_args=yes
18872 else
18873 echo "configure: failed program was:" >&5
18874 cat conftest.$ac_ext >&5
18875 rm -rf conftest*
18876 cat > conftest.$ac_ext <<EOF
18877 #line 18878 "configure"
18878 #include "confdefs.h"
18879
18880 #include <sys/time.h>
18881 #include <unistd.h>
18882
18883 int main() {
18884
18885 struct timeval tv;
18886 gettimeofday(&tv);
18887
18888 ; return 0; }
18889 EOF
18890 if { (eval echo configure:18891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
18891 rm -rf conftest*
18892 wx_cv_func_gettimeofday_has_2_args=no
18893 else
18894 echo "configure: failed program was:" >&5
18895 cat conftest.$ac_ext >&5
18896 rm -rf conftest*
18897
18898 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
18899 wx_cv_func_gettimeofday_has_2_args=unknown
18900
18901
18902 fi
18903 rm -f conftest*
18904
18905 fi
18906 rm -f conftest*
18907 ac_ext=c
18908 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18909 ac_cpp='$CPP $CPPFLAGS'
18910 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18911 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18912 cross_compiling=$ac_cv_prog_cc_cross
18913
18914
18915 fi
18916
18917 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
18918
18919 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
18920 cat >> confdefs.h <<\EOF
18921 #define WX_GETTIMEOFDAY_NO_TZ 1
18922 EOF
18923
18924 fi
18925 fi
18926
18927 cat >> confdefs.h <<\EOF
18928 #define wxUSE_TIMEDATE 1
18929 EOF
18930
18931 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
18932 fi
18933
18934
18935 if test "$wxUSE_SOCKETS" = "yes"; then
18936 if test "$wxUSE_X11" = "1"; then
18937 echo "configure: warning: wxSocket not yet supported under X11... disabled" 1>&2
18938 wxUSE_SOCKETS="no"
18939 fi
18940
18941 if test "$wxUSE_MGL" = "1"; then
18942 echo "configure: warning: wxSocket not yet supported under MGL... disabled" 1>&2
18943 wxUSE_SOCKETS="no"
18944 fi
18945 fi
18946
18947 if test "$wxUSE_SOCKETS" = "yes"; then
18948 if test "$TOOLKIT" != "MSW"; then
18949 echo $ac_n "checking for socket""... $ac_c" 1>&6
18950 echo "configure:18951: checking for socket" >&5
18951 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
18952 echo $ac_n "(cached) $ac_c" 1>&6
18953 else
18954 cat > conftest.$ac_ext <<EOF
18955 #line 18956 "configure"
18956 #include "confdefs.h"
18957 /* System header to define __stub macros and hopefully few prototypes,
18958 which can conflict with char socket(); below. */
18959 #include <assert.h>
18960 /* Override any gcc2 internal prototype to avoid an error. */
18961 /* We use char because int might match the return type of a gcc2
18962 builtin and then its argument prototype would still apply. */
18963 char socket();
18964
18965 int main() {
18966
18967 /* The GNU C library defines this for functions which it implements
18968 to always fail with ENOSYS. Some functions are actually named
18969 something starting with __ and the normal name is an alias. */
18970 #if defined (__stub_socket) || defined (__stub___socket)
18971 choke me
18972 #else
18973 socket();
18974 #endif
18975
18976 ; return 0; }
18977 EOF
18978 if { (eval echo configure:18979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18979 rm -rf conftest*
18980 eval "ac_cv_func_socket=yes"
18981 else
18982 echo "configure: failed program was:" >&5
18983 cat conftest.$ac_ext >&5
18984 rm -rf conftest*
18985 eval "ac_cv_func_socket=no"
18986 fi
18987 rm -f conftest*
18988 fi
18989
18990 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
18991 echo "$ac_t""yes" 1>&6
18992 :
18993 else
18994 echo "$ac_t""no" 1>&6
18995 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
18996 echo "configure:18997: checking for socket in -lsocket" >&5
18997 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
18998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18999 echo $ac_n "(cached) $ac_c" 1>&6
19000 else
19001 ac_save_LIBS="$LIBS"
19002 LIBS="-lsocket $LIBS"
19003 cat > conftest.$ac_ext <<EOF
19004 #line 19005 "configure"
19005 #include "confdefs.h"
19006 /* Override any gcc2 internal prototype to avoid an error. */
19007 /* We use char because int might match the return type of a gcc2
19008 builtin and then its argument prototype would still apply. */
19009 char socket();
19010
19011 int main() {
19012 socket()
19013 ; return 0; }
19014 EOF
19015 if { (eval echo configure:19016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19016 rm -rf conftest*
19017 eval "ac_cv_lib_$ac_lib_var=yes"
19018 else
19019 echo "configure: failed program was:" >&5
19020 cat conftest.$ac_ext >&5
19021 rm -rf conftest*
19022 eval "ac_cv_lib_$ac_lib_var=no"
19023 fi
19024 rm -f conftest*
19025 LIBS="$ac_save_LIBS"
19026
19027 fi
19028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19029 echo "$ac_t""yes" 1>&6
19030 if test "$INET_LINK" != " -lsocket"; then
19031 INET_LINK="$INET_LINK -lsocket"
19032 fi
19033 else
19034 echo "$ac_t""no" 1>&6
19035
19036 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
19037 wxUSE_SOCKETS=no
19038
19039
19040 fi
19041
19042
19043 fi
19044
19045 fi
19046 fi
19047
19048 if test "$wxUSE_SOCKETS" = "yes" ; then
19049 if test "$TOOLKIT" != "MSW"; then
19050 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
19051 echo "configure:19052: checking what is the type of the third argument of getsockname" >&5
19052 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
19053 echo $ac_n "(cached) $ac_c" 1>&6
19054 else
19055
19056
19057 ac_ext=C
19058 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19059 ac_cpp='$CXXCPP $CPPFLAGS'
19060 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19061 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19062 cross_compiling=$ac_cv_prog_cxx_cross
19063
19064
19065 cat > conftest.$ac_ext <<EOF
19066 #line 19067 "configure"
19067 #include "confdefs.h"
19068
19069 #include <sys/types.h>
19070 #include <sys/socket.h>
19071
19072 int main() {
19073
19074 socklen_t len;
19075 getsockname(0, 0, &len);
19076
19077 ; return 0; }
19078 EOF
19079 if { (eval echo configure:19080: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19080 rm -rf conftest*
19081 wx_cv_type_getsockname3=socklen_t
19082 else
19083 echo "configure: failed program was:" >&5
19084 cat conftest.$ac_ext >&5
19085 rm -rf conftest*
19086 cat > conftest.$ac_ext <<EOF
19087 #line 19088 "configure"
19088 #include "confdefs.h"
19089
19090 #include <sys/types.h>
19091 #include <sys/socket.h>
19092
19093 int main() {
19094
19095 size_t len;
19096 getsockname(0, 0, &len);
19097
19098 ; return 0; }
19099 EOF
19100 if { (eval echo configure:19101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19101 rm -rf conftest*
19102 wx_cv_type_getsockname3=size_t
19103 else
19104 echo "configure: failed program was:" >&5
19105 cat conftest.$ac_ext >&5
19106 rm -rf conftest*
19107 cat > conftest.$ac_ext <<EOF
19108 #line 19109 "configure"
19109 #include "confdefs.h"
19110
19111 #include <sys/types.h>
19112 #include <sys/socket.h>
19113
19114 int main() {
19115
19116 int len;
19117 getsockname(0, 0, &len);
19118
19119 ; return 0; }
19120 EOF
19121 if { (eval echo configure:19122: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
19122 rm -rf conftest*
19123 wx_cv_type_getsockname3=int
19124 else
19125 echo "configure: failed program was:" >&5
19126 cat conftest.$ac_ext >&5
19127 rm -rf conftest*
19128 wx_cv_type_getsockname3=unknown
19129
19130 fi
19131 rm -f conftest*
19132
19133 fi
19134 rm -f conftest*
19135
19136 fi
19137 rm -f conftest*
19138
19139 ac_ext=c
19140 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
19141 ac_cpp='$CPP $CPPFLAGS'
19142 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
19143 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
19144 cross_compiling=$ac_cv_prog_cc_cross
19145
19146
19147 fi
19148
19149 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
19150
19151 if test "$wx_cv_type_getsockname3" = "unknown"; then
19152 wxUSE_SOCKETS=no
19153 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
19154 else
19155 cat >> confdefs.h <<EOF
19156 #define SOCKLEN_T $wx_cv_type_getsockname3
19157 EOF
19158
19159 fi
19160 fi
19161 fi
19162
19163 if test "$wxUSE_SOCKETS" = "yes" ; then
19164 cat >> confdefs.h <<\EOF
19165 #define wxUSE_SOCKETS 1
19166 EOF
19167
19168 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
19169 fi
19170
19171
19172 if test "$wxUSE_GUI" = "yes"; then
19173
19174 if test "$TOOLKIT" = "MAC"; then
19175 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
19176 wxUSE_JOYSTICK=no
19177 fi
19178 if test "$TOOLKIT" = "MOTIF"; then
19179 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
19180 wxUSE_JOYSTICK=no
19181 fi
19182 if test "$TOOLKIT" = "X11"; then
19183 echo "configure: warning: Joystick not yet supported under X11... disabled" 1>&2
19184 wxUSE_JOYSTICK=no
19185 fi
19186
19187 if test "$TOOLKIT" != "MSW"; then
19188 if test "$wxUSE_JOYSTICK" = "yes"; then
19189 for ac_hdr in linux/joystick.h
19190 do
19191 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19192 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19193 echo "configure:19194: checking for $ac_hdr" >&5
19194 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19195 echo $ac_n "(cached) $ac_c" 1>&6
19196 else
19197 cat > conftest.$ac_ext <<EOF
19198 #line 19199 "configure"
19199 #include "confdefs.h"
19200 #include <$ac_hdr>
19201 EOF
19202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19203 { (eval echo configure:19204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19205 if test -z "$ac_err"; then
19206 rm -rf conftest*
19207 eval "ac_cv_header_$ac_safe=yes"
19208 else
19209 echo "$ac_err" >&5
19210 echo "configure: failed program was:" >&5
19211 cat conftest.$ac_ext >&5
19212 rm -rf conftest*
19213 eval "ac_cv_header_$ac_safe=no"
19214 fi
19215 rm -f conftest*
19216 fi
19217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19218 echo "$ac_t""yes" 1>&6
19219 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19220 cat >> confdefs.h <<EOF
19221 #define $ac_tr_hdr 1
19222 EOF
19223
19224 else
19225 echo "$ac_t""no" 1>&6
19226 fi
19227 done
19228
19229 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
19230 wxUSE_JOYSTICK=no
19231 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
19232 fi
19233 fi
19234 fi
19235
19236 if test "$wxUSE_JOYSTICK" = "yes"; then
19237 cat >> confdefs.h <<\EOF
19238 #define wxUSE_JOYSTICK 1
19239 EOF
19240
19241 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
19242 fi
19243 fi
19244
19245
19246 if test "$TOOLKIT" != "MSW"; then
19247
19248 HAVE_DL_FUNCS=0
19249 HAVE_SHL_FUNCS=0
19250 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19251 if test "$USE_DARWIN" = 1; then
19252 HAVE_DL_FUNCS=1
19253 else
19254 for ac_func in dlopen
19255 do
19256 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19257 echo "configure:19258: checking for $ac_func" >&5
19258 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19259 echo $ac_n "(cached) $ac_c" 1>&6
19260 else
19261 cat > conftest.$ac_ext <<EOF
19262 #line 19263 "configure"
19263 #include "confdefs.h"
19264 /* System header to define __stub macros and hopefully few prototypes,
19265 which can conflict with char $ac_func(); below. */
19266 #include <assert.h>
19267 /* Override any gcc2 internal prototype to avoid an error. */
19268 /* We use char because int might match the return type of a gcc2
19269 builtin and then its argument prototype would still apply. */
19270 char $ac_func();
19271
19272 int main() {
19273
19274 /* The GNU C library defines this for functions which it implements
19275 to always fail with ENOSYS. Some functions are actually named
19276 something starting with __ and the normal name is an alias. */
19277 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19278 choke me
19279 #else
19280 $ac_func();
19281 #endif
19282
19283 ; return 0; }
19284 EOF
19285 if { (eval echo configure:19286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19286 rm -rf conftest*
19287 eval "ac_cv_func_$ac_func=yes"
19288 else
19289 echo "configure: failed program was:" >&5
19290 cat conftest.$ac_ext >&5
19291 rm -rf conftest*
19292 eval "ac_cv_func_$ac_func=no"
19293 fi
19294 rm -f conftest*
19295 fi
19296
19297 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19298 echo "$ac_t""yes" 1>&6
19299 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19300 cat >> confdefs.h <<EOF
19301 #define $ac_tr_func 1
19302 EOF
19303
19304 cat >> confdefs.h <<\EOF
19305 #define HAVE_DLOPEN 1
19306 EOF
19307
19308 HAVE_DL_FUNCS=1
19309
19310 else
19311 echo "$ac_t""no" 1>&6
19312 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
19313 echo "configure:19314: checking for dlopen in -ldl" >&5
19314 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
19315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19316 echo $ac_n "(cached) $ac_c" 1>&6
19317 else
19318 ac_save_LIBS="$LIBS"
19319 LIBS="-ldl $LIBS"
19320 cat > conftest.$ac_ext <<EOF
19321 #line 19322 "configure"
19322 #include "confdefs.h"
19323 /* Override any gcc2 internal prototype to avoid an error. */
19324 /* We use char because int might match the return type of a gcc2
19325 builtin and then its argument prototype would still apply. */
19326 char dlopen();
19327
19328 int main() {
19329 dlopen()
19330 ; return 0; }
19331 EOF
19332 if { (eval echo configure:19333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19333 rm -rf conftest*
19334 eval "ac_cv_lib_$ac_lib_var=yes"
19335 else
19336 echo "configure: failed program was:" >&5
19337 cat conftest.$ac_ext >&5
19338 rm -rf conftest*
19339 eval "ac_cv_lib_$ac_lib_var=no"
19340 fi
19341 rm -f conftest*
19342 LIBS="$ac_save_LIBS"
19343
19344 fi
19345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19346 echo "$ac_t""yes" 1>&6
19347
19348 cat >> confdefs.h <<\EOF
19349 #define HAVE_DLOPEN 1
19350 EOF
19351
19352 HAVE_DL_FUNCS=1
19353 DL_LINK=" -ldl$DL_LINK"
19354
19355 else
19356 echo "$ac_t""no" 1>&6
19357
19358 for ac_func in shl_load
19359 do
19360 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19361 echo "configure:19362: checking for $ac_func" >&5
19362 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19363 echo $ac_n "(cached) $ac_c" 1>&6
19364 else
19365 cat > conftest.$ac_ext <<EOF
19366 #line 19367 "configure"
19367 #include "confdefs.h"
19368 /* System header to define __stub macros and hopefully few prototypes,
19369 which can conflict with char $ac_func(); below. */
19370 #include <assert.h>
19371 /* Override any gcc2 internal prototype to avoid an error. */
19372 /* We use char because int might match the return type of a gcc2
19373 builtin and then its argument prototype would still apply. */
19374 char $ac_func();
19375
19376 int main() {
19377
19378 /* The GNU C library defines this for functions which it implements
19379 to always fail with ENOSYS. Some functions are actually named
19380 something starting with __ and the normal name is an alias. */
19381 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19382 choke me
19383 #else
19384 $ac_func();
19385 #endif
19386
19387 ; return 0; }
19388 EOF
19389 if { (eval echo configure:19390: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19390 rm -rf conftest*
19391 eval "ac_cv_func_$ac_func=yes"
19392 else
19393 echo "configure: failed program was:" >&5
19394 cat conftest.$ac_ext >&5
19395 rm -rf conftest*
19396 eval "ac_cv_func_$ac_func=no"
19397 fi
19398 rm -f conftest*
19399 fi
19400
19401 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19402 echo "$ac_t""yes" 1>&6
19403 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19404 cat >> confdefs.h <<EOF
19405 #define $ac_tr_func 1
19406 EOF
19407
19408 cat >> confdefs.h <<\EOF
19409 #define HAVE_SHL_LOAD 1
19410 EOF
19411
19412 HAVE_SHL_FUNCS=1
19413
19414 else
19415 echo "$ac_t""no" 1>&6
19416 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
19417 echo "configure:19418: checking for dld in -lshl_load" >&5
19418 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
19419 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19420 echo $ac_n "(cached) $ac_c" 1>&6
19421 else
19422 ac_save_LIBS="$LIBS"
19423 LIBS="-lshl_load $LIBS"
19424 cat > conftest.$ac_ext <<EOF
19425 #line 19426 "configure"
19426 #include "confdefs.h"
19427 /* Override any gcc2 internal prototype to avoid an error. */
19428 /* We use char because int might match the return type of a gcc2
19429 builtin and then its argument prototype would still apply. */
19430 char dld();
19431
19432 int main() {
19433 dld()
19434 ; return 0; }
19435 EOF
19436 if { (eval echo configure:19437: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19437 rm -rf conftest*
19438 eval "ac_cv_lib_$ac_lib_var=yes"
19439 else
19440 echo "configure: failed program was:" >&5
19441 cat conftest.$ac_ext >&5
19442 rm -rf conftest*
19443 eval "ac_cv_lib_$ac_lib_var=no"
19444 fi
19445 rm -f conftest*
19446 LIBS="$ac_save_LIBS"
19447
19448 fi
19449 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19450 echo "$ac_t""yes" 1>&6
19451
19452 HAVE_SHL_FUNCS=1
19453 DL_LINK=" -ldld$DL_LINK"
19454
19455 else
19456 echo "$ac_t""no" 1>&6
19457 fi
19458
19459
19460 fi
19461 done
19462
19463
19464 fi
19465
19466
19467 fi
19468 done
19469
19470
19471 if test "$HAVE_DL_FUNCS" = 1; then
19472 for ac_func in dlerror
19473 do
19474 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
19475 echo "configure:19476: checking for $ac_func" >&5
19476 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
19477 echo $ac_n "(cached) $ac_c" 1>&6
19478 else
19479 cat > conftest.$ac_ext <<EOF
19480 #line 19481 "configure"
19481 #include "confdefs.h"
19482 /* System header to define __stub macros and hopefully few prototypes,
19483 which can conflict with char $ac_func(); below. */
19484 #include <assert.h>
19485 /* Override any gcc2 internal prototype to avoid an error. */
19486 /* We use char because int might match the return type of a gcc2
19487 builtin and then its argument prototype would still apply. */
19488 char $ac_func();
19489
19490 int main() {
19491
19492 /* The GNU C library defines this for functions which it implements
19493 to always fail with ENOSYS. Some functions are actually named
19494 something starting with __ and the normal name is an alias. */
19495 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19496 choke me
19497 #else
19498 $ac_func();
19499 #endif
19500
19501 ; return 0; }
19502 EOF
19503 if { (eval echo configure:19504: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19504 rm -rf conftest*
19505 eval "ac_cv_func_$ac_func=yes"
19506 else
19507 echo "configure: failed program was:" >&5
19508 cat conftest.$ac_ext >&5
19509 rm -rf conftest*
19510 eval "ac_cv_func_$ac_func=no"
19511 fi
19512 rm -f conftest*
19513 fi
19514
19515 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
19516 echo "$ac_t""yes" 1>&6
19517 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
19518 cat >> confdefs.h <<EOF
19519 #define $ac_tr_func 1
19520 EOF
19521 cat >> confdefs.h <<\EOF
19522 #define HAVE_DLERROR 1
19523 EOF
19524
19525 else
19526 echo "$ac_t""no" 1>&6
19527 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
19528 echo "configure:19529: checking for dlerror in -ldl" >&5
19529 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
19530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19531 echo $ac_n "(cached) $ac_c" 1>&6
19532 else
19533 ac_save_LIBS="$LIBS"
19534 LIBS="-ldl $LIBS"
19535 cat > conftest.$ac_ext <<EOF
19536 #line 19537 "configure"
19537 #include "confdefs.h"
19538 /* Override any gcc2 internal prototype to avoid an error. */
19539 /* We use char because int might match the return type of a gcc2
19540 builtin and then its argument prototype would still apply. */
19541 char dlerror();
19542
19543 int main() {
19544 dlerror()
19545 ; return 0; }
19546 EOF
19547 if { (eval echo configure:19548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19548 rm -rf conftest*
19549 eval "ac_cv_lib_$ac_lib_var=yes"
19550 else
19551 echo "configure: failed program was:" >&5
19552 cat conftest.$ac_ext >&5
19553 rm -rf conftest*
19554 eval "ac_cv_lib_$ac_lib_var=no"
19555 fi
19556 rm -f conftest*
19557 LIBS="$ac_save_LIBS"
19558
19559 fi
19560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19561 echo "$ac_t""yes" 1>&6
19562 cat >> confdefs.h <<\EOF
19563 #define HAVE_DLERROR 1
19564 EOF
19565
19566 else
19567 echo "$ac_t""no" 1>&6
19568 fi
19569
19570 fi
19571 done
19572
19573 fi
19574 fi
19575
19576 if test "$HAVE_DL_FUNCS" = 0; then
19577 if test "$HAVE_SHL_FUNCS" = 0; then
19578 if test "$USE_UNIX" = 1; then
19579 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
19580 wxUSE_DYNAMIC_LOADER=no
19581 wxUSE_DYNLIB_CLASS=no
19582 else
19583 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
19584 fi
19585 fi
19586 fi
19587 fi
19588 fi
19589
19590 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
19591 cat >> confdefs.h <<\EOF
19592 #define wxUSE_DYNAMIC_LOADER 1
19593 EOF
19594
19595 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
19596 cat >> confdefs.h <<\EOF
19597 #define wxUSE_DYNLIB_CLASS 1
19598 EOF
19599
19600 fi
19601
19602
19603 if test "$wxUSE_FONTMAP" = "yes" ; then
19604 cat >> confdefs.h <<\EOF
19605 #define wxUSE_FONTMAP 1
19606 EOF
19607
19608 fi
19609
19610 if test "$wxUSE_UNICODE" = "yes" ; then
19611 cat >> confdefs.h <<\EOF
19612 #define wxUSE_UNICODE 1
19613 EOF
19614
19615
19616 if test "$wxUSE_MSW" != 1; then
19617 wxUSE_UNICODE_MSLU=no
19618 fi
19619
19620 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
19621 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
19622 echo "configure:19623: checking for main in -lunicows" >&5
19623 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
19624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
19625 echo $ac_n "(cached) $ac_c" 1>&6
19626 else
19627 ac_save_LIBS="$LIBS"
19628 LIBS="-lunicows $LIBS"
19629 cat > conftest.$ac_ext <<EOF
19630 #line 19631 "configure"
19631 #include "confdefs.h"
19632
19633 int main() {
19634 main()
19635 ; return 0; }
19636 EOF
19637 if { (eval echo configure:19638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
19638 rm -rf conftest*
19639 eval "ac_cv_lib_$ac_lib_var=yes"
19640 else
19641 echo "configure: failed program was:" >&5
19642 cat conftest.$ac_ext >&5
19643 rm -rf conftest*
19644 eval "ac_cv_lib_$ac_lib_var=no"
19645 fi
19646 rm -f conftest*
19647 LIBS="$ac_save_LIBS"
19648
19649 fi
19650 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
19651 echo "$ac_t""yes" 1>&6
19652
19653 cat >> confdefs.h <<\EOF
19654 #define wxUSE_UNICODE_MSLU 1
19655 EOF
19656
19657
19658 else
19659 echo "$ac_t""no" 1>&6
19660
19661 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
19662 Applications will only run on Windows NT/2000/XP!" 1>&2
19663 wxUSE_UNICODE_MSLU=no
19664
19665 fi
19666
19667 fi
19668 fi
19669
19670 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
19671 cat >> confdefs.h <<\EOF
19672 #define wxUSE_EXPERIMENTAL_PRINTF 1
19673 EOF
19674
19675 fi
19676
19677
19678
19679 IODBC_C_SRC=""
19680 if test "$wxUSE_ODBC" = "yes" ; then
19681 cat >> confdefs.h <<\EOF
19682 #define wxUSE_ODBC 1
19683 EOF
19684
19685 WXODBCFLAG="-D_IODBC_"
19686 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
19687 fi
19688
19689
19690 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
19691 cat >> confdefs.h <<\EOF
19692 #define wxUSE_POSTSCRIPT 1
19693 EOF
19694
19695 fi
19696
19697 cat >> confdefs.h <<\EOF
19698 #define wxUSE_AFM_FOR_POSTSCRIPT 1
19699 EOF
19700
19701
19702 cat >> confdefs.h <<\EOF
19703 #define wxUSE_NORMALIZED_PS_FONTS 1
19704 EOF
19705
19706
19707
19708 if test "$wxUSE_CONSTRAINTS" = "yes"; then
19709 cat >> confdefs.h <<\EOF
19710 #define wxUSE_CONSTRAINTS 1
19711 EOF
19712
19713 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
19714 fi
19715
19716 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19717 if test "$wxUSE_UNIVERSAL" = "yes"; then
19718 echo "configure: warning: MDI not yet supported for wxUniversal... disabled" 1>&2
19719 wxUSE_MDI_ARCHITECTURE=no
19720 fi
19721
19722 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19723 cat >> confdefs.h <<\EOF
19724 #define wxUSE_MDI_ARCHITECTURE 1
19725 EOF
19726
19727 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
19728 fi
19729 fi
19730
19731 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
19732 cat >> confdefs.h <<\EOF
19733 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
19734 EOF
19735
19736 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
19737 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
19738 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
19739 fi
19740 fi
19741
19742 if test "$wxUSE_HELP" = "yes"; then
19743 cat >> confdefs.h <<\EOF
19744 #define wxUSE_HELP 1
19745 EOF
19746
19747 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
19748
19749 if test "$wxUSE_MSW" = 1; then
19750 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
19751 cat >> confdefs.h <<\EOF
19752 #define wxUSE_MS_HTML_HELP 1
19753 EOF
19754
19755 fi
19756 fi
19757
19758 if test "$wxUSE_WXHTML_HELP" = "yes"; then
19759 if test "$wxUSE_HTML" = "yes"; then
19760 cat >> confdefs.h <<\EOF
19761 #define wxUSE_WXHTML_HELP 1
19762 EOF
19763
19764 else
19765 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
19766 wxUSE_WXHTML_HELP=no
19767 fi
19768 fi
19769 fi
19770
19771 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
19772 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19773 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
19774 else
19775 cat >> confdefs.h <<\EOF
19776 #define wxUSE_PRINTING_ARCHITECTURE 1
19777 EOF
19778
19779 fi
19780 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
19781 fi
19782
19783 if test "$wxUSE_PROLOGIO" = "yes" ; then
19784 cat >> confdefs.h <<\EOF
19785 #define wxUSE_PROLOGIO 1
19786 EOF
19787
19788 fi
19789
19790 if test "$wxUSE_RESOURCES" = "yes" ; then
19791 if test "$wxUSE_NANOX" = "yes"; then
19792 echo "configure: warning: Cannot use resource database functions in NanoX" 1>&2
19793 else
19794 cat >> confdefs.h <<\EOF
19795 #define wxUSE_RESOURCES 1
19796 EOF
19797
19798 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
19799 fi
19800 fi
19801
19802 if test "$wxUSE_X_RESOURCES" = "yes"; then
19803 cat >> confdefs.h <<\EOF
19804 #define wxUSE_X_RESOURCES 1
19805 EOF
19806
19807 fi
19808
19809
19810 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
19811 -o "$wxUSE_CLIPBOARD" = "yes" \
19812 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
19813 for ac_hdr in ole2.h
19814 do
19815 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
19816 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
19817 echo "configure:19818: checking for $ac_hdr" >&5
19818 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
19819 echo $ac_n "(cached) $ac_c" 1>&6
19820 else
19821 cat > conftest.$ac_ext <<EOF
19822 #line 19823 "configure"
19823 #include "confdefs.h"
19824 #include <$ac_hdr>
19825 EOF
19826 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
19827 { (eval echo configure:19828: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
19828 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
19829 if test -z "$ac_err"; then
19830 rm -rf conftest*
19831 eval "ac_cv_header_$ac_safe=yes"
19832 else
19833 echo "$ac_err" >&5
19834 echo "configure: failed program was:" >&5
19835 cat conftest.$ac_ext >&5
19836 rm -rf conftest*
19837 eval "ac_cv_header_$ac_safe=no"
19838 fi
19839 rm -f conftest*
19840 fi
19841 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
19842 echo "$ac_t""yes" 1>&6
19843 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
19844 cat >> confdefs.h <<EOF
19845 #define $ac_tr_hdr 1
19846 EOF
19847
19848 else
19849 echo "$ac_t""no" 1>&6
19850 fi
19851 done
19852
19853
19854 if test "$ac_cv_header_ole2_h" = "yes" ; then
19855 if test "$GCC" = yes ; then
19856 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
19857 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
19858 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
19859 cat >> confdefs.h <<\EOF
19860 #define wxUSE_OLE 1
19861 EOF
19862
19863
19864 fi
19865
19866 cat >> confdefs.h <<\EOF
19867 #define wxUSE_DATAOBJ 1
19868 EOF
19869
19870 else
19871 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
19872
19873 wxUSE_CLIPBOARD=no
19874 wxUSE_DRAG_AND_DROP=no
19875 wxUSE_DATAOBJ=no
19876 fi
19877
19878 if test "$wxUSE_METAFILE" = "yes"; then
19879 cat >> confdefs.h <<\EOF
19880 #define wxUSE_METAFILE 1
19881 EOF
19882
19883
19884 cat >> confdefs.h <<\EOF
19885 #define wxUSE_ENH_METAFILE 1
19886 EOF
19887
19888 fi
19889 fi
19890
19891 if test "$wxUSE_IPC" = "yes"; then
19892 if test "$wxUSE_SOCKETS" != "yes"; then
19893 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
19894 fi
19895
19896 cat >> confdefs.h <<\EOF
19897 #define wxUSE_IPC 1
19898 EOF
19899
19900 fi
19901
19902 if test "$wxUSE_CLIPBOARD" = "yes"; then
19903 if test "$wxUSE_MGL" = 1; then
19904 echo "configure: warning: Clipboard not yet supported under MGL... disabled" 1>&2
19905 wxUSE_CLIPBOARD=no
19906 fi
19907
19908 if test "$wxUSE_CLIPBOARD" = "yes"; then
19909 cat >> confdefs.h <<\EOF
19910 #define wxUSE_CLIPBOARD 1
19911 EOF
19912
19913
19914 cat >> confdefs.h <<\EOF
19915 #define wxUSE_DATAOBJ 1
19916 EOF
19917
19918 fi
19919 fi
19920
19921 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
19922 if test "$wxUSE_GTK" = 1; then
19923 if test "$WXGTK12" != 1; then
19924 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
19925 wxUSE_DRAG_AND_DROP=no
19926 fi
19927 fi
19928
19929 if test "$wxUSE_MOTIF" = 1; then
19930 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
19931 wxUSE_DRAG_AND_DROP=no
19932 fi
19933
19934 if test "$wxUSE_X11" = 1; then
19935 echo "configure: warning: Drag and drop not yet supported under X11... disabled" 1>&2
19936 wxUSE_DRAG_AND_DROP=no
19937 fi
19938
19939 if test "$wxUSE_MGL" = 1; then
19940 echo "configure: warning: Drag and drop not yet supported under MGL... disabled" 1>&2
19941 wxUSE_DRAG_AND_DROP=no
19942 fi
19943
19944 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
19945 cat >> confdefs.h <<\EOF
19946 #define wxUSE_DRAG_AND_DROP 1
19947 EOF
19948
19949 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
19950 fi
19951
19952 fi
19953
19954 if test "$wxUSE_SPLINES" = "yes" ; then
19955 cat >> confdefs.h <<\EOF
19956 #define wxUSE_SPLINES 1
19957 EOF
19958
19959 fi
19960
19961
19962 USES_CONTROLS=0
19963 if test "$wxUSE_CONTROLS" = "yes"; then
19964 USES_CONTROLS=1
19965 fi
19966
19967 if test "$wxUSE_ACCEL" = "yes"; then
19968 cat >> confdefs.h <<\EOF
19969 #define wxUSE_ACCEL 1
19970 EOF
19971
19972 USES_CONTROLS=1
19973 fi
19974
19975 if test "$wxUSE_BUTTON" = "yes"; then
19976 cat >> confdefs.h <<\EOF
19977 #define wxUSE_BUTTON 1
19978 EOF
19979
19980 USES_CONTROLS=1
19981 fi
19982
19983 if test "$wxUSE_BMPBUTTON" = "yes"; then
19984 cat >> confdefs.h <<\EOF
19985 #define wxUSE_BMPBUTTON 1
19986 EOF
19987
19988 USES_CONTROLS=1
19989 fi
19990
19991 if test "$wxUSE_CALCTRL" = "yes"; then
19992 cat >> confdefs.h <<\EOF
19993 #define wxUSE_CALENDARCTRL 1
19994 EOF
19995
19996 USES_CONTROLS=1
19997 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
19998 fi
19999
20000 if test "$wxUSE_CARET" = "yes"; then
20001 cat >> confdefs.h <<\EOF
20002 #define wxUSE_CARET 1
20003 EOF
20004
20005 USES_CONTROLS=1
20006 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
20007 fi
20008
20009 if test "$wxUSE_COMBOBOX" = "yes"; then
20010 cat >> confdefs.h <<\EOF
20011 #define wxUSE_COMBOBOX 1
20012 EOF
20013
20014 USES_CONTROLS=1
20015 fi
20016
20017 if test "$wxUSE_CHOICE" = "yes"; then
20018 cat >> confdefs.h <<\EOF
20019 #define wxUSE_CHOICE 1
20020 EOF
20021
20022 USES_CONTROLS=1
20023 fi
20024
20025 if test "$wxUSE_CHECKBOX" = "yes"; then
20026 cat >> confdefs.h <<\EOF
20027 #define wxUSE_CHECKBOX 1
20028 EOF
20029
20030 USES_CONTROLS=1
20031 fi
20032
20033 if test "$wxUSE_CHECKLST" = "yes"; then
20034 cat >> confdefs.h <<\EOF
20035 #define wxUSE_CHECKLISTBOX 1
20036 EOF
20037
20038 USES_CONTROLS=1
20039 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
20040 fi
20041
20042 if test "$wxUSE_GAUGE" = "yes"; then
20043 cat >> confdefs.h <<\EOF
20044 #define wxUSE_GAUGE 1
20045 EOF
20046
20047 USES_CONTROLS=1
20048 fi
20049
20050 if test "$wxUSE_NEW_GRID" = "yes"; then
20051 wxUSE_GRID="yes"
20052 cat >> confdefs.h <<\EOF
20053 #define wxUSE_NEW_GRID 1
20054 EOF
20055
20056 USES_CONTROLS=1
20057 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
20058 fi
20059
20060 if test "$wxUSE_GRID" = "yes"; then
20061 cat >> confdefs.h <<\EOF
20062 #define wxUSE_GRID 1
20063 EOF
20064
20065 USES_CONTROLS=1
20066 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
20067 fi
20068
20069 if test "$wxUSE_IMAGLIST" = "yes"; then
20070 cat >> confdefs.h <<\EOF
20071 #define wxUSE_IMAGLIST 1
20072 EOF
20073
20074 fi
20075
20076 if test "$wxUSE_LISTBOX" = "yes"; then
20077 cat >> confdefs.h <<\EOF
20078 #define wxUSE_LISTBOX 1
20079 EOF
20080
20081 USES_CONTROLS=1
20082 fi
20083
20084 if test "$wxUSE_LISTCTRL" = "yes"; then
20085 if test "$wxUSE_IMAGLIST" = "yes"; then
20086 cat >> confdefs.h <<\EOF
20087 #define wxUSE_LISTCTRL 1
20088 EOF
20089
20090 USES_CONTROLS=1
20091 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
20092 else
20093 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
20094 fi
20095 fi
20096
20097 if test "$wxUSE_NOTEBOOK" = "yes"; then
20098 cat >> confdefs.h <<\EOF
20099 #define wxUSE_NOTEBOOK 1
20100 EOF
20101
20102 USES_CONTROLS=1
20103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
20104 fi
20105
20106 if test "$wxUSE_PROPSHEET" = "yes"; then
20107 cat >> confdefs.h <<\EOF
20108 #define wxUSE_PROPSHEET 1
20109 EOF
20110
20111 USES_CONTROLS=1
20112 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
20113 fi
20114
20115 if test "$wxUSE_RADIOBOX" = "yes"; then
20116 cat >> confdefs.h <<\EOF
20117 #define wxUSE_RADIOBOX 1
20118 EOF
20119
20120 USES_CONTROLS=1
20121 fi
20122
20123 if test "$wxUSE_RADIOBTN" = "yes"; then
20124 cat >> confdefs.h <<\EOF
20125 #define wxUSE_RADIOBTN 1
20126 EOF
20127
20128 USES_CONTROLS=1
20129 fi
20130
20131 if test "$wxUSE_SASH" = "yes"; then
20132 cat >> confdefs.h <<\EOF
20133 #define wxUSE_SASH 1
20134 EOF
20135
20136 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
20137 fi
20138
20139 if test "$wxUSE_SCROLLBAR" = "yes"; then
20140 cat >> confdefs.h <<\EOF
20141 #define wxUSE_SCROLLBAR 1
20142 EOF
20143
20144 USES_CONTROLS=1
20145 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
20146 fi
20147
20148 if test "$wxUSE_SLIDER" = "yes"; then
20149 cat >> confdefs.h <<\EOF
20150 #define wxUSE_SLIDER 1
20151 EOF
20152
20153 USES_CONTROLS=1
20154 fi
20155
20156 if test "$wxUSE_SPINBTN" = "yes"; then
20157 cat >> confdefs.h <<\EOF
20158 #define wxUSE_SPINBTN 1
20159 EOF
20160
20161 USES_CONTROLS=1
20162 fi
20163
20164 if test "$wxUSE_SPINCTRL" = "yes"; then
20165 cat >> confdefs.h <<\EOF
20166 #define wxUSE_SPINCTRL 1
20167 EOF
20168
20169 USES_CONTROLS=1
20170 fi
20171
20172 if test "$wxUSE_SPLITTER" = "yes"; then
20173 cat >> confdefs.h <<\EOF
20174 #define wxUSE_SPLITTER 1
20175 EOF
20176
20177 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
20178 fi
20179
20180 if test "$wxUSE_STATBMP" = "yes"; then
20181 cat >> confdefs.h <<\EOF
20182 #define wxUSE_STATBMP 1
20183 EOF
20184
20185 USES_CONTROLS=1
20186 fi
20187
20188 if test "$wxUSE_STATBOX" = "yes"; then
20189 cat >> confdefs.h <<\EOF
20190 #define wxUSE_STATBOX 1
20191 EOF
20192
20193 USES_CONTROLS=1
20194 fi
20195
20196 if test "$wxUSE_STATTEXT" = "yes"; then
20197 cat >> confdefs.h <<\EOF
20198 #define wxUSE_STATTEXT 1
20199 EOF
20200
20201 USES_CONTROLS=1
20202 fi
20203
20204 if test "$wxUSE_STATLINE" = "yes"; then
20205 if test "$wxUSE_WINE" = 1 ; then
20206 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
20207 else
20208 cat >> confdefs.h <<\EOF
20209 #define wxUSE_STATLINE 1
20210 EOF
20211
20212 USES_CONTROLS=1
20213 fi
20214 fi
20215
20216 if test "$wxUSE_STATUSBAR" = "yes"; then
20217 cat >> confdefs.h <<\EOF
20218 #define wxUSE_STATUSBAR 1
20219 EOF
20220
20221 USES_CONTROLS=1
20222
20223 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
20224 fi
20225
20226 if test "$wxUSE_TABDIALOG" = "yes"; then
20227 cat >> confdefs.h <<\EOF
20228 #define wxUSE_TAB_DIALOG 1
20229 EOF
20230
20231 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
20232 fi
20233
20234 if test "$wxUSE_TEXTCTRL" = "yes"; then
20235 cat >> confdefs.h <<\EOF
20236 #define wxUSE_TEXTCTRL 1
20237 EOF
20238
20239 USES_CONTROLS=1
20240 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
20241 fi
20242
20243 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20244 if test "$wxUSE_MAC" = 1; then
20245 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
20246 wxUSE_TOGGLEBTN=no
20247 fi
20248 if test "$wxUSE_UNIVERSAL" = "yes"; then
20249 echo "configure: warning: Toggle button not yet supported under wxUniversal... disabled" 1>&2
20250 wxUSE_TOGGLEBTN=no
20251 fi
20252
20253 if test "$wxUSE_TOGGLEBTN" = "yes"; then
20254 cat >> confdefs.h <<\EOF
20255 #define wxUSE_TOGGLEBTN 1
20256 EOF
20257
20258 USES_CONTROLS=1
20259 fi
20260 fi
20261
20262 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
20263 cat >> confdefs.h <<\EOF
20264 #define wxUSE_TOOLBAR_SIMPLE 1
20265 EOF
20266
20267 wxUSE_TOOLBAR="yes"
20268 USES_CONTROLS=1
20269 fi
20270
20271 if test "$wxUSE_TOOLBAR" = "yes"; then
20272 cat >> confdefs.h <<\EOF
20273 #define wxUSE_TOOLBAR 1
20274 EOF
20275
20276 USES_CONTROLS=1
20277
20278 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
20279 wxUSE_TOOLBAR_NATIVE="yes"
20280 fi
20281
20282 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
20283 cat >> confdefs.h <<\EOF
20284 #define wxUSE_TOOLBAR_NATIVE 1
20285 EOF
20286
20287 USES_CONTROLS=1
20288 fi
20289
20290 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
20291 fi
20292
20293 if test "$wxUSE_TOOLTIPS" = "yes"; then
20294 if test "$wxUSE_MOTIF" = 1; then
20295 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
20296 else
20297 if test "$wxUSE_WINE" = 1; then
20298 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
20299 else
20300 if test "$wxUSE_UNIVERSAL" = "yes"; then
20301 echo "configure: warning: wxTooltip not supported yet in wxUniversal... disabled" 1>&2
20302 else
20303 cat >> confdefs.h <<\EOF
20304 #define wxUSE_TOOLTIPS 1
20305 EOF
20306
20307 fi
20308 fi
20309 fi
20310 fi
20311
20312 if test "$wxUSE_TREECTRL" = "yes"; then
20313 if test "$wxUSE_IMAGLIST" = "yes"; then
20314 cat >> confdefs.h <<\EOF
20315 #define wxUSE_TREECTRL 1
20316 EOF
20317
20318 USES_CONTROLS=1
20319 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
20320 else
20321 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
20322 fi
20323 fi
20324
20325 if test "$wxUSE_POPUPWIN" = "yes"; then
20326 if test "$wxUSE_MAC" = 1; then
20327 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
20328 else
20329 if test "$wxUSE_MOTIF" = 1; then
20330 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
20331 else
20332 if test "$wxUSE_PM" = 1; then
20333 echo "configure: warning: wxPopupWindow not yet supported under PM... disabled" 1>&2
20334 else
20335 cat >> confdefs.h <<\EOF
20336 #define wxUSE_POPUPWIN 1
20337 EOF
20338
20339
20340 USES_CONTROLS=1
20341 fi
20342 fi
20343 fi
20344 fi
20345
20346 if test "$wxUSE_TIPWINDOW" = "yes"; then
20347 if test "$wxUSE_PM" = 1; then
20348 echo "configure: warning: wxTipWindow not yet supported under PM... disabled" 1>&2
20349 else
20350 cat >> confdefs.h <<\EOF
20351 #define wxUSE_TIPWINDOW 1
20352 EOF
20353
20354 fi
20355 fi
20356
20357 if test "$USES_CONTROLS" = 1; then
20358 cat >> confdefs.h <<\EOF
20359 #define wxUSE_CONTROLS 1
20360 EOF
20361
20362 fi
20363
20364
20365 if test "$wxUSE_TREELAYOUT" = "yes"; then
20366 cat >> confdefs.h <<\EOF
20367 #define wxUSE_TREELAYOUT 1
20368 EOF
20369
20370 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
20371 fi
20372
20373 if test "$wxUSE_DRAGIMAGE" = "yes"; then
20374 cat >> confdefs.h <<\EOF
20375 #define wxUSE_DRAGIMAGE 1
20376 EOF
20377
20378 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
20379 fi
20380
20381 if test "$wxUSE_MENUS" = "yes"; then
20382 cat >> confdefs.h <<\EOF
20383 #define wxUSE_MENUS 1
20384 EOF
20385
20386 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
20387 fi
20388
20389 if test "$wxUSE_METAFILE" = "yes"; then
20390 cat >> confdefs.h <<\EOF
20391 #define wxUSE_METAFILE 1
20392 EOF
20393
20394 fi
20395
20396 if test "$wxUSE_MIMETYPE" = "yes"; then
20397 cat >> confdefs.h <<\EOF
20398 #define wxUSE_MIMETYPE 1
20399 EOF
20400
20401 fi
20402
20403 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
20404 cat >> confdefs.h <<\EOF
20405 #define wxUSE_SYSTEM_OPTIONS 1
20406 EOF
20407
20408 if test "$TOOLKIT" = "MSW"; then
20409 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
20410 fi
20411
20412 fi
20413
20414 if test "$wxUSE_PROTOCOL" = "yes"; then
20415 if test "$wxUSE_SOCKETS" != "yes"; then
20416 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
20417 wxUSE_PROTOCOL=no
20418 fi
20419
20420 if test "$wxUSE_PROTOCOL" = "yes"; then
20421 cat >> confdefs.h <<\EOF
20422 #define wxUSE_PROTOCOL 1
20423 EOF
20424
20425
20426 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
20427 cat >> confdefs.h <<\EOF
20428 #define wxUSE_PROTOCOL_HTTP 1
20429 EOF
20430
20431 fi
20432 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
20433 cat >> confdefs.h <<\EOF
20434 #define wxUSE_PROTOCOL_FTP 1
20435 EOF
20436
20437 fi
20438 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
20439 cat >> confdefs.h <<\EOF
20440 #define wxUSE_PROTOCOL_FILE 1
20441 EOF
20442
20443 fi
20444 fi
20445 fi
20446
20447 if test "$wxUSE_URL" = "yes"; then
20448 if test "$wxUSE_PROTOCOL" != "yes"; then
20449 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
20450 wxUSE_URL=no
20451 fi
20452 if test "$wxUSE_URL" = "yes"; then
20453 cat >> confdefs.h <<\EOF
20454 #define wxUSE_URL 1
20455 EOF
20456
20457 fi
20458 fi
20459
20460 if test "$wxUSE_MINIFRAME" = "yes"; then
20461 cat >> confdefs.h <<\EOF
20462 #define wxUSE_MINIFRAME 1
20463 EOF
20464
20465 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
20466 fi
20467
20468 if test "$wxUSE_HTML" = "yes"; then
20469 cat >> confdefs.h <<\EOF
20470 #define wxUSE_HTML 1
20471 EOF
20472
20473 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
20474 fi
20475
20476 if test "$wxUSE_VALIDATORS" = "yes"; then
20477 cat >> confdefs.h <<\EOF
20478 #define wxUSE_VALIDATORS 1
20479 EOF
20480
20481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
20482 fi
20483
20484 if test "$wxUSE_PALETTE" = "yes" ; then
20485 cat >> confdefs.h <<\EOF
20486 #define wxUSE_PALETTE 1
20487 EOF
20488
20489 fi
20490
20491 if test "$wxUSE_IMAGE" = "yes" ; then
20492 cat >> confdefs.h <<\EOF
20493 #define wxUSE_IMAGE 1
20494 EOF
20495
20496 fi
20497
20498 if test "$wxUSE_GIF" = "yes" ; then
20499 cat >> confdefs.h <<\EOF
20500 #define wxUSE_GIF 1
20501 EOF
20502
20503 fi
20504
20505 if test "$wxUSE_PCX" = "yes" ; then
20506 cat >> confdefs.h <<\EOF
20507 #define wxUSE_PCX 1
20508 EOF
20509
20510 fi
20511
20512 if test "$wxUSE_IFF" = "yes" ; then
20513 cat >> confdefs.h <<\EOF
20514 #define wxUSE_IFF 1
20515 EOF
20516
20517 fi
20518
20519 if test "$wxUSE_PNM" = "yes" ; then
20520 cat >> confdefs.h <<\EOF
20521 #define wxUSE_PNM 1
20522 EOF
20523
20524 fi
20525
20526 if test "$wxUSE_XPM" = "yes" ; then
20527 cat >> confdefs.h <<\EOF
20528 #define wxUSE_XPM 1
20529 EOF
20530
20531 fi
20532
20533 if test "$wxUSE_ICO_CUR" = "yes" ; then
20534 cat >> confdefs.h <<\EOF
20535 #define wxUSE_ICO_CUR 1
20536 EOF
20537
20538 fi
20539
20540 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
20541 LIBS=" -lunicows $LIBS"
20542 fi
20543
20544
20545 if test "$wxUSE_CHOICEDLG" = "yes"; then
20546 cat >> confdefs.h <<\EOF
20547 #define wxUSE_CHOICEDLG 1
20548 EOF
20549
20550 fi
20551
20552 if test "$wxUSE_COLOURDLG" = "yes"; then
20553 cat >> confdefs.h <<\EOF
20554 #define wxUSE_COLOURDLG 1
20555 EOF
20556
20557 fi
20558
20559 if test "$wxUSE_FILEDLG" = "yes"; then
20560 cat >> confdefs.h <<\EOF
20561 #define wxUSE_FILEDLG 1
20562 EOF
20563
20564 fi
20565
20566 if test "$wxUSE_FINDREPLDLG" = "yes"; then
20567 cat >> confdefs.h <<\EOF
20568 #define wxUSE_FINDREPLDLG 1
20569 EOF
20570
20571 fi
20572
20573 if test "$wxUSE_FONTDLG" = "yes"; then
20574 cat >> confdefs.h <<\EOF
20575 #define wxUSE_FONTDLG 1
20576 EOF
20577
20578 fi
20579
20580 if test "$wxUSE_DIRDLG" = "yes"; then
20581 if test "$wxUSE_TREECTRL" != "yes"; then
20582 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
20583 else
20584 cat >> confdefs.h <<\EOF
20585 #define wxUSE_DIRDLG 1
20586 EOF
20587
20588 fi
20589 fi
20590
20591 if test "$wxUSE_MSGDLG" = "yes"; then
20592 cat >> confdefs.h <<\EOF
20593 #define wxUSE_MSGDLG 1
20594 EOF
20595
20596 fi
20597
20598 if test "$wxUSE_NUMBERDLG" = "yes"; then
20599 cat >> confdefs.h <<\EOF
20600 #define wxUSE_NUMBERDLG 1
20601 EOF
20602
20603 fi
20604
20605 if test "$wxUSE_PROGRESSDLG" = "yes"; then
20606 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20607 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
20608 else
20609 cat >> confdefs.h <<\EOF
20610 #define wxUSE_PROGRESSDLG 1
20611 EOF
20612
20613 fi
20614 fi
20615
20616 if test "$wxUSE_SPLASH" = "yes"; then
20617 cat >> confdefs.h <<\EOF
20618 #define wxUSE_SPLASH 1
20619 EOF
20620
20621 fi
20622
20623 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
20624 if test "$wxUSE_CONSTRAINTS" != "yes"; then
20625 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
20626 else
20627 cat >> confdefs.h <<\EOF
20628 #define wxUSE_STARTUP_TIPS 1
20629 EOF
20630
20631 fi
20632 fi
20633
20634 if test "$wxUSE_TEXTDLG" = "yes"; then
20635 cat >> confdefs.h <<\EOF
20636 #define wxUSE_TEXTDLG 1
20637 EOF
20638
20639 fi
20640
20641 if test "$wxUSE_WIZARDDLG" = "yes"; then
20642 cat >> confdefs.h <<\EOF
20643 #define wxUSE_WIZARDDLG 1
20644 EOF
20645
20646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
20647 fi
20648
20649
20650 if test "$cross_compiling" = "yes"; then
20651 OSINFO="\"$host\""
20652 else
20653 OSINFO=`uname -s -r -m`
20654 OSINFO="\"$OSINFO\""
20655 fi
20656
20657 cat >> confdefs.h <<EOF
20658 #define WXWIN_OS_DESCRIPTION $OSINFO
20659 EOF
20660
20661
20662
20663 if test "x$prefix" != "xNONE"; then
20664 wxPREFIX=$prefix
20665 else
20666 wxPREFIX=$ac_default_prefix
20667 fi
20668
20669 cat >> confdefs.h <<EOF
20670 #define wxINSTALL_PREFIX "$wxPREFIX"
20671 EOF
20672
20673
20674
20675
20676
20677 if test "$wxUSE_MAC" = 1 ; then
20678 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
20679 fi
20680
20681
20682 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK -lm $LIBS"
20683
20684 if test "$wxUSE_GUI" = "yes"; then
20685
20686 LIBS="$GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $LIBS"
20687
20688
20689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs \
20690 drawing dynamic erase event exec font image \
20691 minimal richedit rotate widgets"
20692
20693 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
20694 else
20695 SAMPLES_SUBDIRS="console"
20696 fi
20697
20698
20699 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} \
20700 -I\${top_srcdir}/include \
20701 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
20702 $TOOLKIT_INCLUDE"
20703
20704 if test "$wxUSE_GTK" = 1; then
20705 WXCONFIG_INCLUDE=
20706 else
20707 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
20708 fi
20709
20710 if test "$GXX" = yes ; then
20711 CXXWARNINGS="-Wall"
20712
20713 if test "$wxUSE_NO_DEPS" = "no" ; then
20714 CFLAGS="-MMD $CFLAGS"
20715 CXXFLAGS="-MMD $CXXFLAGS"
20716 fi
20717 fi
20718
20719 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
20720
20721 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
20722 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
20723 LIBS=`echo $LIBS | sed 's/ \+/ /g'`
20724
20725 LDFLAGS="$LDFLAGS $PROFILE"
20726
20727 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738
20739
20740
20741
20742
20743
20744
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757
20758
20759
20760
20761
20762
20763
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776
20777
20778
20779
20780
20781
20782
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795
20796
20797
20798
20799
20800
20801
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814
20815
20816
20817 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
20818 echo "configure:20819: checking whether ${MAKE-make} sets \${MAKE}" >&5
20819 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
20820 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
20821 echo $ac_n "(cached) $ac_c" 1>&6
20822 else
20823 cat > conftestmake <<\EOF
20824 all:
20825 @echo 'ac_maketemp="${MAKE}"'
20826 EOF
20827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20828 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
20829 if test -n "$ac_maketemp"; then
20830 eval ac_cv_prog_make_${ac_make}_set=yes
20831 else
20832 eval ac_cv_prog_make_${ac_make}_set=no
20833 fi
20834 rm -f conftestmake
20835 fi
20836 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20837 echo "$ac_t""yes" 1>&6
20838 SET_MAKE=
20839 else
20840 echo "$ac_t""no" 1>&6
20841 SET_MAKE="MAKE=${MAKE-make}"
20842 fi
20843
20844
20845 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
20846 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
20847 fi
20848
20849
20850
20851 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
20852 wx_cv_if_gnu_make=$IF_GNU_MAKE
20853 wx_cv_path_ifs=$PATH_IFS
20854 wx_cv_program_ext=$PROGRAM_EXT
20855 wx_cv_target_library=$WX_TARGET_LIBRARY
20856 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
20857 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
20858 export wx_cv_path_samplesubdirs wx_cv_if_gnu_make \
20859 wx_cv_path_ifs wx_cv_program_ext \
20860 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
20861
20862 subdirs="demos samples utils contrib"
20863
20864
20865 trap '' 1 2 15
20866 cat > confcache <<\EOF
20867 # This file is a shell script that caches the results of configure
20868 # tests run on this system so they can be shared between configure
20869 # scripts and configure runs. It is not useful on other systems.
20870 # If it contains results you don't want to keep, you may remove or edit it.
20871 #
20872 # By default, configure uses ./config.cache as the cache file,
20873 # creating it if it does not exist already. You can give configure
20874 # the --cache-file=FILE option to use a different cache file; that is
20875 # what configure does when it calls configure scripts in
20876 # subdirectories, so they share the cache.
20877 # Giving --cache-file=/dev/null disables caching, for debugging configure.
20878 # config.status only pays attention to the cache file if you give it the
20879 # --recheck option to rerun configure.
20880 #
20881 EOF
20882 # The following way of writing the cache mishandles newlines in values,
20883 # but we know of no workaround that is simple, portable, and efficient.
20884 # So, don't put newlines in cache variables' values.
20885 # Ultrix sh set writes to stderr and can't be redirected directly,
20886 # and sets the high bit in the cache file unless we assign to the vars.
20887 (set) 2>&1 |
20888 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20889 *ac_space=\ *)
20890 # `set' does not quote correctly, so add quotes (double-quote substitution
20891 # turns \\\\ into \\, and sed turns \\ into \).
20892 sed -n \
20893 -e "s/'/'\\\\''/g" \
20894 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
20895 ;;
20896 *)
20897 # `set' quotes correctly as required by POSIX, so do not add quotes.
20898 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
20899 ;;
20900 esac >> confcache
20901 if cmp -s $cache_file confcache; then
20902 :
20903 else
20904 if test -w $cache_file; then
20905 echo "updating cache $cache_file"
20906 cat confcache > $cache_file
20907 else
20908 echo "not updating unwritable cache $cache_file"
20909 fi
20910 fi
20911 rm -f confcache
20912
20913 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
20914
20915 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20916 # Let make expand exec_prefix.
20917 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20918
20919 # Any assignment to VPATH causes Sun make to only execute
20920 # the first set of double-colon rules, so remove it if not needed.
20921 # If there is a colon in the path, we need to keep it.
20922 if test "x$srcdir" = x.; then
20923 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
20924 fi
20925
20926 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
20927
20928 DEFS=-DHAVE_CONFIG_H
20929
20930 # Without the "./", some shells look in PATH for config.status.
20931 : ${CONFIG_STATUS=./config.status}
20932
20933 echo creating $CONFIG_STATUS
20934 rm -f $CONFIG_STATUS
20935 cat > $CONFIG_STATUS <<EOF
20936 #! /bin/sh
20937 # Generated automatically by configure.
20938 # Run this file to recreate the current configuration.
20939 # This directory was configured as follows,
20940 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20941 #
20942 # $0 $ac_configure_args
20943 #
20944 # Compiler output produced by configure, useful for debugging
20945 # configure, is in ./config.log if it exists.
20946
20947 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
20948 for ac_option
20949 do
20950 case "\$ac_option" in
20951 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20952 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
20953 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
20954 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
20955 echo "$CONFIG_STATUS generated by autoconf version 2.13"
20956 exit 0 ;;
20957 -help | --help | --hel | --he | --h)
20958 echo "\$ac_cs_usage"; exit 0 ;;
20959 *) echo "\$ac_cs_usage"; exit 1 ;;
20960 esac
20961 done
20962
20963 ac_given_srcdir=$srcdir
20964 ac_given_INSTALL="$INSTALL"
20965
20966 trap 'rm -fr `echo "
20967 wx-config
20968 src/make.env
20969 src/makeprog.env
20970 src/makelib.env
20971 Makefile
20972 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
20973 EOF
20974 cat >> $CONFIG_STATUS <<EOF
20975
20976 # Protect against being on the right side of a sed subst in config.status.
20977 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
20978 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
20979 $ac_vpsub
20980 $extrasub
20981 s%@SHELL@%$SHELL%g
20982 s%@CFLAGS@%$CFLAGS%g
20983 s%@CPPFLAGS@%$CPPFLAGS%g
20984 s%@CXXFLAGS@%$CXXFLAGS%g
20985 s%@FFLAGS@%$FFLAGS%g
20986 s%@DEFS@%$DEFS%g
20987 s%@LDFLAGS@%$LDFLAGS%g
20988 s%@LIBS@%$LIBS%g
20989 s%@exec_prefix@%$exec_prefix%g
20990 s%@prefix@%$prefix%g
20991 s%@program_transform_name@%$program_transform_name%g
20992 s%@bindir@%$bindir%g
20993 s%@sbindir@%$sbindir%g
20994 s%@libexecdir@%$libexecdir%g
20995 s%@datadir@%$datadir%g
20996 s%@sysconfdir@%$sysconfdir%g
20997 s%@sharedstatedir@%$sharedstatedir%g
20998 s%@localstatedir@%$localstatedir%g
20999 s%@libdir@%$libdir%g
21000 s%@includedir@%$includedir%g
21001 s%@oldincludedir@%$oldincludedir%g
21002 s%@infodir@%$infodir%g
21003 s%@mandir@%$mandir%g
21004 s%@host@%$host%g
21005 s%@host_alias@%$host_alias%g
21006 s%@host_cpu@%$host_cpu%g
21007 s%@host_vendor@%$host_vendor%g
21008 s%@host_os@%$host_os%g
21009 s%@target@%$target%g
21010 s%@target_alias@%$target_alias%g
21011 s%@target_cpu@%$target_cpu%g
21012 s%@target_vendor@%$target_vendor%g
21013 s%@target_os@%$target_os%g
21014 s%@build@%$build%g
21015 s%@build_alias@%$build_alias%g
21016 s%@build_cpu@%$build_cpu%g
21017 s%@build_vendor@%$build_vendor%g
21018 s%@build_os@%$build_os%g
21019 s%@CC@%$CC%g
21020 s%@CPP@%$CPP%g
21021 s%@CXX@%$CXX%g
21022 s%@RANLIB@%$RANLIB%g
21023 s%@AR@%$AR%g
21024 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
21025 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
21026 s%@INSTALL_DATA@%$INSTALL_DATA%g
21027 s%@STRIP@%$STRIP%g
21028 s%@IF_GNU_MAKE@%$IF_GNU_MAKE%g
21029 s%@YACC@%$YACC%g
21030 s%@LEX@%$LEX%g
21031 s%@LEXLIB@%$LEXLIB%g
21032 s%@LN_S@%$LN_S%g
21033 s%@CXXCPP@%$CXXCPP%g
21034 s%@PKG_CONFIG@%$PKG_CONFIG%g
21035 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
21036 s%@GTK_LIBS@%$GTK_LIBS%g
21037 s%@GTK_CONFIG@%$GTK_CONFIG%g
21038 s%@X_CFLAGS@%$X_CFLAGS%g
21039 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
21040 s%@X_LIBS@%$X_LIBS%g
21041 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
21042 s%@AIX_CXX_LD@%$AIX_CXX_LD%g
21043 s%@RESCOMP@%$RESCOMP%g
21044 s%@DEREZ@%$DEREZ%g
21045 s%@LIBICONV@%$LIBICONV%g
21046 s%@LEX_STEM@%$LEX_STEM%g
21047 s%@PATH_IFS@%$PATH_IFS%g
21048 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
21049 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
21050 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
21051 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
21052 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
21053 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
21054 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
21055 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
21056 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
21057 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
21058 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
21059 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
21060 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
21061 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
21062 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
21063 s%@WX_ALL@%$WX_ALL%g
21064 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
21065 s%@SHARED_LD@%$SHARED_LD%g
21066 s%@PIC_FLAG@%$PIC_FLAG%g
21067 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
21068 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
21069 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
21070 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
21071 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
21072 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
21073 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
21074 s%@USE_GUI@%$USE_GUI%g
21075 s%@AFMINSTALL@%$AFMINSTALL%g
21076 s%@TOOLKIT@%$TOOLKIT%g
21077 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
21078 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
21079 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
21080 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
21081 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
21082 s%@cross_compiling@%$cross_compiling%g
21083 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
21084 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
21085 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
21086 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
21087 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
21088 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
21089 s%@ALL_HEADERS@%$ALL_HEADERS%g
21090 s%@ALL_SOURCES@%$ALL_SOURCES%g
21091 s%@GUIDIST@%$GUIDIST%g
21092 s%@PORT_FILES@%$PORT_FILES%g
21093 s%@DISTDIR@%$DISTDIR%g
21094 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
21095 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
21096 s%@LDFLAGS_EXE@%$LDFLAGS_EXE%g
21097 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
21098 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
21099 s%@EXTRADEFS@%$EXTRADEFS%g
21100 s%@RESFLAGS@%$RESFLAGS%g
21101 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
21102 s%@WX_RESOURCES_MACOSX_ASCII@%$WX_RESOURCES_MACOSX_ASCII%g
21103 s%@WX_RESOURCES_MACOSX_DATA@%$WX_RESOURCES_MACOSX_DATA%g
21104 s%@MACOSX_BUNDLE@%$MACOSX_BUNDLE%g
21105 s%@LIBWXMACRES@%$LIBWXMACRES%g
21106 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
21107 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
21108 s%@DLLTOOL@%$DLLTOOL%g
21109 s%@AS@%$AS%g
21110 s%@NM@%$NM%g
21111 s%@LD@%$LD%g
21112 s%@MAKEINFO@%$MAKEINFO%g
21113 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
21114 s%@SET_MAKE@%$SET_MAKE%g
21115 s%@subdirs@%$subdirs%g
21116
21117 CEOF
21118 EOF
21119
21120 cat >> $CONFIG_STATUS <<\EOF
21121
21122 # Split the substitutions into bite-sized pieces for seds with
21123 # small command number limits, like on Digital OSF/1 and HP-UX.
21124 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
21125 ac_file=1 # Number of current file.
21126 ac_beg=1 # First line for current file.
21127 ac_end=$ac_max_sed_cmds # Line after last line for current file.
21128 ac_more_lines=:
21129 ac_sed_cmds=""
21130 while $ac_more_lines; do
21131 if test $ac_beg -gt 1; then
21132 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
21133 else
21134 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
21135 fi
21136 if test ! -s conftest.s$ac_file; then
21137 ac_more_lines=false
21138 rm -f conftest.s$ac_file
21139 else
21140 if test -z "$ac_sed_cmds"; then
21141 ac_sed_cmds="sed -f conftest.s$ac_file"
21142 else
21143 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
21144 fi
21145 ac_file=`expr $ac_file + 1`
21146 ac_beg=$ac_end
21147 ac_end=`expr $ac_end + $ac_max_sed_cmds`
21148 fi
21149 done
21150 if test -z "$ac_sed_cmds"; then
21151 ac_sed_cmds=cat
21152 fi
21153 EOF
21154
21155 cat >> $CONFIG_STATUS <<EOF
21156
21157 CONFIG_FILES=\${CONFIG_FILES-"wx-config
21158 src/make.env
21159 src/makeprog.env
21160 src/makelib.env
21161 Makefile
21162 "}
21163 EOF
21164 cat >> $CONFIG_STATUS <<\EOF
21165 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
21166 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21167 case "$ac_file" in
21168 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21169 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21170 *) ac_file_in="${ac_file}.in" ;;
21171 esac
21172
21173 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
21174
21175 # Remove last slash and all that follows it. Not all systems have dirname.
21176 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21177 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21178 # The file is in a subdirectory.
21179 test ! -d "$ac_dir" && mkdir "$ac_dir"
21180 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
21181 # A "../" for each directory in $ac_dir_suffix.
21182 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
21183 else
21184 ac_dir_suffix= ac_dots=
21185 fi
21186
21187 case "$ac_given_srcdir" in
21188 .) srcdir=.
21189 if test -z "$ac_dots"; then top_srcdir=.
21190 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
21191 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
21192 *) # Relative path.
21193 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
21194 top_srcdir="$ac_dots$ac_given_srcdir" ;;
21195 esac
21196
21197 case "$ac_given_INSTALL" in
21198 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21199 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21200 esac
21201
21202 echo creating "$ac_file"
21203 rm -f "$ac_file"
21204 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
21205 case "$ac_file" in
21206 *Makefile*) ac_comsub="1i\\
21207 # $configure_input" ;;
21208 *) ac_comsub= ;;
21209 esac
21210
21211 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21212 sed -e "$ac_comsub
21213 s%@configure_input@%$configure_input%g
21214 s%@srcdir@%$srcdir%g
21215 s%@top_srcdir@%$top_srcdir%g
21216 s%@INSTALL@%$INSTALL%g
21217 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
21218 fi; done
21219 rm -f conftest.s*
21220
21221 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21222 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21223 #
21224 # ac_d sets the value in "#define NAME VALUE" lines.
21225 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21226 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
21227 ac_dC='\3'
21228 ac_dD='%g'
21229 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
21230 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21231 ac_uB='\([ ]\)%\1#\2define\3'
21232 ac_uC=' '
21233 ac_uD='\4%g'
21234 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21235 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
21236 ac_eB='$%\1#\2define\3'
21237 ac_eC=' '
21238 ac_eD='%g'
21239
21240 if test "${CONFIG_HEADERS+set}" != set; then
21241 EOF
21242 cat >> $CONFIG_STATUS <<EOF
21243 CONFIG_HEADERS="setup.h:setup.h.in"
21244 EOF
21245 cat >> $CONFIG_STATUS <<\EOF
21246 fi
21247 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
21248 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21249 case "$ac_file" in
21250 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
21251 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
21252 *) ac_file_in="${ac_file}.in" ;;
21253 esac
21254
21255 echo creating $ac_file
21256
21257 rm -f conftest.frag conftest.in conftest.out
21258 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
21259 cat $ac_file_inputs > conftest.in
21260
21261 EOF
21262
21263 # Transform confdefs.h into a sed script conftest.vals that substitutes
21264 # the proper values into config.h.in to produce config.h. And first:
21265 # Protect against being on the right side of a sed subst in config.status.
21266 # Protect against being in an unquoted here document in config.status.
21267 rm -f conftest.vals
21268 cat > conftest.hdr <<\EOF
21269 s/[\\&%]/\\&/g
21270 s%[\\$`]%\\&%g
21271 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
21272 s%ac_d%ac_u%gp
21273 s%ac_u%ac_e%gp
21274 EOF
21275 sed -n -f conftest.hdr confdefs.h > conftest.vals
21276 rm -f conftest.hdr
21277
21278 # This sed command replaces #undef with comments. This is necessary, for
21279 # example, in the case of _POSIX_SOURCE, which is predefined and required
21280 # on some systems where configure will not decide to define it.
21281 cat >> conftest.vals <<\EOF
21282 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
21283 EOF
21284
21285 # Break up conftest.vals because some shells have a limit on
21286 # the size of here documents, and old seds have small limits too.
21287
21288 rm -f conftest.tail
21289 while :
21290 do
21291 ac_lines=`grep -c . conftest.vals`
21292 # grep -c gives empty output for an empty file on some AIX systems.
21293 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
21294 # Write a limited-size here document to conftest.frag.
21295 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
21296 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
21297 echo 'CEOF
21298 sed -f conftest.frag conftest.in > conftest.out
21299 rm -f conftest.in
21300 mv conftest.out conftest.in
21301 ' >> $CONFIG_STATUS
21302 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
21303 rm -f conftest.vals
21304 mv conftest.tail conftest.vals
21305 done
21306 rm -f conftest.vals
21307
21308 cat >> $CONFIG_STATUS <<\EOF
21309 rm -f conftest.frag conftest.h
21310 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
21311 cat conftest.in >> conftest.h
21312 rm -f conftest.in
21313 if cmp -s $ac_file conftest.h 2>/dev/null; then
21314 echo "$ac_file is unchanged"
21315 rm -f conftest.h
21316 else
21317 # Remove last slash and all that follows it. Not all systems have dirname.
21318 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
21319 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
21320 # The file is in a subdirectory.
21321 test ! -d "$ac_dir" && mkdir "$ac_dir"
21322 fi
21323 rm -f $ac_file
21324 mv conftest.h $ac_file
21325 fi
21326 fi; done
21327
21328 EOF
21329 cat >> $CONFIG_STATUS <<EOF
21330
21331 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
21332 LN_S="${LN_S}"
21333
21334
21335 EOF
21336 cat >> $CONFIG_STATUS <<\EOF
21337
21338 if test ! -h wx-config; then
21339 chmod +x wx-config
21340 mv wx-config wx${TOOLCHAIN_NAME}-config
21341 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
21342 fi
21343
21344 if test ! -d lib; then
21345 mkdir lib
21346 fi
21347 if test ! -d lib/wx; then
21348 mkdir lib/wx
21349 fi
21350 if test ! -d lib/wx/include; then
21351 mkdir lib/wx/include
21352 fi
21353 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
21354 mkdir lib/wx/include/${TOOLCHAIN_NAME}
21355 fi
21356 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
21357 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
21358 fi
21359 if test -f setup.h; then
21360 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
21361 fi
21362
21363 exit 0
21364 EOF
21365 chmod +x $CONFIG_STATUS
21366 rm -fr confdefs* $ac_clean_files
21367 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
21368
21369 if test "$no_recursion" != yes; then
21370
21371 # Remove --cache-file and --srcdir arguments so they do not pile up.
21372 ac_sub_configure_args=
21373 ac_prev=
21374 for ac_arg in $ac_configure_args; do
21375 if test -n "$ac_prev"; then
21376 ac_prev=
21377 continue
21378 fi
21379 case "$ac_arg" in
21380 -cache-file | --cache-file | --cache-fil | --cache-fi \
21381 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21382 ac_prev=cache_file ;;
21383 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21384 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
21385 ;;
21386 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21387 ac_prev=srcdir ;;
21388 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21389 ;;
21390 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
21391 esac
21392 done
21393
21394 for ac_config_dir in demos samples utils contrib; do
21395
21396 # Do not complain, so a configure script can configure whichever
21397 # parts of a large source tree are present.
21398 if test ! -d $srcdir/$ac_config_dir; then
21399 continue
21400 fi
21401
21402 echo configuring in $ac_config_dir
21403
21404 case "$srcdir" in
21405 .) ;;
21406 *)
21407 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
21408 else
21409 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
21410 fi
21411 ;;
21412 esac
21413
21414 ac_popdir=`pwd`
21415 cd $ac_config_dir
21416
21417 # A "../" for each directory in /$ac_config_dir.
21418 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
21419
21420 case "$srcdir" in
21421 .) # No --srcdir option. We are building in place.
21422 ac_sub_srcdir=$srcdir ;;
21423 /*) # Absolute path.
21424 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
21425 *) # Relative path.
21426 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
21427 esac
21428
21429 # Check for guested configure; otherwise get Cygnus style configure.
21430 if test -f $ac_sub_srcdir/configure; then
21431 ac_sub_configure=$ac_sub_srcdir/configure
21432 elif test -f $ac_sub_srcdir/configure.in; then
21433 ac_sub_configure=$ac_configure
21434 else
21435 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
21436 ac_sub_configure=
21437 fi
21438
21439 # The recursion is here.
21440 if test -n "$ac_sub_configure"; then
21441
21442 # Make the cache file name correct relative to the subdirectory.
21443 case "$cache_file" in
21444 /*) ac_sub_cache_file=$cache_file ;;
21445 *) # Relative path.
21446 ac_sub_cache_file="$ac_dots$cache_file" ;;
21447 esac
21448 case "$ac_given_INSTALL" in
21449 [/$]*) INSTALL="$ac_given_INSTALL" ;;
21450 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
21451 esac
21452
21453 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
21454 # The eval makes quoting arguments work.
21455 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
21456 then :
21457 else
21458 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
21459 fi
21460 fi
21461
21462 cd $ac_popdir
21463 done
21464 fi
21465
21466