]> git.saurik.com Git - wxWidgets.git/blob - configure
compilation fix for Borland (hopefully)
[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 # Guess values for system-dependent variables and create Makefiles.
45 # Generated automatically using autoconf version 2.13
46 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
47 #
48 # This configure script is free software; the Free Software Foundation
49 # gives unlimited permission to copy, distribute and modify it.
50
51 # Defaults:
52 ac_help=
53 ac_default_prefix=/usr/local
54 # Any additions from configure.in:
55 ac_help="$ac_help
56 --enable-gui use GUI classes"
57 ac_help="$ac_help
58 --enable-universal use wxWindows GUI controls instead of native ones"
59 ac_help="$ac_help
60 --with-gtk use GTK+"
61 ac_help="$ac_help
62 --with-motif use Motif/Lesstif"
63 ac_help="$ac_help
64 --with-mac use Mac OS X"
65 ac_help="$ac_help
66 --with-wine use WINE"
67 ac_help="$ac_help
68 --with-msw use MS-Windows"
69 ac_help="$ac_help
70 --with-pm use OS/2 Presentation Manager"
71 ac_help="$ac_help
72 --with-mgl use SciTech MGL"
73 ac_help="$ac_help
74 --with-microwin use MicroWindows"
75 ac_help="$ac_help
76 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
77 ac_help="$ac_help
78 --with-libpng use libpng (PNG image format)"
79 ac_help="$ac_help
80 --with-libjpeg use libjpeg (JPEG file format)"
81 ac_help="$ac_help
82 --with-libtiff use libtiff (TIFF file format)"
83 ac_help="$ac_help
84 --with-freetype use freetype (font rasterizer)"
85 ac_help="$ac_help
86 --with-opengl use OpenGL (or Mesa)"
87 ac_help="$ac_help
88 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
89 ac_help="$ac_help
90 --with-regex enable support for wxRegEx class"
91 ac_help="$ac_help
92 --with-zlib use zlib for LZW compression"
93 ac_help="$ac_help
94 --with-odbc use the IODBC and wxODBC classes"
95 ac_help="$ac_help
96 --enable-shared create shared library code"
97 ac_help="$ac_help
98 --enable-soname set the DT_SONAME field in ELF shared libraries"
99 ac_help="$ac_help
100 --enable-optimise create optimised code"
101 ac_help="$ac_help
102 --enable-debug same as debug_flag and debug_info"
103 ac_help="$ac_help
104 --enable-precomp enable use of precompiled headers (Mac OS X)"
105 ac_help="$ac_help
106 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
107 ac_help="$ac_help
108 --enable-debug_info create code with debugging information"
109 ac_help="$ac_help
110 --enable-debug_gdb create code with extra GDB debugging information"
111 ac_help="$ac_help
112 --enable-debug_cntxt use wxDebugContext"
113 ac_help="$ac_help
114 --enable-mem_tracing create code with memory tracing"
115 ac_help="$ac_help
116 --enable-profile create code with profiling information"
117 ac_help="$ac_help
118 --enable-no_rtti create code without RTTI information"
119 ac_help="$ac_help
120 --enable-no_exceptions create code without C++ exceptions handling"
121 ac_help="$ac_help
122 --enable-permissive compile code disregarding strict ANSI"
123 ac_help="$ac_help
124 --enable-no_deps create code without dependency information"
125 ac_help="$ac_help
126 --enable-compat20 enable wxWindows 2.0 compatibility"
127 ac_help="$ac_help
128 --enable-compat22 enable wxWindows 2.2 compatibility"
129 ac_help="$ac_help
130 --enable-intl use internationalization system"
131 ac_help="$ac_help
132 --enable-config use wxConfig (and derived) classes"
133 ac_help="$ac_help
134 --enable-protocols use wxProtocol and derived classes"
135 ac_help="$ac_help
136 --enable-ftp use wxFTP (requires wxProtocol"
137 ac_help="$ac_help
138 --enable-http use wxHTTP (requires wxProtocol"
139 ac_help="$ac_help
140 --enable-fileproto use wxFileProto class (requires wxProtocol"
141 ac_help="$ac_help
142 --enable-sockets use socket/network classes"
143 ac_help="$ac_help
144 --enable-ipc use interprocess communication (wxSocket etc.)"
145 ac_help="$ac_help
146 --enable-cmdline use wxCmdLineParser class"
147 ac_help="$ac_help
148 --enable-datetime use wxDateTime class"
149 ac_help="$ac_help
150 --enable-timedate use obsolete wxDate/wxTime classes"
151 ac_help="$ac_help
152 --enable-stopwatch use wxStopWatch class"
153 ac_help="$ac_help
154 --enable-dialupman use dialup network classes"
155 ac_help="$ac_help
156 --enable-apple_ieee use the Apple IEEE codec"
157 ac_help="$ac_help
158 --enable-timer use wxTimer class"
159 ac_help="$ac_help
160 --enable-wave use wxWave class"
161 ac_help="$ac_help
162 --enable-fraction use wxFraction class"
163 ac_help="$ac_help
164 --enable-dynlib use wxLibrary class for DLL loading"
165 ac_help="$ac_help
166 --enable-dynamicloader use (new) wxDynamicLibrary class"
167 ac_help="$ac_help
168 --enable-longlong use wxLongLong class"
169 ac_help="$ac_help
170 --enable-geometry use geometry class"
171 ac_help="$ac_help
172 --enable-log use logging system"
173 ac_help="$ac_help
174 --enable-streams use wxStream etc classes"
175 ac_help="$ac_help
176 --enable-file use wxFile classes"
177 ac_help="$ac_help
178 --enable-ffile use wxFFile classes"
179 ac_help="$ac_help
180 --enable-textbuf use wxTextBuffer class"
181 ac_help="$ac_help
182 --enable-textfile use wxTextFile class"
183 ac_help="$ac_help
184 --enable-fontmap use font encodings conversion classes"
185 ac_help="$ac_help
186 --enable-unicode compile wxString with Unicode support"
187 ac_help="$ac_help
188 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
189 ac_help="$ac_help
190 --enable-wxprintfv use wxWindows implementation of vprintf()"
191 ac_help="$ac_help
192 --enable-std_iostreams use standard C++ stream classes"
193 ac_help="$ac_help
194 --enable-filesystem use virtual file systems classes"
195 ac_help="$ac_help
196 --enable-fs_inet use virtual HTTP/FTP filesystems"
197 ac_help="$ac_help
198 --enable-fs_zip use virtual ZIP filesystems"
199 ac_help="$ac_help
200 --enable-zipstream use wxZipInputStream"
201 ac_help="$ac_help
202 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
203 ac_help="$ac_help
204 --enable-snglinst use wxSingleInstanceChecker class"
205 ac_help="$ac_help
206 --enable-mimetype use wxMimeTypesManager"
207 ac_help="$ac_help
208 --enable-sysoptions use wxSystemOptions"
209 ac_help="$ac_help
210 --enable-url use wxURL class"
211 ac_help="$ac_help
212 --enable-protocol use wxProtocol class"
213 ac_help="$ac_help
214 --enable-protocol-http HTTP support in wxProtocol"
215 ac_help="$ac_help
216 --enable-protocol-ftp FTP support in wxProtocol"
217 ac_help="$ac_help
218 --enable-protocol-file FILE support in wxProtocol"
219 ac_help="$ac_help
220 --enable-threads use threads"
221 ac_help="$ac_help
222 --enable-docview use document view architecture"
223 ac_help="$ac_help
224 --enable-help use help subsystem"
225 ac_help="$ac_help
226 --enable-mshtmlhelp use MS HTML Help (win32)"
227 ac_help="$ac_help
228 --enable-html use wxHTML sub-library"
229 ac_help="$ac_help
230 --enable-htmlhelp use wxHTML-based help"
231 ac_help="$ac_help
232 --enable-constraints use layout-constraints system"
233 ac_help="$ac_help
234 --enable-printarch use printing architecture"
235 ac_help="$ac_help
236 --enable-mdi use multiple document interface architecture"
237 ac_help="$ac_help
238 --enable-loggui use standard GUI logger"
239 ac_help="$ac_help
240 --enable-logwin use wxLogWindow"
241 ac_help="$ac_help
242 --enable-logdialog use wxLogDialog"
243 ac_help="$ac_help
244 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
245 ac_help="$ac_help
246 --enable-prologio use Prolog IO library"
247 ac_help="$ac_help
248 --enable-resources use wxWindows resources"
249 ac_help="$ac_help
250 --enable-xresources use X resources for save (default for gtk+)"
251 ac_help="$ac_help
252 --enable-clipboard use wxClipboard classes"
253 ac_help="$ac_help
254 --enable-dnd use Drag'n'Drop classes"
255 ac_help="$ac_help
256 --enable-metafile use win32 metafiles"
257 ac_help="$ac_help
258 --enable-treelayout use wxTreeLayout classes"
259 ac_help="$ac_help
260 --enable-controls use all usual controls"
261 ac_help="$ac_help
262 --enable-accel use accelerators"
263 ac_help="$ac_help
264 --enable-button use wxButton class"
265 ac_help="$ac_help
266 --enable-bmpbutton use wxBitmapButton class"
267 ac_help="$ac_help
268 --enable-calendar use wxCalendarCtrl class"
269 ac_help="$ac_help
270 --enable-caret use wxCaret class"
271 ac_help="$ac_help
272 --enable-checkbox use wxCheckBox class"
273 ac_help="$ac_help
274 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
275 ac_help="$ac_help
276 --enable-choice use wxChoice class"
277 ac_help="$ac_help
278 --enable-combobox use wxComboBox classes"
279 ac_help="$ac_help
280 --enable-gauge use wxGauge class"
281 ac_help="$ac_help
282 --enable-grid use wxGrid class"
283 ac_help="$ac_help
284 --enable-newgrid use new wxGrid class"
285 ac_help="$ac_help
286 --enable-imaglist use wxImageList class"
287 ac_help="$ac_help
288 --enable-listbox use wxListBox class"
289 ac_help="$ac_help
290 --enable-listctrl use wxListCtrl class"
291 ac_help="$ac_help
292 --enable-notebook use wxNotebook class"
293 ac_help="$ac_help
294 --enable-propsheet use wxPropertySheet class"
295 ac_help="$ac_help
296 --enable-radiobox use wxRadioBox class"
297 ac_help="$ac_help
298 --enable-radiobtn use wxRadioButton class"
299 ac_help="$ac_help
300 --enable-sash use wxSashWindow class"
301 ac_help="$ac_help
302 --enable-scrollbar use wxScrollBar class and scrollable windows"
303 ac_help="$ac_help
304 --enable-slider use wxSlider class"
305 ac_help="$ac_help
306 --enable-spinbtn use wxSpinButton class"
307 ac_help="$ac_help
308 --enable-spinctrl use wxSpinCtrl class"
309 ac_help="$ac_help
310 --enable-splitter use wxSplitterWindow class"
311 ac_help="$ac_help
312 --enable-statbmp use wxStaticBitmap class"
313 ac_help="$ac_help
314 --enable-statbox use wxStaticBox class"
315 ac_help="$ac_help
316 --enable-statline use wxStaticLine class"
317 ac_help="$ac_help
318 --enable-stattext use wxStaticText class"
319 ac_help="$ac_help
320 --enable-statusbar use wxStatusBar class"
321 ac_help="$ac_help
322 --enable-tabdialog use wxTabControl class"
323 ac_help="$ac_help
324 --enable-textctrl use wxTextCtrl class"
325 ac_help="$ac_help
326 --enable-togglebtn use wxToggleButton class"
327 ac_help="$ac_help
328 --enable-toolbar use wxToolBar class"
329 ac_help="$ac_help
330 --enable-tbarnative use native wxToolBar class"
331 ac_help="$ac_help
332 --enable-tbarsmpl use wxToolBarSimple class"
333 ac_help="$ac_help
334 --enable-treectrl use wxTreeCtrl class"
335 ac_help="$ac_help
336 --enable-tipwindow use wxTipWindow class"
337 ac_help="$ac_help
338 --enable-popupwin use wxPopUpWindow class"
339 ac_help="$ac_help
340 --enable-commondlg use all common dialogs"
341 ac_help="$ac_help
342 --enable-choicedlg use wxChoiceDialog"
343 ac_help="$ac_help
344 --enable-coldlg use wxColourDialog"
345 ac_help="$ac_help
346 --enable-filedlg use wxFileDialog"
347 ac_help="$ac_help
348 --enable-finddlg use wxFindReplaceDialog"
349 ac_help="$ac_help
350 --enable-fontdlg use wxFontDialog"
351 ac_help="$ac_help
352 --enable-dirdlg use wxDirDialog"
353 ac_help="$ac_help
354 --enable-msgdlg use wxMessageDialog"
355 ac_help="$ac_help
356 --enable-numberdlg use wxNumberEntryDialog"
357 ac_help="$ac_help
358 --enable-splash use wxSplashScreen"
359 ac_help="$ac_help
360 --enable-textdlg use wxTextDialog"
361 ac_help="$ac_help
362 --enable-tipdlg use startup tips"
363 ac_help="$ac_help
364 --enable-progressdlg use wxProgressDialog"
365 ac_help="$ac_help
366 --enable-wizarddlg use wxWizard"
367 ac_help="$ac_help
368 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
369 ac_help="$ac_help
370 --enable-miniframe use wxMiniFrame class"
371 ac_help="$ac_help
372 --enable-tooltips use wxToolTip class"
373 ac_help="$ac_help
374 --enable-splines use spline drawing code"
375 ac_help="$ac_help
376 --enable-validators use wxValidator and derived classes"
377 ac_help="$ac_help
378 --enable-busyinfo use wxBusyInfo"
379 ac_help="$ac_help
380 --enable-joystick use wxJoystick (Linux only)"
381 ac_help="$ac_help
382 --enable-metafiles use wxMetaFile (Windows only)"
383 ac_help="$ac_help
384 --enable-dragimage use wxDragImage"
385 ac_help="$ac_help
386 --enable-palette use wxPalette class"
387 ac_help="$ac_help
388 --enable-image use wxImage class"
389 ac_help="$ac_help
390 --enable-gif use gif images (GIF file format)"
391 ac_help="$ac_help
392 --enable-pcx use pcx images (PCX file format)"
393 ac_help="$ac_help
394 --enable-iff use iff images (IFF file format)"
395 ac_help="$ac_help
396 --enable-pnm use pnm images (PNM file format)"
397 ac_help="$ac_help
398 --enable-xpm use xpm images (XPM file format)"
399 ac_help="$ac_help
400 --enable-icocur use Windows ICO and CUR formats"
401 ac_help="$ac_help
402 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
403 ac_help="$ac_help
404 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
405 ac_help="$ac_help
406 --disable-gtktest Do not try to compile and run a test GTK program"
407 ac_help="$ac_help
408 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
409 ac_help="$ac_help
410 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
411 ac_help="$ac_help
412 --disable-gtktest Do not try to compile and run a test GTK program"
413 ac_help="$ac_help
414 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
415 ac_help="$ac_help
416 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
417 ac_help="$ac_help
418 --disable-gtktest Do not try to compile and run a test GTK program"
419 ac_help="$ac_help
420 --with-x use the X Window System"
421
422 # Initialize some variables set by options.
423 # The variables have the same names as the options, with
424 # dashes changed to underlines.
425 build=NONE
426 cache_file=./config.cache
427 exec_prefix=NONE
428 host=NONE
429 no_create=
430 nonopt=NONE
431 no_recursion=
432 prefix=NONE
433 program_prefix=NONE
434 program_suffix=NONE
435 program_transform_name=s,x,x,
436 silent=
437 site=
438 srcdir=
439 target=NONE
440 verbose=
441 x_includes=NONE
442 x_libraries=NONE
443 bindir='${exec_prefix}/bin'
444 sbindir='${exec_prefix}/sbin'
445 libexecdir='${exec_prefix}/libexec'
446 datadir='${prefix}/share'
447 sysconfdir='${prefix}/etc'
448 sharedstatedir='${prefix}/com'
449 localstatedir='${prefix}/var'
450 libdir='${exec_prefix}/lib'
451 includedir='${prefix}/include'
452 oldincludedir='/usr/include'
453 infodir='${prefix}/info'
454 mandir='${prefix}/man'
455
456 # Initialize some other variables.
457 subdirs=
458 MFLAGS= MAKEFLAGS=
459 SHELL=${CONFIG_SHELL-/bin/sh}
460 # Maximum number of lines to put in a shell here document.
461 ac_max_here_lines=12
462
463 ac_prev=
464 for ac_option
465 do
466
467 # If the previous option needs an argument, assign it.
468 if test -n "$ac_prev"; then
469 eval "$ac_prev=\$ac_option"
470 ac_prev=
471 continue
472 fi
473
474 case "$ac_option" in
475 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
476 *) ac_optarg= ;;
477 esac
478
479 # Accept the important Cygnus configure options, so we can diagnose typos.
480
481 case "$ac_option" in
482
483 -bindir | --bindir | --bindi | --bind | --bin | --bi)
484 ac_prev=bindir ;;
485 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
486 bindir="$ac_optarg" ;;
487
488 -build | --build | --buil | --bui | --bu)
489 ac_prev=build ;;
490 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
491 build="$ac_optarg" ;;
492
493 -cache-file | --cache-file | --cache-fil | --cache-fi \
494 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
495 ac_prev=cache_file ;;
496 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
497 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
498 cache_file="$ac_optarg" ;;
499
500 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
501 ac_prev=datadir ;;
502 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
503 | --da=*)
504 datadir="$ac_optarg" ;;
505
506 -disable-* | --disable-*)
507 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
508 # Reject names that are not valid shell variable names.
509 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
510 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
511 fi
512 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
513 eval "enable_${ac_feature}=no" ;;
514
515 -enable-* | --enable-*)
516 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
517 # Reject names that are not valid shell variable names.
518 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
519 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
520 fi
521 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
522 case "$ac_option" in
523 *=*) ;;
524 *) ac_optarg=yes ;;
525 esac
526 eval "enable_${ac_feature}='$ac_optarg'" ;;
527
528 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
529 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
530 | --exec | --exe | --ex)
531 ac_prev=exec_prefix ;;
532 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
533 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
534 | --exec=* | --exe=* | --ex=*)
535 exec_prefix="$ac_optarg" ;;
536
537 -gas | --gas | --ga | --g)
538 # Obsolete; use --with-gas.
539 with_gas=yes ;;
540
541 -help | --help | --hel | --he)
542 # Omit some internal or obsolete options to make the list less imposing.
543 # This message is too long to be a string in the A/UX 3.1 sh.
544 cat << EOF
545 Usage: configure [options] [host]
546 Options: [defaults in brackets after descriptions]
547 Configuration:
548 --cache-file=FILE cache test results in FILE
549 --help print this message
550 --no-create do not create output files
551 --quiet, --silent do not print \`checking...' messages
552 --version print the version of autoconf that created configure
553 Directory and file names:
554 --prefix=PREFIX install architecture-independent files in PREFIX
555 [$ac_default_prefix]
556 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
557 [same as prefix]
558 --bindir=DIR user executables in DIR [EPREFIX/bin]
559 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
560 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
561 --datadir=DIR read-only architecture-independent data in DIR
562 [PREFIX/share]
563 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
564 --sharedstatedir=DIR modifiable architecture-independent data in DIR
565 [PREFIX/com]
566 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
567 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
568 --includedir=DIR C header files in DIR [PREFIX/include]
569 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
570 --infodir=DIR info documentation in DIR [PREFIX/info]
571 --mandir=DIR man documentation in DIR [PREFIX/man]
572 --srcdir=DIR find the sources in DIR [configure dir or ..]
573 --program-prefix=PREFIX prepend PREFIX to installed program names
574 --program-suffix=SUFFIX append SUFFIX to installed program names
575 --program-transform-name=PROGRAM
576 run sed PROGRAM on installed program names
577 EOF
578 cat << EOF
579 Host type:
580 --build=BUILD configure for building on BUILD [BUILD=HOST]
581 --host=HOST configure for HOST [guessed]
582 --target=TARGET configure for TARGET [TARGET=HOST]
583 Features and packages:
584 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
585 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
588 --x-includes=DIR X include files are in DIR
589 --x-libraries=DIR X library files are in DIR
590 EOF
591 if test -n "$ac_help"; then
592 echo "--enable and --with options recognized:$ac_help"
593 fi
594 exit 0 ;;
595
596 -host | --host | --hos | --ho)
597 ac_prev=host ;;
598 -host=* | --host=* | --hos=* | --ho=*)
599 host="$ac_optarg" ;;
600
601 -includedir | --includedir | --includedi | --included | --include \
602 | --includ | --inclu | --incl | --inc)
603 ac_prev=includedir ;;
604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605 | --includ=* | --inclu=* | --incl=* | --inc=*)
606 includedir="$ac_optarg" ;;
607
608 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 ac_prev=infodir ;;
610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611 infodir="$ac_optarg" ;;
612
613 -libdir | --libdir | --libdi | --libd)
614 ac_prev=libdir ;;
615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 libdir="$ac_optarg" ;;
617
618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619 | --libexe | --libex | --libe)
620 ac_prev=libexecdir ;;
621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622 | --libexe=* | --libex=* | --libe=*)
623 libexecdir="$ac_optarg" ;;
624
625 -localstatedir | --localstatedir | --localstatedi | --localstated \
626 | --localstate | --localstat | --localsta | --localst \
627 | --locals | --local | --loca | --loc | --lo)
628 ac_prev=localstatedir ;;
629 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632 localstatedir="$ac_optarg" ;;
633
634 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 ac_prev=mandir ;;
636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 mandir="$ac_optarg" ;;
638
639 -nfp | --nfp | --nf)
640 # Obsolete; use --without-fp.
641 with_fp=no ;;
642
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644 | --no-cr | --no-c)
645 no_create=yes ;;
646
647 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 no_recursion=yes ;;
650
651 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653 | --oldin | --oldi | --old | --ol | --o)
654 ac_prev=oldincludedir ;;
655 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658 oldincludedir="$ac_optarg" ;;
659
660 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 ac_prev=prefix ;;
662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 prefix="$ac_optarg" ;;
664
665 -program-prefix | --program-prefix | --program-prefi | --program-pref \
666 | --program-pre | --program-pr | --program-p)
667 ac_prev=program_prefix ;;
668 -program-prefix=* | --program-prefix=* | --program-prefi=* \
669 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670 program_prefix="$ac_optarg" ;;
671
672 -program-suffix | --program-suffix | --program-suffi | --program-suff \
673 | --program-suf | --program-su | --program-s)
674 ac_prev=program_suffix ;;
675 -program-suffix=* | --program-suffix=* | --program-suffi=* \
676 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677 program_suffix="$ac_optarg" ;;
678
679 -program-transform-name | --program-transform-name \
680 | --program-transform-nam | --program-transform-na \
681 | --program-transform-n | --program-transform- \
682 | --program-transform | --program-transfor \
683 | --program-transfo | --program-transf \
684 | --program-trans | --program-tran \
685 | --progr-tra | --program-tr | --program-t)
686 ac_prev=program_transform_name ;;
687 -program-transform-name=* | --program-transform-name=* \
688 | --program-transform-nam=* | --program-transform-na=* \
689 | --program-transform-n=* | --program-transform-=* \
690 | --program-transform=* | --program-transfor=* \
691 | --program-transfo=* | --program-transf=* \
692 | --program-trans=* | --program-tran=* \
693 | --progr-tra=* | --program-tr=* | --program-t=*)
694 program_transform_name="$ac_optarg" ;;
695
696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697 | -silent | --silent | --silen | --sile | --sil)
698 silent=yes ;;
699
700 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 ac_prev=sbindir ;;
702 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 | --sbi=* | --sb=*)
704 sbindir="$ac_optarg" ;;
705
706 -sharedstatedir | --sharedstatedir | --sharedstatedi \
707 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708 | --sharedst | --shareds | --shared | --share | --shar \
709 | --sha | --sh)
710 ac_prev=sharedstatedir ;;
711 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 | --sha=* | --sh=*)
715 sharedstatedir="$ac_optarg" ;;
716
717 -site | --site | --sit)
718 ac_prev=site ;;
719 -site=* | --site=* | --sit=*)
720 site="$ac_optarg" ;;
721
722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 ac_prev=srcdir ;;
724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 srcdir="$ac_optarg" ;;
726
727 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728 | --syscon | --sysco | --sysc | --sys | --sy)
729 ac_prev=sysconfdir ;;
730 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732 sysconfdir="$ac_optarg" ;;
733
734 -target | --target | --targe | --targ | --tar | --ta | --t)
735 ac_prev=target ;;
736 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737 target="$ac_optarg" ;;
738
739 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 verbose=yes ;;
741
742 -version | --version | --versio | --versi | --vers)
743 echo "configure generated by autoconf version 2.13"
744 exit 0 ;;
745
746 -with-* | --with-*)
747 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
748 # Reject names that are not valid shell variable names.
749 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
750 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
751 fi
752 ac_package=`echo $ac_package| sed 's/-/_/g'`
753 case "$ac_option" in
754 *=*) ;;
755 *) ac_optarg=yes ;;
756 esac
757 eval "with_${ac_package}='$ac_optarg'" ;;
758
759 -without-* | --without-*)
760 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
761 # Reject names that are not valid shell variable names.
762 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
763 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
764 fi
765 ac_package=`echo $ac_package| sed 's/-/_/g'`
766 eval "with_${ac_package}=no" ;;
767
768 --x)
769 # Obsolete; use --with-x.
770 with_x=yes ;;
771
772 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
773 | --x-incl | --x-inc | --x-in | --x-i)
774 ac_prev=x_includes ;;
775 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
776 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
777 x_includes="$ac_optarg" ;;
778
779 -x-libraries | --x-libraries | --x-librarie | --x-librari \
780 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
781 ac_prev=x_libraries ;;
782 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
783 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
784 x_libraries="$ac_optarg" ;;
785
786 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
787 ;;
788
789 *)
790 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
791 echo "configure: warning: $ac_option: invalid host type" 1>&2
792 fi
793 if test "x$nonopt" != xNONE; then
794 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
795 fi
796 nonopt="$ac_option"
797 ;;
798
799 esac
800 done
801
802 if test -n "$ac_prev"; then
803 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
804 fi
805
806 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
807
808 # File descriptor usage:
809 # 0 standard input
810 # 1 file creation
811 # 2 errors and warnings
812 # 3 some systems may open it to /dev/tty
813 # 4 used on the Kubota Titan
814 # 6 checking for... messages and results
815 # 5 compiler messages saved in config.log
816 if test "$silent" = yes; then
817 exec 6>/dev/null
818 else
819 exec 6>&1
820 fi
821 exec 5>./config.log
822
823 echo "\
824 This file contains any messages produced by compilers while
825 running configure, to aid debugging if configure makes a mistake.
826 " 1>&5
827
828 # Strip out --no-create and --no-recursion so they do not pile up.
829 # Also quote any args containing shell metacharacters.
830 ac_configure_args=
831 for ac_arg
832 do
833 case "$ac_arg" in
834 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
835 | --no-cr | --no-c) ;;
836 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
837 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
838 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
839 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
840 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
841 esac
842 done
843
844 # NLS nuisances.
845 # Only set these to C if already set. These must not be set unconditionally
846 # because not all systems understand e.g. LANG=C (notably SCO).
847 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
848 # Non-C LC_CTYPE values break the ctype check.
849 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
850 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
851 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
852 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
853
854 # confdefs.h avoids OS command line length limits that DEFS can exceed.
855 rm -rf conftest* confdefs.h
856 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
857 echo > confdefs.h
858
859 # A filename unique to this package, relative to the directory that
860 # configure is in, which we can look for to find out if srcdir is correct.
861 ac_unique_file=wx-config.in
862
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
867 ac_prog=$0
868 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
869 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
870 srcdir=$ac_confdir
871 if test ! -r $srcdir/$ac_unique_file; then
872 srcdir=..
873 fi
874 else
875 ac_srcdir_defaulted=no
876 fi
877 if test ! -r $srcdir/$ac_unique_file; then
878 if test "$ac_srcdir_defaulted" = yes; then
879 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
880 else
881 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
882 fi
883 fi
884 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
885
886 # Prefer explicitly selected file to automatically selected ones.
887 if test -z "$CONFIG_SITE"; then
888 if test "x$prefix" != xNONE; then
889 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
890 else
891 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
892 fi
893 fi
894 for ac_site_file in $CONFIG_SITE; do
895 if test -r "$ac_site_file"; then
896 echo "loading site script $ac_site_file"
897 . "$ac_site_file"
898 fi
899 done
900
901 if test -r "$cache_file"; then
902 echo "loading cache $cache_file"
903 . $cache_file
904 else
905 echo "creating cache $cache_file"
906 > $cache_file
907 fi
908
909 ac_ext=c
910 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
911 ac_cpp='$CPP $CPPFLAGS'
912 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
913 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
914 cross_compiling=$ac_cv_prog_cc_cross
915
916 ac_exeext=
917 ac_objext=o
918 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
919 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
920 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
921 ac_n= ac_c='
922 ' ac_t=' '
923 else
924 ac_n=-n ac_c= ac_t=
925 fi
926 else
927 ac_n= ac_c='\c' ac_t=
928 fi
929
930
931
932 ac_aux_dir=
933 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
934 if test -f $ac_dir/install-sh; then
935 ac_aux_dir=$ac_dir
936 ac_install_sh="$ac_aux_dir/install-sh -c"
937 break
938 elif test -f $ac_dir/install.sh; then
939 ac_aux_dir=$ac_dir
940 ac_install_sh="$ac_aux_dir/install.sh -c"
941 break
942 fi
943 done
944 if test -z "$ac_aux_dir"; then
945 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
946 fi
947 ac_config_guess=$ac_aux_dir/config.guess
948 ac_config_sub=$ac_aux_dir/config.sub
949 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
950
951
952 # Do some error checking and defaulting for the host and target type.
953 # The inputs are:
954 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
955 #
956 # The rules are:
957 # 1. You are not allowed to specify --host, --target, and nonopt at the
958 # same time.
959 # 2. Host defaults to nonopt.
960 # 3. If nonopt is not specified, then host defaults to the current host,
961 # as determined by config.guess.
962 # 4. Target and build default to nonopt.
963 # 5. If nonopt is not specified, then target and build default to host.
964
965 # The aliases save the names the user supplied, while $host etc.
966 # will get canonicalized.
967 case $host---$target---$nonopt in
968 NONE---*---* | *---NONE---* | *---*---NONE) ;;
969 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
970 esac
971
972
973 # Make sure we can run config.sub.
974 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
975 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
976 fi
977
978 echo $ac_n "checking host system type""... $ac_c" 1>&6
979 echo "configure:980: checking host system type" >&5
980
981 host_alias=$host
982 case "$host_alias" in
983 NONE)
984 case $nonopt in
985 NONE)
986 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
987 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
988 fi ;;
989 *) host_alias=$nonopt ;;
990 esac ;;
991 esac
992
993 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
994 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
995 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
996 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
997 echo "$ac_t""$host" 1>&6
998
999 echo $ac_n "checking target system type""... $ac_c" 1>&6
1000 echo "configure:1001: checking target system type" >&5
1001
1002 target_alias=$target
1003 case "$target_alias" in
1004 NONE)
1005 case $nonopt in
1006 NONE) target_alias=$host_alias ;;
1007 *) target_alias=$nonopt ;;
1008 esac ;;
1009 esac
1010
1011 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
1012 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1013 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1014 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1015 echo "$ac_t""$target" 1>&6
1016
1017 echo $ac_n "checking build system type""... $ac_c" 1>&6
1018 echo "configure:1019: checking build system type" >&5
1019
1020 build_alias=$build
1021 case "$build_alias" in
1022 NONE)
1023 case $nonopt in
1024 NONE) build_alias=$host_alias ;;
1025 *) build_alias=$nonopt ;;
1026 esac ;;
1027 esac
1028
1029 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1030 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1031 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1032 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1033 echo "$ac_t""$build" 1>&6
1034
1035 test "$host_alias" != "$target_alias" &&
1036 test "$program_prefix$program_suffix$program_transform_name" = \
1037 NONENONEs,x,x, &&
1038 program_prefix=${target_alias}-
1039
1040
1041
1042 WX_MAJOR_VERSION_NUMBER=2
1043 WX_MINOR_VERSION_NUMBER=3
1044 WX_RELEASE_NUMBER=3
1045
1046 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1047 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1048
1049 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1050
1051 WX_CURRENT=2
1052 WX_REVISION=0
1053 WX_AGE=0
1054
1055
1056
1057 USE_UNIX=1
1058 USE_WIN32=0
1059 USE_DOS=0
1060 USE_BEOS=0
1061 USE_MAC=0
1062
1063 USE_LINUX=
1064 USE_SGI=
1065 USE_HPUX=
1066 USE_SYSV=
1067 USE_SVR4=
1068 USE_AIX=
1069 USE_SUN=
1070 USE_SOLARIS=
1071 USE_SUNOS=
1072 USE_ALPHA=
1073 USE_OSF=
1074 USE_BSD=
1075 USE_DARWIN=
1076 USE_FREEBSD=
1077 USE_OPENBSD=
1078 USE_NETBSD=
1079 USE_VMS=
1080 USE_ULTRIX=
1081 USE_DATA_GENERAL=
1082
1083 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1084
1085 CPP_MT_FLAG=-D_REENTRANT
1086
1087 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE"
1088
1089 DEFAULT_wxUSE_GTK=0
1090 DEFAULT_wxUSE_MAC=0
1091 DEFAULT_wxUSE_MGL=0
1092 DEFAULT_wxUSE_MICROWIN=0
1093 DEFAULT_wxUSE_MOTIF=0
1094 DEFAULT_wxUSE_MSW=0
1095 DEFAULT_wxUSE_PM=0
1096 DEFAULT_wxUSE_WINE=0
1097
1098 DEFAULT_DEFAULT_wxUSE_GTK=0
1099 DEFAULT_DEFAULT_wxUSE_MAC=0
1100 DEFAULT_DEFAULT_wxUSE_MGL=0
1101 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1102 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1103 DEFAULT_DEFAULT_wxUSE_MSW=0
1104 DEFAULT_DEFAULT_wxUSE_PM=0
1105 DEFAULT_DEFAULT_wxUSE_WINE=0
1106
1107 PROGRAM_EXT=
1108 SO_SUFFIX=so
1109
1110 case "${host}" in
1111 *-hp-hpux* )
1112 USE_HPUX=1
1113 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1114 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1115 SO_SUFFIX=sl
1116 cat >> confdefs.h <<\EOF
1117 #define __HPUX__ 1
1118 EOF
1119
1120 ;;
1121 *-*-linux* )
1122 USE_LINUX=1
1123 cat >> confdefs.h <<\EOF
1124 #define __LINUX__ 1
1125 EOF
1126
1127 TMP=`uname -m`
1128 if test "x$TMP" = "xalpha"; then
1129 USE_ALPHA=1
1130 cat >> confdefs.h <<\EOF
1131 #define __ALPHA__ 1
1132 EOF
1133
1134 fi
1135 DEFAULT_DEFAULT_wxUSE_GTK=1
1136 ;;
1137 *-*-irix5* | *-*-irix6* )
1138 USE_SGI=1
1139 USE_SVR4=1
1140 cat >> confdefs.h <<\EOF
1141 #define __SGI__ 1
1142 EOF
1143
1144 cat >> confdefs.h <<\EOF
1145 #define __SVR4__ 1
1146 EOF
1147
1148 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1149 ;;
1150 *-*-solaris2* )
1151 USE_SUN=1
1152 USE_SOLARIS=1
1153 USE_SVR4=1
1154 cat >> confdefs.h <<\EOF
1155 #define __SUN__ 1
1156 EOF
1157
1158 cat >> confdefs.h <<\EOF
1159 #define __SOLARIS__ 1
1160 EOF
1161
1162 cat >> confdefs.h <<\EOF
1163 #define __SVR4__ 1
1164 EOF
1165
1166 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1167 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1168 ;;
1169 *-*-sunos4* )
1170 USE_SUN=1
1171 USE_SUNOS=1
1172 USE_BSD=1
1173 cat >> confdefs.h <<\EOF
1174 #define __SUN__ 1
1175 EOF
1176
1177 cat >> confdefs.h <<\EOF
1178 #define __SUNOS__ 1
1179 EOF
1180
1181 cat >> confdefs.h <<\EOF
1182 #define __BSD__ 1
1183 EOF
1184
1185 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1186 ;;
1187 *-*-freebsd*)
1188 USE_BSD=1
1189 USE_FREEBSD=1
1190 CPP_MT_FLAG=-D_THREAD_SAFE
1191 cat >> confdefs.h <<\EOF
1192 #define __FREEBSD__ 1
1193 EOF
1194
1195 cat >> confdefs.h <<\EOF
1196 #define __BSD__ 1
1197 EOF
1198
1199 DEFAULT_DEFAULT_wxUSE_GTK=1
1200 ;;
1201 *-*-openbsd*)
1202 USE_BSD=1
1203 USE_OPENBSD=1
1204 cat >> confdefs.h <<\EOF
1205 #define __FREEBSD__ 1
1206 EOF
1207
1208 cat >> confdefs.h <<\EOF
1209 #define __OPENBSD__ 1
1210 EOF
1211
1212 DEFAULT_DEFAULT_wxUSE_GTK=1
1213 ;;
1214 *-*-netbsd*)
1215 USE_BSD=1
1216 USE_NETBSD=1
1217 cat >> confdefs.h <<\EOF
1218 #define __FREEBSD__ 1
1219 EOF
1220
1221 cat >> confdefs.h <<\EOF
1222 #define __NETBSD__ 1
1223 EOF
1224
1225 DEFAULT_DEFAULT_wxUSE_GTK=1
1226 ;;
1227 *-*-osf* )
1228 USE_ALPHA=1
1229 USE_OSF=1
1230 cat >> confdefs.h <<\EOF
1231 #define __ALPHA__ 1
1232 EOF
1233
1234 cat >> confdefs.h <<\EOF
1235 #define __OSF__ 1
1236 EOF
1237
1238 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1239 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1240 ;;
1241 *-*-dgux5* )
1242 USE_ALPHA=1
1243 USE_SVR4=1
1244 cat >> confdefs.h <<\EOF
1245 #define __ALPHA__ 1
1246 EOF
1247
1248 cat >> confdefs.h <<\EOF
1249 #define __SVR4__ 1
1250 EOF
1251
1252 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1253 ;;
1254 *-*-sysv5* )
1255 USE_SYSV=1
1256 USE_SVR4=1
1257 cat >> confdefs.h <<\EOF
1258 #define __SYSV__ 1
1259 EOF
1260
1261 cat >> confdefs.h <<\EOF
1262 #define __SVR4__ 1
1263 EOF
1264
1265 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1266 ;;
1267 *-*-aix* )
1268 USE_AIX=1
1269 USE_SYSV=1
1270 USE_SVR4=1
1271 cat >> confdefs.h <<\EOF
1272 #define __AIX__ 1
1273 EOF
1274
1275 cat >> confdefs.h <<\EOF
1276 #define __SYSV__ 1
1277 EOF
1278
1279 cat >> confdefs.h <<\EOF
1280 #define __SVR4__ 1
1281 EOF
1282
1283 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1284 ;;
1285
1286 *-*-cygwin* | *-*-mingw32* )
1287 USE_UNIX=0
1288 USE_WIN32=1
1289 SO_SUFFIX=dll
1290 cat >> confdefs.h <<\EOF
1291 #define __WIN32__ 1
1292 EOF
1293
1294 cat >> confdefs.h <<\EOF
1295 #define __WIN95__ 1
1296 EOF
1297
1298 cat >> confdefs.h <<\EOF
1299 #define __WINDOWS__ 1
1300 EOF
1301
1302 cat >> confdefs.h <<\EOF
1303 #define __GNUWIN32__ 1
1304 EOF
1305
1306 cat >> confdefs.h <<\EOF
1307 #define STRICT 1
1308 EOF
1309
1310 cat >> confdefs.h <<\EOF
1311 #define WINVER 0x0400
1312 EOF
1313
1314 PROGRAM_EXT=".exe"
1315 RESCOMP=windres
1316 DEFAULT_DEFAULT_wxUSE_MSW=1
1317 ;;
1318
1319 *-pc-msdosdjgpp )
1320 USE_UNIX=0
1321 USE_DOS=1
1322 cat >> confdefs.h <<\EOF
1323 #define __DOS__ 1
1324 EOF
1325
1326 PROGRAM_EXT=".exe"
1327 DEFAULT_DEFAULT_wxUSE_MGL=1
1328 DEFAULT_DEFAULT_wxUSE_SHARED=0
1329 ;;
1330
1331 *-pc-os2_emx | *-pc-os2-emx )
1332 cat >> confdefs.h <<\EOF
1333 #define __EMX__ 1
1334 EOF
1335
1336 PROGRAM_EXT=".exe"
1337 DEFAULT_DEFAULT_wxUSE_PM=1
1338 ;;
1339
1340 powerpc-*-darwin* )
1341 USE_BSD=1
1342 USE_DARWIN=1
1343 CPP_MT_FLAG=
1344 SO_SUFFIX=dylib
1345 cat >> confdefs.h <<\EOF
1346 #define __BSD__ 1
1347 EOF
1348
1349 cat >> confdefs.h <<\EOF
1350 #define __DARWIN__ 1
1351 EOF
1352
1353 cat >> confdefs.h <<\EOF
1354 #define __POWERPC__ 1
1355 EOF
1356
1357 DEFAULT_DEFAULT_wxUSE_MAC=1
1358 ;;
1359
1360 *-*-beos* )
1361 USE_BEOS=1
1362 cat >> confdefs.h <<\EOF
1363 #define __BEOS__ 1
1364 EOF
1365
1366 ;;
1367
1368 *)
1369 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1370 esac
1371
1372 if test "$USE_UNIX" = 1 ; then
1373 wxUSE_UNIX=yes
1374 cat >> confdefs.h <<\EOF
1375 #define __UNIX__ 1
1376 EOF
1377
1378 fi
1379
1380 if test "$USE_LINUX" = 1; then
1381 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1382 echo "configure:1383: checking for glibc 2.1 or later" >&5
1383 if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1385 else
1386
1387 cat > conftest.$ac_ext <<EOF
1388 #line 1389 "configure"
1389 #include "confdefs.h"
1390 #include <features.h>
1391 int main() {
1392
1393 #if !__GLIBC_PREREQ(2, 1)
1394 #error not glibc2.1
1395 #endif
1396
1397 ; return 0; }
1398 EOF
1399 if { (eval echo configure:1400: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1400 rm -rf conftest*
1401
1402 wx_lib_glibc21=yes
1403
1404 else
1405 echo "configure: failed program was:" >&5
1406 cat conftest.$ac_ext >&5
1407 rm -rf conftest*
1408
1409 wx_lib_glibc21=no
1410
1411
1412 fi
1413 rm -f conftest*
1414
1415 fi
1416
1417 echo "$ac_t""$wx_lib_glibc21" 1>&6
1418 if test "$wx_lib_glibc21" = "yes"; then
1419 cat >> confdefs.h <<\EOF
1420 #define wxHAVE_GLIBC2 1
1421 EOF
1422
1423 fi
1424 fi
1425
1426
1427
1428
1429 wx_arg_cache_file="configarg.cache"
1430 echo "loading argument cache $wx_arg_cache_file"
1431 rm -f ${wx_arg_cache_file}.tmp
1432 touch ${wx_arg_cache_file}.tmp
1433 touch ${wx_arg_cache_file}
1434
1435
1436 DEBUG_CONFIGURE=0
1437 if test $DEBUG_CONFIGURE = 1; then
1438 DEFAULT_wxUSE_UNIVERSAL=no
1439
1440 DEFAULT_wxUSE_THREADS=yes
1441
1442 DEFAULT_wxUSE_SHARED=yes
1443 DEFAULT_wxUSE_SONAME=no
1444 DEFAULT_wxUSE_OPTIMISE=no
1445 DEFAULT_wxUSE_PROFILE=no
1446 DEFAULT_wxUSE_NO_DEPS=no
1447 DEFAULT_wxUSE_NO_RTTI=yes
1448 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1449 DEFAULT_wxUSE_PERMISSIVE=no
1450 DEFAULT_wxUSE_DEBUG_FLAG=yes
1451 DEFAULT_wxUSE_DEBUG_INFO=yes
1452 DEFAULT_wxUSE_DEBUG_GDB=yes
1453 DEFAULT_wxUSE_MEM_TRACING=no
1454 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1455 DEFAULT_wxUSE_DMALLOC=no
1456 DEFAULT_wxUSE_PRECOMP=no
1457 DEFAULT_wxUSE_APPLE_IEEE=no
1458
1459 DEFAULT_wxUSE_LOG=yes
1460 DEFAULT_wxUSE_LOGWINDOW=no
1461 DEFAULT_wxUSE_LOGGUI=no
1462 DEFAULT_wxUSE_LOGDIALOG=no
1463
1464 DEFAULT_wxUSE_GUI=yes
1465 DEFAULT_wxUSE_CONTROLS=no
1466
1467 DEFAULT_wxUSE_REGEX=no
1468 DEFAULT_wxUSE_ZLIB=no
1469 DEFAULT_wxUSE_LIBPNG=no
1470 DEFAULT_wxUSE_LIBJPEG=no
1471 DEFAULT_wxUSE_LIBTIFF=no
1472 DEFAULT_wxUSE_ODBC=no
1473 DEFAULT_wxUSE_FREETYPE=no
1474 DEFAULT_wxUSE_OPENGL=no
1475
1476 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1477 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1478 DEFAULT_wxUSE_STD_IOSTREAM=no
1479 DEFAULT_wxUSE_CMDLINE_PARSER=no
1480 DEFAULT_wxUSE_DATETIME=no
1481 DEFAULT_wxUSE_TIMEDATE=no
1482 DEFAULT_wxUSE_TIMER=no
1483 DEFAULT_wxUSE_STOPWATCH=no
1484 DEFAULT_wxUSE_FILE=no
1485 DEFAULT_wxUSE_FFILE=no
1486 DEFAULT_wxUSE_TEXTBUFFER=no
1487 DEFAULT_wxUSE_TEXTFILE=no
1488 DEFAULT_wxUSE_WAVE=no
1489 DEFAULT_wxUSE_INTL=no
1490 DEFAULT_wxUSE_CONFIG=no
1491 DEFAULT_wxUSE_FONTMAP=no
1492 DEFAULT_wxUSE_STREAMS=no
1493 DEFAULT_wxUSE_SOCKETS=no
1494 DEFAULT_wxUSE_DIALUP_MANAGER=no
1495 DEFAULT_wxUSE_JOYSTICK=no
1496 DEFAULT_wxUSE_DYNLIB_CLASS=no
1497 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1498 DEFAULT_wxUSE_LONGLONG=no
1499 DEFAULT_wxUSE_GEOMETRY=no
1500
1501 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1502 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1503 DEFAULT_wxUSE_POSTSCRIPT=no
1504
1505 DEFAULT_wxUSE_X_RESOURCES=no
1506 DEFAULT_wxUSE_CLIPBOARD=no
1507 DEFAULT_wxUSE_TOOLTIPS=no
1508 DEFAULT_wxUSE_DRAG_AND_DROP=no
1509 DEFAULT_wxUSE_DRAGIMAGE=no
1510 DEFAULT_wxUSE_SPLINES=no
1511
1512 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1513 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1514 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1515
1516 DEFAULT_wxUSE_PROLOGIO=no
1517 DEFAULT_wxUSE_RESOURCES=no
1518 DEFAULT_wxUSE_CONSTRAINTS=no
1519 DEFAULT_wxUSE_IPC=no
1520 DEFAULT_wxUSE_HELP=no
1521 DEFAULT_wxUSE_MS_HTML_HELP=no
1522 DEFAULT_wxUSE_WXHTML_HELP=no
1523 DEFAULT_wxUSE_TREELAYOUT=no
1524 DEFAULT_wxUSE_METAFILE=no
1525 DEFAULT_wxUSE_MIMETYPE=no
1526 DEFAULT_wxUSE_SYSTEM_OPTIONS=no
1527 DEFAULT_wxUSE_PROTOCOL=no
1528 DEFAULT_wxUSE_PROTOCOL_HTTP=no
1529 DEFAULT_wxUSE_PROTOCOL_FTP=no
1530 DEFAULT_wxUSE_PROTOCOL_FILE=no
1531 DEFAULT_wxUSE_URL=no
1532
1533 DEFAULT_wxUSE_COMMONDLGS=no
1534 DEFAULT_wxUSE_CHOICEDLG=no
1535 DEFAULT_wxUSE_COLOURDLG=no
1536 DEFAULT_wxUSE_DIRDLG=no
1537 DEFAULT_wxUSE_FILEDLG=no
1538 DEFAULT_wxUSE_FINDREPLDLG=no
1539 DEFAULT_wxUSE_FONTDLG=no
1540 DEFAULT_wxUSE_MSGDLG=no
1541 DEFAULT_wxUSE_NUMBERDLG=no
1542 DEFAULT_wxUSE_TEXTDLG=no
1543 DEFAULT_wxUSE_SPLASH=no
1544 DEFAULT_wxUSE_STARTUP_TIPS=no
1545 DEFAULT_wxUSE_PROGRESSDLG=no
1546 DEFAULT_wxUSE_WIZARDDLG=no
1547
1548 DEFAULT_wxUSE_MENUS=no
1549 DEFAULT_wxUSE_MINIFRAME=no
1550 DEFAULT_wxUSE_HTML=no
1551 DEFAULT_wxUSE_FILESYSTEM=no
1552 DEFAULT_wxUSE_FS_INET=no
1553 DEFAULT_wxUSE_FS_ZIP=no
1554 DEFAULT_wxUSE_BUSYINFO=no
1555 DEFAULT_wxUSE_ZIPSTREAM=no
1556 DEFAULT_wxUSE_VALIDATORS=no
1557
1558 DEFAULT_wxUSE_ACCEL=no
1559 DEFAULT_wxUSE_BUTTON=no
1560 DEFAULT_wxUSE_BMPBUTTON=no
1561 DEFAULT_wxUSE_CALCTRL=no
1562 DEFAULT_wxUSE_CARET=no
1563 DEFAULT_wxUSE_CHECKBOX=no
1564 DEFAULT_wxUSE_CHECKLST=no
1565 DEFAULT_wxUSE_CHOICE=no
1566 DEFAULT_wxUSE_COMBOBOX=no
1567 DEFAULT_wxUSE_GAUGE=no
1568 DEFAULT_wxUSE_GRID=no
1569 DEFAULT_wxUSE_NEW_GRID=no
1570 DEFAULT_wxUSE_IMAGLIST=no
1571 DEFAULT_wxUSE_LISTBOX=no
1572 DEFAULT_wxUSE_LISTCTRL=no
1573 DEFAULT_wxUSE_NOTEBOOK=no
1574 DEFAULT_wxUSE_PROPSHEET=no
1575 DEFAULT_wxUSE_RADIOBOX=no
1576 DEFAULT_wxUSE_RADIOBTN=no
1577 DEFAULT_wxUSE_SASH=no
1578 DEFAULT_wxUSE_SCROLLBAR=no
1579 DEFAULT_wxUSE_SLIDER=no
1580 DEFAULT_wxUSE_SPINBTN=no
1581 DEFAULT_wxUSE_SPINCTRL=no
1582 DEFAULT_wxUSE_SPLITTER=no
1583 DEFAULT_wxUSE_STATBMP=no
1584 DEFAULT_wxUSE_STATBOX=no
1585 DEFAULT_wxUSE_STATLINE=no
1586 DEFAULT_wxUSE_STATTEXT=no
1587 DEFAULT_wxUSE_STATUSBAR=yes
1588 DEFAULT_wxUSE_TABDIALOG=no
1589 DEFAULT_wxUSE_TEXTCTRL=no
1590 DEFAULT_wxUSE_TOGGLEBTN=no
1591 DEFAULT_wxUSE_TOOLBAR=no
1592 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1593 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1594 DEFAULT_wxUSE_TREECTRL=no
1595 DEFAULT_wxUSE_POPUPWIN=no
1596 DEFAULT_wxUSE_TIPWINDOW=no
1597
1598 DEFAULT_wxUSE_UNICODE=no
1599 DEFAULT_wxUSE_UNICODE_MSLU=no
1600 DEFAULT_wxUSE_WCSRTOMBS=no
1601
1602 DEFAULT_wxUSE_PALETTE=no
1603 DEFAULT_wxUSE_IMAGE=no
1604 DEFAULT_wxUSE_GIF=no
1605 DEFAULT_wxUSE_PCX=no
1606 DEFAULT_wxUSE_PNM=no
1607 DEFAULT_wxUSE_IFF=no
1608 DEFAULT_wxUSE_XPM=no
1609 DEFAULT_wxUSE_ICO_CUR=no
1610 else
1611 DEFAULT_wxUSE_UNIVERSAL=no
1612
1613 DEFAULT_wxUSE_THREADS=yes
1614
1615 DEFAULT_wxUSE_SHARED=yes
1616 DEFAULT_wxUSE_SONAME=no
1617 DEFAULT_wxUSE_OPTIMISE=yes
1618 DEFAULT_wxUSE_PROFILE=no
1619 DEFAULT_wxUSE_NO_DEPS=no
1620 DEFAULT_wxUSE_NO_RTTI=yes
1621 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1622 DEFAULT_wxUSE_PERMISSIVE=no
1623 DEFAULT_wxUSE_DEBUG_FLAG=no
1624 DEFAULT_wxUSE_DEBUG_INFO=no
1625 DEFAULT_wxUSE_DEBUG_GDB=no
1626 DEFAULT_wxUSE_MEM_TRACING=no
1627 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1628 DEFAULT_wxUSE_DMALLOC=no
1629 DEFAULT_wxUSE_PRECOMP=no
1630 DEFAULT_wxUSE_APPLE_IEEE=yes
1631
1632 DEFAULT_wxUSE_LOG=yes
1633 DEFAULT_wxUSE_LOGWINDOW=yes
1634 DEFAULT_wxUSE_LOGGUI=yes
1635 DEFAULT_wxUSE_LOGDIALOG=yes
1636
1637 DEFAULT_wxUSE_GUI=yes
1638
1639 DEFAULT_wxUSE_REGEX=yes
1640 DEFAULT_wxUSE_ZLIB=yes
1641 DEFAULT_wxUSE_LIBPNG=yes
1642 DEFAULT_wxUSE_LIBJPEG=yes
1643 DEFAULT_wxUSE_LIBTIFF=yes
1644 DEFAULT_wxUSE_ODBC=no
1645 DEFAULT_wxUSE_FREETYPE=no
1646 DEFAULT_wxUSE_OPENGL=no
1647
1648 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1649 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1650 DEFAULT_wxUSE_STD_IOSTREAM=no
1651 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1652 DEFAULT_wxUSE_DATETIME=yes
1653 DEFAULT_wxUSE_TIMEDATE=no
1654 DEFAULT_wxUSE_TIMER=yes
1655 DEFAULT_wxUSE_STOPWATCH=yes
1656 DEFAULT_wxUSE_FILE=yes
1657 DEFAULT_wxUSE_FFILE=yes
1658 DEFAULT_wxUSE_TEXTBUFFER=yes
1659 DEFAULT_wxUSE_TEXTFILE=yes
1660 DEFAULT_wxUSE_WAVE=no
1661 DEFAULT_wxUSE_INTL=yes
1662 DEFAULT_wxUSE_CONFIG=yes
1663 DEFAULT_wxUSE_FONTMAP=yes
1664 DEFAULT_wxUSE_STREAMS=yes
1665 DEFAULT_wxUSE_SOCKETS=yes
1666 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1667 DEFAULT_wxUSE_JOYSTICK=yes
1668 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1669 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1670 DEFAULT_wxUSE_LONGLONG=yes
1671 DEFAULT_wxUSE_GEOMETRY=yes
1672
1673 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1674 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1675 DEFAULT_wxUSE_POSTSCRIPT=yes
1676
1677 DEFAULT_wxUSE_X_RESOURCES=no
1678 DEFAULT_wxUSE_CLIPBOARD=yes
1679 DEFAULT_wxUSE_TOOLTIPS=yes
1680 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1681 DEFAULT_wxUSE_DRAGIMAGE=yes
1682 DEFAULT_wxUSE_SPLINES=yes
1683
1684 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1685 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1686 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1687
1688 DEFAULT_wxUSE_PROLOGIO=yes
1689 DEFAULT_wxUSE_RESOURCES=yes
1690 DEFAULT_wxUSE_CONSTRAINTS=yes
1691 DEFAULT_wxUSE_IPC=yes
1692 DEFAULT_wxUSE_HELP=yes
1693 DEFAULT_wxUSE_MS_HTML_HELP=yes
1694 DEFAULT_wxUSE_WXHTML_HELP=yes
1695 DEFAULT_wxUSE_TREELAYOUT=yes
1696 DEFAULT_wxUSE_METAFILE=yes
1697 DEFAULT_wxUSE_MIMETYPE=yes
1698 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1699 DEFAULT_wxUSE_PROTOCOL=yes
1700 DEFAULT_wxUSE_PROTOCOL_HTTP=yes
1701 DEFAULT_wxUSE_PROTOCOL_FTP=yes
1702 DEFAULT_wxUSE_PROTOCOL_FILE=yes
1703 DEFAULT_wxUSE_URL=yes
1704
1705 DEFAULT_wxUSE_COMMONDLGS=yes
1706 DEFAULT_wxUSE_CHOICEDLG=yes
1707 DEFAULT_wxUSE_COLOURDLG=yes
1708 DEFAULT_wxUSE_DIRDLG=yes
1709 DEFAULT_wxUSE_FILEDLG=yes
1710 DEFAULT_wxUSE_FINDREPLDLG=yes
1711 DEFAULT_wxUSE_FONTDLG=yes
1712 DEFAULT_wxUSE_MSGDLG=yes
1713 DEFAULT_wxUSE_NUMBERDLG=yes
1714 DEFAULT_wxUSE_TEXTDLG=yes
1715 DEFAULT_wxUSE_SPLASH=yes
1716 DEFAULT_wxUSE_STARTUP_TIPS=yes
1717 DEFAULT_wxUSE_PROGRESSDLG=yes
1718 DEFAULT_wxUSE_WIZARDDLG=yes
1719
1720 DEFAULT_wxUSE_MENUS=yes
1721 DEFAULT_wxUSE_MINIFRAME=yes
1722 DEFAULT_wxUSE_HTML=yes
1723 DEFAULT_wxUSE_FILESYSTEM=yes
1724 DEFAULT_wxUSE_FS_INET=yes
1725 DEFAULT_wxUSE_FS_ZIP=yes
1726 DEFAULT_wxUSE_BUSYINFO=yes
1727 DEFAULT_wxUSE_ZIPSTREAM=yes
1728 DEFAULT_wxUSE_VALIDATORS=yes
1729
1730 DEFAULT_wxUSE_ACCEL=yes
1731 DEFAULT_wxUSE_BUTTON=yes
1732 DEFAULT_wxUSE_BMPBUTTON=yes
1733 DEFAULT_wxUSE_CALCTRL=yes
1734 DEFAULT_wxUSE_CARET=yes
1735 DEFAULT_wxUSE_CHECKBOX=yes
1736 DEFAULT_wxUSE_CHECKLST=yes
1737 DEFAULT_wxUSE_CHOICE=yes
1738 DEFAULT_wxUSE_COMBOBOX=yes
1739 DEFAULT_wxUSE_GAUGE=yes
1740 DEFAULT_wxUSE_GRID=yes
1741 DEFAULT_wxUSE_NEW_GRID=yes
1742 DEFAULT_wxUSE_IMAGLIST=yes
1743 DEFAULT_wxUSE_LISTBOX=yes
1744 DEFAULT_wxUSE_LISTCTRL=yes
1745 DEFAULT_wxUSE_NOTEBOOK=yes
1746 DEFAULT_wxUSE_PROPSHEET=yes
1747 DEFAULT_wxUSE_RADIOBOX=yes
1748 DEFAULT_wxUSE_RADIOBTN=yes
1749 DEFAULT_wxUSE_SASH=yes
1750 DEFAULT_wxUSE_SCROLLBAR=yes
1751 DEFAULT_wxUSE_SLIDER=yes
1752 DEFAULT_wxUSE_SPINBTN=yes
1753 DEFAULT_wxUSE_SPINCTRL=yes
1754 DEFAULT_wxUSE_SPLITTER=yes
1755 DEFAULT_wxUSE_STATBMP=yes
1756 DEFAULT_wxUSE_STATBOX=yes
1757 DEFAULT_wxUSE_STATLINE=yes
1758 DEFAULT_wxUSE_STATTEXT=yes
1759 DEFAULT_wxUSE_STATUSBAR=yes
1760 DEFAULT_wxUSE_TABDIALOG=no
1761 DEFAULT_wxUSE_TEXTCTRL=yes
1762 DEFAULT_wxUSE_TOGGLEBTN=yes
1763 DEFAULT_wxUSE_TOOLBAR=yes
1764 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1765 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1766 DEFAULT_wxUSE_TREECTRL=yes
1767 DEFAULT_wxUSE_POPUPWIN=yes
1768 DEFAULT_wxUSE_TIPWINDOW=yes
1769
1770 DEFAULT_wxUSE_UNICODE=no
1771 DEFAULT_wxUSE_UNICODE_MSLU=yes
1772 DEFAULT_wxUSE_WCSRTOMBS=no
1773
1774 DEFAULT_wxUSE_PALETTE=yes
1775 DEFAULT_wxUSE_IMAGE=yes
1776 DEFAULT_wxUSE_GIF=yes
1777 DEFAULT_wxUSE_PCX=yes
1778 DEFAULT_wxUSE_IFF=no
1779 DEFAULT_wxUSE_PNM=yes
1780 DEFAULT_wxUSE_XPM=yes
1781 DEFAULT_wxUSE_ICO_CUR=yes
1782 fi
1783
1784
1785
1786 for toolkit in `echo $ALL_TOOLKITS`; do
1787 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1788 if test "x$LINE" != x ; then
1789 has_toolkit_in_cache=1
1790 eval "DEFAULT_$LINE"
1791 eval "CACHE_$toolkit=1"
1792 fi
1793 done
1794
1795
1796
1797 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1798 echo "configure:1799: checking for --enable-gui" >&5
1799 no_cache=0
1800 # Check whether --enable-gui or --disable-gui was given.
1801 if test "${enable_gui+set}" = set; then
1802 enableval="$enable_gui"
1803
1804 if test "$enableval" = yes; then
1805 ac_cv_use_gui='wxUSE_GUI=yes'
1806 else
1807 ac_cv_use_gui='wxUSE_GUI=no'
1808 fi
1809
1810 else
1811
1812 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1813 if test "x$LINE" != x ; then
1814 eval "DEFAULT_$LINE"
1815 else
1816 no_cache=1
1817 fi
1818
1819 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1820
1821 fi
1822
1823
1824 eval "$ac_cv_use_gui"
1825 if test "$no_cache" != 1; then
1826 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1827 fi
1828
1829 if test "$wxUSE_GUI" = yes; then
1830 echo "$ac_t""yes" 1>&6
1831 else
1832 echo "$ac_t""no" 1>&6
1833 fi
1834
1835
1836 if test "$wxUSE_GUI" = "yes"; then
1837
1838
1839 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1840 echo "configure:1841: checking for --enable-universal" >&5
1841 no_cache=0
1842 # Check whether --enable-universal or --disable-universal was given.
1843 if test "${enable_universal+set}" = set; then
1844 enableval="$enable_universal"
1845
1846 if test "$enableval" = yes; then
1847 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1848 else
1849 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1850 fi
1851
1852 else
1853
1854 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1855 if test "x$LINE" != x ; then
1856 eval "DEFAULT_$LINE"
1857 else
1858 no_cache=1
1859 fi
1860
1861 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1862
1863 fi
1864
1865
1866 eval "$ac_cv_use_universal"
1867 if test "$no_cache" != 1; then
1868 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1869 fi
1870
1871 if test "$wxUSE_UNIVERSAL" = yes; then
1872 echo "$ac_t""yes" 1>&6
1873 else
1874 echo "$ac_t""no" 1>&6
1875 fi
1876
1877 # Check whether --with-gtk or --without-gtk was given.
1878 if test "${with_gtk+set}" = set; then
1879 withval="$with_gtk"
1880 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1881 fi
1882
1883 # Check whether --with-motif or --without-motif was given.
1884 if test "${with_motif+set}" = set; then
1885 withval="$with_motif"
1886 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1887 fi
1888
1889 # Check whether --with-mac or --without-mac was given.
1890 if test "${with_mac+set}" = set; then
1891 withval="$with_mac"
1892 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1893 fi
1894
1895 # Check whether --with-wine or --without-wine was given.
1896 if test "${with_wine+set}" = set; then
1897 withval="$with_wine"
1898 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1899 fi
1900
1901 # Check whether --with-msw or --without-msw was given.
1902 if test "${with_msw+set}" = set; then
1903 withval="$with_msw"
1904 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1905 fi
1906
1907 # Check whether --with-pm or --without-pm was given.
1908 if test "${with_pm+set}" = set; then
1909 withval="$with_pm"
1910 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1911 fi
1912
1913 # Check whether --with-mgl or --without-mgl was given.
1914 if test "${with_mgl+set}" = set; then
1915 withval="$with_mgl"
1916 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1917 fi
1918
1919 # Check whether --with-microwin or --without-microwin was given.
1920 if test "${with_microwin+set}" = set; then
1921 withval="$with_microwin"
1922 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1923 fi
1924
1925
1926 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1927 if test "${enable_gtk2+set}" = set; then
1928 enableval="$enable_gtk2"
1929 wxUSE_GTK2=1
1930 else
1931 wxUSE_GTK2=0
1932 fi
1933
1934
1935
1936 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1937 echo "configure:1938: checking for --with-libpng" >&5
1938 no_cache=0
1939 # Check whether --with-libpng or --without-libpng was given.
1940 if test "${with_libpng+set}" = set; then
1941 withval="$with_libpng"
1942
1943 if test "$withval" = yes; then
1944 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1945 elif test "$withval" = no; then
1946 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1947 elif test "$withval" = sys; then
1948 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1949 elif test "$withval" = builtin; then
1950 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1951 else
1952 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1953 fi
1954
1955 else
1956
1957 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1958 if test "x$LINE" != x ; then
1959 eval "DEFAULT_$LINE"
1960 else
1961 no_cache=1
1962 fi
1963
1964 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1965
1966 fi
1967
1968
1969 eval "$ac_cv_use_libpng"
1970 if test "$no_cache" != 1; then
1971 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1972 fi
1973
1974 if test "$wxUSE_LIBPNG" = yes; then
1975 echo "$ac_t""yes" 1>&6
1976 elif test "$wxUSE_LIBPNG" = no; then
1977 echo "$ac_t""no" 1>&6
1978 elif test "$wxUSE_LIBPNG" = sys; then
1979 echo "$ac_t""system version" 1>&6
1980 elif test "$wxUSE_LIBPNG" = builtin; then
1981 echo "$ac_t""builtin version" 1>&6
1982 else
1983 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1984 fi
1985
1986
1987 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1988 echo "configure:1989: checking for --with-libjpeg" >&5
1989 no_cache=0
1990 # Check whether --with-libjpeg or --without-libjpeg was given.
1991 if test "${with_libjpeg+set}" = set; then
1992 withval="$with_libjpeg"
1993
1994 if test "$withval" = yes; then
1995 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1996 elif test "$withval" = no; then
1997 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1998 elif test "$withval" = sys; then
1999 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
2000 elif test "$withval" = builtin; then
2001 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
2002 else
2003 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2004 fi
2005
2006 else
2007
2008 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
2009 if test "x$LINE" != x ; then
2010 eval "DEFAULT_$LINE"
2011 else
2012 no_cache=1
2013 fi
2014
2015 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
2016
2017 fi
2018
2019
2020 eval "$ac_cv_use_libjpeg"
2021 if test "$no_cache" != 1; then
2022 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
2023 fi
2024
2025 if test "$wxUSE_LIBJPEG" = yes; then
2026 echo "$ac_t""yes" 1>&6
2027 elif test "$wxUSE_LIBJPEG" = no; then
2028 echo "$ac_t""no" 1>&6
2029 elif test "$wxUSE_LIBJPEG" = sys; then
2030 echo "$ac_t""system version" 1>&6
2031 elif test "$wxUSE_LIBJPEG" = builtin; then
2032 echo "$ac_t""builtin version" 1>&6
2033 else
2034 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2035 fi
2036
2037
2038 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2039 echo "configure:2040: checking for --with-libtiff" >&5
2040 no_cache=0
2041 # Check whether --with-libtiff or --without-libtiff was given.
2042 if test "${with_libtiff+set}" = set; then
2043 withval="$with_libtiff"
2044
2045 if test "$withval" = yes; then
2046 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2047 elif test "$withval" = no; then
2048 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2049 elif test "$withval" = sys; then
2050 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2051 elif test "$withval" = builtin; then
2052 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2053 else
2054 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2055 fi
2056
2057 else
2058
2059 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2060 if test "x$LINE" != x ; then
2061 eval "DEFAULT_$LINE"
2062 else
2063 no_cache=1
2064 fi
2065
2066 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2067
2068 fi
2069
2070
2071 eval "$ac_cv_use_libtiff"
2072 if test "$no_cache" != 1; then
2073 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2074 fi
2075
2076 if test "$wxUSE_LIBTIFF" = yes; then
2077 echo "$ac_t""yes" 1>&6
2078 elif test "$wxUSE_LIBTIFF" = no; then
2079 echo "$ac_t""no" 1>&6
2080 elif test "$wxUSE_LIBTIFF" = sys; then
2081 echo "$ac_t""system version" 1>&6
2082 elif test "$wxUSE_LIBTIFF" = builtin; then
2083 echo "$ac_t""builtin version" 1>&6
2084 else
2085 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2086 fi
2087
2088
2089 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
2090 echo "configure:2091: checking for --with-freetype" >&5
2091 no_cache=0
2092 # Check whether --with-freetype or --without-freetype was given.
2093 if test "${with_freetype+set}" = set; then
2094 withval="$with_freetype"
2095
2096 if test "$withval" = yes; then
2097 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2098 elif test "$withval" = no; then
2099 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2100 elif test "$withval" = sys; then
2101 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2102 elif test "$withval" = builtin; then
2103 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
2104 else
2105 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2106 fi
2107
2108 else
2109
2110 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2111 if test "x$LINE" != x ; then
2112 eval "DEFAULT_$LINE"
2113 else
2114 no_cache=1
2115 fi
2116
2117 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2118
2119 fi
2120
2121
2122 eval "$ac_cv_use_freetype"
2123 if test "$no_cache" != 1; then
2124 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2125 fi
2126
2127 if test "$wxUSE_FREETYPE" = yes; then
2128 echo "$ac_t""yes" 1>&6
2129 elif test "$wxUSE_FREETYPE" = no; then
2130 echo "$ac_t""no" 1>&6
2131 elif test "$wxUSE_FREETYPE" = sys; then
2132 echo "$ac_t""system version" 1>&6
2133 elif test "$wxUSE_FREETYPE" = builtin; then
2134 echo "$ac_t""builtin version" 1>&6
2135 else
2136 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2137 fi
2138
2139
2140 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2141 echo "configure:2142: checking for --with-opengl" >&5
2142 no_cache=0
2143 # Check whether --with-opengl or --without-opengl was given.
2144 if test "${with_opengl+set}" = set; then
2145 withval="$with_opengl"
2146
2147 if test "$withval" = yes; then
2148 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2149 else
2150 ac_cv_use_opengl='wxUSE_OPENGL=no'
2151 fi
2152
2153 else
2154
2155 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2156 if test "x$LINE" != x ; then
2157 eval "DEFAULT_$LINE"
2158 else
2159 no_cache=1
2160 fi
2161
2162 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2163
2164 fi
2165
2166
2167 eval "$ac_cv_use_opengl"
2168 if test "$no_cache" != 1; then
2169 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2170 fi
2171
2172 if test "$wxUSE_OPENGL" = yes; then
2173 echo "$ac_t""yes" 1>&6
2174 else
2175 echo "$ac_t""no" 1>&6
2176 fi
2177
2178
2179 fi
2180
2181
2182 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2183 echo "configure:2184: checking for --with-dmalloc" >&5
2184 no_cache=0
2185 # Check whether --with-dmalloc or --without-dmalloc was given.
2186 if test "${with_dmalloc+set}" = set; then
2187 withval="$with_dmalloc"
2188
2189 if test "$withval" = yes; then
2190 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2191 else
2192 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2193 fi
2194
2195 else
2196
2197 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2198 if test "x$LINE" != x ; then
2199 eval "DEFAULT_$LINE"
2200 else
2201 no_cache=1
2202 fi
2203
2204 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2205
2206 fi
2207
2208
2209 eval "$ac_cv_use_dmalloc"
2210 if test "$no_cache" != 1; then
2211 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2212 fi
2213
2214 if test "$wxUSE_DMALLOC" = yes; then
2215 echo "$ac_t""yes" 1>&6
2216 else
2217 echo "$ac_t""no" 1>&6
2218 fi
2219
2220
2221 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2222 echo "configure:2223: checking for --with-regex" >&5
2223 no_cache=0
2224 # Check whether --with-regex or --without-regex was given.
2225 if test "${with_regex+set}" = set; then
2226 withval="$with_regex"
2227
2228 if test "$withval" = yes; then
2229 ac_cv_use_regex='wxUSE_REGEX=yes'
2230 elif test "$withval" = no; then
2231 ac_cv_use_regex='wxUSE_REGEX=no'
2232 elif test "$withval" = sys; then
2233 ac_cv_use_regex='wxUSE_REGEX=sys'
2234 elif test "$withval" = builtin; then
2235 ac_cv_use_regex='wxUSE_REGEX=builtin'
2236 else
2237 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2238 fi
2239
2240 else
2241
2242 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2243 if test "x$LINE" != x ; then
2244 eval "DEFAULT_$LINE"
2245 else
2246 no_cache=1
2247 fi
2248
2249 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2250
2251 fi
2252
2253
2254 eval "$ac_cv_use_regex"
2255 if test "$no_cache" != 1; then
2256 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2257 fi
2258
2259 if test "$wxUSE_REGEX" = yes; then
2260 echo "$ac_t""yes" 1>&6
2261 elif test "$wxUSE_REGEX" = no; then
2262 echo "$ac_t""no" 1>&6
2263 elif test "$wxUSE_REGEX" = sys; then
2264 echo "$ac_t""system version" 1>&6
2265 elif test "$wxUSE_REGEX" = builtin; then
2266 echo "$ac_t""builtin version" 1>&6
2267 else
2268 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2269 fi
2270
2271
2272 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2273 echo "configure:2274: checking for --with-zlib" >&5
2274 no_cache=0
2275 # Check whether --with-zlib or --without-zlib was given.
2276 if test "${with_zlib+set}" = set; then
2277 withval="$with_zlib"
2278
2279 if test "$withval" = yes; then
2280 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2281 elif test "$withval" = no; then
2282 ac_cv_use_zlib='wxUSE_ZLIB=no'
2283 elif test "$withval" = sys; then
2284 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2285 elif test "$withval" = builtin; then
2286 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2287 else
2288 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2289 fi
2290
2291 else
2292
2293 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2294 if test "x$LINE" != x ; then
2295 eval "DEFAULT_$LINE"
2296 else
2297 no_cache=1
2298 fi
2299
2300 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2301
2302 fi
2303
2304
2305 eval "$ac_cv_use_zlib"
2306 if test "$no_cache" != 1; then
2307 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2308 fi
2309
2310 if test "$wxUSE_ZLIB" = yes; then
2311 echo "$ac_t""yes" 1>&6
2312 elif test "$wxUSE_ZLIB" = no; then
2313 echo "$ac_t""no" 1>&6
2314 elif test "$wxUSE_ZLIB" = sys; then
2315 echo "$ac_t""system version" 1>&6
2316 elif test "$wxUSE_ZLIB" = builtin; then
2317 echo "$ac_t""builtin version" 1>&6
2318 else
2319 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2320 fi
2321
2322
2323 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2324 echo "configure:2325: checking for --with-odbc" >&5
2325 no_cache=0
2326 # Check whether --with-odbc or --without-odbc was given.
2327 if test "${with_odbc+set}" = set; then
2328 withval="$with_odbc"
2329
2330 if test "$withval" = yes; then
2331 ac_cv_use_odbc='wxUSE_ODBC=yes'
2332 else
2333 ac_cv_use_odbc='wxUSE_ODBC=no'
2334 fi
2335
2336 else
2337
2338 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2339 if test "x$LINE" != x ; then
2340 eval "DEFAULT_$LINE"
2341 else
2342 no_cache=1
2343 fi
2344
2345 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2346
2347 fi
2348
2349
2350 eval "$ac_cv_use_odbc"
2351 if test "$no_cache" != 1; then
2352 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2353 fi
2354
2355 if test "$wxUSE_ODBC" = yes; then
2356 echo "$ac_t""yes" 1>&6
2357 else
2358 echo "$ac_t""no" 1>&6
2359 fi
2360
2361
2362
2363
2364 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2365 echo "configure:2366: checking for --enable-shared" >&5
2366 no_cache=0
2367 # Check whether --enable-shared or --disable-shared was given.
2368 if test "${enable_shared+set}" = set; then
2369 enableval="$enable_shared"
2370
2371 if test "$enableval" = yes; then
2372 ac_cv_use_shared='wxUSE_SHARED=yes'
2373 else
2374 ac_cv_use_shared='wxUSE_SHARED=no'
2375 fi
2376
2377 else
2378
2379 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2380 if test "x$LINE" != x ; then
2381 eval "DEFAULT_$LINE"
2382 else
2383 no_cache=1
2384 fi
2385
2386 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2387
2388 fi
2389
2390
2391 eval "$ac_cv_use_shared"
2392 if test "$no_cache" != 1; then
2393 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2394 fi
2395
2396 if test "$wxUSE_SHARED" = yes; then
2397 echo "$ac_t""yes" 1>&6
2398 else
2399 echo "$ac_t""no" 1>&6
2400 fi
2401
2402
2403 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2404 echo "configure:2405: checking for --enable-soname" >&5
2405 no_cache=0
2406 # Check whether --enable-soname or --disable-soname was given.
2407 if test "${enable_soname+set}" = set; then
2408 enableval="$enable_soname"
2409
2410 if test "$enableval" = yes; then
2411 ac_cv_use_soname='wxUSE_SONAME=yes'
2412 else
2413 ac_cv_use_soname='wxUSE_SONAME=no'
2414 fi
2415
2416 else
2417
2418 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2419 if test "x$LINE" != x ; then
2420 eval "DEFAULT_$LINE"
2421 else
2422 no_cache=1
2423 fi
2424
2425 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2426
2427 fi
2428
2429
2430 eval "$ac_cv_use_soname"
2431 if test "$no_cache" != 1; then
2432 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2433 fi
2434
2435 if test "$wxUSE_SONAME" = yes; then
2436 echo "$ac_t""yes" 1>&6
2437 else
2438 echo "$ac_t""no" 1>&6
2439 fi
2440
2441
2442 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2443 echo "configure:2444: checking for --enable-optimise" >&5
2444 no_cache=0
2445 # Check whether --enable-optimise or --disable-optimise was given.
2446 if test "${enable_optimise+set}" = set; then
2447 enableval="$enable_optimise"
2448
2449 if test "$enableval" = yes; then
2450 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2451 else
2452 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2453 fi
2454
2455 else
2456
2457 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2458 if test "x$LINE" != x ; then
2459 eval "DEFAULT_$LINE"
2460 else
2461 no_cache=1
2462 fi
2463
2464 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2465
2466 fi
2467
2468
2469 eval "$ac_cv_use_optimise"
2470 if test "$no_cache" != 1; then
2471 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2472 fi
2473
2474 if test "$wxUSE_OPTIMISE" = yes; then
2475 echo "$ac_t""yes" 1>&6
2476 else
2477 echo "$ac_t""no" 1>&6
2478 fi
2479
2480
2481 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2482 echo "configure:2483: checking for --enable-debug" >&5
2483 no_cache=0
2484 # Check whether --enable-debug or --disable-debug was given.
2485 if test "${enable_debug+set}" = set; then
2486 enableval="$enable_debug"
2487
2488 if test "$enableval" = yes; then
2489 ac_cv_use_debug='wxUSE_DEBUG=yes'
2490 else
2491 ac_cv_use_debug='wxUSE_DEBUG=no'
2492 fi
2493
2494 else
2495
2496 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2497 if test "x$LINE" != x ; then
2498 eval "DEFAULT_$LINE"
2499 else
2500 no_cache=1
2501 fi
2502
2503 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2504
2505 fi
2506
2507
2508 eval "$ac_cv_use_debug"
2509 if test "$no_cache" != 1; then
2510 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2511 fi
2512
2513 if test "$wxUSE_DEBUG" = yes; then
2514 echo "$ac_t""yes" 1>&6
2515 else
2516 echo "$ac_t""no" 1>&6
2517 fi
2518
2519
2520
2521 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2522 echo "configure:2523: checking for --enable-precomp" >&5
2523 no_cache=0
2524 # Check whether --enable-precomp or --disable-precomp was given.
2525 if test "${enable_precomp+set}" = set; then
2526 enableval="$enable_precomp"
2527
2528 if test "$enableval" = yes; then
2529 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2530 else
2531 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2532 fi
2533
2534 else
2535
2536 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2537 if test "x$LINE" != x ; then
2538 eval "DEFAULT_$LINE"
2539 else
2540 no_cache=1
2541 fi
2542
2543 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2544
2545 fi
2546
2547
2548 eval "$ac_cv_use_precomp"
2549 if test "$no_cache" != 1; then
2550 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2551 fi
2552
2553 if test "$wxUSE_PRECOMP" = yes; then
2554 echo "$ac_t""yes" 1>&6
2555 else
2556 echo "$ac_t""no" 1>&6
2557 fi
2558
2559
2560 if test "$wxUSE_DEBUG" = "yes"; then
2561 DEFAULT_wxUSE_DEBUG_FLAG=yes
2562 DEFAULT_wxUSE_DEBUG_INFO=yes
2563 elif test "$wxUSE_DEBUG" = "no"; then
2564 DEFAULT_wxUSE_DEBUG_FLAG=no
2565 DEFAULT_wxUSE_DEBUG_INFO=no
2566 fi
2567
2568
2569 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2570 echo "configure:2571: checking for --enable-debug_flag" >&5
2571 no_cache=0
2572 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2573 if test "${enable_debug_flag+set}" = set; then
2574 enableval="$enable_debug_flag"
2575
2576 if test "$enableval" = yes; then
2577 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2578 else
2579 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2580 fi
2581
2582 else
2583
2584 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2585 if test "x$LINE" != x ; then
2586 eval "DEFAULT_$LINE"
2587 else
2588 no_cache=1
2589 fi
2590
2591 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2592
2593 fi
2594
2595
2596 eval "$ac_cv_use_debug_flag"
2597 if test "$no_cache" != 1; then
2598 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2599 fi
2600
2601 if test "$wxUSE_DEBUG_FLAG" = yes; then
2602 echo "$ac_t""yes" 1>&6
2603 else
2604 echo "$ac_t""no" 1>&6
2605 fi
2606
2607
2608 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2609 echo "configure:2610: checking for --enable-debug_info" >&5
2610 no_cache=0
2611 # Check whether --enable-debug_info or --disable-debug_info was given.
2612 if test "${enable_debug_info+set}" = set; then
2613 enableval="$enable_debug_info"
2614
2615 if test "$enableval" = yes; then
2616 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2617 else
2618 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2619 fi
2620
2621 else
2622
2623 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2624 if test "x$LINE" != x ; then
2625 eval "DEFAULT_$LINE"
2626 else
2627 no_cache=1
2628 fi
2629
2630 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2631
2632 fi
2633
2634
2635 eval "$ac_cv_use_debug_info"
2636 if test "$no_cache" != 1; then
2637 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2638 fi
2639
2640 if test "$wxUSE_DEBUG_INFO" = yes; then
2641 echo "$ac_t""yes" 1>&6
2642 else
2643 echo "$ac_t""no" 1>&6
2644 fi
2645
2646
2647 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2648 echo "configure:2649: checking for --enable-debug_gdb" >&5
2649 no_cache=0
2650 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2651 if test "${enable_debug_gdb+set}" = set; then
2652 enableval="$enable_debug_gdb"
2653
2654 if test "$enableval" = yes; then
2655 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2656 else
2657 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2658 fi
2659
2660 else
2661
2662 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2663 if test "x$LINE" != x ; then
2664 eval "DEFAULT_$LINE"
2665 else
2666 no_cache=1
2667 fi
2668
2669 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2670
2671 fi
2672
2673
2674 eval "$ac_cv_use_debug_gdb"
2675 if test "$no_cache" != 1; then
2676 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2677 fi
2678
2679 if test "$wxUSE_DEBUG_GDB" = yes; then
2680 echo "$ac_t""yes" 1>&6
2681 else
2682 echo "$ac_t""no" 1>&6
2683 fi
2684
2685
2686 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2687 echo "configure:2688: checking for --enable-debug_cntxt" >&5
2688 no_cache=0
2689 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2690 if test "${enable_debug_cntxt+set}" = set; then
2691 enableval="$enable_debug_cntxt"
2692
2693 if test "$enableval" = yes; then
2694 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2695 else
2696 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2697 fi
2698
2699 else
2700
2701 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2702 if test "x$LINE" != x ; then
2703 eval "DEFAULT_$LINE"
2704 else
2705 no_cache=1
2706 fi
2707
2708 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2709
2710 fi
2711
2712
2713 eval "$ac_cv_use_debug_cntxt"
2714 if test "$no_cache" != 1; then
2715 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2716 fi
2717
2718 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2719 echo "$ac_t""yes" 1>&6
2720 else
2721 echo "$ac_t""no" 1>&6
2722 fi
2723
2724
2725 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2726 echo "configure:2727: checking for --enable-mem_tracing" >&5
2727 no_cache=0
2728 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2729 if test "${enable_mem_tracing+set}" = set; then
2730 enableval="$enable_mem_tracing"
2731
2732 if test "$enableval" = yes; then
2733 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2734 else
2735 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2736 fi
2737
2738 else
2739
2740 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2741 if test "x$LINE" != x ; then
2742 eval "DEFAULT_$LINE"
2743 else
2744 no_cache=1
2745 fi
2746
2747 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2748
2749 fi
2750
2751
2752 eval "$ac_cv_use_mem_tracing"
2753 if test "$no_cache" != 1; then
2754 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2755 fi
2756
2757 if test "$wxUSE_MEM_TRACING" = yes; then
2758 echo "$ac_t""yes" 1>&6
2759 else
2760 echo "$ac_t""no" 1>&6
2761 fi
2762
2763
2764 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2765 echo "configure:2766: checking for --enable-profile" >&5
2766 no_cache=0
2767 # Check whether --enable-profile or --disable-profile was given.
2768 if test "${enable_profile+set}" = set; then
2769 enableval="$enable_profile"
2770
2771 if test "$enableval" = yes; then
2772 ac_cv_use_profile='wxUSE_PROFILE=yes'
2773 else
2774 ac_cv_use_profile='wxUSE_PROFILE=no'
2775 fi
2776
2777 else
2778
2779 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2780 if test "x$LINE" != x ; then
2781 eval "DEFAULT_$LINE"
2782 else
2783 no_cache=1
2784 fi
2785
2786 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2787
2788 fi
2789
2790
2791 eval "$ac_cv_use_profile"
2792 if test "$no_cache" != 1; then
2793 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2794 fi
2795
2796 if test "$wxUSE_PROFILE" = yes; then
2797 echo "$ac_t""yes" 1>&6
2798 else
2799 echo "$ac_t""no" 1>&6
2800 fi
2801
2802
2803 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2804 echo "configure:2805: checking for --enable-no_rtti" >&5
2805 no_cache=0
2806 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2807 if test "${enable_no_rtti+set}" = set; then
2808 enableval="$enable_no_rtti"
2809
2810 if test "$enableval" = yes; then
2811 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2812 else
2813 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2814 fi
2815
2816 else
2817
2818 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2819 if test "x$LINE" != x ; then
2820 eval "DEFAULT_$LINE"
2821 else
2822 no_cache=1
2823 fi
2824
2825 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2826
2827 fi
2828
2829
2830 eval "$ac_cv_use_no_rtti"
2831 if test "$no_cache" != 1; then
2832 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2833 fi
2834
2835 if test "$wxUSE_NO_RTTI" = yes; then
2836 echo "$ac_t""yes" 1>&6
2837 else
2838 echo "$ac_t""no" 1>&6
2839 fi
2840
2841
2842 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2843 echo "configure:2844: checking for --enable-no_exceptions" >&5
2844 no_cache=0
2845 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2846 if test "${enable_no_exceptions+set}" = set; then
2847 enableval="$enable_no_exceptions"
2848
2849 if test "$enableval" = yes; then
2850 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2851 else
2852 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2853 fi
2854
2855 else
2856
2857 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2858 if test "x$LINE" != x ; then
2859 eval "DEFAULT_$LINE"
2860 else
2861 no_cache=1
2862 fi
2863
2864 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2865
2866 fi
2867
2868
2869 eval "$ac_cv_use_no_exceptions"
2870 if test "$no_cache" != 1; then
2871 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2872 fi
2873
2874 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2875 echo "$ac_t""yes" 1>&6
2876 else
2877 echo "$ac_t""no" 1>&6
2878 fi
2879
2880
2881 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2882 echo "configure:2883: checking for --enable-permissive" >&5
2883 no_cache=0
2884 # Check whether --enable-permissive or --disable-permissive was given.
2885 if test "${enable_permissive+set}" = set; then
2886 enableval="$enable_permissive"
2887
2888 if test "$enableval" = yes; then
2889 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2890 else
2891 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2892 fi
2893
2894 else
2895
2896 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2897 if test "x$LINE" != x ; then
2898 eval "DEFAULT_$LINE"
2899 else
2900 no_cache=1
2901 fi
2902
2903 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2904
2905 fi
2906
2907
2908 eval "$ac_cv_use_permissive"
2909 if test "$no_cache" != 1; then
2910 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2911 fi
2912
2913 if test "$wxUSE_PERMISSIVE" = yes; then
2914 echo "$ac_t""yes" 1>&6
2915 else
2916 echo "$ac_t""no" 1>&6
2917 fi
2918
2919
2920 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2921 echo "configure:2922: checking for --enable-no_deps" >&5
2922 no_cache=0
2923 # Check whether --enable-no_deps or --disable-no_deps was given.
2924 if test "${enable_no_deps+set}" = set; then
2925 enableval="$enable_no_deps"
2926
2927 if test "$enableval" = yes; then
2928 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2929 else
2930 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2931 fi
2932
2933 else
2934
2935 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2936 if test "x$LINE" != x ; then
2937 eval "DEFAULT_$LINE"
2938 else
2939 no_cache=1
2940 fi
2941
2942 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2943
2944 fi
2945
2946
2947 eval "$ac_cv_use_no_deps"
2948 if test "$no_cache" != 1; then
2949 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2950 fi
2951
2952 if test "$wxUSE_NO_DEPS" = yes; then
2953 echo "$ac_t""yes" 1>&6
2954 else
2955 echo "$ac_t""no" 1>&6
2956 fi
2957
2958
2959
2960 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2961 echo "configure:2962: checking for --enable-compat20" >&5
2962 no_cache=0
2963 # Check whether --enable-compat20 or --disable-compat20 was given.
2964 if test "${enable_compat20+set}" = set; then
2965 enableval="$enable_compat20"
2966
2967 if test "$enableval" = yes; then
2968 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2969 else
2970 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2971 fi
2972
2973 else
2974
2975 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2976 if test "x$LINE" != x ; then
2977 eval "DEFAULT_$LINE"
2978 else
2979 no_cache=1
2980 fi
2981
2982 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2983
2984 fi
2985
2986
2987 eval "$ac_cv_use_compat20"
2988 if test "$no_cache" != 1; then
2989 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2990 fi
2991
2992 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2993 echo "$ac_t""yes" 1>&6
2994 else
2995 echo "$ac_t""no" 1>&6
2996 fi
2997
2998
2999 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
3000 echo "configure:3001: checking for --enable-compat22" >&5
3001 no_cache=0
3002 # Check whether --enable-compat22 or --disable-compat22 was given.
3003 if test "${enable_compat22+set}" = set; then
3004 enableval="$enable_compat22"
3005
3006 if test "$enableval" = yes; then
3007 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
3008 else
3009 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
3010 fi
3011
3012 else
3013
3014 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
3015 if test "x$LINE" != x ; then
3016 eval "DEFAULT_$LINE"
3017 else
3018 no_cache=1
3019 fi
3020
3021 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
3022
3023 fi
3024
3025
3026 eval "$ac_cv_use_compat22"
3027 if test "$no_cache" != 1; then
3028 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
3029 fi
3030
3031 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
3032 echo "$ac_t""yes" 1>&6
3033 else
3034 echo "$ac_t""no" 1>&6
3035 fi
3036
3037
3038
3039
3040 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3041 echo "configure:3042: checking for --enable-intl" >&5
3042 no_cache=0
3043 # Check whether --enable-intl or --disable-intl was given.
3044 if test "${enable_intl+set}" = set; then
3045 enableval="$enable_intl"
3046
3047 if test "$enableval" = yes; then
3048 ac_cv_use_intl='wxUSE_INTL=yes'
3049 else
3050 ac_cv_use_intl='wxUSE_INTL=no'
3051 fi
3052
3053 else
3054
3055 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3056 if test "x$LINE" != x ; then
3057 eval "DEFAULT_$LINE"
3058 else
3059 no_cache=1
3060 fi
3061
3062 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3063
3064 fi
3065
3066
3067 eval "$ac_cv_use_intl"
3068 if test "$no_cache" != 1; then
3069 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3070 fi
3071
3072 if test "$wxUSE_INTL" = yes; then
3073 echo "$ac_t""yes" 1>&6
3074 else
3075 echo "$ac_t""no" 1>&6
3076 fi
3077
3078
3079 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3080 echo "configure:3081: checking for --enable-config" >&5
3081 no_cache=0
3082 # Check whether --enable-config or --disable-config was given.
3083 if test "${enable_config+set}" = set; then
3084 enableval="$enable_config"
3085
3086 if test "$enableval" = yes; then
3087 ac_cv_use_config='wxUSE_CONFIG=yes'
3088 else
3089 ac_cv_use_config='wxUSE_CONFIG=no'
3090 fi
3091
3092 else
3093
3094 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3095 if test "x$LINE" != x ; then
3096 eval "DEFAULT_$LINE"
3097 else
3098 no_cache=1
3099 fi
3100
3101 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3102
3103 fi
3104
3105
3106 eval "$ac_cv_use_config"
3107 if test "$no_cache" != 1; then
3108 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3109 fi
3110
3111 if test "$wxUSE_CONFIG" = yes; then
3112 echo "$ac_t""yes" 1>&6
3113 else
3114 echo "$ac_t""no" 1>&6
3115 fi
3116
3117
3118
3119 echo $ac_n "checking for --enable-protocols""... $ac_c" 1>&6
3120 echo "configure:3121: checking for --enable-protocols" >&5
3121 no_cache=0
3122 # Check whether --enable-protocols or --disable-protocols was given.
3123 if test "${enable_protocols+set}" = set; then
3124 enableval="$enable_protocols"
3125
3126 if test "$enableval" = yes; then
3127 ac_cv_use_protocols='wxUSE_PROTOCOL=yes'
3128 else
3129 ac_cv_use_protocols='wxUSE_PROTOCOL=no'
3130 fi
3131
3132 else
3133
3134 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
3135 if test "x$LINE" != x ; then
3136 eval "DEFAULT_$LINE"
3137 else
3138 no_cache=1
3139 fi
3140
3141 ac_cv_use_protocols='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
3142
3143 fi
3144
3145
3146 eval "$ac_cv_use_protocols"
3147 if test "$no_cache" != 1; then
3148 echo $ac_cv_use_protocols >> ${wx_arg_cache_file}.tmp
3149 fi
3150
3151 if test "$wxUSE_PROTOCOL" = yes; then
3152 echo "$ac_t""yes" 1>&6
3153 else
3154 echo "$ac_t""no" 1>&6
3155 fi
3156
3157
3158 echo $ac_n "checking for --enable-ftp""... $ac_c" 1>&6
3159 echo "configure:3160: checking for --enable-ftp" >&5
3160 no_cache=0
3161 # Check whether --enable-ftp or --disable-ftp was given.
3162 if test "${enable_ftp+set}" = set; then
3163 enableval="$enable_ftp"
3164
3165 if test "$enableval" = yes; then
3166 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
3167 else
3168 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
3169 fi
3170
3171 else
3172
3173 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
3181
3182 fi
3183
3184
3185 eval "$ac_cv_use_ftp"
3186 if test "$no_cache" != 1; then
3187 echo $ac_cv_use_ftp >> ${wx_arg_cache_file}.tmp
3188 fi
3189
3190 if test "$wxUSE_PROTOCOL_FTP" = yes; then
3191 echo "$ac_t""yes" 1>&6
3192 else
3193 echo "$ac_t""no" 1>&6
3194 fi
3195
3196
3197 echo $ac_n "checking for --enable-http""... $ac_c" 1>&6
3198 echo "configure:3199: checking for --enable-http" >&5
3199 no_cache=0
3200 # Check whether --enable-http or --disable-http was given.
3201 if test "${enable_http+set}" = set; then
3202 enableval="$enable_http"
3203
3204 if test "$enableval" = yes; then
3205 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
3206 else
3207 ac_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
3208 fi
3209
3210 else
3211
3212 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
3213 if test "x$LINE" != x ; then
3214 eval "DEFAULT_$LINE"
3215 else
3216 no_cache=1
3217 fi
3218
3219 ac_cv_use_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
3220
3221 fi
3222
3223
3224 eval "$ac_cv_use_http"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_http >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
3230 echo "$ac_t""yes" 1>&6
3231 else
3232 echo "$ac_t""no" 1>&6
3233 fi
3234
3235
3236 echo $ac_n "checking for --enable-fileproto""... $ac_c" 1>&6
3237 echo "configure:3238: checking for --enable-fileproto" >&5
3238 no_cache=0
3239 # Check whether --enable-fileproto or --disable-fileproto was given.
3240 if test "${enable_fileproto+set}" = set; then
3241 enableval="$enable_fileproto"
3242
3243 if test "$enableval" = yes; then
3244 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
3245 else
3246 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
3247 fi
3248
3249 else
3250
3251 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_fileproto='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
3259
3260 fi
3261
3262
3263 eval "$ac_cv_use_fileproto"
3264 if test "$no_cache" != 1; then
3265 echo $ac_cv_use_fileproto >> ${wx_arg_cache_file}.tmp
3266 fi
3267
3268 if test "$wxUSE_PROTOCOL_FILE" = yes; then
3269 echo "$ac_t""yes" 1>&6
3270 else
3271 echo "$ac_t""no" 1>&6
3272 fi
3273
3274
3275 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3276 echo "configure:3277: checking for --enable-sockets" >&5
3277 no_cache=0
3278 # Check whether --enable-sockets or --disable-sockets was given.
3279 if test "${enable_sockets+set}" = set; then
3280 enableval="$enable_sockets"
3281
3282 if test "$enableval" = yes; then
3283 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3284 else
3285 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3286 fi
3287
3288 else
3289
3290 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3291 if test "x$LINE" != x ; then
3292 eval "DEFAULT_$LINE"
3293 else
3294 no_cache=1
3295 fi
3296
3297 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3298
3299 fi
3300
3301
3302 eval "$ac_cv_use_sockets"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_SOCKETS" = yes; then
3308 echo "$ac_t""yes" 1>&6
3309 else
3310 echo "$ac_t""no" 1>&6
3311 fi
3312
3313
3314
3315 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3316 echo "configure:3317: checking for --enable-ipc" >&5
3317 no_cache=0
3318 # Check whether --enable-ipc or --disable-ipc was given.
3319 if test "${enable_ipc+set}" = set; then
3320 enableval="$enable_ipc"
3321
3322 if test "$enableval" = yes; then
3323 ac_cv_use_ipc='wxUSE_IPC=yes'
3324 else
3325 ac_cv_use_ipc='wxUSE_IPC=no'
3326 fi
3327
3328 else
3329
3330 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3331 if test "x$LINE" != x ; then
3332 eval "DEFAULT_$LINE"
3333 else
3334 no_cache=1
3335 fi
3336
3337 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3338
3339 fi
3340
3341
3342 eval "$ac_cv_use_ipc"
3343 if test "$no_cache" != 1; then
3344 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3345 fi
3346
3347 if test "$wxUSE_IPC" = yes; then
3348 echo "$ac_t""yes" 1>&6
3349 else
3350 echo "$ac_t""no" 1>&6
3351 fi
3352
3353
3354
3355 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3356 echo "configure:3357: checking for --enable-cmdline" >&5
3357 no_cache=0
3358 # Check whether --enable-cmdline or --disable-cmdline was given.
3359 if test "${enable_cmdline+set}" = set; then
3360 enableval="$enable_cmdline"
3361
3362 if test "$enableval" = yes; then
3363 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3364 else
3365 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3366 fi
3367
3368 else
3369
3370 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3371 if test "x$LINE" != x ; then
3372 eval "DEFAULT_$LINE"
3373 else
3374 no_cache=1
3375 fi
3376
3377 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3378
3379 fi
3380
3381
3382 eval "$ac_cv_use_cmdline"
3383 if test "$no_cache" != 1; then
3384 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3385 fi
3386
3387 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3388 echo "$ac_t""yes" 1>&6
3389 else
3390 echo "$ac_t""no" 1>&6
3391 fi
3392
3393
3394 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3395 echo "configure:3396: checking for --enable-datetime" >&5
3396 no_cache=0
3397 # Check whether --enable-datetime or --disable-datetime was given.
3398 if test "${enable_datetime+set}" = set; then
3399 enableval="$enable_datetime"
3400
3401 if test "$enableval" = yes; then
3402 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3403 else
3404 ac_cv_use_datetime='wxUSE_DATETIME=no'
3405 fi
3406
3407 else
3408
3409 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3410 if test "x$LINE" != x ; then
3411 eval "DEFAULT_$LINE"
3412 else
3413 no_cache=1
3414 fi
3415
3416 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3417
3418 fi
3419
3420
3421 eval "$ac_cv_use_datetime"
3422 if test "$no_cache" != 1; then
3423 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3424 fi
3425
3426 if test "$wxUSE_DATETIME" = yes; then
3427 echo "$ac_t""yes" 1>&6
3428 else
3429 echo "$ac_t""no" 1>&6
3430 fi
3431
3432
3433 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3434 echo "configure:3435: checking for --enable-timedate" >&5
3435 no_cache=0
3436 # Check whether --enable-timedate or --disable-timedate was given.
3437 if test "${enable_timedate+set}" = set; then
3438 enableval="$enable_timedate"
3439
3440 if test "$enableval" = yes; then
3441 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3442 else
3443 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3444 fi
3445
3446 else
3447
3448 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3449 if test "x$LINE" != x ; then
3450 eval "DEFAULT_$LINE"
3451 else
3452 no_cache=1
3453 fi
3454
3455 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3456
3457 fi
3458
3459
3460 eval "$ac_cv_use_timedate"
3461 if test "$no_cache" != 1; then
3462 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3463 fi
3464
3465 if test "$wxUSE_TIMEDATE" = yes; then
3466 echo "$ac_t""yes" 1>&6
3467 else
3468 echo "$ac_t""no" 1>&6
3469 fi
3470
3471
3472 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3473 echo "configure:3474: checking for --enable-stopwatch" >&5
3474 no_cache=0
3475 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3476 if test "${enable_stopwatch+set}" = set; then
3477 enableval="$enable_stopwatch"
3478
3479 if test "$enableval" = yes; then
3480 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3481 else
3482 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3483 fi
3484
3485 else
3486
3487 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3488 if test "x$LINE" != x ; then
3489 eval "DEFAULT_$LINE"
3490 else
3491 no_cache=1
3492 fi
3493
3494 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3495
3496 fi
3497
3498
3499 eval "$ac_cv_use_stopwatch"
3500 if test "$no_cache" != 1; then
3501 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3502 fi
3503
3504 if test "$wxUSE_STOPWATCH" = yes; then
3505 echo "$ac_t""yes" 1>&6
3506 else
3507 echo "$ac_t""no" 1>&6
3508 fi
3509
3510
3511 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3512 echo "configure:3513: checking for --enable-dialupman" >&5
3513 no_cache=0
3514 # Check whether --enable-dialupman or --disable-dialupman was given.
3515 if test "${enable_dialupman+set}" = set; then
3516 enableval="$enable_dialupman"
3517
3518 if test "$enableval" = yes; then
3519 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3520 else
3521 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3522 fi
3523
3524 else
3525
3526 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3527 if test "x$LINE" != x ; then
3528 eval "DEFAULT_$LINE"
3529 else
3530 no_cache=1
3531 fi
3532
3533 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3534
3535 fi
3536
3537
3538 eval "$ac_cv_use_dialupman"
3539 if test "$no_cache" != 1; then
3540 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3541 fi
3542
3543 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3544 echo "$ac_t""yes" 1>&6
3545 else
3546 echo "$ac_t""no" 1>&6
3547 fi
3548
3549
3550 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3551 echo "configure:3552: checking for --enable-apple_ieee" >&5
3552 no_cache=0
3553 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3554 if test "${enable_apple_ieee+set}" = set; then
3555 enableval="$enable_apple_ieee"
3556
3557 if test "$enableval" = yes; then
3558 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3559 else
3560 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3561 fi
3562
3563 else
3564
3565 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3566 if test "x$LINE" != x ; then
3567 eval "DEFAULT_$LINE"
3568 else
3569 no_cache=1
3570 fi
3571
3572 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3573
3574 fi
3575
3576
3577 eval "$ac_cv_use_apple_ieee"
3578 if test "$no_cache" != 1; then
3579 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3580 fi
3581
3582 if test "$wxUSE_APPLE_IEEE" = yes; then
3583 echo "$ac_t""yes" 1>&6
3584 else
3585 echo "$ac_t""no" 1>&6
3586 fi
3587
3588
3589 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3590 echo "configure:3591: checking for --enable-timer" >&5
3591 no_cache=0
3592 # Check whether --enable-timer or --disable-timer was given.
3593 if test "${enable_timer+set}" = set; then
3594 enableval="$enable_timer"
3595
3596 if test "$enableval" = yes; then
3597 ac_cv_use_timer='wxUSE_TIMER=yes'
3598 else
3599 ac_cv_use_timer='wxUSE_TIMER=no'
3600 fi
3601
3602 else
3603
3604 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3605 if test "x$LINE" != x ; then
3606 eval "DEFAULT_$LINE"
3607 else
3608 no_cache=1
3609 fi
3610
3611 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3612
3613 fi
3614
3615
3616 eval "$ac_cv_use_timer"
3617 if test "$no_cache" != 1; then
3618 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3619 fi
3620
3621 if test "$wxUSE_TIMER" = yes; then
3622 echo "$ac_t""yes" 1>&6
3623 else
3624 echo "$ac_t""no" 1>&6
3625 fi
3626
3627
3628 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3629 echo "configure:3630: checking for --enable-wave" >&5
3630 no_cache=0
3631 # Check whether --enable-wave or --disable-wave was given.
3632 if test "${enable_wave+set}" = set; then
3633 enableval="$enable_wave"
3634
3635 if test "$enableval" = yes; then
3636 ac_cv_use_wave='wxUSE_WAVE=yes'
3637 else
3638 ac_cv_use_wave='wxUSE_WAVE=no'
3639 fi
3640
3641 else
3642
3643 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3644 if test "x$LINE" != x ; then
3645 eval "DEFAULT_$LINE"
3646 else
3647 no_cache=1
3648 fi
3649
3650 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3651
3652 fi
3653
3654
3655 eval "$ac_cv_use_wave"
3656 if test "$no_cache" != 1; then
3657 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3658 fi
3659
3660 if test "$wxUSE_WAVE" = yes; then
3661 echo "$ac_t""yes" 1>&6
3662 else
3663 echo "$ac_t""no" 1>&6
3664 fi
3665
3666
3667 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3668 echo "configure:3669: checking for --enable-fraction" >&5
3669 no_cache=0
3670 # Check whether --enable-fraction or --disable-fraction was given.
3671 if test "${enable_fraction+set}" = set; then
3672 enableval="$enable_fraction"
3673
3674 if test "$enableval" = yes; then
3675 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3676 else
3677 ac_cv_use_fraction='wxUSE_FRACTION=no'
3678 fi
3679
3680 else
3681
3682 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3683 if test "x$LINE" != x ; then
3684 eval "DEFAULT_$LINE"
3685 else
3686 no_cache=1
3687 fi
3688
3689 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3690
3691 fi
3692
3693
3694 eval "$ac_cv_use_fraction"
3695 if test "$no_cache" != 1; then
3696 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3697 fi
3698
3699 if test "$wxUSE_FRACTION" = yes; then
3700 echo "$ac_t""yes" 1>&6
3701 else
3702 echo "$ac_t""no" 1>&6
3703 fi
3704
3705
3706 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3707 echo "configure:3708: checking for --enable-dynlib" >&5
3708 no_cache=0
3709 # Check whether --enable-dynlib or --disable-dynlib was given.
3710 if test "${enable_dynlib+set}" = set; then
3711 enableval="$enable_dynlib"
3712
3713 if test "$enableval" = yes; then
3714 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3715 else
3716 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3717 fi
3718
3719 else
3720
3721 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3722 if test "x$LINE" != x ; then
3723 eval "DEFAULT_$LINE"
3724 else
3725 no_cache=1
3726 fi
3727
3728 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3729
3730 fi
3731
3732
3733 eval "$ac_cv_use_dynlib"
3734 if test "$no_cache" != 1; then
3735 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3736 fi
3737
3738 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3739 echo "$ac_t""yes" 1>&6
3740 else
3741 echo "$ac_t""no" 1>&6
3742 fi
3743
3744
3745 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3746 echo "configure:3747: checking for --enable-dynamicloader" >&5
3747 no_cache=0
3748 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3749 if test "${enable_dynamicloader+set}" = set; then
3750 enableval="$enable_dynamicloader"
3751
3752 if test "$enableval" = yes; then
3753 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3754 else
3755 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3756 fi
3757
3758 else
3759
3760 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3761 if test "x$LINE" != x ; then
3762 eval "DEFAULT_$LINE"
3763 else
3764 no_cache=1
3765 fi
3766
3767 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3768
3769 fi
3770
3771
3772 eval "$ac_cv_use_dynamicloader"
3773 if test "$no_cache" != 1; then
3774 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3775 fi
3776
3777 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3778 echo "$ac_t""yes" 1>&6
3779 else
3780 echo "$ac_t""no" 1>&6
3781 fi
3782
3783
3784 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3785 echo "configure:3786: checking for --enable-longlong" >&5
3786 no_cache=0
3787 # Check whether --enable-longlong or --disable-longlong was given.
3788 if test "${enable_longlong+set}" = set; then
3789 enableval="$enable_longlong"
3790
3791 if test "$enableval" = yes; then
3792 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3793 else
3794 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3795 fi
3796
3797 else
3798
3799 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3800 if test "x$LINE" != x ; then
3801 eval "DEFAULT_$LINE"
3802 else
3803 no_cache=1
3804 fi
3805
3806 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3807
3808 fi
3809
3810
3811 eval "$ac_cv_use_longlong"
3812 if test "$no_cache" != 1; then
3813 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3814 fi
3815
3816 if test "$wxUSE_LONGLONG" = yes; then
3817 echo "$ac_t""yes" 1>&6
3818 else
3819 echo "$ac_t""no" 1>&6
3820 fi
3821
3822
3823 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3824 echo "configure:3825: checking for --enable-geometry" >&5
3825 no_cache=0
3826 # Check whether --enable-geometry or --disable-geometry was given.
3827 if test "${enable_geometry+set}" = set; then
3828 enableval="$enable_geometry"
3829
3830 if test "$enableval" = yes; then
3831 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3832 else
3833 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3834 fi
3835
3836 else
3837
3838 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3839 if test "x$LINE" != x ; then
3840 eval "DEFAULT_$LINE"
3841 else
3842 no_cache=1
3843 fi
3844
3845 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3846
3847 fi
3848
3849
3850 eval "$ac_cv_use_geometry"
3851 if test "$no_cache" != 1; then
3852 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3853 fi
3854
3855 if test "$wxUSE_GEOMETRY" = yes; then
3856 echo "$ac_t""yes" 1>&6
3857 else
3858 echo "$ac_t""no" 1>&6
3859 fi
3860
3861
3862 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3863 echo "configure:3864: checking for --enable-log" >&5
3864 no_cache=0
3865 # Check whether --enable-log or --disable-log was given.
3866 if test "${enable_log+set}" = set; then
3867 enableval="$enable_log"
3868
3869 if test "$enableval" = yes; then
3870 ac_cv_use_log='wxUSE_LOG=yes'
3871 else
3872 ac_cv_use_log='wxUSE_LOG=no'
3873 fi
3874
3875 else
3876
3877 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3878 if test "x$LINE" != x ; then
3879 eval "DEFAULT_$LINE"
3880 else
3881 no_cache=1
3882 fi
3883
3884 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3885
3886 fi
3887
3888
3889 eval "$ac_cv_use_log"
3890 if test "$no_cache" != 1; then
3891 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3892 fi
3893
3894 if test "$wxUSE_LOG" = yes; then
3895 echo "$ac_t""yes" 1>&6
3896 else
3897 echo "$ac_t""no" 1>&6
3898 fi
3899
3900
3901 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3902 echo "configure:3903: checking for --enable-streams" >&5
3903 no_cache=0
3904 # Check whether --enable-streams or --disable-streams was given.
3905 if test "${enable_streams+set}" = set; then
3906 enableval="$enable_streams"
3907
3908 if test "$enableval" = yes; then
3909 ac_cv_use_streams='wxUSE_STREAMS=yes'
3910 else
3911 ac_cv_use_streams='wxUSE_STREAMS=no'
3912 fi
3913
3914 else
3915
3916 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3917 if test "x$LINE" != x ; then
3918 eval "DEFAULT_$LINE"
3919 else
3920 no_cache=1
3921 fi
3922
3923 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3924
3925 fi
3926
3927
3928 eval "$ac_cv_use_streams"
3929 if test "$no_cache" != 1; then
3930 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3931 fi
3932
3933 if test "$wxUSE_STREAMS" = yes; then
3934 echo "$ac_t""yes" 1>&6
3935 else
3936 echo "$ac_t""no" 1>&6
3937 fi
3938
3939
3940 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3941 echo "configure:3942: checking for --enable-file" >&5
3942 no_cache=0
3943 # Check whether --enable-file or --disable-file was given.
3944 if test "${enable_file+set}" = set; then
3945 enableval="$enable_file"
3946
3947 if test "$enableval" = yes; then
3948 ac_cv_use_file='wxUSE_FILE=yes'
3949 else
3950 ac_cv_use_file='wxUSE_FILE=no'
3951 fi
3952
3953 else
3954
3955 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3956 if test "x$LINE" != x ; then
3957 eval "DEFAULT_$LINE"
3958 else
3959 no_cache=1
3960 fi
3961
3962 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3963
3964 fi
3965
3966
3967 eval "$ac_cv_use_file"
3968 if test "$no_cache" != 1; then
3969 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3970 fi
3971
3972 if test "$wxUSE_FILE" = yes; then
3973 echo "$ac_t""yes" 1>&6
3974 else
3975 echo "$ac_t""no" 1>&6
3976 fi
3977
3978
3979 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3980 echo "configure:3981: checking for --enable-ffile" >&5
3981 no_cache=0
3982 # Check whether --enable-ffile or --disable-ffile was given.
3983 if test "${enable_ffile+set}" = set; then
3984 enableval="$enable_ffile"
3985
3986 if test "$enableval" = yes; then
3987 ac_cv_use_ffile='wxUSE_FFILE=yes'
3988 else
3989 ac_cv_use_ffile='wxUSE_FFILE=no'
3990 fi
3991
3992 else
3993
3994 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3995 if test "x$LINE" != x ; then
3996 eval "DEFAULT_$LINE"
3997 else
3998 no_cache=1
3999 fi
4000
4001 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
4002
4003 fi
4004
4005
4006 eval "$ac_cv_use_ffile"
4007 if test "$no_cache" != 1; then
4008 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
4009 fi
4010
4011 if test "$wxUSE_FFILE" = yes; then
4012 echo "$ac_t""yes" 1>&6
4013 else
4014 echo "$ac_t""no" 1>&6
4015 fi
4016
4017
4018 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
4019 echo "configure:4020: checking for --enable-textbuf" >&5
4020 no_cache=0
4021 # Check whether --enable-textbuf or --disable-textbuf was given.
4022 if test "${enable_textbuf+set}" = set; then
4023 enableval="$enable_textbuf"
4024
4025 if test "$enableval" = yes; then
4026 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
4027 else
4028 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
4029 fi
4030
4031 else
4032
4033 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
4034 if test "x$LINE" != x ; then
4035 eval "DEFAULT_$LINE"
4036 else
4037 no_cache=1
4038 fi
4039
4040 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
4041
4042 fi
4043
4044
4045 eval "$ac_cv_use_textbuf"
4046 if test "$no_cache" != 1; then
4047 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
4048 fi
4049
4050 if test "$wxUSE_TEXTBUFFER" = yes; then
4051 echo "$ac_t""yes" 1>&6
4052 else
4053 echo "$ac_t""no" 1>&6
4054 fi
4055
4056
4057 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
4058 echo "configure:4059: checking for --enable-textfile" >&5
4059 no_cache=0
4060 # Check whether --enable-textfile or --disable-textfile was given.
4061 if test "${enable_textfile+set}" = set; then
4062 enableval="$enable_textfile"
4063
4064 if test "$enableval" = yes; then
4065 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
4066 else
4067 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
4068 fi
4069
4070 else
4071
4072 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
4073 if test "x$LINE" != x ; then
4074 eval "DEFAULT_$LINE"
4075 else
4076 no_cache=1
4077 fi
4078
4079 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
4080
4081 fi
4082
4083
4084 eval "$ac_cv_use_textfile"
4085 if test "$no_cache" != 1; then
4086 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
4087 fi
4088
4089 if test "$wxUSE_TEXTFILE" = yes; then
4090 echo "$ac_t""yes" 1>&6
4091 else
4092 echo "$ac_t""no" 1>&6
4093 fi
4094
4095
4096 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
4097 echo "configure:4098: checking for --enable-fontmap" >&5
4098 no_cache=0
4099 # Check whether --enable-fontmap or --disable-fontmap was given.
4100 if test "${enable_fontmap+set}" = set; then
4101 enableval="$enable_fontmap"
4102
4103 if test "$enableval" = yes; then
4104 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
4105 else
4106 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
4107 fi
4108
4109 else
4110
4111 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
4112 if test "x$LINE" != x ; then
4113 eval "DEFAULT_$LINE"
4114 else
4115 no_cache=1
4116 fi
4117
4118 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
4119
4120 fi
4121
4122
4123 eval "$ac_cv_use_fontmap"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$wxUSE_FONTMAP" = yes; then
4129 echo "$ac_t""yes" 1>&6
4130 else
4131 echo "$ac_t""no" 1>&6
4132 fi
4133
4134
4135 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
4136 echo "configure:4137: checking for --enable-unicode" >&5
4137 no_cache=0
4138 # Check whether --enable-unicode or --disable-unicode was given.
4139 if test "${enable_unicode+set}" = set; then
4140 enableval="$enable_unicode"
4141
4142 if test "$enableval" = yes; then
4143 ac_cv_use_unicode='wxUSE_UNICODE=yes'
4144 else
4145 ac_cv_use_unicode='wxUSE_UNICODE=no'
4146 fi
4147
4148 else
4149
4150 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
4151 if test "x$LINE" != x ; then
4152 eval "DEFAULT_$LINE"
4153 else
4154 no_cache=1
4155 fi
4156
4157 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
4158
4159 fi
4160
4161
4162 eval "$ac_cv_use_unicode"
4163 if test "$no_cache" != 1; then
4164 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
4165 fi
4166
4167 if test "$wxUSE_UNICODE" = yes; then
4168 echo "$ac_t""yes" 1>&6
4169 else
4170 echo "$ac_t""no" 1>&6
4171 fi
4172
4173
4174 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
4175 echo "configure:4176: checking for --enable-mslu" >&5
4176 no_cache=0
4177 # Check whether --enable-mslu or --disable-mslu was given.
4178 if test "${enable_mslu+set}" = set; then
4179 enableval="$enable_mslu"
4180
4181 if test "$enableval" = yes; then
4182 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4183 else
4184 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4185 fi
4186
4187 else
4188
4189 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
4190 if test "x$LINE" != x ; then
4191 eval "DEFAULT_$LINE"
4192 else
4193 no_cache=1
4194 fi
4195
4196 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4197
4198 fi
4199
4200
4201 eval "$ac_cv_use_mslu"
4202 if test "$no_cache" != 1; then
4203 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4204 fi
4205
4206 if test "$wxUSE_UNICODE_MSLU" = yes; then
4207 echo "$ac_t""yes" 1>&6
4208 else
4209 echo "$ac_t""no" 1>&6
4210 fi
4211
4212
4213 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4214 echo "configure:4215: checking for --enable-wxprintfv" >&5
4215 no_cache=0
4216 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4217 if test "${enable_wxprintfv+set}" = set; then
4218 enableval="$enable_wxprintfv"
4219
4220 if test "$enableval" = yes; then
4221 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4222 else
4223 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4224 fi
4225
4226 else
4227
4228 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4229 if test "x$LINE" != x ; then
4230 eval "DEFAULT_$LINE"
4231 else
4232 no_cache=1
4233 fi
4234
4235 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4236
4237 fi
4238
4239
4240 eval "$ac_cv_use_wxprintfv"
4241 if test "$no_cache" != 1; then
4242 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4243 fi
4244
4245 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4246 echo "$ac_t""yes" 1>&6
4247 else
4248 echo "$ac_t""no" 1>&6
4249 fi
4250
4251
4252 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4253 echo "configure:4254: checking for --enable-std_iostreams" >&5
4254 no_cache=0
4255 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4256 if test "${enable_std_iostreams+set}" = set; then
4257 enableval="$enable_std_iostreams"
4258
4259 if test "$enableval" = yes; then
4260 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4261 else
4262 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4263 fi
4264
4265 else
4266
4267 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4268 if test "x$LINE" != x ; then
4269 eval "DEFAULT_$LINE"
4270 else
4271 no_cache=1
4272 fi
4273
4274 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4275
4276 fi
4277
4278
4279 eval "$ac_cv_use_std_iostreams"
4280 if test "$no_cache" != 1; then
4281 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4282 fi
4283
4284 if test "$wxUSE_STD_IOSTREAM" = yes; then
4285 echo "$ac_t""yes" 1>&6
4286 else
4287 echo "$ac_t""no" 1>&6
4288 fi
4289
4290
4291 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4292 echo "configure:4293: checking for --enable-filesystem" >&5
4293 no_cache=0
4294 # Check whether --enable-filesystem or --disable-filesystem was given.
4295 if test "${enable_filesystem+set}" = set; then
4296 enableval="$enable_filesystem"
4297
4298 if test "$enableval" = yes; then
4299 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4300 else
4301 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4302 fi
4303
4304 else
4305
4306 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4307 if test "x$LINE" != x ; then
4308 eval "DEFAULT_$LINE"
4309 else
4310 no_cache=1
4311 fi
4312
4313 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4314
4315 fi
4316
4317
4318 eval "$ac_cv_use_filesystem"
4319 if test "$no_cache" != 1; then
4320 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4321 fi
4322
4323 if test "$wxUSE_FILESYSTEM" = yes; then
4324 echo "$ac_t""yes" 1>&6
4325 else
4326 echo "$ac_t""no" 1>&6
4327 fi
4328
4329
4330 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4331 echo "configure:4332: checking for --enable-fs_inet" >&5
4332 no_cache=0
4333 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4334 if test "${enable_fs_inet+set}" = set; then
4335 enableval="$enable_fs_inet"
4336
4337 if test "$enableval" = yes; then
4338 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4339 else
4340 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4341 fi
4342
4343 else
4344
4345 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4346 if test "x$LINE" != x ; then
4347 eval "DEFAULT_$LINE"
4348 else
4349 no_cache=1
4350 fi
4351
4352 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4353
4354 fi
4355
4356
4357 eval "$ac_cv_use_fs_inet"
4358 if test "$no_cache" != 1; then
4359 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4360 fi
4361
4362 if test "$wxUSE_FS_INET" = yes; then
4363 echo "$ac_t""yes" 1>&6
4364 else
4365 echo "$ac_t""no" 1>&6
4366 fi
4367
4368
4369 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4370 echo "configure:4371: checking for --enable-fs_zip" >&5
4371 no_cache=0
4372 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4373 if test "${enable_fs_zip+set}" = set; then
4374 enableval="$enable_fs_zip"
4375
4376 if test "$enableval" = yes; then
4377 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4378 else
4379 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4380 fi
4381
4382 else
4383
4384 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4385 if test "x$LINE" != x ; then
4386 eval "DEFAULT_$LINE"
4387 else
4388 no_cache=1
4389 fi
4390
4391 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4392
4393 fi
4394
4395
4396 eval "$ac_cv_use_fs_zip"
4397 if test "$no_cache" != 1; then
4398 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4399 fi
4400
4401 if test "$wxUSE_FS_ZIP" = yes; then
4402 echo "$ac_t""yes" 1>&6
4403 else
4404 echo "$ac_t""no" 1>&6
4405 fi
4406
4407
4408 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4409 echo "configure:4410: checking for --enable-zipstream" >&5
4410 no_cache=0
4411 # Check whether --enable-zipstream or --disable-zipstream was given.
4412 if test "${enable_zipstream+set}" = set; then
4413 enableval="$enable_zipstream"
4414
4415 if test "$enableval" = yes; then
4416 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4417 else
4418 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4419 fi
4420
4421 else
4422
4423 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4424 if test "x$LINE" != x ; then
4425 eval "DEFAULT_$LINE"
4426 else
4427 no_cache=1
4428 fi
4429
4430 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4431
4432 fi
4433
4434
4435 eval "$ac_cv_use_zipstream"
4436 if test "$no_cache" != 1; then
4437 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4438 fi
4439
4440 if test "$wxUSE_ZIPSTREAM" = yes; then
4441 echo "$ac_t""yes" 1>&6
4442 else
4443 echo "$ac_t""no" 1>&6
4444 fi
4445
4446
4447
4448 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4449 echo "configure:4450: checking for --enable-catch_segvs" >&5
4450 no_cache=0
4451 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4452 if test "${enable_catch_segvs+set}" = set; then
4453 enableval="$enable_catch_segvs"
4454
4455 if test "$enableval" = yes; then
4456 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4457 else
4458 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4459 fi
4460
4461 else
4462
4463 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4464 if test "x$LINE" != x ; then
4465 eval "DEFAULT_$LINE"
4466 else
4467 no_cache=1
4468 fi
4469
4470 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4471
4472 fi
4473
4474
4475 eval "$ac_cv_use_catch_segvs"
4476 if test "$no_cache" != 1; then
4477 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4478 fi
4479
4480 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4481 echo "$ac_t""yes" 1>&6
4482 else
4483 echo "$ac_t""no" 1>&6
4484 fi
4485
4486
4487 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4488 echo "configure:4489: checking for --enable-snglinst" >&5
4489 no_cache=0
4490 # Check whether --enable-snglinst or --disable-snglinst was given.
4491 if test "${enable_snglinst+set}" = set; then
4492 enableval="$enable_snglinst"
4493
4494 if test "$enableval" = yes; then
4495 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4496 else
4497 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4498 fi
4499
4500 else
4501
4502 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4503 if test "x$LINE" != x ; then
4504 eval "DEFAULT_$LINE"
4505 else
4506 no_cache=1
4507 fi
4508
4509 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4510
4511 fi
4512
4513
4514 eval "$ac_cv_use_snglinst"
4515 if test "$no_cache" != 1; then
4516 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4517 fi
4518
4519 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4520 echo "$ac_t""yes" 1>&6
4521 else
4522 echo "$ac_t""no" 1>&6
4523 fi
4524
4525
4526
4527 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4528 echo "configure:4529: checking for --enable-mimetype" >&5
4529 no_cache=0
4530 # Check whether --enable-mimetype or --disable-mimetype was given.
4531 if test "${enable_mimetype+set}" = set; then
4532 enableval="$enable_mimetype"
4533
4534 if test "$enableval" = yes; then
4535 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4536 else
4537 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4538 fi
4539
4540 else
4541
4542 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4543 if test "x$LINE" != x ; then
4544 eval "DEFAULT_$LINE"
4545 else
4546 no_cache=1
4547 fi
4548
4549 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4550
4551 fi
4552
4553
4554 eval "$ac_cv_use_mimetype"
4555 if test "$no_cache" != 1; then
4556 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4557 fi
4558
4559 if test "$wxUSE_MIMETYPE" = yes; then
4560 echo "$ac_t""yes" 1>&6
4561 else
4562 echo "$ac_t""no" 1>&6
4563 fi
4564
4565
4566 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4567 echo "configure:4568: checking for --enable-system_options" >&5
4568 no_cache=0
4569 # Check whether --enable-system_options or --disable-system_options was given.
4570 if test "${enable_system_options+set}" = set; then
4571 enableval="$enable_system_options"
4572
4573 if test "$enableval" = yes; then
4574 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4575 else
4576 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4577 fi
4578
4579 else
4580
4581 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4582 if test "x$LINE" != x ; then
4583 eval "DEFAULT_$LINE"
4584 else
4585 no_cache=1
4586 fi
4587
4588 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4589
4590 fi
4591
4592
4593 eval "$ac_cv_use_system_options"
4594 if test "$no_cache" != 1; then
4595 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4596 fi
4597
4598 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4599 echo "$ac_t""yes" 1>&6
4600 else
4601 echo "$ac_t""no" 1>&6
4602 fi
4603
4604
4605
4606 echo $ac_n "checking for --enable-url""... $ac_c" 1>&6
4607 echo "configure:4608: checking for --enable-url" >&5
4608 no_cache=0
4609 # Check whether --enable-url or --disable-url was given.
4610 if test "${enable_url+set}" = set; then
4611 enableval="$enable_url"
4612
4613 if test "$enableval" = yes; then
4614 ac_cv_use_url='wxUSE_URL=yes'
4615 else
4616 ac_cv_use_url='wxUSE_URL=no'
4617 fi
4618
4619 else
4620
4621 LINE=`grep "wxUSE_URL" ${wx_arg_cache_file}`
4622 if test "x$LINE" != x ; then
4623 eval "DEFAULT_$LINE"
4624 else
4625 no_cache=1
4626 fi
4627
4628 ac_cv_use_url='wxUSE_URL='$DEFAULT_wxUSE_URL
4629
4630 fi
4631
4632
4633 eval "$ac_cv_use_url"
4634 if test "$no_cache" != 1; then
4635 echo $ac_cv_use_url >> ${wx_arg_cache_file}.tmp
4636 fi
4637
4638 if test "$wxUSE_URL" = yes; then
4639 echo "$ac_t""yes" 1>&6
4640 else
4641 echo "$ac_t""no" 1>&6
4642 fi
4643
4644
4645 echo $ac_n "checking for --enable-protocol""... $ac_c" 1>&6
4646 echo "configure:4647: checking for --enable-protocol" >&5
4647 no_cache=0
4648 # Check whether --enable-protocol or --disable-protocol was given.
4649 if test "${enable_protocol+set}" = set; then
4650 enableval="$enable_protocol"
4651
4652 if test "$enableval" = yes; then
4653 ac_cv_use_protocol='wxUSE_PROTOCOL=yes'
4654 else
4655 ac_cv_use_protocol='wxUSE_PROTOCOL=no'
4656 fi
4657
4658 else
4659
4660 LINE=`grep "wxUSE_PROTOCOL" ${wx_arg_cache_file}`
4661 if test "x$LINE" != x ; then
4662 eval "DEFAULT_$LINE"
4663 else
4664 no_cache=1
4665 fi
4666
4667 ac_cv_use_protocol='wxUSE_PROTOCOL='$DEFAULT_wxUSE_PROTOCOL
4668
4669 fi
4670
4671
4672 eval "$ac_cv_use_protocol"
4673 if test "$no_cache" != 1; then
4674 echo $ac_cv_use_protocol >> ${wx_arg_cache_file}.tmp
4675 fi
4676
4677 if test "$wxUSE_PROTOCOL" = yes; then
4678 echo "$ac_t""yes" 1>&6
4679 else
4680 echo "$ac_t""no" 1>&6
4681 fi
4682
4683
4684 echo $ac_n "checking for --enable-protocol_http""... $ac_c" 1>&6
4685 echo "configure:4686: checking for --enable-protocol_http" >&5
4686 no_cache=0
4687 # Check whether --enable-protocol_http or --disable-protocol_http was given.
4688 if test "${enable_protocol_http+set}" = set; then
4689 enableval="$enable_protocol_http"
4690
4691 if test "$enableval" = yes; then
4692 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
4693 else
4694 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
4695 fi
4696
4697 else
4698
4699 LINE=`grep "wxUSE_PROTOCOL_HTTP" ${wx_arg_cache_file}`
4700 if test "x$LINE" != x ; then
4701 eval "DEFAULT_$LINE"
4702 else
4703 no_cache=1
4704 fi
4705
4706 ac_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP='$DEFAULT_wxUSE_PROTOCOL_HTTP
4707
4708 fi
4709
4710
4711 eval "$ac_cv_use_protocol_http"
4712 if test "$no_cache" != 1; then
4713 echo $ac_cv_use_protocol_http >> ${wx_arg_cache_file}.tmp
4714 fi
4715
4716 if test "$wxUSE_PROTOCOL_HTTP" = yes; then
4717 echo "$ac_t""yes" 1>&6
4718 else
4719 echo "$ac_t""no" 1>&6
4720 fi
4721
4722
4723 echo $ac_n "checking for --enable-protocol_ftp""... $ac_c" 1>&6
4724 echo "configure:4725: checking for --enable-protocol_ftp" >&5
4725 no_cache=0
4726 # Check whether --enable-protocol_ftp or --disable-protocol_ftp was given.
4727 if test "${enable_protocol_ftp+set}" = set; then
4728 enableval="$enable_protocol_ftp"
4729
4730 if test "$enableval" = yes; then
4731 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
4732 else
4733 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
4734 fi
4735
4736 else
4737
4738 LINE=`grep "wxUSE_PROTOCOL_FTP" ${wx_arg_cache_file}`
4739 if test "x$LINE" != x ; then
4740 eval "DEFAULT_$LINE"
4741 else
4742 no_cache=1
4743 fi
4744
4745 ac_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP='$DEFAULT_wxUSE_PROTOCOL_FTP
4746
4747 fi
4748
4749
4750 eval "$ac_cv_use_protocol_ftp"
4751 if test "$no_cache" != 1; then
4752 echo $ac_cv_use_protocol_ftp >> ${wx_arg_cache_file}.tmp
4753 fi
4754
4755 if test "$wxUSE_PROTOCOL_FTP" = yes; then
4756 echo "$ac_t""yes" 1>&6
4757 else
4758 echo "$ac_t""no" 1>&6
4759 fi
4760
4761
4762 echo $ac_n "checking for --enable-protocol_file""... $ac_c" 1>&6
4763 echo "configure:4764: checking for --enable-protocol_file" >&5
4764 no_cache=0
4765 # Check whether --enable-protocol_file or --disable-protocol_file was given.
4766 if test "${enable_protocol_file+set}" = set; then
4767 enableval="$enable_protocol_file"
4768
4769 if test "$enableval" = yes; then
4770 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
4771 else
4772 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
4773 fi
4774
4775 else
4776
4777 LINE=`grep "wxUSE_PROTOCOL_FILE" ${wx_arg_cache_file}`
4778 if test "x$LINE" != x ; then
4779 eval "DEFAULT_$LINE"
4780 else
4781 no_cache=1
4782 fi
4783
4784 ac_cv_use_protocol_file='wxUSE_PROTOCOL_FILE='$DEFAULT_wxUSE_PROTOCOL_FILE
4785
4786 fi
4787
4788
4789 eval "$ac_cv_use_protocol_file"
4790 if test "$no_cache" != 1; then
4791 echo $ac_cv_use_protocol_file >> ${wx_arg_cache_file}.tmp
4792 fi
4793
4794 if test "$wxUSE_PROTOCOL_FILE" = yes; then
4795 echo "$ac_t""yes" 1>&6
4796 else
4797 echo "$ac_t""no" 1>&6
4798 fi
4799
4800
4801
4802
4803
4804 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4805 echo "configure:4806: checking for --enable-threads" >&5
4806 no_cache=0
4807 # Check whether --enable-threads or --disable-threads was given.
4808 if test "${enable_threads+set}" = set; then
4809 enableval="$enable_threads"
4810
4811 if test "$enableval" = yes; then
4812 ac_cv_use_threads='wxUSE_THREADS=yes'
4813 else
4814 ac_cv_use_threads='wxUSE_THREADS=no'
4815 fi
4816
4817 else
4818
4819 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4820 if test "x$LINE" != x ; then
4821 eval "DEFAULT_$LINE"
4822 else
4823 no_cache=1
4824 fi
4825
4826 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4827
4828 fi
4829
4830
4831 eval "$ac_cv_use_threads"
4832 if test "$no_cache" != 1; then
4833 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4834 fi
4835
4836 if test "$wxUSE_THREADS" = yes; then
4837 echo "$ac_t""yes" 1>&6
4838 else
4839 echo "$ac_t""no" 1>&6
4840 fi
4841
4842
4843 if test "$wxUSE_GUI" = "yes"; then
4844
4845
4846
4847 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4848 echo "configure:4849: checking for --enable-docview" >&5
4849 no_cache=0
4850 # Check whether --enable-docview or --disable-docview was given.
4851 if test "${enable_docview+set}" = set; then
4852 enableval="$enable_docview"
4853
4854 if test "$enableval" = yes; then
4855 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4856 else
4857 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4858 fi
4859
4860 else
4861
4862 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4863 if test "x$LINE" != x ; then
4864 eval "DEFAULT_$LINE"
4865 else
4866 no_cache=1
4867 fi
4868
4869 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4870
4871 fi
4872
4873
4874 eval "$ac_cv_use_docview"
4875 if test "$no_cache" != 1; then
4876 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4877 fi
4878
4879 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4880 echo "$ac_t""yes" 1>&6
4881 else
4882 echo "$ac_t""no" 1>&6
4883 fi
4884
4885
4886 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4887 echo "configure:4888: checking for --enable-help" >&5
4888 no_cache=0
4889 # Check whether --enable-help or --disable-help was given.
4890 if test "${enable_help+set}" = set; then
4891 enableval="$enable_help"
4892
4893 if test "$enableval" = yes; then
4894 ac_cv_use_help='wxUSE_HELP=yes'
4895 else
4896 ac_cv_use_help='wxUSE_HELP=no'
4897 fi
4898
4899 else
4900
4901 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4902 if test "x$LINE" != x ; then
4903 eval "DEFAULT_$LINE"
4904 else
4905 no_cache=1
4906 fi
4907
4908 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4909
4910 fi
4911
4912
4913 eval "$ac_cv_use_help"
4914 if test "$no_cache" != 1; then
4915 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4916 fi
4917
4918 if test "$wxUSE_HELP" = yes; then
4919 echo "$ac_t""yes" 1>&6
4920 else
4921 echo "$ac_t""no" 1>&6
4922 fi
4923
4924
4925 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4926 echo "configure:4927: checking for --enable-mshtmlhelp" >&5
4927 no_cache=0
4928 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4929 if test "${enable_mshtmlhelp+set}" = set; then
4930 enableval="$enable_mshtmlhelp"
4931
4932 if test "$enableval" = yes; then
4933 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4934 else
4935 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4936 fi
4937
4938 else
4939
4940 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4948
4949 fi
4950
4951
4952 eval "$ac_cv_use_mshtmlhelp"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_MS_HTML_HELP" = yes; then
4958 echo "$ac_t""yes" 1>&6
4959 else
4960 echo "$ac_t""no" 1>&6
4961 fi
4962
4963
4964 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4965 echo "configure:4966: checking for --enable-html" >&5
4966 no_cache=0
4967 # Check whether --enable-html or --disable-html was given.
4968 if test "${enable_html+set}" = set; then
4969 enableval="$enable_html"
4970
4971 if test "$enableval" = yes; then
4972 ac_cv_use_html='wxUSE_HTML=yes'
4973 else
4974 ac_cv_use_html='wxUSE_HTML=no'
4975 fi
4976
4977 else
4978
4979 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4980 if test "x$LINE" != x ; then
4981 eval "DEFAULT_$LINE"
4982 else
4983 no_cache=1
4984 fi
4985
4986 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4987
4988 fi
4989
4990
4991 eval "$ac_cv_use_html"
4992 if test "$no_cache" != 1; then
4993 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4994 fi
4995
4996 if test "$wxUSE_HTML" = yes; then
4997 echo "$ac_t""yes" 1>&6
4998 else
4999 echo "$ac_t""no" 1>&6
5000 fi
5001
5002
5003 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
5004 echo "configure:5005: checking for --enable-htmlhelp" >&5
5005 no_cache=0
5006 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
5007 if test "${enable_htmlhelp+set}" = set; then
5008 enableval="$enable_htmlhelp"
5009
5010 if test "$enableval" = yes; then
5011 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
5012 else
5013 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
5014 fi
5015
5016 else
5017
5018 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
5019 if test "x$LINE" != x ; then
5020 eval "DEFAULT_$LINE"
5021 else
5022 no_cache=1
5023 fi
5024
5025 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
5026
5027 fi
5028
5029
5030 eval "$ac_cv_use_htmlhelp"
5031 if test "$no_cache" != 1; then
5032 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
5033 fi
5034
5035 if test "$wxUSE_WXHTML_HELP" = yes; then
5036 echo "$ac_t""yes" 1>&6
5037 else
5038 echo "$ac_t""no" 1>&6
5039 fi
5040
5041
5042 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
5043 echo "configure:5044: checking for --enable-constraints" >&5
5044 no_cache=0
5045 # Check whether --enable-constraints or --disable-constraints was given.
5046 if test "${enable_constraints+set}" = set; then
5047 enableval="$enable_constraints"
5048
5049 if test "$enableval" = yes; then
5050 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
5051 else
5052 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
5053 fi
5054
5055 else
5056
5057 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
5058 if test "x$LINE" != x ; then
5059 eval "DEFAULT_$LINE"
5060 else
5061 no_cache=1
5062 fi
5063
5064 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
5065
5066 fi
5067
5068
5069 eval "$ac_cv_use_constraints"
5070 if test "$no_cache" != 1; then
5071 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
5072 fi
5073
5074 if test "$wxUSE_CONSTRAINTS" = yes; then
5075 echo "$ac_t""yes" 1>&6
5076 else
5077 echo "$ac_t""no" 1>&6
5078 fi
5079
5080
5081 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
5082 echo "configure:5083: checking for --enable-printarch" >&5
5083 no_cache=0
5084 # Check whether --enable-printarch or --disable-printarch was given.
5085 if test "${enable_printarch+set}" = set; then
5086 enableval="$enable_printarch"
5087
5088 if test "$enableval" = yes; then
5089 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
5090 else
5091 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
5092 fi
5093
5094 else
5095
5096 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
5097 if test "x$LINE" != x ; then
5098 eval "DEFAULT_$LINE"
5099 else
5100 no_cache=1
5101 fi
5102
5103 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
5104
5105 fi
5106
5107
5108 eval "$ac_cv_use_printarch"
5109 if test "$no_cache" != 1; then
5110 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
5111 fi
5112
5113 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
5114 echo "$ac_t""yes" 1>&6
5115 else
5116 echo "$ac_t""no" 1>&6
5117 fi
5118
5119
5120 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
5121 echo "configure:5122: checking for --enable-mdi" >&5
5122 no_cache=0
5123 # Check whether --enable-mdi or --disable-mdi was given.
5124 if test "${enable_mdi+set}" = set; then
5125 enableval="$enable_mdi"
5126
5127 if test "$enableval" = yes; then
5128 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
5129 else
5130 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
5131 fi
5132
5133 else
5134
5135 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
5136 if test "x$LINE" != x ; then
5137 eval "DEFAULT_$LINE"
5138 else
5139 no_cache=1
5140 fi
5141
5142 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
5143
5144 fi
5145
5146
5147 eval "$ac_cv_use_mdi"
5148 if test "$no_cache" != 1; then
5149 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
5150 fi
5151
5152 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
5153 echo "$ac_t""yes" 1>&6
5154 else
5155 echo "$ac_t""no" 1>&6
5156 fi
5157
5158
5159 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
5160 echo "configure:5161: checking for --enable-loggui" >&5
5161 no_cache=0
5162 # Check whether --enable-loggui or --disable-loggui was given.
5163 if test "${enable_loggui+set}" = set; then
5164 enableval="$enable_loggui"
5165
5166 if test "$enableval" = yes; then
5167 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
5168 else
5169 ac_cv_use_loggui='wxUSE_LOGGUI=no'
5170 fi
5171
5172 else
5173
5174 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
5175 if test "x$LINE" != x ; then
5176 eval "DEFAULT_$LINE"
5177 else
5178 no_cache=1
5179 fi
5180
5181 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
5182
5183 fi
5184
5185
5186 eval "$ac_cv_use_loggui"
5187 if test "$no_cache" != 1; then
5188 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
5189 fi
5190
5191 if test "$wxUSE_LOGGUI" = yes; then
5192 echo "$ac_t""yes" 1>&6
5193 else
5194 echo "$ac_t""no" 1>&6
5195 fi
5196
5197
5198 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
5199 echo "configure:5200: checking for --enable-logwin" >&5
5200 no_cache=0
5201 # Check whether --enable-logwin or --disable-logwin was given.
5202 if test "${enable_logwin+set}" = set; then
5203 enableval="$enable_logwin"
5204
5205 if test "$enableval" = yes; then
5206 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
5207 else
5208 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
5209 fi
5210
5211 else
5212
5213 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
5214 if test "x$LINE" != x ; then
5215 eval "DEFAULT_$LINE"
5216 else
5217 no_cache=1
5218 fi
5219
5220 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
5221
5222 fi
5223
5224
5225 eval "$ac_cv_use_logwin"
5226 if test "$no_cache" != 1; then
5227 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
5228 fi
5229
5230 if test "$wxUSE_LOGWINDOW" = yes; then
5231 echo "$ac_t""yes" 1>&6
5232 else
5233 echo "$ac_t""no" 1>&6
5234 fi
5235
5236
5237 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
5238 echo "configure:5239: checking for --enable-logdialog" >&5
5239 no_cache=0
5240 # Check whether --enable-logdialog or --disable-logdialog was given.
5241 if test "${enable_logdialog+set}" = set; then
5242 enableval="$enable_logdialog"
5243
5244 if test "$enableval" = yes; then
5245 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
5246 else
5247 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
5248 fi
5249
5250 else
5251
5252 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
5253 if test "x$LINE" != x ; then
5254 eval "DEFAULT_$LINE"
5255 else
5256 no_cache=1
5257 fi
5258
5259 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
5260
5261 fi
5262
5263
5264 eval "$ac_cv_use_logdialog"
5265 if test "$no_cache" != 1; then
5266 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
5267 fi
5268
5269 if test "$wxUSE_LOGDIALOG" = yes; then
5270 echo "$ac_t""yes" 1>&6
5271 else
5272 echo "$ac_t""no" 1>&6
5273 fi
5274
5275
5276
5277 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
5278 echo "configure:5279: checking for --enable-postscript" >&5
5279 no_cache=0
5280 # Check whether --enable-postscript or --disable-postscript was given.
5281 if test "${enable_postscript+set}" = set; then
5282 enableval="$enable_postscript"
5283
5284 if test "$enableval" = yes; then
5285 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
5286 else
5287 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
5288 fi
5289
5290 else
5291
5292 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
5293 if test "x$LINE" != x ; then
5294 eval "DEFAULT_$LINE"
5295 else
5296 no_cache=1
5297 fi
5298
5299 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
5300
5301 fi
5302
5303
5304 eval "$ac_cv_use_postscript"
5305 if test "$no_cache" != 1; then
5306 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
5307 fi
5308
5309 if test "$wxUSE_POSTSCRIPT" = yes; then
5310 echo "$ac_t""yes" 1>&6
5311 else
5312 echo "$ac_t""no" 1>&6
5313 fi
5314
5315
5316
5317
5318
5319 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
5320 echo "configure:5321: checking for --enable-prologio" >&5
5321 no_cache=0
5322 # Check whether --enable-prologio or --disable-prologio was given.
5323 if test "${enable_prologio+set}" = set; then
5324 enableval="$enable_prologio"
5325
5326 if test "$enableval" = yes; then
5327 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
5328 else
5329 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
5330 fi
5331
5332 else
5333
5334 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
5335 if test "x$LINE" != x ; then
5336 eval "DEFAULT_$LINE"
5337 else
5338 no_cache=1
5339 fi
5340
5341 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
5342
5343 fi
5344
5345
5346 eval "$ac_cv_use_prologio"
5347 if test "$no_cache" != 1; then
5348 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
5349 fi
5350
5351 if test "$wxUSE_PROLOGIO" = yes; then
5352 echo "$ac_t""yes" 1>&6
5353 else
5354 echo "$ac_t""no" 1>&6
5355 fi
5356
5357
5358 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
5359 echo "configure:5360: checking for --enable-resources" >&5
5360 no_cache=0
5361 # Check whether --enable-resources or --disable-resources was given.
5362 if test "${enable_resources+set}" = set; then
5363 enableval="$enable_resources"
5364
5365 if test "$enableval" = yes; then
5366 ac_cv_use_resources='wxUSE_RESOURCES=yes'
5367 else
5368 ac_cv_use_resources='wxUSE_RESOURCES=no'
5369 fi
5370
5371 else
5372
5373 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
5374 if test "x$LINE" != x ; then
5375 eval "DEFAULT_$LINE"
5376 else
5377 no_cache=1
5378 fi
5379
5380 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
5381
5382 fi
5383
5384
5385 eval "$ac_cv_use_resources"
5386 if test "$no_cache" != 1; then
5387 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
5388 fi
5389
5390 if test "$wxUSE_RESOURCES" = yes; then
5391 echo "$ac_t""yes" 1>&6
5392 else
5393 echo "$ac_t""no" 1>&6
5394 fi
5395
5396
5397
5398 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5399 echo "configure:5400: checking for --enable-xresources" >&5
5400 no_cache=0
5401 # Check whether --enable-xresources or --disable-xresources was given.
5402 if test "${enable_xresources+set}" = set; then
5403 enableval="$enable_xresources"
5404
5405 if test "$enableval" = yes; then
5406 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5407 else
5408 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5409 fi
5410
5411 else
5412
5413 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5414 if test "x$LINE" != x ; then
5415 eval "DEFAULT_$LINE"
5416 else
5417 no_cache=1
5418 fi
5419
5420 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5421
5422 fi
5423
5424
5425 eval "$ac_cv_use_xresources"
5426 if test "$no_cache" != 1; then
5427 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5428 fi
5429
5430 if test "$wxUSE_X_RESOURCES" = yes; then
5431 echo "$ac_t""yes" 1>&6
5432 else
5433 echo "$ac_t""no" 1>&6
5434 fi
5435
5436
5437
5438
5439 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5440 echo "configure:5441: checking for --enable-clipboard" >&5
5441 no_cache=0
5442 # Check whether --enable-clipboard or --disable-clipboard was given.
5443 if test "${enable_clipboard+set}" = set; then
5444 enableval="$enable_clipboard"
5445
5446 if test "$enableval" = yes; then
5447 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5448 else
5449 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5450 fi
5451
5452 else
5453
5454 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5455 if test "x$LINE" != x ; then
5456 eval "DEFAULT_$LINE"
5457 else
5458 no_cache=1
5459 fi
5460
5461 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5462
5463 fi
5464
5465
5466 eval "$ac_cv_use_clipboard"
5467 if test "$no_cache" != 1; then
5468 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5469 fi
5470
5471 if test "$wxUSE_CLIPBOARD" = yes; then
5472 echo "$ac_t""yes" 1>&6
5473 else
5474 echo "$ac_t""no" 1>&6
5475 fi
5476
5477
5478 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5479 echo "configure:5480: checking for --enable-dnd" >&5
5480 no_cache=0
5481 # Check whether --enable-dnd or --disable-dnd was given.
5482 if test "${enable_dnd+set}" = set; then
5483 enableval="$enable_dnd"
5484
5485 if test "$enableval" = yes; then
5486 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5487 else
5488 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5489 fi
5490
5491 else
5492
5493 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5494 if test "x$LINE" != x ; then
5495 eval "DEFAULT_$LINE"
5496 else
5497 no_cache=1
5498 fi
5499
5500 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5501
5502 fi
5503
5504
5505 eval "$ac_cv_use_dnd"
5506 if test "$no_cache" != 1; then
5507 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5508 fi
5509
5510 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5511 echo "$ac_t""yes" 1>&6
5512 else
5513 echo "$ac_t""no" 1>&6
5514 fi
5515
5516
5517 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5518 echo "configure:5519: checking for --enable-metafile" >&5
5519 no_cache=0
5520 # Check whether --enable-metafile or --disable-metafile was given.
5521 if test "${enable_metafile+set}" = set; then
5522 enableval="$enable_metafile"
5523
5524 if test "$enableval" = yes; then
5525 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5526 else
5527 ac_cv_use_metafile='wxUSE_METAFILE=no'
5528 fi
5529
5530 else
5531
5532 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5533 if test "x$LINE" != x ; then
5534 eval "DEFAULT_$LINE"
5535 else
5536 no_cache=1
5537 fi
5538
5539 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5540
5541 fi
5542
5543
5544 eval "$ac_cv_use_metafile"
5545 if test "$no_cache" != 1; then
5546 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5547 fi
5548
5549 if test "$wxUSE_METAFILE" = yes; then
5550 echo "$ac_t""yes" 1>&6
5551 else
5552 echo "$ac_t""no" 1>&6
5553 fi
5554
5555
5556
5557 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5558 echo "configure:5559: checking for --enable-treelayout" >&5
5559 no_cache=0
5560 # Check whether --enable-treelayout or --disable-treelayout was given.
5561 if test "${enable_treelayout+set}" = set; then
5562 enableval="$enable_treelayout"
5563
5564 if test "$enableval" = yes; then
5565 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5566 else
5567 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5568 fi
5569
5570 else
5571
5572 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5573 if test "x$LINE" != x ; then
5574 eval "DEFAULT_$LINE"
5575 else
5576 no_cache=1
5577 fi
5578
5579 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5580
5581 fi
5582
5583
5584 eval "$ac_cv_use_treelayout"
5585 if test "$no_cache" != 1; then
5586 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5587 fi
5588
5589 if test "$wxUSE_TREELAYOUT" = yes; then
5590 echo "$ac_t""yes" 1>&6
5591 else
5592 echo "$ac_t""no" 1>&6
5593 fi
5594
5595
5596
5597
5598 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5599 echo "configure:5600: checking for --enable-controls" >&5
5600 no_cache=0
5601 # Check whether --enable-controls or --disable-controls was given.
5602 if test "${enable_controls+set}" = set; then
5603 enableval="$enable_controls"
5604
5605 if test "$enableval" = yes; then
5606 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5607 else
5608 ac_cv_use_controls='wxUSE_CONTROLS=no'
5609 fi
5610
5611 else
5612
5613 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5614 if test "x$LINE" != x ; then
5615 eval "DEFAULT_$LINE"
5616 else
5617 no_cache=1
5618 fi
5619
5620 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5621
5622 fi
5623
5624
5625 eval "$ac_cv_use_controls"
5626 if test "$no_cache" != 1; then
5627 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5628 fi
5629
5630 if test "$wxUSE_CONTROLS" = yes; then
5631 echo "$ac_t""yes" 1>&6
5632 else
5633 echo "$ac_t""no" 1>&6
5634 fi
5635
5636
5637 if test "$wxUSE_CONTROLS" = "yes"; then
5638 DEFAULT_wxUSE_ACCEL=yes
5639 DEFAULT_wxUSE_BMPBUTTON=yes
5640 DEFAULT_wxUSE_BUTTON=yes
5641 DEFAULT_wxUSE_CALCTRL=no
5642 DEFAULT_wxUSE_CARET=yes
5643 DEFAULT_wxUSE_COMBOBOX=yes
5644 DEFAULT_wxUSE_CHECKBOX=yes
5645 DEFAULT_wxUSE_CHECKLISTBOX=yes
5646 DEFAULT_wxUSE_CHOICE=yes
5647 DEFAULT_wxUSE_GAUGE=yes
5648 DEFAULT_wxUSE_GRID=yes
5649 DEFAULT_wxUSE_NEW_GRID=yes
5650 DEFAULT_wxUSE_IMAGLIST=yes
5651 DEFAULT_wxUSE_LISTBOX=yes
5652 DEFAULT_wxUSE_LISTCTRL=yes
5653 DEFAULT_wxUSE_NOTEBOOK=yes
5654 DEFAULT_wxUSE_PROPSHEET=yes
5655 DEFAULT_wxUSE_RADIOBOX=yes
5656 DEFAULT_wxUSE_RADIOBTN=yes
5657 DEFAULT_wxUSE_SASH=yes
5658 DEFAULT_wxUSE_SCROLLBAR=yes
5659 DEFAULT_wxUSE_SLIDER=yes
5660 DEFAULT_wxUSE_SPINBTN=yes
5661 DEFAULT_wxUSE_SPINCTRL=yes
5662 DEFAULT_wxUSE_SPLITTER=yes
5663 DEFAULT_wxUSE_STATBMP=yes
5664 DEFAULT_wxUSE_STATBOX=yes
5665 DEFAULT_wxUSE_STATLINE=yes
5666 DEFAULT_wxUSE_STATUSBAR=yes
5667 DEFAULT_wxUSE_TAB_DIALOG=yes
5668 DEFAULT_wxUSE_TOGGLEBTN=yes
5669 DEFAULT_wxUSE_TOOLBAR=yes
5670 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5671 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5672 DEFAULT_wxUSE_TOOLTIPS=yes
5673 DEFAULT_wxUSE_TREECTRL=yes
5674 DEFAULT_wxUSE_POPUPWIN=yes
5675 DEFAULT_wxUSE_TIPWINDOW=yes
5676 elif test "$wxUSE_CONTROLS" = "no"; then
5677 DEFAULT_wxUSE_ACCEL=no
5678 DEFAULT_wxUSE_BMPBUTTON=no
5679 DEFAULT_wxUSE_BUTTON=no
5680 DEFAULT_wxUSE_CALCTRL=no
5681 DEFAULT_wxUSE_CARET=no
5682 DEFAULT_wxUSE_COMBOBOX=no
5683 DEFAULT_wxUSE_CHECKBOX=no
5684 DEFAULT_wxUSE_CHECKLISTBOX=no
5685 DEFAULT_wxUSE_CHOICE=no
5686 DEFAULT_wxUSE_GAUGE=no
5687 DEFAULT_wxUSE_GRID=no
5688 DEFAULT_wxUSE_NEW_GRID=no
5689 DEFAULT_wxUSE_IMAGLIST=no
5690 DEFAULT_wxUSE_LISTBOX=no
5691 DEFAULT_wxUSE_LISTCTRL=no
5692 DEFAULT_wxUSE_NOTEBOOK=no
5693 DEFAULT_wxUSE_PROPSHEET=no
5694 DEFAULT_wxUSE_RADIOBOX=no
5695 DEFAULT_wxUSE_RADIOBTN=no
5696 DEFAULT_wxUSE_SASH=no
5697 DEFAULT_wxUSE_SCROLLBAR=no
5698 DEFAULT_wxUSE_SLIDER=no
5699 DEFAULT_wxUSE_SPINBTN=no
5700 DEFAULT_wxUSE_SPINCTRL=no
5701 DEFAULT_wxUSE_SPLITTER=no
5702 DEFAULT_wxUSE_STATBMP=no
5703 DEFAULT_wxUSE_STATBOX=no
5704 DEFAULT_wxUSE_STATLINE=no
5705 DEFAULT_wxUSE_STATUSBAR=no
5706 DEFAULT_wxUSE_TAB_DIALOG=no
5707 DEFAULT_wxUSE_TOGGLEBTN=no
5708 DEFAULT_wxUSE_TOOLBAR=no
5709 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5710 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5711 DEFAULT_wxUSE_TOOLTIPS=no
5712 DEFAULT_wxUSE_TREECTRL=no
5713 DEFAULT_wxUSE_POPUPWIN=no
5714 DEFAULT_wxUSE_TIPWINDOW=no
5715 fi
5716
5717
5718 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5719 echo "configure:5720: checking for --enable-accel" >&5
5720 no_cache=0
5721 # Check whether --enable-accel or --disable-accel was given.
5722 if test "${enable_accel+set}" = set; then
5723 enableval="$enable_accel"
5724
5725 if test "$enableval" = yes; then
5726 ac_cv_use_accel='wxUSE_ACCEL=yes'
5727 else
5728 ac_cv_use_accel='wxUSE_ACCEL=no'
5729 fi
5730
5731 else
5732
5733 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5734 if test "x$LINE" != x ; then
5735 eval "DEFAULT_$LINE"
5736 else
5737 no_cache=1
5738 fi
5739
5740 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5741
5742 fi
5743
5744
5745 eval "$ac_cv_use_accel"
5746 if test "$no_cache" != 1; then
5747 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5748 fi
5749
5750 if test "$wxUSE_ACCEL" = yes; then
5751 echo "$ac_t""yes" 1>&6
5752 else
5753 echo "$ac_t""no" 1>&6
5754 fi
5755
5756
5757 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5758 echo "configure:5759: checking for --enable-button" >&5
5759 no_cache=0
5760 # Check whether --enable-button or --disable-button was given.
5761 if test "${enable_button+set}" = set; then
5762 enableval="$enable_button"
5763
5764 if test "$enableval" = yes; then
5765 ac_cv_use_button='wxUSE_BUTTON=yes'
5766 else
5767 ac_cv_use_button='wxUSE_BUTTON=no'
5768 fi
5769
5770 else
5771
5772 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5773 if test "x$LINE" != x ; then
5774 eval "DEFAULT_$LINE"
5775 else
5776 no_cache=1
5777 fi
5778
5779 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5780
5781 fi
5782
5783
5784 eval "$ac_cv_use_button"
5785 if test "$no_cache" != 1; then
5786 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5787 fi
5788
5789 if test "$wxUSE_BUTTON" = yes; then
5790 echo "$ac_t""yes" 1>&6
5791 else
5792 echo "$ac_t""no" 1>&6
5793 fi
5794
5795
5796 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5797 echo "configure:5798: checking for --enable-bmpbutton" >&5
5798 no_cache=0
5799 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5800 if test "${enable_bmpbutton+set}" = set; then
5801 enableval="$enable_bmpbutton"
5802
5803 if test "$enableval" = yes; then
5804 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5805 else
5806 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5807 fi
5808
5809 else
5810
5811 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5812 if test "x$LINE" != x ; then
5813 eval "DEFAULT_$LINE"
5814 else
5815 no_cache=1
5816 fi
5817
5818 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5819
5820 fi
5821
5822
5823 eval "$ac_cv_use_bmpbutton"
5824 if test "$no_cache" != 1; then
5825 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5826 fi
5827
5828 if test "$wxUSE_BMPBUTTON" = yes; then
5829 echo "$ac_t""yes" 1>&6
5830 else
5831 echo "$ac_t""no" 1>&6
5832 fi
5833
5834
5835 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5836 echo "configure:5837: checking for --enable-calendar" >&5
5837 no_cache=0
5838 # Check whether --enable-calendar or --disable-calendar was given.
5839 if test "${enable_calendar+set}" = set; then
5840 enableval="$enable_calendar"
5841
5842 if test "$enableval" = yes; then
5843 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5844 else
5845 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5846 fi
5847
5848 else
5849
5850 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5851 if test "x$LINE" != x ; then
5852 eval "DEFAULT_$LINE"
5853 else
5854 no_cache=1
5855 fi
5856
5857 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5858
5859 fi
5860
5861
5862 eval "$ac_cv_use_calendar"
5863 if test "$no_cache" != 1; then
5864 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5865 fi
5866
5867 if test "$wxUSE_CALCTRL" = yes; then
5868 echo "$ac_t""yes" 1>&6
5869 else
5870 echo "$ac_t""no" 1>&6
5871 fi
5872
5873
5874 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5875 echo "configure:5876: checking for --enable-caret" >&5
5876 no_cache=0
5877 # Check whether --enable-caret or --disable-caret was given.
5878 if test "${enable_caret+set}" = set; then
5879 enableval="$enable_caret"
5880
5881 if test "$enableval" = yes; then
5882 ac_cv_use_caret='wxUSE_CARET=yes'
5883 else
5884 ac_cv_use_caret='wxUSE_CARET=no'
5885 fi
5886
5887 else
5888
5889 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5890 if test "x$LINE" != x ; then
5891 eval "DEFAULT_$LINE"
5892 else
5893 no_cache=1
5894 fi
5895
5896 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5897
5898 fi
5899
5900
5901 eval "$ac_cv_use_caret"
5902 if test "$no_cache" != 1; then
5903 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5904 fi
5905
5906 if test "$wxUSE_CARET" = yes; then
5907 echo "$ac_t""yes" 1>&6
5908 else
5909 echo "$ac_t""no" 1>&6
5910 fi
5911
5912
5913 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5914 echo "configure:5915: checking for --enable-checkbox" >&5
5915 no_cache=0
5916 # Check whether --enable-checkbox or --disable-checkbox was given.
5917 if test "${enable_checkbox+set}" = set; then
5918 enableval="$enable_checkbox"
5919
5920 if test "$enableval" = yes; then
5921 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5922 else
5923 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5924 fi
5925
5926 else
5927
5928 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5929 if test "x$LINE" != x ; then
5930 eval "DEFAULT_$LINE"
5931 else
5932 no_cache=1
5933 fi
5934
5935 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5936
5937 fi
5938
5939
5940 eval "$ac_cv_use_checkbox"
5941 if test "$no_cache" != 1; then
5942 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5943 fi
5944
5945 if test "$wxUSE_CHECKBOX" = yes; then
5946 echo "$ac_t""yes" 1>&6
5947 else
5948 echo "$ac_t""no" 1>&6
5949 fi
5950
5951
5952 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5953 echo "configure:5954: checking for --enable-checklst" >&5
5954 no_cache=0
5955 # Check whether --enable-checklst or --disable-checklst was given.
5956 if test "${enable_checklst+set}" = set; then
5957 enableval="$enable_checklst"
5958
5959 if test "$enableval" = yes; then
5960 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5961 else
5962 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5963 fi
5964
5965 else
5966
5967 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5968 if test "x$LINE" != x ; then
5969 eval "DEFAULT_$LINE"
5970 else
5971 no_cache=1
5972 fi
5973
5974 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5975
5976 fi
5977
5978
5979 eval "$ac_cv_use_checklst"
5980 if test "$no_cache" != 1; then
5981 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5982 fi
5983
5984 if test "$wxUSE_CHECKLST" = yes; then
5985 echo "$ac_t""yes" 1>&6
5986 else
5987 echo "$ac_t""no" 1>&6
5988 fi
5989
5990
5991 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5992 echo "configure:5993: checking for --enable-choice" >&5
5993 no_cache=0
5994 # Check whether --enable-choice or --disable-choice was given.
5995 if test "${enable_choice+set}" = set; then
5996 enableval="$enable_choice"
5997
5998 if test "$enableval" = yes; then
5999 ac_cv_use_choice='wxUSE_CHOICE=yes'
6000 else
6001 ac_cv_use_choice='wxUSE_CHOICE=no'
6002 fi
6003
6004 else
6005
6006 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
6007 if test "x$LINE" != x ; then
6008 eval "DEFAULT_$LINE"
6009 else
6010 no_cache=1
6011 fi
6012
6013 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
6014
6015 fi
6016
6017
6018 eval "$ac_cv_use_choice"
6019 if test "$no_cache" != 1; then
6020 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
6021 fi
6022
6023 if test "$wxUSE_CHOICE" = yes; then
6024 echo "$ac_t""yes" 1>&6
6025 else
6026 echo "$ac_t""no" 1>&6
6027 fi
6028
6029
6030 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
6031 echo "configure:6032: checking for --enable-combobox" >&5
6032 no_cache=0
6033 # Check whether --enable-combobox or --disable-combobox was given.
6034 if test "${enable_combobox+set}" = set; then
6035 enableval="$enable_combobox"
6036
6037 if test "$enableval" = yes; then
6038 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
6039 else
6040 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
6041 fi
6042
6043 else
6044
6045 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
6046 if test "x$LINE" != x ; then
6047 eval "DEFAULT_$LINE"
6048 else
6049 no_cache=1
6050 fi
6051
6052 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
6053
6054 fi
6055
6056
6057 eval "$ac_cv_use_combobox"
6058 if test "$no_cache" != 1; then
6059 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
6060 fi
6061
6062 if test "$wxUSE_COMBOBOX" = yes; then
6063 echo "$ac_t""yes" 1>&6
6064 else
6065 echo "$ac_t""no" 1>&6
6066 fi
6067
6068
6069 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
6070 echo "configure:6071: checking for --enable-gauge" >&5
6071 no_cache=0
6072 # Check whether --enable-gauge or --disable-gauge was given.
6073 if test "${enable_gauge+set}" = set; then
6074 enableval="$enable_gauge"
6075
6076 if test "$enableval" = yes; then
6077 ac_cv_use_gauge='wxUSE_GAUGE=yes'
6078 else
6079 ac_cv_use_gauge='wxUSE_GAUGE=no'
6080 fi
6081
6082 else
6083
6084 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
6085 if test "x$LINE" != x ; then
6086 eval "DEFAULT_$LINE"
6087 else
6088 no_cache=1
6089 fi
6090
6091 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
6092
6093 fi
6094
6095
6096 eval "$ac_cv_use_gauge"
6097 if test "$no_cache" != 1; then
6098 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
6099 fi
6100
6101 if test "$wxUSE_GAUGE" = yes; then
6102 echo "$ac_t""yes" 1>&6
6103 else
6104 echo "$ac_t""no" 1>&6
6105 fi
6106
6107
6108 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
6109 echo "configure:6110: checking for --enable-grid" >&5
6110 no_cache=0
6111 # Check whether --enable-grid or --disable-grid was given.
6112 if test "${enable_grid+set}" = set; then
6113 enableval="$enable_grid"
6114
6115 if test "$enableval" = yes; then
6116 ac_cv_use_grid='wxUSE_GRID=yes'
6117 else
6118 ac_cv_use_grid='wxUSE_GRID=no'
6119 fi
6120
6121 else
6122
6123 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
6124 if test "x$LINE" != x ; then
6125 eval "DEFAULT_$LINE"
6126 else
6127 no_cache=1
6128 fi
6129
6130 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
6131
6132 fi
6133
6134
6135 eval "$ac_cv_use_grid"
6136 if test "$no_cache" != 1; then
6137 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
6138 fi
6139
6140 if test "$wxUSE_GRID" = yes; then
6141 echo "$ac_t""yes" 1>&6
6142 else
6143 echo "$ac_t""no" 1>&6
6144 fi
6145
6146
6147 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
6148 echo "configure:6149: checking for --enable-newgrid" >&5
6149 no_cache=0
6150 # Check whether --enable-newgrid or --disable-newgrid was given.
6151 if test "${enable_newgrid+set}" = set; then
6152 enableval="$enable_newgrid"
6153
6154 if test "$enableval" = yes; then
6155 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
6156 else
6157 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
6158 fi
6159
6160 else
6161
6162 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
6163 if test "x$LINE" != x ; then
6164 eval "DEFAULT_$LINE"
6165 else
6166 no_cache=1
6167 fi
6168
6169 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
6170
6171 fi
6172
6173
6174 eval "$ac_cv_use_newgrid"
6175 if test "$no_cache" != 1; then
6176 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
6177 fi
6178
6179 if test "$wxUSE_NEW_GRID" = yes; then
6180 echo "$ac_t""yes" 1>&6
6181 else
6182 echo "$ac_t""no" 1>&6
6183 fi
6184
6185
6186 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
6187 echo "configure:6188: checking for --enable-imaglist" >&5
6188 no_cache=0
6189 # Check whether --enable-imaglist or --disable-imaglist was given.
6190 if test "${enable_imaglist+set}" = set; then
6191 enableval="$enable_imaglist"
6192
6193 if test "$enableval" = yes; then
6194 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
6195 else
6196 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
6197 fi
6198
6199 else
6200
6201 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
6202 if test "x$LINE" != x ; then
6203 eval "DEFAULT_$LINE"
6204 else
6205 no_cache=1
6206 fi
6207
6208 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
6209
6210 fi
6211
6212
6213 eval "$ac_cv_use_imaglist"
6214 if test "$no_cache" != 1; then
6215 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
6216 fi
6217
6218 if test "$wxUSE_IMAGLIST" = yes; then
6219 echo "$ac_t""yes" 1>&6
6220 else
6221 echo "$ac_t""no" 1>&6
6222 fi
6223
6224
6225 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
6226 echo "configure:6227: checking for --enable-listbox" >&5
6227 no_cache=0
6228 # Check whether --enable-listbox or --disable-listbox was given.
6229 if test "${enable_listbox+set}" = set; then
6230 enableval="$enable_listbox"
6231
6232 if test "$enableval" = yes; then
6233 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
6234 else
6235 ac_cv_use_listbox='wxUSE_LISTBOX=no'
6236 fi
6237
6238 else
6239
6240 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
6241 if test "x$LINE" != x ; then
6242 eval "DEFAULT_$LINE"
6243 else
6244 no_cache=1
6245 fi
6246
6247 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
6248
6249 fi
6250
6251
6252 eval "$ac_cv_use_listbox"
6253 if test "$no_cache" != 1; then
6254 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
6255 fi
6256
6257 if test "$wxUSE_LISTBOX" = yes; then
6258 echo "$ac_t""yes" 1>&6
6259 else
6260 echo "$ac_t""no" 1>&6
6261 fi
6262
6263
6264 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
6265 echo "configure:6266: checking for --enable-listctrl" >&5
6266 no_cache=0
6267 # Check whether --enable-listctrl or --disable-listctrl was given.
6268 if test "${enable_listctrl+set}" = set; then
6269 enableval="$enable_listctrl"
6270
6271 if test "$enableval" = yes; then
6272 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
6273 else
6274 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
6275 fi
6276
6277 else
6278
6279 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
6280 if test "x$LINE" != x ; then
6281 eval "DEFAULT_$LINE"
6282 else
6283 no_cache=1
6284 fi
6285
6286 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
6287
6288 fi
6289
6290
6291 eval "$ac_cv_use_listctrl"
6292 if test "$no_cache" != 1; then
6293 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
6294 fi
6295
6296 if test "$wxUSE_LISTCTRL" = yes; then
6297 echo "$ac_t""yes" 1>&6
6298 else
6299 echo "$ac_t""no" 1>&6
6300 fi
6301
6302
6303 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
6304 echo "configure:6305: checking for --enable-notebook" >&5
6305 no_cache=0
6306 # Check whether --enable-notebook or --disable-notebook was given.
6307 if test "${enable_notebook+set}" = set; then
6308 enableval="$enable_notebook"
6309
6310 if test "$enableval" = yes; then
6311 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
6312 else
6313 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
6314 fi
6315
6316 else
6317
6318 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
6319 if test "x$LINE" != x ; then
6320 eval "DEFAULT_$LINE"
6321 else
6322 no_cache=1
6323 fi
6324
6325 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
6326
6327 fi
6328
6329
6330 eval "$ac_cv_use_notebook"
6331 if test "$no_cache" != 1; then
6332 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
6333 fi
6334
6335 if test "$wxUSE_NOTEBOOK" = yes; then
6336 echo "$ac_t""yes" 1>&6
6337 else
6338 echo "$ac_t""no" 1>&6
6339 fi
6340
6341
6342 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
6343 echo "configure:6344: checking for --enable-propsheet" >&5
6344 no_cache=0
6345 # Check whether --enable-propsheet or --disable-propsheet was given.
6346 if test "${enable_propsheet+set}" = set; then
6347 enableval="$enable_propsheet"
6348
6349 if test "$enableval" = yes; then
6350 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
6351 else
6352 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
6353 fi
6354
6355 else
6356
6357 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
6358 if test "x$LINE" != x ; then
6359 eval "DEFAULT_$LINE"
6360 else
6361 no_cache=1
6362 fi
6363
6364 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
6365
6366 fi
6367
6368
6369 eval "$ac_cv_use_propsheet"
6370 if test "$no_cache" != 1; then
6371 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
6372 fi
6373
6374 if test "$wxUSE_PROPSHEET" = yes; then
6375 echo "$ac_t""yes" 1>&6
6376 else
6377 echo "$ac_t""no" 1>&6
6378 fi
6379
6380
6381 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
6382 echo "configure:6383: checking for --enable-radiobox" >&5
6383 no_cache=0
6384 # Check whether --enable-radiobox or --disable-radiobox was given.
6385 if test "${enable_radiobox+set}" = set; then
6386 enableval="$enable_radiobox"
6387
6388 if test "$enableval" = yes; then
6389 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6390 else
6391 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6392 fi
6393
6394 else
6395
6396 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6397 if test "x$LINE" != x ; then
6398 eval "DEFAULT_$LINE"
6399 else
6400 no_cache=1
6401 fi
6402
6403 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6404
6405 fi
6406
6407
6408 eval "$ac_cv_use_radiobox"
6409 if test "$no_cache" != 1; then
6410 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6411 fi
6412
6413 if test "$wxUSE_RADIOBOX" = yes; then
6414 echo "$ac_t""yes" 1>&6
6415 else
6416 echo "$ac_t""no" 1>&6
6417 fi
6418
6419
6420 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6421 echo "configure:6422: checking for --enable-radiobtn" >&5
6422 no_cache=0
6423 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6424 if test "${enable_radiobtn+set}" = set; then
6425 enableval="$enable_radiobtn"
6426
6427 if test "$enableval" = yes; then
6428 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6429 else
6430 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6431 fi
6432
6433 else
6434
6435 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6436 if test "x$LINE" != x ; then
6437 eval "DEFAULT_$LINE"
6438 else
6439 no_cache=1
6440 fi
6441
6442 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6443
6444 fi
6445
6446
6447 eval "$ac_cv_use_radiobtn"
6448 if test "$no_cache" != 1; then
6449 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6450 fi
6451
6452 if test "$wxUSE_RADIOBTN" = yes; then
6453 echo "$ac_t""yes" 1>&6
6454 else
6455 echo "$ac_t""no" 1>&6
6456 fi
6457
6458
6459 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6460 echo "configure:6461: checking for --enable-sash" >&5
6461 no_cache=0
6462 # Check whether --enable-sash or --disable-sash was given.
6463 if test "${enable_sash+set}" = set; then
6464 enableval="$enable_sash"
6465
6466 if test "$enableval" = yes; then
6467 ac_cv_use_sash='wxUSE_SASH=yes'
6468 else
6469 ac_cv_use_sash='wxUSE_SASH=no'
6470 fi
6471
6472 else
6473
6474 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6475 if test "x$LINE" != x ; then
6476 eval "DEFAULT_$LINE"
6477 else
6478 no_cache=1
6479 fi
6480
6481 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6482
6483 fi
6484
6485
6486 eval "$ac_cv_use_sash"
6487 if test "$no_cache" != 1; then
6488 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6489 fi
6490
6491 if test "$wxUSE_SASH" = yes; then
6492 echo "$ac_t""yes" 1>&6
6493 else
6494 echo "$ac_t""no" 1>&6
6495 fi
6496
6497
6498 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6499 echo "configure:6500: checking for --enable-scrollbar" >&5
6500 no_cache=0
6501 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6502 if test "${enable_scrollbar+set}" = set; then
6503 enableval="$enable_scrollbar"
6504
6505 if test "$enableval" = yes; then
6506 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6507 else
6508 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6509 fi
6510
6511 else
6512
6513 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6514 if test "x$LINE" != x ; then
6515 eval "DEFAULT_$LINE"
6516 else
6517 no_cache=1
6518 fi
6519
6520 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6521
6522 fi
6523
6524
6525 eval "$ac_cv_use_scrollbar"
6526 if test "$no_cache" != 1; then
6527 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6528 fi
6529
6530 if test "$wxUSE_SCROLLBAR" = yes; then
6531 echo "$ac_t""yes" 1>&6
6532 else
6533 echo "$ac_t""no" 1>&6
6534 fi
6535
6536
6537 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6538 echo "configure:6539: checking for --enable-slider" >&5
6539 no_cache=0
6540 # Check whether --enable-slider or --disable-slider was given.
6541 if test "${enable_slider+set}" = set; then
6542 enableval="$enable_slider"
6543
6544 if test "$enableval" = yes; then
6545 ac_cv_use_slider='wxUSE_SLIDER=yes'
6546 else
6547 ac_cv_use_slider='wxUSE_SLIDER=no'
6548 fi
6549
6550 else
6551
6552 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6553 if test "x$LINE" != x ; then
6554 eval "DEFAULT_$LINE"
6555 else
6556 no_cache=1
6557 fi
6558
6559 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6560
6561 fi
6562
6563
6564 eval "$ac_cv_use_slider"
6565 if test "$no_cache" != 1; then
6566 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6567 fi
6568
6569 if test "$wxUSE_SLIDER" = yes; then
6570 echo "$ac_t""yes" 1>&6
6571 else
6572 echo "$ac_t""no" 1>&6
6573 fi
6574
6575
6576 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6577 echo "configure:6578: checking for --enable-spinbtn" >&5
6578 no_cache=0
6579 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6580 if test "${enable_spinbtn+set}" = set; then
6581 enableval="$enable_spinbtn"
6582
6583 if test "$enableval" = yes; then
6584 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6585 else
6586 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6587 fi
6588
6589 else
6590
6591 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6592 if test "x$LINE" != x ; then
6593 eval "DEFAULT_$LINE"
6594 else
6595 no_cache=1
6596 fi
6597
6598 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6599
6600 fi
6601
6602
6603 eval "$ac_cv_use_spinbtn"
6604 if test "$no_cache" != 1; then
6605 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6606 fi
6607
6608 if test "$wxUSE_SPINBTN" = yes; then
6609 echo "$ac_t""yes" 1>&6
6610 else
6611 echo "$ac_t""no" 1>&6
6612 fi
6613
6614
6615 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6616 echo "configure:6617: checking for --enable-spinctrl" >&5
6617 no_cache=0
6618 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6619 if test "${enable_spinctrl+set}" = set; then
6620 enableval="$enable_spinctrl"
6621
6622 if test "$enableval" = yes; then
6623 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6624 else
6625 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6626 fi
6627
6628 else
6629
6630 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6631 if test "x$LINE" != x ; then
6632 eval "DEFAULT_$LINE"
6633 else
6634 no_cache=1
6635 fi
6636
6637 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6638
6639 fi
6640
6641
6642 eval "$ac_cv_use_spinctrl"
6643 if test "$no_cache" != 1; then
6644 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6645 fi
6646
6647 if test "$wxUSE_SPINCTRL" = yes; then
6648 echo "$ac_t""yes" 1>&6
6649 else
6650 echo "$ac_t""no" 1>&6
6651 fi
6652
6653
6654 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6655 echo "configure:6656: checking for --enable-splitter" >&5
6656 no_cache=0
6657 # Check whether --enable-splitter or --disable-splitter was given.
6658 if test "${enable_splitter+set}" = set; then
6659 enableval="$enable_splitter"
6660
6661 if test "$enableval" = yes; then
6662 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6663 else
6664 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6665 fi
6666
6667 else
6668
6669 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6670 if test "x$LINE" != x ; then
6671 eval "DEFAULT_$LINE"
6672 else
6673 no_cache=1
6674 fi
6675
6676 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6677
6678 fi
6679
6680
6681 eval "$ac_cv_use_splitter"
6682 if test "$no_cache" != 1; then
6683 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6684 fi
6685
6686 if test "$wxUSE_SPLITTER" = yes; then
6687 echo "$ac_t""yes" 1>&6
6688 else
6689 echo "$ac_t""no" 1>&6
6690 fi
6691
6692
6693 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6694 echo "configure:6695: checking for --enable-statbmp" >&5
6695 no_cache=0
6696 # Check whether --enable-statbmp or --disable-statbmp was given.
6697 if test "${enable_statbmp+set}" = set; then
6698 enableval="$enable_statbmp"
6699
6700 if test "$enableval" = yes; then
6701 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6702 else
6703 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6704 fi
6705
6706 else
6707
6708 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6709 if test "x$LINE" != x ; then
6710 eval "DEFAULT_$LINE"
6711 else
6712 no_cache=1
6713 fi
6714
6715 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6716
6717 fi
6718
6719
6720 eval "$ac_cv_use_statbmp"
6721 if test "$no_cache" != 1; then
6722 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6723 fi
6724
6725 if test "$wxUSE_STATBMP" = yes; then
6726 echo "$ac_t""yes" 1>&6
6727 else
6728 echo "$ac_t""no" 1>&6
6729 fi
6730
6731
6732 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6733 echo "configure:6734: checking for --enable-statbox" >&5
6734 no_cache=0
6735 # Check whether --enable-statbox or --disable-statbox was given.
6736 if test "${enable_statbox+set}" = set; then
6737 enableval="$enable_statbox"
6738
6739 if test "$enableval" = yes; then
6740 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6741 else
6742 ac_cv_use_statbox='wxUSE_STATBOX=no'
6743 fi
6744
6745 else
6746
6747 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6748 if test "x$LINE" != x ; then
6749 eval "DEFAULT_$LINE"
6750 else
6751 no_cache=1
6752 fi
6753
6754 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6755
6756 fi
6757
6758
6759 eval "$ac_cv_use_statbox"
6760 if test "$no_cache" != 1; then
6761 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6762 fi
6763
6764 if test "$wxUSE_STATBOX" = yes; then
6765 echo "$ac_t""yes" 1>&6
6766 else
6767 echo "$ac_t""no" 1>&6
6768 fi
6769
6770
6771 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6772 echo "configure:6773: checking for --enable-statline" >&5
6773 no_cache=0
6774 # Check whether --enable-statline or --disable-statline was given.
6775 if test "${enable_statline+set}" = set; then
6776 enableval="$enable_statline"
6777
6778 if test "$enableval" = yes; then
6779 ac_cv_use_statline='wxUSE_STATLINE=yes'
6780 else
6781 ac_cv_use_statline='wxUSE_STATLINE=no'
6782 fi
6783
6784 else
6785
6786 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6787 if test "x$LINE" != x ; then
6788 eval "DEFAULT_$LINE"
6789 else
6790 no_cache=1
6791 fi
6792
6793 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6794
6795 fi
6796
6797
6798 eval "$ac_cv_use_statline"
6799 if test "$no_cache" != 1; then
6800 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6801 fi
6802
6803 if test "$wxUSE_STATLINE" = yes; then
6804 echo "$ac_t""yes" 1>&6
6805 else
6806 echo "$ac_t""no" 1>&6
6807 fi
6808
6809
6810 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6811 echo "configure:6812: checking for --enable-stattext" >&5
6812 no_cache=0
6813 # Check whether --enable-stattext or --disable-stattext was given.
6814 if test "${enable_stattext+set}" = set; then
6815 enableval="$enable_stattext"
6816
6817 if test "$enableval" = yes; then
6818 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6819 else
6820 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6821 fi
6822
6823 else
6824
6825 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6826 if test "x$LINE" != x ; then
6827 eval "DEFAULT_$LINE"
6828 else
6829 no_cache=1
6830 fi
6831
6832 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6833
6834 fi
6835
6836
6837 eval "$ac_cv_use_stattext"
6838 if test "$no_cache" != 1; then
6839 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6840 fi
6841
6842 if test "$wxUSE_STATTEXT" = yes; then
6843 echo "$ac_t""yes" 1>&6
6844 else
6845 echo "$ac_t""no" 1>&6
6846 fi
6847
6848
6849 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6850 echo "configure:6851: checking for --enable-statusbar" >&5
6851 no_cache=0
6852 # Check whether --enable-statusbar or --disable-statusbar was given.
6853 if test "${enable_statusbar+set}" = set; then
6854 enableval="$enable_statusbar"
6855
6856 if test "$enableval" = yes; then
6857 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6858 else
6859 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6860 fi
6861
6862 else
6863
6864 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6865 if test "x$LINE" != x ; then
6866 eval "DEFAULT_$LINE"
6867 else
6868 no_cache=1
6869 fi
6870
6871 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6872
6873 fi
6874
6875
6876 eval "$ac_cv_use_statusbar"
6877 if test "$no_cache" != 1; then
6878 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6879 fi
6880
6881 if test "$wxUSE_STATUSBAR" = yes; then
6882 echo "$ac_t""yes" 1>&6
6883 else
6884 echo "$ac_t""no" 1>&6
6885 fi
6886
6887
6888 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6889 echo "configure:6890: checking for --enable-tabdialog" >&5
6890 no_cache=0
6891 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6892 if test "${enable_tabdialog+set}" = set; then
6893 enableval="$enable_tabdialog"
6894
6895 if test "$enableval" = yes; then
6896 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6897 else
6898 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6899 fi
6900
6901 else
6902
6903 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6904 if test "x$LINE" != x ; then
6905 eval "DEFAULT_$LINE"
6906 else
6907 no_cache=1
6908 fi
6909
6910 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6911
6912 fi
6913
6914
6915 eval "$ac_cv_use_tabdialog"
6916 if test "$no_cache" != 1; then
6917 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6918 fi
6919
6920 if test "$wxUSE_TABDIALOG" = yes; then
6921 echo "$ac_t""yes" 1>&6
6922 else
6923 echo "$ac_t""no" 1>&6
6924 fi
6925
6926
6927 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6928 echo "configure:6929: checking for --enable-textctrl" >&5
6929 no_cache=0
6930 # Check whether --enable-textctrl or --disable-textctrl was given.
6931 if test "${enable_textctrl+set}" = set; then
6932 enableval="$enable_textctrl"
6933
6934 if test "$enableval" = yes; then
6935 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6936 else
6937 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6938 fi
6939
6940 else
6941
6942 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6943 if test "x$LINE" != x ; then
6944 eval "DEFAULT_$LINE"
6945 else
6946 no_cache=1
6947 fi
6948
6949 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6950
6951 fi
6952
6953
6954 eval "$ac_cv_use_textctrl"
6955 if test "$no_cache" != 1; then
6956 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6957 fi
6958
6959 if test "$wxUSE_TEXTCTRL" = yes; then
6960 echo "$ac_t""yes" 1>&6
6961 else
6962 echo "$ac_t""no" 1>&6
6963 fi
6964
6965
6966 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6967 echo "configure:6968: checking for --enable-togglebtn" >&5
6968 no_cache=0
6969 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6970 if test "${enable_togglebtn+set}" = set; then
6971 enableval="$enable_togglebtn"
6972
6973 if test "$enableval" = yes; then
6974 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6975 else
6976 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6977 fi
6978
6979 else
6980
6981 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6982 if test "x$LINE" != x ; then
6983 eval "DEFAULT_$LINE"
6984 else
6985 no_cache=1
6986 fi
6987
6988 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6989
6990 fi
6991
6992
6993 eval "$ac_cv_use_togglebtn"
6994 if test "$no_cache" != 1; then
6995 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6996 fi
6997
6998 if test "$wxUSE_TOGGLEBTN" = yes; then
6999 echo "$ac_t""yes" 1>&6
7000 else
7001 echo "$ac_t""no" 1>&6
7002 fi
7003
7004
7005 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
7006 echo "configure:7007: checking for --enable-toolbar" >&5
7007 no_cache=0
7008 # Check whether --enable-toolbar or --disable-toolbar was given.
7009 if test "${enable_toolbar+set}" = set; then
7010 enableval="$enable_toolbar"
7011
7012 if test "$enableval" = yes; then
7013 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
7014 else
7015 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
7016 fi
7017
7018 else
7019
7020 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
7021 if test "x$LINE" != x ; then
7022 eval "DEFAULT_$LINE"
7023 else
7024 no_cache=1
7025 fi
7026
7027 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
7028
7029 fi
7030
7031
7032 eval "$ac_cv_use_toolbar"
7033 if test "$no_cache" != 1; then
7034 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
7035 fi
7036
7037 if test "$wxUSE_TOOLBAR" = yes; then
7038 echo "$ac_t""yes" 1>&6
7039 else
7040 echo "$ac_t""no" 1>&6
7041 fi
7042
7043
7044 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
7045 echo "configure:7046: checking for --enable-tbarnative" >&5
7046 no_cache=0
7047 # Check whether --enable-tbarnative or --disable-tbarnative was given.
7048 if test "${enable_tbarnative+set}" = set; then
7049 enableval="$enable_tbarnative"
7050
7051 if test "$enableval" = yes; then
7052 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
7053 else
7054 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
7055 fi
7056
7057 else
7058
7059 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
7060 if test "x$LINE" != x ; then
7061 eval "DEFAULT_$LINE"
7062 else
7063 no_cache=1
7064 fi
7065
7066 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
7067
7068 fi
7069
7070
7071 eval "$ac_cv_use_tbarnative"
7072 if test "$no_cache" != 1; then
7073 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
7074 fi
7075
7076 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
7077 echo "$ac_t""yes" 1>&6
7078 else
7079 echo "$ac_t""no" 1>&6
7080 fi
7081
7082
7083 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
7084 echo "configure:7085: checking for --enable-tbarsmpl" >&5
7085 no_cache=0
7086 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
7087 if test "${enable_tbarsmpl+set}" = set; then
7088 enableval="$enable_tbarsmpl"
7089
7090 if test "$enableval" = yes; then
7091 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
7092 else
7093 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
7094 fi
7095
7096 else
7097
7098 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
7099 if test "x$LINE" != x ; then
7100 eval "DEFAULT_$LINE"
7101 else
7102 no_cache=1
7103 fi
7104
7105 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
7106
7107 fi
7108
7109
7110 eval "$ac_cv_use_tbarsmpl"
7111 if test "$no_cache" != 1; then
7112 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
7113 fi
7114
7115 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
7116 echo "$ac_t""yes" 1>&6
7117 else
7118 echo "$ac_t""no" 1>&6
7119 fi
7120
7121
7122 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
7123 echo "configure:7124: checking for --enable-treectrl" >&5
7124 no_cache=0
7125 # Check whether --enable-treectrl or --disable-treectrl was given.
7126 if test "${enable_treectrl+set}" = set; then
7127 enableval="$enable_treectrl"
7128
7129 if test "$enableval" = yes; then
7130 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
7131 else
7132 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
7133 fi
7134
7135 else
7136
7137 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
7138 if test "x$LINE" != x ; then
7139 eval "DEFAULT_$LINE"
7140 else
7141 no_cache=1
7142 fi
7143
7144 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
7145
7146 fi
7147
7148
7149 eval "$ac_cv_use_treectrl"
7150 if test "$no_cache" != 1; then
7151 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
7152 fi
7153
7154 if test "$wxUSE_TREECTRL" = yes; then
7155 echo "$ac_t""yes" 1>&6
7156 else
7157 echo "$ac_t""no" 1>&6
7158 fi
7159
7160
7161 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
7162 echo "configure:7163: checking for --enable-tipwindow" >&5
7163 no_cache=0
7164 # Check whether --enable-tipwindow or --disable-tipwindow was given.
7165 if test "${enable_tipwindow+set}" = set; then
7166 enableval="$enable_tipwindow"
7167
7168 if test "$enableval" = yes; then
7169 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
7170 else
7171 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
7172 fi
7173
7174 else
7175
7176 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
7177 if test "x$LINE" != x ; then
7178 eval "DEFAULT_$LINE"
7179 else
7180 no_cache=1
7181 fi
7182
7183 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
7184
7185 fi
7186
7187
7188 eval "$ac_cv_use_tipwindow"
7189 if test "$no_cache" != 1; then
7190 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
7191 fi
7192
7193 if test "$wxUSE_TIPWINDOW" = yes; then
7194 echo "$ac_t""yes" 1>&6
7195 else
7196 echo "$ac_t""no" 1>&6
7197 fi
7198
7199
7200 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
7201 echo "configure:7202: checking for --enable-popupwin" >&5
7202 no_cache=0
7203 # Check whether --enable-popupwin or --disable-popupwin was given.
7204 if test "${enable_popupwin+set}" = set; then
7205 enableval="$enable_popupwin"
7206
7207 if test "$enableval" = yes; then
7208 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
7209 else
7210 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
7211 fi
7212
7213 else
7214
7215 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
7216 if test "x$LINE" != x ; then
7217 eval "DEFAULT_$LINE"
7218 else
7219 no_cache=1
7220 fi
7221
7222 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
7223
7224 fi
7225
7226
7227 eval "$ac_cv_use_popupwin"
7228 if test "$no_cache" != 1; then
7229 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
7230 fi
7231
7232 if test "$wxUSE_POPUPWIN" = yes; then
7233 echo "$ac_t""yes" 1>&6
7234 else
7235 echo "$ac_t""no" 1>&6
7236 fi
7237
7238
7239
7240
7241 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
7242 echo "configure:7243: checking for --enable-commondlg" >&5
7243 no_cache=0
7244 # Check whether --enable-commondlg or --disable-commondlg was given.
7245 if test "${enable_commondlg+set}" = set; then
7246 enableval="$enable_commondlg"
7247
7248 if test "$enableval" = yes; then
7249 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
7250 else
7251 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
7252 fi
7253
7254 else
7255
7256 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
7257 if test "x$LINE" != x ; then
7258 eval "DEFAULT_$LINE"
7259 else
7260 no_cache=1
7261 fi
7262
7263 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
7264
7265 fi
7266
7267
7268 eval "$ac_cv_use_commondlg"
7269 if test "$no_cache" != 1; then
7270 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
7271 fi
7272
7273 if test "$wxUSE_COMMONDLGS" = yes; then
7274 echo "$ac_t""yes" 1>&6
7275 else
7276 echo "$ac_t""no" 1>&6
7277 fi
7278
7279
7280 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
7281 echo "configure:7282: checking for --enable-choicedlg" >&5
7282 no_cache=0
7283 # Check whether --enable-choicedlg or --disable-choicedlg was given.
7284 if test "${enable_choicedlg+set}" = set; then
7285 enableval="$enable_choicedlg"
7286
7287 if test "$enableval" = yes; then
7288 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
7289 else
7290 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
7291 fi
7292
7293 else
7294
7295 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
7296 if test "x$LINE" != x ; then
7297 eval "DEFAULT_$LINE"
7298 else
7299 no_cache=1
7300 fi
7301
7302 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
7303
7304 fi
7305
7306
7307 eval "$ac_cv_use_choicedlg"
7308 if test "$no_cache" != 1; then
7309 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
7310 fi
7311
7312 if test "$wxUSE_CHOICEDLG" = yes; then
7313 echo "$ac_t""yes" 1>&6
7314 else
7315 echo "$ac_t""no" 1>&6
7316 fi
7317
7318
7319 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
7320 echo "configure:7321: checking for --enable-coldlg" >&5
7321 no_cache=0
7322 # Check whether --enable-coldlg or --disable-coldlg was given.
7323 if test "${enable_coldlg+set}" = set; then
7324 enableval="$enable_coldlg"
7325
7326 if test "$enableval" = yes; then
7327 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
7328 else
7329 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
7330 fi
7331
7332 else
7333
7334 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
7335 if test "x$LINE" != x ; then
7336 eval "DEFAULT_$LINE"
7337 else
7338 no_cache=1
7339 fi
7340
7341 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
7342
7343 fi
7344
7345
7346 eval "$ac_cv_use_coldlg"
7347 if test "$no_cache" != 1; then
7348 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
7349 fi
7350
7351 if test "$wxUSE_COLOURDLG" = yes; then
7352 echo "$ac_t""yes" 1>&6
7353 else
7354 echo "$ac_t""no" 1>&6
7355 fi
7356
7357
7358 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
7359 echo "configure:7360: checking for --enable-filedlg" >&5
7360 no_cache=0
7361 # Check whether --enable-filedlg or --disable-filedlg was given.
7362 if test "${enable_filedlg+set}" = set; then
7363 enableval="$enable_filedlg"
7364
7365 if test "$enableval" = yes; then
7366 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
7367 else
7368 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
7369 fi
7370
7371 else
7372
7373 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
7374 if test "x$LINE" != x ; then
7375 eval "DEFAULT_$LINE"
7376 else
7377 no_cache=1
7378 fi
7379
7380 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
7381
7382 fi
7383
7384
7385 eval "$ac_cv_use_filedlg"
7386 if test "$no_cache" != 1; then
7387 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
7388 fi
7389
7390 if test "$wxUSE_FILEDLG" = yes; then
7391 echo "$ac_t""yes" 1>&6
7392 else
7393 echo "$ac_t""no" 1>&6
7394 fi
7395
7396
7397 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7398 echo "configure:7399: checking for --enable-finddlg" >&5
7399 no_cache=0
7400 # Check whether --enable-finddlg or --disable-finddlg was given.
7401 if test "${enable_finddlg+set}" = set; then
7402 enableval="$enable_finddlg"
7403
7404 if test "$enableval" = yes; then
7405 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7406 else
7407 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7408 fi
7409
7410 else
7411
7412 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7413 if test "x$LINE" != x ; then
7414 eval "DEFAULT_$LINE"
7415 else
7416 no_cache=1
7417 fi
7418
7419 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7420
7421 fi
7422
7423
7424 eval "$ac_cv_use_finddlg"
7425 if test "$no_cache" != 1; then
7426 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7427 fi
7428
7429 if test "$wxUSE_FINDREPLDLG" = yes; then
7430 echo "$ac_t""yes" 1>&6
7431 else
7432 echo "$ac_t""no" 1>&6
7433 fi
7434
7435
7436 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7437 echo "configure:7438: checking for --enable-fontdlg" >&5
7438 no_cache=0
7439 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7440 if test "${enable_fontdlg+set}" = set; then
7441 enableval="$enable_fontdlg"
7442
7443 if test "$enableval" = yes; then
7444 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7445 else
7446 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7447 fi
7448
7449 else
7450
7451 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7452 if test "x$LINE" != x ; then
7453 eval "DEFAULT_$LINE"
7454 else
7455 no_cache=1
7456 fi
7457
7458 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7459
7460 fi
7461
7462
7463 eval "$ac_cv_use_fontdlg"
7464 if test "$no_cache" != 1; then
7465 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7466 fi
7467
7468 if test "$wxUSE_FONTDLG" = yes; then
7469 echo "$ac_t""yes" 1>&6
7470 else
7471 echo "$ac_t""no" 1>&6
7472 fi
7473
7474
7475 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7476 echo "configure:7477: checking for --enable-dirdlg" >&5
7477 no_cache=0
7478 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7479 if test "${enable_dirdlg+set}" = set; then
7480 enableval="$enable_dirdlg"
7481
7482 if test "$enableval" = yes; then
7483 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7484 else
7485 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7486 fi
7487
7488 else
7489
7490 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7491 if test "x$LINE" != x ; then
7492 eval "DEFAULT_$LINE"
7493 else
7494 no_cache=1
7495 fi
7496
7497 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7498
7499 fi
7500
7501
7502 eval "$ac_cv_use_dirdlg"
7503 if test "$no_cache" != 1; then
7504 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7505 fi
7506
7507 if test "$wxUSE_DIRDLG" = yes; then
7508 echo "$ac_t""yes" 1>&6
7509 else
7510 echo "$ac_t""no" 1>&6
7511 fi
7512
7513
7514 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7515 echo "configure:7516: checking for --enable-msgdlg" >&5
7516 no_cache=0
7517 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7518 if test "${enable_msgdlg+set}" = set; then
7519 enableval="$enable_msgdlg"
7520
7521 if test "$enableval" = yes; then
7522 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7523 else
7524 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7525 fi
7526
7527 else
7528
7529 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7530 if test "x$LINE" != x ; then
7531 eval "DEFAULT_$LINE"
7532 else
7533 no_cache=1
7534 fi
7535
7536 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7537
7538 fi
7539
7540
7541 eval "$ac_cv_use_msgdlg"
7542 if test "$no_cache" != 1; then
7543 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7544 fi
7545
7546 if test "$wxUSE_MSGDLG" = yes; then
7547 echo "$ac_t""yes" 1>&6
7548 else
7549 echo "$ac_t""no" 1>&6
7550 fi
7551
7552
7553 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7554 echo "configure:7555: checking for --enable-numberdlg" >&5
7555 no_cache=0
7556 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7557 if test "${enable_numberdlg+set}" = set; then
7558 enableval="$enable_numberdlg"
7559
7560 if test "$enableval" = yes; then
7561 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7562 else
7563 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7564 fi
7565
7566 else
7567
7568 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7569 if test "x$LINE" != x ; then
7570 eval "DEFAULT_$LINE"
7571 else
7572 no_cache=1
7573 fi
7574
7575 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7576
7577 fi
7578
7579
7580 eval "$ac_cv_use_numberdlg"
7581 if test "$no_cache" != 1; then
7582 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7583 fi
7584
7585 if test "$wxUSE_NUMBERDLG" = yes; then
7586 echo "$ac_t""yes" 1>&6
7587 else
7588 echo "$ac_t""no" 1>&6
7589 fi
7590
7591
7592 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7593 echo "configure:7594: checking for --enable-splash" >&5
7594 no_cache=0
7595 # Check whether --enable-splash or --disable-splash was given.
7596 if test "${enable_splash+set}" = set; then
7597 enableval="$enable_splash"
7598
7599 if test "$enableval" = yes; then
7600 ac_cv_use_splash='wxUSE_SPLASH=yes'
7601 else
7602 ac_cv_use_splash='wxUSE_SPLASH=no'
7603 fi
7604
7605 else
7606
7607 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7608 if test "x$LINE" != x ; then
7609 eval "DEFAULT_$LINE"
7610 else
7611 no_cache=1
7612 fi
7613
7614 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7615
7616 fi
7617
7618
7619 eval "$ac_cv_use_splash"
7620 if test "$no_cache" != 1; then
7621 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7622 fi
7623
7624 if test "$wxUSE_SPLASH" = yes; then
7625 echo "$ac_t""yes" 1>&6
7626 else
7627 echo "$ac_t""no" 1>&6
7628 fi
7629
7630
7631 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7632 echo "configure:7633: checking for --enable-textdlg" >&5
7633 no_cache=0
7634 # Check whether --enable-textdlg or --disable-textdlg was given.
7635 if test "${enable_textdlg+set}" = set; then
7636 enableval="$enable_textdlg"
7637
7638 if test "$enableval" = yes; then
7639 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7640 else
7641 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7642 fi
7643
7644 else
7645
7646 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7647 if test "x$LINE" != x ; then
7648 eval "DEFAULT_$LINE"
7649 else
7650 no_cache=1
7651 fi
7652
7653 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7654
7655 fi
7656
7657
7658 eval "$ac_cv_use_textdlg"
7659 if test "$no_cache" != 1; then
7660 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7661 fi
7662
7663 if test "$wxUSE_TEXTDLG" = yes; then
7664 echo "$ac_t""yes" 1>&6
7665 else
7666 echo "$ac_t""no" 1>&6
7667 fi
7668
7669
7670 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7671 echo "configure:7672: checking for --enable-tipdlg" >&5
7672 no_cache=0
7673 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7674 if test "${enable_tipdlg+set}" = set; then
7675 enableval="$enable_tipdlg"
7676
7677 if test "$enableval" = yes; then
7678 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7679 else
7680 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7681 fi
7682
7683 else
7684
7685 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7686 if test "x$LINE" != x ; then
7687 eval "DEFAULT_$LINE"
7688 else
7689 no_cache=1
7690 fi
7691
7692 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7693
7694 fi
7695
7696
7697 eval "$ac_cv_use_tipdlg"
7698 if test "$no_cache" != 1; then
7699 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7700 fi
7701
7702 if test "$wxUSE_STARTUP_TIPS" = yes; then
7703 echo "$ac_t""yes" 1>&6
7704 else
7705 echo "$ac_t""no" 1>&6
7706 fi
7707
7708
7709 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7710 echo "configure:7711: checking for --enable-progressdlg" >&5
7711 no_cache=0
7712 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7713 if test "${enable_progressdlg+set}" = set; then
7714 enableval="$enable_progressdlg"
7715
7716 if test "$enableval" = yes; then
7717 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7718 else
7719 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7720 fi
7721
7722 else
7723
7724 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7725 if test "x$LINE" != x ; then
7726 eval "DEFAULT_$LINE"
7727 else
7728 no_cache=1
7729 fi
7730
7731 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7732
7733 fi
7734
7735
7736 eval "$ac_cv_use_progressdlg"
7737 if test "$no_cache" != 1; then
7738 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7739 fi
7740
7741 if test "$wxUSE_PROGRESSDLG" = yes; then
7742 echo "$ac_t""yes" 1>&6
7743 else
7744 echo "$ac_t""no" 1>&6
7745 fi
7746
7747
7748 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7749 echo "configure:7750: checking for --enable-wizarddlg" >&5
7750 no_cache=0
7751 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7752 if test "${enable_wizarddlg+set}" = set; then
7753 enableval="$enable_wizarddlg"
7754
7755 if test "$enableval" = yes; then
7756 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7757 else
7758 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7759 fi
7760
7761 else
7762
7763 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7764 if test "x$LINE" != x ; then
7765 eval "DEFAULT_$LINE"
7766 else
7767 no_cache=1
7768 fi
7769
7770 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7771
7772 fi
7773
7774
7775 eval "$ac_cv_use_wizarddlg"
7776 if test "$no_cache" != 1; then
7777 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7778 fi
7779
7780 if test "$wxUSE_WIZARDDLG" = yes; then
7781 echo "$ac_t""yes" 1>&6
7782 else
7783 echo "$ac_t""no" 1>&6
7784 fi
7785
7786
7787
7788
7789 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7790 echo "configure:7791: checking for --enable-menus" >&5
7791 no_cache=0
7792 # Check whether --enable-menus or --disable-menus was given.
7793 if test "${enable_menus+set}" = set; then
7794 enableval="$enable_menus"
7795
7796 if test "$enableval" = yes; then
7797 ac_cv_use_menus='wxUSE_MENUS=yes'
7798 else
7799 ac_cv_use_menus='wxUSE_MENUS=no'
7800 fi
7801
7802 else
7803
7804 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7805 if test "x$LINE" != x ; then
7806 eval "DEFAULT_$LINE"
7807 else
7808 no_cache=1
7809 fi
7810
7811 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7812
7813 fi
7814
7815
7816 eval "$ac_cv_use_menus"
7817 if test "$no_cache" != 1; then
7818 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7819 fi
7820
7821 if test "$wxUSE_MENUS" = yes; then
7822 echo "$ac_t""yes" 1>&6
7823 else
7824 echo "$ac_t""no" 1>&6
7825 fi
7826
7827
7828 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7829 echo "configure:7830: checking for --enable-miniframe" >&5
7830 no_cache=0
7831 # Check whether --enable-miniframe or --disable-miniframe was given.
7832 if test "${enable_miniframe+set}" = set; then
7833 enableval="$enable_miniframe"
7834
7835 if test "$enableval" = yes; then
7836 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7837 else
7838 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7839 fi
7840
7841 else
7842
7843 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7844 if test "x$LINE" != x ; then
7845 eval "DEFAULT_$LINE"
7846 else
7847 no_cache=1
7848 fi
7849
7850 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7851
7852 fi
7853
7854
7855 eval "$ac_cv_use_miniframe"
7856 if test "$no_cache" != 1; then
7857 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7858 fi
7859
7860 if test "$wxUSE_MINIFRAME" = yes; then
7861 echo "$ac_t""yes" 1>&6
7862 else
7863 echo "$ac_t""no" 1>&6
7864 fi
7865
7866
7867 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7868 echo "configure:7869: checking for --enable-tooltips" >&5
7869 no_cache=0
7870 # Check whether --enable-tooltips or --disable-tooltips was given.
7871 if test "${enable_tooltips+set}" = set; then
7872 enableval="$enable_tooltips"
7873
7874 if test "$enableval" = yes; then
7875 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7876 else
7877 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7878 fi
7879
7880 else
7881
7882 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7883 if test "x$LINE" != x ; then
7884 eval "DEFAULT_$LINE"
7885 else
7886 no_cache=1
7887 fi
7888
7889 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7890
7891 fi
7892
7893
7894 eval "$ac_cv_use_tooltips"
7895 if test "$no_cache" != 1; then
7896 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7897 fi
7898
7899 if test "$wxUSE_TOOLTIPS" = yes; then
7900 echo "$ac_t""yes" 1>&6
7901 else
7902 echo "$ac_t""no" 1>&6
7903 fi
7904
7905
7906 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7907 echo "configure:7908: checking for --enable-splines" >&5
7908 no_cache=0
7909 # Check whether --enable-splines or --disable-splines was given.
7910 if test "${enable_splines+set}" = set; then
7911 enableval="$enable_splines"
7912
7913 if test "$enableval" = yes; then
7914 ac_cv_use_splines='wxUSE_SPLINES=yes'
7915 else
7916 ac_cv_use_splines='wxUSE_SPLINES=no'
7917 fi
7918
7919 else
7920
7921 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7922 if test "x$LINE" != x ; then
7923 eval "DEFAULT_$LINE"
7924 else
7925 no_cache=1
7926 fi
7927
7928 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7929
7930 fi
7931
7932
7933 eval "$ac_cv_use_splines"
7934 if test "$no_cache" != 1; then
7935 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7936 fi
7937
7938 if test "$wxUSE_SPLINES" = yes; then
7939 echo "$ac_t""yes" 1>&6
7940 else
7941 echo "$ac_t""no" 1>&6
7942 fi
7943
7944
7945 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7946 echo "configure:7947: checking for --enable-validators" >&5
7947 no_cache=0
7948 # Check whether --enable-validators or --disable-validators was given.
7949 if test "${enable_validators+set}" = set; then
7950 enableval="$enable_validators"
7951
7952 if test "$enableval" = yes; then
7953 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7954 else
7955 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7956 fi
7957
7958 else
7959
7960 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7961 if test "x$LINE" != x ; then
7962 eval "DEFAULT_$LINE"
7963 else
7964 no_cache=1
7965 fi
7966
7967 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7968
7969 fi
7970
7971
7972 eval "$ac_cv_use_validators"
7973 if test "$no_cache" != 1; then
7974 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7975 fi
7976
7977 if test "$wxUSE_VALIDATORS" = yes; then
7978 echo "$ac_t""yes" 1>&6
7979 else
7980 echo "$ac_t""no" 1>&6
7981 fi
7982
7983
7984 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7985 echo "configure:7986: checking for --enable-busyinfo" >&5
7986 no_cache=0
7987 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7988 if test "${enable_busyinfo+set}" = set; then
7989 enableval="$enable_busyinfo"
7990
7991 if test "$enableval" = yes; then
7992 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7993 else
7994 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7995 fi
7996
7997 else
7998
7999 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
8000 if test "x$LINE" != x ; then
8001 eval "DEFAULT_$LINE"
8002 else
8003 no_cache=1
8004 fi
8005
8006 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
8007
8008 fi
8009
8010
8011 eval "$ac_cv_use_busyinfo"
8012 if test "$no_cache" != 1; then
8013 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
8014 fi
8015
8016 if test "$wxUSE_BUSYINFO" = yes; then
8017 echo "$ac_t""yes" 1>&6
8018 else
8019 echo "$ac_t""no" 1>&6
8020 fi
8021
8022
8023 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
8024 echo "configure:8025: checking for --enable-joystick" >&5
8025 no_cache=0
8026 # Check whether --enable-joystick or --disable-joystick was given.
8027 if test "${enable_joystick+set}" = set; then
8028 enableval="$enable_joystick"
8029
8030 if test "$enableval" = yes; then
8031 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
8032 else
8033 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
8034 fi
8035
8036 else
8037
8038 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
8039 if test "x$LINE" != x ; then
8040 eval "DEFAULT_$LINE"
8041 else
8042 no_cache=1
8043 fi
8044
8045 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
8046
8047 fi
8048
8049
8050 eval "$ac_cv_use_joystick"
8051 if test "$no_cache" != 1; then
8052 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
8053 fi
8054
8055 if test "$wxUSE_JOYSTICK" = yes; then
8056 echo "$ac_t""yes" 1>&6
8057 else
8058 echo "$ac_t""no" 1>&6
8059 fi
8060
8061
8062 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
8063 echo "configure:8064: checking for --enable-metafile" >&5
8064 no_cache=0
8065 # Check whether --enable-metafile or --disable-metafile was given.
8066 if test "${enable_metafile+set}" = set; then
8067 enableval="$enable_metafile"
8068
8069 if test "$enableval" = yes; then
8070 ac_cv_use_metafile='wxUSE_METAFILE=yes'
8071 else
8072 ac_cv_use_metafile='wxUSE_METAFILE=no'
8073 fi
8074
8075 else
8076
8077 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
8078 if test "x$LINE" != x ; then
8079 eval "DEFAULT_$LINE"
8080 else
8081 no_cache=1
8082 fi
8083
8084 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
8085
8086 fi
8087
8088
8089 eval "$ac_cv_use_metafile"
8090 if test "$no_cache" != 1; then
8091 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
8092 fi
8093
8094 if test "$wxUSE_METAFILE" = yes; then
8095 echo "$ac_t""yes" 1>&6
8096 else
8097 echo "$ac_t""no" 1>&6
8098 fi
8099
8100
8101 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
8102 echo "configure:8103: checking for --enable-dragimage" >&5
8103 no_cache=0
8104 # Check whether --enable-dragimage or --disable-dragimage was given.
8105 if test "${enable_dragimage+set}" = set; then
8106 enableval="$enable_dragimage"
8107
8108 if test "$enableval" = yes; then
8109 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
8110 else
8111 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
8112 fi
8113
8114 else
8115
8116 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
8117 if test "x$LINE" != x ; then
8118 eval "DEFAULT_$LINE"
8119 else
8120 no_cache=1
8121 fi
8122
8123 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
8124
8125 fi
8126
8127
8128 eval "$ac_cv_use_dragimage"
8129 if test "$no_cache" != 1; then
8130 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
8131 fi
8132
8133 if test "$wxUSE_DRAGIMAGE" = yes; then
8134 echo "$ac_t""yes" 1>&6
8135 else
8136 echo "$ac_t""no" 1>&6
8137 fi
8138
8139
8140
8141
8142 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
8143 echo "configure:8144: checking for --enable-palette" >&5
8144 no_cache=0
8145 # Check whether --enable-palette or --disable-palette was given.
8146 if test "${enable_palette+set}" = set; then
8147 enableval="$enable_palette"
8148
8149 if test "$enableval" = yes; then
8150 ac_cv_use_palette='wxUSE_PALETTE=yes'
8151 else
8152 ac_cv_use_palette='wxUSE_PALETTE=no'
8153 fi
8154
8155 else
8156
8157 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
8158 if test "x$LINE" != x ; then
8159 eval "DEFAULT_$LINE"
8160 else
8161 no_cache=1
8162 fi
8163
8164 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
8165
8166 fi
8167
8168
8169 eval "$ac_cv_use_palette"
8170 if test "$no_cache" != 1; then
8171 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
8172 fi
8173
8174 if test "$wxUSE_PALETTE" = yes; then
8175 echo "$ac_t""yes" 1>&6
8176 else
8177 echo "$ac_t""no" 1>&6
8178 fi
8179
8180
8181 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
8182 echo "configure:8183: checking for --enable-image" >&5
8183 no_cache=0
8184 # Check whether --enable-image or --disable-image was given.
8185 if test "${enable_image+set}" = set; then
8186 enableval="$enable_image"
8187
8188 if test "$enableval" = yes; then
8189 ac_cv_use_image='wxUSE_IMAGE=yes'
8190 else
8191 ac_cv_use_image='wxUSE_IMAGE=no'
8192 fi
8193
8194 else
8195
8196 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
8197 if test "x$LINE" != x ; then
8198 eval "DEFAULT_$LINE"
8199 else
8200 no_cache=1
8201 fi
8202
8203 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
8204
8205 fi
8206
8207
8208 eval "$ac_cv_use_image"
8209 if test "$no_cache" != 1; then
8210 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
8211 fi
8212
8213 if test "$wxUSE_IMAGE" = yes; then
8214 echo "$ac_t""yes" 1>&6
8215 else
8216 echo "$ac_t""no" 1>&6
8217 fi
8218
8219
8220 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
8221 echo "configure:8222: checking for --enable-gif" >&5
8222 no_cache=0
8223 # Check whether --enable-gif or --disable-gif was given.
8224 if test "${enable_gif+set}" = set; then
8225 enableval="$enable_gif"
8226
8227 if test "$enableval" = yes; then
8228 ac_cv_use_gif='wxUSE_GIF=yes'
8229 else
8230 ac_cv_use_gif='wxUSE_GIF=no'
8231 fi
8232
8233 else
8234
8235 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
8236 if test "x$LINE" != x ; then
8237 eval "DEFAULT_$LINE"
8238 else
8239 no_cache=1
8240 fi
8241
8242 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
8243
8244 fi
8245
8246
8247 eval "$ac_cv_use_gif"
8248 if test "$no_cache" != 1; then
8249 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
8250 fi
8251
8252 if test "$wxUSE_GIF" = yes; then
8253 echo "$ac_t""yes" 1>&6
8254 else
8255 echo "$ac_t""no" 1>&6
8256 fi
8257
8258
8259 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
8260 echo "configure:8261: checking for --enable-pcx" >&5
8261 no_cache=0
8262 # Check whether --enable-pcx or --disable-pcx was given.
8263 if test "${enable_pcx+set}" = set; then
8264 enableval="$enable_pcx"
8265
8266 if test "$enableval" = yes; then
8267 ac_cv_use_pcx='wxUSE_PCX=yes'
8268 else
8269 ac_cv_use_pcx='wxUSE_PCX=no'
8270 fi
8271
8272 else
8273
8274 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
8275 if test "x$LINE" != x ; then
8276 eval "DEFAULT_$LINE"
8277 else
8278 no_cache=1
8279 fi
8280
8281 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
8282
8283 fi
8284
8285
8286 eval "$ac_cv_use_pcx"
8287 if test "$no_cache" != 1; then
8288 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
8289 fi
8290
8291 if test "$wxUSE_PCX" = yes; then
8292 echo "$ac_t""yes" 1>&6
8293 else
8294 echo "$ac_t""no" 1>&6
8295 fi
8296
8297
8298 echo $ac_n "checking for --enable-iff""... $ac_c" 1>&6
8299 echo "configure:8300: checking for --enable-iff" >&5
8300 no_cache=0
8301 # Check whether --enable-iff or --disable-iff was given.
8302 if test "${enable_iff+set}" = set; then
8303 enableval="$enable_iff"
8304
8305 if test "$enableval" = yes; then
8306 ac_cv_use_iff='wxUSE_IFF=yes'
8307 else
8308 ac_cv_use_iff='wxUSE_IFF=no'
8309 fi
8310
8311 else
8312
8313 LINE=`grep "wxUSE_IFF" ${wx_arg_cache_file}`
8314 if test "x$LINE" != x ; then
8315 eval "DEFAULT_$LINE"
8316 else
8317 no_cache=1
8318 fi
8319
8320 ac_cv_use_iff='wxUSE_IFF='$DEFAULT_wxUSE_IFF
8321
8322 fi
8323
8324
8325 eval "$ac_cv_use_iff"
8326 if test "$no_cache" != 1; then
8327 echo $ac_cv_use_iff >> ${wx_arg_cache_file}.tmp
8328 fi
8329
8330 if test "$wxUSE_IFF" = yes; then
8331 echo "$ac_t""yes" 1>&6
8332 else
8333 echo "$ac_t""no" 1>&6
8334 fi
8335
8336
8337 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
8338 echo "configure:8339: checking for --enable-pnm" >&5
8339 no_cache=0
8340 # Check whether --enable-pnm or --disable-pnm was given.
8341 if test "${enable_pnm+set}" = set; then
8342 enableval="$enable_pnm"
8343
8344 if test "$enableval" = yes; then
8345 ac_cv_use_pnm='wxUSE_PNM=yes'
8346 else
8347 ac_cv_use_pnm='wxUSE_PNM=no'
8348 fi
8349
8350 else
8351
8352 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
8353 if test "x$LINE" != x ; then
8354 eval "DEFAULT_$LINE"
8355 else
8356 no_cache=1
8357 fi
8358
8359 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
8360
8361 fi
8362
8363
8364 eval "$ac_cv_use_pnm"
8365 if test "$no_cache" != 1; then
8366 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
8367 fi
8368
8369 if test "$wxUSE_PNM" = yes; then
8370 echo "$ac_t""yes" 1>&6
8371 else
8372 echo "$ac_t""no" 1>&6
8373 fi
8374
8375
8376 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
8377 echo "configure:8378: checking for --enable-xpm" >&5
8378 no_cache=0
8379 # Check whether --enable-xpm or --disable-xpm was given.
8380 if test "${enable_xpm+set}" = set; then
8381 enableval="$enable_xpm"
8382
8383 if test "$enableval" = yes; then
8384 ac_cv_use_xpm='wxUSE_XPM=yes'
8385 else
8386 ac_cv_use_xpm='wxUSE_XPM=no'
8387 fi
8388
8389 else
8390
8391 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
8392 if test "x$LINE" != x ; then
8393 eval "DEFAULT_$LINE"
8394 else
8395 no_cache=1
8396 fi
8397
8398 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
8399
8400 fi
8401
8402
8403 eval "$ac_cv_use_xpm"
8404 if test "$no_cache" != 1; then
8405 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
8406 fi
8407
8408 if test "$wxUSE_XPM" = yes; then
8409 echo "$ac_t""yes" 1>&6
8410 else
8411 echo "$ac_t""no" 1>&6
8412 fi
8413
8414
8415 echo $ac_n "checking for --enable-ico_cur""... $ac_c" 1>&6
8416 echo "configure:8417: checking for --enable-ico_cur" >&5
8417 no_cache=0
8418 # Check whether --enable-ico_cur or --disable-ico_cur was given.
8419 if test "${enable_ico_cur+set}" = set; then
8420 enableval="$enable_ico_cur"
8421
8422 if test "$enableval" = yes; then
8423 ac_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
8424 else
8425 ac_cv_use_ico_cur='wxUSE_ICO_CUR=no'
8426 fi
8427
8428 else
8429
8430 LINE=`grep "wxUSE_ICO_CUR" ${wx_arg_cache_file}`
8431 if test "x$LINE" != x ; then
8432 eval "DEFAULT_$LINE"
8433 else
8434 no_cache=1
8435 fi
8436
8437 ac_cv_use_ico_cur='wxUSE_ICO_CUR='$DEFAULT_wxUSE_ICO_CUR
8438
8439 fi
8440
8441
8442 eval "$ac_cv_use_ico_cur"
8443 if test "$no_cache" != 1; then
8444 echo $ac_cv_use_ico_cur >> ${wx_arg_cache_file}.tmp
8445 fi
8446
8447 if test "$wxUSE_ICO_CUR" = yes; then
8448 echo "$ac_t""yes" 1>&6
8449 else
8450 echo "$ac_t""no" 1>&6
8451 fi
8452
8453
8454 fi
8455
8456
8457 echo "saving argument cache $wx_arg_cache_file"
8458 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
8459
8460
8461
8462 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
8463 echo "configure:8464: checking for toolkit" >&5
8464
8465 if test "$wxUSE_GUI" = "yes"; then
8466
8467 if test "$USE_BEOS" = 1; then
8468 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8469 fi
8470
8471 if test "$TOOLKIT_GIVEN" = 1; then
8472 for toolkit in `echo $ALL_TOOLKITS`; do
8473 var=wxUSE_$toolkit
8474 eval "value=\$${var}"
8475 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8476 done
8477 else
8478 for toolkit in `echo $ALL_TOOLKITS`; do
8479 if test "$has_toolkit_in_cache" != 1; then
8480 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8481 else
8482 var=DEFAULT_wxUSE_$toolkit
8483 fi
8484 eval "wxUSE_$toolkit=\$${var}"
8485 done
8486 fi
8487
8488 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8489 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0}`
8490
8491 case "${host}" in
8492 *-pc-os2_emx | *-pc-os2-emx )
8493 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8494 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8495 LEX_STEM="lexyy"
8496 ;;
8497 *)
8498 PATH_IFS=':'
8499 LEX_STEM="lex.yy"
8500 ;;
8501 esac
8502
8503 case "$NUM_TOOLKITS" in
8504 1)
8505 ;;
8506 0)
8507 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8508 ;;
8509 *)
8510 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8511 esac
8512
8513 for toolkit in `echo $ALL_TOOLKITS`; do
8514 var=wxUSE_$toolkit
8515 eval "value=\$${var}"
8516 if test "x$value" != x; then
8517 cache_var=CACHE_$toolkit
8518 eval "cache=\$${cache_var}"
8519 if test "$cache" = 1; then
8520 echo "$var=$value" >> ${wx_arg_cache_file}
8521 fi
8522 if test "$value" = 1; then
8523 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8524 echo "$ac_t""$toolkit_echo" 1>&6
8525 fi
8526 fi
8527 done
8528 else
8529 PATH_IFS=':'
8530 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8531 fi
8532
8533
8534 cat > confcache <<\EOF
8535 # This file is a shell script that caches the results of configure
8536 # tests run on this system so they can be shared between configure
8537 # scripts and configure runs. It is not useful on other systems.
8538 # If it contains results you don't want to keep, you may remove or edit it.
8539 #
8540 # By default, configure uses ./config.cache as the cache file,
8541 # creating it if it does not exist already. You can give configure
8542 # the --cache-file=FILE option to use a different cache file; that is
8543 # what configure does when it calls configure scripts in
8544 # subdirectories, so they share the cache.
8545 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8546 # config.status only pays attention to the cache file if you give it the
8547 # --recheck option to rerun configure.
8548 #
8549 EOF
8550 # The following way of writing the cache mishandles newlines in values,
8551 # but we know of no workaround that is simple, portable, and efficient.
8552 # So, don't put newlines in cache variables' values.
8553 # Ultrix sh set writes to stderr and can't be redirected directly,
8554 # and sets the high bit in the cache file unless we assign to the vars.
8555 (set) 2>&1 |
8556 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8557 *ac_space=\ *)
8558 # `set' does not quote correctly, so add quotes (double-quote substitution
8559 # turns \\\\ into \\, and sed turns \\ into \).
8560 sed -n \
8561 -e "s/'/'\\\\''/g" \
8562 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8563 ;;
8564 *)
8565 # `set' quotes correctly as required by POSIX, so do not add quotes.
8566 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8567 ;;
8568 esac >> confcache
8569 if cmp -s $cache_file confcache; then
8570 :
8571 else
8572 if test -w $cache_file; then
8573 echo "updating cache $cache_file"
8574 cat confcache > $cache_file
8575 else
8576 echo "not updating unwritable cache $cache_file"
8577 fi
8578 fi
8579 rm -f confcache
8580
8581
8582 if test "$build" != "$host" ; then
8583 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
8584 CC=$host_alias-gcc
8585 CXX=$host_alias-c++
8586 AR=$host_alias-ar
8587 RANLIB=$host_alias-ranlib
8588 DLLTOOL=$host_alias-dlltool
8589 RESCOMP=$host_alias-windres
8590 LD=$host_alias-ld
8591 NM=$host_alias-nm
8592 STRIP=$host_alias-strip
8593 else
8594 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8595 fi
8596 fi
8597
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 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8822
8823 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8824 echo "configure:8825: checking how to run the C preprocessor" >&5
8825 # On Suns, sometimes $CPP names a directory.
8826 if test -n "$CPP" && test -d "$CPP"; then
8827 CPP=
8828 fi
8829 if test -z "$CPP"; then
8830 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8831 echo $ac_n "(cached) $ac_c" 1>&6
8832 else
8833 # This must be in double quotes, not single quotes, because CPP may get
8834 # substituted into the Makefile and "${CC-cc}" will confuse make.
8835 CPP="${CC-cc} -E"
8836 # On the NeXT, cc -E runs the code through the compiler's parser,
8837 # not just through cpp.
8838 cat > conftest.$ac_ext <<EOF
8839 #line 8840 "configure"
8840 #include "confdefs.h"
8841 #include <assert.h>
8842 Syntax Error
8843 EOF
8844 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8845 { (eval echo configure:8846: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8846 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8847 if test -z "$ac_err"; then
8848 :
8849 else
8850 echo "$ac_err" >&5
8851 echo "configure: failed program was:" >&5
8852 cat conftest.$ac_ext >&5
8853 rm -rf conftest*
8854 CPP="${CC-cc} -E -traditional-cpp"
8855 cat > conftest.$ac_ext <<EOF
8856 #line 8857 "configure"
8857 #include "confdefs.h"
8858 #include <assert.h>
8859 Syntax Error
8860 EOF
8861 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8862 { (eval echo configure:8863: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8863 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8864 if test -z "$ac_err"; then
8865 :
8866 else
8867 echo "$ac_err" >&5
8868 echo "configure: failed program was:" >&5
8869 cat conftest.$ac_ext >&5
8870 rm -rf conftest*
8871 CPP="${CC-cc} -nologo -E"
8872 cat > conftest.$ac_ext <<EOF
8873 #line 8874 "configure"
8874 #include "confdefs.h"
8875 #include <assert.h>
8876 Syntax Error
8877 EOF
8878 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8879 { (eval echo configure:8880: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8880 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8881 if test -z "$ac_err"; then
8882 :
8883 else
8884 echo "$ac_err" >&5
8885 echo "configure: failed program was:" >&5
8886 cat conftest.$ac_ext >&5
8887 rm -rf conftest*
8888 CPP=/lib/cpp
8889 fi
8890 rm -f conftest*
8891 fi
8892 rm -f conftest*
8893 fi
8894 rm -f conftest*
8895 ac_cv_prog_CPP="$CPP"
8896 fi
8897 CPP="$ac_cv_prog_CPP"
8898 else
8899 ac_cv_prog_CPP="$CPP"
8900 fi
8901 echo "$ac_t""$CPP" 1>&6
8902
8903 if test $ac_cv_prog_gcc = yes; then
8904 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8905 echo "configure:8906: checking whether ${CC-cc} needs -traditional" >&5
8906 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8907 echo $ac_n "(cached) $ac_c" 1>&6
8908 else
8909 ac_pattern="Autoconf.*'x'"
8910 cat > conftest.$ac_ext <<EOF
8911 #line 8912 "configure"
8912 #include "confdefs.h"
8913 #include <sgtty.h>
8914 Autoconf TIOCGETP
8915 EOF
8916 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8917 egrep "$ac_pattern" >/dev/null 2>&1; then
8918 rm -rf conftest*
8919 ac_cv_prog_gcc_traditional=yes
8920 else
8921 rm -rf conftest*
8922 ac_cv_prog_gcc_traditional=no
8923 fi
8924 rm -f conftest*
8925
8926
8927 if test $ac_cv_prog_gcc_traditional = no; then
8928 cat > conftest.$ac_ext <<EOF
8929 #line 8930 "configure"
8930 #include "confdefs.h"
8931 #include <termio.h>
8932 Autoconf TCGETA
8933 EOF
8934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8935 egrep "$ac_pattern" >/dev/null 2>&1; then
8936 rm -rf conftest*
8937 ac_cv_prog_gcc_traditional=yes
8938 fi
8939 rm -f conftest*
8940
8941 fi
8942 fi
8943
8944 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8945 if test $ac_cv_prog_gcc_traditional = yes; then
8946 CC="$CC -traditional"
8947 fi
8948 fi
8949
8950
8951
8952 ac_ext=C
8953 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8954 ac_cpp='$CXXCPP $CPPFLAGS'
8955 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8956 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8957 cross_compiling=$ac_cv_prog_cxx_cross
8958
8959
8960 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8961 do
8962 # Extract the first word of "$ac_prog", so it can be a program name with args.
8963 set dummy $ac_prog; ac_word=$2
8964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8965 echo "configure:8966: checking for $ac_word" >&5
8966 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8967 echo $ac_n "(cached) $ac_c" 1>&6
8968 else
8969 if test -n "$CXX"; then
8970 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8971 else
8972 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8973 ac_dummy="$PATH"
8974 for ac_dir in $ac_dummy; do
8975 test -z "$ac_dir" && ac_dir=.
8976 if test -f $ac_dir/$ac_word; then
8977 ac_cv_prog_CXX="$ac_prog"
8978 break
8979 fi
8980 done
8981 IFS="$ac_save_ifs"
8982 fi
8983 fi
8984 CXX="$ac_cv_prog_CXX"
8985 if test -n "$CXX"; then
8986 echo "$ac_t""$CXX" 1>&6
8987 else
8988 echo "$ac_t""no" 1>&6
8989 fi
8990
8991 test -n "$CXX" && break
8992 done
8993 test -n "$CXX" || CXX="gcc"
8994
8995
8996 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8997 echo "configure:8998: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8998
8999 ac_ext=C
9000 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9001 ac_cpp='$CXXCPP $CPPFLAGS'
9002 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9003 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9004 cross_compiling=$ac_cv_prog_cxx_cross
9005
9006 cat > conftest.$ac_ext << EOF
9007
9008 #line 9009 "configure"
9009 #include "confdefs.h"
9010
9011 int main(){return(0);}
9012 EOF
9013 if { (eval echo configure:9014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9014 ac_cv_prog_cxx_works=yes
9015 # If we can't run a trivial program, we are probably using a cross compiler.
9016 if (./conftest; exit) 2>/dev/null; then
9017 ac_cv_prog_cxx_cross=no
9018 else
9019 ac_cv_prog_cxx_cross=yes
9020 fi
9021 else
9022 echo "configure: failed program was:" >&5
9023 cat conftest.$ac_ext >&5
9024 ac_cv_prog_cxx_works=no
9025 fi
9026 rm -fr conftest*
9027 ac_ext=C
9028 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9029 ac_cpp='$CXXCPP $CPPFLAGS'
9030 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9031 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9032 cross_compiling=$ac_cv_prog_cxx_cross
9033
9034 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
9035 if test $ac_cv_prog_cxx_works = no; then
9036 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
9037 fi
9038 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
9039 echo "configure:9040: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
9040 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
9041 cross_compiling=$ac_cv_prog_cxx_cross
9042
9043 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
9044 echo "configure:9045: checking whether we are using GNU C++" >&5
9045 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
9046 echo $ac_n "(cached) $ac_c" 1>&6
9047 else
9048 cat > conftest.C <<EOF
9049 #ifdef __GNUC__
9050 yes;
9051 #endif
9052 EOF
9053 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:9054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
9054 ac_cv_prog_gxx=yes
9055 else
9056 ac_cv_prog_gxx=no
9057 fi
9058 fi
9059
9060 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
9061
9062 if test $ac_cv_prog_gxx = yes; then
9063 GXX=yes
9064 else
9065 GXX=
9066 fi
9067
9068 ac_test_CXXFLAGS="${CXXFLAGS+set}"
9069 ac_save_CXXFLAGS="$CXXFLAGS"
9070 CXXFLAGS=
9071 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
9072 echo "configure:9073: checking whether ${CXX-g++} accepts -g" >&5
9073 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
9074 echo $ac_n "(cached) $ac_c" 1>&6
9075 else
9076 echo 'void f(){}' > conftest.cc
9077 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
9078 ac_cv_prog_cxx_g=yes
9079 else
9080 ac_cv_prog_cxx_g=no
9081 fi
9082 rm -f conftest*
9083
9084 fi
9085
9086 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
9087 if test "$ac_test_CXXFLAGS" = set; then
9088 CXXFLAGS="$ac_save_CXXFLAGS"
9089 elif test $ac_cv_prog_cxx_g = yes; then
9090 if test "$GXX" = yes; then
9091 CXXFLAGS="-g -O2"
9092 else
9093 CXXFLAGS="-g"
9094 fi
9095 else
9096 if test "$GXX" = yes; then
9097 CXXFLAGS="-O2"
9098 else
9099 CXXFLAGS=
9100 fi
9101 fi
9102
9103
9104 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
9105
9106 ac_ext=c
9107 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
9108 ac_cpp='$CPP $CPPFLAGS'
9109 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
9110 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
9111 cross_compiling=$ac_cv_prog_cc_cross
9112
9113
9114 # Extract the first word of "ranlib", so it can be a program name with args.
9115 set dummy ranlib; ac_word=$2
9116 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9117 echo "configure:9118: checking for $ac_word" >&5
9118 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
9119 echo $ac_n "(cached) $ac_c" 1>&6
9120 else
9121 if test -n "$RANLIB"; then
9122 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9123 else
9124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9125 ac_dummy="$PATH"
9126 for ac_dir in $ac_dummy; do
9127 test -z "$ac_dir" && ac_dir=.
9128 if test -f $ac_dir/$ac_word; then
9129 ac_cv_prog_RANLIB="ranlib"
9130 break
9131 fi
9132 done
9133 IFS="$ac_save_ifs"
9134 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
9135 fi
9136 fi
9137 RANLIB="$ac_cv_prog_RANLIB"
9138 if test -n "$RANLIB"; then
9139 echo "$ac_t""$RANLIB" 1>&6
9140 else
9141 echo "$ac_t""no" 1>&6
9142 fi
9143
9144
9145 # Extract the first word of "ar", so it can be a program name with args.
9146 set dummy ar; ac_word=$2
9147 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9148 echo "configure:9149: checking for $ac_word" >&5
9149 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
9150 echo $ac_n "(cached) $ac_c" 1>&6
9151 else
9152 if test -n "$AR"; then
9153 ac_cv_prog_AR="$AR" # Let the user override the test.
9154 else
9155 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9156 ac_dummy="$PATH"
9157 for ac_dir in $ac_dummy; do
9158 test -z "$ac_dir" && ac_dir=.
9159 if test -f $ac_dir/$ac_word; then
9160 ac_cv_prog_AR="ar"
9161 break
9162 fi
9163 done
9164 IFS="$ac_save_ifs"
9165 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
9166 fi
9167 fi
9168 AR="$ac_cv_prog_AR"
9169 if test -n "$AR"; then
9170 echo "$ac_t""$AR" 1>&6
9171 else
9172 echo "$ac_t""no" 1>&6
9173 fi
9174
9175
9176 # Find a good install program. We prefer a C program (faster),
9177 # so one script is as good as another. But avoid the broken or
9178 # incompatible versions:
9179 # SysV /etc/install, /usr/sbin/install
9180 # SunOS /usr/etc/install
9181 # IRIX /sbin/install
9182 # AIX /bin/install
9183 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
9184 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
9185 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
9186 # ./install, which can be erroneously created by make from ./install.sh.
9187 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
9188 echo "configure:9189: checking for a BSD compatible install" >&5
9189 if test -z "$INSTALL"; then
9190 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
9191 echo $ac_n "(cached) $ac_c" 1>&6
9192 else
9193 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
9194 for ac_dir in $PATH; do
9195 # Account for people who put trailing slashes in PATH elements.
9196 case "$ac_dir/" in
9197 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
9198 *)
9199 # OSF1 and SCO ODT 3.0 have their own names for install.
9200 # Don't use installbsd from OSF since it installs stuff as root
9201 # by default.
9202 for ac_prog in ginstall scoinst install; do
9203 if test -f $ac_dir/$ac_prog; then
9204 if test $ac_prog = install &&
9205 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
9206 # AIX install. It has an incompatible calling convention.
9207 :
9208 else
9209 ac_cv_path_install="$ac_dir/$ac_prog -c"
9210 break 2
9211 fi
9212 fi
9213 done
9214 ;;
9215 esac
9216 done
9217 IFS="$ac_save_IFS"
9218
9219 fi
9220 if test "${ac_cv_path_install+set}" = set; then
9221 INSTALL="$ac_cv_path_install"
9222 else
9223 # As a last resort, use the slow shell script. We don't cache a
9224 # path for INSTALL within a source directory, because that will
9225 # break other packages using the cache if that directory is
9226 # removed, or if the path is relative.
9227 INSTALL="$ac_install_sh"
9228 fi
9229 fi
9230 echo "$ac_t""$INSTALL" 1>&6
9231
9232 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
9233 # It thinks the first close brace ends the variable substitution.
9234 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
9235
9236 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
9237
9238 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
9239
9240 case "${host}" in
9241
9242 powerpc-*-darwin* )
9243 INSTALL_PROGRAM="cp -fp"
9244 INSTALL_DATA="cp -fp"
9245 ;;
9246 *)
9247 ;;
9248 esac
9249
9250 # Extract the first word of "strip", so it can be a program name with args.
9251 set dummy strip; ac_word=$2
9252 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9253 echo "configure:9254: checking for $ac_word" >&5
9254 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
9255 echo $ac_n "(cached) $ac_c" 1>&6
9256 else
9257 if test -n "$STRIP"; then
9258 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9259 else
9260 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9261 ac_dummy="$PATH"
9262 for ac_dir in $ac_dummy; do
9263 test -z "$ac_dir" && ac_dir=.
9264 if test -f $ac_dir/$ac_word; then
9265 ac_cv_prog_STRIP="strip"
9266 break
9267 fi
9268 done
9269 IFS="$ac_save_ifs"
9270 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
9271 fi
9272 fi
9273 STRIP="$ac_cv_prog_STRIP"
9274 if test -n "$STRIP"; then
9275 echo "$ac_t""$STRIP" 1>&6
9276 else
9277 echo "$ac_t""no" 1>&6
9278 fi
9279
9280
9281 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
9282 echo "configure:9283: checking make for VPATH support" >&5
9283 cat - << EOF > confMake
9284 check : file
9285 cp \$? \$@
9286 cp \$? final_file
9287 EOF
9288
9289 if test ! -d sub ; then
9290 mkdir sub
9291 fi
9292 echo dummy > sub/file
9293 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
9294 RESULT=$?
9295 rm -f sub/file check final_file confMake
9296 rmdir sub
9297 if test "$RESULT" = 0; then
9298 echo "$ac_t""yes" 1>&6
9299 else
9300 echo "$ac_t""no" 1>&6
9301 { echo "configure: error:
9302 You need a make-utility that is able to use the variable
9303 VPATH correctly.
9304 If your version of make does not support VPATH correctly,
9305 please install GNU-make (possibly as gmake), and start
9306 configure with the following command:
9307 export MAKE=gmake; ./configure for sh-type shells
9308 setenv MAKE gmake; ./configure for csh-type shells
9309 Also please do remember to use gmake in this case every time
9310 you are trying to compile.
9311 " 1>&2; exit 1; }
9312 fi
9313
9314 for ac_prog in 'bison -y' byacc
9315 do
9316 # Extract the first word of "$ac_prog", so it can be a program name with args.
9317 set dummy $ac_prog; ac_word=$2
9318 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9319 echo "configure:9320: checking for $ac_word" >&5
9320 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
9321 echo $ac_n "(cached) $ac_c" 1>&6
9322 else
9323 if test -n "$YACC"; then
9324 ac_cv_prog_YACC="$YACC" # Let the user override the test.
9325 else
9326 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9327 ac_dummy="$PATH"
9328 for ac_dir in $ac_dummy; do
9329 test -z "$ac_dir" && ac_dir=.
9330 if test -f $ac_dir/$ac_word; then
9331 ac_cv_prog_YACC="$ac_prog"
9332 break
9333 fi
9334 done
9335 IFS="$ac_save_ifs"
9336 fi
9337 fi
9338 YACC="$ac_cv_prog_YACC"
9339 if test -n "$YACC"; then
9340 echo "$ac_t""$YACC" 1>&6
9341 else
9342 echo "$ac_t""no" 1>&6
9343 fi
9344
9345 test -n "$YACC" && break
9346 done
9347 test -n "$YACC" || YACC="yacc"
9348
9349
9350 # Extract the first word of "flex", so it can be a program name with args.
9351 set dummy flex; ac_word=$2
9352 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9353 echo "configure:9354: checking for $ac_word" >&5
9354 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
9355 echo $ac_n "(cached) $ac_c" 1>&6
9356 else
9357 if test -n "$LEX"; then
9358 ac_cv_prog_LEX="$LEX" # Let the user override the test.
9359 else
9360 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9361 ac_dummy="$PATH"
9362 for ac_dir in $ac_dummy; do
9363 test -z "$ac_dir" && ac_dir=.
9364 if test -f $ac_dir/$ac_word; then
9365 ac_cv_prog_LEX="flex"
9366 break
9367 fi
9368 done
9369 IFS="$ac_save_ifs"
9370 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
9371 fi
9372 fi
9373 LEX="$ac_cv_prog_LEX"
9374 if test -n "$LEX"; then
9375 echo "$ac_t""$LEX" 1>&6
9376 else
9377 echo "$ac_t""no" 1>&6
9378 fi
9379
9380 if test -z "$LEXLIB"
9381 then
9382 case "$LEX" in
9383 flex*) ac_lib=fl ;;
9384 *) ac_lib=l ;;
9385 esac
9386 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
9387 echo "configure:9388: checking for yywrap in -l$ac_lib" >&5
9388 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
9389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9390 echo $ac_n "(cached) $ac_c" 1>&6
9391 else
9392 ac_save_LIBS="$LIBS"
9393 LIBS="-l$ac_lib $LIBS"
9394 cat > conftest.$ac_ext <<EOF
9395 #line 9396 "configure"
9396 #include "confdefs.h"
9397 /* Override any gcc2 internal prototype to avoid an error. */
9398 /* We use char because int might match the return type of a gcc2
9399 builtin and then its argument prototype would still apply. */
9400 char yywrap();
9401
9402 int main() {
9403 yywrap()
9404 ; return 0; }
9405 EOF
9406 if { (eval echo configure:9407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9407 rm -rf conftest*
9408 eval "ac_cv_lib_$ac_lib_var=yes"
9409 else
9410 echo "configure: failed program was:" >&5
9411 cat conftest.$ac_ext >&5
9412 rm -rf conftest*
9413 eval "ac_cv_lib_$ac_lib_var=no"
9414 fi
9415 rm -f conftest*
9416 LIBS="$ac_save_LIBS"
9417
9418 fi
9419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9420 echo "$ac_t""yes" 1>&6
9421 LEXLIB="-l$ac_lib"
9422 else
9423 echo "$ac_t""no" 1>&6
9424 fi
9425
9426 fi
9427
9428
9429 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
9430 echo "configure:9431: checking whether ln -s works" >&5
9431 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
9432 echo $ac_n "(cached) $ac_c" 1>&6
9433 else
9434 rm -f conftestdata
9435 if ln -s X conftestdata 2>/dev/null
9436 then
9437 rm -f conftestdata
9438 ac_cv_prog_LN_S="ln -s"
9439 else
9440 ac_cv_prog_LN_S=ln
9441 fi
9442 fi
9443 LN_S="$ac_cv_prog_LN_S"
9444 if test "$ac_cv_prog_LN_S" = "ln -s"; then
9445 echo "$ac_t""yes" 1>&6
9446 else
9447 echo "$ac_t""no" 1>&6
9448 fi
9449
9450
9451
9452 SEARCH_INCLUDE="\
9453 /usr/local/include \
9454 \
9455 /usr/Motif-1.2/include \
9456 /usr/Motif-2.1/include \
9457 \
9458 /usr/include/Motif1.2 \
9459 /opt/xpm/include/X11 \
9460 /opt/GBxpm/include/ \
9461 /opt/GBxpm/X11/include/ \
9462 \
9463 /usr/Motif1.2/include \
9464 /usr/dt/include \
9465 /usr/openwin/include \
9466 \
9467 /usr/include/Xm \
9468 \
9469 /usr/X11R6/include \
9470 /usr/X11R6.4/include \
9471 /usr/X11R5/include \
9472 /usr/X11R4/include \
9473 \
9474 /usr/include/X11R6 \
9475 /usr/include/X11R5 \
9476 /usr/include/X11R4 \
9477 \
9478 /usr/local/X11R6/include \
9479 /usr/local/X11R5/include \
9480 /usr/local/X11R4/include \
9481 \
9482 /usr/local/include/X11R6 \
9483 /usr/local/include/X11R5 \
9484 /usr/local/include/X11R4 \
9485 \
9486 /usr/X11/include \
9487 /usr/include/X11 \
9488 /usr/local/X11/include \
9489 /usr/local/include/X11 \
9490 \
9491 /usr/X386/include \
9492 /usr/x386/include \
9493 /usr/XFree86/include/X11 \
9494 \
9495 X:/XFree86/include \
9496 X:/XFree86/include/X11 \
9497 \
9498 /usr/include/gtk \
9499 /usr/local/include/gtk \
9500 /usr/include/glib \
9501 /usr/local/include/glib \
9502 \
9503 /usr/include/qt \
9504 /usr/local/include/qt \
9505 \
9506 /usr/include/windows \
9507 /usr/include/wine \
9508 /usr/local/include/wine \
9509 \
9510 /usr/unsupported/include \
9511 /usr/athena/include \
9512 /usr/local/x11r5/include \
9513 /usr/lpp/Xamples/include \
9514 \
9515 /usr/openwin/share/include \
9516 \
9517 /usr/include"
9518
9519 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9520
9521
9522 cat > confcache <<\EOF
9523 # This file is a shell script that caches the results of configure
9524 # tests run on this system so they can be shared between configure
9525 # scripts and configure runs. It is not useful on other systems.
9526 # If it contains results you don't want to keep, you may remove or edit it.
9527 #
9528 # By default, configure uses ./config.cache as the cache file,
9529 # creating it if it does not exist already. You can give configure
9530 # the --cache-file=FILE option to use a different cache file; that is
9531 # what configure does when it calls configure scripts in
9532 # subdirectories, so they share the cache.
9533 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9534 # config.status only pays attention to the cache file if you give it the
9535 # --recheck option to rerun configure.
9536 #
9537 EOF
9538 # The following way of writing the cache mishandles newlines in values,
9539 # but we know of no workaround that is simple, portable, and efficient.
9540 # So, don't put newlines in cache variables' values.
9541 # Ultrix sh set writes to stderr and can't be redirected directly,
9542 # and sets the high bit in the cache file unless we assign to the vars.
9543 (set) 2>&1 |
9544 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9545 *ac_space=\ *)
9546 # `set' does not quote correctly, so add quotes (double-quote substitution
9547 # turns \\\\ into \\, and sed turns \\ into \).
9548 sed -n \
9549 -e "s/'/'\\\\''/g" \
9550 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9551 ;;
9552 *)
9553 # `set' quotes correctly as required by POSIX, so do not add quotes.
9554 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9555 ;;
9556 esac >> confcache
9557 if cmp -s $cache_file confcache; then
9558 :
9559 else
9560 if test -w $cache_file; then
9561 echo "updating cache $cache_file"
9562 cat confcache > $cache_file
9563 else
9564 echo "not updating unwritable cache $cache_file"
9565 fi
9566 fi
9567 rm -f confcache
9568
9569
9570
9571
9572 REGEX_INCLUDE=
9573 if test "$wxUSE_REGEX" != "no"; then
9574 cat >> confdefs.h <<\EOF
9575 #define wxUSE_REGEX 1
9576 EOF
9577
9578
9579 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9580 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
9581 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
9582 echo "configure:9583: checking for regex.h" >&5
9583 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9584 echo $ac_n "(cached) $ac_c" 1>&6
9585 else
9586 cat > conftest.$ac_ext <<EOF
9587 #line 9588 "configure"
9588 #include "confdefs.h"
9589 #include <regex.h>
9590 EOF
9591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9592 { (eval echo configure:9593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9593 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9594 if test -z "$ac_err"; then
9595 rm -rf conftest*
9596 eval "ac_cv_header_$ac_safe=yes"
9597 else
9598 echo "$ac_err" >&5
9599 echo "configure: failed program was:" >&5
9600 cat conftest.$ac_ext >&5
9601 rm -rf conftest*
9602 eval "ac_cv_header_$ac_safe=no"
9603 fi
9604 rm -f conftest*
9605 fi
9606 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9607 echo "$ac_t""yes" 1>&6
9608 for ac_func in regcomp
9609 do
9610 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9611 echo "configure:9612: checking for $ac_func" >&5
9612 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9613 echo $ac_n "(cached) $ac_c" 1>&6
9614 else
9615 cat > conftest.$ac_ext <<EOF
9616 #line 9617 "configure"
9617 #include "confdefs.h"
9618 /* System header to define __stub macros and hopefully few prototypes,
9619 which can conflict with char $ac_func(); below. */
9620 #include <assert.h>
9621 /* Override any gcc2 internal prototype to avoid an error. */
9622 /* We use char because int might match the return type of a gcc2
9623 builtin and then its argument prototype would still apply. */
9624 char $ac_func();
9625
9626 int main() {
9627
9628 /* The GNU C library defines this for functions which it implements
9629 to always fail with ENOSYS. Some functions are actually named
9630 something starting with __ and the normal name is an alias. */
9631 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9632 choke me
9633 #else
9634 $ac_func();
9635 #endif
9636
9637 ; return 0; }
9638 EOF
9639 if { (eval echo configure:9640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9640 rm -rf conftest*
9641 eval "ac_cv_func_$ac_func=yes"
9642 else
9643 echo "configure: failed program was:" >&5
9644 cat conftest.$ac_ext >&5
9645 rm -rf conftest*
9646 eval "ac_cv_func_$ac_func=no"
9647 fi
9648 rm -f conftest*
9649 fi
9650
9651 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9652 echo "$ac_t""yes" 1>&6
9653 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9654 cat >> confdefs.h <<EOF
9655 #define $ac_tr_func 1
9656 EOF
9657
9658 else
9659 echo "$ac_t""no" 1>&6
9660 fi
9661 done
9662
9663 else
9664 echo "$ac_t""no" 1>&6
9665 fi
9666
9667
9668 if test "x$ac_cv_func_regcomp" != "xyes"; then
9669 if test "$wxUSE_REGEX" = "sys" ; then
9670 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9671 else
9672 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9673 wxUSE_REGEX=builtin
9674 fi
9675 else
9676 wxUSE_REGEX=sys
9677 fi
9678 fi
9679
9680 if test "$wxUSE_REGEX" = "builtin" ; then
9681 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9682 fi
9683 fi
9684
9685
9686 ZLIB_INCLUDE=
9687 ZLIB_LINK=
9688 if test "$wxUSE_ZLIB" != "no" ; then
9689 cat >> confdefs.h <<\EOF
9690 #define wxUSE_ZLIB 1
9691 EOF
9692
9693
9694 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9695 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9696 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9697 echo "configure:9698: checking for zlib.h" >&5
9698 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9699 echo $ac_n "(cached) $ac_c" 1>&6
9700 else
9701 cat > conftest.$ac_ext <<EOF
9702 #line 9703 "configure"
9703 #include "confdefs.h"
9704 #include <zlib.h>
9705 EOF
9706 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9707 { (eval echo configure:9708: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9708 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9709 if test -z "$ac_err"; then
9710 rm -rf conftest*
9711 eval "ac_cv_header_$ac_safe=yes"
9712 else
9713 echo "$ac_err" >&5
9714 echo "configure: failed program was:" >&5
9715 cat conftest.$ac_ext >&5
9716 rm -rf conftest*
9717 eval "ac_cv_header_$ac_safe=no"
9718 fi
9719 rm -f conftest*
9720 fi
9721 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9722 echo "$ac_t""yes" 1>&6
9723 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9724 echo "configure:9725: checking for deflate in -lz" >&5
9725 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9726 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9727 echo $ac_n "(cached) $ac_c" 1>&6
9728 else
9729 ac_save_LIBS="$LIBS"
9730 LIBS="-lz $LIBS"
9731 cat > conftest.$ac_ext <<EOF
9732 #line 9733 "configure"
9733 #include "confdefs.h"
9734 /* Override any gcc2 internal prototype to avoid an error. */
9735 /* We use char because int might match the return type of a gcc2
9736 builtin and then its argument prototype would still apply. */
9737 char deflate();
9738
9739 int main() {
9740 deflate()
9741 ; return 0; }
9742 EOF
9743 if { (eval echo configure:9744: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9744 rm -rf conftest*
9745 eval "ac_cv_lib_$ac_lib_var=yes"
9746 else
9747 echo "configure: failed program was:" >&5
9748 cat conftest.$ac_ext >&5
9749 rm -rf conftest*
9750 eval "ac_cv_lib_$ac_lib_var=no"
9751 fi
9752 rm -f conftest*
9753 LIBS="$ac_save_LIBS"
9754
9755 fi
9756 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9757 echo "$ac_t""yes" 1>&6
9758 ZLIB_LINK=" -lz"
9759 else
9760 echo "$ac_t""no" 1>&6
9761 fi
9762
9763 else
9764 echo "$ac_t""no" 1>&6
9765 fi
9766
9767
9768 if test "x$ZLIB_LINK" = "x" ; then
9769 if test "$wxUSE_ZLIB" = "sys" ; then
9770 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9771 else
9772 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9773 wxUSE_ZLIB=builtin
9774 fi
9775 else
9776 wxUSE_ZLIB=sys
9777 fi
9778 fi
9779
9780 if test "$wxUSE_ZLIB" = "builtin" ; then
9781 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9782 fi
9783 fi
9784
9785
9786 PNG_INCLUDE=
9787 PNG_LINK=
9788 if test "$wxUSE_LIBPNG" != "no" ; then
9789 cat >> confdefs.h <<\EOF
9790 #define wxUSE_LIBPNG 1
9791 EOF
9792
9793
9794 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9795 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9796 wxUSE_LIBPNG=builtin
9797 fi
9798
9799 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9800 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9801 echo $ac_n "checking for png.h""... $ac_c" 1>&6
9802 echo "configure:9803: checking for png.h" >&5
9803 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9804 echo $ac_n "(cached) $ac_c" 1>&6
9805 else
9806 cat > conftest.$ac_ext <<EOF
9807 #line 9808 "configure"
9808 #include "confdefs.h"
9809 #include <png.h>
9810 EOF
9811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9812 { (eval echo configure:9813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9814 if test -z "$ac_err"; then
9815 rm -rf conftest*
9816 eval "ac_cv_header_$ac_safe=yes"
9817 else
9818 echo "$ac_err" >&5
9819 echo "configure: failed program was:" >&5
9820 cat conftest.$ac_ext >&5
9821 rm -rf conftest*
9822 eval "ac_cv_header_$ac_safe=no"
9823 fi
9824 rm -f conftest*
9825 fi
9826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9827 echo "$ac_t""yes" 1>&6
9828 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9829 echo "configure:9830: checking for png_check_sig in -lpng" >&5
9830 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9832 echo $ac_n "(cached) $ac_c" 1>&6
9833 else
9834 ac_save_LIBS="$LIBS"
9835 LIBS="-lpng -lz -lm $LIBS"
9836 cat > conftest.$ac_ext <<EOF
9837 #line 9838 "configure"
9838 #include "confdefs.h"
9839 /* Override any gcc2 internal prototype to avoid an error. */
9840 /* We use char because int might match the return type of a gcc2
9841 builtin and then its argument prototype would still apply. */
9842 char png_check_sig();
9843
9844 int main() {
9845 png_check_sig()
9846 ; return 0; }
9847 EOF
9848 if { (eval echo configure:9849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9849 rm -rf conftest*
9850 eval "ac_cv_lib_$ac_lib_var=yes"
9851 else
9852 echo "configure: failed program was:" >&5
9853 cat conftest.$ac_ext >&5
9854 rm -rf conftest*
9855 eval "ac_cv_lib_$ac_lib_var=no"
9856 fi
9857 rm -f conftest*
9858 LIBS="$ac_save_LIBS"
9859
9860 fi
9861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9862 echo "$ac_t""yes" 1>&6
9863 PNG_LINK=" -lpng"
9864 else
9865 echo "$ac_t""no" 1>&6
9866 fi
9867
9868
9869 else
9870 echo "$ac_t""no" 1>&6
9871 fi
9872
9873
9874 if test "x$PNG_LINK" = "x" ; then
9875 if test "$wxUSE_LIBPNG" = "sys" ; then
9876 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9877 else
9878 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9879 wxUSE_LIBPNG=builtin
9880 fi
9881 else
9882 wxUSE_LIBPNG=yes
9883 fi
9884 fi
9885
9886 if test "$wxUSE_LIBPNG" = "builtin" ; then
9887 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9888 fi
9889
9890 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9891 fi
9892
9893
9894 JPEG_INCLUDE=
9895 JPEG_LINK=
9896 if test "$wxUSE_LIBJPEG" != "no" ; then
9897 cat >> confdefs.h <<\EOF
9898 #define wxUSE_LIBJPEG 1
9899 EOF
9900
9901
9902 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9903 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9904 echo "configure:9905: checking for jpeglib.h" >&5
9905 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
9906 echo $ac_n "(cached) $ac_c" 1>&6
9907 else
9908 cat > conftest.$ac_ext <<EOF
9909 #line 9910 "configure"
9910 #include "confdefs.h"
9911
9912 #undef HAVE_STDLIB_H
9913 #include <stdio.h>
9914 #include <jpeglib.h>
9915
9916 int main() {
9917
9918
9919 ; return 0; }
9920 EOF
9921 if { (eval echo configure:9922: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9922 rm -rf conftest*
9923 ac_cv_header_jpeglib_h=yes
9924 else
9925 echo "configure: failed program was:" >&5
9926 cat conftest.$ac_ext >&5
9927 rm -rf conftest*
9928 ac_cv_header_jpeglib_h=no
9929
9930 fi
9931 rm -f conftest*
9932
9933 fi
9934
9935 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9936
9937 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9938 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
9939 echo "configure:9940: checking for jpeg_read_header in -ljpeg" >&5
9940 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9941 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9942 echo $ac_n "(cached) $ac_c" 1>&6
9943 else
9944 ac_save_LIBS="$LIBS"
9945 LIBS="-ljpeg $LIBS"
9946 cat > conftest.$ac_ext <<EOF
9947 #line 9948 "configure"
9948 #include "confdefs.h"
9949 /* Override any gcc2 internal prototype to avoid an error. */
9950 /* We use char because int might match the return type of a gcc2
9951 builtin and then its argument prototype would still apply. */
9952 char jpeg_read_header();
9953
9954 int main() {
9955 jpeg_read_header()
9956 ; return 0; }
9957 EOF
9958 if { (eval echo configure:9959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9959 rm -rf conftest*
9960 eval "ac_cv_lib_$ac_lib_var=yes"
9961 else
9962 echo "configure: failed program was:" >&5
9963 cat conftest.$ac_ext >&5
9964 rm -rf conftest*
9965 eval "ac_cv_lib_$ac_lib_var=no"
9966 fi
9967 rm -f conftest*
9968 LIBS="$ac_save_LIBS"
9969
9970 fi
9971 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9972 echo "$ac_t""yes" 1>&6
9973 JPEG_LINK=" -ljpeg"
9974 else
9975 echo "$ac_t""no" 1>&6
9976 fi
9977
9978 fi
9979
9980 if test "x$JPEG_LINK" = "x" ; then
9981 if test "$wxUSE_LIBJPEG" = "sys" ; then
9982 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9983 else
9984 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
9985 wxUSE_LIBJPEG=builtin
9986 fi
9987 else
9988 wxUSE_LIBJPEG=sys
9989 fi
9990 fi
9991
9992 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9993 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9994 fi
9995 fi
9996
9997
9998 TIFF_INCLUDE=
9999 TIFF_LINK=
10000 if test "$wxUSE_LIBTIFF" != "no" ; then
10001 cat >> confdefs.h <<\EOF
10002 #define wxUSE_LIBTIFF 1
10003 EOF
10004
10005
10006 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
10007 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
10008 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
10009 echo "configure:10010: checking for tiffio.h" >&5
10010 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10011 echo $ac_n "(cached) $ac_c" 1>&6
10012 else
10013 cat > conftest.$ac_ext <<EOF
10014 #line 10015 "configure"
10015 #include "confdefs.h"
10016 #include <tiffio.h>
10017 EOF
10018 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10019 { (eval echo configure:10020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10020 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10021 if test -z "$ac_err"; then
10022 rm -rf conftest*
10023 eval "ac_cv_header_$ac_safe=yes"
10024 else
10025 echo "$ac_err" >&5
10026 echo "configure: failed program was:" >&5
10027 cat conftest.$ac_ext >&5
10028 rm -rf conftest*
10029 eval "ac_cv_header_$ac_safe=no"
10030 fi
10031 rm -f conftest*
10032 fi
10033 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10034 echo "$ac_t""yes" 1>&6
10035 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
10036 echo "configure:10037: checking for TIFFError in -ltiff" >&5
10037 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
10038 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10039 echo $ac_n "(cached) $ac_c" 1>&6
10040 else
10041 ac_save_LIBS="$LIBS"
10042 LIBS="-ltiff -lm $LIBS"
10043 cat > conftest.$ac_ext <<EOF
10044 #line 10045 "configure"
10045 #include "confdefs.h"
10046 /* Override any gcc2 internal prototype to avoid an error. */
10047 /* We use char because int might match the return type of a gcc2
10048 builtin and then its argument prototype would still apply. */
10049 char TIFFError();
10050
10051 int main() {
10052 TIFFError()
10053 ; return 0; }
10054 EOF
10055 if { (eval echo configure:10056: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10056 rm -rf conftest*
10057 eval "ac_cv_lib_$ac_lib_var=yes"
10058 else
10059 echo "configure: failed program was:" >&5
10060 cat conftest.$ac_ext >&5
10061 rm -rf conftest*
10062 eval "ac_cv_lib_$ac_lib_var=no"
10063 fi
10064 rm -f conftest*
10065 LIBS="$ac_save_LIBS"
10066
10067 fi
10068 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10069 echo "$ac_t""yes" 1>&6
10070 TIFF_LINK=" -ltiff"
10071 else
10072 echo "$ac_t""no" 1>&6
10073 fi
10074
10075
10076 else
10077 echo "$ac_t""no" 1>&6
10078 fi
10079
10080
10081 if test "x$TIFF_LINK" = "x" ; then
10082 if test "$wxUSE_LIBTIFF" = "sys" ; then
10083 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
10084 else
10085 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
10086 wxUSE_LIBTIFF=builtin
10087 fi
10088 else
10089 wxUSE_LIBTIFF=sys
10090 fi
10091 fi
10092
10093 if test "$wxUSE_LIBTIFF" = "builtin" ; then
10094 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
10095 fi
10096 fi
10097
10098
10099 FREETYPE_INCLUDE=
10100 FREETYPE_LINK=
10101 if test "$wxUSE_FREETYPE" != "no" ; then
10102 cat >> confdefs.h <<\EOF
10103 #define wxUSE_FREETYPE 1
10104 EOF
10105
10106
10107 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
10108 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
10109 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
10110 echo "configure:10111: checking for freetype.h" >&5
10111 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10112 echo $ac_n "(cached) $ac_c" 1>&6
10113 else
10114 cat > conftest.$ac_ext <<EOF
10115 #line 10116 "configure"
10116 #include "confdefs.h"
10117 #include <freetype.h>
10118 EOF
10119 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10120 { (eval echo configure:10121: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10121 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10122 if test -z "$ac_err"; then
10123 rm -rf conftest*
10124 eval "ac_cv_header_$ac_safe=yes"
10125 else
10126 echo "$ac_err" >&5
10127 echo "configure: failed program was:" >&5
10128 cat conftest.$ac_ext >&5
10129 rm -rf conftest*
10130 eval "ac_cv_header_$ac_safe=no"
10131 fi
10132 rm -f conftest*
10133 fi
10134 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10135 echo "$ac_t""yes" 1>&6
10136 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
10137 echo "configure:10138: checking for FT_Render_Glyph in -lfreetype" >&5
10138 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
10139 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10140 echo $ac_n "(cached) $ac_c" 1>&6
10141 else
10142 ac_save_LIBS="$LIBS"
10143 LIBS="-lfreetype -lm $LIBS"
10144 cat > conftest.$ac_ext <<EOF
10145 #line 10146 "configure"
10146 #include "confdefs.h"
10147 /* Override any gcc2 internal prototype to avoid an error. */
10148 /* We use char because int might match the return type of a gcc2
10149 builtin and then its argument prototype would still apply. */
10150 char FT_Render_Glyph();
10151
10152 int main() {
10153 FT_Render_Glyph()
10154 ; return 0; }
10155 EOF
10156 if { (eval echo configure:10157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10157 rm -rf conftest*
10158 eval "ac_cv_lib_$ac_lib_var=yes"
10159 else
10160 echo "configure: failed program was:" >&5
10161 cat conftest.$ac_ext >&5
10162 rm -rf conftest*
10163 eval "ac_cv_lib_$ac_lib_var=no"
10164 fi
10165 rm -f conftest*
10166 LIBS="$ac_save_LIBS"
10167
10168 fi
10169 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10170 echo "$ac_t""yes" 1>&6
10171 FREETYPE_LINK=" -lfreetype"
10172 else
10173 echo "$ac_t""no" 1>&6
10174 fi
10175
10176
10177 else
10178 echo "$ac_t""no" 1>&6
10179 fi
10180
10181
10182 if test "x$FREETYPE_LINK" = "x" ; then
10183 if test "$wxUSE_FREETYPE" = "sys" ; then
10184 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
10185 else
10186 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
10187 wxUSE_FREETYPE=builtin
10188 fi
10189 else
10190 wxUSE_FREETYPE=sys
10191 fi
10192 fi
10193
10194 if test "$wxUSE_FREETYPE" = "builtin" ; then
10195 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
10196 fi
10197 fi
10198
10199
10200 AFMINSTALL=
10201
10202 TOOLKIT=
10203 TOOLKIT_INCLUDE=
10204 WIDGET_SET=
10205
10206 if test "$USE_WIN32" = 1 ; then
10207 for ac_hdr in w32api.h
10208 do
10209 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10210 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10211 echo "configure:10212: checking for $ac_hdr" >&5
10212 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10213 echo $ac_n "(cached) $ac_c" 1>&6
10214 else
10215 cat > conftest.$ac_ext <<EOF
10216 #line 10217 "configure"
10217 #include "confdefs.h"
10218 #include <$ac_hdr>
10219 EOF
10220 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10221 { (eval echo configure:10222: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10222 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10223 if test -z "$ac_err"; then
10224 rm -rf conftest*
10225 eval "ac_cv_header_$ac_safe=yes"
10226 else
10227 echo "$ac_err" >&5
10228 echo "configure: failed program was:" >&5
10229 cat conftest.$ac_ext >&5
10230 rm -rf conftest*
10231 eval "ac_cv_header_$ac_safe=no"
10232 fi
10233 rm -f conftest*
10234 fi
10235 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10236 echo "$ac_t""yes" 1>&6
10237 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
10238 cat >> confdefs.h <<EOF
10239 #define $ac_tr_hdr 1
10240 EOF
10241
10242 else
10243 echo "$ac_t""no" 1>&6
10244 fi
10245 done
10246
10247 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10248 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10249 echo "configure:10250: checking for windows.h" >&5
10250 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10251 echo $ac_n "(cached) $ac_c" 1>&6
10252 else
10253 cat > conftest.$ac_ext <<EOF
10254 #line 10255 "configure"
10255 #include "confdefs.h"
10256 #include <windows.h>
10257 EOF
10258 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10259 { (eval echo configure:10260: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10260 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10261 if test -z "$ac_err"; then
10262 rm -rf conftest*
10263 eval "ac_cv_header_$ac_safe=yes"
10264 else
10265 echo "$ac_err" >&5
10266 echo "configure: failed program was:" >&5
10267 cat conftest.$ac_ext >&5
10268 rm -rf conftest*
10269 eval "ac_cv_header_$ac_safe=no"
10270 fi
10271 rm -f conftest*
10272 fi
10273 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10274 echo "$ac_t""yes" 1>&6
10275 :
10276 else
10277 echo "$ac_t""no" 1>&6
10278
10279 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10280
10281 fi
10282
10283
10284 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
10285 echo "configure:10286: checking if w32api has good enough MSIE support" >&5
10286 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
10287 echo $ac_n "(cached) $ac_c" 1>&6
10288 else
10289
10290 cat > conftest.$ac_ext <<EOF
10291 #line 10292 "configure"
10292 #include "confdefs.h"
10293 #include <w32api.h>
10294 int main() {
10295
10296 #define wxCHECK_W32API_VERSION( major, minor ) \
10297 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
10298 && ( ( __W32API_MAJOR_VERSION > (major) ) \
10299 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
10300
10301 #if !wxCHECK_W32API_VERSION(1,1)
10302 #error You need w32api 1.1 or newer
10303 #endif
10304
10305 ; return 0; }
10306 EOF
10307 if { (eval echo configure:10308: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10308 rm -rf conftest*
10309
10310 wx_cv_w32api_win32_ie=yes
10311
10312 else
10313 echo "configure: failed program was:" >&5
10314 cat conftest.$ac_ext >&5
10315 rm -rf conftest*
10316
10317 wx_cv_w32api_win32_ie=no
10318
10319 fi
10320 rm -f conftest*
10321
10322 fi
10323
10324 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
10325 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
10326 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
10327 fi
10328
10329 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
10330
10331 case "${host}" in
10332 *-*-cygwin* )
10333 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
10334 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
10335 esac
10336
10337 if test "$wxUSE_ODBC" = "yes" ; then
10338 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
10339 fi
10340
10341 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
10342 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
10343 fi
10344
10345 if test "$wxUSE_GUI" = "yes"; then
10346 USE_GUI=1
10347
10348 GUI_TK_LIBRARY=
10349
10350 WXGTK12=
10351 WXGTK127=
10352 WXGTK20=
10353
10354 if test "$wxUSE_MSW" = 1 ; then
10355 TOOLKIT=MSW
10356 GUIDIST=MSW_DIST
10357
10358 case "${host}" in
10359 *-*-mingw32* )
10360 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
10361 esac
10362 fi
10363
10364 if test "$wxUSE_GTK" = 1; then
10365 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
10366 echo "configure:10367: checking for GTK+ version" >&5
10367
10368 gtk_version_cached=1
10369 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
10370 echo $ac_n "(cached) $ac_c" 1>&6
10371 else
10372
10373 gtk_version_cached=0
10374 echo "$ac_t""" 1>&6
10375
10376 GTK_MODULES=
10377 if test "$wxUSE_THREADS" = "yes"; then
10378 GTK_MODULES=gthread
10379 fi
10380
10381 wx_cv_lib_gtk=
10382 if test "x$wxUSE_GTK2" = "xyes"; then
10383 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10384 if test "${with_gtk_prefix+set}" = set; then
10385 withval="$with_gtk_prefix"
10386 gtk_config_prefix="$withval"
10387 else
10388 gtk_config_prefix=""
10389 fi
10390
10391 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10392 if test "${with_gtk_exec_prefix+set}" = set; then
10393 withval="$with_gtk_exec_prefix"
10394 gtk_config_exec_prefix="$withval"
10395 else
10396 gtk_config_exec_prefix=""
10397 fi
10398
10399 # Check whether --enable-gtktest or --disable-gtktest was given.
10400 if test "${enable_gtktest+set}" = set; then
10401 enableval="$enable_gtktest"
10402 :
10403 else
10404 enable_gtktest=yes
10405 fi
10406
10407
10408 for module in . $GTK_MODULES
10409 do
10410 case "$module" in
10411 gthread)
10412 gtk_config_args="$gtk_config_args gthread"
10413 ;;
10414 esac
10415 done
10416
10417 if test x$gtk_config_exec_prefix != x ; then
10418 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10419 if test x${GTK_CONFIG_2_0+set} != xset ; then
10420 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
10421 fi
10422 fi
10423 if test x$gtk_config_prefix != x ; then
10424 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10425 if test x${GTK_CONFIG_2_0+set} != xset ; then
10426 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
10427 fi
10428 fi
10429
10430 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
10431 set dummy gtk-config-2.0; ac_word=$2
10432 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10433 echo "configure:10434: checking for $ac_word" >&5
10434 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
10435 echo $ac_n "(cached) $ac_c" 1>&6
10436 else
10437 case "$GTK_CONFIG_2_0" in
10438 /*)
10439 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
10440 ;;
10441 ?:/*)
10442 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
10443 ;;
10444 *)
10445 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10446 ac_dummy="$PATH"
10447 for ac_dir in $ac_dummy; do
10448 test -z "$ac_dir" && ac_dir=.
10449 if test -f $ac_dir/$ac_word; then
10450 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
10451 break
10452 fi
10453 done
10454 IFS="$ac_save_ifs"
10455 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
10456 ;;
10457 esac
10458 fi
10459 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
10460 if test -n "$GTK_CONFIG_2_0"; then
10461 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
10462 else
10463 echo "$ac_t""no" 1>&6
10464 fi
10465
10466 min_gtk_version=1.3.1
10467 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10468 echo "configure:10469: checking for GTK - version >= $min_gtk_version" >&5
10469 no_gtk=""
10470 if test "$GTK_CONFIG_2_0" = "no" ; then
10471 no_gtk=yes
10472 else
10473 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10474 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10475 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10476 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10477 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10478 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10479 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10480 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10481 if test "x$enable_gtktest" = "xyes" ; then
10482 ac_save_CFLAGS="$CFLAGS"
10483 ac_save_LIBS="$LIBS"
10484 CFLAGS="$CFLAGS $GTK_CFLAGS"
10485 LIBS="$GTK_LIBS $LIBS"
10486 rm -f conf.gtktest
10487 if test "$cross_compiling" = yes; then
10488 echo $ac_n "cross compiling; assumed OK... $ac_c"
10489 else
10490 cat > conftest.$ac_ext <<EOF
10491 #line 10492 "configure"
10492 #include "confdefs.h"
10493
10494 #include <gtk/gtk.h>
10495 #include <stdio.h>
10496 #include <stdlib.h>
10497
10498 int
10499 main ()
10500 {
10501 int major, minor, micro;
10502 char *tmp_version;
10503
10504 system ("touch conf.gtktest");
10505
10506 /* HP/UX 9 (%@#!) writes to sscanf strings */
10507 tmp_version = g_strdup("$min_gtk_version");
10508 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10509 printf("%s, bad version string\n", "$min_gtk_version");
10510 exit(1);
10511 }
10512
10513 if ((gtk_major_version != $gtk_config_major_version) ||
10514 (gtk_minor_version != $gtk_config_minor_version) ||
10515 (gtk_micro_version != $gtk_config_micro_version))
10516 {
10517 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10518 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10519 gtk_major_version, gtk_minor_version, gtk_micro_version);
10520 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10521 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10522 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10523 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10524 printf("*** required on your system.\n");
10525 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10526 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10527 printf("*** before re-running configure\n");
10528 }
10529 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10530 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10531 (gtk_minor_version != GTK_MINOR_VERSION) ||
10532 (gtk_micro_version != GTK_MICRO_VERSION))
10533 {
10534 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10535 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10536 printf("*** library (version %d.%d.%d)\n",
10537 gtk_major_version, gtk_minor_version, gtk_micro_version);
10538 }
10539 #endif /* defined (GTK_MAJOR_VERSION) ... */
10540 else
10541 {
10542 if ((gtk_major_version > major) ||
10543 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10544 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10545 {
10546 return 0;
10547 }
10548 else
10549 {
10550 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10551 gtk_major_version, gtk_minor_version, gtk_micro_version);
10552 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10553 major, minor, micro);
10554 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10555 printf("***\n");
10556 printf("*** If you have already installed a sufficiently new version, this error\n");
10557 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10558 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10559 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10560 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10561 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10562 printf("*** so that the correct libraries are found at run-time))\n");
10563 }
10564 }
10565 return 1;
10566 }
10567
10568 EOF
10569 if { (eval echo configure:10570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10570 then
10571 :
10572 else
10573 echo "configure: failed program was:" >&5
10574 cat conftest.$ac_ext >&5
10575 rm -fr conftest*
10576 no_gtk=yes
10577 fi
10578 rm -fr conftest*
10579 fi
10580
10581 CFLAGS="$ac_save_CFLAGS"
10582 LIBS="$ac_save_LIBS"
10583 fi
10584 fi
10585 if test "x$no_gtk" = x ; then
10586 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
10587 wx_cv_lib_gtk=2.0
10588 else
10589 echo "$ac_t""no" 1>&6
10590 if test "$GTK_CONFIG_2_0" = "no" ; then
10591 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10592 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10593 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10594 echo "*** full path to gtk-config-2.0."
10595 else
10596 if test -f conf.gtktest ; then
10597 :
10598 else
10599 echo "*** Could not run GTK test program, checking why..."
10600 CFLAGS="$CFLAGS $GTK_CFLAGS"
10601 LIBS="$LIBS $GTK_LIBS"
10602 cat > conftest.$ac_ext <<EOF
10603 #line 10604 "configure"
10604 #include "confdefs.h"
10605
10606 #include <gtk/gtk.h>
10607 #include <stdio.h>
10608
10609 int main() {
10610 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10611 ; return 0; }
10612 EOF
10613 if { (eval echo configure:10614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10614 rm -rf conftest*
10615 echo "*** The test program compiled, but did not run. This usually means"
10616 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10617 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10618 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10619 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10620 echo "*** is required on your system"
10621 echo "***"
10622 echo "*** If you have an old version installed, it is best to remove it, although"
10623 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10624 echo "***"
10625 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10626 echo "*** came with the system with the command"
10627 echo "***"
10628 echo "*** rpm --erase --nodeps gtk gtk-devel"
10629 else
10630 echo "configure: failed program was:" >&5
10631 cat conftest.$ac_ext >&5
10632 rm -rf conftest*
10633 echo "*** The test program failed to compile or link. See the file config.log for the"
10634 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10635 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10636 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
10637 fi
10638 rm -f conftest*
10639 CFLAGS="$ac_save_CFLAGS"
10640 LIBS="$ac_save_LIBS"
10641 fi
10642 fi
10643 GTK_CFLAGS=""
10644 GTK_LIBS=""
10645 :
10646 fi
10647
10648
10649 rm -f conf.gtktest
10650
10651 fi
10652
10653 if test -z "$wx_cv_lib_gtk"; then
10654 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10655 if test "${with_gtk_prefix+set}" = set; then
10656 withval="$with_gtk_prefix"
10657 gtk_config_prefix="$withval"
10658 else
10659 gtk_config_prefix=""
10660 fi
10661
10662 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10663 if test "${with_gtk_exec_prefix+set}" = set; then
10664 withval="$with_gtk_exec_prefix"
10665 gtk_config_exec_prefix="$withval"
10666 else
10667 gtk_config_exec_prefix=""
10668 fi
10669
10670 # Check whether --enable-gtktest or --disable-gtktest was given.
10671 if test "${enable_gtktest+set}" = set; then
10672 enableval="$enable_gtktest"
10673 :
10674 else
10675 enable_gtktest=yes
10676 fi
10677
10678
10679 for module in . $GTK_MODULES
10680 do
10681 case "$module" in
10682 gthread)
10683 gtk_config_args="$gtk_config_args gthread"
10684 ;;
10685 esac
10686 done
10687
10688 if test x$gtk_config_exec_prefix != x ; then
10689 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10690 if test x${GTK_CONFIG+set} != xset ; then
10691 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10692 fi
10693 fi
10694 if test x$gtk_config_prefix != x ; then
10695 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10696 if test x${GTK_CONFIG+set} != xset ; then
10697 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10698 fi
10699 fi
10700
10701 # Extract the first word of "gtk-config", so it can be a program name with args.
10702 set dummy gtk-config; ac_word=$2
10703 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10704 echo "configure:10705: checking for $ac_word" >&5
10705 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10706 echo $ac_n "(cached) $ac_c" 1>&6
10707 else
10708 case "$GTK_CONFIG" in
10709 /*)
10710 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10711 ;;
10712 ?:/*)
10713 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10714 ;;
10715 *)
10716 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10717 ac_dummy="$PATH"
10718 for ac_dir in $ac_dummy; do
10719 test -z "$ac_dir" && ac_dir=.
10720 if test -f $ac_dir/$ac_word; then
10721 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10722 break
10723 fi
10724 done
10725 IFS="$ac_save_ifs"
10726 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10727 ;;
10728 esac
10729 fi
10730 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10731 if test -n "$GTK_CONFIG"; then
10732 echo "$ac_t""$GTK_CONFIG" 1>&6
10733 else
10734 echo "$ac_t""no" 1>&6
10735 fi
10736
10737 min_gtk_version=1.2.7
10738 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10739 echo "configure:10740: checking for GTK - version >= $min_gtk_version" >&5
10740 no_gtk=""
10741 if test "$GTK_CONFIG" = "no" ; then
10742 no_gtk=yes
10743 else
10744 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10745 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10746 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10747 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10748 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10749 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10750 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10751 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10752 if test "x$enable_gtktest" = "xyes" ; then
10753 ac_save_CFLAGS="$CFLAGS"
10754 ac_save_LIBS="$LIBS"
10755 CFLAGS="$CFLAGS $GTK_CFLAGS"
10756 LIBS="$GTK_LIBS $LIBS"
10757 rm -f conf.gtktest
10758 if test "$cross_compiling" = yes; then
10759 echo $ac_n "cross compiling; assumed OK... $ac_c"
10760 else
10761 cat > conftest.$ac_ext <<EOF
10762 #line 10763 "configure"
10763 #include "confdefs.h"
10764
10765 #include <gtk/gtk.h>
10766 #include <stdio.h>
10767 #include <stdlib.h>
10768
10769 int
10770 main ()
10771 {
10772 int major, minor, micro;
10773 char *tmp_version;
10774
10775 system ("touch conf.gtktest");
10776
10777 /* HP/UX 9 (%@#!) writes to sscanf strings */
10778 tmp_version = g_strdup("$min_gtk_version");
10779 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10780 printf("%s, bad version string\n", "$min_gtk_version");
10781 exit(1);
10782 }
10783
10784 if ((gtk_major_version != $gtk_config_major_version) ||
10785 (gtk_minor_version != $gtk_config_minor_version) ||
10786 (gtk_micro_version != $gtk_config_micro_version))
10787 {
10788 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10789 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10790 gtk_major_version, gtk_minor_version, gtk_micro_version);
10791 printf ("*** was found! If gtk-config was correct, then it is best\n");
10792 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10793 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10794 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10795 printf("*** required on your system.\n");
10796 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10797 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10798 printf("*** before re-running configure\n");
10799 }
10800 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10801 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10802 (gtk_minor_version != GTK_MINOR_VERSION) ||
10803 (gtk_micro_version != GTK_MICRO_VERSION))
10804 {
10805 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10806 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10807 printf("*** library (version %d.%d.%d)\n",
10808 gtk_major_version, gtk_minor_version, gtk_micro_version);
10809 }
10810 #endif /* defined (GTK_MAJOR_VERSION) ... */
10811 else
10812 {
10813 if ((gtk_major_version > major) ||
10814 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10815 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10816 {
10817 return 0;
10818 }
10819 else
10820 {
10821 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10822 gtk_major_version, gtk_minor_version, gtk_micro_version);
10823 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10824 major, minor, micro);
10825 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10826 printf("***\n");
10827 printf("*** If you have already installed a sufficiently new version, this error\n");
10828 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10829 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10830 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10831 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10832 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10833 printf("*** so that the correct libraries are found at run-time))\n");
10834 }
10835 }
10836 return 1;
10837 }
10838
10839 EOF
10840 if { (eval echo configure:10841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10841 then
10842 :
10843 else
10844 echo "configure: failed program was:" >&5
10845 cat conftest.$ac_ext >&5
10846 rm -fr conftest*
10847 no_gtk=yes
10848 fi
10849 rm -fr conftest*
10850 fi
10851
10852 CFLAGS="$ac_save_CFLAGS"
10853 LIBS="$ac_save_LIBS"
10854 fi
10855 fi
10856 if test "x$no_gtk" = x ; then
10857 echo "$ac_t""yes" 1>&6
10858 wx_cv_lib_gtk=1.2.7
10859 else
10860 echo "$ac_t""no" 1>&6
10861 if test "$GTK_CONFIG" = "no" ; then
10862 echo "*** The gtk-config script installed by GTK could not be found"
10863 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10864 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10865 echo "*** full path to gtk-config."
10866 else
10867 if test -f conf.gtktest ; then
10868 :
10869 else
10870 echo "*** Could not run GTK test program, checking why..."
10871 CFLAGS="$CFLAGS $GTK_CFLAGS"
10872 LIBS="$LIBS $GTK_LIBS"
10873 cat > conftest.$ac_ext <<EOF
10874 #line 10875 "configure"
10875 #include "confdefs.h"
10876
10877 #include <gtk/gtk.h>
10878 #include <stdio.h>
10879
10880 int main() {
10881 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10882 ; return 0; }
10883 EOF
10884 if { (eval echo configure:10885: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10885 rm -rf conftest*
10886 echo "*** The test program compiled, but did not run. This usually means"
10887 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10888 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10889 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10890 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10891 echo "*** is required on your system"
10892 echo "***"
10893 echo "*** If you have an old version installed, it is best to remove it, although"
10894 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10895 echo "***"
10896 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10897 echo "*** came with the system with the command"
10898 echo "***"
10899 echo "*** rpm --erase --nodeps gtk gtk-devel"
10900 else
10901 echo "configure: failed program was:" >&5
10902 cat conftest.$ac_ext >&5
10903 rm -rf conftest*
10904 echo "*** The test program failed to compile or link. See the file config.log for the"
10905 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10906 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10907 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10908 fi
10909 rm -f conftest*
10910 CFLAGS="$ac_save_CFLAGS"
10911 LIBS="$ac_save_LIBS"
10912 fi
10913 fi
10914 GTK_CFLAGS=""
10915 GTK_LIBS=""
10916 :
10917 fi
10918
10919
10920 rm -f conf.gtktest
10921
10922 fi
10923
10924 if test -z "$wx_cv_lib_gtk"; then
10925 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10926 if test "${with_gtk_prefix+set}" = set; then
10927 withval="$with_gtk_prefix"
10928 gtk_config_prefix="$withval"
10929 else
10930 gtk_config_prefix=""
10931 fi
10932
10933 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10934 if test "${with_gtk_exec_prefix+set}" = set; then
10935 withval="$with_gtk_exec_prefix"
10936 gtk_config_exec_prefix="$withval"
10937 else
10938 gtk_config_exec_prefix=""
10939 fi
10940
10941 # Check whether --enable-gtktest or --disable-gtktest was given.
10942 if test "${enable_gtktest+set}" = set; then
10943 enableval="$enable_gtktest"
10944 :
10945 else
10946 enable_gtktest=yes
10947 fi
10948
10949
10950 for module in . $GTK_MODULES
10951 do
10952 case "$module" in
10953 gthread)
10954 gtk_config_args="$gtk_config_args gthread"
10955 ;;
10956 esac
10957 done
10958
10959 if test x$gtk_config_exec_prefix != x ; then
10960 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10961 if test x${GTK_CONFIG+set} != xset ; then
10962 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10963 fi
10964 fi
10965 if test x$gtk_config_prefix != x ; then
10966 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10967 if test x${GTK_CONFIG+set} != xset ; then
10968 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10969 fi
10970 fi
10971
10972 # Extract the first word of "gtk-config", so it can be a program name with args.
10973 set dummy gtk-config; ac_word=$2
10974 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10975 echo "configure:10976: checking for $ac_word" >&5
10976 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10977 echo $ac_n "(cached) $ac_c" 1>&6
10978 else
10979 case "$GTK_CONFIG" in
10980 /*)
10981 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10982 ;;
10983 ?:/*)
10984 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10985 ;;
10986 *)
10987 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10988 ac_dummy="$PATH"
10989 for ac_dir in $ac_dummy; do
10990 test -z "$ac_dir" && ac_dir=.
10991 if test -f $ac_dir/$ac_word; then
10992 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10993 break
10994 fi
10995 done
10996 IFS="$ac_save_ifs"
10997 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10998 ;;
10999 esac
11000 fi
11001 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
11002 if test -n "$GTK_CONFIG"; then
11003 echo "$ac_t""$GTK_CONFIG" 1>&6
11004 else
11005 echo "$ac_t""no" 1>&6
11006 fi
11007
11008 min_gtk_version=1.2.3
11009 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
11010 echo "configure:11011: checking for GTK - version >= $min_gtk_version" >&5
11011 no_gtk=""
11012 if test "$GTK_CONFIG" = "no" ; then
11013 no_gtk=yes
11014 else
11015 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
11016 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
11017 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
11018 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11019 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
11020 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11021 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
11022 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11023 if test "x$enable_gtktest" = "xyes" ; then
11024 ac_save_CFLAGS="$CFLAGS"
11025 ac_save_LIBS="$LIBS"
11026 CFLAGS="$CFLAGS $GTK_CFLAGS"
11027 LIBS="$GTK_LIBS $LIBS"
11028 rm -f conf.gtktest
11029 if test "$cross_compiling" = yes; then
11030 echo $ac_n "cross compiling; assumed OK... $ac_c"
11031 else
11032 cat > conftest.$ac_ext <<EOF
11033 #line 11034 "configure"
11034 #include "confdefs.h"
11035
11036 #include <gtk/gtk.h>
11037 #include <stdio.h>
11038 #include <stdlib.h>
11039
11040 int
11041 main ()
11042 {
11043 int major, minor, micro;
11044 char *tmp_version;
11045
11046 system ("touch conf.gtktest");
11047
11048 /* HP/UX 9 (%@#!) writes to sscanf strings */
11049 tmp_version = g_strdup("$min_gtk_version");
11050 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11051 printf("%s, bad version string\n", "$min_gtk_version");
11052 exit(1);
11053 }
11054
11055 if ((gtk_major_version != $gtk_config_major_version) ||
11056 (gtk_minor_version != $gtk_config_minor_version) ||
11057 (gtk_micro_version != $gtk_config_micro_version))
11058 {
11059 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
11060 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
11061 gtk_major_version, gtk_minor_version, gtk_micro_version);
11062 printf ("*** was found! If gtk-config was correct, then it is best\n");
11063 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
11064 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
11065 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
11066 printf("*** required on your system.\n");
11067 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
11068 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
11069 printf("*** before re-running configure\n");
11070 }
11071 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
11072 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
11073 (gtk_minor_version != GTK_MINOR_VERSION) ||
11074 (gtk_micro_version != GTK_MICRO_VERSION))
11075 {
11076 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
11077 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
11078 printf("*** library (version %d.%d.%d)\n",
11079 gtk_major_version, gtk_minor_version, gtk_micro_version);
11080 }
11081 #endif /* defined (GTK_MAJOR_VERSION) ... */
11082 else
11083 {
11084 if ((gtk_major_version > major) ||
11085 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
11086 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
11087 {
11088 return 0;
11089 }
11090 else
11091 {
11092 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
11093 gtk_major_version, gtk_minor_version, gtk_micro_version);
11094 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
11095 major, minor, micro);
11096 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
11097 printf("***\n");
11098 printf("*** If you have already installed a sufficiently new version, this error\n");
11099 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
11100 printf("*** being found. The easiest way to fix this is to remove the old version\n");
11101 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
11102 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
11103 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
11104 printf("*** so that the correct libraries are found at run-time))\n");
11105 }
11106 }
11107 return 1;
11108 }
11109
11110 EOF
11111 if { (eval echo configure:11112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11112 then
11113 :
11114 else
11115 echo "configure: failed program was:" >&5
11116 cat conftest.$ac_ext >&5
11117 rm -fr conftest*
11118 no_gtk=yes
11119 fi
11120 rm -fr conftest*
11121 fi
11122
11123 CFLAGS="$ac_save_CFLAGS"
11124 LIBS="$ac_save_LIBS"
11125 fi
11126 fi
11127 if test "x$no_gtk" = x ; then
11128 echo "$ac_t""yes" 1>&6
11129 wx_cv_lib_gtk=1.2.3
11130 else
11131 echo "$ac_t""no" 1>&6
11132 if test "$GTK_CONFIG" = "no" ; then
11133 echo "*** The gtk-config script installed by GTK could not be found"
11134 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
11135 echo "*** your path, or set the GTK_CONFIG environment variable to the"
11136 echo "*** full path to gtk-config."
11137 else
11138 if test -f conf.gtktest ; then
11139 :
11140 else
11141 echo "*** Could not run GTK test program, checking why..."
11142 CFLAGS="$CFLAGS $GTK_CFLAGS"
11143 LIBS="$LIBS $GTK_LIBS"
11144 cat > conftest.$ac_ext <<EOF
11145 #line 11146 "configure"
11146 #include "confdefs.h"
11147
11148 #include <gtk/gtk.h>
11149 #include <stdio.h>
11150
11151 int main() {
11152 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
11153 ; return 0; }
11154 EOF
11155 if { (eval echo configure:11156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11156 rm -rf conftest*
11157 echo "*** The test program compiled, but did not run. This usually means"
11158 echo "*** that the run-time linker is not finding GTK or finding the wrong"
11159 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
11160 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11161 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11162 echo "*** is required on your system"
11163 echo "***"
11164 echo "*** If you have an old version installed, it is best to remove it, although"
11165 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11166 echo "***"
11167 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
11168 echo "*** came with the system with the command"
11169 echo "***"
11170 echo "*** rpm --erase --nodeps gtk gtk-devel"
11171 else
11172 echo "configure: failed program was:" >&5
11173 cat conftest.$ac_ext >&5
11174 rm -rf conftest*
11175 echo "*** The test program failed to compile or link. See the file config.log for the"
11176 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
11177 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
11178 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
11179 fi
11180 rm -f conftest*
11181 CFLAGS="$ac_save_CFLAGS"
11182 LIBS="$ac_save_LIBS"
11183 fi
11184 fi
11185 GTK_CFLAGS=""
11186 GTK_LIBS=""
11187 :
11188 fi
11189
11190
11191 rm -f conf.gtktest
11192
11193 fi
11194
11195 if test -z "$wx_cv_lib_gtk"; then
11196 wx_cv_lib_gtk=none
11197 else
11198 wx_cv_cflags_gtk=$GTK_CFLAGS
11199 wx_cv_libs_gtk=$GTK_LIBS
11200 fi
11201
11202
11203 fi
11204
11205
11206 if test "$gtk_version_cached" = 1; then
11207 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
11208 fi
11209
11210 case "$wx_cv_lib_gtk" in
11211 2.0) WXGTK20=1
11212 ;;
11213 1.2.7) WXGTK127=1
11214 WXGTK12=1
11215 ;;
11216 1.2.3) WXGTK12=1
11217 ;;
11218 *) { echo "configure: error:
11219 Please check that gtk-config is in path, the directory
11220 where GTK+ libraries are installed (returned by
11221 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
11222 equivalent variable and GTK+ is version 1.2.3 or above.
11223 " 1>&2; exit 1; }
11224 ;;
11225 esac
11226
11227 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
11228 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
11229
11230 AFMINSTALL=afminstall
11231 TOOLKIT=GTK
11232 GUIDIST=GTK_DIST
11233
11234 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
11235 echo "configure:11236: checking for gdk_im_open in -lgdk" >&5
11236 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
11237 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11238 echo $ac_n "(cached) $ac_c" 1>&6
11239 else
11240 ac_save_LIBS="$LIBS"
11241 LIBS="-lgdk $LIBS"
11242 cat > conftest.$ac_ext <<EOF
11243 #line 11244 "configure"
11244 #include "confdefs.h"
11245 /* Override any gcc2 internal prototype to avoid an error. */
11246 /* We use char because int might match the return type of a gcc2
11247 builtin and then its argument prototype would still apply. */
11248 char gdk_im_open();
11249
11250 int main() {
11251 gdk_im_open()
11252 ; return 0; }
11253 EOF
11254 if { (eval echo configure:11255: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11255 rm -rf conftest*
11256 eval "ac_cv_lib_$ac_lib_var=yes"
11257 else
11258 echo "configure: failed program was:" >&5
11259 cat conftest.$ac_ext >&5
11260 rm -rf conftest*
11261 eval "ac_cv_lib_$ac_lib_var=no"
11262 fi
11263 rm -f conftest*
11264 LIBS="$ac_save_LIBS"
11265
11266 fi
11267 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11268 echo "$ac_t""yes" 1>&6
11269 cat >> confdefs.h <<\EOF
11270 #define HAVE_XIM 1
11271 EOF
11272
11273 else
11274 echo "$ac_t""no" 1>&6
11275 fi
11276
11277 fi
11278
11279 if test "$wxUSE_MGL" = 1; then
11280 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
11281 echo "configure:11282: checking for SciTech MGL library" >&5
11282 if test "x$MGL_ROOT" = x ; then
11283 echo "$ac_t""not found" 1>&6
11284 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
11285 else
11286 echo "$ac_t""$MGL_ROOT" 1>&6
11287 fi
11288
11289 case "${host}" in
11290 *-*-linux* )
11291 mgl_os=linux/gcc/glibc
11292 ;;
11293 *-pc-msdosdjgpp )
11294 mgl_os=dos32/dj2
11295 ;;
11296 *)
11297 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
11298 esac
11299
11300 mgl_lib_type=""
11301
11302 if test "$wxUSE_DEBUG_FLAG" = yes ; then
11303 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
11304 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
11305 mgl_lib_type=debug
11306 fi
11307 fi
11308 if test "x$mgl_lib_type" = x ; then
11309 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
11310 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
11311 mgl_lib_type=release
11312 else
11313 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
11314 fi
11315 fi
11316
11317 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
11318 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
11319
11320 AFMINSTALL=afminstall
11321 TOOLKIT=MGL
11322 GUIDIST=MGL_DIST
11323 fi
11324
11325 if test "$wxUSE_MICROWIN" = 1; then
11326 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
11327 echo "configure:11328: checking for MicroWindows" >&5
11328 if test "x$MICROWINDOWS" = x ; then
11329 echo "$ac_t""not found" 1>&6
11330 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
11331 else
11332 echo "$ac_t""$MICROWINDOWS" 1>&6
11333 fi
11334
11335 if test -f $MICROWINDOWS/lib/libmwin.a; then
11336 echo "$ac_t""MicroWindows' libraries found." 1>&6
11337 else
11338 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
11339 fi
11340
11341 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
11342 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
11343
11344 AFMINSTALL=afminstall
11345 TOOLKIT=MICROWIN
11346 GUIDIST=MICROWIN_DIST
11347
11348 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
11349 fi
11350
11351 if test "$wxUSE_WINE" = 1; then
11352 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
11353 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
11354 echo "configure:11355: checking for windows.h" >&5
11355 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11356 echo $ac_n "(cached) $ac_c" 1>&6
11357 else
11358 cat > conftest.$ac_ext <<EOF
11359 #line 11360 "configure"
11360 #include "confdefs.h"
11361 #include <windows.h>
11362 EOF
11363 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11364 { (eval echo configure:11365: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11365 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11366 if test -z "$ac_err"; then
11367 rm -rf conftest*
11368 eval "ac_cv_header_$ac_safe=yes"
11369 else
11370 echo "$ac_err" >&5
11371 echo "configure: failed program was:" >&5
11372 cat conftest.$ac_ext >&5
11373 rm -rf conftest*
11374 eval "ac_cv_header_$ac_safe=no"
11375 fi
11376 rm -f conftest*
11377 fi
11378 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11379 echo "$ac_t""yes" 1>&6
11380 :
11381 else
11382 echo "$ac_t""no" 1>&6
11383
11384 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
11385
11386 fi
11387
11388
11389 xpm_link=
11390 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
11391 echo "configure:11392: checking for Xpm library" >&5
11392
11393 ac_find_libraries=
11394 for ac_dir in $SEARCH_LIB;
11395 do
11396 for ac_extension in a so sl dylib; do
11397 if test -f "$ac_dir/libXpm.$ac_extension"; then
11398 ac_find_libraries=$ac_dir
11399 break 2
11400 fi
11401 done
11402 done
11403
11404 if test "$ac_find_libraries" != "" ; then
11405 GUI_TK_LIBRARY="-L$ac_find_libraries"
11406 xpm_link=" -lXpm"
11407 cat >> confdefs.h <<\EOF
11408 #define wxHAVE_LIB_XPM 1
11409 EOF
11410
11411 echo "$ac_t""found at $ac_find_libraries" 1>&6
11412 else
11413 echo "$ac_t""no" 1>&6
11414 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11415 fi
11416
11417 mesa_link=
11418 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
11419 echo "configure:11420: checking for Mesa library" >&5
11420
11421 ac_find_libraries=
11422 for ac_dir in $SEARCH_LIB;
11423 do
11424 for ac_extension in a so sl dylib; do
11425 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
11426 ac_find_libraries=$ac_dir
11427 break 2
11428 fi
11429 done
11430 done
11431
11432 if test "$ac_find_libraries" != "" ; then
11433 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
11434 mesa_link=" -lMesaGL"
11435 echo "$ac_t""found at $ac_find_libraries" 1>&6
11436 else
11437 { echo "configure: error: no" 1>&2; exit 1; }
11438 fi
11439
11440 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
11441 TOOLKIT=MSW
11442 GUIDIST=MSW_DIST
11443 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
11444 fi
11445
11446 if test "$wxUSE_MOTIF" = 1; then
11447 # If we find X, set shell vars x_includes and x_libraries to the
11448 # paths, otherwise set no_x=yes.
11449 # Uses ac_ vars as temps to allow command line to override cache and checks.
11450 # --without-x overrides everything else, but does not touch the cache.
11451 echo $ac_n "checking for X""... $ac_c" 1>&6
11452 echo "configure:11453: checking for X" >&5
11453
11454 # Check whether --with-x or --without-x was given.
11455 if test "${with_x+set}" = set; then
11456 withval="$with_x"
11457 :
11458 fi
11459
11460 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11461 if test "x$with_x" = xno; then
11462 # The user explicitly disabled X.
11463 have_x=disabled
11464 else
11465 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
11466 # Both variables are already set.
11467 have_x=yes
11468 else
11469 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11470 echo $ac_n "(cached) $ac_c" 1>&6
11471 else
11472 # One or both of the vars are not set, and there is no cached value.
11473 ac_x_includes=NO ac_x_libraries=NO
11474 rm -fr conftestdir
11475 if mkdir conftestdir; then
11476 cd conftestdir
11477 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11478 cat > Imakefile <<'EOF'
11479 acfindx:
11480 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11481 EOF
11482 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11483 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11484 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11485 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11486 for ac_extension in a so sl; do
11487 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11488 test -f $ac_im_libdir/libX11.$ac_extension; then
11489 ac_im_usrlibdir=$ac_im_libdir; break
11490 fi
11491 done
11492 # Screen out bogus values from the imake configuration. They are
11493 # bogus both because they are the default anyway, and because
11494 # using them would break gcc on systems where it needs fixed includes.
11495 case "$ac_im_incroot" in
11496 /usr/include) ;;
11497 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
11498 esac
11499 case "$ac_im_usrlibdir" in
11500 /usr/lib | /lib) ;;
11501 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
11502 esac
11503 fi
11504 cd ..
11505 rm -fr conftestdir
11506 fi
11507
11508 if test "$ac_x_includes" = NO; then
11509 # Guess where to find include files, by looking for this one X11 .h file.
11510 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11511
11512 # First, try using that file with no special directory specified.
11513 cat > conftest.$ac_ext <<EOF
11514 #line 11515 "configure"
11515 #include "confdefs.h"
11516 #include <$x_direct_test_include>
11517 EOF
11518 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11519 { (eval echo configure:11520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11520 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11521 if test -z "$ac_err"; then
11522 rm -rf conftest*
11523 # We can compile using X headers with no special include directory.
11524 ac_x_includes=
11525 else
11526 echo "$ac_err" >&5
11527 echo "configure: failed program was:" >&5
11528 cat conftest.$ac_ext >&5
11529 rm -rf conftest*
11530 # Look for the header file in a standard set of common directories.
11531 # Check X11 before X11Rn because it is often a symlink to the current release.
11532 for ac_dir in \
11533 /usr/X11/include \
11534 /usr/X11R6/include \
11535 /usr/X11R5/include \
11536 /usr/X11R4/include \
11537 \
11538 /usr/include/X11 \
11539 /usr/include/X11R6 \
11540 /usr/include/X11R5 \
11541 /usr/include/X11R4 \
11542 \
11543 /usr/local/X11/include \
11544 /usr/local/X11R6/include \
11545 /usr/local/X11R5/include \
11546 /usr/local/X11R4/include \
11547 \
11548 /usr/local/include/X11 \
11549 /usr/local/include/X11R6 \
11550 /usr/local/include/X11R5 \
11551 /usr/local/include/X11R4 \
11552 \
11553 /usr/X386/include \
11554 /usr/x386/include \
11555 /usr/XFree86/include/X11 \
11556 \
11557 /usr/include \
11558 /usr/local/include \
11559 /usr/unsupported/include \
11560 /usr/athena/include \
11561 /usr/local/x11r5/include \
11562 /usr/lpp/Xamples/include \
11563 \
11564 /usr/openwin/include \
11565 /usr/openwin/share/include \
11566 ; \
11567 do
11568 if test -r "$ac_dir/$x_direct_test_include"; then
11569 ac_x_includes=$ac_dir
11570 break
11571 fi
11572 done
11573 fi
11574 rm -f conftest*
11575 fi # $ac_x_includes = NO
11576
11577 if test "$ac_x_libraries" = NO; then
11578 # Check for the libraries.
11579
11580 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11581 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11582
11583 # See if we find them without any special options.
11584 # Don't add to $LIBS permanently.
11585 ac_save_LIBS="$LIBS"
11586 LIBS="-l$x_direct_test_library $LIBS"
11587 cat > conftest.$ac_ext <<EOF
11588 #line 11589 "configure"
11589 #include "confdefs.h"
11590
11591 int main() {
11592 ${x_direct_test_function}()
11593 ; return 0; }
11594 EOF
11595 if { (eval echo configure:11596: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11596 rm -rf conftest*
11597 LIBS="$ac_save_LIBS"
11598 # We can link X programs with no special library path.
11599 ac_x_libraries=
11600 else
11601 echo "configure: failed program was:" >&5
11602 cat conftest.$ac_ext >&5
11603 rm -rf conftest*
11604 LIBS="$ac_save_LIBS"
11605 # First see if replacing the include by lib works.
11606 # Check X11 before X11Rn because it is often a symlink to the current release.
11607 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11608 /usr/X11/lib \
11609 /usr/X11R6/lib \
11610 /usr/X11R5/lib \
11611 /usr/X11R4/lib \
11612 \
11613 /usr/lib/X11 \
11614 /usr/lib/X11R6 \
11615 /usr/lib/X11R5 \
11616 /usr/lib/X11R4 \
11617 \
11618 /usr/local/X11/lib \
11619 /usr/local/X11R6/lib \
11620 /usr/local/X11R5/lib \
11621 /usr/local/X11R4/lib \
11622 \
11623 /usr/local/lib/X11 \
11624 /usr/local/lib/X11R6 \
11625 /usr/local/lib/X11R5 \
11626 /usr/local/lib/X11R4 \
11627 \
11628 /usr/X386/lib \
11629 /usr/x386/lib \
11630 /usr/XFree86/lib/X11 \
11631 \
11632 /usr/lib \
11633 /usr/local/lib \
11634 /usr/unsupported/lib \
11635 /usr/athena/lib \
11636 /usr/local/x11r5/lib \
11637 /usr/lpp/Xamples/lib \
11638 /lib/usr/lib/X11 \
11639 \
11640 /usr/openwin/lib \
11641 /usr/openwin/share/lib \
11642 ; \
11643 do
11644 for ac_extension in a so sl; do
11645 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
11646 ac_x_libraries=$ac_dir
11647 break 2
11648 fi
11649 done
11650 done
11651 fi
11652 rm -f conftest*
11653 fi # $ac_x_libraries = NO
11654
11655 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
11656 # Didn't find X anywhere. Cache the known absence of X.
11657 ac_cv_have_x="have_x=no"
11658 else
11659 # Record where we found X for the cache.
11660 ac_cv_have_x="have_x=yes \
11661 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11662 fi
11663 fi
11664 fi
11665 eval "$ac_cv_have_x"
11666 fi # $with_x != no
11667
11668 if test "$have_x" != yes; then
11669 echo "$ac_t""$have_x" 1>&6
11670 no_x=yes
11671 else
11672 # If each of the values was on the command line, it overrides each guess.
11673 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11674 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11675 # Update the cache value to reflect the command line values.
11676 ac_cv_have_x="have_x=yes \
11677 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11678 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
11679 fi
11680
11681 if test "$no_x" = yes; then
11682 # Not all programs may use this symbol, but it does not hurt to define it.
11683 cat >> confdefs.h <<\EOF
11684 #define X_DISPLAY_MISSING 1
11685 EOF
11686
11687 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11688 else
11689 if test -n "$x_includes"; then
11690 X_CFLAGS="$X_CFLAGS -I$x_includes"
11691 fi
11692
11693 # It would also be nice to do this for all -L options, not just this one.
11694 if test -n "$x_libraries"; then
11695 X_LIBS="$X_LIBS -L$x_libraries"
11696 # For Solaris; some versions of Sun CC require a space after -R and
11697 # others require no space. Words are not sufficient . . . .
11698 case "`(uname -sr) 2>/dev/null`" in
11699 "SunOS 5"*)
11700 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
11701 echo "configure:11702: checking whether -R must be followed by a space" >&5
11702 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11703 cat > conftest.$ac_ext <<EOF
11704 #line 11705 "configure"
11705 #include "confdefs.h"
11706
11707 int main() {
11708
11709 ; return 0; }
11710 EOF
11711 if { (eval echo configure:11712: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11712 rm -rf conftest*
11713 ac_R_nospace=yes
11714 else
11715 echo "configure: failed program was:" >&5
11716 cat conftest.$ac_ext >&5
11717 rm -rf conftest*
11718 ac_R_nospace=no
11719 fi
11720 rm -f conftest*
11721 if test $ac_R_nospace = yes; then
11722 echo "$ac_t""no" 1>&6
11723 X_LIBS="$X_LIBS -R$x_libraries"
11724 else
11725 LIBS="$ac_xsave_LIBS -R $x_libraries"
11726 cat > conftest.$ac_ext <<EOF
11727 #line 11728 "configure"
11728 #include "confdefs.h"
11729
11730 int main() {
11731
11732 ; return 0; }
11733 EOF
11734 if { (eval echo configure:11735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11735 rm -rf conftest*
11736 ac_R_space=yes
11737 else
11738 echo "configure: failed program was:" >&5
11739 cat conftest.$ac_ext >&5
11740 rm -rf conftest*
11741 ac_R_space=no
11742 fi
11743 rm -f conftest*
11744 if test $ac_R_space = yes; then
11745 echo "$ac_t""yes" 1>&6
11746 X_LIBS="$X_LIBS -R $x_libraries"
11747 else
11748 echo "$ac_t""neither works" 1>&6
11749 fi
11750 fi
11751 LIBS="$ac_xsave_LIBS"
11752 esac
11753 fi
11754
11755 # Check for system-dependent libraries X programs must link with.
11756 # Do this before checking for the system-independent R6 libraries
11757 # (-lICE), since we may need -lsocket or whatever for X linking.
11758
11759 if test "$ISC" = yes; then
11760 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11761 else
11762 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11763 # libraries were built with DECnet support. And karl@cs.umb.edu says
11764 # the Alpha needs dnet_stub (dnet does not exist).
11765 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
11766 echo "configure:11767: checking for dnet_ntoa in -ldnet" >&5
11767 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11768 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11769 echo $ac_n "(cached) $ac_c" 1>&6
11770 else
11771 ac_save_LIBS="$LIBS"
11772 LIBS="-ldnet $LIBS"
11773 cat > conftest.$ac_ext <<EOF
11774 #line 11775 "configure"
11775 #include "confdefs.h"
11776 /* Override any gcc2 internal prototype to avoid an error. */
11777 /* We use char because int might match the return type of a gcc2
11778 builtin and then its argument prototype would still apply. */
11779 char dnet_ntoa();
11780
11781 int main() {
11782 dnet_ntoa()
11783 ; return 0; }
11784 EOF
11785 if { (eval echo configure:11786: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11786 rm -rf conftest*
11787 eval "ac_cv_lib_$ac_lib_var=yes"
11788 else
11789 echo "configure: failed program was:" >&5
11790 cat conftest.$ac_ext >&5
11791 rm -rf conftest*
11792 eval "ac_cv_lib_$ac_lib_var=no"
11793 fi
11794 rm -f conftest*
11795 LIBS="$ac_save_LIBS"
11796
11797 fi
11798 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11799 echo "$ac_t""yes" 1>&6
11800 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11801 else
11802 echo "$ac_t""no" 1>&6
11803 fi
11804
11805 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11806 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
11807 echo "configure:11808: checking for dnet_ntoa in -ldnet_stub" >&5
11808 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11810 echo $ac_n "(cached) $ac_c" 1>&6
11811 else
11812 ac_save_LIBS="$LIBS"
11813 LIBS="-ldnet_stub $LIBS"
11814 cat > conftest.$ac_ext <<EOF
11815 #line 11816 "configure"
11816 #include "confdefs.h"
11817 /* Override any gcc2 internal prototype to avoid an error. */
11818 /* We use char because int might match the return type of a gcc2
11819 builtin and then its argument prototype would still apply. */
11820 char dnet_ntoa();
11821
11822 int main() {
11823 dnet_ntoa()
11824 ; return 0; }
11825 EOF
11826 if { (eval echo configure:11827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11827 rm -rf conftest*
11828 eval "ac_cv_lib_$ac_lib_var=yes"
11829 else
11830 echo "configure: failed program was:" >&5
11831 cat conftest.$ac_ext >&5
11832 rm -rf conftest*
11833 eval "ac_cv_lib_$ac_lib_var=no"
11834 fi
11835 rm -f conftest*
11836 LIBS="$ac_save_LIBS"
11837
11838 fi
11839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11840 echo "$ac_t""yes" 1>&6
11841 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11842 else
11843 echo "$ac_t""no" 1>&6
11844 fi
11845
11846 fi
11847
11848 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11849 # to get the SysV transport functions.
11850 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
11851 # needs -lnsl.
11852 # The nsl library prevents programs from opening the X display
11853 # on Irix 5.2, according to dickey@clark.net.
11854 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
11855 echo "configure:11856: checking for gethostbyname" >&5
11856 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11857 echo $ac_n "(cached) $ac_c" 1>&6
11858 else
11859 cat > conftest.$ac_ext <<EOF
11860 #line 11861 "configure"
11861 #include "confdefs.h"
11862 /* System header to define __stub macros and hopefully few prototypes,
11863 which can conflict with char gethostbyname(); below. */
11864 #include <assert.h>
11865 /* Override any gcc2 internal prototype to avoid an error. */
11866 /* We use char because int might match the return type of a gcc2
11867 builtin and then its argument prototype would still apply. */
11868 char gethostbyname();
11869
11870 int main() {
11871
11872 /* The GNU C library defines this for functions which it implements
11873 to always fail with ENOSYS. Some functions are actually named
11874 something starting with __ and the normal name is an alias. */
11875 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11876 choke me
11877 #else
11878 gethostbyname();
11879 #endif
11880
11881 ; return 0; }
11882 EOF
11883 if { (eval echo configure:11884: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11884 rm -rf conftest*
11885 eval "ac_cv_func_gethostbyname=yes"
11886 else
11887 echo "configure: failed program was:" >&5
11888 cat conftest.$ac_ext >&5
11889 rm -rf conftest*
11890 eval "ac_cv_func_gethostbyname=no"
11891 fi
11892 rm -f conftest*
11893 fi
11894
11895 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11896 echo "$ac_t""yes" 1>&6
11897 :
11898 else
11899 echo "$ac_t""no" 1>&6
11900 fi
11901
11902 if test $ac_cv_func_gethostbyname = no; then
11903 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
11904 echo "configure:11905: checking for gethostbyname in -lnsl" >&5
11905 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11907 echo $ac_n "(cached) $ac_c" 1>&6
11908 else
11909 ac_save_LIBS="$LIBS"
11910 LIBS="-lnsl $LIBS"
11911 cat > conftest.$ac_ext <<EOF
11912 #line 11913 "configure"
11913 #include "confdefs.h"
11914 /* Override any gcc2 internal prototype to avoid an error. */
11915 /* We use char because int might match the return type of a gcc2
11916 builtin and then its argument prototype would still apply. */
11917 char gethostbyname();
11918
11919 int main() {
11920 gethostbyname()
11921 ; return 0; }
11922 EOF
11923 if { (eval echo configure:11924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11924 rm -rf conftest*
11925 eval "ac_cv_lib_$ac_lib_var=yes"
11926 else
11927 echo "configure: failed program was:" >&5
11928 cat conftest.$ac_ext >&5
11929 rm -rf conftest*
11930 eval "ac_cv_lib_$ac_lib_var=no"
11931 fi
11932 rm -f conftest*
11933 LIBS="$ac_save_LIBS"
11934
11935 fi
11936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11937 echo "$ac_t""yes" 1>&6
11938 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11939 else
11940 echo "$ac_t""no" 1>&6
11941 fi
11942
11943 fi
11944
11945 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11946 # socket/setsockopt and other routines are undefined under SCO ODT
11947 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11948 # on later versions), says simon@lia.di.epfl.ch: it contains
11949 # gethostby* variants that don't use the nameserver (or something).
11950 # -lsocket must be given before -lnsl if both are needed.
11951 # We assume that if connect needs -lnsl, so does gethostbyname.
11952 echo $ac_n "checking for connect""... $ac_c" 1>&6
11953 echo "configure:11954: checking for connect" >&5
11954 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11955 echo $ac_n "(cached) $ac_c" 1>&6
11956 else
11957 cat > conftest.$ac_ext <<EOF
11958 #line 11959 "configure"
11959 #include "confdefs.h"
11960 /* System header to define __stub macros and hopefully few prototypes,
11961 which can conflict with char connect(); below. */
11962 #include <assert.h>
11963 /* Override any gcc2 internal prototype to avoid an error. */
11964 /* We use char because int might match the return type of a gcc2
11965 builtin and then its argument prototype would still apply. */
11966 char connect();
11967
11968 int main() {
11969
11970 /* The GNU C library defines this for functions which it implements
11971 to always fail with ENOSYS. Some functions are actually named
11972 something starting with __ and the normal name is an alias. */
11973 #if defined (__stub_connect) || defined (__stub___connect)
11974 choke me
11975 #else
11976 connect();
11977 #endif
11978
11979 ; return 0; }
11980 EOF
11981 if { (eval echo configure:11982: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11982 rm -rf conftest*
11983 eval "ac_cv_func_connect=yes"
11984 else
11985 echo "configure: failed program was:" >&5
11986 cat conftest.$ac_ext >&5
11987 rm -rf conftest*
11988 eval "ac_cv_func_connect=no"
11989 fi
11990 rm -f conftest*
11991 fi
11992
11993 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11994 echo "$ac_t""yes" 1>&6
11995 :
11996 else
11997 echo "$ac_t""no" 1>&6
11998 fi
11999
12000 if test $ac_cv_func_connect = no; then
12001 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
12002 echo "configure:12003: checking for connect in -lsocket" >&5
12003 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
12004 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12005 echo $ac_n "(cached) $ac_c" 1>&6
12006 else
12007 ac_save_LIBS="$LIBS"
12008 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
12009 cat > conftest.$ac_ext <<EOF
12010 #line 12011 "configure"
12011 #include "confdefs.h"
12012 /* Override any gcc2 internal prototype to avoid an error. */
12013 /* We use char because int might match the return type of a gcc2
12014 builtin and then its argument prototype would still apply. */
12015 char connect();
12016
12017 int main() {
12018 connect()
12019 ; return 0; }
12020 EOF
12021 if { (eval echo configure:12022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12022 rm -rf conftest*
12023 eval "ac_cv_lib_$ac_lib_var=yes"
12024 else
12025 echo "configure: failed program was:" >&5
12026 cat conftest.$ac_ext >&5
12027 rm -rf conftest*
12028 eval "ac_cv_lib_$ac_lib_var=no"
12029 fi
12030 rm -f conftest*
12031 LIBS="$ac_save_LIBS"
12032
12033 fi
12034 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12035 echo "$ac_t""yes" 1>&6
12036 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
12037 else
12038 echo "$ac_t""no" 1>&6
12039 fi
12040
12041 fi
12042
12043 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
12044 echo $ac_n "checking for remove""... $ac_c" 1>&6
12045 echo "configure:12046: checking for remove" >&5
12046 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
12047 echo $ac_n "(cached) $ac_c" 1>&6
12048 else
12049 cat > conftest.$ac_ext <<EOF
12050 #line 12051 "configure"
12051 #include "confdefs.h"
12052 /* System header to define __stub macros and hopefully few prototypes,
12053 which can conflict with char remove(); below. */
12054 #include <assert.h>
12055 /* Override any gcc2 internal prototype to avoid an error. */
12056 /* We use char because int might match the return type of a gcc2
12057 builtin and then its argument prototype would still apply. */
12058 char remove();
12059
12060 int main() {
12061
12062 /* The GNU C library defines this for functions which it implements
12063 to always fail with ENOSYS. Some functions are actually named
12064 something starting with __ and the normal name is an alias. */
12065 #if defined (__stub_remove) || defined (__stub___remove)
12066 choke me
12067 #else
12068 remove();
12069 #endif
12070
12071 ; return 0; }
12072 EOF
12073 if { (eval echo configure:12074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12074 rm -rf conftest*
12075 eval "ac_cv_func_remove=yes"
12076 else
12077 echo "configure: failed program was:" >&5
12078 cat conftest.$ac_ext >&5
12079 rm -rf conftest*
12080 eval "ac_cv_func_remove=no"
12081 fi
12082 rm -f conftest*
12083 fi
12084
12085 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
12086 echo "$ac_t""yes" 1>&6
12087 :
12088 else
12089 echo "$ac_t""no" 1>&6
12090 fi
12091
12092 if test $ac_cv_func_remove = no; then
12093 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
12094 echo "configure:12095: checking for remove in -lposix" >&5
12095 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
12096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12097 echo $ac_n "(cached) $ac_c" 1>&6
12098 else
12099 ac_save_LIBS="$LIBS"
12100 LIBS="-lposix $LIBS"
12101 cat > conftest.$ac_ext <<EOF
12102 #line 12103 "configure"
12103 #include "confdefs.h"
12104 /* Override any gcc2 internal prototype to avoid an error. */
12105 /* We use char because int might match the return type of a gcc2
12106 builtin and then its argument prototype would still apply. */
12107 char remove();
12108
12109 int main() {
12110 remove()
12111 ; return 0; }
12112 EOF
12113 if { (eval echo configure:12114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12114 rm -rf conftest*
12115 eval "ac_cv_lib_$ac_lib_var=yes"
12116 else
12117 echo "configure: failed program was:" >&5
12118 cat conftest.$ac_ext >&5
12119 rm -rf conftest*
12120 eval "ac_cv_lib_$ac_lib_var=no"
12121 fi
12122 rm -f conftest*
12123 LIBS="$ac_save_LIBS"
12124
12125 fi
12126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12127 echo "$ac_t""yes" 1>&6
12128 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
12129 else
12130 echo "$ac_t""no" 1>&6
12131 fi
12132
12133 fi
12134
12135 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
12136 echo $ac_n "checking for shmat""... $ac_c" 1>&6
12137 echo "configure:12138: checking for shmat" >&5
12138 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
12139 echo $ac_n "(cached) $ac_c" 1>&6
12140 else
12141 cat > conftest.$ac_ext <<EOF
12142 #line 12143 "configure"
12143 #include "confdefs.h"
12144 /* System header to define __stub macros and hopefully few prototypes,
12145 which can conflict with char shmat(); below. */
12146 #include <assert.h>
12147 /* Override any gcc2 internal prototype to avoid an error. */
12148 /* We use char because int might match the return type of a gcc2
12149 builtin and then its argument prototype would still apply. */
12150 char shmat();
12151
12152 int main() {
12153
12154 /* The GNU C library defines this for functions which it implements
12155 to always fail with ENOSYS. Some functions are actually named
12156 something starting with __ and the normal name is an alias. */
12157 #if defined (__stub_shmat) || defined (__stub___shmat)
12158 choke me
12159 #else
12160 shmat();
12161 #endif
12162
12163 ; return 0; }
12164 EOF
12165 if { (eval echo configure:12166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12166 rm -rf conftest*
12167 eval "ac_cv_func_shmat=yes"
12168 else
12169 echo "configure: failed program was:" >&5
12170 cat conftest.$ac_ext >&5
12171 rm -rf conftest*
12172 eval "ac_cv_func_shmat=no"
12173 fi
12174 rm -f conftest*
12175 fi
12176
12177 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
12178 echo "$ac_t""yes" 1>&6
12179 :
12180 else
12181 echo "$ac_t""no" 1>&6
12182 fi
12183
12184 if test $ac_cv_func_shmat = no; then
12185 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
12186 echo "configure:12187: checking for shmat in -lipc" >&5
12187 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
12188 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12189 echo $ac_n "(cached) $ac_c" 1>&6
12190 else
12191 ac_save_LIBS="$LIBS"
12192 LIBS="-lipc $LIBS"
12193 cat > conftest.$ac_ext <<EOF
12194 #line 12195 "configure"
12195 #include "confdefs.h"
12196 /* Override any gcc2 internal prototype to avoid an error. */
12197 /* We use char because int might match the return type of a gcc2
12198 builtin and then its argument prototype would still apply. */
12199 char shmat();
12200
12201 int main() {
12202 shmat()
12203 ; return 0; }
12204 EOF
12205 if { (eval echo configure:12206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12206 rm -rf conftest*
12207 eval "ac_cv_lib_$ac_lib_var=yes"
12208 else
12209 echo "configure: failed program was:" >&5
12210 cat conftest.$ac_ext >&5
12211 rm -rf conftest*
12212 eval "ac_cv_lib_$ac_lib_var=no"
12213 fi
12214 rm -f conftest*
12215 LIBS="$ac_save_LIBS"
12216
12217 fi
12218 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12219 echo "$ac_t""yes" 1>&6
12220 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
12221 else
12222 echo "$ac_t""no" 1>&6
12223 fi
12224
12225 fi
12226 fi
12227
12228 # Check for libraries that X11R6 Xt/Xaw programs need.
12229 ac_save_LDFLAGS="$LDFLAGS"
12230 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
12231 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
12232 # check for ICE first), but we must link in the order -lSM -lICE or
12233 # we get undefined symbols. So assume we have SM if we have ICE.
12234 # These have to be linked with before -lX11, unlike the other
12235 # libraries we check for below, so use a different variable.
12236 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
12237 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
12238 echo "configure:12239: checking for IceConnectionNumber in -lICE" >&5
12239 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
12240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12241 echo $ac_n "(cached) $ac_c" 1>&6
12242 else
12243 ac_save_LIBS="$LIBS"
12244 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
12245 cat > conftest.$ac_ext <<EOF
12246 #line 12247 "configure"
12247 #include "confdefs.h"
12248 /* Override any gcc2 internal prototype to avoid an error. */
12249 /* We use char because int might match the return type of a gcc2
12250 builtin and then its argument prototype would still apply. */
12251 char IceConnectionNumber();
12252
12253 int main() {
12254 IceConnectionNumber()
12255 ; return 0; }
12256 EOF
12257 if { (eval echo configure:12258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12258 rm -rf conftest*
12259 eval "ac_cv_lib_$ac_lib_var=yes"
12260 else
12261 echo "configure: failed program was:" >&5
12262 cat conftest.$ac_ext >&5
12263 rm -rf conftest*
12264 eval "ac_cv_lib_$ac_lib_var=no"
12265 fi
12266 rm -f conftest*
12267 LIBS="$ac_save_LIBS"
12268
12269 fi
12270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12271 echo "$ac_t""yes" 1>&6
12272 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
12273 else
12274 echo "$ac_t""no" 1>&6
12275 fi
12276
12277 LDFLAGS="$ac_save_LDFLAGS"
12278
12279 fi
12280
12281
12282 if test "$no_x" = "yes"; then
12283 { echo "configure: error: X11 not found" 1>&2; exit 1; }
12284 fi
12285
12286 GUI_TK_LIBRARY="$X_LIBS"
12287 TOOLKIT_INCLUDE="$X_CFLAGS"
12288 AFMINSTALL=afminstall
12289 COMPILED_X_PROGRAM=0
12290
12291 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
12292 echo "configure:12293: checking for Motif/Lesstif headers" >&5
12293
12294 ac_find_includes=
12295 for ac_dir in $SEARCH_INCLUDE;
12296 do
12297 if test -f "$ac_dir/Xm/Xm.h"; then
12298 ac_find_includes=$ac_dir
12299 break
12300 fi
12301 done
12302
12303 if test "$ac_find_includes" != "" ; then
12304 echo "$ac_t""found $ac_find_includes" 1>&6
12305 else
12306 cat > conftest.$ac_ext <<EOF
12307 #line 12308 "configure"
12308 #include "confdefs.h"
12309
12310 #include <Xm/Xm.h>
12311
12312 int main() {
12313
12314 int version;
12315 version = xmUseVersion;
12316
12317 ; return 0; }
12318 EOF
12319 if { (eval echo configure:12320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12320 rm -rf conftest*
12321
12322 echo "$ac_t""found in default search path" 1>&6
12323 COMPILED_X_PROGRAM=1
12324
12325 else
12326 echo "configure: failed program was:" >&5
12327 cat conftest.$ac_ext >&5
12328 rm -rf conftest*
12329
12330 echo "$ac_t""no" 1>&6
12331 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
12332
12333
12334 fi
12335 rm -f conftest*
12336 fi
12337
12338 if test "$COMPILED_X_PROGRAM" = 0; then
12339 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
12340 echo "configure:12341: checking for Motif/Lesstif library" >&5
12341
12342 ac_find_libraries=
12343 for ac_dir in $SEARCH_LIB;
12344 do
12345 for ac_extension in a so sl dylib; do
12346 if test -f "$ac_dir/libXm.$ac_extension"; then
12347 ac_find_libraries=$ac_dir
12348 break 2
12349 fi
12350 done
12351 done
12352
12353 if test "$ac_find_libraries" != "" ; then
12354
12355 ac_path_to_include=$ac_find_includes
12356 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
12357 result=$?
12358 if test $result = 0; then
12359 ac_path_to_include=""
12360 else
12361 ac_path_to_include=" -I$ac_find_includes"
12362 fi
12363
12364
12365 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12366 result=$?
12367 if test $result = 0; then
12368 ac_path_to_link=""
12369 else
12370 ac_path_to_link=" -L$ac_find_libraries"
12371 fi
12372
12373
12374 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12375 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
12376 echo "$ac_t""found at $ac_find_libraries" 1>&6
12377 else
12378 cat > conftest.$ac_ext <<EOF
12379 #line 12380 "configure"
12380 #include "confdefs.h"
12381
12382 #include <Xm/Xm.h>
12383
12384 int main() {
12385
12386 int version;
12387 version = xmUseVersion;
12388
12389 ; return 0; }
12390 EOF
12391 if { (eval echo configure:12392: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12392 rm -rf conftest*
12393
12394 echo "$ac_t""found in default search path" 1>&6
12395 COMPILED_X_PROGRAM=1
12396
12397 else
12398 echo "configure: failed program was:" >&5
12399 cat conftest.$ac_ext >&5
12400 rm -rf conftest*
12401
12402 echo "$ac_t""no" 1>&6
12403 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
12404
12405
12406 fi
12407 rm -f conftest*
12408 fi
12409 fi
12410
12411 xpm_link=
12412 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
12413 echo "configure:12414: checking for Xpm library" >&5
12414
12415 ac_find_libraries=
12416 for ac_dir in $SEARCH_LIB;
12417 do
12418 for ac_extension in a so sl dylib; do
12419 if test -f "$ac_dir/libXpm.$ac_extension"; then
12420 ac_find_libraries=$ac_dir
12421 break 2
12422 fi
12423 done
12424 done
12425
12426 if test "$ac_find_libraries" != "" ; then
12427
12428 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
12429 result=$?
12430 if test $result = 0; then
12431 ac_path_to_link=""
12432 else
12433 ac_path_to_link=" -L$ac_find_libraries"
12434 fi
12435
12436 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
12437 xpm_link=" -lXpm"
12438 cat >> confdefs.h <<\EOF
12439 #define wxHAVE_LIB_XPM 1
12440 EOF
12441
12442 echo "$ac_t""found at $ac_find_libraries" 1>&6
12443 else
12444 cat > conftest.$ac_ext <<EOF
12445 #line 12446 "configure"
12446 #include "confdefs.h"
12447
12448 #include <X11/xpm.h>
12449
12450 int main() {
12451
12452 int version;
12453 version = XpmLibraryVersion();
12454
12455 ; return 0; }
12456 EOF
12457 if { (eval echo configure:12458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12458 rm -rf conftest*
12459
12460 xpm_link=" -lXpm"
12461 cat >> confdefs.h <<\EOF
12462 #define wxHAVE_LIB_XPM 1
12463 EOF
12464
12465 echo "$ac_t""found in default search path" 1>&6
12466 COMPILED_X_PROGRAM=0
12467
12468 else
12469 echo "configure: failed program was:" >&5
12470 cat conftest.$ac_ext >&5
12471 rm -rf conftest*
12472
12473 echo "$ac_t""no" 1>&6
12474 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12475
12476
12477 fi
12478 rm -f conftest*
12479 fi
12480
12481 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
12482 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
12483 TOOLKIT=MOTIF
12484 GUIDIST=MOTIF_DIST
12485 fi
12486
12487 if test "$wxUSE_MAC" = 1; then
12488 if test "$wxUSE_PRECOMP" = "yes"; then
12489 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12490 fi
12491 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
12492 CFLAGS="$CFLAGS -fpascal-strings"
12493 CXXFLAGS="$CXXFLAGS -fpascal-strings"
12494
12495 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
12496 TOOLKIT=MAC
12497 GUIDIST=MACX_DIST
12498 fi
12499
12500 if test "$wxUSE_PM" = 1; then
12501 TOOLKIT=PM
12502 GUIDIST=GTK_DIST
12503 fi
12504
12505 if test "$TOOLKIT" = "PM" ; then
12506 TOOLKIT_DIR="os2"
12507 else
12508 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
12509 fi
12510
12511 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
12512
12513 if test "$wxUSE_UNIVERSAL" = "yes"; then
12514 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
12515 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
12516 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
12517 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
12518 WIDGET_SET=univ
12519 else
12520 ALL_OBJECTS="\$(GUIOBJS)"
12521 fi
12522
12523 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
12524
12525 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
12526 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
12527 fi
12528
12529 if test "$wxUSE_HTML" = "yes"; then
12530 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
12531 fi
12532
12533 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
12534 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
12535 fi
12536 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12537 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
12538 fi
12539 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12540 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
12541 fi
12542 if test "$wxUSE_LIBPNG" = "builtin" ; then
12543 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
12544 fi
12545 if test "$wxUSE_FREETYPE" = "builtin" ; then
12546 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
12547 fi
12548
12549 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
12550 DISTDIR="wx\$(TOOLKIT)"
12551 else
12552 USE_GUI=0
12553
12554 TOOLKIT_DIR="base"
12555
12556 if test "$USE_WIN32" = 1 ; then
12557 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
12558 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
12559
12560 TOOLKIT="MSW"
12561 else
12562 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
12563 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
12564 fi
12565
12566 PORT_FILES="\${top_srcdir}/src/files.lst"
12567
12568 GUIDIST="BASE_DIST"
12569 DISTDIR="wxBase"
12570 fi
12571
12572 if test "$wxUSE_REGEX" = "builtin" ; then
12573 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
12574 fi
12575 if test "$wxUSE_ZLIB" = "builtin" ; then
12576 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
12577 fi
12578
12579 if test "$wxUSE_OPENGL" = "yes"; then
12580 if test "$wxUSE_MAC" = 1; then
12581 OPENGL_LIBS="-framework OpenGL -framework AGL"
12582 else
12583
12584 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
12585 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
12586 echo "configure:12587: checking for GL/gl.h" >&5
12587 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12588 echo $ac_n "(cached) $ac_c" 1>&6
12589 else
12590 cat > conftest.$ac_ext <<EOF
12591 #line 12592 "configure"
12592 #include "confdefs.h"
12593 #include <GL/gl.h>
12594 EOF
12595 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12596 { (eval echo configure:12597: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12597 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12598 if test -z "$ac_err"; then
12599 rm -rf conftest*
12600 eval "ac_cv_header_$ac_safe=yes"
12601 else
12602 echo "$ac_err" >&5
12603 echo "configure: failed program was:" >&5
12604 cat conftest.$ac_ext >&5
12605 rm -rf conftest*
12606 eval "ac_cv_header_$ac_safe=no"
12607 fi
12608 rm -f conftest*
12609 fi
12610 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12611 echo "$ac_t""yes" 1>&6
12612
12613 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
12614 echo "configure:12615: checking for -lGL" >&5
12615
12616 ac_find_libraries=
12617 for ac_dir in $SEARCH_LIB;
12618 do
12619 for ac_extension in a so sl dylib; do
12620 if test -f "$ac_dir/libGL.$ac_extension"; then
12621 ac_find_libraries=$ac_dir
12622 break 2
12623 fi
12624 done
12625 done
12626
12627 if test "$ac_find_libraries" != "" ; then
12628
12629 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12630 result=$?
12631 if test $result = 0; then
12632 ac_path_to_link=""
12633 else
12634 ac_path_to_link=" -L$ac_find_libraries"
12635 fi
12636
12637 if test "$ac_path_to_link" = " -L/usr/lib" ; then
12638 LDFLAGS_GL="$LDFLAGS"
12639 else
12640 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12641 fi
12642 OPENGL_LIBS="-lGL -lGLU"
12643 echo "$ac_t""yes" 1>&6
12644 else
12645 echo "$ac_t""no" 1>&6
12646 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
12647 echo "configure:12648: checking for -lMesaGL" >&5
12648
12649 ac_find_libraries=
12650 for ac_dir in $SEARCH_LIB;
12651 do
12652 for ac_extension in a so sl dylib; do
12653 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12654 ac_find_libraries=$ac_dir
12655 break 2
12656 fi
12657 done
12658 done
12659
12660 if test "$ac_find_libraries" != "" ; then
12661
12662 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12663 result=$?
12664 if test $result = 0; then
12665 ac_path_to_link=""
12666 else
12667 ac_path_to_link=" -L$ac_find_libraries"
12668 fi
12669
12670 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12671 OPENGL_LIBS="-lMesaGL -lMesaGLU"
12672 echo "$ac_t""yes" 1>&6
12673 else
12674 echo "$ac_t""no" 1>&6
12675 fi
12676 fi
12677
12678 else
12679 echo "$ac_t""no" 1>&6
12680 fi
12681
12682
12683
12684 # AC_CHECK_HEADER(GL/gl.h,
12685 # [
12686 # AC_CHECK_LIB(GL, glFlush,
12687 # [
12688 # OPENGL_LIBS="-lGL -lGLU"
12689 # ],
12690 # [
12691 # AC_CHECK_LIB(MesaGL, glFlush,
12692 # [
12693 # OPENGL_LIBS="-lMesaGL -lMesaGLU"
12694 # ],
12695 # [],
12696 # [-lm])
12697 # ],
12698 # [-lm])
12699 # ])
12700
12701 if test "x$OPENGL_LIBS" = "x"; then
12702 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
12703 fi
12704 fi
12705
12706 if test "$wxUSE_OPENGL" = "yes"; then
12707 cat >> confdefs.h <<\EOF
12708 #define wxUSE_OPENGL 1
12709 EOF
12710
12711 cat >> confdefs.h <<\EOF
12712 #define wxUSE_GLCANVAS 1
12713 EOF
12714
12715 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
12716 fi
12717 fi
12718
12719 if test -z "$TOOLKIT_VPATH" ; then
12720 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
12721 fi
12722
12723 if test -n "$TOOLKIT" ; then
12724 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
12725 fi
12726
12727 lib_unicode_suffix=
12728 if test "$wxUSE_UNICODE" = "yes"; then
12729 lib_unicode_suffix=u
12730 fi
12731
12732 lib_debug_suffix=
12733 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
12734 lib_debug_suffix=d
12735 fi
12736
12737 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
12738 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
12739
12740 if test "$cross_compiling" = "yes"; then
12741 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
12742 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
12743 fi
12744
12745 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
12746 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
12747
12748 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12749 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12750
12751 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
12752 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
12753 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
12754 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12755
12756 WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
12757 WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
12758
12759 case "${host}" in
12760 *-*-cygwin* | *-*-mingw32* )
12761
12762
12763
12764 if test "$cross_compiling" != "yes"; then
12765 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12766 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12767 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
12768 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
12769 else
12770 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
12771 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12772 fi
12773
12774 esac
12775
12776 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
12777 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
12778
12779 WXCONFIG_LIBS="-l${WX_LIBRARY}"
12780 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
12781
12782 if test "$wxUSE_OPENGL" = "yes"; then
12783 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
12784 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
12785 fi
12786
12787
12788
12789 if test "$wxUSE_SHARED" = "yes"; then
12790
12791 if test "$wxUSE_OPENGL" = "yes"; then
12792 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
12793 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
12794 else
12795 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
12796 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
12797 fi
12798
12799 if test "$GCC" = "yes"; then
12800 PIC_FLAG="-fPIC"
12801 fi
12802
12803 SHARED_LD="${CXX} -shared -o"
12804
12805 case "${host}" in
12806 *-hp-hpux* )
12807 if test "$GCC" == "yes"; then
12808 SHARED_LD="${SHARED_LD} ${PIC_FLAG}"
12809 else
12810 LDFLAGS="$LDFLAGS -L/usr/lib"
12811
12812 SHARED_LD="${CXX} -b -o"
12813 PIC_FLAG="+Z"
12814 fi
12815
12816 if test "$wxUSE_OPENGL" = "yes"; then
12817 WX_ALL_INSTALLED="preinstall_gl"
12818 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12819 else
12820 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12821 fi
12822 ;;
12823
12824 *-*-linux* )
12825 if test "$GCC" != "yes"; then
12826 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
12827 echo "configure:12828: checking for Intel compiler" >&5
12828 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
12829 echo $ac_n "(cached) $ac_c" 1>&6
12830 else
12831
12832 cat > conftest.$ac_ext <<EOF
12833 #line 12834 "configure"
12834 #include "confdefs.h"
12835
12836 int main() {
12837
12838 #ifndef __INTEL_COMPILER
12839 #error Not icc
12840 #endif
12841
12842 ; return 0; }
12843 EOF
12844 if { (eval echo configure:12845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12845 rm -rf conftest*
12846 wx_cv_prog_icc=yes
12847 else
12848 echo "configure: failed program was:" >&5
12849 cat conftest.$ac_ext >&5
12850 rm -rf conftest*
12851 wx_cv_prog_icc=no
12852
12853 fi
12854 rm -f conftest*
12855
12856 fi
12857
12858 echo "$ac_t""$wx_cv_prog_icc" 1>&6
12859 if test "$wx_cv_prog_icc" = "yes"; then
12860 PIC_FLAG="-KPIC"
12861 fi
12862 fi
12863
12864 if test "$wxUSE_SONAME" = "yes" ; then
12865 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
12866 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
12867 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
12868 fi
12869 ;;
12870
12871 *-*-solaris2* )
12872 if test "$GCC" = yes ; then
12873 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
12874 else
12875 SHARED_LD="${CXX} -G -o"
12876 PIC_FLAG="-KPIC"
12877 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
12878 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED_GL}"
12879 fi
12880 ;;
12881
12882 *-*-darwin* )
12883 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
12884 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
12885 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
12886 PIC_FLAG="-dynamic -fPIC"
12887 ;;
12888
12889 *-*-aix* )
12890 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
12891 ;;
12892
12893 *-*-cygwin* | *-*-mingw32* )
12894
12895 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
12896
12897 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
12898 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
12899
12900 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
12901
12902 if test "$wxUSE_OPENGL" = "yes"; then
12903 WX_ALL_INSTALLED="preinstall_gl"
12904 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12905 else
12906 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12907 fi
12908 ;;
12909
12910 *-pc-os2_emx | *-pc-os2-emx )
12911 wxUSE_SHARED=no
12912 ;;
12913
12914 *-*-beos* )
12915 SHARED_LD="${LD} -shared -o"
12916 ;;
12917
12918 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
12919 *-*-sunos4* | \
12920 *-*-irix5* | *-*-irix6* | \
12921 *-*-osf* | \
12922 *-*-dgux5* | \
12923 *-*-sysv5* )
12924 ;;
12925
12926 *)
12927 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
12928 esac
12929
12930 if test "x$WX_TARGET_LIBRARY" = "x"; then
12931 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
12932 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
12933 fi
12934
12935 WX_TARGET_LIBRARY_TYPE="so"
12936 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
12937 fi
12938
12939 if test "$wxUSE_SHARED" = "no"; then
12940
12941 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
12942 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12943 fi
12944
12945 if test "$wxUSE_MAC" = 1; then
12946 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12947 fi
12948
12949 if test "$wxUSE_OPENGL" = "yes"; then
12950 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
12951 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
12952 else
12953 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
12954 fi
12955
12956 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
12957 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
12958
12959 WX_TARGET_LIBRARY_TYPE="a"
12960 INSTALL_LIBRARY='$(INSTALL_DATA)'
12961 fi
12962
12963 if test "$wxUSE_MAC" = 1; then
12964 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
12965 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
12966 # Extract the first word of "Rez", so it can be a program name with args.
12967 set dummy Rez; ac_word=$2
12968 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12969 echo "configure:12970: checking for $ac_word" >&5
12970 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12971 echo $ac_n "(cached) $ac_c" 1>&6
12972 else
12973 if test -n "$RESCOMP"; then
12974 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12975 else
12976 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12977 ac_dummy="$PATH"
12978 for ac_dir in $ac_dummy; do
12979 test -z "$ac_dir" && ac_dir=.
12980 if test -f $ac_dir/$ac_word; then
12981 ac_cv_prog_RESCOMP="Rez"
12982 break
12983 fi
12984 done
12985 IFS="$ac_save_ifs"
12986 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
12987 fi
12988 fi
12989 RESCOMP="$ac_cv_prog_RESCOMP"
12990 if test -n "$RESCOMP"; then
12991 echo "$ac_t""$RESCOMP" 1>&6
12992 else
12993 echo "$ac_t""no" 1>&6
12994 fi
12995
12996 # Extract the first word of "DeRez", so it can be a program name with args.
12997 set dummy DeRez; ac_word=$2
12998 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12999 echo "configure:13000: checking for $ac_word" >&5
13000 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
13001 echo $ac_n "(cached) $ac_c" 1>&6
13002 else
13003 if test -n "$DEREZ"; then
13004 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
13005 else
13006 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
13007 ac_dummy="$PATH"
13008 for ac_dir in $ac_dummy; do
13009 test -z "$ac_dir" && ac_dir=.
13010 if test -f $ac_dir/$ac_word; then
13011 ac_cv_prog_DEREZ="DeRez"
13012 break
13013 fi
13014 done
13015 IFS="$ac_save_ifs"
13016 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
13017 fi
13018 fi
13019 DEREZ="$ac_cv_prog_DEREZ"
13020 if test -n "$DEREZ"; then
13021 echo "$ac_t""$DEREZ" 1>&6
13022 else
13023 echo "$ac_t""no" 1>&6
13024 fi
13025
13026 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
13027 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
13028 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
13029 fi
13030
13031
13032 if test "$wxUSE_MAC" != 1; then
13033 for ac_hdr in strings.h
13034 do
13035 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13036 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13037 echo "configure:13038: checking for $ac_hdr" >&5
13038 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13039 echo $ac_n "(cached) $ac_c" 1>&6
13040 else
13041 cat > conftest.$ac_ext <<EOF
13042 #line 13043 "configure"
13043 #include "confdefs.h"
13044 #include <$ac_hdr>
13045 EOF
13046 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13047 { (eval echo configure:13048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13048 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13049 if test -z "$ac_err"; then
13050 rm -rf conftest*
13051 eval "ac_cv_header_$ac_safe=yes"
13052 else
13053 echo "$ac_err" >&5
13054 echo "configure: failed program was:" >&5
13055 cat conftest.$ac_ext >&5
13056 rm -rf conftest*
13057 eval "ac_cv_header_$ac_safe=no"
13058 fi
13059 rm -f conftest*
13060 fi
13061 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13062 echo "$ac_t""yes" 1>&6
13063 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13064 cat >> confdefs.h <<EOF
13065 #define $ac_tr_hdr 1
13066 EOF
13067
13068 else
13069 echo "$ac_t""no" 1>&6
13070 fi
13071 done
13072
13073 fi
13074
13075 for ac_hdr in stdlib.h
13076 do
13077 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13078 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13079 echo "configure:13080: checking for $ac_hdr" >&5
13080 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13081 echo $ac_n "(cached) $ac_c" 1>&6
13082 else
13083 cat > conftest.$ac_ext <<EOF
13084 #line 13085 "configure"
13085 #include "confdefs.h"
13086 #include <$ac_hdr>
13087 EOF
13088 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13089 { (eval echo configure:13090: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13090 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13091 if test -z "$ac_err"; then
13092 rm -rf conftest*
13093 eval "ac_cv_header_$ac_safe=yes"
13094 else
13095 echo "$ac_err" >&5
13096 echo "configure: failed program was:" >&5
13097 cat conftest.$ac_ext >&5
13098 rm -rf conftest*
13099 eval "ac_cv_header_$ac_safe=no"
13100 fi
13101 rm -f conftest*
13102 fi
13103 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13104 echo "$ac_t""yes" 1>&6
13105 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13106 cat >> confdefs.h <<EOF
13107 #define $ac_tr_hdr 1
13108 EOF
13109
13110 else
13111 echo "$ac_t""no" 1>&6
13112 fi
13113 done
13114
13115 for ac_hdr in malloc.h
13116 do
13117 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13118 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13119 echo "configure:13120: checking for $ac_hdr" >&5
13120 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13121 echo $ac_n "(cached) $ac_c" 1>&6
13122 else
13123 cat > conftest.$ac_ext <<EOF
13124 #line 13125 "configure"
13125 #include "confdefs.h"
13126 #include <$ac_hdr>
13127 EOF
13128 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13129 { (eval echo configure:13130: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13130 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13131 if test -z "$ac_err"; then
13132 rm -rf conftest*
13133 eval "ac_cv_header_$ac_safe=yes"
13134 else
13135 echo "$ac_err" >&5
13136 echo "configure: failed program was:" >&5
13137 cat conftest.$ac_ext >&5
13138 rm -rf conftest*
13139 eval "ac_cv_header_$ac_safe=no"
13140 fi
13141 rm -f conftest*
13142 fi
13143 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13144 echo "$ac_t""yes" 1>&6
13145 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13146 cat >> confdefs.h <<EOF
13147 #define $ac_tr_hdr 1
13148 EOF
13149
13150 else
13151 echo "$ac_t""no" 1>&6
13152 fi
13153 done
13154
13155 for ac_hdr in unistd.h
13156 do
13157 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13158 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13159 echo "configure:13160: checking for $ac_hdr" >&5
13160 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13161 echo $ac_n "(cached) $ac_c" 1>&6
13162 else
13163 cat > conftest.$ac_ext <<EOF
13164 #line 13165 "configure"
13165 #include "confdefs.h"
13166 #include <$ac_hdr>
13167 EOF
13168 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13169 { (eval echo configure:13170: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13170 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13171 if test -z "$ac_err"; then
13172 rm -rf conftest*
13173 eval "ac_cv_header_$ac_safe=yes"
13174 else
13175 echo "$ac_err" >&5
13176 echo "configure: failed program was:" >&5
13177 cat conftest.$ac_ext >&5
13178 rm -rf conftest*
13179 eval "ac_cv_header_$ac_safe=no"
13180 fi
13181 rm -f conftest*
13182 fi
13183 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13184 echo "$ac_t""yes" 1>&6
13185 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13186 cat >> confdefs.h <<EOF
13187 #define $ac_tr_hdr 1
13188 EOF
13189
13190 else
13191 echo "$ac_t""no" 1>&6
13192 fi
13193 done
13194
13195 for ac_hdr in wchar.h
13196 do
13197 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13198 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13199 echo "configure:13200: checking for $ac_hdr" >&5
13200 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13201 echo $ac_n "(cached) $ac_c" 1>&6
13202 else
13203 cat > conftest.$ac_ext <<EOF
13204 #line 13205 "configure"
13205 #include "confdefs.h"
13206 #include <$ac_hdr>
13207 EOF
13208 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13209 { (eval echo configure:13210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13210 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13211 if test -z "$ac_err"; then
13212 rm -rf conftest*
13213 eval "ac_cv_header_$ac_safe=yes"
13214 else
13215 echo "$ac_err" >&5
13216 echo "configure: failed program was:" >&5
13217 cat conftest.$ac_ext >&5
13218 rm -rf conftest*
13219 eval "ac_cv_header_$ac_safe=no"
13220 fi
13221 rm -f conftest*
13222 fi
13223 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13224 echo "$ac_t""yes" 1>&6
13225 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13226 cat >> confdefs.h <<EOF
13227 #define $ac_tr_hdr 1
13228 EOF
13229
13230 else
13231 echo "$ac_t""no" 1>&6
13232 fi
13233 done
13234
13235 for ac_hdr in wcstr.h
13236 do
13237 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13238 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13239 echo "configure:13240: checking for $ac_hdr" >&5
13240 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13241 echo $ac_n "(cached) $ac_c" 1>&6
13242 else
13243 cat > conftest.$ac_ext <<EOF
13244 #line 13245 "configure"
13245 #include "confdefs.h"
13246 #include <$ac_hdr>
13247 EOF
13248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13249 { (eval echo configure:13250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13251 if test -z "$ac_err"; then
13252 rm -rf conftest*
13253 eval "ac_cv_header_$ac_safe=yes"
13254 else
13255 echo "$ac_err" >&5
13256 echo "configure: failed program was:" >&5
13257 cat conftest.$ac_ext >&5
13258 rm -rf conftest*
13259 eval "ac_cv_header_$ac_safe=no"
13260 fi
13261 rm -f conftest*
13262 fi
13263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13264 echo "$ac_t""yes" 1>&6
13265 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13266 cat >> confdefs.h <<EOF
13267 #define $ac_tr_hdr 1
13268 EOF
13269
13270 else
13271 echo "$ac_t""no" 1>&6
13272 fi
13273 done
13274
13275 for ac_hdr in wctype.h
13276 do
13277 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13278 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13279 echo "configure:13280: checking for $ac_hdr" >&5
13280 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13281 echo $ac_n "(cached) $ac_c" 1>&6
13282 else
13283 cat > conftest.$ac_ext <<EOF
13284 #line 13285 "configure"
13285 #include "confdefs.h"
13286 #include <$ac_hdr>
13287 EOF
13288 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13289 { (eval echo configure:13290: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13290 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13291 if test -z "$ac_err"; then
13292 rm -rf conftest*
13293 eval "ac_cv_header_$ac_safe=yes"
13294 else
13295 echo "$ac_err" >&5
13296 echo "configure: failed program was:" >&5
13297 cat conftest.$ac_ext >&5
13298 rm -rf conftest*
13299 eval "ac_cv_header_$ac_safe=no"
13300 fi
13301 rm -f conftest*
13302 fi
13303 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13304 echo "$ac_t""yes" 1>&6
13305 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13306 cat >> confdefs.h <<EOF
13307 #define $ac_tr_hdr 1
13308 EOF
13309
13310 else
13311 echo "$ac_t""no" 1>&6
13312 fi
13313 done
13314
13315 for ac_hdr in fnmatch.h
13316 do
13317 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13318 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13319 echo "configure:13320: checking for $ac_hdr" >&5
13320 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13321 echo $ac_n "(cached) $ac_c" 1>&6
13322 else
13323 cat > conftest.$ac_ext <<EOF
13324 #line 13325 "configure"
13325 #include "confdefs.h"
13326 #include <$ac_hdr>
13327 EOF
13328 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13329 { (eval echo configure:13330: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13330 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13331 if test -z "$ac_err"; then
13332 rm -rf conftest*
13333 eval "ac_cv_header_$ac_safe=yes"
13334 else
13335 echo "$ac_err" >&5
13336 echo "configure: failed program was:" >&5
13337 cat conftest.$ac_ext >&5
13338 rm -rf conftest*
13339 eval "ac_cv_header_$ac_safe=no"
13340 fi
13341 rm -f conftest*
13342 fi
13343 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13344 echo "$ac_t""yes" 1>&6
13345 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13346 cat >> confdefs.h <<EOF
13347 #define $ac_tr_hdr 1
13348 EOF
13349
13350 else
13351 echo "$ac_t""no" 1>&6
13352 fi
13353 done
13354
13355 for ac_hdr in iconv.h
13356 do
13357 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13358 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13359 echo "configure:13360: checking for $ac_hdr" >&5
13360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13361 echo $ac_n "(cached) $ac_c" 1>&6
13362 else
13363 cat > conftest.$ac_ext <<EOF
13364 #line 13365 "configure"
13365 #include "confdefs.h"
13366 #include <$ac_hdr>
13367 EOF
13368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13369 { (eval echo configure:13370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13370 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13371 if test -z "$ac_err"; then
13372 rm -rf conftest*
13373 eval "ac_cv_header_$ac_safe=yes"
13374 else
13375 echo "$ac_err" >&5
13376 echo "configure: failed program was:" >&5
13377 cat conftest.$ac_ext >&5
13378 rm -rf conftest*
13379 eval "ac_cv_header_$ac_safe=no"
13380 fi
13381 rm -f conftest*
13382 fi
13383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13384 echo "$ac_t""yes" 1>&6
13385 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13386 cat >> confdefs.h <<EOF
13387 #define $ac_tr_hdr 1
13388 EOF
13389
13390 else
13391 echo "$ac_t""no" 1>&6
13392 fi
13393 done
13394
13395 for ac_hdr in langinfo.h
13396 do
13397 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13398 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13399 echo "configure:13400: checking for $ac_hdr" >&5
13400 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13401 echo $ac_n "(cached) $ac_c" 1>&6
13402 else
13403 cat > conftest.$ac_ext <<EOF
13404 #line 13405 "configure"
13405 #include "confdefs.h"
13406 #include <$ac_hdr>
13407 EOF
13408 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13409 { (eval echo configure:13410: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13410 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13411 if test -z "$ac_err"; then
13412 rm -rf conftest*
13413 eval "ac_cv_header_$ac_safe=yes"
13414 else
13415 echo "$ac_err" >&5
13416 echo "configure: failed program was:" >&5
13417 cat conftest.$ac_ext >&5
13418 rm -rf conftest*
13419 eval "ac_cv_header_$ac_safe=no"
13420 fi
13421 rm -f conftest*
13422 fi
13423 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13424 echo "$ac_t""yes" 1>&6
13425 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13426 cat >> confdefs.h <<EOF
13427 #define $ac_tr_hdr 1
13428 EOF
13429
13430 else
13431 echo "$ac_t""no" 1>&6
13432 fi
13433 done
13434
13435
13436 if test "$wxUSE_GUI" = "yes"; then
13437 if test "$wxUSE_UNIX" = "yes"; then
13438 for ac_hdr in X11/XKBlib.h
13439 do
13440 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13441 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13442 echo "configure:13443: checking for $ac_hdr" >&5
13443 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13444 echo $ac_n "(cached) $ac_c" 1>&6
13445 else
13446 cat > conftest.$ac_ext <<EOF
13447 #line 13448 "configure"
13448 #include "confdefs.h"
13449 #include <$ac_hdr>
13450 EOF
13451 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13452 { (eval echo configure:13453: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13453 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13454 if test -z "$ac_err"; then
13455 rm -rf conftest*
13456 eval "ac_cv_header_$ac_safe=yes"
13457 else
13458 echo "$ac_err" >&5
13459 echo "configure: failed program was:" >&5
13460 cat conftest.$ac_ext >&5
13461 rm -rf conftest*
13462 eval "ac_cv_header_$ac_safe=no"
13463 fi
13464 rm -f conftest*
13465 fi
13466 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13467 echo "$ac_t""yes" 1>&6
13468 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13469 cat >> confdefs.h <<EOF
13470 #define $ac_tr_hdr 1
13471 EOF
13472
13473 else
13474 echo "$ac_t""no" 1>&6
13475 fi
13476 done
13477
13478 fi
13479 fi
13480
13481
13482 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13483 echo "configure:13484: checking for ANSI C header files" >&5
13484 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
13485 echo $ac_n "(cached) $ac_c" 1>&6
13486 else
13487 cat > conftest.$ac_ext <<EOF
13488 #line 13489 "configure"
13489 #include "confdefs.h"
13490 #include <stdlib.h>
13491 #include <stdarg.h>
13492 #include <string.h>
13493 #include <float.h>
13494 EOF
13495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13496 { (eval echo configure:13497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13498 if test -z "$ac_err"; then
13499 rm -rf conftest*
13500 ac_cv_header_stdc=yes
13501 else
13502 echo "$ac_err" >&5
13503 echo "configure: failed program was:" >&5
13504 cat conftest.$ac_ext >&5
13505 rm -rf conftest*
13506 ac_cv_header_stdc=no
13507 fi
13508 rm -f conftest*
13509
13510 if test $ac_cv_header_stdc = yes; then
13511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13512 cat > conftest.$ac_ext <<EOF
13513 #line 13514 "configure"
13514 #include "confdefs.h"
13515 #include <string.h>
13516 EOF
13517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13518 egrep "memchr" >/dev/null 2>&1; then
13519 :
13520 else
13521 rm -rf conftest*
13522 ac_cv_header_stdc=no
13523 fi
13524 rm -f conftest*
13525
13526 fi
13527
13528 if test $ac_cv_header_stdc = yes; then
13529 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13530 cat > conftest.$ac_ext <<EOF
13531 #line 13532 "configure"
13532 #include "confdefs.h"
13533 #include <stdlib.h>
13534 EOF
13535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13536 egrep "free" >/dev/null 2>&1; then
13537 :
13538 else
13539 rm -rf conftest*
13540 ac_cv_header_stdc=no
13541 fi
13542 rm -f conftest*
13543
13544 fi
13545
13546 if test $ac_cv_header_stdc = yes; then
13547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13548 if test "$cross_compiling" = yes; then
13549 :
13550 else
13551 cat > conftest.$ac_ext <<EOF
13552 #line 13553 "configure"
13553 #include "confdefs.h"
13554 #include <ctype.h>
13555 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13556 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13557 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13558 int main () { int i; for (i = 0; i < 256; i++)
13559 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13560 exit (0); }
13561
13562 EOF
13563 if { (eval echo configure:13564: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13564 then
13565 :
13566 else
13567 echo "configure: failed program was:" >&5
13568 cat conftest.$ac_ext >&5
13569 rm -fr conftest*
13570 ac_cv_header_stdc=no
13571 fi
13572 rm -fr conftest*
13573 fi
13574
13575 fi
13576 fi
13577
13578 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13579 if test $ac_cv_header_stdc = yes; then
13580 cat >> confdefs.h <<\EOF
13581 #define STDC_HEADERS 1
13582 EOF
13583
13584 fi
13585
13586 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13587 echo "configure:13588: checking for mode_t" >&5
13588 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
13589 echo $ac_n "(cached) $ac_c" 1>&6
13590 else
13591 cat > conftest.$ac_ext <<EOF
13592 #line 13593 "configure"
13593 #include "confdefs.h"
13594 #include <sys/types.h>
13595 #if STDC_HEADERS
13596 #include <stdlib.h>
13597 #include <stddef.h>
13598 #endif
13599 EOF
13600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13601 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13602 rm -rf conftest*
13603 ac_cv_type_mode_t=yes
13604 else
13605 rm -rf conftest*
13606 ac_cv_type_mode_t=no
13607 fi
13608 rm -f conftest*
13609
13610 fi
13611 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
13612 if test $ac_cv_type_mode_t = no; then
13613 cat >> confdefs.h <<\EOF
13614 #define mode_t int
13615 EOF
13616
13617 fi
13618
13619 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13620 echo "configure:13621: checking for off_t" >&5
13621 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
13622 echo $ac_n "(cached) $ac_c" 1>&6
13623 else
13624 cat > conftest.$ac_ext <<EOF
13625 #line 13626 "configure"
13626 #include "confdefs.h"
13627 #include <sys/types.h>
13628 #if STDC_HEADERS
13629 #include <stdlib.h>
13630 #include <stddef.h>
13631 #endif
13632 EOF
13633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13634 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13635 rm -rf conftest*
13636 ac_cv_type_off_t=yes
13637 else
13638 rm -rf conftest*
13639 ac_cv_type_off_t=no
13640 fi
13641 rm -f conftest*
13642
13643 fi
13644 echo "$ac_t""$ac_cv_type_off_t" 1>&6
13645 if test $ac_cv_type_off_t = no; then
13646 cat >> confdefs.h <<\EOF
13647 #define off_t long
13648 EOF
13649
13650 fi
13651
13652 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13653 echo "configure:13654: checking for pid_t" >&5
13654 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
13655 echo $ac_n "(cached) $ac_c" 1>&6
13656 else
13657 cat > conftest.$ac_ext <<EOF
13658 #line 13659 "configure"
13659 #include "confdefs.h"
13660 #include <sys/types.h>
13661 #if STDC_HEADERS
13662 #include <stdlib.h>
13663 #include <stddef.h>
13664 #endif
13665 EOF
13666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13667 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13668 rm -rf conftest*
13669 ac_cv_type_pid_t=yes
13670 else
13671 rm -rf conftest*
13672 ac_cv_type_pid_t=no
13673 fi
13674 rm -f conftest*
13675
13676 fi
13677 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
13678 if test $ac_cv_type_pid_t = no; then
13679 cat >> confdefs.h <<\EOF
13680 #define pid_t int
13681 EOF
13682
13683 fi
13684
13685 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13686 echo "configure:13687: checking for size_t" >&5
13687 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
13688 echo $ac_n "(cached) $ac_c" 1>&6
13689 else
13690 cat > conftest.$ac_ext <<EOF
13691 #line 13692 "configure"
13692 #include "confdefs.h"
13693 #include <sys/types.h>
13694 #if STDC_HEADERS
13695 #include <stdlib.h>
13696 #include <stddef.h>
13697 #endif
13698 EOF
13699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13700 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13701 rm -rf conftest*
13702 ac_cv_type_size_t=yes
13703 else
13704 rm -rf conftest*
13705 ac_cv_type_size_t=no
13706 fi
13707 rm -f conftest*
13708
13709 fi
13710 echo "$ac_t""$ac_cv_type_size_t" 1>&6
13711 if test $ac_cv_type_size_t = no; then
13712 cat >> confdefs.h <<\EOF
13713 #define size_t unsigned
13714 EOF
13715
13716 fi
13717
13718 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
13719 echo "configure:13720: checking for uid_t in sys/types.h" >&5
13720 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
13721 echo $ac_n "(cached) $ac_c" 1>&6
13722 else
13723 cat > conftest.$ac_ext <<EOF
13724 #line 13725 "configure"
13725 #include "confdefs.h"
13726 #include <sys/types.h>
13727 EOF
13728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13729 egrep "uid_t" >/dev/null 2>&1; then
13730 rm -rf conftest*
13731 ac_cv_type_uid_t=yes
13732 else
13733 rm -rf conftest*
13734 ac_cv_type_uid_t=no
13735 fi
13736 rm -f conftest*
13737
13738 fi
13739
13740 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13741 if test $ac_cv_type_uid_t = no; then
13742 cat >> confdefs.h <<\EOF
13743 #define uid_t int
13744 EOF
13745
13746 cat >> confdefs.h <<\EOF
13747 #define gid_t int
13748 EOF
13749
13750 fi
13751
13752
13753 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
13754 echo "configure:13755: checking for wchar_t" >&5
13755 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
13756 echo $ac_n "(cached) $ac_c" 1>&6
13757 else
13758
13759 cat > conftest.$ac_ext <<EOF
13760 #line 13761 "configure"
13761 #include "confdefs.h"
13762
13763 #ifdef HAVE_WCHAR_H
13764 # ifdef __CYGWIN__
13765 # include <stddef.h>
13766 # endif
13767 # include <wchar.h>
13768 #endif
13769 #ifdef HAVE_STDLIB_H
13770 # include <stdlib.h>
13771 #endif
13772
13773 int main() {
13774
13775 wchar_t wc, *ws;
13776 wc = L'a';
13777 ws = L"Hello, world!";
13778
13779 ; return 0; }
13780 EOF
13781 if { (eval echo configure:13782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13782 rm -rf conftest*
13783 wx_cv_type_wchar_t=yes
13784 else
13785 echo "configure: failed program was:" >&5
13786 cat conftest.$ac_ext >&5
13787 rm -rf conftest*
13788 wx_cv_type_wchar_t=no
13789
13790 fi
13791 rm -f conftest*
13792
13793 fi
13794
13795 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
13796
13797 if test "$wx_cv_type_wchar_t" = "yes"; then
13798 cat >> confdefs.h <<\EOF
13799 #define wxUSE_WCHAR_T 1
13800 EOF
13801
13802 fi
13803
13804
13805 ac_ext=C
13806 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13807 ac_cpp='$CXXCPP $CPPFLAGS'
13808 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13809 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13810 cross_compiling=$ac_cv_prog_cxx_cross
13811
13812 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
13813 echo "configure:13814: checking if size_t is unsigned int" >&5
13814 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
13815 echo $ac_n "(cached) $ac_c" 1>&6
13816 else
13817 cat > conftest.$ac_ext <<EOF
13818 #line 13819 "configure"
13819 #include "confdefs.h"
13820 #include <stddef.h>
13821 int main() {
13822
13823 return 0; }
13824
13825 struct Foo { void foo(size_t); void foo(unsigned int); };
13826
13827 int bar() {
13828
13829 ; return 0; }
13830 EOF
13831 if { (eval echo configure:13832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13832 rm -rf conftest*
13833 wx_cv_size_t_is_uint=no
13834 else
13835 echo "configure: failed program was:" >&5
13836 cat conftest.$ac_ext >&5
13837 rm -rf conftest*
13838 wx_cv_size_t_is_uint=yes
13839
13840 fi
13841 rm -f conftest*
13842
13843 fi
13844
13845 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
13846
13847 if test "$wx_cv_size_t_is_uint" = "yes"; then
13848 cat >> confdefs.h <<\EOF
13849 #define wxSIZE_T_IS_UINT 1
13850 EOF
13851
13852 else
13853 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
13854 echo "configure:13855: checking if size_t is unsigned long" >&5
13855 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
13856 echo $ac_n "(cached) $ac_c" 1>&6
13857 else
13858 cat > conftest.$ac_ext <<EOF
13859 #line 13860 "configure"
13860 #include "confdefs.h"
13861 #include <stddef.h>
13862 int main() {
13863
13864 return 0; }
13865
13866 struct Foo { void foo(size_t); void foo(unsigned long); };
13867
13868 int bar() {
13869
13870 ; return 0; }
13871 EOF
13872 if { (eval echo configure:13873: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13873 rm -rf conftest*
13874 wx_cv_size_t_is_ulong=no
13875 else
13876 echo "configure: failed program was:" >&5
13877 cat conftest.$ac_ext >&5
13878 rm -rf conftest*
13879 wx_cv_size_t_is_ulong=yes
13880
13881 fi
13882 rm -f conftest*
13883
13884 fi
13885
13886 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
13887
13888 if test "$wx_cv_size_t_is_ulong" = "yes"; then
13889 cat >> confdefs.h <<\EOF
13890 #define wxSIZE_T_IS_ULONG 1
13891 EOF
13892
13893 fi
13894 fi
13895
13896 ac_ext=c
13897 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13898 ac_cpp='$CPP $CPPFLAGS'
13899 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13900 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13901 cross_compiling=$ac_cv_prog_cc_cross
13902
13903
13904
13905 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
13906 echo "configure:13907: checking for pw_gecos in struct passwd" >&5
13907 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
13908 echo $ac_n "(cached) $ac_c" 1>&6
13909 else
13910
13911 cat > conftest.$ac_ext <<EOF
13912 #line 13913 "configure"
13913 #include "confdefs.h"
13914 #include <pwd.h>
13915 int main() {
13916
13917 char *p;
13918 struct passwd *pw;
13919 p = pw->pw_gecos;
13920
13921 ; return 0; }
13922 EOF
13923 if { (eval echo configure:13924: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13924 rm -rf conftest*
13925
13926 wx_cv_struct_pw_gecos=yes
13927
13928 else
13929 echo "configure: failed program was:" >&5
13930 cat conftest.$ac_ext >&5
13931 rm -rf conftest*
13932
13933 wx_cv_struct_pw_gecos=no
13934
13935
13936 fi
13937 rm -f conftest*
13938
13939
13940 fi
13941
13942 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
13943
13944 if test "$wx_cv_struct_pw_gecos" = "yes"; then
13945 cat >> confdefs.h <<\EOF
13946 #define HAVE_PW_GECOS 1
13947 EOF
13948
13949 fi
13950
13951
13952 echo $ac_n "checking for working const""... $ac_c" 1>&6
13953 echo "configure:13954: checking for working const" >&5
13954 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13955 echo $ac_n "(cached) $ac_c" 1>&6
13956 else
13957 cat > conftest.$ac_ext <<EOF
13958 #line 13959 "configure"
13959 #include "confdefs.h"
13960
13961 int main() {
13962
13963 /* Ultrix mips cc rejects this. */
13964 typedef int charset[2]; const charset x;
13965 /* SunOS 4.1.1 cc rejects this. */
13966 char const *const *ccp;
13967 char **p;
13968 /* NEC SVR4.0.2 mips cc rejects this. */
13969 struct point {int x, y;};
13970 static struct point const zero = {0,0};
13971 /* AIX XL C 1.02.0.0 rejects this.
13972 It does not let you subtract one const X* pointer from another in an arm
13973 of an if-expression whose if-part is not a constant expression */
13974 const char *g = "string";
13975 ccp = &g + (g ? g-g : 0);
13976 /* HPUX 7.0 cc rejects these. */
13977 ++ccp;
13978 p = (char**) ccp;
13979 ccp = (char const *const *) p;
13980 { /* SCO 3.2v4 cc rejects this. */
13981 char *t;
13982 char const *s = 0 ? (char *) 0 : (char const *) 0;
13983
13984 *t++ = 0;
13985 }
13986 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13987 int x[] = {25, 17};
13988 const int *foo = &x[0];
13989 ++foo;
13990 }
13991 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13992 typedef const int *iptr;
13993 iptr p = 0;
13994 ++p;
13995 }
13996 { /* AIX XL C 1.02.0.0 rejects this saying
13997 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13998 struct s { int j; const int *ap[3]; };
13999 struct s *b; b->j = 5;
14000 }
14001 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14002 const int foo = 10;
14003 }
14004
14005 ; return 0; }
14006 EOF
14007 if { (eval echo configure:14008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14008 rm -rf conftest*
14009 ac_cv_c_const=yes
14010 else
14011 echo "configure: failed program was:" >&5
14012 cat conftest.$ac_ext >&5
14013 rm -rf conftest*
14014 ac_cv_c_const=no
14015 fi
14016 rm -f conftest*
14017 fi
14018
14019 echo "$ac_t""$ac_cv_c_const" 1>&6
14020 if test $ac_cv_c_const = no; then
14021 cat >> confdefs.h <<\EOF
14022 #define const
14023 EOF
14024
14025 fi
14026
14027 echo $ac_n "checking for inline""... $ac_c" 1>&6
14028 echo "configure:14029: checking for inline" >&5
14029 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
14030 echo $ac_n "(cached) $ac_c" 1>&6
14031 else
14032 ac_cv_c_inline=no
14033 for ac_kw in inline __inline__ __inline; do
14034 cat > conftest.$ac_ext <<EOF
14035 #line 14036 "configure"
14036 #include "confdefs.h"
14037
14038 int main() {
14039 } $ac_kw foo() {
14040 ; return 0; }
14041 EOF
14042 if { (eval echo configure:14043: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14043 rm -rf conftest*
14044 ac_cv_c_inline=$ac_kw; break
14045 else
14046 echo "configure: failed program was:" >&5
14047 cat conftest.$ac_ext >&5
14048 fi
14049 rm -f conftest*
14050 done
14051
14052 fi
14053
14054 echo "$ac_t""$ac_cv_c_inline" 1>&6
14055 case "$ac_cv_c_inline" in
14056 inline | yes) ;;
14057 no) cat >> confdefs.h <<\EOF
14058 #define inline
14059 EOF
14060 ;;
14061 *) cat >> confdefs.h <<EOF
14062 #define inline $ac_cv_c_inline
14063 EOF
14064 ;;
14065 esac
14066
14067
14068 echo $ac_n "checking size of char""... $ac_c" 1>&6
14069 echo "configure:14070: checking size of char" >&5
14070 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
14071 echo $ac_n "(cached) $ac_c" 1>&6
14072 else
14073 if test "$cross_compiling" = yes; then
14074 ac_cv_sizeof_char=1
14075 else
14076 cat > conftest.$ac_ext <<EOF
14077 #line 14078 "configure"
14078 #include "confdefs.h"
14079 #include <stdio.h>
14080 main()
14081 {
14082 FILE *f=fopen("conftestval", "w");
14083 if (!f) exit(1);
14084 fprintf(f, "%d\n", sizeof(char));
14085 exit(0);
14086 }
14087 EOF
14088 if { (eval echo configure:14089: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14089 then
14090 ac_cv_sizeof_char=`cat conftestval`
14091 else
14092 echo "configure: failed program was:" >&5
14093 cat conftest.$ac_ext >&5
14094 rm -fr conftest*
14095 ac_cv_sizeof_char=0
14096 fi
14097 rm -fr conftest*
14098 fi
14099
14100 fi
14101 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
14102 cat >> confdefs.h <<EOF
14103 #define SIZEOF_CHAR $ac_cv_sizeof_char
14104 EOF
14105
14106
14107 echo $ac_n "checking size of short""... $ac_c" 1>&6
14108 echo "configure:14109: checking size of short" >&5
14109 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
14110 echo $ac_n "(cached) $ac_c" 1>&6
14111 else
14112 if test "$cross_compiling" = yes; then
14113 ac_cv_sizeof_short=2
14114 else
14115 cat > conftest.$ac_ext <<EOF
14116 #line 14117 "configure"
14117 #include "confdefs.h"
14118 #include <stdio.h>
14119 main()
14120 {
14121 FILE *f=fopen("conftestval", "w");
14122 if (!f) exit(1);
14123 fprintf(f, "%d\n", sizeof(short));
14124 exit(0);
14125 }
14126 EOF
14127 if { (eval echo configure:14128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14128 then
14129 ac_cv_sizeof_short=`cat conftestval`
14130 else
14131 echo "configure: failed program was:" >&5
14132 cat conftest.$ac_ext >&5
14133 rm -fr conftest*
14134 ac_cv_sizeof_short=0
14135 fi
14136 rm -fr conftest*
14137 fi
14138
14139 fi
14140 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
14141 cat >> confdefs.h <<EOF
14142 #define SIZEOF_SHORT $ac_cv_sizeof_short
14143 EOF
14144
14145
14146 echo $ac_n "checking size of int *""... $ac_c" 1>&6
14147 echo "configure:14148: checking size of int *" >&5
14148 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
14149 echo $ac_n "(cached) $ac_c" 1>&6
14150 else
14151 if test "$cross_compiling" = yes; then
14152 ac_cv_sizeof_int_p=4
14153 else
14154 cat > conftest.$ac_ext <<EOF
14155 #line 14156 "configure"
14156 #include "confdefs.h"
14157 #include <stdio.h>
14158 main()
14159 {
14160 FILE *f=fopen("conftestval", "w");
14161 if (!f) exit(1);
14162 fprintf(f, "%d\n", sizeof(int *));
14163 exit(0);
14164 }
14165 EOF
14166 if { (eval echo configure:14167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14167 then
14168 ac_cv_sizeof_int_p=`cat conftestval`
14169 else
14170 echo "configure: failed program was:" >&5
14171 cat conftest.$ac_ext >&5
14172 rm -fr conftest*
14173 ac_cv_sizeof_int_p=0
14174 fi
14175 rm -fr conftest*
14176 fi
14177
14178 fi
14179 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
14180 cat >> confdefs.h <<EOF
14181 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
14182 EOF
14183
14184
14185 echo $ac_n "checking size of int""... $ac_c" 1>&6
14186 echo "configure:14187: checking size of int" >&5
14187 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
14188 echo $ac_n "(cached) $ac_c" 1>&6
14189 else
14190 if test "$cross_compiling" = yes; then
14191 ac_cv_sizeof_int=4
14192 else
14193 cat > conftest.$ac_ext <<EOF
14194 #line 14195 "configure"
14195 #include "confdefs.h"
14196 #include <stdio.h>
14197 main()
14198 {
14199 FILE *f=fopen("conftestval", "w");
14200 if (!f) exit(1);
14201 fprintf(f, "%d\n", sizeof(int));
14202 exit(0);
14203 }
14204 EOF
14205 if { (eval echo configure:14206: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14206 then
14207 ac_cv_sizeof_int=`cat conftestval`
14208 else
14209 echo "configure: failed program was:" >&5
14210 cat conftest.$ac_ext >&5
14211 rm -fr conftest*
14212 ac_cv_sizeof_int=0
14213 fi
14214 rm -fr conftest*
14215 fi
14216
14217 fi
14218 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
14219 cat >> confdefs.h <<EOF
14220 #define SIZEOF_INT $ac_cv_sizeof_int
14221 EOF
14222
14223
14224 echo $ac_n "checking size of long""... $ac_c" 1>&6
14225 echo "configure:14226: checking size of long" >&5
14226 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
14227 echo $ac_n "(cached) $ac_c" 1>&6
14228 else
14229 if test "$cross_compiling" = yes; then
14230 ac_cv_sizeof_long=4
14231 else
14232 cat > conftest.$ac_ext <<EOF
14233 #line 14234 "configure"
14234 #include "confdefs.h"
14235 #include <stdio.h>
14236 main()
14237 {
14238 FILE *f=fopen("conftestval", "w");
14239 if (!f) exit(1);
14240 fprintf(f, "%d\n", sizeof(long));
14241 exit(0);
14242 }
14243 EOF
14244 if { (eval echo configure:14245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14245 then
14246 ac_cv_sizeof_long=`cat conftestval`
14247 else
14248 echo "configure: failed program was:" >&5
14249 cat conftest.$ac_ext >&5
14250 rm -fr conftest*
14251 ac_cv_sizeof_long=0
14252 fi
14253 rm -fr conftest*
14254 fi
14255
14256 fi
14257 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
14258 cat >> confdefs.h <<EOF
14259 #define SIZEOF_LONG $ac_cv_sizeof_long
14260 EOF
14261
14262
14263 echo $ac_n "checking size of long long""... $ac_c" 1>&6
14264 echo "configure:14265: checking size of long long" >&5
14265 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
14266 echo $ac_n "(cached) $ac_c" 1>&6
14267 else
14268 if test "$cross_compiling" = yes; then
14269 ac_cv_sizeof_long_long=0
14270 else
14271 cat > conftest.$ac_ext <<EOF
14272 #line 14273 "configure"
14273 #include "confdefs.h"
14274 #include <stdio.h>
14275 main()
14276 {
14277 FILE *f=fopen("conftestval", "w");
14278 if (!f) exit(1);
14279 fprintf(f, "%d\n", sizeof(long long));
14280 exit(0);
14281 }
14282 EOF
14283 if { (eval echo configure:14284: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14284 then
14285 ac_cv_sizeof_long_long=`cat conftestval`
14286 else
14287 echo "configure: failed program was:" >&5
14288 cat conftest.$ac_ext >&5
14289 rm -fr conftest*
14290 ac_cv_sizeof_long_long=0
14291 fi
14292 rm -fr conftest*
14293 fi
14294
14295 fi
14296 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
14297 cat >> confdefs.h <<EOF
14298 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
14299 EOF
14300
14301
14302
14303 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
14304 echo "configure:14305: checking size of wchar_t" >&5
14305 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
14306 echo $ac_n "(cached) $ac_c" 1>&6
14307 else
14308
14309 if test "$cross_compiling" = yes; then
14310 wx_cv_sizeof_wchar_t=4
14311
14312 else
14313 cat > conftest.$ac_ext <<EOF
14314 #line 14315 "configure"
14315 #include "confdefs.h"
14316
14317 #ifdef HAVE_WCHAR_H
14318 # ifdef __CYGWIN__
14319 # include <stddef.h>
14320 # endif
14321 # include <wchar.h>
14322 #endif
14323 #ifdef HAVE_STDLIB_H
14324 # include <stdlib.h>
14325 #endif
14326 #include <stdio.h>
14327 int main()
14328 {
14329 FILE *f=fopen("conftestval", "w");
14330 if (!f) exit(1);
14331 fprintf(f, "%i", sizeof(wchar_t));
14332 exit(0);
14333 }
14334
14335 EOF
14336 if { (eval echo configure:14337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14337 then
14338 wx_cv_sizeof_wchar_t=`cat conftestval`
14339 else
14340 echo "configure: failed program was:" >&5
14341 cat conftest.$ac_ext >&5
14342 rm -fr conftest*
14343 wx_cv_sizeof_wchar_t=0
14344 fi
14345 rm -fr conftest*
14346 fi
14347
14348
14349 fi
14350
14351 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
14352
14353 cat >> confdefs.h <<EOF
14354 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
14355 EOF
14356
14357
14358 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
14359 echo "configure:14360: checking whether byte ordering is bigendian" >&5
14360 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
14361 echo $ac_n "(cached) $ac_c" 1>&6
14362 else
14363 ac_cv_c_bigendian=unknown
14364 # See if sys/param.h defines the BYTE_ORDER macro.
14365 cat > conftest.$ac_ext <<EOF
14366 #line 14367 "configure"
14367 #include "confdefs.h"
14368 #include <sys/types.h>
14369 #include <sys/param.h>
14370 int main() {
14371
14372 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
14373 bogus endian macros
14374 #endif
14375 ; return 0; }
14376 EOF
14377 if { (eval echo configure:14378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14378 rm -rf conftest*
14379 # It does; now see whether it defined to BIG_ENDIAN or not.
14380 cat > conftest.$ac_ext <<EOF
14381 #line 14382 "configure"
14382 #include "confdefs.h"
14383 #include <sys/types.h>
14384 #include <sys/param.h>
14385 int main() {
14386
14387 #if BYTE_ORDER != BIG_ENDIAN
14388 not big endian
14389 #endif
14390 ; return 0; }
14391 EOF
14392 if { (eval echo configure:14393: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14393 rm -rf conftest*
14394 ac_cv_c_bigendian=yes
14395 else
14396 echo "configure: failed program was:" >&5
14397 cat conftest.$ac_ext >&5
14398 rm -rf conftest*
14399 ac_cv_c_bigendian=no
14400 fi
14401 rm -f conftest*
14402 else
14403 echo "configure: failed program was:" >&5
14404 cat conftest.$ac_ext >&5
14405 fi
14406 rm -f conftest*
14407 if test $ac_cv_c_bigendian = unknown; then
14408 if test "$cross_compiling" = yes; then
14409 ac_cv_c_bigendian=unknown
14410 else
14411 cat > conftest.$ac_ext <<EOF
14412 #line 14413 "configure"
14413 #include "confdefs.h"
14414 main () {
14415 /* Are we little or big endian? From Harbison&Steele. */
14416 union
14417 {
14418 long l;
14419 char c[sizeof (long)];
14420 } u;
14421 u.l = 1;
14422 exit (u.c[sizeof (long) - 1] == 1);
14423 }
14424 EOF
14425 if { (eval echo configure:14426: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
14426 then
14427 ac_cv_c_bigendian=no
14428 else
14429 echo "configure: failed program was:" >&5
14430 cat conftest.$ac_ext >&5
14431 rm -fr conftest*
14432 ac_cv_c_bigendian=yes
14433 fi
14434 rm -fr conftest*
14435 fi
14436
14437 fi
14438 fi
14439
14440 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
14441 if test $ac_cv_c_bigendian = unknown; then
14442 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
14443 fi
14444 if test $ac_cv_c_bigendian = yes; then
14445 cat >> confdefs.h <<\EOF
14446 #define WORDS_BIGENDIAN 1
14447 EOF
14448
14449 fi
14450
14451
14452 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
14453 echo "configure:14454: checking how to run the C++ preprocessor" >&5
14454 if test -z "$CXXCPP"; then
14455 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
14456 echo $ac_n "(cached) $ac_c" 1>&6
14457 else
14458 ac_ext=C
14459 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14460 ac_cpp='$CXXCPP $CPPFLAGS'
14461 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14462 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14463 cross_compiling=$ac_cv_prog_cxx_cross
14464 CXXCPP="${CXX-g++} -E"
14465 cat > conftest.$ac_ext <<EOF
14466 #line 14467 "configure"
14467 #include "confdefs.h"
14468 #include <stdlib.h>
14469 EOF
14470 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14471 { (eval echo configure:14472: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14472 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14473 if test -z "$ac_err"; then
14474 :
14475 else
14476 echo "$ac_err" >&5
14477 echo "configure: failed program was:" >&5
14478 cat conftest.$ac_ext >&5
14479 rm -rf conftest*
14480 CXXCPP=/lib/cpp
14481 fi
14482 rm -f conftest*
14483 ac_cv_prog_CXXCPP="$CXXCPP"
14484 ac_ext=C
14485 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14486 ac_cpp='$CXXCPP $CPPFLAGS'
14487 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14488 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14489 cross_compiling=$ac_cv_prog_cxx_cross
14490 fi
14491 fi
14492 CXXCPP="$ac_cv_prog_CXXCPP"
14493 echo "$ac_t""$CXXCPP" 1>&6
14494
14495
14496 if test "$cross_compiling" = "yes"; then
14497 cat >> confdefs.h <<\EOF
14498 #define wxUSE_IOSTREAMH 1
14499 EOF
14500
14501 else
14502
14503 ac_ext=C
14504 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14505 ac_cpp='$CXXCPP $CPPFLAGS'
14506 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14507 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14508 cross_compiling=$ac_cv_prog_cxx_cross
14509
14510
14511 for ac_hdr in iostream
14512 do
14513 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14514 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14515 echo "configure:14516: checking for $ac_hdr" >&5
14516 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14517 echo $ac_n "(cached) $ac_c" 1>&6
14518 else
14519 cat > conftest.$ac_ext <<EOF
14520 #line 14521 "configure"
14521 #include "confdefs.h"
14522 #include <$ac_hdr>
14523 EOF
14524 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14525 { (eval echo configure:14526: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14526 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14527 if test -z "$ac_err"; then
14528 rm -rf conftest*
14529 eval "ac_cv_header_$ac_safe=yes"
14530 else
14531 echo "$ac_err" >&5
14532 echo "configure: failed program was:" >&5
14533 cat conftest.$ac_ext >&5
14534 rm -rf conftest*
14535 eval "ac_cv_header_$ac_safe=no"
14536 fi
14537 rm -f conftest*
14538 fi
14539 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14540 echo "$ac_t""yes" 1>&6
14541 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14542 cat >> confdefs.h <<EOF
14543 #define $ac_tr_hdr 1
14544 EOF
14545
14546 else
14547 echo "$ac_t""no" 1>&6
14548 fi
14549 done
14550
14551
14552 if test "$ac_cv_header_iostream" = "yes" ; then
14553 :
14554 else
14555 cat >> confdefs.h <<\EOF
14556 #define wxUSE_IOSTREAMH 1
14557 EOF
14558
14559 fi
14560
14561 ac_ext=c
14562 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14563 ac_cpp='$CPP $CPPFLAGS'
14564 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14565 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14566 cross_compiling=$ac_cv_prog_cc_cross
14567
14568 fi
14569
14570
14571
14572 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
14573 echo "configure:14574: checking if C++ compiler supports bool" >&5
14574 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
14575 echo $ac_n "(cached) $ac_c" 1>&6
14576 else
14577
14578
14579 ac_ext=C
14580 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14581 ac_cpp='$CXXCPP $CPPFLAGS'
14582 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14583 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14584 cross_compiling=$ac_cv_prog_cxx_cross
14585
14586
14587 cat > conftest.$ac_ext <<EOF
14588 #line 14589 "configure"
14589 #include "confdefs.h"
14590
14591
14592 int main() {
14593
14594 bool b = true;
14595
14596 return 0;
14597
14598 ; return 0; }
14599 EOF
14600 if { (eval echo configure:14601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14601 rm -rf conftest*
14602
14603 wx_cv_cpp_bool=yes
14604
14605 else
14606 echo "configure: failed program was:" >&5
14607 cat conftest.$ac_ext >&5
14608 rm -rf conftest*
14609
14610 wx_cv_cpp_bool=no
14611
14612
14613 fi
14614 rm -f conftest*
14615
14616 ac_ext=c
14617 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14618 ac_cpp='$CPP $CPPFLAGS'
14619 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14620 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14621 cross_compiling=$ac_cv_prog_cc_cross
14622
14623
14624 fi
14625
14626 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
14627
14628 if test "$wx_cv_cpp_bool" = "yes"; then
14629 cat >> confdefs.h <<\EOF
14630 #define HAVE_BOOL 1
14631 EOF
14632
14633 fi
14634
14635
14636
14637 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
14638 echo "configure:14639: checking for wcslen in -lc" >&5
14639 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
14640 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14641 echo $ac_n "(cached) $ac_c" 1>&6
14642 else
14643 ac_save_LIBS="$LIBS"
14644 LIBS="-lc $LIBS"
14645 cat > conftest.$ac_ext <<EOF
14646 #line 14647 "configure"
14647 #include "confdefs.h"
14648 /* Override any gcc2 internal prototype to avoid an error. */
14649 /* We use char because int might match the return type of a gcc2
14650 builtin and then its argument prototype would still apply. */
14651 char wcslen();
14652
14653 int main() {
14654 wcslen()
14655 ; return 0; }
14656 EOF
14657 if { (eval echo configure:14658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14658 rm -rf conftest*
14659 eval "ac_cv_lib_$ac_lib_var=yes"
14660 else
14661 echo "configure: failed program was:" >&5
14662 cat conftest.$ac_ext >&5
14663 rm -rf conftest*
14664 eval "ac_cv_lib_$ac_lib_var=no"
14665 fi
14666 rm -f conftest*
14667 LIBS="$ac_save_LIBS"
14668
14669 fi
14670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14671 echo "$ac_t""yes" 1>&6
14672
14673 cat >> confdefs.h <<\EOF
14674 #define HAVE_WCSLEN 1
14675 EOF
14676
14677 WCHAR_LINK=
14678
14679 else
14680 echo "$ac_t""no" 1>&6
14681
14682 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
14683 echo "configure:14684: checking for wcslen in -lw" >&5
14684 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
14685 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14686 echo $ac_n "(cached) $ac_c" 1>&6
14687 else
14688 ac_save_LIBS="$LIBS"
14689 LIBS="-lw $LIBS"
14690 cat > conftest.$ac_ext <<EOF
14691 #line 14692 "configure"
14692 #include "confdefs.h"
14693 /* Override any gcc2 internal prototype to avoid an error. */
14694 /* We use char because int might match the return type of a gcc2
14695 builtin and then its argument prototype would still apply. */
14696 char wcslen();
14697
14698 int main() {
14699 wcslen()
14700 ; return 0; }
14701 EOF
14702 if { (eval echo configure:14703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14703 rm -rf conftest*
14704 eval "ac_cv_lib_$ac_lib_var=yes"
14705 else
14706 echo "configure: failed program was:" >&5
14707 cat conftest.$ac_ext >&5
14708 rm -rf conftest*
14709 eval "ac_cv_lib_$ac_lib_var=no"
14710 fi
14711 rm -f conftest*
14712 LIBS="$ac_save_LIBS"
14713
14714 fi
14715 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14716 echo "$ac_t""yes" 1>&6
14717
14718 cat >> confdefs.h <<\EOF
14719 #define HAVE_WCSLEN 1
14720 EOF
14721
14722 WCHAR_LINK=" -lw"
14723
14724 else
14725 echo "$ac_t""no" 1>&6
14726
14727 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
14728 echo "configure:14729: checking for wcslen in -lmsvcrt" >&5
14729 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
14730 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14731 echo $ac_n "(cached) $ac_c" 1>&6
14732 else
14733 ac_save_LIBS="$LIBS"
14734 LIBS="-lmsvcrt $LIBS"
14735 cat > conftest.$ac_ext <<EOF
14736 #line 14737 "configure"
14737 #include "confdefs.h"
14738 /* Override any gcc2 internal prototype to avoid an error. */
14739 /* We use char because int might match the return type of a gcc2
14740 builtin and then its argument prototype would still apply. */
14741 char wcslen();
14742
14743 int main() {
14744 wcslen()
14745 ; return 0; }
14746 EOF
14747 if { (eval echo configure:14748: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14748 rm -rf conftest*
14749 eval "ac_cv_lib_$ac_lib_var=yes"
14750 else
14751 echo "configure: failed program was:" >&5
14752 cat conftest.$ac_ext >&5
14753 rm -rf conftest*
14754 eval "ac_cv_lib_$ac_lib_var=no"
14755 fi
14756 rm -f conftest*
14757 LIBS="$ac_save_LIBS"
14758
14759 fi
14760 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14761 echo "$ac_t""yes" 1>&6
14762
14763 cat >> confdefs.h <<\EOF
14764 #define HAVE_WCSLEN 1
14765 EOF
14766
14767 WCHAR_LINK=
14768
14769 else
14770 echo "$ac_t""no" 1>&6
14771 fi
14772
14773
14774 fi
14775
14776
14777 fi
14778
14779
14780 for ac_func in wcsrtombs
14781 do
14782 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14783 echo "configure:14784: checking for $ac_func" >&5
14784 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14785 echo $ac_n "(cached) $ac_c" 1>&6
14786 else
14787 cat > conftest.$ac_ext <<EOF
14788 #line 14789 "configure"
14789 #include "confdefs.h"
14790 /* System header to define __stub macros and hopefully few prototypes,
14791 which can conflict with char $ac_func(); below. */
14792 #include <assert.h>
14793 /* Override any gcc2 internal prototype to avoid an error. */
14794 /* We use char because int might match the return type of a gcc2
14795 builtin and then its argument prototype would still apply. */
14796 char $ac_func();
14797
14798 int main() {
14799
14800 /* The GNU C library defines this for functions which it implements
14801 to always fail with ENOSYS. Some functions are actually named
14802 something starting with __ and the normal name is an alias. */
14803 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14804 choke me
14805 #else
14806 $ac_func();
14807 #endif
14808
14809 ; return 0; }
14810 EOF
14811 if { (eval echo configure:14812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14812 rm -rf conftest*
14813 eval "ac_cv_func_$ac_func=yes"
14814 else
14815 echo "configure: failed program was:" >&5
14816 cat conftest.$ac_ext >&5
14817 rm -rf conftest*
14818 eval "ac_cv_func_$ac_func=no"
14819 fi
14820 rm -f conftest*
14821 fi
14822
14823 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14824 echo "$ac_t""yes" 1>&6
14825 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14826 cat >> confdefs.h <<EOF
14827 #define $ac_tr_func 1
14828 EOF
14829
14830 else
14831 echo "$ac_t""no" 1>&6
14832 fi
14833 done
14834
14835
14836 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
14837 echo "configure:14838: checking for vprintf" >&5
14838 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
14839 echo $ac_n "(cached) $ac_c" 1>&6
14840 else
14841 cat > conftest.$ac_ext <<EOF
14842 #line 14843 "configure"
14843 #include "confdefs.h"
14844 /* System header to define __stub macros and hopefully few prototypes,
14845 which can conflict with char vprintf(); below. */
14846 #include <assert.h>
14847 /* Override any gcc2 internal prototype to avoid an error. */
14848 /* We use char because int might match the return type of a gcc2
14849 builtin and then its argument prototype would still apply. */
14850 char vprintf();
14851
14852 int main() {
14853
14854 /* The GNU C library defines this for functions which it implements
14855 to always fail with ENOSYS. Some functions are actually named
14856 something starting with __ and the normal name is an alias. */
14857 #if defined (__stub_vprintf) || defined (__stub___vprintf)
14858 choke me
14859 #else
14860 vprintf();
14861 #endif
14862
14863 ; return 0; }
14864 EOF
14865 if { (eval echo configure:14866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14866 rm -rf conftest*
14867 eval "ac_cv_func_vprintf=yes"
14868 else
14869 echo "configure: failed program was:" >&5
14870 cat conftest.$ac_ext >&5
14871 rm -rf conftest*
14872 eval "ac_cv_func_vprintf=no"
14873 fi
14874 rm -f conftest*
14875 fi
14876
14877 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14878 echo "$ac_t""yes" 1>&6
14879 cat >> confdefs.h <<\EOF
14880 #define HAVE_VPRINTF 1
14881 EOF
14882
14883 else
14884 echo "$ac_t""no" 1>&6
14885 fi
14886
14887 if test "$ac_cv_func_vprintf" != yes; then
14888 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
14889 echo "configure:14890: checking for _doprnt" >&5
14890 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
14891 echo $ac_n "(cached) $ac_c" 1>&6
14892 else
14893 cat > conftest.$ac_ext <<EOF
14894 #line 14895 "configure"
14895 #include "confdefs.h"
14896 /* System header to define __stub macros and hopefully few prototypes,
14897 which can conflict with char _doprnt(); below. */
14898 #include <assert.h>
14899 /* Override any gcc2 internal prototype to avoid an error. */
14900 /* We use char because int might match the return type of a gcc2
14901 builtin and then its argument prototype would still apply. */
14902 char _doprnt();
14903
14904 int main() {
14905
14906 /* The GNU C library defines this for functions which it implements
14907 to always fail with ENOSYS. Some functions are actually named
14908 something starting with __ and the normal name is an alias. */
14909 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14910 choke me
14911 #else
14912 _doprnt();
14913 #endif
14914
14915 ; return 0; }
14916 EOF
14917 if { (eval echo configure:14918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14918 rm -rf conftest*
14919 eval "ac_cv_func__doprnt=yes"
14920 else
14921 echo "configure: failed program was:" >&5
14922 cat conftest.$ac_ext >&5
14923 rm -rf conftest*
14924 eval "ac_cv_func__doprnt=no"
14925 fi
14926 rm -f conftest*
14927 fi
14928
14929 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
14930 echo "$ac_t""yes" 1>&6
14931 cat >> confdefs.h <<\EOF
14932 #define HAVE_DOPRNT 1
14933 EOF
14934
14935 else
14936 echo "$ac_t""no" 1>&6
14937 fi
14938
14939 fi
14940
14941
14942
14943
14944
14945
14946 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
14947 echo "configure:14948: checking for vsnprintf" >&5
14948 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
14949 echo $ac_n "(cached) $ac_c" 1>&6
14950 else
14951
14952 cat > conftest.$ac_ext <<EOF
14953 #line 14954 "configure"
14954 #include "confdefs.h"
14955
14956 #include <stdio.h>
14957 #include <stdarg.h>
14958
14959 int main() {
14960
14961 int wx_test_vsnprintf(const char *, ...);
14962
14963 wx_test_vsnprintf("%s");
14964 return 0;
14965 }
14966
14967 int wx_test_vsnprintf(const char *fmt, ...)
14968 {
14969 char *s;
14970
14971 va_list argp;
14972 va_start(argp, fmt);
14973 vsnprintf(s, 42, fmt, argp);
14974 va_end(argp);
14975
14976 ; return 0; }
14977 EOF
14978 if { (eval echo configure:14979: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14979 rm -rf conftest*
14980
14981 wx_cv_func_vsnprintf=yes
14982
14983 else
14984 echo "configure: failed program was:" >&5
14985 cat conftest.$ac_ext >&5
14986 rm -rf conftest*
14987
14988 cat > conftest.$ac_ext <<EOF
14989 #line 14990 "configure"
14990 #include "confdefs.h"
14991
14992 #include <stdio.h>
14993 #include <stdarg.h>
14994
14995 int main() {
14996
14997 int wx_test_vsnprintf(const char *, ...);
14998
14999 wx_test_vsnprintf("%s");
15000 return 0;
15001 }
15002
15003 int wx_test_vsnprintf(const char *fmt, ...)
15004 {
15005 char *s;
15006
15007 va_list argp;
15008 va_start(argp, fmt);
15009 _vsnprintf(s, 42, fmt, argp);
15010 va_end(argp);
15011
15012 ; return 0; }
15013 EOF
15014 if { (eval echo configure:15015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15015 rm -rf conftest*
15016
15017 wx_cv_func_vsnprintf=yes
15018
15019 else
15020 echo "configure: failed program was:" >&5
15021 cat conftest.$ac_ext >&5
15022 rm -rf conftest*
15023
15024 wx_cv_func_vsnprintf=no
15025
15026 fi
15027 rm -f conftest*
15028
15029 fi
15030 rm -f conftest*
15031
15032 fi
15033
15034 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
15035
15036 if test "$wx_cv_func_vsnprintf" = yes; then
15037 cat >> confdefs.h <<\EOF
15038 #define HAVE_VSNPRINTF 1
15039 EOF
15040
15041 else
15042 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
15043 fi
15044
15045 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
15046 echo "configure:15047: checking for vsscanf" >&5
15047 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
15048 echo $ac_n "(cached) $ac_c" 1>&6
15049 else
15050
15051 cat > conftest.$ac_ext <<EOF
15052 #line 15053 "configure"
15053 #include "confdefs.h"
15054
15055 #include <stdio.h>
15056 #include <stdarg.h>
15057
15058 int main() {
15059
15060 int wx_test_vsscanf(const char *, ...);
15061
15062 wx_test_vsscanf("%d");
15063 return 0;
15064 }
15065
15066 int wx_test_vsscanf(const char *fmt, ...)
15067 {
15068 va_list argp;
15069 va_start(argp, fmt);
15070 vsscanf("42", fmt, argp);
15071 va_end(argp);
15072
15073 ; return 0; }
15074 EOF
15075 if { (eval echo configure:15076: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15076 rm -rf conftest*
15077
15078 wx_cv_func_vsscanf=yes
15079
15080 else
15081 echo "configure: failed program was:" >&5
15082 cat conftest.$ac_ext >&5
15083 rm -rf conftest*
15084
15085 wx_cv_func_vsscanf=no
15086
15087 fi
15088 rm -f conftest*
15089
15090 fi
15091
15092 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
15093
15094 if test "$wx_cv_func_vsscanf" = yes; then
15095 cat >> confdefs.h <<\EOF
15096 #define HAVE_VSSCANF 1
15097 EOF
15098
15099 fi
15100
15101 if test "$TOOLKIT" != "MSW"; then
15102
15103
15104
15105 ac_ext=C
15106 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15107 ac_cpp='$CXXCPP $CPPFLAGS'
15108 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15109 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15110 cross_compiling=$ac_cv_prog_cxx_cross
15111
15112 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
15113 echo "configure:15114: checking if iconv() takes char**" >&5
15114 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
15115 echo $ac_n "(cached) $ac_c" 1>&6
15116 else
15117
15118 cat > conftest.$ac_ext <<EOF
15119 #line 15120 "configure"
15120 #include "confdefs.h"
15121 #include <iconv.h>
15122 int main() {
15123
15124 char **inbuf, **outbuf;
15125 iconv_t cd;
15126 size_t insz, outsz;
15127 iconv(cd, inbuf, &insz, outbuf, &outsz);
15128
15129 ; return 0; }
15130 EOF
15131 if { (eval echo configure:15132: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15132 rm -rf conftest*
15133 wx_cv_iconv_takes_char=yes
15134 else
15135 echo "configure: failed program was:" >&5
15136 cat conftest.$ac_ext >&5
15137 rm -rf conftest*
15138 wx_cv_iconv_takes_char=no
15139 fi
15140 rm -f conftest*
15141
15142 fi
15143
15144 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
15145 ac_ext=c
15146 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15147 ac_cpp='$CPP $CPPFLAGS'
15148 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15149 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15150 cross_compiling=$ac_cv_prog_cc_cross
15151
15152 if test "$wx_cv_iconv_takes_char" = yes ; then
15153 cat >> confdefs.h <<\EOF
15154 #define WX_ICONV_TAKES_CHAR 1
15155 EOF
15156
15157 fi
15158
15159
15160 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
15161 for ac_func in sigaction
15162 do
15163 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15164 echo "configure:15165: checking for $ac_func" >&5
15165 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15166 echo $ac_n "(cached) $ac_c" 1>&6
15167 else
15168 cat > conftest.$ac_ext <<EOF
15169 #line 15170 "configure"
15170 #include "confdefs.h"
15171 /* System header to define __stub macros and hopefully few prototypes,
15172 which can conflict with char $ac_func(); below. */
15173 #include <assert.h>
15174 /* Override any gcc2 internal prototype to avoid an error. */
15175 /* We use char because int might match the return type of a gcc2
15176 builtin and then its argument prototype would still apply. */
15177 char $ac_func();
15178
15179 int main() {
15180
15181 /* The GNU C library defines this for functions which it implements
15182 to always fail with ENOSYS. Some functions are actually named
15183 something starting with __ and the normal name is an alias. */
15184 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15185 choke me
15186 #else
15187 $ac_func();
15188 #endif
15189
15190 ; return 0; }
15191 EOF
15192 if { (eval echo configure:15193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15193 rm -rf conftest*
15194 eval "ac_cv_func_$ac_func=yes"
15195 else
15196 echo "configure: failed program was:" >&5
15197 cat conftest.$ac_ext >&5
15198 rm -rf conftest*
15199 eval "ac_cv_func_$ac_func=no"
15200 fi
15201 rm -f conftest*
15202 fi
15203
15204 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15205 echo "$ac_t""yes" 1>&6
15206 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15207 cat >> confdefs.h <<EOF
15208 #define $ac_tr_func 1
15209 EOF
15210
15211 else
15212 echo "$ac_t""no" 1>&6
15213 fi
15214 done
15215
15216
15217 if test "$ac_cv_func_sigaction" = "no"; then
15218 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
15219 wxUSE_ON_FATAL_EXCEPTION=no
15220 fi
15221
15222 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15223
15224 ac_ext=C
15225 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15226 ac_cpp='$CXXCPP $CPPFLAGS'
15227 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15228 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15229 cross_compiling=$ac_cv_prog_cxx_cross
15230
15231
15232 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
15233 echo "configure:15234: checking for sa_handler type" >&5
15234 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
15235 echo $ac_n "(cached) $ac_c" 1>&6
15236 else
15237
15238 cat > conftest.$ac_ext <<EOF
15239 #line 15240 "configure"
15240 #include "confdefs.h"
15241 #include <signal.h>
15242 int main() {
15243
15244 extern void testSigHandler(int);
15245
15246 struct sigaction sa;
15247 sa.sa_handler = testSigHandler;
15248
15249 ; return 0; }
15250 EOF
15251 if { (eval echo configure:15252: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15252 rm -rf conftest*
15253
15254 wx_cv_type_sa_handler=int
15255
15256 else
15257 echo "configure: failed program was:" >&5
15258 cat conftest.$ac_ext >&5
15259 rm -rf conftest*
15260
15261 wx_cv_type_sa_handler=void
15262
15263 fi
15264 rm -f conftest*
15265
15266 fi
15267
15268 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
15269
15270 ac_ext=c
15271 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15272 ac_cpp='$CPP $CPPFLAGS'
15273 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15274 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15275 cross_compiling=$ac_cv_prog_cc_cross
15276
15277
15278 cat >> confdefs.h <<EOF
15279 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
15280 EOF
15281
15282 fi
15283 fi
15284
15285 for ac_func in vfork
15286 do
15287 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15288 echo "configure:15289: checking for $ac_func" >&5
15289 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15290 echo $ac_n "(cached) $ac_c" 1>&6
15291 else
15292 cat > conftest.$ac_ext <<EOF
15293 #line 15294 "configure"
15294 #include "confdefs.h"
15295 /* System header to define __stub macros and hopefully few prototypes,
15296 which can conflict with char $ac_func(); below. */
15297 #include <assert.h>
15298 /* Override any gcc2 internal prototype to avoid an error. */
15299 /* We use char because int might match the return type of a gcc2
15300 builtin and then its argument prototype would still apply. */
15301 char $ac_func();
15302
15303 int main() {
15304
15305 /* The GNU C library defines this for functions which it implements
15306 to always fail with ENOSYS. Some functions are actually named
15307 something starting with __ and the normal name is an alias. */
15308 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15309 choke me
15310 #else
15311 $ac_func();
15312 #endif
15313
15314 ; return 0; }
15315 EOF
15316 if { (eval echo configure:15317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15317 rm -rf conftest*
15318 eval "ac_cv_func_$ac_func=yes"
15319 else
15320 echo "configure: failed program was:" >&5
15321 cat conftest.$ac_ext >&5
15322 rm -rf conftest*
15323 eval "ac_cv_func_$ac_func=no"
15324 fi
15325 rm -f conftest*
15326 fi
15327
15328 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15329 echo "$ac_t""yes" 1>&6
15330 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15331 cat >> confdefs.h <<EOF
15332 #define $ac_tr_func 1
15333 EOF
15334
15335 else
15336 echo "$ac_t""no" 1>&6
15337 fi
15338 done
15339
15340
15341 for ac_func in mkstemp mktemp
15342 do
15343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15344 echo "configure:15345: checking for $ac_func" >&5
15345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15346 echo $ac_n "(cached) $ac_c" 1>&6
15347 else
15348 cat > conftest.$ac_ext <<EOF
15349 #line 15350 "configure"
15350 #include "confdefs.h"
15351 /* System header to define __stub macros and hopefully few prototypes,
15352 which can conflict with char $ac_func(); below. */
15353 #include <assert.h>
15354 /* Override any gcc2 internal prototype to avoid an error. */
15355 /* We use char because int might match the return type of a gcc2
15356 builtin and then its argument prototype would still apply. */
15357 char $ac_func();
15358
15359 int main() {
15360
15361 /* The GNU C library defines this for functions which it implements
15362 to always fail with ENOSYS. Some functions are actually named
15363 something starting with __ and the normal name is an alias. */
15364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15365 choke me
15366 #else
15367 $ac_func();
15368 #endif
15369
15370 ; return 0; }
15371 EOF
15372 if { (eval echo configure:15373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15373 rm -rf conftest*
15374 eval "ac_cv_func_$ac_func=yes"
15375 else
15376 echo "configure: failed program was:" >&5
15377 cat conftest.$ac_ext >&5
15378 rm -rf conftest*
15379 eval "ac_cv_func_$ac_func=no"
15380 fi
15381 rm -f conftest*
15382 fi
15383
15384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15385 echo "$ac_t""yes" 1>&6
15386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15387 cat >> confdefs.h <<EOF
15388 #define $ac_tr_func 1
15389 EOF
15390 break
15391 else
15392 echo "$ac_t""no" 1>&6
15393 fi
15394 done
15395
15396
15397 echo $ac_n "checking for statfs""... $ac_c" 1>&6
15398 echo "configure:15399: checking for statfs" >&5
15399 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
15400 echo $ac_n "(cached) $ac_c" 1>&6
15401 else
15402 cat > conftest.$ac_ext <<EOF
15403 #line 15404 "configure"
15404 #include "confdefs.h"
15405
15406 #if defined(__BSD__)
15407 #include <sys/param.h>
15408 #include <sys/mount.h>
15409 #else
15410 #include <sys/vfs.h>
15411 #endif
15412
15413 int main() {
15414
15415 long l;
15416 struct statfs fs;
15417 statfs("/", &fs);
15418 l = fs.f_bsize;
15419 l += fs.f_blocks;
15420 l += fs.f_bavail;
15421
15422 ; return 0; }
15423 EOF
15424 if { (eval echo configure:15425: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15425 rm -rf conftest*
15426
15427 wx_cv_func_statfs=yes
15428
15429 else
15430 echo "configure: failed program was:" >&5
15431 cat conftest.$ac_ext >&5
15432 rm -rf conftest*
15433
15434 wx_cv_func_statfs=no
15435
15436
15437 fi
15438 rm -f conftest*
15439
15440 fi
15441
15442 echo "$ac_t""$wx_cv_func_statfs" 1>&6
15443
15444 if test "$wx_cv_func_statfs" = "yes"; then
15445 cat >> confdefs.h <<\EOF
15446 #define HAVE_STATFS 1
15447 EOF
15448
15449 else
15450 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
15451 echo "configure:15452: checking for statvfs" >&5
15452 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
15453 echo $ac_n "(cached) $ac_c" 1>&6
15454 else
15455 cat > conftest.$ac_ext <<EOF
15456 #line 15457 "configure"
15457 #include "confdefs.h"
15458
15459 #include <sys/statvfs.h>
15460
15461 int main() {
15462
15463 long l;
15464 struct statvfs fs;
15465 statvfs("/", &fs);
15466 l = fs.f_bsize;
15467 l += fs.f_blocks;
15468 l += fs.f_bavail;
15469
15470 ; return 0; }
15471 EOF
15472 if { (eval echo configure:15473: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15473 rm -rf conftest*
15474
15475 wx_cv_func_statvfs=yes
15476
15477 else
15478 echo "configure: failed program was:" >&5
15479 cat conftest.$ac_ext >&5
15480 rm -rf conftest*
15481
15482 wx_cv_func_statvfs=no
15483
15484
15485 fi
15486 rm -f conftest*
15487
15488 fi
15489
15490 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
15491
15492 if test "$wx_cv_func_statvfs" = "yes"; then
15493 cat >> confdefs.h <<\EOF
15494 #define HAVE_STATVFS 1
15495 EOF
15496
15497 else
15498 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
15499 fi
15500 fi
15501
15502 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15503 for ac_func in fcntl flock
15504 do
15505 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15506 echo "configure:15507: checking for $ac_func" >&5
15507 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15508 echo $ac_n "(cached) $ac_c" 1>&6
15509 else
15510 cat > conftest.$ac_ext <<EOF
15511 #line 15512 "configure"
15512 #include "confdefs.h"
15513 /* System header to define __stub macros and hopefully few prototypes,
15514 which can conflict with char $ac_func(); below. */
15515 #include <assert.h>
15516 /* Override any gcc2 internal prototype to avoid an error. */
15517 /* We use char because int might match the return type of a gcc2
15518 builtin and then its argument prototype would still apply. */
15519 char $ac_func();
15520
15521 int main() {
15522
15523 /* The GNU C library defines this for functions which it implements
15524 to always fail with ENOSYS. Some functions are actually named
15525 something starting with __ and the normal name is an alias. */
15526 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15527 choke me
15528 #else
15529 $ac_func();
15530 #endif
15531
15532 ; return 0; }
15533 EOF
15534 if { (eval echo configure:15535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15535 rm -rf conftest*
15536 eval "ac_cv_func_$ac_func=yes"
15537 else
15538 echo "configure: failed program was:" >&5
15539 cat conftest.$ac_ext >&5
15540 rm -rf conftest*
15541 eval "ac_cv_func_$ac_func=no"
15542 fi
15543 rm -f conftest*
15544 fi
15545
15546 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15547 echo "$ac_t""yes" 1>&6
15548 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15549 cat >> confdefs.h <<EOF
15550 #define $ac_tr_func 1
15551 EOF
15552 break
15553 else
15554 echo "$ac_t""no" 1>&6
15555 fi
15556 done
15557
15558
15559 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
15560 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
15561 wxUSE_SNGLINST_CHECKER=no
15562 fi
15563 fi
15564
15565 for ac_func in timegm
15566 do
15567 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15568 echo "configure:15569: checking for $ac_func" >&5
15569 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15570 echo $ac_n "(cached) $ac_c" 1>&6
15571 else
15572 cat > conftest.$ac_ext <<EOF
15573 #line 15574 "configure"
15574 #include "confdefs.h"
15575 /* System header to define __stub macros and hopefully few prototypes,
15576 which can conflict with char $ac_func(); below. */
15577 #include <assert.h>
15578 /* Override any gcc2 internal prototype to avoid an error. */
15579 /* We use char because int might match the return type of a gcc2
15580 builtin and then its argument prototype would still apply. */
15581 char $ac_func();
15582
15583 int main() {
15584
15585 /* The GNU C library defines this for functions which it implements
15586 to always fail with ENOSYS. Some functions are actually named
15587 something starting with __ and the normal name is an alias. */
15588 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15589 choke me
15590 #else
15591 $ac_func();
15592 #endif
15593
15594 ; return 0; }
15595 EOF
15596 if { (eval echo configure:15597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15597 rm -rf conftest*
15598 eval "ac_cv_func_$ac_func=yes"
15599 else
15600 echo "configure: failed program was:" >&5
15601 cat conftest.$ac_ext >&5
15602 rm -rf conftest*
15603 eval "ac_cv_func_$ac_func=no"
15604 fi
15605 rm -f conftest*
15606 fi
15607
15608 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15609 echo "$ac_t""yes" 1>&6
15610 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15611 cat >> confdefs.h <<EOF
15612 #define $ac_tr_func 1
15613 EOF
15614
15615 else
15616 echo "$ac_t""no" 1>&6
15617 fi
15618 done
15619
15620
15621 for ac_func in putenv setenv
15622 do
15623 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15624 echo "configure:15625: checking for $ac_func" >&5
15625 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15626 echo $ac_n "(cached) $ac_c" 1>&6
15627 else
15628 cat > conftest.$ac_ext <<EOF
15629 #line 15630 "configure"
15630 #include "confdefs.h"
15631 /* System header to define __stub macros and hopefully few prototypes,
15632 which can conflict with char $ac_func(); below. */
15633 #include <assert.h>
15634 /* Override any gcc2 internal prototype to avoid an error. */
15635 /* We use char because int might match the return type of a gcc2
15636 builtin and then its argument prototype would still apply. */
15637 char $ac_func();
15638
15639 int main() {
15640
15641 /* The GNU C library defines this for functions which it implements
15642 to always fail with ENOSYS. Some functions are actually named
15643 something starting with __ and the normal name is an alias. */
15644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15645 choke me
15646 #else
15647 $ac_func();
15648 #endif
15649
15650 ; return 0; }
15651 EOF
15652 if { (eval echo configure:15653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15653 rm -rf conftest*
15654 eval "ac_cv_func_$ac_func=yes"
15655 else
15656 echo "configure: failed program was:" >&5
15657 cat conftest.$ac_ext >&5
15658 rm -rf conftest*
15659 eval "ac_cv_func_$ac_func=no"
15660 fi
15661 rm -f conftest*
15662 fi
15663
15664 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15665 echo "$ac_t""yes" 1>&6
15666 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15667 cat >> confdefs.h <<EOF
15668 #define $ac_tr_func 1
15669 EOF
15670 break
15671 else
15672 echo "$ac_t""no" 1>&6
15673 fi
15674 done
15675
15676
15677 HAVE_SOME_SLEEP_FUNC=0
15678 if test "$USE_BEOS" = 1; then
15679 cat >> confdefs.h <<\EOF
15680 #define HAVE_SLEEP 1
15681 EOF
15682
15683 HAVE_SOME_SLEEP_FUNC=1
15684 fi
15685
15686 if test "$USE_DARWIN" = 1; then
15687 cat >> confdefs.h <<\EOF
15688 #define HAVE_USLEEP 1
15689 EOF
15690
15691 HAVE_SOME_SLEEP_FUNC=1
15692 fi
15693
15694 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
15695 POSIX4_LINK=
15696 for ac_func in nanosleep
15697 do
15698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15699 echo "configure:15700: checking for $ac_func" >&5
15700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15701 echo $ac_n "(cached) $ac_c" 1>&6
15702 else
15703 cat > conftest.$ac_ext <<EOF
15704 #line 15705 "configure"
15705 #include "confdefs.h"
15706 /* System header to define __stub macros and hopefully few prototypes,
15707 which can conflict with char $ac_func(); below. */
15708 #include <assert.h>
15709 /* Override any gcc2 internal prototype to avoid an error. */
15710 /* We use char because int might match the return type of a gcc2
15711 builtin and then its argument prototype would still apply. */
15712 char $ac_func();
15713
15714 int main() {
15715
15716 /* The GNU C library defines this for functions which it implements
15717 to always fail with ENOSYS. Some functions are actually named
15718 something starting with __ and the normal name is an alias. */
15719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15720 choke me
15721 #else
15722 $ac_func();
15723 #endif
15724
15725 ; return 0; }
15726 EOF
15727 if { (eval echo configure:15728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15728 rm -rf conftest*
15729 eval "ac_cv_func_$ac_func=yes"
15730 else
15731 echo "configure: failed program was:" >&5
15732 cat conftest.$ac_ext >&5
15733 rm -rf conftest*
15734 eval "ac_cv_func_$ac_func=no"
15735 fi
15736 rm -f conftest*
15737 fi
15738
15739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15740 echo "$ac_t""yes" 1>&6
15741 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15742 cat >> confdefs.h <<EOF
15743 #define $ac_tr_func 1
15744 EOF
15745 cat >> confdefs.h <<\EOF
15746 #define HAVE_NANOSLEEP 1
15747 EOF
15748
15749 else
15750 echo "$ac_t""no" 1>&6
15751 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
15752 echo "configure:15753: checking for nanosleep in -lposix4" >&5
15753 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
15754 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15755 echo $ac_n "(cached) $ac_c" 1>&6
15756 else
15757 ac_save_LIBS="$LIBS"
15758 LIBS="-lposix4 $LIBS"
15759 cat > conftest.$ac_ext <<EOF
15760 #line 15761 "configure"
15761 #include "confdefs.h"
15762 /* Override any gcc2 internal prototype to avoid an error. */
15763 /* We use char because int might match the return type of a gcc2
15764 builtin and then its argument prototype would still apply. */
15765 char nanosleep();
15766
15767 int main() {
15768 nanosleep()
15769 ; return 0; }
15770 EOF
15771 if { (eval echo configure:15772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15772 rm -rf conftest*
15773 eval "ac_cv_lib_$ac_lib_var=yes"
15774 else
15775 echo "configure: failed program was:" >&5
15776 cat conftest.$ac_ext >&5
15777 rm -rf conftest*
15778 eval "ac_cv_lib_$ac_lib_var=no"
15779 fi
15780 rm -f conftest*
15781 LIBS="$ac_save_LIBS"
15782
15783 fi
15784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15785 echo "$ac_t""yes" 1>&6
15786
15787 cat >> confdefs.h <<\EOF
15788 #define HAVE_NANOSLEEP 1
15789 EOF
15790
15791 POSIX4_LINK=" -lposix4"
15792
15793 else
15794 echo "$ac_t""no" 1>&6
15795
15796 for ac_func in usleep
15797 do
15798 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15799 echo "configure:15800: checking for $ac_func" >&5
15800 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15801 echo $ac_n "(cached) $ac_c" 1>&6
15802 else
15803 cat > conftest.$ac_ext <<EOF
15804 #line 15805 "configure"
15805 #include "confdefs.h"
15806 /* System header to define __stub macros and hopefully few prototypes,
15807 which can conflict with char $ac_func(); below. */
15808 #include <assert.h>
15809 /* Override any gcc2 internal prototype to avoid an error. */
15810 /* We use char because int might match the return type of a gcc2
15811 builtin and then its argument prototype would still apply. */
15812 char $ac_func();
15813
15814 int main() {
15815
15816 /* The GNU C library defines this for functions which it implements
15817 to always fail with ENOSYS. Some functions are actually named
15818 something starting with __ and the normal name is an alias. */
15819 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15820 choke me
15821 #else
15822 $ac_func();
15823 #endif
15824
15825 ; return 0; }
15826 EOF
15827 if { (eval echo configure:15828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15828 rm -rf conftest*
15829 eval "ac_cv_func_$ac_func=yes"
15830 else
15831 echo "configure: failed program was:" >&5
15832 cat conftest.$ac_ext >&5
15833 rm -rf conftest*
15834 eval "ac_cv_func_$ac_func=no"
15835 fi
15836 rm -f conftest*
15837 fi
15838
15839 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15840 echo "$ac_t""yes" 1>&6
15841 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15842 cat >> confdefs.h <<EOF
15843 #define $ac_tr_func 1
15844 EOF
15845 cat >> confdefs.h <<\EOF
15846 #define HAVE_USLEEP 1
15847 EOF
15848
15849 else
15850 echo "$ac_t""no" 1>&6
15851 echo "configure: warning: wxSleep() function will not work" 1>&2
15852
15853 fi
15854 done
15855
15856
15857
15858 fi
15859
15860
15861
15862 fi
15863 done
15864
15865 fi
15866
15867 for ac_func in uname gethostname
15868 do
15869 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15870 echo "configure:15871: checking for $ac_func" >&5
15871 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15872 echo $ac_n "(cached) $ac_c" 1>&6
15873 else
15874 cat > conftest.$ac_ext <<EOF
15875 #line 15876 "configure"
15876 #include "confdefs.h"
15877 /* System header to define __stub macros and hopefully few prototypes,
15878 which can conflict with char $ac_func(); below. */
15879 #include <assert.h>
15880 /* Override any gcc2 internal prototype to avoid an error. */
15881 /* We use char because int might match the return type of a gcc2
15882 builtin and then its argument prototype would still apply. */
15883 char $ac_func();
15884
15885 int main() {
15886
15887 /* The GNU C library defines this for functions which it implements
15888 to always fail with ENOSYS. Some functions are actually named
15889 something starting with __ and the normal name is an alias. */
15890 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15891 choke me
15892 #else
15893 $ac_func();
15894 #endif
15895
15896 ; return 0; }
15897 EOF
15898 if { (eval echo configure:15899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15899 rm -rf conftest*
15900 eval "ac_cv_func_$ac_func=yes"
15901 else
15902 echo "configure: failed program was:" >&5
15903 cat conftest.$ac_ext >&5
15904 rm -rf conftest*
15905 eval "ac_cv_func_$ac_func=no"
15906 fi
15907 rm -f conftest*
15908 fi
15909
15910 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15911 echo "$ac_t""yes" 1>&6
15912 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15913 cat >> confdefs.h <<EOF
15914 #define $ac_tr_func 1
15915 EOF
15916 break
15917 else
15918 echo "$ac_t""no" 1>&6
15919 fi
15920 done
15921
15922
15923
15924 ac_ext=C
15925 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15926 ac_cpp='$CXXCPP $CPPFLAGS'
15927 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15928 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15929 cross_compiling=$ac_cv_prog_cxx_cross
15930
15931
15932 for ac_func in strtok_r
15933 do
15934 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15935 echo "configure:15936: checking for $ac_func" >&5
15936 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15937 echo $ac_n "(cached) $ac_c" 1>&6
15938 else
15939 cat > conftest.$ac_ext <<EOF
15940 #line 15941 "configure"
15941 #include "confdefs.h"
15942 /* System header to define __stub macros and hopefully few prototypes,
15943 which can conflict with char $ac_func(); below. */
15944 #include <assert.h>
15945 /* Override any gcc2 internal prototype to avoid an error. */
15946 #ifdef __cplusplus
15947 extern "C"
15948 #endif
15949 /* We use char because int might match the return type of a gcc2
15950 builtin and then its argument prototype would still apply. */
15951 char $ac_func();
15952
15953 int main() {
15954
15955 /* The GNU C library defines this for functions which it implements
15956 to always fail with ENOSYS. Some functions are actually named
15957 something starting with __ and the normal name is an alias. */
15958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15959 choke me
15960 #else
15961 $ac_func();
15962 #endif
15963
15964 ; return 0; }
15965 EOF
15966 if { (eval echo configure:15967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15967 rm -rf conftest*
15968 eval "ac_cv_func_$ac_func=yes"
15969 else
15970 echo "configure: failed program was:" >&5
15971 cat conftest.$ac_ext >&5
15972 rm -rf conftest*
15973 eval "ac_cv_func_$ac_func=no"
15974 fi
15975 rm -f conftest*
15976 fi
15977
15978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15979 echo "$ac_t""yes" 1>&6
15980 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15981 cat >> confdefs.h <<EOF
15982 #define $ac_tr_func 1
15983 EOF
15984
15985 else
15986 echo "$ac_t""no" 1>&6
15987 fi
15988 done
15989
15990
15991 ac_ext=c
15992 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15993 ac_cpp='$CPP $CPPFLAGS'
15994 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15995 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15996 cross_compiling=$ac_cv_prog_cc_cross
15997
15998
15999 INET_LINK=
16000 for ac_func in inet_addr
16001 do
16002 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16003 echo "configure:16004: checking for $ac_func" >&5
16004 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16005 echo $ac_n "(cached) $ac_c" 1>&6
16006 else
16007 cat > conftest.$ac_ext <<EOF
16008 #line 16009 "configure"
16009 #include "confdefs.h"
16010 /* System header to define __stub macros and hopefully few prototypes,
16011 which can conflict with char $ac_func(); below. */
16012 #include <assert.h>
16013 /* Override any gcc2 internal prototype to avoid an error. */
16014 /* We use char because int might match the return type of a gcc2
16015 builtin and then its argument prototype would still apply. */
16016 char $ac_func();
16017
16018 int main() {
16019
16020 /* The GNU C library defines this for functions which it implements
16021 to always fail with ENOSYS. Some functions are actually named
16022 something starting with __ and the normal name is an alias. */
16023 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16024 choke me
16025 #else
16026 $ac_func();
16027 #endif
16028
16029 ; return 0; }
16030 EOF
16031 if { (eval echo configure:16032: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16032 rm -rf conftest*
16033 eval "ac_cv_func_$ac_func=yes"
16034 else
16035 echo "configure: failed program was:" >&5
16036 cat conftest.$ac_ext >&5
16037 rm -rf conftest*
16038 eval "ac_cv_func_$ac_func=no"
16039 fi
16040 rm -f conftest*
16041 fi
16042
16043 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16044 echo "$ac_t""yes" 1>&6
16045 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16046 cat >> confdefs.h <<EOF
16047 #define $ac_tr_func 1
16048 EOF
16049 cat >> confdefs.h <<\EOF
16050 #define HAVE_INET_ADDR 1
16051 EOF
16052
16053 else
16054 echo "$ac_t""no" 1>&6
16055 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
16056 echo "configure:16057: checking for inet_addr in -lnsl" >&5
16057 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
16058 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16059 echo $ac_n "(cached) $ac_c" 1>&6
16060 else
16061 ac_save_LIBS="$LIBS"
16062 LIBS="-lnsl $LIBS"
16063 cat > conftest.$ac_ext <<EOF
16064 #line 16065 "configure"
16065 #include "confdefs.h"
16066 /* Override any gcc2 internal prototype to avoid an error. */
16067 /* We use char because int might match the return type of a gcc2
16068 builtin and then its argument prototype would still apply. */
16069 char inet_addr();
16070
16071 int main() {
16072 inet_addr()
16073 ; return 0; }
16074 EOF
16075 if { (eval echo configure:16076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16076 rm -rf conftest*
16077 eval "ac_cv_lib_$ac_lib_var=yes"
16078 else
16079 echo "configure: failed program was:" >&5
16080 cat conftest.$ac_ext >&5
16081 rm -rf conftest*
16082 eval "ac_cv_lib_$ac_lib_var=no"
16083 fi
16084 rm -f conftest*
16085 LIBS="$ac_save_LIBS"
16086
16087 fi
16088 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16089 echo "$ac_t""yes" 1>&6
16090 INET_LINK="nsl"
16091 else
16092 echo "$ac_t""no" 1>&6
16093 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
16094 echo "configure:16095: checking for inet_addr in -lresolv" >&5
16095 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
16096 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16097 echo $ac_n "(cached) $ac_c" 1>&6
16098 else
16099 ac_save_LIBS="$LIBS"
16100 LIBS="-lresolv $LIBS"
16101 cat > conftest.$ac_ext <<EOF
16102 #line 16103 "configure"
16103 #include "confdefs.h"
16104 /* Override any gcc2 internal prototype to avoid an error. */
16105 /* We use char because int might match the return type of a gcc2
16106 builtin and then its argument prototype would still apply. */
16107 char inet_addr();
16108
16109 int main() {
16110 inet_addr()
16111 ; return 0; }
16112 EOF
16113 if { (eval echo configure:16114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16114 rm -rf conftest*
16115 eval "ac_cv_lib_$ac_lib_var=yes"
16116 else
16117 echo "configure: failed program was:" >&5
16118 cat conftest.$ac_ext >&5
16119 rm -rf conftest*
16120 eval "ac_cv_lib_$ac_lib_var=no"
16121 fi
16122 rm -f conftest*
16123 LIBS="$ac_save_LIBS"
16124
16125 fi
16126 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16127 echo "$ac_t""yes" 1>&6
16128 INET_LINK="resolv"
16129
16130 else
16131 echo "$ac_t""no" 1>&6
16132 fi
16133
16134
16135 fi
16136
16137
16138
16139 fi
16140 done
16141
16142
16143 for ac_func in inet_aton
16144 do
16145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16146 echo "configure:16147: checking for $ac_func" >&5
16147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16148 echo $ac_n "(cached) $ac_c" 1>&6
16149 else
16150 cat > conftest.$ac_ext <<EOF
16151 #line 16152 "configure"
16152 #include "confdefs.h"
16153 /* System header to define __stub macros and hopefully few prototypes,
16154 which can conflict with char $ac_func(); below. */
16155 #include <assert.h>
16156 /* Override any gcc2 internal prototype to avoid an error. */
16157 /* We use char because int might match the return type of a gcc2
16158 builtin and then its argument prototype would still apply. */
16159 char $ac_func();
16160
16161 int main() {
16162
16163 /* The GNU C library defines this for functions which it implements
16164 to always fail with ENOSYS. Some functions are actually named
16165 something starting with __ and the normal name is an alias. */
16166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16167 choke me
16168 #else
16169 $ac_func();
16170 #endif
16171
16172 ; return 0; }
16173 EOF
16174 if { (eval echo configure:16175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16175 rm -rf conftest*
16176 eval "ac_cv_func_$ac_func=yes"
16177 else
16178 echo "configure: failed program was:" >&5
16179 cat conftest.$ac_ext >&5
16180 rm -rf conftest*
16181 eval "ac_cv_func_$ac_func=no"
16182 fi
16183 rm -f conftest*
16184 fi
16185
16186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16187 echo "$ac_t""yes" 1>&6
16188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16189 cat >> confdefs.h <<EOF
16190 #define $ac_tr_func 1
16191 EOF
16192 cat >> confdefs.h <<\EOF
16193 #define HAVE_INET_ATON 1
16194 EOF
16195
16196 else
16197 echo "$ac_t""no" 1>&6
16198 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
16199 echo "configure:16200: checking for inet_aton in -l$INET_LINK" >&5
16200 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
16201 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16202 echo $ac_n "(cached) $ac_c" 1>&6
16203 else
16204 ac_save_LIBS="$LIBS"
16205 LIBS="-l$INET_LINK $LIBS"
16206 cat > conftest.$ac_ext <<EOF
16207 #line 16208 "configure"
16208 #include "confdefs.h"
16209 /* Override any gcc2 internal prototype to avoid an error. */
16210 /* We use char because int might match the return type of a gcc2
16211 builtin and then its argument prototype would still apply. */
16212 char inet_aton();
16213
16214 int main() {
16215 inet_aton()
16216 ; return 0; }
16217 EOF
16218 if { (eval echo configure:16219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16219 rm -rf conftest*
16220 eval "ac_cv_lib_$ac_lib_var=yes"
16221 else
16222 echo "configure: failed program was:" >&5
16223 cat conftest.$ac_ext >&5
16224 rm -rf conftest*
16225 eval "ac_cv_lib_$ac_lib_var=no"
16226 fi
16227 rm -f conftest*
16228 LIBS="$ac_save_LIBS"
16229
16230 fi
16231 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16232 echo "$ac_t""yes" 1>&6
16233 cat >> confdefs.h <<\EOF
16234 #define HAVE_INET_ATON 1
16235 EOF
16236
16237 else
16238 echo "$ac_t""no" 1>&6
16239 fi
16240
16241
16242 fi
16243 done
16244
16245
16246 if test "x$INET_LINK" != "x"; then
16247 cat >> confdefs.h <<\EOF
16248 #define HAVE_INET_ADDR 1
16249 EOF
16250
16251 INET_LINK=" -l$INET_LINK"
16252 fi
16253
16254 fi
16255
16256
16257 cat > confcache <<\EOF
16258 # This file is a shell script that caches the results of configure
16259 # tests run on this system so they can be shared between configure
16260 # scripts and configure runs. It is not useful on other systems.
16261 # If it contains results you don't want to keep, you may remove or edit it.
16262 #
16263 # By default, configure uses ./config.cache as the cache file,
16264 # creating it if it does not exist already. You can give configure
16265 # the --cache-file=FILE option to use a different cache file; that is
16266 # what configure does when it calls configure scripts in
16267 # subdirectories, so they share the cache.
16268 # Giving --cache-file=/dev/null disables caching, for debugging configure.
16269 # config.status only pays attention to the cache file if you give it the
16270 # --recheck option to rerun configure.
16271 #
16272 EOF
16273 # The following way of writing the cache mishandles newlines in values,
16274 # but we know of no workaround that is simple, portable, and efficient.
16275 # So, don't put newlines in cache variables' values.
16276 # Ultrix sh set writes to stderr and can't be redirected directly,
16277 # and sets the high bit in the cache file unless we assign to the vars.
16278 (set) 2>&1 |
16279 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16280 *ac_space=\ *)
16281 # `set' does not quote correctly, so add quotes (double-quote substitution
16282 # turns \\\\ into \\, and sed turns \\ into \).
16283 sed -n \
16284 -e "s/'/'\\\\''/g" \
16285 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
16286 ;;
16287 *)
16288 # `set' quotes correctly as required by POSIX, so do not add quotes.
16289 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
16290 ;;
16291 esac >> confcache
16292 if cmp -s $cache_file confcache; then
16293 :
16294 else
16295 if test -w $cache_file; then
16296 echo "updating cache $cache_file"
16297 cat confcache > $cache_file
16298 else
16299 echo "not updating unwritable cache $cache_file"
16300 fi
16301 fi
16302 rm -f confcache
16303
16304
16305
16306 if test "$TOOLKIT" != "MSW"; then
16307
16308
16309 THREADS_LINK=
16310 THREADS_OBJ=
16311 CODE_GEN_FLAGS=
16312 CODE_GEN_FLAGS_CXX=
16313
16314 if test "$wxUSE_THREADS" = "yes" ; then
16315 if test "$wxUSE_WINE" = 1 ; then
16316 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
16317 wxUSE_THREADS="no"
16318 elif test "$USE_BEOS" = 1; then
16319 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
16320 wxUSE_THREADS="no"
16321 fi
16322 fi
16323
16324 if test "$wxUSE_THREADS" = "yes" ; then
16325
16326 if test "$USE_AIX" = 1; then
16327 THREADS_LIB=pthreads
16328 else
16329 THREADS_LIB=pthread
16330 fi
16331
16332 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
16333 echo "configure:16334: checking for pthread_create in -l$THREADS_LIB" >&5
16334 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
16335 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16336 echo $ac_n "(cached) $ac_c" 1>&6
16337 else
16338 ac_save_LIBS="$LIBS"
16339 LIBS="-l$THREADS_LIB $LIBS"
16340 cat > conftest.$ac_ext <<EOF
16341 #line 16342 "configure"
16342 #include "confdefs.h"
16343 /* Override any gcc2 internal prototype to avoid an error. */
16344 /* We use char because int might match the return type of a gcc2
16345 builtin and then its argument prototype would still apply. */
16346 char pthread_create();
16347
16348 int main() {
16349 pthread_create()
16350 ; return 0; }
16351 EOF
16352 if { (eval echo configure:16353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16353 rm -rf conftest*
16354 eval "ac_cv_lib_$ac_lib_var=yes"
16355 else
16356 echo "configure: failed program was:" >&5
16357 cat conftest.$ac_ext >&5
16358 rm -rf conftest*
16359 eval "ac_cv_lib_$ac_lib_var=no"
16360 fi
16361 rm -f conftest*
16362 LIBS="$ac_save_LIBS"
16363
16364 fi
16365 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16366 echo "$ac_t""yes" 1>&6
16367
16368 THREADS_OBJ="threadpsx.lo"
16369 THREADS_LINK=$THREADS_LIB
16370
16371 else
16372 echo "$ac_t""no" 1>&6
16373
16374 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
16375 echo "configure:16376: checking for pthread_create in -lc_r" >&5
16376 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
16377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16378 echo $ac_n "(cached) $ac_c" 1>&6
16379 else
16380 ac_save_LIBS="$LIBS"
16381 LIBS="-lc_r $LIBS"
16382 cat > conftest.$ac_ext <<EOF
16383 #line 16384 "configure"
16384 #include "confdefs.h"
16385 /* Override any gcc2 internal prototype to avoid an error. */
16386 /* We use char because int might match the return type of a gcc2
16387 builtin and then its argument prototype would still apply. */
16388 char pthread_create();
16389
16390 int main() {
16391 pthread_create()
16392 ; return 0; }
16393 EOF
16394 if { (eval echo configure:16395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16395 rm -rf conftest*
16396 eval "ac_cv_lib_$ac_lib_var=yes"
16397 else
16398 echo "configure: failed program was:" >&5
16399 cat conftest.$ac_ext >&5
16400 rm -rf conftest*
16401 eval "ac_cv_lib_$ac_lib_var=no"
16402 fi
16403 rm -f conftest*
16404 LIBS="$ac_save_LIBS"
16405
16406 fi
16407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16408 echo "$ac_t""yes" 1>&6
16409
16410 THREADS_OBJ="threadpsx.lo"
16411 THREADS_LINK="c_r"
16412
16413 else
16414 echo "$ac_t""no" 1>&6
16415
16416 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
16417 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
16418 echo "configure:16419: checking for sys/prctl.h" >&5
16419 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16420 echo $ac_n "(cached) $ac_c" 1>&6
16421 else
16422 cat > conftest.$ac_ext <<EOF
16423 #line 16424 "configure"
16424 #include "confdefs.h"
16425 #include <sys/prctl.h>
16426 EOF
16427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16428 { (eval echo configure:16429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16430 if test -z "$ac_err"; then
16431 rm -rf conftest*
16432 eval "ac_cv_header_$ac_safe=yes"
16433 else
16434 echo "$ac_err" >&5
16435 echo "configure: failed program was:" >&5
16436 cat conftest.$ac_ext >&5
16437 rm -rf conftest*
16438 eval "ac_cv_header_$ac_safe=no"
16439 fi
16440 rm -f conftest*
16441 fi
16442 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16443 echo "$ac_t""yes" 1>&6
16444
16445 THREADS_OBJ="threadsgi.lo"
16446
16447 else
16448 echo "$ac_t""no" 1>&6
16449 fi
16450
16451
16452 fi
16453
16454
16455 fi
16456
16457
16458 if test -z "$THREADS_OBJ" ; then
16459 wxUSE_THREADS=no
16460 echo "configure: warning: No thread support on this system... disabled" 1>&2
16461 fi
16462 fi
16463
16464 if test "$wxUSE_THREADS" = "yes" ; then
16465 for ac_func in thr_setconcurrency
16466 do
16467 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16468 echo "configure:16469: checking for $ac_func" >&5
16469 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16470 echo $ac_n "(cached) $ac_c" 1>&6
16471 else
16472 cat > conftest.$ac_ext <<EOF
16473 #line 16474 "configure"
16474 #include "confdefs.h"
16475 /* System header to define __stub macros and hopefully few prototypes,
16476 which can conflict with char $ac_func(); below. */
16477 #include <assert.h>
16478 /* Override any gcc2 internal prototype to avoid an error. */
16479 /* We use char because int might match the return type of a gcc2
16480 builtin and then its argument prototype would still apply. */
16481 char $ac_func();
16482
16483 int main() {
16484
16485 /* The GNU C library defines this for functions which it implements
16486 to always fail with ENOSYS. Some functions are actually named
16487 something starting with __ and the normal name is an alias. */
16488 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16489 choke me
16490 #else
16491 $ac_func();
16492 #endif
16493
16494 ; return 0; }
16495 EOF
16496 if { (eval echo configure:16497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16497 rm -rf conftest*
16498 eval "ac_cv_func_$ac_func=yes"
16499 else
16500 echo "configure: failed program was:" >&5
16501 cat conftest.$ac_ext >&5
16502 rm -rf conftest*
16503 eval "ac_cv_func_$ac_func=no"
16504 fi
16505 rm -f conftest*
16506 fi
16507
16508 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16509 echo "$ac_t""yes" 1>&6
16510 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16511 cat >> confdefs.h <<EOF
16512 #define $ac_tr_func 1
16513 EOF
16514
16515 else
16516 echo "$ac_t""no" 1>&6
16517 fi
16518 done
16519
16520
16521
16522 for ac_hdr in sched.h
16523 do
16524 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16525 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16526 echo "configure:16527: checking for $ac_hdr" >&5
16527 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16528 echo $ac_n "(cached) $ac_c" 1>&6
16529 else
16530 cat > conftest.$ac_ext <<EOF
16531 #line 16532 "configure"
16532 #include "confdefs.h"
16533 #include <$ac_hdr>
16534 EOF
16535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16536 { (eval echo configure:16537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16537 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16538 if test -z "$ac_err"; then
16539 rm -rf conftest*
16540 eval "ac_cv_header_$ac_safe=yes"
16541 else
16542 echo "$ac_err" >&5
16543 echo "configure: failed program was:" >&5
16544 cat conftest.$ac_ext >&5
16545 rm -rf conftest*
16546 eval "ac_cv_header_$ac_safe=no"
16547 fi
16548 rm -f conftest*
16549 fi
16550 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16551 echo "$ac_t""yes" 1>&6
16552 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16553 cat >> confdefs.h <<EOF
16554 #define $ac_tr_hdr 1
16555 EOF
16556
16557 else
16558 echo "$ac_t""no" 1>&6
16559 fi
16560 done
16561
16562
16563 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
16564 echo "configure:16565: checking for sched_yield in -l$THREADS_LINK" >&5
16565 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
16566 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16567 echo $ac_n "(cached) $ac_c" 1>&6
16568 else
16569 ac_save_LIBS="$LIBS"
16570 LIBS="-l$THREADS_LINK $LIBS"
16571 cat > conftest.$ac_ext <<EOF
16572 #line 16573 "configure"
16573 #include "confdefs.h"
16574 /* Override any gcc2 internal prototype to avoid an error. */
16575 /* We use char because int might match the return type of a gcc2
16576 builtin and then its argument prototype would still apply. */
16577 char sched_yield();
16578
16579 int main() {
16580 sched_yield()
16581 ; return 0; }
16582 EOF
16583 if { (eval echo configure:16584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16584 rm -rf conftest*
16585 eval "ac_cv_lib_$ac_lib_var=yes"
16586 else
16587 echo "configure: failed program was:" >&5
16588 cat conftest.$ac_ext >&5
16589 rm -rf conftest*
16590 eval "ac_cv_lib_$ac_lib_var=no"
16591 fi
16592 rm -f conftest*
16593 LIBS="$ac_save_LIBS"
16594
16595 fi
16596 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16597 echo "$ac_t""yes" 1>&6
16598 cat >> confdefs.h <<\EOF
16599 #define HAVE_SCHED_YIELD 1
16600 EOF
16601
16602 else
16603 echo "$ac_t""no" 1>&6
16604 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
16605 echo "configure:16606: checking for sched_yield in -lposix4" >&5
16606 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
16607 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16608 echo $ac_n "(cached) $ac_c" 1>&6
16609 else
16610 ac_save_LIBS="$LIBS"
16611 LIBS="-lposix4 $LIBS"
16612 cat > conftest.$ac_ext <<EOF
16613 #line 16614 "configure"
16614 #include "confdefs.h"
16615 /* Override any gcc2 internal prototype to avoid an error. */
16616 /* We use char because int might match the return type of a gcc2
16617 builtin and then its argument prototype would still apply. */
16618 char sched_yield();
16619
16620 int main() {
16621 sched_yield()
16622 ; return 0; }
16623 EOF
16624 if { (eval echo configure:16625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16625 rm -rf conftest*
16626 eval "ac_cv_lib_$ac_lib_var=yes"
16627 else
16628 echo "configure: failed program was:" >&5
16629 cat conftest.$ac_ext >&5
16630 rm -rf conftest*
16631 eval "ac_cv_lib_$ac_lib_var=no"
16632 fi
16633 rm -f conftest*
16634 LIBS="$ac_save_LIBS"
16635
16636 fi
16637 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16638 echo "$ac_t""yes" 1>&6
16639 cat >> confdefs.h <<\EOF
16640 #define HAVE_SCHED_YIELD 1
16641 EOF
16642 POSIX4_LINK=" -lposix4"
16643 else
16644 echo "$ac_t""no" 1>&6
16645 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
16646
16647 fi
16648
16649
16650 fi
16651
16652
16653 HAVE_PRIOR_FUNCS=0
16654 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
16655 echo "configure:16656: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
16656 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
16657 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16658 echo $ac_n "(cached) $ac_c" 1>&6
16659 else
16660 ac_save_LIBS="$LIBS"
16661 LIBS="-l$THREADS_LINK $LIBS"
16662 cat > conftest.$ac_ext <<EOF
16663 #line 16664 "configure"
16664 #include "confdefs.h"
16665 /* Override any gcc2 internal prototype to avoid an error. */
16666 /* We use char because int might match the return type of a gcc2
16667 builtin and then its argument prototype would still apply. */
16668 char pthread_attr_getschedpolicy();
16669
16670 int main() {
16671 pthread_attr_getschedpolicy()
16672 ; return 0; }
16673 EOF
16674 if { (eval echo configure:16675: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16675 rm -rf conftest*
16676 eval "ac_cv_lib_$ac_lib_var=yes"
16677 else
16678 echo "configure: failed program was:" >&5
16679 cat conftest.$ac_ext >&5
16680 rm -rf conftest*
16681 eval "ac_cv_lib_$ac_lib_var=no"
16682 fi
16683 rm -f conftest*
16684 LIBS="$ac_save_LIBS"
16685
16686 fi
16687 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16688 echo "$ac_t""yes" 1>&6
16689 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
16690 echo "configure:16691: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
16691 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
16692 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16693 echo $ac_n "(cached) $ac_c" 1>&6
16694 else
16695 ac_save_LIBS="$LIBS"
16696 LIBS="-l$THREADS_LINK $LIBS"
16697 cat > conftest.$ac_ext <<EOF
16698 #line 16699 "configure"
16699 #include "confdefs.h"
16700 /* Override any gcc2 internal prototype to avoid an error. */
16701 /* We use char because int might match the return type of a gcc2
16702 builtin and then its argument prototype would still apply. */
16703 char pthread_attr_setschedparam();
16704
16705 int main() {
16706 pthread_attr_setschedparam()
16707 ; return 0; }
16708 EOF
16709 if { (eval echo configure:16710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16710 rm -rf conftest*
16711 eval "ac_cv_lib_$ac_lib_var=yes"
16712 else
16713 echo "configure: failed program was:" >&5
16714 cat conftest.$ac_ext >&5
16715 rm -rf conftest*
16716 eval "ac_cv_lib_$ac_lib_var=no"
16717 fi
16718 rm -f conftest*
16719 LIBS="$ac_save_LIBS"
16720
16721 fi
16722 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16723 echo "$ac_t""yes" 1>&6
16724 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
16725 echo "configure:16726: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
16726 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16728 echo $ac_n "(cached) $ac_c" 1>&6
16729 else
16730 ac_save_LIBS="$LIBS"
16731 LIBS="-l$THREADS_LINK $LIBS"
16732 cat > conftest.$ac_ext <<EOF
16733 #line 16734 "configure"
16734 #include "confdefs.h"
16735 /* Override any gcc2 internal prototype to avoid an error. */
16736 /* We use char because int might match the return type of a gcc2
16737 builtin and then its argument prototype would still apply. */
16738 char sched_get_priority_max();
16739
16740 int main() {
16741 sched_get_priority_max()
16742 ; return 0; }
16743 EOF
16744 if { (eval echo configure:16745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16745 rm -rf conftest*
16746 eval "ac_cv_lib_$ac_lib_var=yes"
16747 else
16748 echo "configure: failed program was:" >&5
16749 cat conftest.$ac_ext >&5
16750 rm -rf conftest*
16751 eval "ac_cv_lib_$ac_lib_var=no"
16752 fi
16753 rm -f conftest*
16754 LIBS="$ac_save_LIBS"
16755
16756 fi
16757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16758 echo "$ac_t""yes" 1>&6
16759 HAVE_PRIOR_FUNCS=1
16760 else
16761 echo "$ac_t""no" 1>&6
16762 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
16763 echo "configure:16764: checking for sched_get_priority_max in -lposix4" >&5
16764 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16765 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16766 echo $ac_n "(cached) $ac_c" 1>&6
16767 else
16768 ac_save_LIBS="$LIBS"
16769 LIBS="-lposix4 $LIBS"
16770 cat > conftest.$ac_ext <<EOF
16771 #line 16772 "configure"
16772 #include "confdefs.h"
16773 /* Override any gcc2 internal prototype to avoid an error. */
16774 /* We use char because int might match the return type of a gcc2
16775 builtin and then its argument prototype would still apply. */
16776 char sched_get_priority_max();
16777
16778 int main() {
16779 sched_get_priority_max()
16780 ; return 0; }
16781 EOF
16782 if { (eval echo configure:16783: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16783 rm -rf conftest*
16784 eval "ac_cv_lib_$ac_lib_var=yes"
16785 else
16786 echo "configure: failed program was:" >&5
16787 cat conftest.$ac_ext >&5
16788 rm -rf conftest*
16789 eval "ac_cv_lib_$ac_lib_var=no"
16790 fi
16791 rm -f conftest*
16792 LIBS="$ac_save_LIBS"
16793
16794 fi
16795 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16796 echo "$ac_t""yes" 1>&6
16797
16798 HAVE_PRIOR_FUNCS=1
16799 POSIX4_LINK=" -lposix4"
16800
16801 else
16802 echo "$ac_t""no" 1>&6
16803 fi
16804
16805
16806 fi
16807
16808
16809 else
16810 echo "$ac_t""no" 1>&6
16811 fi
16812
16813
16814 else
16815 echo "$ac_t""no" 1>&6
16816 fi
16817
16818
16819 if test "$HAVE_PRIOR_FUNCS" = 1; then
16820 cat >> confdefs.h <<\EOF
16821 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
16822 EOF
16823
16824 else
16825 echo "configure: warning: Setting thread priority will not work" 1>&2
16826 fi
16827
16828 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
16829 echo "configure:16830: checking for pthread_cancel in -l$THREADS_LINK" >&5
16830 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
16831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16832 echo $ac_n "(cached) $ac_c" 1>&6
16833 else
16834 ac_save_LIBS="$LIBS"
16835 LIBS="-l$THREADS_LINK $LIBS"
16836 cat > conftest.$ac_ext <<EOF
16837 #line 16838 "configure"
16838 #include "confdefs.h"
16839 /* Override any gcc2 internal prototype to avoid an error. */
16840 /* We use char because int might match the return type of a gcc2
16841 builtin and then its argument prototype would still apply. */
16842 char pthread_cancel();
16843
16844 int main() {
16845 pthread_cancel()
16846 ; return 0; }
16847 EOF
16848 if { (eval echo configure:16849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16849 rm -rf conftest*
16850 eval "ac_cv_lib_$ac_lib_var=yes"
16851 else
16852 echo "configure: failed program was:" >&5
16853 cat conftest.$ac_ext >&5
16854 rm -rf conftest*
16855 eval "ac_cv_lib_$ac_lib_var=no"
16856 fi
16857 rm -f conftest*
16858 LIBS="$ac_save_LIBS"
16859
16860 fi
16861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16862 echo "$ac_t""yes" 1>&6
16863 cat >> confdefs.h <<\EOF
16864 #define HAVE_PTHREAD_CANCEL 1
16865 EOF
16866
16867 else
16868 echo "$ac_t""no" 1>&6
16869 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
16870 fi
16871
16872
16873 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
16874 echo "configure:16875: checking for pthread_cleanup_push/pop" >&5
16875 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
16876 echo $ac_n "(cached) $ac_c" 1>&6
16877 else
16878
16879 cat > conftest.$ac_ext <<EOF
16880 #line 16881 "configure"
16881 #include "confdefs.h"
16882 #include <pthread.h>
16883 int main() {
16884
16885 pthread_cleanup_push(NULL, NULL);
16886 pthread_cleanup_pop(0);
16887
16888 ; return 0; }
16889 EOF
16890 if { (eval echo configure:16891: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16891 rm -rf conftest*
16892
16893 wx_cv_func_pthread_cleanup_push=yes
16894
16895 else
16896 echo "configure: failed program was:" >&5
16897 cat conftest.$ac_ext >&5
16898 rm -rf conftest*
16899
16900 wx_cv_func_pthread_cleanup_push=no
16901
16902 fi
16903 rm -f conftest*
16904
16905 fi
16906
16907 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
16908
16909 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
16910 cat >> confdefs.h <<\EOF
16911 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
16912 EOF
16913
16914 fi
16915
16916
16917 if test "x$wx_lib_glibc21" = "xyes"; then
16918 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
16919 fi
16920
16921 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
16922 echo "configure:16923: checking for pthread_mutexattr_t" >&5
16923 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
16924 echo $ac_n "(cached) $ac_c" 1>&6
16925 else
16926
16927 cat > conftest.$ac_ext <<EOF
16928 #line 16929 "configure"
16929 #include "confdefs.h"
16930 #include <pthread.h>
16931 int main() {
16932
16933 pthread_mutexattr_t attr;
16934 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
16935
16936 ; return 0; }
16937 EOF
16938 if { (eval echo configure:16939: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16939 rm -rf conftest*
16940
16941 wx_cv_type_pthread_mutexattr_t=yes
16942
16943 else
16944 echo "configure: failed program was:" >&5
16945 cat conftest.$ac_ext >&5
16946 rm -rf conftest*
16947
16948 wx_cv_type_pthread_mutexattr_t=no
16949
16950
16951 fi
16952 rm -f conftest*
16953
16954 fi
16955
16956 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
16957
16958 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
16959 cat >> confdefs.h <<\EOF
16960 #define HAVE_PTHREAD_MUTEXATTR_T 1
16961 EOF
16962
16963 else
16964 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
16965 echo "configure:16966: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
16966 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
16967 echo $ac_n "(cached) $ac_c" 1>&6
16968 else
16969
16970 cat > conftest.$ac_ext <<EOF
16971 #line 16972 "configure"
16972 #include "confdefs.h"
16973 #include <pthread.h>
16974 int main() {
16975
16976 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
16977
16978 ; return 0; }
16979 EOF
16980 if { (eval echo configure:16981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16981 rm -rf conftest*
16982
16983 wx_cv_type_pthread_rec_mutex_init=yes
16984
16985 else
16986 echo "configure: failed program was:" >&5
16987 cat conftest.$ac_ext >&5
16988 rm -rf conftest*
16989
16990 wx_cv_type_pthread_rec_mutex_init=no
16991
16992
16993 fi
16994 rm -f conftest*
16995
16996 fi
16997
16998 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
16999 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
17000 cat >> confdefs.h <<\EOF
17001 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
17002 EOF
17003
17004 else
17005 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
17006 fi
17007 fi
17008
17009 THREADS_LINK=" -l$THREADS_LINK"
17010
17011 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
17012 CPPFLAGS="$CFLAGS -mt"
17013 CXXFLAGS="$CXXFLAGS -mt"
17014 LDFLAGS="$LDFLAGS -mt"
17015 fi
17016 fi
17017
17018 fi
17019
17020 if test "$wxUSE_THREADS" = "yes"; then
17021 cat >> confdefs.h <<\EOF
17022 #define wxUSE_THREADS 1
17023 EOF
17024
17025
17026 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
17027
17028 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
17029 else
17030 if test "$ac_cv_func_strtok_r" = "yes"; then
17031 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
17032 echo "configure:17033: checking if -D_REENTRANT is needed" >&5
17033 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
17034 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
17035 echo "$ac_t""yes" 1>&6
17036 else
17037 echo "$ac_t""no" 1>&6
17038 fi
17039 fi
17040 fi
17041
17042 if test "$WXGTK20" = 1 ; then
17043 cat >> confdefs.h <<EOF
17044 #define __WXGTK20__ $WXGTK20
17045 EOF
17046
17047 WXGTK12=1
17048 fi
17049
17050 if test "$WXGTK12" = 1 ; then
17051 cat >> confdefs.h <<EOF
17052 #define __WXGTK12__ $WXGTK12
17053 EOF
17054
17055 fi
17056
17057 if test "$WXGTK127" = 1 ; then
17058 cat >> confdefs.h <<EOF
17059 #define __WXGTK127__ $WXGTK127
17060 EOF
17061
17062 fi
17063
17064 WXDEBUG=
17065
17066 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
17067 WXDEBUG="-g"
17068 wxUSE_OPTIMISE=no
17069 fi
17070
17071 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
17072 wxUSE_DEBUG_INFO=yes
17073 WXDEBUG="-ggdb"
17074 fi
17075
17076 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
17077 cat >> confdefs.h <<\EOF
17078 #define WXDEBUG 1
17079 EOF
17080
17081 WXDEBUG_DEFINE="-D__WXDEBUG__"
17082 else
17083 if test "$wxUSE_GTK" = 1 ; then
17084 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
17085 fi
17086 fi
17087
17088 if test "$wxUSE_MEM_TRACING" = "yes" ; then
17089 cat >> confdefs.h <<\EOF
17090 #define wxUSE_MEMORY_TRACING 1
17091 EOF
17092
17093 cat >> confdefs.h <<\EOF
17094 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
17095 EOF
17096
17097 cat >> confdefs.h <<\EOF
17098 #define wxUSE_DEBUG_NEW_ALWAYS 1
17099 EOF
17100
17101 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
17102 fi
17103
17104 if test "$wxUSE_DMALLOC" = "yes" ; then
17105 DMALLOC_LIBS="-ldmalloc"
17106 fi
17107
17108 PROFILE=
17109 if test "$wxUSE_PROFILE" = "yes" ; then
17110 PROFILE=" -pg"
17111 fi
17112
17113 if test "$GCC" = "yes" ; then
17114 if test "$wxUSE_NO_RTTI" = "yes" ; then
17115 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
17116 fi
17117 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
17118 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
17119 fi
17120 if test "$wxUSE_PERMISSIVE" = "yes" ; then
17121 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
17122 fi
17123 if test "$USE_WIN32" = 1 ; then
17124 # I'm not even really sure what this was ever added to solve,
17125 # but someone added it for mingw native builds, so I guess
17126 # they had a reason, right??
17127 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
17128 fi
17129 fi
17130
17131
17132 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
17133 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
17134 if test "$wxUSE_OPTIMISE" = "no" ; then
17135 OPTIMISE=
17136 else
17137 if test "$GCC" = yes ; then
17138 OPTIMISE="-O2"
17139 case "${host}" in
17140 i586-*-*|i686-*-* )
17141 OPTIMISE="${OPTIMISE} "
17142 ;;
17143 esac
17144 else
17145 OPTIMISE="-O"
17146 fi
17147 fi
17148
17149 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
17150 cat >> confdefs.h <<\EOF
17151 #define WXWIN_COMPATIBILITY_2 1
17152 EOF
17153
17154
17155 WXWIN_COMPATIBILITY_2_2="yes"
17156 fi
17157
17158 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
17159 cat >> confdefs.h <<\EOF
17160 #define WXWIN_COMPATIBILITY_2_2 1
17161 EOF
17162
17163 fi
17164
17165
17166 if test "$wxUSE_GUI" = "yes"; then
17167 cat >> confdefs.h <<\EOF
17168 #define wxUSE_GUI 1
17169 EOF
17170
17171
17172 else
17173 cat >> confdefs.h <<\EOF
17174 #define wxUSE_NOGUI 1
17175 EOF
17176
17177 fi
17178
17179
17180 if test "$wxUSE_UNIX" = "yes"; then
17181 cat >> confdefs.h <<\EOF
17182 #define wxUSE_UNIX 1
17183 EOF
17184
17185 fi
17186
17187
17188 if test "$wxUSE_APPLE_IEEE" = "yes"; then
17189 cat >> confdefs.h <<\EOF
17190 #define wxUSE_APPLE_IEEE 1
17191 EOF
17192
17193 fi
17194
17195 if test "$wxUSE_TIMER" = "yes"; then
17196 cat >> confdefs.h <<\EOF
17197 #define wxUSE_TIMER 1
17198 EOF
17199
17200 fi
17201
17202 if test "$wxUSE_WAVE" = "yes"; then
17203 cat >> confdefs.h <<\EOF
17204 #define wxUSE_WAVE 1
17205 EOF
17206
17207 fi
17208
17209 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
17210 cat >> confdefs.h <<\EOF
17211 #define wxUSE_CMDLINE_PARSER 1
17212 EOF
17213
17214 fi
17215
17216 if test "$wxUSE_STOPWATCH" = "yes"; then
17217 cat >> confdefs.h <<\EOF
17218 #define wxUSE_STOPWATCH 1
17219 EOF
17220
17221 fi
17222
17223 if test "$wxUSE_DATETIME" = "yes"; then
17224 cat >> confdefs.h <<\EOF
17225 #define wxUSE_DATETIME 1
17226 EOF
17227
17228 fi
17229
17230 if test "$wxUSE_TIMEDATE" = "yes"; then
17231 cat >> confdefs.h <<\EOF
17232 #define wxUSE_TIMEDATE 1
17233 EOF
17234
17235 fi
17236
17237 if test "$wxUSE_FILE" = "yes"; then
17238 cat >> confdefs.h <<\EOF
17239 #define wxUSE_FILE 1
17240 EOF
17241
17242 fi
17243
17244 if test "$wxUSE_FFILE" = "yes"; then
17245 cat >> confdefs.h <<\EOF
17246 #define wxUSE_FFILE 1
17247 EOF
17248
17249 fi
17250
17251 if test "$wxUSE_FILESYSTEM" = "yes"; then
17252 cat >> confdefs.h <<\EOF
17253 #define wxUSE_FILESYSTEM 1
17254 EOF
17255
17256 fi
17257
17258 if test "$wxUSE_FS_INET" = "yes"; then
17259 cat >> confdefs.h <<\EOF
17260 #define wxUSE_FS_INET 1
17261 EOF
17262
17263 fi
17264
17265 if test "$wxUSE_FS_ZIP" = "yes"; then
17266 cat >> confdefs.h <<\EOF
17267 #define wxUSE_FS_ZIP 1
17268 EOF
17269
17270 fi
17271
17272 if test "$wxUSE_ZIPSTREAM" = "yes"; then
17273 cat >> confdefs.h <<\EOF
17274 #define wxUSE_ZIPSTREAM 1
17275 EOF
17276
17277 fi
17278
17279 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
17280 cat >> confdefs.h <<\EOF
17281 #define wxUSE_ON_FATAL_EXCEPTION 1
17282 EOF
17283
17284 fi
17285
17286 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
17287 cat >> confdefs.h <<\EOF
17288 #define wxUSE_SNGLINST_CHECKER 1
17289 EOF
17290
17291 fi
17292
17293 if test "$wxUSE_BUSYINFO" = "yes"; then
17294 cat >> confdefs.h <<\EOF
17295 #define wxUSE_BUSYINFO 1
17296 EOF
17297
17298 fi
17299
17300 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
17301 cat >> confdefs.h <<\EOF
17302 #define wxUSE_STD_IOSTREAM 1
17303 EOF
17304
17305 fi
17306
17307 if test "$wxUSE_TEXTBUFFER" = "yes"; then
17308 cat >> confdefs.h <<\EOF
17309 #define wxUSE_TEXTBUFFER 1
17310 EOF
17311
17312 fi
17313
17314 if test "$wxUSE_TEXTFILE" = "yes"; then
17315 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
17316 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
17317 else
17318 cat >> confdefs.h <<\EOF
17319 #define wxUSE_TEXTFILE 1
17320 EOF
17321
17322 fi
17323 fi
17324
17325 if test "$wxUSE_CONFIG" = "yes" ; then
17326 if test "$wxUSE_TEXTFILE" != "yes"; then
17327 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
17328 else
17329 cat >> confdefs.h <<\EOF
17330 #define wxUSE_CONFIG 1
17331 EOF
17332
17333 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
17334 fi
17335 fi
17336
17337 if test "$wxUSE_INTL" = "yes" ; then
17338 if test "$wxUSE_FILE" != "yes"; then
17339 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
17340 else
17341 cat >> confdefs.h <<\EOF
17342 #define wxUSE_INTL 1
17343 EOF
17344
17345 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
17346 GUIDIST="$GUIDIST INTL_DIST"
17347 fi
17348 fi
17349
17350 if test "$wxUSE_LOG" = "yes"; then
17351 cat >> confdefs.h <<\EOF
17352 #define wxUSE_LOG 1
17353 EOF
17354
17355
17356 if test "$wxUSE_LOGGUI" = "yes"; then
17357 cat >> confdefs.h <<\EOF
17358 #define wxUSE_LOGGUI 1
17359 EOF
17360
17361 fi
17362
17363 if test "$wxUSE_LOGWINDOW" = "yes"; then
17364 cat >> confdefs.h <<\EOF
17365 #define wxUSE_LOGWINDOW 1
17366 EOF
17367
17368 fi
17369
17370 if test "$wxUSE_LOGDIALOG" = "yes"; then
17371 cat >> confdefs.h <<\EOF
17372 #define wxUSE_LOG_DIALOG 1
17373 EOF
17374
17375 fi
17376 fi
17377
17378 if test "$wxUSE_LONGLONG" = "yes"; then
17379 cat >> confdefs.h <<\EOF
17380 #define wxUSE_LONGLONG 1
17381 EOF
17382
17383 fi
17384
17385 if test "$wxUSE_GEOMETRY" = "yes"; then
17386 cat >> confdefs.h <<\EOF
17387 #define wxUSE_GEOMETRY 1
17388 EOF
17389
17390 fi
17391
17392 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
17393 cat >> confdefs.h <<\EOF
17394 #define wxUSE_DIALUP_MANAGER 1
17395 EOF
17396
17397 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
17398 fi
17399
17400 if test "$wxUSE_STREAMS" = "yes" ; then
17401 cat >> confdefs.h <<\EOF
17402 #define wxUSE_STREAMS 1
17403 EOF
17404
17405 fi
17406
17407
17408 if test "$wxUSE_DATETIME" = "yes"; then
17409 for ac_func in strptime
17410 do
17411 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17412 echo "configure:17413: checking for $ac_func" >&5
17413 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17414 echo $ac_n "(cached) $ac_c" 1>&6
17415 else
17416 cat > conftest.$ac_ext <<EOF
17417 #line 17418 "configure"
17418 #include "confdefs.h"
17419 /* System header to define __stub macros and hopefully few prototypes,
17420 which can conflict with char $ac_func(); below. */
17421 #include <assert.h>
17422 /* Override any gcc2 internal prototype to avoid an error. */
17423 /* We use char because int might match the return type of a gcc2
17424 builtin and then its argument prototype would still apply. */
17425 char $ac_func();
17426
17427 int main() {
17428
17429 /* The GNU C library defines this for functions which it implements
17430 to always fail with ENOSYS. Some functions are actually named
17431 something starting with __ and the normal name is an alias. */
17432 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17433 choke me
17434 #else
17435 $ac_func();
17436 #endif
17437
17438 ; return 0; }
17439 EOF
17440 if { (eval echo configure:17441: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17441 rm -rf conftest*
17442 eval "ac_cv_func_$ac_func=yes"
17443 else
17444 echo "configure: failed program was:" >&5
17445 cat conftest.$ac_ext >&5
17446 rm -rf conftest*
17447 eval "ac_cv_func_$ac_func=no"
17448 fi
17449 rm -f conftest*
17450 fi
17451
17452 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17453 echo "$ac_t""yes" 1>&6
17454 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17455 cat >> confdefs.h <<EOF
17456 #define $ac_tr_func 1
17457 EOF
17458
17459 else
17460 echo "$ac_t""no" 1>&6
17461 fi
17462 done
17463
17464
17465 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
17466 echo "configure:17467: checking for timezone variable in <time.h>" >&5
17467 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
17468 echo $ac_n "(cached) $ac_c" 1>&6
17469 else
17470
17471 cat > conftest.$ac_ext <<EOF
17472 #line 17473 "configure"
17473 #include "confdefs.h"
17474
17475 #include <time.h>
17476
17477 int main() {
17478
17479 int tz;
17480 tz = timezone;
17481
17482 ; return 0; }
17483 EOF
17484 if { (eval echo configure:17485: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17485 rm -rf conftest*
17486
17487 wx_cv_var_timezone=timezone
17488
17489 else
17490 echo "configure: failed program was:" >&5
17491 cat conftest.$ac_ext >&5
17492 rm -rf conftest*
17493
17494 cat > conftest.$ac_ext <<EOF
17495 #line 17496 "configure"
17496 #include "confdefs.h"
17497
17498 #include <time.h>
17499
17500 int main() {
17501
17502 int tz;
17503 tz = _timezone;
17504
17505 ; return 0; }
17506 EOF
17507 if { (eval echo configure:17508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17508 rm -rf conftest*
17509
17510 wx_cv_var_timezone=_timezone
17511
17512 else
17513 echo "configure: failed program was:" >&5
17514 cat conftest.$ac_ext >&5
17515 rm -rf conftest*
17516
17517 cat > conftest.$ac_ext <<EOF
17518 #line 17519 "configure"
17519 #include "confdefs.h"
17520
17521 #include <time.h>
17522
17523 int main() {
17524
17525 int tz;
17526 tz = __timezone;
17527
17528 ; return 0; }
17529 EOF
17530 if { (eval echo configure:17531: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17531 rm -rf conftest*
17532
17533 wx_cv_var_timezone=__timezone
17534
17535 else
17536 echo "configure: failed program was:" >&5
17537 cat conftest.$ac_ext >&5
17538 rm -rf conftest*
17539
17540 if test "$USE_DOS" = 0 ; then
17541 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
17542 fi
17543
17544
17545 fi
17546 rm -f conftest*
17547
17548
17549 fi
17550 rm -f conftest*
17551
17552
17553 fi
17554 rm -f conftest*
17555
17556
17557 fi
17558
17559 echo "$ac_t""$wx_cv_var_timezone" 1>&6
17560
17561 if test "x$wx_cv_var_timezone" != x ; then
17562 cat >> confdefs.h <<EOF
17563 #define WX_TIMEZONE $wx_cv_var_timezone
17564 EOF
17565
17566 fi
17567
17568 for ac_func in localtime
17569 do
17570 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17571 echo "configure:17572: checking for $ac_func" >&5
17572 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17573 echo $ac_n "(cached) $ac_c" 1>&6
17574 else
17575 cat > conftest.$ac_ext <<EOF
17576 #line 17577 "configure"
17577 #include "confdefs.h"
17578 /* System header to define __stub macros and hopefully few prototypes,
17579 which can conflict with char $ac_func(); below. */
17580 #include <assert.h>
17581 /* Override any gcc2 internal prototype to avoid an error. */
17582 /* We use char because int might match the return type of a gcc2
17583 builtin and then its argument prototype would still apply. */
17584 char $ac_func();
17585
17586 int main() {
17587
17588 /* The GNU C library defines this for functions which it implements
17589 to always fail with ENOSYS. Some functions are actually named
17590 something starting with __ and the normal name is an alias. */
17591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17592 choke me
17593 #else
17594 $ac_func();
17595 #endif
17596
17597 ; return 0; }
17598 EOF
17599 if { (eval echo configure:17600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17600 rm -rf conftest*
17601 eval "ac_cv_func_$ac_func=yes"
17602 else
17603 echo "configure: failed program was:" >&5
17604 cat conftest.$ac_ext >&5
17605 rm -rf conftest*
17606 eval "ac_cv_func_$ac_func=no"
17607 fi
17608 rm -f conftest*
17609 fi
17610
17611 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17612 echo "$ac_t""yes" 1>&6
17613 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17614 cat >> confdefs.h <<EOF
17615 #define $ac_tr_func 1
17616 EOF
17617
17618 else
17619 echo "$ac_t""no" 1>&6
17620 fi
17621 done
17622
17623
17624 if test "$ac_cv_func_localtime" = "yes"; then
17625 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
17626 echo "configure:17627: checking for tm_gmtoff in struct tm" >&5
17627 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
17628 echo $ac_n "(cached) $ac_c" 1>&6
17629 else
17630
17631 cat > conftest.$ac_ext <<EOF
17632 #line 17633 "configure"
17633 #include "confdefs.h"
17634
17635 #include <time.h>
17636
17637 int main() {
17638
17639 struct tm tm;
17640 tm.tm_gmtoff++;
17641
17642 ; return 0; }
17643 EOF
17644 if { (eval echo configure:17645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17645 rm -rf conftest*
17646
17647 wx_cv_struct_tm_has_gmtoff=yes
17648
17649 else
17650 echo "configure: failed program was:" >&5
17651 cat conftest.$ac_ext >&5
17652 rm -rf conftest*
17653 wx_cv_struct_tm_has_gmtoff=no
17654
17655 fi
17656 rm -f conftest*
17657
17658 fi
17659
17660 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
17661 fi
17662
17663 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
17664 cat >> confdefs.h <<\EOF
17665 #define WX_GMTOFF_IN_TM 1
17666 EOF
17667
17668 fi
17669
17670 for ac_func in gettimeofday ftime
17671 do
17672 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17673 echo "configure:17674: checking for $ac_func" >&5
17674 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17675 echo $ac_n "(cached) $ac_c" 1>&6
17676 else
17677 cat > conftest.$ac_ext <<EOF
17678 #line 17679 "configure"
17679 #include "confdefs.h"
17680 /* System header to define __stub macros and hopefully few prototypes,
17681 which can conflict with char $ac_func(); below. */
17682 #include <assert.h>
17683 /* Override any gcc2 internal prototype to avoid an error. */
17684 /* We use char because int might match the return type of a gcc2
17685 builtin and then its argument prototype would still apply. */
17686 char $ac_func();
17687
17688 int main() {
17689
17690 /* The GNU C library defines this for functions which it implements
17691 to always fail with ENOSYS. Some functions are actually named
17692 something starting with __ and the normal name is an alias. */
17693 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17694 choke me
17695 #else
17696 $ac_func();
17697 #endif
17698
17699 ; return 0; }
17700 EOF
17701 if { (eval echo configure:17702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17702 rm -rf conftest*
17703 eval "ac_cv_func_$ac_func=yes"
17704 else
17705 echo "configure: failed program was:" >&5
17706 cat conftest.$ac_ext >&5
17707 rm -rf conftest*
17708 eval "ac_cv_func_$ac_func=no"
17709 fi
17710 rm -f conftest*
17711 fi
17712
17713 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17714 echo "$ac_t""yes" 1>&6
17715 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17716 cat >> confdefs.h <<EOF
17717 #define $ac_tr_func 1
17718 EOF
17719 break
17720 else
17721 echo "$ac_t""no" 1>&6
17722 fi
17723 done
17724
17725
17726 if test "$ac_cv_func_gettimeofday" = "yes"; then
17727 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
17728 echo "configure:17729: checking whether gettimeofday takes two arguments" >&5
17729 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
17730 echo $ac_n "(cached) $ac_c" 1>&6
17731 else
17732
17733
17734 ac_ext=C
17735 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17736 ac_cpp='$CXXCPP $CPPFLAGS'
17737 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17738 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17739 cross_compiling=$ac_cv_prog_cxx_cross
17740
17741
17742 cat > conftest.$ac_ext <<EOF
17743 #line 17744 "configure"
17744 #include "confdefs.h"
17745
17746 #include <sys/time.h>
17747 #include <unistd.h>
17748
17749 int main() {
17750
17751 struct timeval tv;
17752 gettimeofday(&tv, NULL);
17753
17754 ; return 0; }
17755 EOF
17756 if { (eval echo configure:17757: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17757 rm -rf conftest*
17758 wx_cv_func_gettimeofday_has_2_args=yes
17759 else
17760 echo "configure: failed program was:" >&5
17761 cat conftest.$ac_ext >&5
17762 rm -rf conftest*
17763 cat > conftest.$ac_ext <<EOF
17764 #line 17765 "configure"
17765 #include "confdefs.h"
17766
17767 #include <sys/time.h>
17768 #include <unistd.h>
17769
17770 int main() {
17771
17772 struct timeval tv;
17773 gettimeofday(&tv);
17774
17775 ; return 0; }
17776 EOF
17777 if { (eval echo configure:17778: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17778 rm -rf conftest*
17779 wx_cv_func_gettimeofday_has_2_args=no
17780 else
17781 echo "configure: failed program was:" >&5
17782 cat conftest.$ac_ext >&5
17783 rm -rf conftest*
17784
17785 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
17786 wx_cv_func_gettimeofday_has_2_args=unknown
17787
17788
17789 fi
17790 rm -f conftest*
17791
17792 fi
17793 rm -f conftest*
17794 ac_ext=c
17795 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17796 ac_cpp='$CPP $CPPFLAGS'
17797 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17798 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17799 cross_compiling=$ac_cv_prog_cc_cross
17800
17801
17802 fi
17803
17804 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
17805
17806 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
17807 cat >> confdefs.h <<\EOF
17808 #define WX_GETTIMEOFDAY_NO_TZ 1
17809 EOF
17810
17811 fi
17812 fi
17813
17814 cat >> confdefs.h <<\EOF
17815 #define wxUSE_TIMEDATE 1
17816 EOF
17817
17818 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
17819 fi
17820
17821
17822 if test "$TOOLKIT" != "MSW"; then
17823
17824 if test "$wxUSE_SOCKETS" = "yes"; then
17825 echo $ac_n "checking for socket""... $ac_c" 1>&6
17826 echo "configure:17827: checking for socket" >&5
17827 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
17828 echo $ac_n "(cached) $ac_c" 1>&6
17829 else
17830 cat > conftest.$ac_ext <<EOF
17831 #line 17832 "configure"
17832 #include "confdefs.h"
17833 /* System header to define __stub macros and hopefully few prototypes,
17834 which can conflict with char socket(); below. */
17835 #include <assert.h>
17836 /* Override any gcc2 internal prototype to avoid an error. */
17837 /* We use char because int might match the return type of a gcc2
17838 builtin and then its argument prototype would still apply. */
17839 char socket();
17840
17841 int main() {
17842
17843 /* The GNU C library defines this for functions which it implements
17844 to always fail with ENOSYS. Some functions are actually named
17845 something starting with __ and the normal name is an alias. */
17846 #if defined (__stub_socket) || defined (__stub___socket)
17847 choke me
17848 #else
17849 socket();
17850 #endif
17851
17852 ; return 0; }
17853 EOF
17854 if { (eval echo configure:17855: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17855 rm -rf conftest*
17856 eval "ac_cv_func_socket=yes"
17857 else
17858 echo "configure: failed program was:" >&5
17859 cat conftest.$ac_ext >&5
17860 rm -rf conftest*
17861 eval "ac_cv_func_socket=no"
17862 fi
17863 rm -f conftest*
17864 fi
17865
17866 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
17867 echo "$ac_t""yes" 1>&6
17868 :
17869 else
17870 echo "$ac_t""no" 1>&6
17871 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
17872 echo "configure:17873: checking for socket in -lsocket" >&5
17873 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
17874 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17875 echo $ac_n "(cached) $ac_c" 1>&6
17876 else
17877 ac_save_LIBS="$LIBS"
17878 LIBS="-lsocket $LIBS"
17879 cat > conftest.$ac_ext <<EOF
17880 #line 17881 "configure"
17881 #include "confdefs.h"
17882 /* Override any gcc2 internal prototype to avoid an error. */
17883 /* We use char because int might match the return type of a gcc2
17884 builtin and then its argument prototype would still apply. */
17885 char socket();
17886
17887 int main() {
17888 socket()
17889 ; return 0; }
17890 EOF
17891 if { (eval echo configure:17892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17892 rm -rf conftest*
17893 eval "ac_cv_lib_$ac_lib_var=yes"
17894 else
17895 echo "configure: failed program was:" >&5
17896 cat conftest.$ac_ext >&5
17897 rm -rf conftest*
17898 eval "ac_cv_lib_$ac_lib_var=no"
17899 fi
17900 rm -f conftest*
17901 LIBS="$ac_save_LIBS"
17902
17903 fi
17904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17905 echo "$ac_t""yes" 1>&6
17906 INET_LINK="$INET_LINK -lsocket"
17907 else
17908 echo "$ac_t""no" 1>&6
17909
17910 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
17911 wxUSE_SOCKETS=no
17912
17913
17914 fi
17915
17916
17917 fi
17918
17919 fi
17920
17921
17922 if test "$wxUSE_SOCKETS" = "yes" ; then
17923 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
17924 echo "configure:17925: checking what is the type of the third argument of getsockname" >&5
17925 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
17926 echo $ac_n "(cached) $ac_c" 1>&6
17927 else
17928
17929
17930 ac_ext=C
17931 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17932 ac_cpp='$CXXCPP $CPPFLAGS'
17933 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17934 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17935 cross_compiling=$ac_cv_prog_cxx_cross
17936
17937
17938 cat > conftest.$ac_ext <<EOF
17939 #line 17940 "configure"
17940 #include "confdefs.h"
17941
17942 #include <sys/types.h>
17943 #include <sys/socket.h>
17944
17945 int main() {
17946
17947 socklen_t len;
17948 getsockname(0, 0, &len);
17949
17950 ; return 0; }
17951 EOF
17952 if { (eval echo configure:17953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17953 rm -rf conftest*
17954 wx_cv_type_getsockname3=socklen_t
17955 else
17956 echo "configure: failed program was:" >&5
17957 cat conftest.$ac_ext >&5
17958 rm -rf conftest*
17959 cat > conftest.$ac_ext <<EOF
17960 #line 17961 "configure"
17961 #include "confdefs.h"
17962
17963 #include <sys/types.h>
17964 #include <sys/socket.h>
17965
17966 int main() {
17967
17968 size_t len;
17969 getsockname(0, 0, &len);
17970
17971 ; return 0; }
17972 EOF
17973 if { (eval echo configure:17974: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17974 rm -rf conftest*
17975 wx_cv_type_getsockname3=size_t
17976 else
17977 echo "configure: failed program was:" >&5
17978 cat conftest.$ac_ext >&5
17979 rm -rf conftest*
17980 cat > conftest.$ac_ext <<EOF
17981 #line 17982 "configure"
17982 #include "confdefs.h"
17983
17984 #include <sys/types.h>
17985 #include <sys/socket.h>
17986
17987 int main() {
17988
17989 int len;
17990 getsockname(0, 0, &len);
17991
17992 ; return 0; }
17993 EOF
17994 if { (eval echo configure:17995: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17995 rm -rf conftest*
17996 wx_cv_type_getsockname3=int
17997 else
17998 echo "configure: failed program was:" >&5
17999 cat conftest.$ac_ext >&5
18000 rm -rf conftest*
18001 wx_cv_type_getsockname3=unknown
18002
18003 fi
18004 rm -f conftest*
18005
18006 fi
18007 rm -f conftest*
18008
18009 fi
18010 rm -f conftest*
18011
18012 ac_ext=c
18013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
18014 ac_cpp='$CPP $CPPFLAGS'
18015 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
18016 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
18017 cross_compiling=$ac_cv_prog_cc_cross
18018
18019
18020 fi
18021
18022 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
18023
18024 if test "$wx_cv_type_getsockname3" = "unknown"; then
18025 wxUSE_SOCKETS=no
18026 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
18027 else
18028 cat >> confdefs.h <<EOF
18029 #define SOCKLEN_T $wx_cv_type_getsockname3
18030 EOF
18031
18032 fi
18033 fi
18034 fi
18035
18036 if test "$wxUSE_SOCKETS" = "yes" ; then
18037 cat >> confdefs.h <<\EOF
18038 #define wxUSE_SOCKETS 1
18039 EOF
18040
18041 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
18042 fi
18043
18044
18045 if test "$wxUSE_GUI" = "yes"; then
18046
18047 if test "$TOOLKIT" = "MAC"; then
18048 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
18049 wxUSE_JOYSTICK=no
18050 fi
18051 if test "$TOOLKIT" = "MOTIF"; then
18052 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
18053 wxUSE_JOYSTICK=no
18054 fi
18055
18056 if test "$TOOLKIT" != "MSW"; then
18057 if test "$wxUSE_JOYSTICK" = "yes"; then
18058 for ac_hdr in linux/joystick.h
18059 do
18060 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18061 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18062 echo "configure:18063: checking for $ac_hdr" >&5
18063 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18064 echo $ac_n "(cached) $ac_c" 1>&6
18065 else
18066 cat > conftest.$ac_ext <<EOF
18067 #line 18068 "configure"
18068 #include "confdefs.h"
18069 #include <$ac_hdr>
18070 EOF
18071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18072 { (eval echo configure:18073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18073 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18074 if test -z "$ac_err"; then
18075 rm -rf conftest*
18076 eval "ac_cv_header_$ac_safe=yes"
18077 else
18078 echo "$ac_err" >&5
18079 echo "configure: failed program was:" >&5
18080 cat conftest.$ac_ext >&5
18081 rm -rf conftest*
18082 eval "ac_cv_header_$ac_safe=no"
18083 fi
18084 rm -f conftest*
18085 fi
18086 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18087 echo "$ac_t""yes" 1>&6
18088 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18089 cat >> confdefs.h <<EOF
18090 #define $ac_tr_hdr 1
18091 EOF
18092
18093 else
18094 echo "$ac_t""no" 1>&6
18095 fi
18096 done
18097
18098 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
18099 wxUSE_JOYSTICK=no
18100 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
18101 fi
18102 fi
18103 fi
18104
18105 if test "$wxUSE_JOYSTICK" = "yes"; then
18106 cat >> confdefs.h <<\EOF
18107 #define wxUSE_JOYSTICK 1
18108 EOF
18109
18110 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
18111 fi
18112 fi
18113
18114
18115 if test "$TOOLKIT" != "MSW"; then
18116
18117 HAVE_DL_FUNCS=0
18118 HAVE_SHL_FUNCS=0
18119 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
18120 if test "$USE_DARWIN" = 1; then
18121 HAVE_DL_FUNCS=1
18122 else
18123 for ac_func in dlopen
18124 do
18125 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18126 echo "configure:18127: checking for $ac_func" >&5
18127 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18128 echo $ac_n "(cached) $ac_c" 1>&6
18129 else
18130 cat > conftest.$ac_ext <<EOF
18131 #line 18132 "configure"
18132 #include "confdefs.h"
18133 /* System header to define __stub macros and hopefully few prototypes,
18134 which can conflict with char $ac_func(); below. */
18135 #include <assert.h>
18136 /* Override any gcc2 internal prototype to avoid an error. */
18137 /* We use char because int might match the return type of a gcc2
18138 builtin and then its argument prototype would still apply. */
18139 char $ac_func();
18140
18141 int main() {
18142
18143 /* The GNU C library defines this for functions which it implements
18144 to always fail with ENOSYS. Some functions are actually named
18145 something starting with __ and the normal name is an alias. */
18146 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18147 choke me
18148 #else
18149 $ac_func();
18150 #endif
18151
18152 ; return 0; }
18153 EOF
18154 if { (eval echo configure:18155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18155 rm -rf conftest*
18156 eval "ac_cv_func_$ac_func=yes"
18157 else
18158 echo "configure: failed program was:" >&5
18159 cat conftest.$ac_ext >&5
18160 rm -rf conftest*
18161 eval "ac_cv_func_$ac_func=no"
18162 fi
18163 rm -f conftest*
18164 fi
18165
18166 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18167 echo "$ac_t""yes" 1>&6
18168 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18169 cat >> confdefs.h <<EOF
18170 #define $ac_tr_func 1
18171 EOF
18172
18173 cat >> confdefs.h <<\EOF
18174 #define HAVE_DLOPEN 1
18175 EOF
18176
18177 HAVE_DL_FUNCS=1
18178
18179 else
18180 echo "$ac_t""no" 1>&6
18181 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
18182 echo "configure:18183: checking for dlopen in -ldl" >&5
18183 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
18184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18185 echo $ac_n "(cached) $ac_c" 1>&6
18186 else
18187 ac_save_LIBS="$LIBS"
18188 LIBS="-ldl $LIBS"
18189 cat > conftest.$ac_ext <<EOF
18190 #line 18191 "configure"
18191 #include "confdefs.h"
18192 /* Override any gcc2 internal prototype to avoid an error. */
18193 /* We use char because int might match the return type of a gcc2
18194 builtin and then its argument prototype would still apply. */
18195 char dlopen();
18196
18197 int main() {
18198 dlopen()
18199 ; return 0; }
18200 EOF
18201 if { (eval echo configure:18202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18202 rm -rf conftest*
18203 eval "ac_cv_lib_$ac_lib_var=yes"
18204 else
18205 echo "configure: failed program was:" >&5
18206 cat conftest.$ac_ext >&5
18207 rm -rf conftest*
18208 eval "ac_cv_lib_$ac_lib_var=no"
18209 fi
18210 rm -f conftest*
18211 LIBS="$ac_save_LIBS"
18212
18213 fi
18214 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18215 echo "$ac_t""yes" 1>&6
18216
18217 cat >> confdefs.h <<\EOF
18218 #define HAVE_DLOPEN 1
18219 EOF
18220
18221 HAVE_DL_FUNCS=1
18222 DL_LINK=" -ldl$DL_LINK"
18223
18224 else
18225 echo "$ac_t""no" 1>&6
18226
18227 for ac_func in shl_load
18228 do
18229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18230 echo "configure:18231: checking for $ac_func" >&5
18231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18232 echo $ac_n "(cached) $ac_c" 1>&6
18233 else
18234 cat > conftest.$ac_ext <<EOF
18235 #line 18236 "configure"
18236 #include "confdefs.h"
18237 /* System header to define __stub macros and hopefully few prototypes,
18238 which can conflict with char $ac_func(); below. */
18239 #include <assert.h>
18240 /* Override any gcc2 internal prototype to avoid an error. */
18241 /* We use char because int might match the return type of a gcc2
18242 builtin and then its argument prototype would still apply. */
18243 char $ac_func();
18244
18245 int main() {
18246
18247 /* The GNU C library defines this for functions which it implements
18248 to always fail with ENOSYS. Some functions are actually named
18249 something starting with __ and the normal name is an alias. */
18250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18251 choke me
18252 #else
18253 $ac_func();
18254 #endif
18255
18256 ; return 0; }
18257 EOF
18258 if { (eval echo configure:18259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18259 rm -rf conftest*
18260 eval "ac_cv_func_$ac_func=yes"
18261 else
18262 echo "configure: failed program was:" >&5
18263 cat conftest.$ac_ext >&5
18264 rm -rf conftest*
18265 eval "ac_cv_func_$ac_func=no"
18266 fi
18267 rm -f conftest*
18268 fi
18269
18270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18271 echo "$ac_t""yes" 1>&6
18272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18273 cat >> confdefs.h <<EOF
18274 #define $ac_tr_func 1
18275 EOF
18276
18277 cat >> confdefs.h <<\EOF
18278 #define HAVE_SHL_LOAD 1
18279 EOF
18280
18281 HAVE_SHL_FUNCS=1
18282
18283 else
18284 echo "$ac_t""no" 1>&6
18285 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
18286 echo "configure:18287: checking for dld in -lshl_load" >&5
18287 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
18288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18289 echo $ac_n "(cached) $ac_c" 1>&6
18290 else
18291 ac_save_LIBS="$LIBS"
18292 LIBS="-lshl_load $LIBS"
18293 cat > conftest.$ac_ext <<EOF
18294 #line 18295 "configure"
18295 #include "confdefs.h"
18296 /* Override any gcc2 internal prototype to avoid an error. */
18297 /* We use char because int might match the return type of a gcc2
18298 builtin and then its argument prototype would still apply. */
18299 char dld();
18300
18301 int main() {
18302 dld()
18303 ; return 0; }
18304 EOF
18305 if { (eval echo configure:18306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18306 rm -rf conftest*
18307 eval "ac_cv_lib_$ac_lib_var=yes"
18308 else
18309 echo "configure: failed program was:" >&5
18310 cat conftest.$ac_ext >&5
18311 rm -rf conftest*
18312 eval "ac_cv_lib_$ac_lib_var=no"
18313 fi
18314 rm -f conftest*
18315 LIBS="$ac_save_LIBS"
18316
18317 fi
18318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18319 echo "$ac_t""yes" 1>&6
18320
18321 HAVE_SHL_FUNCS=1
18322 DL_LINK=" -ldld$DL_LINK"
18323
18324 else
18325 echo "$ac_t""no" 1>&6
18326 fi
18327
18328
18329 fi
18330 done
18331
18332
18333 fi
18334
18335
18336 fi
18337 done
18338
18339
18340 if test "$HAVE_DL_FUNCS" = 1; then
18341 for ac_func in dlerror
18342 do
18343 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
18344 echo "configure:18345: checking for $ac_func" >&5
18345 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
18346 echo $ac_n "(cached) $ac_c" 1>&6
18347 else
18348 cat > conftest.$ac_ext <<EOF
18349 #line 18350 "configure"
18350 #include "confdefs.h"
18351 /* System header to define __stub macros and hopefully few prototypes,
18352 which can conflict with char $ac_func(); below. */
18353 #include <assert.h>
18354 /* Override any gcc2 internal prototype to avoid an error. */
18355 /* We use char because int might match the return type of a gcc2
18356 builtin and then its argument prototype would still apply. */
18357 char $ac_func();
18358
18359 int main() {
18360
18361 /* The GNU C library defines this for functions which it implements
18362 to always fail with ENOSYS. Some functions are actually named
18363 something starting with __ and the normal name is an alias. */
18364 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
18365 choke me
18366 #else
18367 $ac_func();
18368 #endif
18369
18370 ; return 0; }
18371 EOF
18372 if { (eval echo configure:18373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18373 rm -rf conftest*
18374 eval "ac_cv_func_$ac_func=yes"
18375 else
18376 echo "configure: failed program was:" >&5
18377 cat conftest.$ac_ext >&5
18378 rm -rf conftest*
18379 eval "ac_cv_func_$ac_func=no"
18380 fi
18381 rm -f conftest*
18382 fi
18383
18384 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
18385 echo "$ac_t""yes" 1>&6
18386 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
18387 cat >> confdefs.h <<EOF
18388 #define $ac_tr_func 1
18389 EOF
18390 cat >> confdefs.h <<\EOF
18391 #define HAVE_DLERROR 1
18392 EOF
18393
18394 else
18395 echo "$ac_t""no" 1>&6
18396 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
18397 echo "configure:18398: checking for dlerror in -ldl" >&5
18398 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
18399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18400 echo $ac_n "(cached) $ac_c" 1>&6
18401 else
18402 ac_save_LIBS="$LIBS"
18403 LIBS="-ldl $LIBS"
18404 cat > conftest.$ac_ext <<EOF
18405 #line 18406 "configure"
18406 #include "confdefs.h"
18407 /* Override any gcc2 internal prototype to avoid an error. */
18408 /* We use char because int might match the return type of a gcc2
18409 builtin and then its argument prototype would still apply. */
18410 char dlerror();
18411
18412 int main() {
18413 dlerror()
18414 ; return 0; }
18415 EOF
18416 if { (eval echo configure:18417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18417 rm -rf conftest*
18418 eval "ac_cv_lib_$ac_lib_var=yes"
18419 else
18420 echo "configure: failed program was:" >&5
18421 cat conftest.$ac_ext >&5
18422 rm -rf conftest*
18423 eval "ac_cv_lib_$ac_lib_var=no"
18424 fi
18425 rm -f conftest*
18426 LIBS="$ac_save_LIBS"
18427
18428 fi
18429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18430 echo "$ac_t""yes" 1>&6
18431 cat >> confdefs.h <<\EOF
18432 #define HAVE_DLERROR 1
18433 EOF
18434
18435 else
18436 echo "$ac_t""no" 1>&6
18437 fi
18438
18439 fi
18440 done
18441
18442 fi
18443 fi
18444
18445 if test "$HAVE_DL_FUNCS" = 0; then
18446 if test "$HAVE_SHL_FUNCS" = 0; then
18447 if test "$USE_UNIX" = 1; then
18448 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
18449 wxUSE_DYNAMIC_LOADER=no
18450 wxUSE_DYNLIB_CLASS=no
18451 else
18452 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
18453 fi
18454 fi
18455 fi
18456 fi
18457 fi
18458
18459 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
18460 cat >> confdefs.h <<\EOF
18461 #define wxUSE_DYNAMIC_LOADER 1
18462 EOF
18463
18464 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
18465 cat >> confdefs.h <<\EOF
18466 #define wxUSE_DYNLIB_CLASS 1
18467 EOF
18468
18469 fi
18470
18471
18472 if test "$wxUSE_FONTMAP" = "yes" ; then
18473 cat >> confdefs.h <<\EOF
18474 #define wxUSE_FONTMAP 1
18475 EOF
18476
18477 fi
18478
18479 if test "$wxUSE_UNICODE" = "yes" ; then
18480 cat >> confdefs.h <<\EOF
18481 #define wxUSE_UNICODE 1
18482 EOF
18483
18484
18485 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
18486 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
18487 echo "configure:18488: checking for main in -lunicows" >&5
18488 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
18489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18490 echo $ac_n "(cached) $ac_c" 1>&6
18491 else
18492 ac_save_LIBS="$LIBS"
18493 LIBS="-lunicows $LIBS"
18494 cat > conftest.$ac_ext <<EOF
18495 #line 18496 "configure"
18496 #include "confdefs.h"
18497
18498 int main() {
18499 main()
18500 ; return 0; }
18501 EOF
18502 if { (eval echo configure:18503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18503 rm -rf conftest*
18504 eval "ac_cv_lib_$ac_lib_var=yes"
18505 else
18506 echo "configure: failed program was:" >&5
18507 cat conftest.$ac_ext >&5
18508 rm -rf conftest*
18509 eval "ac_cv_lib_$ac_lib_var=no"
18510 fi
18511 rm -f conftest*
18512 LIBS="$ac_save_LIBS"
18513
18514 fi
18515 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18516 echo "$ac_t""yes" 1>&6
18517
18518 cat >> confdefs.h <<\EOF
18519 #define wxUSE_UNICODE_MSLU 1
18520 EOF
18521
18522
18523 else
18524 echo "$ac_t""no" 1>&6
18525
18526 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
18527 Applications will only run on Windows NT/2000/XP!" 1>&2
18528 wxUSE_UNICODE_MSLU=no
18529
18530 fi
18531
18532 fi
18533 fi
18534
18535 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
18536 cat >> confdefs.h <<\EOF
18537 #define wxUSE_EXPERIMENTAL_PRINTF 1
18538 EOF
18539
18540 fi
18541
18542
18543
18544 IODBC_C_SRC=""
18545 if test "$wxUSE_ODBC" = "yes" ; then
18546 cat >> confdefs.h <<\EOF
18547 #define wxUSE_ODBC 1
18548 EOF
18549
18550 WXODBCFLAG="-D_IODBC_"
18551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
18552 fi
18553
18554
18555 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
18556 cat >> confdefs.h <<\EOF
18557 #define wxUSE_POSTSCRIPT 1
18558 EOF
18559
18560 fi
18561
18562 cat >> confdefs.h <<\EOF
18563 #define wxUSE_AFM_FOR_POSTSCRIPT 1
18564 EOF
18565
18566
18567 cat >> confdefs.h <<\EOF
18568 #define wxUSE_NORMALIZED_PS_FONTS 1
18569 EOF
18570
18571
18572
18573 if test "$wxUSE_CONSTRAINTS" = "yes"; then
18574 cat >> confdefs.h <<\EOF
18575 #define wxUSE_CONSTRAINTS 1
18576 EOF
18577
18578 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
18579 fi
18580
18581 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18582 if test "$wxUSE_UNIVERSAL" = "yes"; then
18583 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
18584 wxUSE_MDI_ARCHITECTURE=no
18585 fi
18586
18587 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18588 cat >> confdefs.h <<\EOF
18589 #define wxUSE_MDI_ARCHITECTURE 1
18590 EOF
18591
18592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
18593 fi
18594 fi
18595
18596 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
18597 cat >> confdefs.h <<\EOF
18598 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
18599 EOF
18600
18601 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
18602 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18603 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
18604 fi
18605 fi
18606
18607 if test "$wxUSE_HELP" = "yes"; then
18608 cat >> confdefs.h <<\EOF
18609 #define wxUSE_HELP 1
18610 EOF
18611
18612 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
18613
18614 if test "$wxUSE_MSW" = 1; then
18615 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
18616 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
18617 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
18618 echo "configure:18619: checking for htmlhelp.h" >&5
18619 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18620 echo $ac_n "(cached) $ac_c" 1>&6
18621 else
18622 cat > conftest.$ac_ext <<EOF
18623 #line 18624 "configure"
18624 #include "confdefs.h"
18625 #include <htmlhelp.h>
18626 EOF
18627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18628 { (eval echo configure:18629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18630 if test -z "$ac_err"; then
18631 rm -rf conftest*
18632 eval "ac_cv_header_$ac_safe=yes"
18633 else
18634 echo "$ac_err" >&5
18635 echo "configure: failed program was:" >&5
18636 cat conftest.$ac_ext >&5
18637 rm -rf conftest*
18638 eval "ac_cv_header_$ac_safe=no"
18639 fi
18640 rm -f conftest*
18641 fi
18642 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18643 echo "$ac_t""yes" 1>&6
18644
18645 cat >> confdefs.h <<\EOF
18646 #define wxUSE_MS_HTML_HELP 1
18647 EOF
18648
18649
18650 else
18651 echo "$ac_t""no" 1>&6
18652
18653 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
18654 wxUSE_MS_HTML_HELP=no
18655
18656 fi
18657
18658 fi
18659 fi
18660
18661 if test "$wxUSE_WXHTML_HELP" = "yes"; then
18662 if test "$wxUSE_HTML" = "yes"; then
18663 cat >> confdefs.h <<\EOF
18664 #define wxUSE_WXHTML_HELP 1
18665 EOF
18666
18667 else
18668 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
18669 wxUSE_WXHTML_HELP=no
18670 fi
18671 fi
18672 fi
18673
18674 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
18675 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18676 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
18677 else
18678 cat >> confdefs.h <<\EOF
18679 #define wxUSE_PRINTING_ARCHITECTURE 1
18680 EOF
18681
18682 fi
18683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
18684 fi
18685
18686 if test "$wxUSE_PROLOGIO" = "yes" ; then
18687 cat >> confdefs.h <<\EOF
18688 #define wxUSE_PROLOGIO 1
18689 EOF
18690
18691 fi
18692
18693 if test "$wxUSE_RESOURCES" = "yes" ; then
18694 cat >> confdefs.h <<\EOF
18695 #define wxUSE_RESOURCES 1
18696 EOF
18697
18698 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
18699 fi
18700
18701 if test "$wxUSE_X_RESOURCES" = "yes"; then
18702 cat >> confdefs.h <<\EOF
18703 #define wxUSE_X_RESOURCES 1
18704 EOF
18705
18706 fi
18707
18708
18709 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
18710 -o "$wxUSE_CLIPBOARD" = "yes" \
18711 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
18712 for ac_hdr in ole2.h
18713 do
18714 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18715 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18716 echo "configure:18717: checking for $ac_hdr" >&5
18717 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18718 echo $ac_n "(cached) $ac_c" 1>&6
18719 else
18720 cat > conftest.$ac_ext <<EOF
18721 #line 18722 "configure"
18722 #include "confdefs.h"
18723 #include <$ac_hdr>
18724 EOF
18725 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18726 { (eval echo configure:18727: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18727 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18728 if test -z "$ac_err"; then
18729 rm -rf conftest*
18730 eval "ac_cv_header_$ac_safe=yes"
18731 else
18732 echo "$ac_err" >&5
18733 echo "configure: failed program was:" >&5
18734 cat conftest.$ac_ext >&5
18735 rm -rf conftest*
18736 eval "ac_cv_header_$ac_safe=no"
18737 fi
18738 rm -f conftest*
18739 fi
18740 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18741 echo "$ac_t""yes" 1>&6
18742 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18743 cat >> confdefs.h <<EOF
18744 #define $ac_tr_hdr 1
18745 EOF
18746
18747 else
18748 echo "$ac_t""no" 1>&6
18749 fi
18750 done
18751
18752
18753 if test "$ac_cv_header_ole2_h" = "yes" ; then
18754 if test "$GCC" = yes ; then
18755 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
18756 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
18757 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
18758 cat >> confdefs.h <<\EOF
18759 #define wxUSE_OLE 1
18760 EOF
18761
18762
18763 fi
18764
18765 cat >> confdefs.h <<\EOF
18766 #define wxUSE_DATAOBJ 1
18767 EOF
18768
18769 else
18770 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
18771
18772 wxUSE_CLIPBOARD=no
18773 wxUSE_DRAG_AND_DROP=no
18774 wxUSE_DATAOBJ=no
18775 fi
18776
18777 if test "$wxUSE_METAFILE" = "yes"; then
18778 cat >> confdefs.h <<\EOF
18779 #define wxUSE_METAFILE 1
18780 EOF
18781
18782
18783 cat >> confdefs.h <<\EOF
18784 #define wxUSE_ENH_METAFILE 1
18785 EOF
18786
18787 fi
18788 fi
18789
18790 if test "$wxUSE_IPC" = "yes"; then
18791 if test "$wxUSE_SOCKETS" != "yes"; then
18792 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
18793 fi
18794
18795 cat >> confdefs.h <<\EOF
18796 #define wxUSE_IPC 1
18797 EOF
18798
18799 fi
18800
18801 if test "$wxUSE_CLIPBOARD" = "yes"; then
18802 cat >> confdefs.h <<\EOF
18803 #define wxUSE_CLIPBOARD 1
18804 EOF
18805
18806
18807 cat >> confdefs.h <<\EOF
18808 #define wxUSE_DATAOBJ 1
18809 EOF
18810
18811 fi
18812
18813 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
18814 if test "$wxUSE_GTK" = 1; then
18815 if test "$WXGTK12" != 1; then
18816 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
18817 wxUSE_DRAG_AND_DROP=no
18818 fi
18819 fi
18820
18821 if test "$wxUSE_MOTIF" = 1; then
18822 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
18823 wxUSE_DRAG_AND_DROP=no
18824 fi
18825
18826 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
18827 cat >> confdefs.h <<\EOF
18828 #define wxUSE_DRAG_AND_DROP 1
18829 EOF
18830
18831 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
18832 fi
18833
18834 fi
18835
18836 if test "$wxUSE_SPLINES" = "yes" ; then
18837 cat >> confdefs.h <<\EOF
18838 #define wxUSE_SPLINES 1
18839 EOF
18840
18841 fi
18842
18843
18844 USES_CONTROLS=0
18845 if test "$wxUSE_CONTROLS" = "yes"; then
18846 USES_CONTROLS=1
18847 fi
18848
18849 if test "$wxUSE_ACCEL" = "yes"; then
18850 cat >> confdefs.h <<\EOF
18851 #define wxUSE_ACCEL 1
18852 EOF
18853
18854 USES_CONTROLS=1
18855 fi
18856
18857 if test "$wxUSE_BUTTON" = "yes"; then
18858 cat >> confdefs.h <<\EOF
18859 #define wxUSE_BUTTON 1
18860 EOF
18861
18862 USES_CONTROLS=1
18863 fi
18864
18865 if test "$wxUSE_BMPBUTTON" = "yes"; then
18866 cat >> confdefs.h <<\EOF
18867 #define wxUSE_BMPBUTTON 1
18868 EOF
18869
18870 USES_CONTROLS=1
18871 fi
18872
18873 if test "$wxUSE_CALCTRL" = "yes"; then
18874 cat >> confdefs.h <<\EOF
18875 #define wxUSE_CALENDARCTRL 1
18876 EOF
18877
18878 USES_CONTROLS=1
18879 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
18880 fi
18881
18882 if test "$wxUSE_CARET" = "yes"; then
18883 cat >> confdefs.h <<\EOF
18884 #define wxUSE_CARET 1
18885 EOF
18886
18887 USES_CONTROLS=1
18888 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
18889 fi
18890
18891 if test "$wxUSE_COMBOBOX" = "yes"; then
18892 cat >> confdefs.h <<\EOF
18893 #define wxUSE_COMBOBOX 1
18894 EOF
18895
18896 USES_CONTROLS=1
18897 fi
18898
18899 if test "$wxUSE_CHOICE" = "yes"; then
18900 cat >> confdefs.h <<\EOF
18901 #define wxUSE_CHOICE 1
18902 EOF
18903
18904 USES_CONTROLS=1
18905 fi
18906
18907 if test "$wxUSE_CHECKBOX" = "yes"; then
18908 cat >> confdefs.h <<\EOF
18909 #define wxUSE_CHECKBOX 1
18910 EOF
18911
18912 USES_CONTROLS=1
18913 fi
18914
18915 if test "$wxUSE_CHECKLST" = "yes"; then
18916 cat >> confdefs.h <<\EOF
18917 #define wxUSE_CHECKLISTBOX 1
18918 EOF
18919
18920 USES_CONTROLS=1
18921 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
18922 fi
18923
18924 if test "$wxUSE_GAUGE" = "yes"; then
18925 cat >> confdefs.h <<\EOF
18926 #define wxUSE_GAUGE 1
18927 EOF
18928
18929 USES_CONTROLS=1
18930 fi
18931
18932 if test "$wxUSE_NEW_GRID" = "yes"; then
18933 wxUSE_GRID="yes"
18934 cat >> confdefs.h <<\EOF
18935 #define wxUSE_NEW_GRID 1
18936 EOF
18937
18938 USES_CONTROLS=1
18939 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
18940 fi
18941
18942 if test "$wxUSE_GRID" = "yes"; then
18943 cat >> confdefs.h <<\EOF
18944 #define wxUSE_GRID 1
18945 EOF
18946
18947 USES_CONTROLS=1
18948 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
18949 fi
18950
18951 if test "$wxUSE_IMAGLIST" = "yes"; then
18952 cat >> confdefs.h <<\EOF
18953 #define wxUSE_IMAGLIST 1
18954 EOF
18955
18956 fi
18957
18958 if test "$wxUSE_LISTBOX" = "yes"; then
18959 cat >> confdefs.h <<\EOF
18960 #define wxUSE_LISTBOX 1
18961 EOF
18962
18963 USES_CONTROLS=1
18964 fi
18965
18966 if test "$wxUSE_LISTCTRL" = "yes"; then
18967 if test "$wxUSE_IMAGLIST" = "yes"; then
18968 cat >> confdefs.h <<\EOF
18969 #define wxUSE_LISTCTRL 1
18970 EOF
18971
18972 USES_CONTROLS=1
18973 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
18974 else
18975 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
18976 fi
18977 fi
18978
18979 if test "$wxUSE_NOTEBOOK" = "yes"; then
18980 cat >> confdefs.h <<\EOF
18981 #define wxUSE_NOTEBOOK 1
18982 EOF
18983
18984 USES_CONTROLS=1
18985 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
18986 fi
18987
18988 if test "$wxUSE_PROPSHEET" = "yes"; then
18989 cat >> confdefs.h <<\EOF
18990 #define wxUSE_PROPSHEET 1
18991 EOF
18992
18993 USES_CONTROLS=1
18994 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
18995 fi
18996
18997 if test "$wxUSE_RADIOBOX" = "yes"; then
18998 cat >> confdefs.h <<\EOF
18999 #define wxUSE_RADIOBOX 1
19000 EOF
19001
19002 USES_CONTROLS=1
19003 fi
19004
19005 if test "$wxUSE_RADIOBTN" = "yes"; then
19006 cat >> confdefs.h <<\EOF
19007 #define wxUSE_RADIOBTN 1
19008 EOF
19009
19010 USES_CONTROLS=1
19011 fi
19012
19013 if test "$wxUSE_SASH" = "yes"; then
19014 cat >> confdefs.h <<\EOF
19015 #define wxUSE_SASH 1
19016 EOF
19017
19018 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
19019 fi
19020
19021 if test "$wxUSE_SCROLLBAR" = "yes"; then
19022 cat >> confdefs.h <<\EOF
19023 #define wxUSE_SCROLLBAR 1
19024 EOF
19025
19026 USES_CONTROLS=1
19027 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
19028 fi
19029
19030 if test "$wxUSE_SLIDER" = "yes"; then
19031 cat >> confdefs.h <<\EOF
19032 #define wxUSE_SLIDER 1
19033 EOF
19034
19035 USES_CONTROLS=1
19036 fi
19037
19038 if test "$wxUSE_SPINBTN" = "yes"; then
19039 cat >> confdefs.h <<\EOF
19040 #define wxUSE_SPINBTN 1
19041 EOF
19042
19043 USES_CONTROLS=1
19044 fi
19045
19046 if test "$wxUSE_SPINCTRL" = "yes"; then
19047 cat >> confdefs.h <<\EOF
19048 #define wxUSE_SPINCTRL 1
19049 EOF
19050
19051 USES_CONTROLS=1
19052 fi
19053
19054 if test "$wxUSE_SPLITTER" = "yes"; then
19055 cat >> confdefs.h <<\EOF
19056 #define wxUSE_SPLITTER 1
19057 EOF
19058
19059 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
19060 fi
19061
19062 if test "$wxUSE_STATBMP" = "yes"; then
19063 cat >> confdefs.h <<\EOF
19064 #define wxUSE_STATBMP 1
19065 EOF
19066
19067 USES_CONTROLS=1
19068 fi
19069
19070 if test "$wxUSE_STATBOX" = "yes"; then
19071 cat >> confdefs.h <<\EOF
19072 #define wxUSE_STATBOX 1
19073 EOF
19074
19075 USES_CONTROLS=1
19076 fi
19077
19078 if test "$wxUSE_STATTEXT" = "yes"; then
19079 cat >> confdefs.h <<\EOF
19080 #define wxUSE_STATTEXT 1
19081 EOF
19082
19083 USES_CONTROLS=1
19084 fi
19085
19086 if test "$wxUSE_STATLINE" = "yes"; then
19087 if test "$wxUSE_WINE" = 1 ; then
19088 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
19089 else
19090 cat >> confdefs.h <<\EOF
19091 #define wxUSE_STATLINE 1
19092 EOF
19093
19094 USES_CONTROLS=1
19095 fi
19096 fi
19097
19098 if test "$wxUSE_STATUSBAR" = "yes"; then
19099 cat >> confdefs.h <<\EOF
19100 #define wxUSE_STATUSBAR 1
19101 EOF
19102
19103 USES_CONTROLS=1
19104
19105 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
19106 fi
19107
19108 if test "$wxUSE_TABDIALOG" = "yes"; then
19109 cat >> confdefs.h <<\EOF
19110 #define wxUSE_TAB_DIALOG 1
19111 EOF
19112
19113 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
19114 fi
19115
19116 if test "$wxUSE_TEXTCTRL" = "yes"; then
19117 cat >> confdefs.h <<\EOF
19118 #define wxUSE_TEXTCTRL 1
19119 EOF
19120
19121 USES_CONTROLS=1
19122 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
19123 fi
19124
19125 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19126 if test "$wxUSE_MAC" = 1; then
19127 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
19128 wxUSE_TOGGLEBTN=no
19129 fi
19130 if test "$wxUSE_UNIVERSAL" = "yes"; then
19131 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
19132 wxUSE_TOGGLEBTN=no
19133 fi
19134
19135 if test "$wxUSE_TOGGLEBTN" = "yes"; then
19136 cat >> confdefs.h <<\EOF
19137 #define wxUSE_TOGGLEBTN 1
19138 EOF
19139
19140 USES_CONTROLS=1
19141 fi
19142 fi
19143
19144 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
19145 cat >> confdefs.h <<\EOF
19146 #define wxUSE_TOOLBAR_SIMPLE 1
19147 EOF
19148
19149 wxUSE_TOOLBAR="yes"
19150 USES_CONTROLS=1
19151 fi
19152
19153 if test "$wxUSE_TOOLBAR" = "yes"; then
19154 cat >> confdefs.h <<\EOF
19155 #define wxUSE_TOOLBAR 1
19156 EOF
19157
19158 USES_CONTROLS=1
19159
19160 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
19161 wxUSE_TOOLBAR_NATIVE="yes"
19162 fi
19163
19164 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
19165 cat >> confdefs.h <<\EOF
19166 #define wxUSE_TOOLBAR_NATIVE 1
19167 EOF
19168
19169 USES_CONTROLS=1
19170 fi
19171
19172 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
19173 fi
19174
19175 if test "$wxUSE_TOOLTIPS" = "yes"; then
19176 if test "$wxUSE_MOTIF" = 1; then
19177 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
19178 else
19179 if test "$wxUSE_WINE" = 1; then
19180 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
19181 else
19182 if test "$wxUSE_UNIVERSAL" = "yes"; then
19183 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
19184 else
19185 cat >> confdefs.h <<\EOF
19186 #define wxUSE_TOOLTIPS 1
19187 EOF
19188
19189 fi
19190 fi
19191 fi
19192 fi
19193
19194 if test "$wxUSE_TREECTRL" = "yes"; then
19195 if test "$wxUSE_IMAGLIST" = "yes"; then
19196 cat >> confdefs.h <<\EOF
19197 #define wxUSE_TREECTRL 1
19198 EOF
19199
19200 USES_CONTROLS=1
19201 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
19202 else
19203 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
19204 fi
19205 fi
19206
19207 if test "$wxUSE_POPUPWIN" = "yes"; then
19208 if test "$wxUSE_MAC" = 1; then
19209 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
19210 else
19211 if test "$wxUSE_MOTIF" = 1; then
19212 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
19213 else
19214 cat >> confdefs.h <<\EOF
19215 #define wxUSE_POPUPWIN 1
19216 EOF
19217
19218
19219 USES_CONTROLS=1
19220 fi
19221 fi
19222 fi
19223
19224 if test "$wxUSE_TIPWINDOW" = "yes"; then
19225 cat >> confdefs.h <<\EOF
19226 #define wxUSE_TIPWINDOW 1
19227 EOF
19228
19229 fi
19230
19231 if test "$USES_CONTROLS" = 1; then
19232 cat >> confdefs.h <<\EOF
19233 #define wxUSE_CONTROLS 1
19234 EOF
19235
19236 fi
19237
19238
19239 if test "$wxUSE_TREELAYOUT" = "yes"; then
19240 cat >> confdefs.h <<\EOF
19241 #define wxUSE_TREELAYOUT 1
19242 EOF
19243
19244 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
19245 fi
19246
19247 if test "$wxUSE_DRAGIMAGE" = "yes"; then
19248 cat >> confdefs.h <<\EOF
19249 #define wxUSE_DRAGIMAGE 1
19250 EOF
19251
19252 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
19253 fi
19254
19255 if test "$wxUSE_MENUS" = "yes"; then
19256 cat >> confdefs.h <<\EOF
19257 #define wxUSE_MENUS 1
19258 EOF
19259
19260 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
19261 fi
19262
19263 if test "$wxUSE_METAFILE" = "yes"; then
19264 cat >> confdefs.h <<\EOF
19265 #define wxUSE_METAFILE 1
19266 EOF
19267
19268 fi
19269
19270 if test "$wxUSE_MIMETYPE" = "yes"; then
19271 cat >> confdefs.h <<\EOF
19272 #define wxUSE_MIMETYPE 1
19273 EOF
19274
19275 fi
19276
19277 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
19278 cat >> confdefs.h <<\EOF
19279 #define wxUSE_SYSTEM_OPTIONS 1
19280 EOF
19281
19282 fi
19283
19284 if test "$wxUSE_PROTOCOL" = "yes"; then
19285 if test "$wxUSE_SOCKETS" != "yes"; then
19286 echo "configure: warning: Protocol classes require sockets... disabled" 1>&2
19287 wxUSE_PROTOCOL=no
19288 fi
19289
19290 if test "$wxUSE_PROTOCOL" = "yes"; then
19291 cat >> confdefs.h <<\EOF
19292 #define wxUSE_PROTOCOL 1
19293 EOF
19294
19295
19296 if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
19297 cat >> confdefs.h <<\EOF
19298 #define wxUSE_PROTOCOL_HTTP 1
19299 EOF
19300
19301 fi
19302 if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
19303 cat >> confdefs.h <<\EOF
19304 #define wxUSE_PROTOCOL_FTP 1
19305 EOF
19306
19307 fi
19308 if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
19309 cat >> confdefs.h <<\EOF
19310 #define wxUSE_PROTOCOL_FILE 1
19311 EOF
19312
19313 fi
19314 fi
19315 fi
19316
19317 if test "$wxUSE_URL" = "yes"; then
19318 if test "$wxUSE_PROTOCOL" != "yes"; then
19319 echo "configure: warning: wxURL class requires wxProtocol... disabled" 1>&2
19320 wxUSE_URL=no
19321 fi
19322 if test "$wxUSE_URL" = "yes"; then
19323 cat >> confdefs.h <<\EOF
19324 #define wxUSE_URL 1
19325 EOF
19326
19327 fi
19328 fi
19329
19330 if test "$wxUSE_MINIFRAME" = "yes"; then
19331 cat >> confdefs.h <<\EOF
19332 #define wxUSE_MINIFRAME 1
19333 EOF
19334
19335 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
19336 fi
19337
19338 if test "$wxUSE_HTML" = "yes"; then
19339 cat >> confdefs.h <<\EOF
19340 #define wxUSE_HTML 1
19341 EOF
19342
19343 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
19344 fi
19345
19346 if test "$wxUSE_VALIDATORS" = "yes"; then
19347 cat >> confdefs.h <<\EOF
19348 #define wxUSE_VALIDATORS 1
19349 EOF
19350
19351 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
19352 fi
19353
19354 if test "$wxUSE_PALETTE" = "yes" ; then
19355 cat >> confdefs.h <<\EOF
19356 #define wxUSE_PALETTE 1
19357 EOF
19358
19359 fi
19360
19361 if test "$wxUSE_IMAGE" = "yes" ; then
19362 cat >> confdefs.h <<\EOF
19363 #define wxUSE_IMAGE 1
19364 EOF
19365
19366 fi
19367
19368 if test "$wxUSE_GIF" = "yes" ; then
19369 cat >> confdefs.h <<\EOF
19370 #define wxUSE_GIF 1
19371 EOF
19372
19373 fi
19374
19375 if test "$wxUSE_PCX" = "yes" ; then
19376 cat >> confdefs.h <<\EOF
19377 #define wxUSE_PCX 1
19378 EOF
19379
19380 fi
19381
19382 if test "$wxUSE_IFF" = "yes" ; then
19383 cat >> confdefs.h <<\EOF
19384 #define wxUSE_IFF 1
19385 EOF
19386
19387 fi
19388
19389 if test "$wxUSE_PNM" = "yes" ; then
19390 cat >> confdefs.h <<\EOF
19391 #define wxUSE_PNM 1
19392 EOF
19393
19394 fi
19395
19396 if test "$wxUSE_XPM" = "yes" ; then
19397 cat >> confdefs.h <<\EOF
19398 #define wxUSE_XPM 1
19399 EOF
19400
19401 fi
19402
19403 if test "$wxUSE_ICO_CUR" = "yes" ; then
19404 cat >> confdefs.h <<\EOF
19405 #define wxUSE_ICO_CUR 1
19406 EOF
19407
19408 fi
19409
19410 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
19411 LIBS=" -lunicows $LIBS"
19412 fi
19413
19414
19415 if test "$wxUSE_CHOICEDLG" = "yes"; then
19416 cat >> confdefs.h <<\EOF
19417 #define wxUSE_CHOICEDLG 1
19418 EOF
19419
19420 fi
19421
19422 if test "$wxUSE_COLOURDLG" = "yes"; then
19423 cat >> confdefs.h <<\EOF
19424 #define wxUSE_COLOURDLG 1
19425 EOF
19426
19427 fi
19428
19429 if test "$wxUSE_FILEDLG" = "yes"; then
19430 cat >> confdefs.h <<\EOF
19431 #define wxUSE_FILEDLG 1
19432 EOF
19433
19434 fi
19435
19436 if test "$wxUSE_FINDREPLDLG" = "yes"; then
19437 cat >> confdefs.h <<\EOF
19438 #define wxUSE_FINDREPLDLG 1
19439 EOF
19440
19441 fi
19442
19443 if test "$wxUSE_FONTDLG" = "yes"; then
19444 cat >> confdefs.h <<\EOF
19445 #define wxUSE_FONTDLG 1
19446 EOF
19447
19448 fi
19449
19450 if test "$wxUSE_DIRDLG" = "yes"; then
19451 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19452 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
19453 else
19454 if test "$wxUSE_TREECTRL" != "yes"; then
19455 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
19456 else
19457 cat >> confdefs.h <<\EOF
19458 #define wxUSE_DIRDLG 1
19459 EOF
19460
19461 fi
19462 fi
19463 fi
19464
19465 if test "$wxUSE_MSGDLG" = "yes"; then
19466 cat >> confdefs.h <<\EOF
19467 #define wxUSE_MSGDLG 1
19468 EOF
19469
19470 fi
19471
19472 if test "$wxUSE_NUMBERDLG" = "yes"; then
19473 cat >> confdefs.h <<\EOF
19474 #define wxUSE_NUMBERDLG 1
19475 EOF
19476
19477 fi
19478
19479 if test "$wxUSE_PROGRESSDLG" = "yes"; then
19480 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19481 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
19482 else
19483 cat >> confdefs.h <<\EOF
19484 #define wxUSE_PROGRESSDLG 1
19485 EOF
19486
19487 fi
19488 fi
19489
19490 if test "$wxUSE_SPLASH" = "yes"; then
19491 cat >> confdefs.h <<\EOF
19492 #define wxUSE_SPLASH 1
19493 EOF
19494
19495 fi
19496
19497 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
19498 if test "$wxUSE_CONSTRAINTS" != "yes"; then
19499 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
19500 else
19501 cat >> confdefs.h <<\EOF
19502 #define wxUSE_STARTUP_TIPS 1
19503 EOF
19504
19505 fi
19506 fi
19507
19508 if test "$wxUSE_TEXTDLG" = "yes"; then
19509 cat >> confdefs.h <<\EOF
19510 #define wxUSE_TEXTDLG 1
19511 EOF
19512
19513 fi
19514
19515 if test "$wxUSE_WIZARDDLG" = "yes"; then
19516 cat >> confdefs.h <<\EOF
19517 #define wxUSE_WIZARDDLG 1
19518 EOF
19519
19520 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
19521 fi
19522
19523
19524 if test "$cross_compiling" = "yes"; then
19525 OSINFO="\"$host\""
19526 else
19527 OSINFO=`uname -s -r -m`
19528 OSINFO="\"$OSINFO\""
19529 fi
19530
19531 cat >> confdefs.h <<EOF
19532 #define WXWIN_OS_DESCRIPTION $OSINFO
19533 EOF
19534
19535
19536
19537 if test "x$prefix" != "xNONE"; then
19538 wxPREFIX=$prefix
19539 else
19540 wxPREFIX=$ac_default_prefix
19541 fi
19542
19543 cat >> confdefs.h <<EOF
19544 #define wxINSTALL_PREFIX "$wxPREFIX"
19545 EOF
19546
19547
19548
19549
19550
19551 if test "$wxUSE_MAC" = 1 ; then
19552 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
19553 fi
19554
19555
19556 LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
19557
19558 if test "$wxUSE_GUI" = "yes"; then
19559
19560 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
19561
19562
19563 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
19564 drawing dynamic erase event exec font image \
19565 minimal richedit rotate widgets"
19566
19567 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
19568 else
19569 SAMPLES_SUBDIRS="console"
19570 fi
19571
19572
19573 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
19574 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
19575 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
19576
19577 if test "$wxUSE_GTK" = 1; then
19578 WXCONFIG_INCLUDE=
19579 else
19580 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
19581 fi
19582
19583 if test "$GXX" = yes ; then
19584 CXXWARNINGS="-Wall"
19585
19586 if test "$wxUSE_NO_DEPS" = "no" ; then
19587 CFLAGS="-MMD $CFLAGS"
19588 CXXFLAGS="-MMD $CXXFLAGS"
19589 fi
19590 fi
19591
19592 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
19593
19594 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
19595 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
19596
19597 LDFLAGS="$LDFLAGS$PROFILE"
19598
19599 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
19600
19601
19602
19603
19604
19605
19606
19607
19608
19609
19610
19611
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624
19625
19626
19627
19628
19629
19630
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646
19647
19648
19649
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665
19666
19667
19668
19669
19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
19686 echo "configure:19687: checking whether ${MAKE-make} sets \${MAKE}" >&5
19687 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
19688 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
19689 echo $ac_n "(cached) $ac_c" 1>&6
19690 else
19691 cat > conftestmake <<\EOF
19692 all:
19693 @echo 'ac_maketemp="${MAKE}"'
19694 EOF
19695 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19696 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
19697 if test -n "$ac_maketemp"; then
19698 eval ac_cv_prog_make_${ac_make}_set=yes
19699 else
19700 eval ac_cv_prog_make_${ac_make}_set=no
19701 fi
19702 rm -f conftestmake
19703 fi
19704 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19705 echo "$ac_t""yes" 1>&6
19706 SET_MAKE=
19707 else
19708 echo "$ac_t""no" 1>&6
19709 SET_MAKE="MAKE=${MAKE-make}"
19710 fi
19711
19712
19713 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
19714 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
19715 fi
19716
19717
19718
19719 if test "$wxUSE_GUI" = "yes"; then
19720 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
19721 wx_cv_path_ifs=$PATH_IFS
19722 wx_cv_program_ext=$PROGRAM_EXT
19723 wx_cv_target_library=$WX_TARGET_LIBRARY
19724 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
19725 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
19726 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
19727 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
19728 subdirs="demos samples utils contrib"
19729
19730 fi
19731
19732 trap '' 1 2 15
19733 cat > confcache <<\EOF
19734 # This file is a shell script that caches the results of configure
19735 # tests run on this system so they can be shared between configure
19736 # scripts and configure runs. It is not useful on other systems.
19737 # If it contains results you don't want to keep, you may remove or edit it.
19738 #
19739 # By default, configure uses ./config.cache as the cache file,
19740 # creating it if it does not exist already. You can give configure
19741 # the --cache-file=FILE option to use a different cache file; that is
19742 # what configure does when it calls configure scripts in
19743 # subdirectories, so they share the cache.
19744 # Giving --cache-file=/dev/null disables caching, for debugging configure.
19745 # config.status only pays attention to the cache file if you give it the
19746 # --recheck option to rerun configure.
19747 #
19748 EOF
19749 # The following way of writing the cache mishandles newlines in values,
19750 # but we know of no workaround that is simple, portable, and efficient.
19751 # So, don't put newlines in cache variables' values.
19752 # Ultrix sh set writes to stderr and can't be redirected directly,
19753 # and sets the high bit in the cache file unless we assign to the vars.
19754 (set) 2>&1 |
19755 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19756 *ac_space=\ *)
19757 # `set' does not quote correctly, so add quotes (double-quote substitution
19758 # turns \\\\ into \\, and sed turns \\ into \).
19759 sed -n \
19760 -e "s/'/'\\\\''/g" \
19761 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19762 ;;
19763 *)
19764 # `set' quotes correctly as required by POSIX, so do not add quotes.
19765 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19766 ;;
19767 esac >> confcache
19768 if cmp -s $cache_file confcache; then
19769 :
19770 else
19771 if test -w $cache_file; then
19772 echo "updating cache $cache_file"
19773 cat confcache > $cache_file
19774 else
19775 echo "not updating unwritable cache $cache_file"
19776 fi
19777 fi
19778 rm -f confcache
19779
19780 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19781
19782 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19783 # Let make expand exec_prefix.
19784 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19785
19786 # Any assignment to VPATH causes Sun make to only execute
19787 # the first set of double-colon rules, so remove it if not needed.
19788 # If there is a colon in the path, we need to keep it.
19789 if test "x$srcdir" = x.; then
19790 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
19791 fi
19792
19793 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19794
19795 DEFS=-DHAVE_CONFIG_H
19796
19797 # Without the "./", some shells look in PATH for config.status.
19798 : ${CONFIG_STATUS=./config.status}
19799
19800 echo creating $CONFIG_STATUS
19801 rm -f $CONFIG_STATUS
19802 cat > $CONFIG_STATUS <<EOF
19803 #! /bin/sh
19804 # Generated automatically by configure.
19805 # Run this file to recreate the current configuration.
19806 # This directory was configured as follows,
19807 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19808 #
19809 # $0 $ac_configure_args
19810 #
19811 # Compiler output produced by configure, useful for debugging
19812 # configure, is in ./config.log if it exists.
19813
19814 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19815 for ac_option
19816 do
19817 case "\$ac_option" in
19818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19819 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19820 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19821 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19822 echo "$CONFIG_STATUS generated by autoconf version 2.13"
19823 exit 0 ;;
19824 -help | --help | --hel | --he | --h)
19825 echo "\$ac_cs_usage"; exit 0 ;;
19826 *) echo "\$ac_cs_usage"; exit 1 ;;
19827 esac
19828 done
19829
19830 ac_given_srcdir=$srcdir
19831 ac_given_INSTALL="$INSTALL"
19832
19833 trap 'rm -fr `echo "
19834 wx-config
19835 src/make.env
19836 src/makeprog.env
19837 src/makelib.env
19838 Makefile
19839 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
19840 EOF
19841 cat >> $CONFIG_STATUS <<EOF
19842
19843 # Protect against being on the right side of a sed subst in config.status.
19844 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19845 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19846 $ac_vpsub
19847 $extrasub
19848 s%@SHELL@%$SHELL%g
19849 s%@CFLAGS@%$CFLAGS%g
19850 s%@CPPFLAGS@%$CPPFLAGS%g
19851 s%@CXXFLAGS@%$CXXFLAGS%g
19852 s%@FFLAGS@%$FFLAGS%g
19853 s%@DEFS@%$DEFS%g
19854 s%@LDFLAGS@%$LDFLAGS%g
19855 s%@LIBS@%$LIBS%g
19856 s%@exec_prefix@%$exec_prefix%g
19857 s%@prefix@%$prefix%g
19858 s%@program_transform_name@%$program_transform_name%g
19859 s%@bindir@%$bindir%g
19860 s%@sbindir@%$sbindir%g
19861 s%@libexecdir@%$libexecdir%g
19862 s%@datadir@%$datadir%g
19863 s%@sysconfdir@%$sysconfdir%g
19864 s%@sharedstatedir@%$sharedstatedir%g
19865 s%@localstatedir@%$localstatedir%g
19866 s%@libdir@%$libdir%g
19867 s%@includedir@%$includedir%g
19868 s%@oldincludedir@%$oldincludedir%g
19869 s%@infodir@%$infodir%g
19870 s%@mandir@%$mandir%g
19871 s%@host@%$host%g
19872 s%@host_alias@%$host_alias%g
19873 s%@host_cpu@%$host_cpu%g
19874 s%@host_vendor@%$host_vendor%g
19875 s%@host_os@%$host_os%g
19876 s%@target@%$target%g
19877 s%@target_alias@%$target_alias%g
19878 s%@target_cpu@%$target_cpu%g
19879 s%@target_vendor@%$target_vendor%g
19880 s%@target_os@%$target_os%g
19881 s%@build@%$build%g
19882 s%@build_alias@%$build_alias%g
19883 s%@build_cpu@%$build_cpu%g
19884 s%@build_vendor@%$build_vendor%g
19885 s%@build_os@%$build_os%g
19886 s%@CC@%$CC%g
19887 s%@CPP@%$CPP%g
19888 s%@CXX@%$CXX%g
19889 s%@RANLIB@%$RANLIB%g
19890 s%@AR@%$AR%g
19891 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
19892 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
19893 s%@INSTALL_DATA@%$INSTALL_DATA%g
19894 s%@STRIP@%$STRIP%g
19895 s%@YACC@%$YACC%g
19896 s%@LEX@%$LEX%g
19897 s%@LEXLIB@%$LEXLIB%g
19898 s%@LN_S@%$LN_S%g
19899 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
19900 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
19901 s%@GTK_LIBS@%$GTK_LIBS%g
19902 s%@GTK_CONFIG@%$GTK_CONFIG%g
19903 s%@X_CFLAGS@%$X_CFLAGS%g
19904 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
19905 s%@X_LIBS@%$X_LIBS%g
19906 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
19907 s%@RESCOMP@%$RESCOMP%g
19908 s%@DEREZ@%$DEREZ%g
19909 s%@CXXCPP@%$CXXCPP%g
19910 s%@LEX_STEM@%$LEX_STEM%g
19911 s%@PATH_IFS@%$PATH_IFS%g
19912 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
19913 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
19914 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
19915 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
19916 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
19917 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
19918 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
19919 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
19920 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
19921 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
19922 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
19923 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
19924 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
19925 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
19926 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
19927 s%@WX_ALL@%$WX_ALL%g
19928 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
19929 s%@SHARED_LD@%$SHARED_LD%g
19930 s%@PIC_FLAG@%$PIC_FLAG%g
19931 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
19932 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
19933 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
19934 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
19935 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
19936 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
19937 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
19938 s%@USE_GUI@%$USE_GUI%g
19939 s%@AFMINSTALL@%$AFMINSTALL%g
19940 s%@TOOLKIT@%$TOOLKIT%g
19941 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
19942 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
19943 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
19944 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
19945 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
19946 s%@cross_compiling@%$cross_compiling%g
19947 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
19948 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
19949 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
19950 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
19951 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
19952 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
19953 s%@GUIDIST@%$GUIDIST%g
19954 s%@PORT_FILES@%$PORT_FILES%g
19955 s%@DISTDIR@%$DISTDIR%g
19956 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
19957 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
19958 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
19959 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
19960 s%@EXTRADEFS@%$EXTRADEFS%g
19961 s%@RESFLAGS@%$RESFLAGS%g
19962 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
19963 s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
19964 s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
19965 s%@LIBWXMACRES@%$LIBWXMACRES%g
19966 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
19967 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
19968 s%@DLLTOOL@%$DLLTOOL%g
19969 s%@AS@%$AS%g
19970 s%@NM@%$NM%g
19971 s%@LD@%$LD%g
19972 s%@MAKEINFO@%$MAKEINFO%g
19973 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
19974 s%@SET_MAKE@%$SET_MAKE%g
19975 s%@subdirs@%$subdirs%g
19976
19977 CEOF
19978 EOF
19979
19980 cat >> $CONFIG_STATUS <<\EOF
19981
19982 # Split the substitutions into bite-sized pieces for seds with
19983 # small command number limits, like on Digital OSF/1 and HP-UX.
19984 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19985 ac_file=1 # Number of current file.
19986 ac_beg=1 # First line for current file.
19987 ac_end=$ac_max_sed_cmds # Line after last line for current file.
19988 ac_more_lines=:
19989 ac_sed_cmds=""
19990 while $ac_more_lines; do
19991 if test $ac_beg -gt 1; then
19992 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19993 else
19994 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19995 fi
19996 if test ! -s conftest.s$ac_file; then
19997 ac_more_lines=false
19998 rm -f conftest.s$ac_file
19999 else
20000 if test -z "$ac_sed_cmds"; then
20001 ac_sed_cmds="sed -f conftest.s$ac_file"
20002 else
20003 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
20004 fi
20005 ac_file=`expr $ac_file + 1`
20006 ac_beg=$ac_end
20007 ac_end=`expr $ac_end + $ac_max_sed_cmds`
20008 fi
20009 done
20010 if test -z "$ac_sed_cmds"; then
20011 ac_sed_cmds=cat
20012 fi
20013 EOF
20014
20015 cat >> $CONFIG_STATUS <<EOF
20016
20017 CONFIG_FILES=\${CONFIG_FILES-"wx-config
20018 src/make.env
20019 src/makeprog.env
20020 src/makelib.env
20021 Makefile
20022 "}
20023 EOF
20024 cat >> $CONFIG_STATUS <<\EOF
20025 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
20026 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20027 case "$ac_file" in
20028 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20029 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20030 *) ac_file_in="${ac_file}.in" ;;
20031 esac
20032
20033 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
20034
20035 # Remove last slash and all that follows it. Not all systems have dirname.
20036 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20037 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20038 # The file is in a subdirectory.
20039 test ! -d "$ac_dir" && mkdir "$ac_dir"
20040 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
20041 # A "../" for each directory in $ac_dir_suffix.
20042 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
20043 else
20044 ac_dir_suffix= ac_dots=
20045 fi
20046
20047 case "$ac_given_srcdir" in
20048 .) srcdir=.
20049 if test -z "$ac_dots"; then top_srcdir=.
20050 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
20051 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
20052 *) # Relative path.
20053 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
20054 top_srcdir="$ac_dots$ac_given_srcdir" ;;
20055 esac
20056
20057 case "$ac_given_INSTALL" in
20058 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20059 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20060 esac
20061
20062 echo creating "$ac_file"
20063 rm -f "$ac_file"
20064 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
20065 case "$ac_file" in
20066 *Makefile*) ac_comsub="1i\\
20067 # $configure_input" ;;
20068 *) ac_comsub= ;;
20069 esac
20070
20071 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20072 sed -e "$ac_comsub
20073 s%@configure_input@%$configure_input%g
20074 s%@srcdir@%$srcdir%g
20075 s%@top_srcdir@%$top_srcdir%g
20076 s%@INSTALL@%$INSTALL%g
20077 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
20078 fi; done
20079 rm -f conftest.s*
20080
20081 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20082 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20083 #
20084 # ac_d sets the value in "#define NAME VALUE" lines.
20085 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20086 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
20087 ac_dC='\3'
20088 ac_dD='%g'
20089 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
20090 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20091 ac_uB='\([ ]\)%\1#\2define\3'
20092 ac_uC=' '
20093 ac_uD='\4%g'
20094 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20095 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20096 ac_eB='$%\1#\2define\3'
20097 ac_eC=' '
20098 ac_eD='%g'
20099
20100 if test "${CONFIG_HEADERS+set}" != set; then
20101 EOF
20102 cat >> $CONFIG_STATUS <<EOF
20103 CONFIG_HEADERS="setup.h:setup.h.in"
20104 EOF
20105 cat >> $CONFIG_STATUS <<\EOF
20106 fi
20107 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
20108 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20109 case "$ac_file" in
20110 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
20111 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
20112 *) ac_file_in="${ac_file}.in" ;;
20113 esac
20114
20115 echo creating $ac_file
20116
20117 rm -f conftest.frag conftest.in conftest.out
20118 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
20119 cat $ac_file_inputs > conftest.in
20120
20121 EOF
20122
20123 # Transform confdefs.h into a sed script conftest.vals that substitutes
20124 # the proper values into config.h.in to produce config.h. And first:
20125 # Protect against being on the right side of a sed subst in config.status.
20126 # Protect against being in an unquoted here document in config.status.
20127 rm -f conftest.vals
20128 cat > conftest.hdr <<\EOF
20129 s/[\\&%]/\\&/g
20130 s%[\\$`]%\\&%g
20131 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
20132 s%ac_d%ac_u%gp
20133 s%ac_u%ac_e%gp
20134 EOF
20135 sed -n -f conftest.hdr confdefs.h > conftest.vals
20136 rm -f conftest.hdr
20137
20138 # This sed command replaces #undef with comments. This is necessary, for
20139 # example, in the case of _POSIX_SOURCE, which is predefined and required
20140 # on some systems where configure will not decide to define it.
20141 cat >> conftest.vals <<\EOF
20142 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
20143 EOF
20144
20145 # Break up conftest.vals because some shells have a limit on
20146 # the size of here documents, and old seds have small limits too.
20147
20148 rm -f conftest.tail
20149 while :
20150 do
20151 ac_lines=`grep -c . conftest.vals`
20152 # grep -c gives empty output for an empty file on some AIX systems.
20153 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
20154 # Write a limited-size here document to conftest.frag.
20155 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
20156 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
20157 echo 'CEOF
20158 sed -f conftest.frag conftest.in > conftest.out
20159 rm -f conftest.in
20160 mv conftest.out conftest.in
20161 ' >> $CONFIG_STATUS
20162 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
20163 rm -f conftest.vals
20164 mv conftest.tail conftest.vals
20165 done
20166 rm -f conftest.vals
20167
20168 cat >> $CONFIG_STATUS <<\EOF
20169 rm -f conftest.frag conftest.h
20170 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
20171 cat conftest.in >> conftest.h
20172 rm -f conftest.in
20173 if cmp -s $ac_file conftest.h 2>/dev/null; then
20174 echo "$ac_file is unchanged"
20175 rm -f conftest.h
20176 else
20177 # Remove last slash and all that follows it. Not all systems have dirname.
20178 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
20179 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
20180 # The file is in a subdirectory.
20181 test ! -d "$ac_dir" && mkdir "$ac_dir"
20182 fi
20183 rm -f $ac_file
20184 mv conftest.h $ac_file
20185 fi
20186 fi; done
20187
20188 EOF
20189 cat >> $CONFIG_STATUS <<EOF
20190
20191 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
20192 LN_S="${LN_S}"
20193
20194
20195 EOF
20196 cat >> $CONFIG_STATUS <<\EOF
20197
20198 if test ! -h wx-config; then
20199 chmod +x wx-config
20200 mv wx-config wx${TOOLCHAIN_NAME}-config
20201 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
20202 fi
20203
20204 if test ! -d lib; then
20205 mkdir lib
20206 fi
20207 if test ! -d lib/wx; then
20208 mkdir lib/wx
20209 fi
20210 if test ! -d lib/wx/include; then
20211 mkdir lib/wx/include
20212 fi
20213 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
20214 mkdir lib/wx/include/${TOOLCHAIN_NAME}
20215 fi
20216 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
20217 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
20218 fi
20219 if test -f setup.h; then
20220 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
20221 fi
20222
20223 exit 0
20224 EOF
20225 chmod +x $CONFIG_STATUS
20226 rm -fr confdefs* $ac_clean_files
20227 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
20228
20229 if test "$no_recursion" != yes; then
20230
20231 # Remove --cache-file and --srcdir arguments so they do not pile up.
20232 ac_sub_configure_args=
20233 ac_prev=
20234 for ac_arg in $ac_configure_args; do
20235 if test -n "$ac_prev"; then
20236 ac_prev=
20237 continue
20238 fi
20239 case "$ac_arg" in
20240 -cache-file | --cache-file | --cache-fil | --cache-fi \
20241 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
20242 ac_prev=cache_file ;;
20243 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
20244 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
20245 ;;
20246 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
20247 ac_prev=srcdir ;;
20248 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
20249 ;;
20250 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
20251 esac
20252 done
20253
20254 for ac_config_dir in demos samples utils contrib; do
20255
20256 # Do not complain, so a configure script can configure whichever
20257 # parts of a large source tree are present.
20258 if test ! -d $srcdir/$ac_config_dir; then
20259 continue
20260 fi
20261
20262 echo configuring in $ac_config_dir
20263
20264 case "$srcdir" in
20265 .) ;;
20266 *)
20267 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
20268 else
20269 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
20270 fi
20271 ;;
20272 esac
20273
20274 ac_popdir=`pwd`
20275 cd $ac_config_dir
20276
20277 # A "../" for each directory in /$ac_config_dir.
20278 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
20279
20280 case "$srcdir" in
20281 .) # No --srcdir option. We are building in place.
20282 ac_sub_srcdir=$srcdir ;;
20283 /*) # Absolute path.
20284 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
20285 *) # Relative path.
20286 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
20287 esac
20288
20289 # Check for guested configure; otherwise get Cygnus style configure.
20290 if test -f $ac_sub_srcdir/configure; then
20291 ac_sub_configure=$ac_sub_srcdir/configure
20292 elif test -f $ac_sub_srcdir/configure.in; then
20293 ac_sub_configure=$ac_configure
20294 else
20295 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
20296 ac_sub_configure=
20297 fi
20298
20299 # The recursion is here.
20300 if test -n "$ac_sub_configure"; then
20301
20302 # Make the cache file name correct relative to the subdirectory.
20303 case "$cache_file" in
20304 /*) ac_sub_cache_file=$cache_file ;;
20305 *) # Relative path.
20306 ac_sub_cache_file="$ac_dots$cache_file" ;;
20307 esac
20308 case "$ac_given_INSTALL" in
20309 [/$]*) INSTALL="$ac_given_INSTALL" ;;
20310 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
20311 esac
20312
20313 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
20314 # The eval makes quoting arguments work.
20315 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
20316 then :
20317 else
20318 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
20319 fi
20320 fi
20321
20322 cd $ac_popdir
20323 done
20324 fi
20325
20326