]> git.saurik.com Git - wxWidgets.git/blob - configure
More build system polishing.. mostly. Some stuff ported over from
[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 # Configure paths for GTK+
40 # Owen Taylor 97-11-3
41
42
43
44
45
46
47 # Guess values for system-dependent variables and create Makefiles.
48 # Generated automatically using autoconf version 2.13
49 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50 #
51 # This configure script is free software; the Free Software Foundation
52 # gives unlimited permission to copy, distribute and modify it.
53
54 # Defaults:
55 ac_help=
56 ac_default_prefix=/usr/local
57 # Any additions from configure.in:
58 ac_help="$ac_help
59 --enable-gui use GUI classes"
60 ac_help="$ac_help
61 --enable-universal use wxWindows GUI controls instead of native ones"
62 ac_help="$ac_help
63 --with-gtk use GTK+"
64 ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66 ac_help="$ac_help
67 --with-mac use Mac OS X"
68 ac_help="$ac_help
69 --with-wine use WINE"
70 ac_help="$ac_help
71 --with-cygwin use Cygwin for MS-Windows"
72 ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74 ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
76 ac_help="$ac_help
77 --with-mgl use MGL"
78 ac_help="$ac_help
79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
80 ac_help="$ac_help
81 --with-libpng use libpng (PNG image format)"
82 ac_help="$ac_help
83 --with-libjpeg use libjpeg (JPEG file format)"
84 ac_help="$ac_help
85 --with-libtiff use libtiff (TIFF file format)"
86 ac_help="$ac_help
87 --with-freetype use freetype (font rasterizer)"
88 ac_help="$ac_help
89 --with-opengl use OpenGL (or Mesa)"
90 ac_help="$ac_help
91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
92 ac_help="$ac_help
93 --with-regex enable support for wxRegEx class"
94 ac_help="$ac_help
95 --with-zlib use zlib for LZW compression"
96 ac_help="$ac_help
97 --with-odbc use the IODBC and wxODBC classes"
98 ac_help="$ac_help
99 --enable-shared create shared library code"
100 ac_help="$ac_help
101 --enable-soname set the DT_SONAME field in ELF shared libraries"
102 ac_help="$ac_help
103 --enable-optimise create optimised code"
104 ac_help="$ac_help
105 --enable-debug same as debug_flag and debug_info"
106 ac_help="$ac_help
107 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
108 ac_help="$ac_help
109 --enable-debug_info create code with debugging information"
110 ac_help="$ac_help
111 --enable-debug_gdb create code with extra GDB debugging information"
112 ac_help="$ac_help
113 --enable-debug_cntxt use wxDebugContext"
114 ac_help="$ac_help
115 --enable-mem_tracing create code with memory tracing"
116 ac_help="$ac_help
117 --enable-profile create code with profiling information"
118 ac_help="$ac_help
119 --enable-no_rtti create code without RTTI information"
120 ac_help="$ac_help
121 --enable-no_exceptions create code without exceptions information"
122 ac_help="$ac_help
123 --enable-permissive compile code disregarding strict ANSI"
124 ac_help="$ac_help
125 --enable-no_deps create code without dependency information"
126 ac_help="$ac_help
127 --enable-compat20 enable wxWin 2.0 compatibility"
128 ac_help="$ac_help
129 --enable-compat22 enable wxWin 2.2 compatibility"
130 ac_help="$ac_help
131 --enable-intl use internationalization system"
132 ac_help="$ac_help
133 --enable-config use wxConfig (and derived) classes"
134 ac_help="$ac_help
135 --enable-sockets use socket/network classes"
136 ac_help="$ac_help
137 --enable-ipc use interprocess communication (wxSocket etc.)"
138 ac_help="$ac_help
139 --enable-cmdline use wxCmdLineParser class"
140 ac_help="$ac_help
141 --enable-datetime use wxDateTime class"
142 ac_help="$ac_help
143 --enable-timedate use obsolete wxDate/wxTime classes"
144 ac_help="$ac_help
145 --enable-stopwatch use wxStopWatch class"
146 ac_help="$ac_help
147 --enable-dialupman use dialup network classes"
148 ac_help="$ac_help
149 --enable-apple_ieee use the Apple IEEE codec"
150 ac_help="$ac_help
151 --enable-timer use wxTimer class"
152 ac_help="$ac_help
153 --enable-wave use wxWave class"
154 ac_help="$ac_help
155 --enable-fraction use wxFraction class"
156 ac_help="$ac_help
157 --enable-dynlib use wxLibrary class for DLL loading"
158 ac_help="$ac_help
159 --enable-longlong use wxLongLong class"
160 ac_help="$ac_help
161 --enable-geometry use geometry class"
162 ac_help="$ac_help
163 --enable-log use logging system"
164 ac_help="$ac_help
165 --enable-streams use wxStream etc classes"
166 ac_help="$ac_help
167 --enable-file use wxFile classes"
168 ac_help="$ac_help
169 --enable-ffile use wxFFile classes"
170 ac_help="$ac_help
171 --enable-textfile use wxTextFile classes"
172 ac_help="$ac_help
173 --enable-fontmap use font encodings conversion classes"
174 ac_help="$ac_help
175 --enable-unicode compile wxString with Unicode support"
176 ac_help="$ac_help
177 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
178 ac_help="$ac_help
179 --enable-wxprintfv use wxWindows implementation of vprintf()"
180 ac_help="$ac_help
181 --enable-std_iostreams use standard C++ stream classes"
182 ac_help="$ac_help
183 --enable-filesystem use virtual file systems classes"
184 ac_help="$ac_help
185 --enable-fs_inet use virtual HTTP/FTP filesystems"
186 ac_help="$ac_help
187 --enable-fs_zip use virtual ZIP filesystems"
188 ac_help="$ac_help
189 --enable-zipstream use wxZipInputStream"
190 ac_help="$ac_help
191 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
192 ac_help="$ac_help
193 --enable-snglinst use wxSingleInstanceChecker class"
194 ac_help="$ac_help
195 --enable-mimetypes use wxMimeTypesManager"
196 ac_help="$ac_help
197 --enable-sysoptions use wxSystemOptions"
198 ac_help="$ac_help
199 --enable-threads use threads"
200 ac_help="$ac_help
201 --enable-serial use class serialization"
202 ac_help="$ac_help
203 --enable-docview use document view architecture"
204 ac_help="$ac_help
205 --enable-help use help subsystem"
206 ac_help="$ac_help
207 --enable-mshtmlhelp use MS HTML Help (win32)"
208 ac_help="$ac_help
209 --enable-html use wxHTML sub-library"
210 ac_help="$ac_help
211 --enable-htmlhelp use wxHTML-based help"
212 ac_help="$ac_help
213 --enable-constraints use layout-constraints system"
214 ac_help="$ac_help
215 --enable-printarch use printing architecture"
216 ac_help="$ac_help
217 --enable-mdi use multiple document interface architecture"
218 ac_help="$ac_help
219 --enable-loggui use standard GUI logger"
220 ac_help="$ac_help
221 --enable-logwin use wxLogWindow"
222 ac_help="$ac_help
223 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
224 ac_help="$ac_help
225 --enable-prologio use Prolog IO library"
226 ac_help="$ac_help
227 --enable-resources use wxWindows resources"
228 ac_help="$ac_help
229 --enable-xresources use X resources for save (default for gtk+)"
230 ac_help="$ac_help
231 --enable-clipboard use wxClipboard classes"
232 ac_help="$ac_help
233 --enable-dnd use Drag'n'Drop classes"
234 ac_help="$ac_help
235 --enable-metafile use win32 metafiles"
236 ac_help="$ac_help
237 --enable-treelayout use wxTreeLayout classes"
238 ac_help="$ac_help
239 --enable-controls use all usual controls"
240 ac_help="$ac_help
241 --enable-accel use accelerators"
242 ac_help="$ac_help
243 --enable-button use wxButton class"
244 ac_help="$ac_help
245 --enable-bmpbutton use wxBitmapButton class"
246 ac_help="$ac_help
247 --enable-calendar use wxCalendarCtrl class"
248 ac_help="$ac_help
249 --enable-caret use wxCaret class"
250 ac_help="$ac_help
251 --enable-checkbox use wxCheckBox class"
252 ac_help="$ac_help
253 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
254 ac_help="$ac_help
255 --enable-choice use wxChoice class"
256 ac_help="$ac_help
257 --enable-combobox use wxComboBox classes"
258 ac_help="$ac_help
259 --enable-gauge use wxGauge class"
260 ac_help="$ac_help
261 --enable-grid use wxGrid class"
262 ac_help="$ac_help
263 --enable-newgrid use new wxGrid class"
264 ac_help="$ac_help
265 --enable-imaglist use wxImageList class"
266 ac_help="$ac_help
267 --enable-listbox use wxListBox class"
268 ac_help="$ac_help
269 --enable-listctrl use wxListCtrl class"
270 ac_help="$ac_help
271 --enable-notebook use wxNotebook class"
272 ac_help="$ac_help
273 --enable-propsheet use wxPropertySheet class"
274 ac_help="$ac_help
275 --enable-radiobox use wxRadioBox class"
276 ac_help="$ac_help
277 --enable-radiobtn use wxRadioButton class"
278 ac_help="$ac_help
279 --enable-sash use wxSashWindow class"
280 ac_help="$ac_help
281 --enable-scrollbar use wxScrollBar class and scrollable windows"
282 ac_help="$ac_help
283 --enable-slider use wxSlider class"
284 ac_help="$ac_help
285 --enable-spinbtn use wxSpinButton class"
286 ac_help="$ac_help
287 --enable-spinctrl use wxSpinCtrl class"
288 ac_help="$ac_help
289 --enable-splitter use wxSplitterWindow class"
290 ac_help="$ac_help
291 --enable-statbmp use wxStaticBitmap class"
292 ac_help="$ac_help
293 --enable-statbox use wxStaticBox class"
294 ac_help="$ac_help
295 --enable-statline use wxStaticLine class"
296 ac_help="$ac_help
297 --enable-stattext use wxStaticText class"
298 ac_help="$ac_help
299 --enable-statusbar use wxStatusBar class"
300 ac_help="$ac_help
301 --enable-tabdialog use wxTabControl class"
302 ac_help="$ac_help
303 --enable-textctrl use wxTextCtrl class"
304 ac_help="$ac_help
305 --enable-togglebtn use wxToggleButton class"
306 ac_help="$ac_help
307 --enable-toolbar use wxToolBar class"
308 ac_help="$ac_help
309 --enable-tbarnative use native wxToolBar class"
310 ac_help="$ac_help
311 --enable-tbarsmpl use wxToolBarSimple class"
312 ac_help="$ac_help
313 --enable-treectrl use wxTreeCtrl class"
314 ac_help="$ac_help
315 --enable-popupwin use wxPopUpWindow class"
316 ac_help="$ac_help
317 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
318 ac_help="$ac_help
319 --enable-choicedlg use wxChoiceDialog"
320 ac_help="$ac_help
321 --enable-coldlg use wxColourDialog"
322 ac_help="$ac_help
323 --enable-filedlg use wxFileDialog"
324 ac_help="$ac_help
325 --enable-finddlg use wxFindReplaceDialog"
326 ac_help="$ac_help
327 --enable-fontdlg use wxFontDialog"
328 ac_help="$ac_help
329 --enable-dirdlg use wxDirDialog"
330 ac_help="$ac_help
331 --enable-msgdlg use wxMessageDialog"
332 ac_help="$ac_help
333 --enable-numberdlg use wxNumberEntryDialog"
334 ac_help="$ac_help
335 --enable-splash use wxSplashScreen"
336 ac_help="$ac_help
337 --enable-textdlg use wxTextDialog"
338 ac_help="$ac_help
339 --enable-tipdlg use startup tips"
340 ac_help="$ac_help
341 --enable-progressdlg use wxProgressDialog"
342 ac_help="$ac_help
343 --enable-wizarddlg use wxWizard"
344 ac_help="$ac_help
345 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
346 ac_help="$ac_help
347 --enable-miniframe use wxMiniFrame class"
348 ac_help="$ac_help
349 --enable-tooltips use wxToolTip class"
350 ac_help="$ac_help
351 --enable-splines use spline drawing code"
352 ac_help="$ac_help
353 --enable-validators use wxValidator and derived classes"
354 ac_help="$ac_help
355 --enable-busyinfo use wxBusyInfo"
356 ac_help="$ac_help
357 --enable-joystick compile in joystick support (Linux only)"
358 ac_help="$ac_help
359 --enable-metafiles use wxMetaFile (Windows only)"
360 ac_help="$ac_help
361 --enable-dragimage use wxDragImage"
362 ac_help="$ac_help
363 --enable-image use wxImage class"
364 ac_help="$ac_help
365 --enable-gif use gif images (GIF file format)"
366 ac_help="$ac_help
367 --enable-pcx use pcx images (PCX file format)"
368 ac_help="$ac_help
369 --enable-pnm use pnm images (PNM file format)"
370 ac_help="$ac_help
371 --enable-xpm use xpm images (XPM file format)"
372 ac_help="$ac_help
373 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
374 ac_help="$ac_help
375 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
376 ac_help="$ac_help
377 --disable-gtktest Do not try to compile and run a test GTK program"
378 ac_help="$ac_help
379 --with-x use the X Window System"
380
381 # Initialize some variables set by options.
382 # The variables have the same names as the options, with
383 # dashes changed to underlines.
384 build=NONE
385 cache_file=./config.cache
386 exec_prefix=NONE
387 host=NONE
388 no_create=
389 nonopt=NONE
390 no_recursion=
391 prefix=NONE
392 program_prefix=NONE
393 program_suffix=NONE
394 program_transform_name=s,x,x,
395 silent=
396 site=
397 srcdir=
398 target=NONE
399 verbose=
400 x_includes=NONE
401 x_libraries=NONE
402 bindir='${exec_prefix}/bin'
403 sbindir='${exec_prefix}/sbin'
404 libexecdir='${exec_prefix}/libexec'
405 datadir='${prefix}/share'
406 sysconfdir='${prefix}/etc'
407 sharedstatedir='${prefix}/com'
408 localstatedir='${prefix}/var'
409 libdir='${exec_prefix}/lib'
410 includedir='${prefix}/include'
411 oldincludedir='/usr/include'
412 infodir='${prefix}/info'
413 mandir='${prefix}/man'
414
415 # Initialize some other variables.
416 subdirs=
417 MFLAGS= MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419 # Maximum number of lines to put in a shell here document.
420 ac_max_here_lines=12
421
422 ac_prev=
423 for ac_option
424 do
425
426 # If the previous option needs an argument, assign it.
427 if test -n "$ac_prev"; then
428 eval "$ac_prev=\$ac_option"
429 ac_prev=
430 continue
431 fi
432
433 case "$ac_option" in
434 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
435 *) ac_optarg= ;;
436 esac
437
438 # Accept the important Cygnus configure options, so we can diagnose typos.
439
440 case "$ac_option" in
441
442 -bindir | --bindir | --bindi | --bind | --bin | --bi)
443 ac_prev=bindir ;;
444 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
445 bindir="$ac_optarg" ;;
446
447 -build | --build | --buil | --bui | --bu)
448 ac_prev=build ;;
449 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
450 build="$ac_optarg" ;;
451
452 -cache-file | --cache-file | --cache-fil | --cache-fi \
453 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
454 ac_prev=cache_file ;;
455 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
456 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
457 cache_file="$ac_optarg" ;;
458
459 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
460 ac_prev=datadir ;;
461 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
462 | --da=*)
463 datadir="$ac_optarg" ;;
464
465 -disable-* | --disable-*)
466 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
467 # Reject names that are not valid shell variable names.
468 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
469 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
470 fi
471 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
472 eval "enable_${ac_feature}=no" ;;
473
474 -enable-* | --enable-*)
475 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
476 # Reject names that are not valid shell variable names.
477 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
478 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
479 fi
480 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
481 case "$ac_option" in
482 *=*) ;;
483 *) ac_optarg=yes ;;
484 esac
485 eval "enable_${ac_feature}='$ac_optarg'" ;;
486
487 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
488 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
489 | --exec | --exe | --ex)
490 ac_prev=exec_prefix ;;
491 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
492 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
493 | --exec=* | --exe=* | --ex=*)
494 exec_prefix="$ac_optarg" ;;
495
496 -gas | --gas | --ga | --g)
497 # Obsolete; use --with-gas.
498 with_gas=yes ;;
499
500 -help | --help | --hel | --he)
501 # Omit some internal or obsolete options to make the list less imposing.
502 # This message is too long to be a string in the A/UX 3.1 sh.
503 cat << EOF
504 Usage: configure [options] [host]
505 Options: [defaults in brackets after descriptions]
506 Configuration:
507 --cache-file=FILE cache test results in FILE
508 --help print this message
509 --no-create do not create output files
510 --quiet, --silent do not print \`checking...' messages
511 --version print the version of autoconf that created configure
512 Directory and file names:
513 --prefix=PREFIX install architecture-independent files in PREFIX
514 [$ac_default_prefix]
515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
516 [same as prefix]
517 --bindir=DIR user executables in DIR [EPREFIX/bin]
518 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
519 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
520 --datadir=DIR read-only architecture-independent data in DIR
521 [PREFIX/share]
522 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
523 --sharedstatedir=DIR modifiable architecture-independent data in DIR
524 [PREFIX/com]
525 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
526 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
527 --includedir=DIR C header files in DIR [PREFIX/include]
528 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
529 --infodir=DIR info documentation in DIR [PREFIX/info]
530 --mandir=DIR man documentation in DIR [PREFIX/man]
531 --srcdir=DIR find the sources in DIR [configure dir or ..]
532 --program-prefix=PREFIX prepend PREFIX to installed program names
533 --program-suffix=SUFFIX append SUFFIX to installed program names
534 --program-transform-name=PROGRAM
535 run sed PROGRAM on installed program names
536 EOF
537 cat << EOF
538 Host type:
539 --build=BUILD configure for building on BUILD [BUILD=HOST]
540 --host=HOST configure for HOST [guessed]
541 --target=TARGET configure for TARGET [TARGET=HOST]
542 Features and packages:
543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
547 --x-includes=DIR X include files are in DIR
548 --x-libraries=DIR X library files are in DIR
549 EOF
550 if test -n "$ac_help"; then
551 echo "--enable and --with options recognized:$ac_help"
552 fi
553 exit 0 ;;
554
555 -host | --host | --hos | --ho)
556 ac_prev=host ;;
557 -host=* | --host=* | --hos=* | --ho=*)
558 host="$ac_optarg" ;;
559
560 -includedir | --includedir | --includedi | --included | --include \
561 | --includ | --inclu | --incl | --inc)
562 ac_prev=includedir ;;
563 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
564 | --includ=* | --inclu=* | --incl=* | --inc=*)
565 includedir="$ac_optarg" ;;
566
567 -infodir | --infodir | --infodi | --infod | --info | --inf)
568 ac_prev=infodir ;;
569 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
570 infodir="$ac_optarg" ;;
571
572 -libdir | --libdir | --libdi | --libd)
573 ac_prev=libdir ;;
574 -libdir=* | --libdir=* | --libdi=* | --libd=*)
575 libdir="$ac_optarg" ;;
576
577 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
578 | --libexe | --libex | --libe)
579 ac_prev=libexecdir ;;
580 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
581 | --libexe=* | --libex=* | --libe=*)
582 libexecdir="$ac_optarg" ;;
583
584 -localstatedir | --localstatedir | --localstatedi | --localstated \
585 | --localstate | --localstat | --localsta | --localst \
586 | --locals | --local | --loca | --loc | --lo)
587 ac_prev=localstatedir ;;
588 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
589 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
590 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
591 localstatedir="$ac_optarg" ;;
592
593 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
594 ac_prev=mandir ;;
595 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
596 mandir="$ac_optarg" ;;
597
598 -nfp | --nfp | --nf)
599 # Obsolete; use --without-fp.
600 with_fp=no ;;
601
602 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
603 | --no-cr | --no-c)
604 no_create=yes ;;
605
606 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
607 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
608 no_recursion=yes ;;
609
610 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
611 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
612 | --oldin | --oldi | --old | --ol | --o)
613 ac_prev=oldincludedir ;;
614 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
615 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
616 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
617 oldincludedir="$ac_optarg" ;;
618
619 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
620 ac_prev=prefix ;;
621 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
622 prefix="$ac_optarg" ;;
623
624 -program-prefix | --program-prefix | --program-prefi | --program-pref \
625 | --program-pre | --program-pr | --program-p)
626 ac_prev=program_prefix ;;
627 -program-prefix=* | --program-prefix=* | --program-prefi=* \
628 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
629 program_prefix="$ac_optarg" ;;
630
631 -program-suffix | --program-suffix | --program-suffi | --program-suff \
632 | --program-suf | --program-su | --program-s)
633 ac_prev=program_suffix ;;
634 -program-suffix=* | --program-suffix=* | --program-suffi=* \
635 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
636 program_suffix="$ac_optarg" ;;
637
638 -program-transform-name | --program-transform-name \
639 | --program-transform-nam | --program-transform-na \
640 | --program-transform-n | --program-transform- \
641 | --program-transform | --program-transfor \
642 | --program-transfo | --program-transf \
643 | --program-trans | --program-tran \
644 | --progr-tra | --program-tr | --program-t)
645 ac_prev=program_transform_name ;;
646 -program-transform-name=* | --program-transform-name=* \
647 | --program-transform-nam=* | --program-transform-na=* \
648 | --program-transform-n=* | --program-transform-=* \
649 | --program-transform=* | --program-transfor=* \
650 | --program-transfo=* | --program-transf=* \
651 | --program-trans=* | --program-tran=* \
652 | --progr-tra=* | --program-tr=* | --program-t=*)
653 program_transform_name="$ac_optarg" ;;
654
655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
656 | -silent | --silent | --silen | --sile | --sil)
657 silent=yes ;;
658
659 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
660 ac_prev=sbindir ;;
661 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
662 | --sbi=* | --sb=*)
663 sbindir="$ac_optarg" ;;
664
665 -sharedstatedir | --sharedstatedir | --sharedstatedi \
666 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
667 | --sharedst | --shareds | --shared | --share | --shar \
668 | --sha | --sh)
669 ac_prev=sharedstatedir ;;
670 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
671 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
672 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
673 | --sha=* | --sh=*)
674 sharedstatedir="$ac_optarg" ;;
675
676 -site | --site | --sit)
677 ac_prev=site ;;
678 -site=* | --site=* | --sit=*)
679 site="$ac_optarg" ;;
680
681 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
682 ac_prev=srcdir ;;
683 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
684 srcdir="$ac_optarg" ;;
685
686 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
687 | --syscon | --sysco | --sysc | --sys | --sy)
688 ac_prev=sysconfdir ;;
689 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
690 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
691 sysconfdir="$ac_optarg" ;;
692
693 -target | --target | --targe | --targ | --tar | --ta | --t)
694 ac_prev=target ;;
695 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
696 target="$ac_optarg" ;;
697
698 -v | -verbose | --verbose | --verbos | --verbo | --verb)
699 verbose=yes ;;
700
701 -version | --version | --versio | --versi | --vers)
702 echo "configure generated by autoconf version 2.13"
703 exit 0 ;;
704
705 -with-* | --with-*)
706 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
707 # Reject names that are not valid shell variable names.
708 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
709 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
710 fi
711 ac_package=`echo $ac_package| sed 's/-/_/g'`
712 case "$ac_option" in
713 *=*) ;;
714 *) ac_optarg=yes ;;
715 esac
716 eval "with_${ac_package}='$ac_optarg'" ;;
717
718 -without-* | --without-*)
719 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
720 # Reject names that are not valid shell variable names.
721 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
722 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
723 fi
724 ac_package=`echo $ac_package| sed 's/-/_/g'`
725 eval "with_${ac_package}=no" ;;
726
727 --x)
728 # Obsolete; use --with-x.
729 with_x=yes ;;
730
731 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
732 | --x-incl | --x-inc | --x-in | --x-i)
733 ac_prev=x_includes ;;
734 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
735 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
736 x_includes="$ac_optarg" ;;
737
738 -x-libraries | --x-libraries | --x-librarie | --x-librari \
739 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
740 ac_prev=x_libraries ;;
741 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
742 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
743 x_libraries="$ac_optarg" ;;
744
745 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
746 ;;
747
748 *)
749 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
750 echo "configure: warning: $ac_option: invalid host type" 1>&2
751 fi
752 if test "x$nonopt" != xNONE; then
753 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
754 fi
755 nonopt="$ac_option"
756 ;;
757
758 esac
759 done
760
761 if test -n "$ac_prev"; then
762 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
763 fi
764
765 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
766
767 # File descriptor usage:
768 # 0 standard input
769 # 1 file creation
770 # 2 errors and warnings
771 # 3 some systems may open it to /dev/tty
772 # 4 used on the Kubota Titan
773 # 6 checking for... messages and results
774 # 5 compiler messages saved in config.log
775 if test "$silent" = yes; then
776 exec 6>/dev/null
777 else
778 exec 6>&1
779 fi
780 exec 5>./config.log
781
782 echo "\
783 This file contains any messages produced by compilers while
784 running configure, to aid debugging if configure makes a mistake.
785 " 1>&5
786
787 # Strip out --no-create and --no-recursion so they do not pile up.
788 # Also quote any args containing shell metacharacters.
789 ac_configure_args=
790 for ac_arg
791 do
792 case "$ac_arg" in
793 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
794 | --no-cr | --no-c) ;;
795 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
796 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
797 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
798 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
799 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
800 esac
801 done
802
803 # NLS nuisances.
804 # Only set these to C if already set. These must not be set unconditionally
805 # because not all systems understand e.g. LANG=C (notably SCO).
806 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
807 # Non-C LC_CTYPE values break the ctype check.
808 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
809 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
810 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
811 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
812
813 # confdefs.h avoids OS command line length limits that DEFS can exceed.
814 rm -rf conftest* confdefs.h
815 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
816 echo > confdefs.h
817
818 # A filename unique to this package, relative to the directory that
819 # configure is in, which we can look for to find out if srcdir is correct.
820 ac_unique_file=wx-config.in
821
822 # Find the source files, if location was not specified.
823 if test -z "$srcdir"; then
824 ac_srcdir_defaulted=yes
825 # Try the directory containing this script, then its parent.
826 ac_prog=$0
827 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
828 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
829 srcdir=$ac_confdir
830 if test ! -r $srcdir/$ac_unique_file; then
831 srcdir=..
832 fi
833 else
834 ac_srcdir_defaulted=no
835 fi
836 if test ! -r $srcdir/$ac_unique_file; then
837 if test "$ac_srcdir_defaulted" = yes; then
838 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
839 else
840 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
841 fi
842 fi
843 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
844
845 # Prefer explicitly selected file to automatically selected ones.
846 if test -z "$CONFIG_SITE"; then
847 if test "x$prefix" != xNONE; then
848 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
849 else
850 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
851 fi
852 fi
853 for ac_site_file in $CONFIG_SITE; do
854 if test -r "$ac_site_file"; then
855 echo "loading site script $ac_site_file"
856 . "$ac_site_file"
857 fi
858 done
859
860 if test -r "$cache_file"; then
861 echo "loading cache $cache_file"
862 . $cache_file
863 else
864 echo "creating cache $cache_file"
865 > $cache_file
866 fi
867
868 ac_ext=c
869 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
870 ac_cpp='$CPP $CPPFLAGS'
871 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
872 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
873 cross_compiling=$ac_cv_prog_cc_cross
874
875 ac_exeext=
876 ac_objext=o
877 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
878 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
879 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
880 ac_n= ac_c='
881 ' ac_t=' '
882 else
883 ac_n=-n ac_c= ac_t=
884 fi
885 else
886 ac_n= ac_c='\c' ac_t=
887 fi
888
889
890
891 ac_aux_dir=
892 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
893 if test -f $ac_dir/install-sh; then
894 ac_aux_dir=$ac_dir
895 ac_install_sh="$ac_aux_dir/install-sh -c"
896 break
897 elif test -f $ac_dir/install.sh; then
898 ac_aux_dir=$ac_dir
899 ac_install_sh="$ac_aux_dir/install.sh -c"
900 break
901 fi
902 done
903 if test -z "$ac_aux_dir"; then
904 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
905 fi
906 ac_config_guess=$ac_aux_dir/config.guess
907 ac_config_sub=$ac_aux_dir/config.sub
908 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
909
910
911 # Do some error checking and defaulting for the host and target type.
912 # The inputs are:
913 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
914 #
915 # The rules are:
916 # 1. You are not allowed to specify --host, --target, and nonopt at the
917 # same time.
918 # 2. Host defaults to nonopt.
919 # 3. If nonopt is not specified, then host defaults to the current host,
920 # as determined by config.guess.
921 # 4. Target and build default to nonopt.
922 # 5. If nonopt is not specified, then target and build default to host.
923
924 # The aliases save the names the user supplied, while $host etc.
925 # will get canonicalized.
926 case $host---$target---$nonopt in
927 NONE---*---* | *---NONE---* | *---*---NONE) ;;
928 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
929 esac
930
931
932 # Make sure we can run config.sub.
933 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
934 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
935 fi
936
937 echo $ac_n "checking host system type""... $ac_c" 1>&6
938 echo "configure:939: checking host system type" >&5
939
940 host_alias=$host
941 case "$host_alias" in
942 NONE)
943 case $nonopt in
944 NONE)
945 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
946 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
947 fi ;;
948 *) host_alias=$nonopt ;;
949 esac ;;
950 esac
951
952 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
953 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
954 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
955 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
956 echo "$ac_t""$host" 1>&6
957
958 echo $ac_n "checking target system type""... $ac_c" 1>&6
959 echo "configure:960: checking target system type" >&5
960
961 target_alias=$target
962 case "$target_alias" in
963 NONE)
964 case $nonopt in
965 NONE) target_alias=$host_alias ;;
966 *) target_alias=$nonopt ;;
967 esac ;;
968 esac
969
970 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
971 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
972 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
973 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
974 echo "$ac_t""$target" 1>&6
975
976 echo $ac_n "checking build system type""... $ac_c" 1>&6
977 echo "configure:978: checking build system type" >&5
978
979 build_alias=$build
980 case "$build_alias" in
981 NONE)
982 case $nonopt in
983 NONE) build_alias=$host_alias ;;
984 *) build_alias=$nonopt ;;
985 esac ;;
986 esac
987
988 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
989 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
990 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
991 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
992 echo "$ac_t""$build" 1>&6
993
994 test "$host_alias" != "$target_alias" &&
995 test "$program_prefix$program_suffix$program_transform_name" = \
996 NONENONEs,x,x, &&
997 program_prefix=${target_alias}-
998
999
1000
1001 WX_MAJOR_VERSION_NUMBER=2
1002 WX_MINOR_VERSION_NUMBER=3
1003 WX_RELEASE_NUMBER=2
1004
1005 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1006 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1007
1008 WX_CURRENT=1
1009 WX_REVISION=0
1010 WX_AGE=0
1011
1012
1013
1014 USE_UNIX=1
1015 USE_WIN32=0
1016 USE_BEOS=0
1017 USE_MAC=0
1018
1019 USE_LINUX=
1020 USE_SGI=
1021 USE_HPUX=
1022 USE_SYSV=
1023 USE_SVR4=
1024 USE_AIX=
1025 USE_SUN=
1026 USE_SOLARIS=
1027 USE_SUNOS=
1028 USE_ALPHA=
1029 USE_OSF=
1030 USE_BSD=
1031 USE_DARWIN=
1032 USE_FREEBSD=
1033 USE_OPENBSD=
1034 USE_NETBSD=
1035 USE_VMS=
1036 USE_ULTRIX=
1037 USE_CYGWIN=
1038 USE_MINGW=
1039 USE_DATA_GENERAL=
1040
1041 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1042
1043 ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1044
1045 DEFAULT_wxUSE_GTK=0
1046 DEFAULT_wxUSE_MAC=0
1047 DEFAULT_wxUSE_MGL=0
1048 DEFAULT_wxUSE_MOTIF=0
1049 DEFAULT_wxUSE_MSW=0
1050 DEFAULT_wxUSE_PM=0
1051 DEFAULT_wxUSE_WINE=0
1052
1053 DEFAULT_DEFAULT_wxUSE_GTK=0
1054 DEFAULT_DEFAULT_wxUSE_MAC=0
1055 DEFAULT_DEFAULT_wxUSE_MGL=0
1056 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1057 DEFAULT_DEFAULT_wxUSE_MSW=0
1058 DEFAULT_DEFAULT_wxUSE_PM=0
1059 DEFAULT_DEFAULT_wxUSE_WINE=0
1060
1061 PROGRAM_EXT=
1062 SO_SUFFIX=so
1063
1064 case "${host}" in
1065 *-hp-hpux* )
1066 USE_HPUX=1
1067 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1068 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1069 SO_SUFFIX=sl
1070 cat >> confdefs.h <<\EOF
1071 #define __HPUX__ 1
1072 EOF
1073
1074 ;;
1075 *-*-linux* )
1076 USE_LINUX=1
1077 cat >> confdefs.h <<\EOF
1078 #define __LINUX__ 1
1079 EOF
1080
1081 TMP=`uname -m`
1082 if test "x$TMP" = "xalpha"; then
1083 USE_ALPHA=1
1084 cat >> confdefs.h <<\EOF
1085 #define __ALPHA__ 1
1086 EOF
1087
1088 fi
1089 DEFAULT_DEFAULT_wxUSE_GTK=1
1090 ;;
1091 *-*-irix5* | *-*-irix6* )
1092 USE_SGI=1
1093 USE_SVR4=1
1094 cat >> confdefs.h <<\EOF
1095 #define __SGI__ 1
1096 EOF
1097
1098 cat >> confdefs.h <<\EOF
1099 #define __SVR4__ 1
1100 EOF
1101
1102 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1103 ;;
1104 *-*-solaris2* )
1105 USE_SUN=1
1106 USE_SOLARIS=1
1107 USE_SVR4=1
1108 cat >> confdefs.h <<\EOF
1109 #define __SUN__ 1
1110 EOF
1111
1112 cat >> confdefs.h <<\EOF
1113 #define __SOLARIS__ 1
1114 EOF
1115
1116 cat >> confdefs.h <<\EOF
1117 #define __SVR4__ 1
1118 EOF
1119
1120 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1121 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1122 ;;
1123 *-*-sunos4* )
1124 USE_SUN=1
1125 USE_SUNOS=1
1126 USE_BSD=1
1127 cat >> confdefs.h <<\EOF
1128 #define __SUN__ 1
1129 EOF
1130
1131 cat >> confdefs.h <<\EOF
1132 #define __SUNOS__ 1
1133 EOF
1134
1135 cat >> confdefs.h <<\EOF
1136 #define __BSD__ 1
1137 EOF
1138
1139 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1140 ;;
1141 *-*-freebsd*)
1142 USE_BSD=1
1143 USE_FREEBSD=1
1144 cat >> confdefs.h <<\EOF
1145 #define __FREEBSD__ 1
1146 EOF
1147
1148 cat >> confdefs.h <<\EOF
1149 #define __BSD__ 1
1150 EOF
1151
1152 DEFAULT_DEFAULT_wxUSE_GTK=1
1153 ;;
1154 *-*-openbsd*)
1155 USE_BSD=1
1156 USE_OPENBSD=1
1157 cat >> confdefs.h <<\EOF
1158 #define __FREEBSD__ 1
1159 EOF
1160
1161 cat >> confdefs.h <<\EOF
1162 #define __OPENBSD__ 1
1163 EOF
1164
1165 DEFAULT_DEFAULT_wxUSE_GTK=1
1166 ;;
1167 *-*-netbsd*)
1168 USE_BSD=1
1169 USE_NETBSD=1
1170 cat >> confdefs.h <<\EOF
1171 #define __FREEBSD__ 1
1172 EOF
1173
1174 cat >> confdefs.h <<\EOF
1175 #define __NETBSD__ 1
1176 EOF
1177
1178 DEFAULT_DEFAULT_wxUSE_GTK=1
1179 ;;
1180 *-*-osf* )
1181 USE_ALPHA=1
1182 USE_OSF=1
1183 cat >> confdefs.h <<\EOF
1184 #define __ALPHA__ 1
1185 EOF
1186
1187 cat >> confdefs.h <<\EOF
1188 #define __OSF__ 1
1189 EOF
1190
1191 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1192 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1193 ;;
1194 *-*-dgux5* )
1195 USE_ALPHA=1
1196 USE_SVR4=1
1197 cat >> confdefs.h <<\EOF
1198 #define __ALPHA__ 1
1199 EOF
1200
1201 cat >> confdefs.h <<\EOF
1202 #define __SVR4__ 1
1203 EOF
1204
1205 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1206 ;;
1207 *-*-sysv5* )
1208 USE_SYSV=1
1209 USE_SVR4=1
1210 cat >> confdefs.h <<\EOF
1211 #define __SYSV__ 1
1212 EOF
1213
1214 cat >> confdefs.h <<\EOF
1215 #define __SVR4__ 1
1216 EOF
1217
1218 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1219 ;;
1220 *-*-aix* )
1221 USE_AIX=1
1222 USE_SYSV=1
1223 USE_SVR4=1
1224 cat >> confdefs.h <<\EOF
1225 #define __AIX__ 1
1226 EOF
1227
1228 cat >> confdefs.h <<\EOF
1229 #define __SYSV__ 1
1230 EOF
1231
1232 cat >> confdefs.h <<\EOF
1233 #define __SVR4__ 1
1234 EOF
1235
1236 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1237 ;;
1238
1239 *-*-cygwin* | *-*-mingw32* )
1240 USE_UNIX=0
1241 USE_WIN32=1
1242 SO_SUFFIX=dll
1243 cat >> confdefs.h <<\EOF
1244 #define __WIN32__ 1
1245 EOF
1246
1247 cat >> confdefs.h <<\EOF
1248 #define __WIN95__ 1
1249 EOF
1250
1251 cat >> confdefs.h <<\EOF
1252 #define __WINDOWS__ 1
1253 EOF
1254
1255 cat >> confdefs.h <<\EOF
1256 #define __GNUWIN32__ 1
1257 EOF
1258
1259 cat >> confdefs.h <<\EOF
1260 #define STRICT 1
1261 EOF
1262
1263 cat >> confdefs.h <<\EOF
1264 #define WINVER 0x0400
1265 EOF
1266
1267 PROGRAM_EXT=".exe"
1268 DEFAULT_DEFAULT_wxUSE_MSW=1
1269 ;;
1270
1271 *-pc-os2_emx )
1272 cat >> confdefs.h <<\EOF
1273 #define __EMX__ 1
1274 EOF
1275
1276 PROGRAM_EXT=".exe"
1277 DEFAULT_DEFAULT_wxUSE_PM=1
1278 ;;
1279
1280 *-*-darwin* )
1281 USE_BSD=1
1282 USE_DARWIN=1
1283 SO_SUFFIX=dylib
1284 cat >> confdefs.h <<\EOF
1285 #define __BSD__ 1
1286 EOF
1287
1288 cat >> confdefs.h <<\EOF
1289 #define __DARWIN__ 1
1290 EOF
1291
1292 DEFAULT_DEFAULT_wxUSE_MAC=1
1293 ;;
1294
1295 *-*-beos* )
1296 USE_BEOS=1
1297 cat >> confdefs.h <<\EOF
1298 #define __BEOS__ 1
1299 EOF
1300
1301 ;;
1302
1303 *)
1304 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1305 esac
1306
1307 if test "$USE_UNIX" = 1 ; then
1308 wxUSE_UNIX=yes
1309 cat >> confdefs.h <<\EOF
1310 #define __UNIX__ 1
1311 EOF
1312
1313 fi
1314
1315 if test "$USE_LINUX" = 1; then
1316 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1317 echo "configure:1318: checking for glibc 2.1 or later" >&5
1318 if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1319 echo $ac_n "(cached) $ac_c" 1>&6
1320 else
1321 cat > conftest.$ac_ext <<EOF
1322 #line 1323 "configure"
1323 #include "confdefs.h"
1324 #include <features.h>
1325 int main() {
1326
1327 #if !__GLIBC_PREREQ(2, 1)
1328 #error not glibc2.1
1329 #endif
1330
1331 ; return 0; }
1332 EOF
1333 if { (eval echo configure:1334: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1334 rm -rf conftest*
1335
1336 wx_lib_glibc21=yes
1337
1338 else
1339 echo "configure: failed program was:" >&5
1340 cat conftest.$ac_ext >&5
1341 rm -rf conftest*
1342
1343 wx_lib_glibc21=no
1344
1345
1346 fi
1347 rm -f conftest*
1348
1349 fi
1350
1351 echo "$ac_t""$wx_lib_glibc21" 1>&6
1352 if test "$wx_lib_glibc21" = "yes"; then
1353 cat >> confdefs.h <<\EOF
1354 #define wxHAVE_GLIBC2 1
1355 EOF
1356
1357 fi
1358 fi
1359
1360
1361
1362
1363 wx_arg_cache_file="configarg.cache"
1364 echo "loading argument cache $wx_arg_cache_file"
1365 rm -f ${wx_arg_cache_file}.tmp
1366 touch ${wx_arg_cache_file}.tmp
1367 touch ${wx_arg_cache_file}
1368
1369
1370 DEBUG_CONFIGURE=0
1371 if test $DEBUG_CONFIGURE = 1; then
1372 DEFAULT_wxUSE_UNIVERSAL=no
1373
1374 DEFAULT_wxUSE_THREADS=yes
1375
1376 DEFAULT_wxUSE_SHARED=yes
1377 DEFAULT_wxUSE_SONAME=no
1378 DEFAULT_wxUSE_OPTIMISE=no
1379 DEFAULT_wxUSE_PROFILE=no
1380 DEFAULT_wxUSE_NO_DEPS=no
1381 DEFAULT_wxUSE_NO_RTTI=no
1382 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1383 DEFAULT_wxUSE_PERMISSIVE=no
1384 DEFAULT_wxUSE_DEBUG_FLAG=yes
1385 DEFAULT_wxUSE_DEBUG_INFO=yes
1386 DEFAULT_wxUSE_DEBUG_GDB=yes
1387 DEFAULT_wxUSE_MEM_TRACING=no
1388 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1389 DEFAULT_wxUSE_DMALLOC=no
1390 DEFAULT_wxUSE_APPLE_IEEE=no
1391
1392 DEFAULT_wxUSE_LOG=yes
1393 DEFAULT_wxUSE_LOGWINDOW=no
1394 DEFAULT_wxUSE_LOGGUI=no
1395
1396 DEFAULT_wxUSE_GUI=yes
1397 DEFAULT_wxUSE_CONTROLS=no
1398
1399 DEFAULT_wxUSE_REGEX=no
1400 DEFAULT_wxUSE_ZLIB=no
1401 DEFAULT_wxUSE_LIBPNG=no
1402 DEFAULT_wxUSE_LIBJPEG=no
1403 DEFAULT_wxUSE_LIBTIFF=no
1404 DEFAULT_wxUSE_ODBC=no
1405 DEFAULT_wxUSE_FREETYPE=no
1406 DEFAULT_wxUSE_OPENGL=no
1407
1408 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1409 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1410 DEFAULT_wxUSE_STD_IOSTREAM=no
1411 DEFAULT_wxUSE_CMDLINE_PARSER=no
1412 DEFAULT_wxUSE_DATETIME=no
1413 DEFAULT_wxUSE_TIMEDATE=no
1414 DEFAULT_wxUSE_TIMER=no
1415 DEFAULT_wxUSE_STOPWATCH=no
1416 DEFAULT_wxUSE_FILE=no
1417 DEFAULT_wxUSE_FFILE=no
1418 DEFAULT_wxUSE_TEXTFILE=no
1419 DEFAULT_wxUSE_WAVE=no
1420 DEFAULT_wxUSE_INTL=no
1421 DEFAULT_wxUSE_CONFIG=no
1422 DEFAULT_wxUSE_FONTMAP=no
1423 DEFAULT_wxUSE_STREAMS=no
1424 DEFAULT_wxUSE_SOCKETS=no
1425 DEFAULT_wxUSE_DIALUP_MANAGER=no
1426 DEFAULT_wxUSE_SERIAL=no
1427 DEFAULT_wxUSE_JOYSTICK=no
1428 DEFAULT_wxUSE_DYNLIB_CLASS=no
1429 DEFAULT_wxUSE_LONGLONG=no
1430 DEFAULT_wxUSE_GEOMETRY=no
1431
1432 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1433 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1434 DEFAULT_wxUSE_POSTSCRIPT=no
1435
1436 DEFAULT_wxUSE_X_RESOURCES=no
1437 DEFAULT_wxUSE_CLIPBOARD=no
1438 DEFAULT_wxUSE_TOOLTIPS=no
1439 DEFAULT_wxUSE_DRAG_AND_DROP=no
1440 DEFAULT_wxUSE_DRAGIMAGE=no
1441 DEFAULT_wxUSE_SPLINES=no
1442
1443 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1444 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1445 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1446
1447 DEFAULT_wxUSE_PROLOGIO=no
1448 DEFAULT_wxUSE_RESOURCES=no
1449 DEFAULT_wxUSE_CONSTRAINTS=no
1450 DEFAULT_wxUSE_IPC=no
1451 DEFAULT_wxUSE_HELP=no
1452 DEFAULT_wxUSE_MS_HTML_HELP=no
1453 DEFAULT_wxUSE_WXHTML_HELP=no
1454 DEFAULT_wxUSE_TREELAYOUT=no
1455 DEFAULT_wxUSE_METAFILE=no
1456 DEFAULT_wxUSE_MIMETYPE=no
1457 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1458
1459 DEFAULT_wxUSE_COMMONDLGS=no
1460 DEFAULT_wxUSE_CHOICEDLG=no
1461 DEFAULT_wxUSE_COLOURDLG=no
1462 DEFAULT_wxUSE_DIRDLG=no
1463 DEFAULT_wxUSE_FILEDLG=no
1464 DEFAULT_wxUSE_FINDREPLDLG=no
1465 DEFAULT_wxUSE_FONTDLG=no
1466 DEFAULT_wxUSE_MSGDLG=no
1467 DEFAULT_wxUSE_NUMBERDLG=no
1468 DEFAULT_wxUSE_TEXTDLG=no
1469 DEFAULT_wxUSE_SPLASH=no
1470 DEFAULT_wxUSE_STARTUP_TIPS=no
1471 DEFAULT_wxUSE_PROGRESSDLG=no
1472 DEFAULT_wxUSE_WIZARDDLG=no
1473
1474 DEFAULT_wxUSE_MENUS=no
1475 DEFAULT_wxUSE_MINIFRAME=no
1476 DEFAULT_wxUSE_HTML=no
1477 DEFAULT_wxUSE_FILESYSTEM=no
1478 DEFAULT_wxUSE_FS_INET=no
1479 DEFAULT_wxUSE_FS_ZIP=no
1480 DEFAULT_wxUSE_BUSYINFO=no
1481 DEFAULT_wxUSE_ZIPSTREAM=no
1482 DEFAULT_wxUSE_VALIDATORS=no
1483
1484 DEFAULT_wxUSE_ACCEL=no
1485 DEFAULT_wxUSE_BUTTON=no
1486 DEFAULT_wxUSE_BMPBUTTON=no
1487 DEFAULT_wxUSE_CALCTRL=no
1488 DEFAULT_wxUSE_CARET=no
1489 DEFAULT_wxUSE_CHECKBOX=no
1490 DEFAULT_wxUSE_CHECKLST=no
1491 DEFAULT_wxUSE_CHOICE=no
1492 DEFAULT_wxUSE_COMBOBOX=no
1493 DEFAULT_wxUSE_GAUGE=no
1494 DEFAULT_wxUSE_GRID=no
1495 DEFAULT_wxUSE_NEW_GRID=no
1496 DEFAULT_wxUSE_IMAGLIST=no
1497 DEFAULT_wxUSE_LISTBOX=no
1498 DEFAULT_wxUSE_LISTCTRL=no
1499 DEFAULT_wxUSE_NOTEBOOK=no
1500 DEFAULT_wxUSE_PROPSHEET=no
1501 DEFAULT_wxUSE_RADIOBOX=no
1502 DEFAULT_wxUSE_RADIOBTN=no
1503 DEFAULT_wxUSE_SASH=no
1504 DEFAULT_wxUSE_SCROLLBAR=no
1505 DEFAULT_wxUSE_SLIDER=no
1506 DEFAULT_wxUSE_SPINBTN=no
1507 DEFAULT_wxUSE_SPINCTRL=no
1508 DEFAULT_wxUSE_SPLITTER=no
1509 DEFAULT_wxUSE_STATBMP=no
1510 DEFAULT_wxUSE_STATBOX=no
1511 DEFAULT_wxUSE_STATLINE=no
1512 DEFAULT_wxUSE_STATTEXT=no
1513 DEFAULT_wxUSE_STATUSBAR=yes
1514 DEFAULT_wxUSE_TABDIALOG=no
1515 DEFAULT_wxUSE_TEXTCTRL=no
1516 DEFAULT_wxUSE_TOGGLEBTN=no
1517 DEFAULT_wxUSE_TOOLBAR=no
1518 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1519 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1520 DEFAULT_wxUSE_TREECTRL=no
1521 DEFAULT_wxUSE_POPUPWIN=no
1522
1523 DEFAULT_wxUSE_UNICODE=no
1524 DEFAULT_wxUSE_WCSRTOMBS=no
1525
1526 DEFAULT_wxUSE_IMAGE=no
1527 DEFAULT_wxUSE_GIF=no
1528 DEFAULT_wxUSE_PCX=no
1529 DEFAULT_wxUSE_PNM=no
1530 DEFAULT_wxUSE_XPM=no
1531 else
1532 DEFAULT_wxUSE_UNIVERSAL=no
1533
1534 DEFAULT_wxUSE_THREADS=yes
1535
1536 DEFAULT_wxUSE_SHARED=yes
1537 DEFAULT_wxUSE_SONAME=no
1538 DEFAULT_wxUSE_OPTIMISE=yes
1539 DEFAULT_wxUSE_PROFILE=no
1540 DEFAULT_wxUSE_NO_DEPS=no
1541 DEFAULT_wxUSE_NO_RTTI=no
1542 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1543 DEFAULT_wxUSE_PERMISSIVE=no
1544 DEFAULT_wxUSE_DEBUG_FLAG=no
1545 DEFAULT_wxUSE_DEBUG_INFO=no
1546 DEFAULT_wxUSE_DEBUG_GDB=no
1547 DEFAULT_wxUSE_MEM_TRACING=no
1548 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1549 DEFAULT_wxUSE_DMALLOC=no
1550 DEFAULT_wxUSE_APPLE_IEEE=yes
1551
1552 DEFAULT_wxUSE_LOG=yes
1553 DEFAULT_wxUSE_LOGWINDOW=yes
1554 DEFAULT_wxUSE_LOGGUI=yes
1555
1556 DEFAULT_wxUSE_GUI=yes
1557
1558 DEFAULT_wxUSE_REGEX=yes
1559 DEFAULT_wxUSE_ZLIB=yes
1560 DEFAULT_wxUSE_LIBPNG=yes
1561 DEFAULT_wxUSE_LIBJPEG=yes
1562 DEFAULT_wxUSE_LIBTIFF=yes
1563 DEFAULT_wxUSE_ODBC=no
1564 DEFAULT_wxUSE_FREETYPE=no
1565 DEFAULT_wxUSE_OPENGL=no
1566
1567 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1568 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1569 DEFAULT_wxUSE_STD_IOSTREAM=no
1570 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1571 DEFAULT_wxUSE_DATETIME=yes
1572 DEFAULT_wxUSE_TIMEDATE=no
1573 DEFAULT_wxUSE_TIMER=yes
1574 DEFAULT_wxUSE_STOPWATCH=yes
1575 DEFAULT_wxUSE_FILE=yes
1576 DEFAULT_wxUSE_FFILE=yes
1577 DEFAULT_wxUSE_TEXTFILE=yes
1578 DEFAULT_wxUSE_WAVE=no
1579 DEFAULT_wxUSE_INTL=yes
1580 DEFAULT_wxUSE_CONFIG=yes
1581 DEFAULT_wxUSE_FONTMAP=yes
1582 DEFAULT_wxUSE_STREAMS=yes
1583 DEFAULT_wxUSE_SOCKETS=yes
1584 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1585 DEFAULT_wxUSE_SERIAL=yes
1586 DEFAULT_wxUSE_JOYSTICK=yes
1587 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1588 DEFAULT_wxUSE_LONGLONG=yes
1589 DEFAULT_wxUSE_GEOMETRY=yes
1590
1591 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1592 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1593 DEFAULT_wxUSE_POSTSCRIPT=yes
1594
1595 DEFAULT_wxUSE_X_RESOURCES=no
1596 DEFAULT_wxUSE_CLIPBOARD=yes
1597 DEFAULT_wxUSE_TOOLTIPS=yes
1598 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1599 DEFAULT_wxUSE_DRAGIMAGE=yes
1600 DEFAULT_wxUSE_SPLINES=yes
1601
1602 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1603 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1604 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1605
1606 DEFAULT_wxUSE_PROLOGIO=yes
1607 DEFAULT_wxUSE_RESOURCES=yes
1608 DEFAULT_wxUSE_CONSTRAINTS=yes
1609 DEFAULT_wxUSE_IPC=yes
1610 DEFAULT_wxUSE_HELP=yes
1611 DEFAULT_wxUSE_MS_HTML_HELP=yes
1612 DEFAULT_wxUSE_WXHTML_HELP=yes
1613 DEFAULT_wxUSE_TREELAYOUT=yes
1614 DEFAULT_wxUSE_METAFILE=yes
1615 DEFAULT_wxUSE_MIMETYPE=yes
1616 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1617
1618 DEFAULT_wxUSE_COMMONDLGS=yes
1619 DEFAULT_wxUSE_CHOICEDLG=yes
1620 DEFAULT_wxUSE_COLOURDLG=yes
1621 DEFAULT_wxUSE_DIRDLG=yes
1622 DEFAULT_wxUSE_FILEDLG=yes
1623 DEFAULT_wxUSE_FINDREPLDLG=yes
1624 DEFAULT_wxUSE_FONTDLG=yes
1625 DEFAULT_wxUSE_MSGDLG=yes
1626 DEFAULT_wxUSE_NUMBERDLG=yes
1627 DEFAULT_wxUSE_TEXTDLG=yes
1628 DEFAULT_wxUSE_SPLASH=yes
1629 DEFAULT_wxUSE_STARTUP_TIPS=yes
1630 DEFAULT_wxUSE_PROGRESSDLG=yes
1631 DEFAULT_wxUSE_WIZARDDLG=yes
1632
1633 DEFAULT_wxUSE_MENUS=yes
1634 DEFAULT_wxUSE_MINIFRAME=yes
1635 DEFAULT_wxUSE_HTML=yes
1636 DEFAULT_wxUSE_FILESYSTEM=yes
1637 DEFAULT_wxUSE_FS_INET=yes
1638 DEFAULT_wxUSE_FS_ZIP=yes
1639 DEFAULT_wxUSE_BUSYINFO=yes
1640 DEFAULT_wxUSE_ZIPSTREAM=yes
1641 DEFAULT_wxUSE_VALIDATORS=yes
1642
1643 DEFAULT_wxUSE_ACCEL=yes
1644 DEFAULT_wxUSE_BUTTON=yes
1645 DEFAULT_wxUSE_BMPBUTTON=yes
1646 DEFAULT_wxUSE_CALCTRL=yes
1647 DEFAULT_wxUSE_CARET=yes
1648 DEFAULT_wxUSE_CHECKBOX=yes
1649 DEFAULT_wxUSE_CHECKLST=yes
1650 DEFAULT_wxUSE_CHOICE=yes
1651 DEFAULT_wxUSE_COMBOBOX=yes
1652 DEFAULT_wxUSE_GAUGE=yes
1653 DEFAULT_wxUSE_GRID=yes
1654 DEFAULT_wxUSE_NEW_GRID=yes
1655 DEFAULT_wxUSE_IMAGLIST=yes
1656 DEFAULT_wxUSE_LISTBOX=yes
1657 DEFAULT_wxUSE_LISTCTRL=yes
1658 DEFAULT_wxUSE_NOTEBOOK=yes
1659 DEFAULT_wxUSE_PROPSHEET=yes
1660 DEFAULT_wxUSE_RADIOBOX=yes
1661 DEFAULT_wxUSE_RADIOBTN=yes
1662 DEFAULT_wxUSE_SASH=yes
1663 DEFAULT_wxUSE_SCROLLBAR=yes
1664 DEFAULT_wxUSE_SLIDER=yes
1665 DEFAULT_wxUSE_SPINBTN=yes
1666 DEFAULT_wxUSE_SPINCTRL=yes
1667 DEFAULT_wxUSE_SPLITTER=yes
1668 DEFAULT_wxUSE_STATBMP=yes
1669 DEFAULT_wxUSE_STATBOX=yes
1670 DEFAULT_wxUSE_STATLINE=yes
1671 DEFAULT_wxUSE_STATTEXT=yes
1672 DEFAULT_wxUSE_STATUSBAR=yes
1673 DEFAULT_wxUSE_TABDIALOG=no
1674 DEFAULT_wxUSE_TEXTCTRL=yes
1675 DEFAULT_wxUSE_TOGGLEBTN=yes
1676 DEFAULT_wxUSE_TOOLBAR=yes
1677 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1678 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1679 DEFAULT_wxUSE_TREECTRL=yes
1680 DEFAULT_wxUSE_POPUPWIN=yes
1681
1682 DEFAULT_wxUSE_UNICODE=no
1683 DEFAULT_wxUSE_WCSRTOMBS=no
1684
1685 DEFAULT_wxUSE_IMAGE=yes
1686 DEFAULT_wxUSE_GIF=yes
1687 DEFAULT_wxUSE_PCX=yes
1688 DEFAULT_wxUSE_PNM=yes
1689 DEFAULT_wxUSE_XPM=yes
1690 fi
1691
1692
1693
1694 for toolkit in `echo $ALL_TOOLKITS`; do
1695 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1696 if test "x$LINE" != x ; then
1697 has_toolkit_in_cache=1
1698 eval "DEFAULT_$LINE"
1699 eval "CACHE_$toolkit=1"
1700 fi
1701 done
1702
1703
1704
1705 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1706 echo "configure:1707: checking for --enable-gui" >&5
1707 no_cache=0
1708 # Check whether --enable-gui or --disable-gui was given.
1709 if test "${enable_gui+set}" = set; then
1710 enableval="$enable_gui"
1711
1712 if test "$enableval" = yes; then
1713 ac_cv_use_gui='wxUSE_GUI=yes'
1714 else
1715 ac_cv_use_gui='wxUSE_GUI=no'
1716 fi
1717
1718 else
1719
1720 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1721 if test "x$LINE" != x ; then
1722 eval "DEFAULT_$LINE"
1723 else
1724 no_cache=1
1725 fi
1726
1727 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1728
1729 fi
1730
1731
1732 eval "$ac_cv_use_gui"
1733 if test "$no_cache" != 1; then
1734 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1735 fi
1736
1737 if test "$wxUSE_GUI" = yes; then
1738 echo "$ac_t""yes" 1>&6
1739 else
1740 echo "$ac_t""no" 1>&6
1741 fi
1742
1743
1744 if test "$wxUSE_GUI" = "yes"; then
1745
1746
1747 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1748 echo "configure:1749: checking for --enable-universal" >&5
1749 no_cache=0
1750 # Check whether --enable-universal or --disable-universal was given.
1751 if test "${enable_universal+set}" = set; then
1752 enableval="$enable_universal"
1753
1754 if test "$enableval" = yes; then
1755 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1756 else
1757 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1758 fi
1759
1760 else
1761
1762 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1763 if test "x$LINE" != x ; then
1764 eval "DEFAULT_$LINE"
1765 else
1766 no_cache=1
1767 fi
1768
1769 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1770
1771 fi
1772
1773
1774 eval "$ac_cv_use_universal"
1775 if test "$no_cache" != 1; then
1776 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1777 fi
1778
1779 if test "$wxUSE_UNIVERSAL" = yes; then
1780 echo "$ac_t""yes" 1>&6
1781 else
1782 echo "$ac_t""no" 1>&6
1783 fi
1784
1785 # Check whether --with-gtk or --without-gtk was given.
1786 if test "${with_gtk+set}" = set; then
1787 withval="$with_gtk"
1788 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1789 fi
1790
1791 # Check whether --with-motif or --without-motif was given.
1792 if test "${with_motif+set}" = set; then
1793 withval="$with_motif"
1794 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1795 fi
1796
1797 # Check whether --with-mac or --without-mac was given.
1798 if test "${with_mac+set}" = set; then
1799 withval="$with_mac"
1800 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1801 fi
1802
1803 # Check whether --with-wine or --without-wine was given.
1804 if test "${with_wine+set}" = set; then
1805 withval="$with_wine"
1806 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1807 fi
1808
1809 # Check whether --with-cygwin or --without-cygwin was given.
1810 if test "${with_cygwin+set}" = set; then
1811 withval="$with_cygwin"
1812 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1813 fi
1814
1815 # Check whether --with-mingw or --without-mingw was given.
1816 if test "${with_mingw+set}" = set; then
1817 withval="$with_mingw"
1818 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1819 fi
1820
1821 # Check whether --with-pm or --without-pm was given.
1822 if test "${with_pm+set}" = set; then
1823 withval="$with_pm"
1824 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1825 fi
1826
1827 # Check whether --with-mgl or --without-mgl was given.
1828 if test "${with_mgl+set}" = set; then
1829 withval="$with_mgl"
1830 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1831 fi
1832
1833
1834 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1835 if test "${enable_gtk2+set}" = set; then
1836 enableval="$enable_gtk2"
1837 wxUSE_GTK2=1
1838 else
1839 wxUSE_GTK2=0
1840 fi
1841
1842
1843
1844 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1845 echo "configure:1846: checking for --with-libpng" >&5
1846 no_cache=0
1847 # Check whether --with-libpng or --without-libpng was given.
1848 if test "${with_libpng+set}" = set; then
1849 withval="$with_libpng"
1850
1851 if test "$withval" = yes; then
1852 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1853 elif test "$withval" = no; then
1854 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1855 elif test "$withval" = sys; then
1856 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1857 else
1858 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1859 fi
1860
1861 else
1862
1863 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1864 if test "x$LINE" != x ; then
1865 eval "DEFAULT_$LINE"
1866 else
1867 no_cache=1
1868 fi
1869
1870 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1871
1872 fi
1873
1874
1875 eval "$ac_cv_use_libpng"
1876 if test "$no_cache" != 1; then
1877 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1878 fi
1879
1880 if test "$wxUSE_LIBPNG" = yes; then
1881 echo "$ac_t""yes" 1>&6
1882 elif test "$wxUSE_LIBPNG" = no; then
1883 echo "$ac_t""no" 1>&6
1884 elif test "$wxUSE_LIBPNG" = sys; then
1885 echo "$ac_t""system version" 1>&6
1886 else
1887 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1888 fi
1889
1890
1891 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1892 echo "configure:1893: checking for --with-libjpeg" >&5
1893 no_cache=0
1894 # Check whether --with-libjpeg or --without-libjpeg was given.
1895 if test "${with_libjpeg+set}" = set; then
1896 withval="$with_libjpeg"
1897
1898 if test "$withval" = yes; then
1899 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1900 elif test "$withval" = no; then
1901 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1902 elif test "$withval" = sys; then
1903 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1904 else
1905 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1906 fi
1907
1908 else
1909
1910 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1911 if test "x$LINE" != x ; then
1912 eval "DEFAULT_$LINE"
1913 else
1914 no_cache=1
1915 fi
1916
1917 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1918
1919 fi
1920
1921
1922 eval "$ac_cv_use_libjpeg"
1923 if test "$no_cache" != 1; then
1924 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1925 fi
1926
1927 if test "$wxUSE_LIBJPEG" = yes; then
1928 echo "$ac_t""yes" 1>&6
1929 elif test "$wxUSE_LIBJPEG" = no; then
1930 echo "$ac_t""no" 1>&6
1931 elif test "$wxUSE_LIBJPEG" = sys; then
1932 echo "$ac_t""system version" 1>&6
1933 else
1934 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1935 fi
1936
1937
1938 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1939 echo "configure:1940: checking for --with-libtiff" >&5
1940 no_cache=0
1941 # Check whether --with-libtiff or --without-libtiff was given.
1942 if test "${with_libtiff+set}" = set; then
1943 withval="$with_libtiff"
1944
1945 if test "$withval" = yes; then
1946 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1947 elif test "$withval" = no; then
1948 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1949 elif test "$withval" = sys; then
1950 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1951 else
1952 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1953 fi
1954
1955 else
1956
1957 LINE=`grep "wxUSE_LIBTIFF" ${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_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1965
1966 fi
1967
1968
1969 eval "$ac_cv_use_libtiff"
1970 if test "$no_cache" != 1; then
1971 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1972 fi
1973
1974 if test "$wxUSE_LIBTIFF" = yes; then
1975 echo "$ac_t""yes" 1>&6
1976 elif test "$wxUSE_LIBTIFF" = no; then
1977 echo "$ac_t""no" 1>&6
1978 elif test "$wxUSE_LIBTIFF" = sys; then
1979 echo "$ac_t""system version" 1>&6
1980 else
1981 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1982 fi
1983
1984
1985 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1986 echo "configure:1987: checking for --with-freetype" >&5
1987 no_cache=0
1988 # Check whether --with-freetype or --without-freetype was given.
1989 if test "${with_freetype+set}" = set; then
1990 withval="$with_freetype"
1991
1992 if test "$withval" = yes; then
1993 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1994 elif test "$withval" = no; then
1995 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1996 elif test "$withval" = sys; then
1997 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1998 else
1999 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2000 fi
2001
2002 else
2003
2004 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2005 if test "x$LINE" != x ; then
2006 eval "DEFAULT_$LINE"
2007 else
2008 no_cache=1
2009 fi
2010
2011 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2012
2013 fi
2014
2015
2016 eval "$ac_cv_use_freetype"
2017 if test "$no_cache" != 1; then
2018 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2019 fi
2020
2021 if test "$wxUSE_FREETYPE" = yes; then
2022 echo "$ac_t""yes" 1>&6
2023 elif test "$wxUSE_FREETYPE" = no; then
2024 echo "$ac_t""no" 1>&6
2025 elif test "$wxUSE_FREETYPE" = sys; then
2026 echo "$ac_t""system version" 1>&6
2027 else
2028 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2029 fi
2030
2031
2032 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2033 echo "configure:2034: checking for --with-opengl" >&5
2034 no_cache=0
2035 # Check whether --with-opengl or --without-opengl was given.
2036 if test "${with_opengl+set}" = set; then
2037 withval="$with_opengl"
2038
2039 if test "$withval" = yes; then
2040 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2041 else
2042 ac_cv_use_opengl='wxUSE_OPENGL=no'
2043 fi
2044
2045 else
2046
2047 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2048 if test "x$LINE" != x ; then
2049 eval "DEFAULT_$LINE"
2050 else
2051 no_cache=1
2052 fi
2053
2054 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2055
2056 fi
2057
2058
2059 eval "$ac_cv_use_opengl"
2060 if test "$no_cache" != 1; then
2061 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2062 fi
2063
2064 if test "$wxUSE_OPENGL" = yes; then
2065 echo "$ac_t""yes" 1>&6
2066 else
2067 echo "$ac_t""no" 1>&6
2068 fi
2069
2070
2071 fi
2072
2073
2074 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2075 echo "configure:2076: checking for --with-dmalloc" >&5
2076 no_cache=0
2077 # Check whether --with-dmalloc or --without-dmalloc was given.
2078 if test "${with_dmalloc+set}" = set; then
2079 withval="$with_dmalloc"
2080
2081 if test "$withval" = yes; then
2082 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2083 else
2084 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2085 fi
2086
2087 else
2088
2089 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2090 if test "x$LINE" != x ; then
2091 eval "DEFAULT_$LINE"
2092 else
2093 no_cache=1
2094 fi
2095
2096 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2097
2098 fi
2099
2100
2101 eval "$ac_cv_use_dmalloc"
2102 if test "$no_cache" != 1; then
2103 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2104 fi
2105
2106 if test "$wxUSE_DMALLOC" = yes; then
2107 echo "$ac_t""yes" 1>&6
2108 else
2109 echo "$ac_t""no" 1>&6
2110 fi
2111
2112
2113 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2114 echo "configure:2115: checking for --with-regex" >&5
2115 no_cache=0
2116 # Check whether --with-regex or --without-regex was given.
2117 if test "${with_regex+set}" = set; then
2118 withval="$with_regex"
2119
2120 if test "$withval" = yes; then
2121 ac_cv_use_regex='wxUSE_REGEX=yes'
2122 elif test "$withval" = no; then
2123 ac_cv_use_regex='wxUSE_REGEX=no'
2124 elif test "$withval" = sys; then
2125 ac_cv_use_regex='wxUSE_REGEX=sys'
2126 else
2127 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2128 fi
2129
2130 else
2131
2132 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2133 if test "x$LINE" != x ; then
2134 eval "DEFAULT_$LINE"
2135 else
2136 no_cache=1
2137 fi
2138
2139 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2140
2141 fi
2142
2143
2144 eval "$ac_cv_use_regex"
2145 if test "$no_cache" != 1; then
2146 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2147 fi
2148
2149 if test "$wxUSE_REGEX" = yes; then
2150 echo "$ac_t""yes" 1>&6
2151 elif test "$wxUSE_REGEX" = no; then
2152 echo "$ac_t""no" 1>&6
2153 elif test "$wxUSE_REGEX" = sys; then
2154 echo "$ac_t""system version" 1>&6
2155 else
2156 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2157 fi
2158
2159
2160 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2161 echo "configure:2162: checking for --with-zlib" >&5
2162 no_cache=0
2163 # Check whether --with-zlib or --without-zlib was given.
2164 if test "${with_zlib+set}" = set; then
2165 withval="$with_zlib"
2166
2167 if test "$withval" = yes; then
2168 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2169 elif test "$withval" = no; then
2170 ac_cv_use_zlib='wxUSE_ZLIB=no'
2171 elif test "$withval" = sys; then
2172 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2173 else
2174 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2175 fi
2176
2177 else
2178
2179 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2180 if test "x$LINE" != x ; then
2181 eval "DEFAULT_$LINE"
2182 else
2183 no_cache=1
2184 fi
2185
2186 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2187
2188 fi
2189
2190
2191 eval "$ac_cv_use_zlib"
2192 if test "$no_cache" != 1; then
2193 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2194 fi
2195
2196 if test "$wxUSE_ZLIB" = yes; then
2197 echo "$ac_t""yes" 1>&6
2198 elif test "$wxUSE_ZLIB" = no; then
2199 echo "$ac_t""no" 1>&6
2200 elif test "$wxUSE_ZLIB" = sys; then
2201 echo "$ac_t""system version" 1>&6
2202 else
2203 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2204 fi
2205
2206
2207 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2208 echo "configure:2209: checking for --with-odbc" >&5
2209 no_cache=0
2210 # Check whether --with-odbc or --without-odbc was given.
2211 if test "${with_odbc+set}" = set; then
2212 withval="$with_odbc"
2213
2214 if test "$withval" = yes; then
2215 ac_cv_use_odbc='wxUSE_ODBC=yes'
2216 else
2217 ac_cv_use_odbc='wxUSE_ODBC=no'
2218 fi
2219
2220 else
2221
2222 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2223 if test "x$LINE" != x ; then
2224 eval "DEFAULT_$LINE"
2225 else
2226 no_cache=1
2227 fi
2228
2229 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2230
2231 fi
2232
2233
2234 eval "$ac_cv_use_odbc"
2235 if test "$no_cache" != 1; then
2236 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2237 fi
2238
2239 if test "$wxUSE_ODBC" = yes; then
2240 echo "$ac_t""yes" 1>&6
2241 else
2242 echo "$ac_t""no" 1>&6
2243 fi
2244
2245
2246
2247
2248
2249 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2250 echo "configure:2251: checking for --enable-shared" >&5
2251 no_cache=0
2252 # Check whether --enable-shared or --disable-shared was given.
2253 if test "${enable_shared+set}" = set; then
2254 enableval="$enable_shared"
2255
2256 if test "$enableval" = yes; then
2257 ac_cv_use_shared='wxUSE_SHARED=yes'
2258 else
2259 ac_cv_use_shared='wxUSE_SHARED=no'
2260 fi
2261
2262 else
2263
2264 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2265 if test "x$LINE" != x ; then
2266 eval "DEFAULT_$LINE"
2267 else
2268 no_cache=1
2269 fi
2270
2271 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2272
2273 fi
2274
2275
2276 eval "$ac_cv_use_shared"
2277 if test "$no_cache" != 1; then
2278 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2279 fi
2280
2281 if test "$wxUSE_SHARED" = yes; then
2282 echo "$ac_t""yes" 1>&6
2283 else
2284 echo "$ac_t""no" 1>&6
2285 fi
2286
2287
2288 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2289 echo "configure:2290: checking for --enable-soname" >&5
2290 no_cache=0
2291 # Check whether --enable-soname or --disable-soname was given.
2292 if test "${enable_soname+set}" = set; then
2293 enableval="$enable_soname"
2294
2295 if test "$enableval" = yes; then
2296 ac_cv_use_soname='wxUSE_SONAME=yes'
2297 else
2298 ac_cv_use_soname='wxUSE_SONAME=no'
2299 fi
2300
2301 else
2302
2303 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2304 if test "x$LINE" != x ; then
2305 eval "DEFAULT_$LINE"
2306 else
2307 no_cache=1
2308 fi
2309
2310 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2311
2312 fi
2313
2314
2315 eval "$ac_cv_use_soname"
2316 if test "$no_cache" != 1; then
2317 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2318 fi
2319
2320 if test "$wxUSE_SONAME" = yes; then
2321 echo "$ac_t""yes" 1>&6
2322 else
2323 echo "$ac_t""no" 1>&6
2324 fi
2325
2326
2327 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2328 echo "configure:2329: checking for --enable-optimise" >&5
2329 no_cache=0
2330 # Check whether --enable-optimise or --disable-optimise was given.
2331 if test "${enable_optimise+set}" = set; then
2332 enableval="$enable_optimise"
2333
2334 if test "$enableval" = yes; then
2335 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2336 else
2337 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2338 fi
2339
2340 else
2341
2342 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2343 if test "x$LINE" != x ; then
2344 eval "DEFAULT_$LINE"
2345 else
2346 no_cache=1
2347 fi
2348
2349 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2350
2351 fi
2352
2353
2354 eval "$ac_cv_use_optimise"
2355 if test "$no_cache" != 1; then
2356 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2357 fi
2358
2359 if test "$wxUSE_OPTIMISE" = yes; then
2360 echo "$ac_t""yes" 1>&6
2361 else
2362 echo "$ac_t""no" 1>&6
2363 fi
2364
2365
2366 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2367 echo "configure:2368: checking for --enable-debug" >&5
2368 no_cache=0
2369 # Check whether --enable-debug or --disable-debug was given.
2370 if test "${enable_debug+set}" = set; then
2371 enableval="$enable_debug"
2372
2373 if test "$enableval" = yes; then
2374 ac_cv_use_debug='wxUSE_DEBUG=yes'
2375 else
2376 ac_cv_use_debug='wxUSE_DEBUG=no'
2377 fi
2378
2379 else
2380
2381 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2382 if test "x$LINE" != x ; then
2383 eval "DEFAULT_$LINE"
2384 else
2385 no_cache=1
2386 fi
2387
2388 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2389
2390 fi
2391
2392
2393 eval "$ac_cv_use_debug"
2394 if test "$no_cache" != 1; then
2395 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2396 fi
2397
2398 if test "$wxUSE_DEBUG" = yes; then
2399 echo "$ac_t""yes" 1>&6
2400 else
2401 echo "$ac_t""no" 1>&6
2402 fi
2403
2404
2405 if test "$wxUSE_DEBUG" = "yes"; then
2406 DEFAULT_wxUSE_DEBUG_FLAG=yes
2407 DEFAULT_wxUSE_DEBUG_INFO=yes
2408 elif test "$wxUSE_DEBUG" = "no"; then
2409 DEFAULT_wxUSE_DEBUG_FLAG=no
2410 DEFAULT_wxUSE_DEBUG_INFO=no
2411 fi
2412
2413
2414 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2415 echo "configure:2416: checking for --enable-debug_flag" >&5
2416 no_cache=0
2417 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2418 if test "${enable_debug_flag+set}" = set; then
2419 enableval="$enable_debug_flag"
2420
2421 if test "$enableval" = yes; then
2422 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2423 else
2424 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2425 fi
2426
2427 else
2428
2429 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2430 if test "x$LINE" != x ; then
2431 eval "DEFAULT_$LINE"
2432 else
2433 no_cache=1
2434 fi
2435
2436 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2437
2438 fi
2439
2440
2441 eval "$ac_cv_use_debug_flag"
2442 if test "$no_cache" != 1; then
2443 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2444 fi
2445
2446 if test "$wxUSE_DEBUG_FLAG" = yes; then
2447 echo "$ac_t""yes" 1>&6
2448 else
2449 echo "$ac_t""no" 1>&6
2450 fi
2451
2452
2453 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2454 echo "configure:2455: checking for --enable-debug_info" >&5
2455 no_cache=0
2456 # Check whether --enable-debug_info or --disable-debug_info was given.
2457 if test "${enable_debug_info+set}" = set; then
2458 enableval="$enable_debug_info"
2459
2460 if test "$enableval" = yes; then
2461 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2462 else
2463 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2464 fi
2465
2466 else
2467
2468 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2469 if test "x$LINE" != x ; then
2470 eval "DEFAULT_$LINE"
2471 else
2472 no_cache=1
2473 fi
2474
2475 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2476
2477 fi
2478
2479
2480 eval "$ac_cv_use_debug_info"
2481 if test "$no_cache" != 1; then
2482 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2483 fi
2484
2485 if test "$wxUSE_DEBUG_INFO" = yes; then
2486 echo "$ac_t""yes" 1>&6
2487 else
2488 echo "$ac_t""no" 1>&6
2489 fi
2490
2491
2492 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2493 echo "configure:2494: checking for --enable-debug_gdb" >&5
2494 no_cache=0
2495 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2496 if test "${enable_debug_gdb+set}" = set; then
2497 enableval="$enable_debug_gdb"
2498
2499 if test "$enableval" = yes; then
2500 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2501 else
2502 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2503 fi
2504
2505 else
2506
2507 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2508 if test "x$LINE" != x ; then
2509 eval "DEFAULT_$LINE"
2510 else
2511 no_cache=1
2512 fi
2513
2514 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2515
2516 fi
2517
2518
2519 eval "$ac_cv_use_debug_gdb"
2520 if test "$no_cache" != 1; then
2521 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2522 fi
2523
2524 if test "$wxUSE_DEBUG_GDB" = yes; then
2525 echo "$ac_t""yes" 1>&6
2526 else
2527 echo "$ac_t""no" 1>&6
2528 fi
2529
2530
2531 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2532 echo "configure:2533: checking for --enable-debug_cntxt" >&5
2533 no_cache=0
2534 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2535 if test "${enable_debug_cntxt+set}" = set; then
2536 enableval="$enable_debug_cntxt"
2537
2538 if test "$enableval" = yes; then
2539 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2540 else
2541 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2542 fi
2543
2544 else
2545
2546 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2547 if test "x$LINE" != x ; then
2548 eval "DEFAULT_$LINE"
2549 else
2550 no_cache=1
2551 fi
2552
2553 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2554
2555 fi
2556
2557
2558 eval "$ac_cv_use_debug_cntxt"
2559 if test "$no_cache" != 1; then
2560 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2561 fi
2562
2563 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2564 echo "$ac_t""yes" 1>&6
2565 else
2566 echo "$ac_t""no" 1>&6
2567 fi
2568
2569
2570 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2571 echo "configure:2572: checking for --enable-mem_tracing" >&5
2572 no_cache=0
2573 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2574 if test "${enable_mem_tracing+set}" = set; then
2575 enableval="$enable_mem_tracing"
2576
2577 if test "$enableval" = yes; then
2578 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2579 else
2580 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2581 fi
2582
2583 else
2584
2585 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2586 if test "x$LINE" != x ; then
2587 eval "DEFAULT_$LINE"
2588 else
2589 no_cache=1
2590 fi
2591
2592 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2593
2594 fi
2595
2596
2597 eval "$ac_cv_use_mem_tracing"
2598 if test "$no_cache" != 1; then
2599 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2600 fi
2601
2602 if test "$wxUSE_MEM_TRACING" = yes; then
2603 echo "$ac_t""yes" 1>&6
2604 else
2605 echo "$ac_t""no" 1>&6
2606 fi
2607
2608
2609 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2610 echo "configure:2611: checking for --enable-profile" >&5
2611 no_cache=0
2612 # Check whether --enable-profile or --disable-profile was given.
2613 if test "${enable_profile+set}" = set; then
2614 enableval="$enable_profile"
2615
2616 if test "$enableval" = yes; then
2617 ac_cv_use_profile='wxUSE_PROFILE=yes'
2618 else
2619 ac_cv_use_profile='wxUSE_PROFILE=no'
2620 fi
2621
2622 else
2623
2624 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2625 if test "x$LINE" != x ; then
2626 eval "DEFAULT_$LINE"
2627 else
2628 no_cache=1
2629 fi
2630
2631 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2632
2633 fi
2634
2635
2636 eval "$ac_cv_use_profile"
2637 if test "$no_cache" != 1; then
2638 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2639 fi
2640
2641 if test "$wxUSE_PROFILE" = yes; then
2642 echo "$ac_t""yes" 1>&6
2643 else
2644 echo "$ac_t""no" 1>&6
2645 fi
2646
2647
2648 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2649 echo "configure:2650: checking for --enable-no_rtti" >&5
2650 no_cache=0
2651 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2652 if test "${enable_no_rtti+set}" = set; then
2653 enableval="$enable_no_rtti"
2654
2655 if test "$enableval" = yes; then
2656 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2657 else
2658 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2659 fi
2660
2661 else
2662
2663 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2664 if test "x$LINE" != x ; then
2665 eval "DEFAULT_$LINE"
2666 else
2667 no_cache=1
2668 fi
2669
2670 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2671
2672 fi
2673
2674
2675 eval "$ac_cv_use_no_rtti"
2676 if test "$no_cache" != 1; then
2677 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2678 fi
2679
2680 if test "$wxUSE_NO_RTTI" = yes; then
2681 echo "$ac_t""yes" 1>&6
2682 else
2683 echo "$ac_t""no" 1>&6
2684 fi
2685
2686
2687 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2688 echo "configure:2689: checking for --enable-no_exceptions" >&5
2689 no_cache=0
2690 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2691 if test "${enable_no_exceptions+set}" = set; then
2692 enableval="$enable_no_exceptions"
2693
2694 if test "$enableval" = yes; then
2695 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2696 else
2697 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2698 fi
2699
2700 else
2701
2702 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2703 if test "x$LINE" != x ; then
2704 eval "DEFAULT_$LINE"
2705 else
2706 no_cache=1
2707 fi
2708
2709 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2710
2711 fi
2712
2713
2714 eval "$ac_cv_use_no_exceptions"
2715 if test "$no_cache" != 1; then
2716 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2717 fi
2718
2719 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2720 echo "$ac_t""yes" 1>&6
2721 else
2722 echo "$ac_t""no" 1>&6
2723 fi
2724
2725
2726 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2727 echo "configure:2728: checking for --enable-permissive" >&5
2728 no_cache=0
2729 # Check whether --enable-permissive or --disable-permissive was given.
2730 if test "${enable_permissive+set}" = set; then
2731 enableval="$enable_permissive"
2732
2733 if test "$enableval" = yes; then
2734 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2735 else
2736 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2737 fi
2738
2739 else
2740
2741 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2742 if test "x$LINE" != x ; then
2743 eval "DEFAULT_$LINE"
2744 else
2745 no_cache=1
2746 fi
2747
2748 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2749
2750 fi
2751
2752
2753 eval "$ac_cv_use_permissive"
2754 if test "$no_cache" != 1; then
2755 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2756 fi
2757
2758 if test "$wxUSE_PERMISSIVE" = yes; then
2759 echo "$ac_t""yes" 1>&6
2760 else
2761 echo "$ac_t""no" 1>&6
2762 fi
2763
2764
2765 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2766 echo "configure:2767: checking for --enable-no_deps" >&5
2767 no_cache=0
2768 # Check whether --enable-no_deps or --disable-no_deps was given.
2769 if test "${enable_no_deps+set}" = set; then
2770 enableval="$enable_no_deps"
2771
2772 if test "$enableval" = yes; then
2773 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2774 else
2775 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2776 fi
2777
2778 else
2779
2780 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2781 if test "x$LINE" != x ; then
2782 eval "DEFAULT_$LINE"
2783 else
2784 no_cache=1
2785 fi
2786
2787 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2788
2789 fi
2790
2791
2792 eval "$ac_cv_use_no_deps"
2793 if test "$no_cache" != 1; then
2794 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2795 fi
2796
2797 if test "$wxUSE_NO_DEPS" = yes; then
2798 echo "$ac_t""yes" 1>&6
2799 else
2800 echo "$ac_t""no" 1>&6
2801 fi
2802
2803
2804
2805 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2806 echo "configure:2807: checking for --enable-compat20" >&5
2807 no_cache=0
2808 # Check whether --enable-compat20 or --disable-compat20 was given.
2809 if test "${enable_compat20+set}" = set; then
2810 enableval="$enable_compat20"
2811
2812 if test "$enableval" = yes; then
2813 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2814 else
2815 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2816 fi
2817
2818 else
2819
2820 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2821 if test "x$LINE" != x ; then
2822 eval "DEFAULT_$LINE"
2823 else
2824 no_cache=1
2825 fi
2826
2827 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2828
2829 fi
2830
2831
2832 eval "$ac_cv_use_compat20"
2833 if test "$no_cache" != 1; then
2834 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2835 fi
2836
2837 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2838 echo "$ac_t""yes" 1>&6
2839 else
2840 echo "$ac_t""no" 1>&6
2841 fi
2842
2843
2844 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2845 echo "configure:2846: checking for --enable-compat22" >&5
2846 no_cache=0
2847 # Check whether --enable-compat22 or --disable-compat22 was given.
2848 if test "${enable_compat22+set}" = set; then
2849 enableval="$enable_compat22"
2850
2851 if test "$enableval" = yes; then
2852 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2853 else
2854 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2855 fi
2856
2857 else
2858
2859 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2860 if test "x$LINE" != x ; then
2861 eval "DEFAULT_$LINE"
2862 else
2863 no_cache=1
2864 fi
2865
2866 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2867
2868 fi
2869
2870
2871 eval "$ac_cv_use_compat22"
2872 if test "$no_cache" != 1; then
2873 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2874 fi
2875
2876 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2877 echo "$ac_t""yes" 1>&6
2878 else
2879 echo "$ac_t""no" 1>&6
2880 fi
2881
2882
2883
2884
2885 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2886 echo "configure:2887: checking for --enable-intl" >&5
2887 no_cache=0
2888 # Check whether --enable-intl or --disable-intl was given.
2889 if test "${enable_intl+set}" = set; then
2890 enableval="$enable_intl"
2891
2892 if test "$enableval" = yes; then
2893 ac_cv_use_intl='wxUSE_INTL=yes'
2894 else
2895 ac_cv_use_intl='wxUSE_INTL=no'
2896 fi
2897
2898 else
2899
2900 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2901 if test "x$LINE" != x ; then
2902 eval "DEFAULT_$LINE"
2903 else
2904 no_cache=1
2905 fi
2906
2907 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2908
2909 fi
2910
2911
2912 eval "$ac_cv_use_intl"
2913 if test "$no_cache" != 1; then
2914 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2915 fi
2916
2917 if test "$wxUSE_INTL" = yes; then
2918 echo "$ac_t""yes" 1>&6
2919 else
2920 echo "$ac_t""no" 1>&6
2921 fi
2922
2923
2924 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2925 echo "configure:2926: checking for --enable-config" >&5
2926 no_cache=0
2927 # Check whether --enable-config or --disable-config was given.
2928 if test "${enable_config+set}" = set; then
2929 enableval="$enable_config"
2930
2931 if test "$enableval" = yes; then
2932 ac_cv_use_config='wxUSE_CONFIG=yes'
2933 else
2934 ac_cv_use_config='wxUSE_CONFIG=no'
2935 fi
2936
2937 else
2938
2939 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2940 if test "x$LINE" != x ; then
2941 eval "DEFAULT_$LINE"
2942 else
2943 no_cache=1
2944 fi
2945
2946 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2947
2948 fi
2949
2950
2951 eval "$ac_cv_use_config"
2952 if test "$no_cache" != 1; then
2953 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2954 fi
2955
2956 if test "$wxUSE_CONFIG" = yes; then
2957 echo "$ac_t""yes" 1>&6
2958 else
2959 echo "$ac_t""no" 1>&6
2960 fi
2961
2962
2963
2964 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2965 echo "configure:2966: checking for --enable-sockets" >&5
2966 no_cache=0
2967 # Check whether --enable-sockets or --disable-sockets was given.
2968 if test "${enable_sockets+set}" = set; then
2969 enableval="$enable_sockets"
2970
2971 if test "$enableval" = yes; then
2972 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2973 else
2974 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2975 fi
2976
2977 else
2978
2979 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2980 if test "x$LINE" != x ; then
2981 eval "DEFAULT_$LINE"
2982 else
2983 no_cache=1
2984 fi
2985
2986 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2987
2988 fi
2989
2990
2991 eval "$ac_cv_use_sockets"
2992 if test "$no_cache" != 1; then
2993 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2994 fi
2995
2996 if test "$wxUSE_SOCKETS" = yes; then
2997 echo "$ac_t""yes" 1>&6
2998 else
2999 echo "$ac_t""no" 1>&6
3000 fi
3001
3002
3003
3004 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3005 echo "configure:3006: checking for --enable-ipc" >&5
3006 no_cache=0
3007 # Check whether --enable-ipc or --disable-ipc was given.
3008 if test "${enable_ipc+set}" = set; then
3009 enableval="$enable_ipc"
3010
3011 if test "$enableval" = yes; then
3012 ac_cv_use_ipc='wxUSE_IPC=yes'
3013 else
3014 ac_cv_use_ipc='wxUSE_IPC=no'
3015 fi
3016
3017 else
3018
3019 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3020 if test "x$LINE" != x ; then
3021 eval "DEFAULT_$LINE"
3022 else
3023 no_cache=1
3024 fi
3025
3026 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3027
3028 fi
3029
3030
3031 eval "$ac_cv_use_ipc"
3032 if test "$no_cache" != 1; then
3033 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3034 fi
3035
3036 if test "$wxUSE_IPC" = yes; then
3037 echo "$ac_t""yes" 1>&6
3038 else
3039 echo "$ac_t""no" 1>&6
3040 fi
3041
3042
3043
3044 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3045 echo "configure:3046: checking for --enable-cmdline" >&5
3046 no_cache=0
3047 # Check whether --enable-cmdline or --disable-cmdline was given.
3048 if test "${enable_cmdline+set}" = set; then
3049 enableval="$enable_cmdline"
3050
3051 if test "$enableval" = yes; then
3052 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3053 else
3054 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3055 fi
3056
3057 else
3058
3059 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3060 if test "x$LINE" != x ; then
3061 eval "DEFAULT_$LINE"
3062 else
3063 no_cache=1
3064 fi
3065
3066 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3067
3068 fi
3069
3070
3071 eval "$ac_cv_use_cmdline"
3072 if test "$no_cache" != 1; then
3073 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3074 fi
3075
3076 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3077 echo "$ac_t""yes" 1>&6
3078 else
3079 echo "$ac_t""no" 1>&6
3080 fi
3081
3082
3083 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3084 echo "configure:3085: checking for --enable-datetime" >&5
3085 no_cache=0
3086 # Check whether --enable-datetime or --disable-datetime was given.
3087 if test "${enable_datetime+set}" = set; then
3088 enableval="$enable_datetime"
3089
3090 if test "$enableval" = yes; then
3091 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3092 else
3093 ac_cv_use_datetime='wxUSE_DATETIME=no'
3094 fi
3095
3096 else
3097
3098 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3099 if test "x$LINE" != x ; then
3100 eval "DEFAULT_$LINE"
3101 else
3102 no_cache=1
3103 fi
3104
3105 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3106
3107 fi
3108
3109
3110 eval "$ac_cv_use_datetime"
3111 if test "$no_cache" != 1; then
3112 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3113 fi
3114
3115 if test "$wxUSE_DATETIME" = yes; then
3116 echo "$ac_t""yes" 1>&6
3117 else
3118 echo "$ac_t""no" 1>&6
3119 fi
3120
3121
3122 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3123 echo "configure:3124: checking for --enable-timedate" >&5
3124 no_cache=0
3125 # Check whether --enable-timedate or --disable-timedate was given.
3126 if test "${enable_timedate+set}" = set; then
3127 enableval="$enable_timedate"
3128
3129 if test "$enableval" = yes; then
3130 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3131 else
3132 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3133 fi
3134
3135 else
3136
3137 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3138 if test "x$LINE" != x ; then
3139 eval "DEFAULT_$LINE"
3140 else
3141 no_cache=1
3142 fi
3143
3144 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3145
3146 fi
3147
3148
3149 eval "$ac_cv_use_timedate"
3150 if test "$no_cache" != 1; then
3151 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3152 fi
3153
3154 if test "$wxUSE_TIMEDATE" = yes; then
3155 echo "$ac_t""yes" 1>&6
3156 else
3157 echo "$ac_t""no" 1>&6
3158 fi
3159
3160
3161 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3162 echo "configure:3163: checking for --enable-stopwatch" >&5
3163 no_cache=0
3164 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3165 if test "${enable_stopwatch+set}" = set; then
3166 enableval="$enable_stopwatch"
3167
3168 if test "$enableval" = yes; then
3169 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3170 else
3171 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3172 fi
3173
3174 else
3175
3176 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3177 if test "x$LINE" != x ; then
3178 eval "DEFAULT_$LINE"
3179 else
3180 no_cache=1
3181 fi
3182
3183 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3184
3185 fi
3186
3187
3188 eval "$ac_cv_use_stopwatch"
3189 if test "$no_cache" != 1; then
3190 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3191 fi
3192
3193 if test "$wxUSE_STOPWATCH" = yes; then
3194 echo "$ac_t""yes" 1>&6
3195 else
3196 echo "$ac_t""no" 1>&6
3197 fi
3198
3199
3200 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3201 echo "configure:3202: checking for --enable-dialupman" >&5
3202 no_cache=0
3203 # Check whether --enable-dialupman or --disable-dialupman was given.
3204 if test "${enable_dialupman+set}" = set; then
3205 enableval="$enable_dialupman"
3206
3207 if test "$enableval" = yes; then
3208 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3209 else
3210 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3211 fi
3212
3213 else
3214
3215 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3216 if test "x$LINE" != x ; then
3217 eval "DEFAULT_$LINE"
3218 else
3219 no_cache=1
3220 fi
3221
3222 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3223
3224 fi
3225
3226
3227 eval "$ac_cv_use_dialupman"
3228 if test "$no_cache" != 1; then
3229 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3230 fi
3231
3232 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3233 echo "$ac_t""yes" 1>&6
3234 else
3235 echo "$ac_t""no" 1>&6
3236 fi
3237
3238
3239 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3240 echo "configure:3241: checking for --enable-apple_ieee" >&5
3241 no_cache=0
3242 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3243 if test "${enable_apple_ieee+set}" = set; then
3244 enableval="$enable_apple_ieee"
3245
3246 if test "$enableval" = yes; then
3247 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3248 else
3249 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3250 fi
3251
3252 else
3253
3254 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3255 if test "x$LINE" != x ; then
3256 eval "DEFAULT_$LINE"
3257 else
3258 no_cache=1
3259 fi
3260
3261 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3262
3263 fi
3264
3265
3266 eval "$ac_cv_use_apple_ieee"
3267 if test "$no_cache" != 1; then
3268 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3269 fi
3270
3271 if test "$wxUSE_APPLE_IEEE" = yes; then
3272 echo "$ac_t""yes" 1>&6
3273 else
3274 echo "$ac_t""no" 1>&6
3275 fi
3276
3277
3278 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3279 echo "configure:3280: checking for --enable-timer" >&5
3280 no_cache=0
3281 # Check whether --enable-timer or --disable-timer was given.
3282 if test "${enable_timer+set}" = set; then
3283 enableval="$enable_timer"
3284
3285 if test "$enableval" = yes; then
3286 ac_cv_use_timer='wxUSE_TIMER=yes'
3287 else
3288 ac_cv_use_timer='wxUSE_TIMER=no'
3289 fi
3290
3291 else
3292
3293 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3294 if test "x$LINE" != x ; then
3295 eval "DEFAULT_$LINE"
3296 else
3297 no_cache=1
3298 fi
3299
3300 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3301
3302 fi
3303
3304
3305 eval "$ac_cv_use_timer"
3306 if test "$no_cache" != 1; then
3307 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3308 fi
3309
3310 if test "$wxUSE_TIMER" = yes; then
3311 echo "$ac_t""yes" 1>&6
3312 else
3313 echo "$ac_t""no" 1>&6
3314 fi
3315
3316
3317 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3318 echo "configure:3319: checking for --enable-wave" >&5
3319 no_cache=0
3320 # Check whether --enable-wave or --disable-wave was given.
3321 if test "${enable_wave+set}" = set; then
3322 enableval="$enable_wave"
3323
3324 if test "$enableval" = yes; then
3325 ac_cv_use_wave='wxUSE_WAVE=yes'
3326 else
3327 ac_cv_use_wave='wxUSE_WAVE=no'
3328 fi
3329
3330 else
3331
3332 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3333 if test "x$LINE" != x ; then
3334 eval "DEFAULT_$LINE"
3335 else
3336 no_cache=1
3337 fi
3338
3339 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3340
3341 fi
3342
3343
3344 eval "$ac_cv_use_wave"
3345 if test "$no_cache" != 1; then
3346 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3347 fi
3348
3349 if test "$wxUSE_WAVE" = yes; then
3350 echo "$ac_t""yes" 1>&6
3351 else
3352 echo "$ac_t""no" 1>&6
3353 fi
3354
3355
3356 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3357 echo "configure:3358: checking for --enable-fraction" >&5
3358 no_cache=0
3359 # Check whether --enable-fraction or --disable-fraction was given.
3360 if test "${enable_fraction+set}" = set; then
3361 enableval="$enable_fraction"
3362
3363 if test "$enableval" = yes; then
3364 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3365 else
3366 ac_cv_use_fraction='wxUSE_FRACTION=no'
3367 fi
3368
3369 else
3370
3371 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3379
3380 fi
3381
3382
3383 eval "$ac_cv_use_fraction"
3384 if test "$no_cache" != 1; then
3385 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3386 fi
3387
3388 if test "$wxUSE_FRACTION" = yes; then
3389 echo "$ac_t""yes" 1>&6
3390 else
3391 echo "$ac_t""no" 1>&6
3392 fi
3393
3394
3395 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3396 echo "configure:3397: checking for --enable-dynlib" >&5
3397 no_cache=0
3398 # Check whether --enable-dynlib or --disable-dynlib was given.
3399 if test "${enable_dynlib+set}" = set; then
3400 enableval="$enable_dynlib"
3401
3402 if test "$enableval" = yes; then
3403 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3404 else
3405 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3406 fi
3407
3408 else
3409
3410 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3411 if test "x$LINE" != x ; then
3412 eval "DEFAULT_$LINE"
3413 else
3414 no_cache=1
3415 fi
3416
3417 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3418
3419 fi
3420
3421
3422 eval "$ac_cv_use_dynlib"
3423 if test "$no_cache" != 1; then
3424 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3425 fi
3426
3427 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3428 echo "$ac_t""yes" 1>&6
3429 else
3430 echo "$ac_t""no" 1>&6
3431 fi
3432
3433
3434 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3435 echo "configure:3436: checking for --enable-longlong" >&5
3436 no_cache=0
3437 # Check whether --enable-longlong or --disable-longlong was given.
3438 if test "${enable_longlong+set}" = set; then
3439 enableval="$enable_longlong"
3440
3441 if test "$enableval" = yes; then
3442 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3443 else
3444 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3445 fi
3446
3447 else
3448
3449 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3450 if test "x$LINE" != x ; then
3451 eval "DEFAULT_$LINE"
3452 else
3453 no_cache=1
3454 fi
3455
3456 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3457
3458 fi
3459
3460
3461 eval "$ac_cv_use_longlong"
3462 if test "$no_cache" != 1; then
3463 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3464 fi
3465
3466 if test "$wxUSE_LONGLONG" = yes; then
3467 echo "$ac_t""yes" 1>&6
3468 else
3469 echo "$ac_t""no" 1>&6
3470 fi
3471
3472
3473 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3474 echo "configure:3475: checking for --enable-geometry" >&5
3475 no_cache=0
3476 # Check whether --enable-geometry or --disable-geometry was given.
3477 if test "${enable_geometry+set}" = set; then
3478 enableval="$enable_geometry"
3479
3480 if test "$enableval" = yes; then
3481 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3482 else
3483 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3484 fi
3485
3486 else
3487
3488 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3489 if test "x$LINE" != x ; then
3490 eval "DEFAULT_$LINE"
3491 else
3492 no_cache=1
3493 fi
3494
3495 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3496
3497 fi
3498
3499
3500 eval "$ac_cv_use_geometry"
3501 if test "$no_cache" != 1; then
3502 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3503 fi
3504
3505 if test "$wxUSE_GEOMETRY" = yes; then
3506 echo "$ac_t""yes" 1>&6
3507 else
3508 echo "$ac_t""no" 1>&6
3509 fi
3510
3511
3512 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3513 echo "configure:3514: checking for --enable-log" >&5
3514 no_cache=0
3515 # Check whether --enable-log or --disable-log was given.
3516 if test "${enable_log+set}" = set; then
3517 enableval="$enable_log"
3518
3519 if test "$enableval" = yes; then
3520 ac_cv_use_log='wxUSE_LOG=yes'
3521 else
3522 ac_cv_use_log='wxUSE_LOG=no'
3523 fi
3524
3525 else
3526
3527 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3528 if test "x$LINE" != x ; then
3529 eval "DEFAULT_$LINE"
3530 else
3531 no_cache=1
3532 fi
3533
3534 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3535
3536 fi
3537
3538
3539 eval "$ac_cv_use_log"
3540 if test "$no_cache" != 1; then
3541 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3542 fi
3543
3544 if test "$wxUSE_LOG" = yes; then
3545 echo "$ac_t""yes" 1>&6
3546 else
3547 echo "$ac_t""no" 1>&6
3548 fi
3549
3550
3551 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3552 echo "configure:3553: checking for --enable-streams" >&5
3553 no_cache=0
3554 # Check whether --enable-streams or --disable-streams was given.
3555 if test "${enable_streams+set}" = set; then
3556 enableval="$enable_streams"
3557
3558 if test "$enableval" = yes; then
3559 ac_cv_use_streams='wxUSE_STREAMS=yes'
3560 else
3561 ac_cv_use_streams='wxUSE_STREAMS=no'
3562 fi
3563
3564 else
3565
3566 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3567 if test "x$LINE" != x ; then
3568 eval "DEFAULT_$LINE"
3569 else
3570 no_cache=1
3571 fi
3572
3573 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3574
3575 fi
3576
3577
3578 eval "$ac_cv_use_streams"
3579 if test "$no_cache" != 1; then
3580 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3581 fi
3582
3583 if test "$wxUSE_STREAMS" = yes; then
3584 echo "$ac_t""yes" 1>&6
3585 else
3586 echo "$ac_t""no" 1>&6
3587 fi
3588
3589
3590 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3591 echo "configure:3592: checking for --enable-file" >&5
3592 no_cache=0
3593 # Check whether --enable-file or --disable-file was given.
3594 if test "${enable_file+set}" = set; then
3595 enableval="$enable_file"
3596
3597 if test "$enableval" = yes; then
3598 ac_cv_use_file='wxUSE_FILE=yes'
3599 else
3600 ac_cv_use_file='wxUSE_FILE=no'
3601 fi
3602
3603 else
3604
3605 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3606 if test "x$LINE" != x ; then
3607 eval "DEFAULT_$LINE"
3608 else
3609 no_cache=1
3610 fi
3611
3612 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3613
3614 fi
3615
3616
3617 eval "$ac_cv_use_file"
3618 if test "$no_cache" != 1; then
3619 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3620 fi
3621
3622 if test "$wxUSE_FILE" = yes; then
3623 echo "$ac_t""yes" 1>&6
3624 else
3625 echo "$ac_t""no" 1>&6
3626 fi
3627
3628
3629 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3630 echo "configure:3631: checking for --enable-ffile" >&5
3631 no_cache=0
3632 # Check whether --enable-ffile or --disable-ffile was given.
3633 if test "${enable_ffile+set}" = set; then
3634 enableval="$enable_ffile"
3635
3636 if test "$enableval" = yes; then
3637 ac_cv_use_ffile='wxUSE_FFILE=yes'
3638 else
3639 ac_cv_use_ffile='wxUSE_FFILE=no'
3640 fi
3641
3642 else
3643
3644 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3645 if test "x$LINE" != x ; then
3646 eval "DEFAULT_$LINE"
3647 else
3648 no_cache=1
3649 fi
3650
3651 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3652
3653 fi
3654
3655
3656 eval "$ac_cv_use_ffile"
3657 if test "$no_cache" != 1; then
3658 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3659 fi
3660
3661 if test "$wxUSE_FFILE" = yes; then
3662 echo "$ac_t""yes" 1>&6
3663 else
3664 echo "$ac_t""no" 1>&6
3665 fi
3666
3667
3668 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3669 echo "configure:3670: checking for --enable-textfile" >&5
3670 no_cache=0
3671 # Check whether --enable-textfile or --disable-textfile was given.
3672 if test "${enable_textfile+set}" = set; then
3673 enableval="$enable_textfile"
3674
3675 if test "$enableval" = yes; then
3676 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3677 else
3678 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3679 fi
3680
3681 else
3682
3683 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
3690 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3691
3692 fi
3693
3694
3695 eval "$ac_cv_use_textfile"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_TEXTFILE" = yes; then
3701 echo "$ac_t""yes" 1>&6
3702 else
3703 echo "$ac_t""no" 1>&6
3704 fi
3705
3706
3707 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3708 echo "configure:3709: checking for --enable-fontmap" >&5
3709 no_cache=0
3710 # Check whether --enable-fontmap or --disable-fontmap was given.
3711 if test "${enable_fontmap+set}" = set; then
3712 enableval="$enable_fontmap"
3713
3714 if test "$enableval" = yes; then
3715 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3716 else
3717 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3718 fi
3719
3720 else
3721
3722 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3723 if test "x$LINE" != x ; then
3724 eval "DEFAULT_$LINE"
3725 else
3726 no_cache=1
3727 fi
3728
3729 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3730
3731 fi
3732
3733
3734 eval "$ac_cv_use_fontmap"
3735 if test "$no_cache" != 1; then
3736 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3737 fi
3738
3739 if test "$wxUSE_FONTMAP" = yes; then
3740 echo "$ac_t""yes" 1>&6
3741 else
3742 echo "$ac_t""no" 1>&6
3743 fi
3744
3745
3746 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3747 echo "configure:3748: checking for --enable-unicode" >&5
3748 no_cache=0
3749 # Check whether --enable-unicode or --disable-unicode was given.
3750 if test "${enable_unicode+set}" = set; then
3751 enableval="$enable_unicode"
3752
3753 if test "$enableval" = yes; then
3754 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3755 else
3756 ac_cv_use_unicode='wxUSE_UNICODE=no'
3757 fi
3758
3759 else
3760
3761 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3762 if test "x$LINE" != x ; then
3763 eval "DEFAULT_$LINE"
3764 else
3765 no_cache=1
3766 fi
3767
3768 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3769
3770 fi
3771
3772
3773 eval "$ac_cv_use_unicode"
3774 if test "$no_cache" != 1; then
3775 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3776 fi
3777
3778 if test "$wxUSE_UNICODE" = yes; then
3779 echo "$ac_t""yes" 1>&6
3780 else
3781 echo "$ac_t""no" 1>&6
3782 fi
3783
3784
3785 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
3786 echo "configure:3787: checking for --enable-wcsrtombs" >&5
3787 no_cache=0
3788 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3789 if test "${enable_wcsrtombs+set}" = set; then
3790 enableval="$enable_wcsrtombs"
3791
3792 if test "$enableval" = yes; then
3793 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3794 else
3795 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3796 fi
3797
3798 else
3799
3800 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3801 if test "x$LINE" != x ; then
3802 eval "DEFAULT_$LINE"
3803 else
3804 no_cache=1
3805 fi
3806
3807 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3808
3809 fi
3810
3811
3812 eval "$ac_cv_use_wcsrtombs"
3813 if test "$no_cache" != 1; then
3814 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3815 fi
3816
3817 if test "$wxUSE_WCSRTOMBS" = yes; then
3818 echo "$ac_t""yes" 1>&6
3819 else
3820 echo "$ac_t""no" 1>&6
3821 fi
3822
3823
3824 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3825 echo "configure:3826: checking for --enable-wxprintfv" >&5
3826 no_cache=0
3827 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3828 if test "${enable_wxprintfv+set}" = set; then
3829 enableval="$enable_wxprintfv"
3830
3831 if test "$enableval" = yes; then
3832 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3833 else
3834 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3835 fi
3836
3837 else
3838
3839 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3840 if test "x$LINE" != x ; then
3841 eval "DEFAULT_$LINE"
3842 else
3843 no_cache=1
3844 fi
3845
3846 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3847
3848 fi
3849
3850
3851 eval "$ac_cv_use_wxprintfv"
3852 if test "$no_cache" != 1; then
3853 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3854 fi
3855
3856 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3857 echo "$ac_t""yes" 1>&6
3858 else
3859 echo "$ac_t""no" 1>&6
3860 fi
3861
3862
3863 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3864 echo "configure:3865: checking for --enable-std_iostreams" >&5
3865 no_cache=0
3866 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3867 if test "${enable_std_iostreams+set}" = set; then
3868 enableval="$enable_std_iostreams"
3869
3870 if test "$enableval" = yes; then
3871 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3872 else
3873 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3874 fi
3875
3876 else
3877
3878 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3879 if test "x$LINE" != x ; then
3880 eval "DEFAULT_$LINE"
3881 else
3882 no_cache=1
3883 fi
3884
3885 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3886
3887 fi
3888
3889
3890 eval "$ac_cv_use_std_iostreams"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_STD_IOSTREAM" = yes; then
3896 echo "$ac_t""yes" 1>&6
3897 else
3898 echo "$ac_t""no" 1>&6
3899 fi
3900
3901
3902 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3903 echo "configure:3904: checking for --enable-filesystem" >&5
3904 no_cache=0
3905 # Check whether --enable-filesystem or --disable-filesystem was given.
3906 if test "${enable_filesystem+set}" = set; then
3907 enableval="$enable_filesystem"
3908
3909 if test "$enableval" = yes; then
3910 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3911 else
3912 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3913 fi
3914
3915 else
3916
3917 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3918 if test "x$LINE" != x ; then
3919 eval "DEFAULT_$LINE"
3920 else
3921 no_cache=1
3922 fi
3923
3924 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3925
3926 fi
3927
3928
3929 eval "$ac_cv_use_filesystem"
3930 if test "$no_cache" != 1; then
3931 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3932 fi
3933
3934 if test "$wxUSE_FILESYSTEM" = yes; then
3935 echo "$ac_t""yes" 1>&6
3936 else
3937 echo "$ac_t""no" 1>&6
3938 fi
3939
3940
3941 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3942 echo "configure:3943: checking for --enable-fs_inet" >&5
3943 no_cache=0
3944 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3945 if test "${enable_fs_inet+set}" = set; then
3946 enableval="$enable_fs_inet"
3947
3948 if test "$enableval" = yes; then
3949 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3950 else
3951 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3952 fi
3953
3954 else
3955
3956 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3957 if test "x$LINE" != x ; then
3958 eval "DEFAULT_$LINE"
3959 else
3960 no_cache=1
3961 fi
3962
3963 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3964
3965 fi
3966
3967
3968 eval "$ac_cv_use_fs_inet"
3969 if test "$no_cache" != 1; then
3970 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3971 fi
3972
3973 if test "$wxUSE_FS_INET" = yes; then
3974 echo "$ac_t""yes" 1>&6
3975 else
3976 echo "$ac_t""no" 1>&6
3977 fi
3978
3979
3980 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3981 echo "configure:3982: checking for --enable-fs_zip" >&5
3982 no_cache=0
3983 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3984 if test "${enable_fs_zip+set}" = set; then
3985 enableval="$enable_fs_zip"
3986
3987 if test "$enableval" = yes; then
3988 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3989 else
3990 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3991 fi
3992
3993 else
3994
3995 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3996 if test "x$LINE" != x ; then
3997 eval "DEFAULT_$LINE"
3998 else
3999 no_cache=1
4000 fi
4001
4002 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4003
4004 fi
4005
4006
4007 eval "$ac_cv_use_fs_zip"
4008 if test "$no_cache" != 1; then
4009 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4010 fi
4011
4012 if test "$wxUSE_FS_ZIP" = yes; then
4013 echo "$ac_t""yes" 1>&6
4014 else
4015 echo "$ac_t""no" 1>&6
4016 fi
4017
4018
4019 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4020 echo "configure:4021: checking for --enable-zipstream" >&5
4021 no_cache=0
4022 # Check whether --enable-zipstream or --disable-zipstream was given.
4023 if test "${enable_zipstream+set}" = set; then
4024 enableval="$enable_zipstream"
4025
4026 if test "$enableval" = yes; then
4027 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4028 else
4029 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4030 fi
4031
4032 else
4033
4034 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4035 if test "x$LINE" != x ; then
4036 eval "DEFAULT_$LINE"
4037 else
4038 no_cache=1
4039 fi
4040
4041 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4042
4043 fi
4044
4045
4046 eval "$ac_cv_use_zipstream"
4047 if test "$no_cache" != 1; then
4048 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4049 fi
4050
4051 if test "$wxUSE_ZIPSTREAM" = yes; then
4052 echo "$ac_t""yes" 1>&6
4053 else
4054 echo "$ac_t""no" 1>&6
4055 fi
4056
4057
4058
4059 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4060 echo "configure:4061: checking for --enable-catch_segvs" >&5
4061 no_cache=0
4062 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4063 if test "${enable_catch_segvs+set}" = set; then
4064 enableval="$enable_catch_segvs"
4065
4066 if test "$enableval" = yes; then
4067 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4068 else
4069 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4070 fi
4071
4072 else
4073
4074 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4075 if test "x$LINE" != x ; then
4076 eval "DEFAULT_$LINE"
4077 else
4078 no_cache=1
4079 fi
4080
4081 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4082
4083 fi
4084
4085
4086 eval "$ac_cv_use_catch_segvs"
4087 if test "$no_cache" != 1; then
4088 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4089 fi
4090
4091 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4092 echo "$ac_t""yes" 1>&6
4093 else
4094 echo "$ac_t""no" 1>&6
4095 fi
4096
4097
4098 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4099 echo "configure:4100: checking for --enable-snglinst" >&5
4100 no_cache=0
4101 # Check whether --enable-snglinst or --disable-snglinst was given.
4102 if test "${enable_snglinst+set}" = set; then
4103 enableval="$enable_snglinst"
4104
4105 if test "$enableval" = yes; then
4106 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4107 else
4108 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4109 fi
4110
4111 else
4112
4113 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4114 if test "x$LINE" != x ; then
4115 eval "DEFAULT_$LINE"
4116 else
4117 no_cache=1
4118 fi
4119
4120 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4121
4122 fi
4123
4124
4125 eval "$ac_cv_use_snglinst"
4126 if test "$no_cache" != 1; then
4127 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4128 fi
4129
4130 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4131 echo "$ac_t""yes" 1>&6
4132 else
4133 echo "$ac_t""no" 1>&6
4134 fi
4135
4136
4137
4138 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4139 echo "configure:4140: checking for --enable-mimetype" >&5
4140 no_cache=0
4141 # Check whether --enable-mimetype or --disable-mimetype was given.
4142 if test "${enable_mimetype+set}" = set; then
4143 enableval="$enable_mimetype"
4144
4145 if test "$enableval" = yes; then
4146 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4147 else
4148 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4149 fi
4150
4151 else
4152
4153 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4154 if test "x$LINE" != x ; then
4155 eval "DEFAULT_$LINE"
4156 else
4157 no_cache=1
4158 fi
4159
4160 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4161
4162 fi
4163
4164
4165 eval "$ac_cv_use_mimetype"
4166 if test "$no_cache" != 1; then
4167 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4168 fi
4169
4170 if test "$wxUSE_MIMETYPE" = yes; then
4171 echo "$ac_t""yes" 1>&6
4172 else
4173 echo "$ac_t""no" 1>&6
4174 fi
4175
4176
4177 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4178 echo "configure:4179: checking for --enable-system_options" >&5
4179 no_cache=0
4180 # Check whether --enable-system_options or --disable-system_options was given.
4181 if test "${enable_system_options+set}" = set; then
4182 enableval="$enable_system_options"
4183
4184 if test "$enableval" = yes; then
4185 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4186 else
4187 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4188 fi
4189
4190 else
4191
4192 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4193 if test "x$LINE" != x ; then
4194 eval "DEFAULT_$LINE"
4195 else
4196 no_cache=1
4197 fi
4198
4199 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4200
4201 fi
4202
4203
4204 eval "$ac_cv_use_system_options"
4205 if test "$no_cache" != 1; then
4206 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4207 fi
4208
4209 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4210 echo "$ac_t""yes" 1>&6
4211 else
4212 echo "$ac_t""no" 1>&6
4213 fi
4214
4215
4216
4217
4218 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4219 echo "configure:4220: checking for --enable-threads" >&5
4220 no_cache=0
4221 # Check whether --enable-threads or --disable-threads was given.
4222 if test "${enable_threads+set}" = set; then
4223 enableval="$enable_threads"
4224
4225 if test "$enableval" = yes; then
4226 ac_cv_use_threads='wxUSE_THREADS=yes'
4227 else
4228 ac_cv_use_threads='wxUSE_THREADS=no'
4229 fi
4230
4231 else
4232
4233 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4234 if test "x$LINE" != x ; then
4235 eval "DEFAULT_$LINE"
4236 else
4237 no_cache=1
4238 fi
4239
4240 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4241
4242 fi
4243
4244
4245 eval "$ac_cv_use_threads"
4246 if test "$no_cache" != 1; then
4247 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4248 fi
4249
4250 if test "$wxUSE_THREADS" = yes; then
4251 echo "$ac_t""yes" 1>&6
4252 else
4253 echo "$ac_t""no" 1>&6
4254 fi
4255
4256
4257 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4258 echo "configure:4259: checking for --enable-serial" >&5
4259 no_cache=0
4260 # Check whether --enable-serial or --disable-serial was given.
4261 if test "${enable_serial+set}" = set; then
4262 enableval="$enable_serial"
4263
4264 if test "$enableval" = yes; then
4265 ac_cv_use_serial='wxUSE_SERIAL=yes'
4266 else
4267 ac_cv_use_serial='wxUSE_SERIAL=no'
4268 fi
4269
4270 else
4271
4272 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4273 if test "x$LINE" != x ; then
4274 eval "DEFAULT_$LINE"
4275 else
4276 no_cache=1
4277 fi
4278
4279 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4280
4281 fi
4282
4283
4284 eval "$ac_cv_use_serial"
4285 if test "$no_cache" != 1; then
4286 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4287 fi
4288
4289 if test "$wxUSE_SERIAL" = yes; then
4290 echo "$ac_t""yes" 1>&6
4291 else
4292 echo "$ac_t""no" 1>&6
4293 fi
4294
4295
4296 if test "$wxUSE_GUI" = "yes"; then
4297
4298
4299
4300 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4301 echo "configure:4302: checking for --enable-docview" >&5
4302 no_cache=0
4303 # Check whether --enable-docview or --disable-docview was given.
4304 if test "${enable_docview+set}" = set; then
4305 enableval="$enable_docview"
4306
4307 if test "$enableval" = yes; then
4308 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4309 else
4310 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4311 fi
4312
4313 else
4314
4315 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4316 if test "x$LINE" != x ; then
4317 eval "DEFAULT_$LINE"
4318 else
4319 no_cache=1
4320 fi
4321
4322 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4323
4324 fi
4325
4326
4327 eval "$ac_cv_use_docview"
4328 if test "$no_cache" != 1; then
4329 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4330 fi
4331
4332 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4333 echo "$ac_t""yes" 1>&6
4334 else
4335 echo "$ac_t""no" 1>&6
4336 fi
4337
4338
4339 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4340 echo "configure:4341: checking for --enable-help" >&5
4341 no_cache=0
4342 # Check whether --enable-help or --disable-help was given.
4343 if test "${enable_help+set}" = set; then
4344 enableval="$enable_help"
4345
4346 if test "$enableval" = yes; then
4347 ac_cv_use_help='wxUSE_HELP=yes'
4348 else
4349 ac_cv_use_help='wxUSE_HELP=no'
4350 fi
4351
4352 else
4353
4354 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4355 if test "x$LINE" != x ; then
4356 eval "DEFAULT_$LINE"
4357 else
4358 no_cache=1
4359 fi
4360
4361 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4362
4363 fi
4364
4365
4366 eval "$ac_cv_use_help"
4367 if test "$no_cache" != 1; then
4368 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4369 fi
4370
4371 if test "$wxUSE_HELP" = yes; then
4372 echo "$ac_t""yes" 1>&6
4373 else
4374 echo "$ac_t""no" 1>&6
4375 fi
4376
4377
4378 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4379 echo "configure:4380: checking for --enable-mshtmlhelp" >&5
4380 no_cache=0
4381 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4382 if test "${enable_mshtmlhelp+set}" = set; then
4383 enableval="$enable_mshtmlhelp"
4384
4385 if test "$enableval" = yes; then
4386 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4387 else
4388 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4389 fi
4390
4391 else
4392
4393 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4401
4402 fi
4403
4404
4405 eval "$ac_cv_use_mshtmlhelp"
4406 if test "$no_cache" != 1; then
4407 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4408 fi
4409
4410 if test "$wxUSE_MS_HTML_HELP" = yes; then
4411 echo "$ac_t""yes" 1>&6
4412 else
4413 echo "$ac_t""no" 1>&6
4414 fi
4415
4416
4417 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4418 echo "configure:4419: checking for --enable-html" >&5
4419 no_cache=0
4420 # Check whether --enable-html or --disable-html was given.
4421 if test "${enable_html+set}" = set; then
4422 enableval="$enable_html"
4423
4424 if test "$enableval" = yes; then
4425 ac_cv_use_html='wxUSE_HTML=yes'
4426 else
4427 ac_cv_use_html='wxUSE_HTML=no'
4428 fi
4429
4430 else
4431
4432 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4433 if test "x$LINE" != x ; then
4434 eval "DEFAULT_$LINE"
4435 else
4436 no_cache=1
4437 fi
4438
4439 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4440
4441 fi
4442
4443
4444 eval "$ac_cv_use_html"
4445 if test "$no_cache" != 1; then
4446 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4447 fi
4448
4449 if test "$wxUSE_HTML" = yes; then
4450 echo "$ac_t""yes" 1>&6
4451 else
4452 echo "$ac_t""no" 1>&6
4453 fi
4454
4455
4456 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4457 echo "configure:4458: checking for --enable-htmlhelp" >&5
4458 no_cache=0
4459 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4460 if test "${enable_htmlhelp+set}" = set; then
4461 enableval="$enable_htmlhelp"
4462
4463 if test "$enableval" = yes; then
4464 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4465 else
4466 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4467 fi
4468
4469 else
4470
4471 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4472 if test "x$LINE" != x ; then
4473 eval "DEFAULT_$LINE"
4474 else
4475 no_cache=1
4476 fi
4477
4478 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4479
4480 fi
4481
4482
4483 eval "$ac_cv_use_htmlhelp"
4484 if test "$no_cache" != 1; then
4485 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4486 fi
4487
4488 if test "$wxUSE_WXHTML_HELP" = yes; then
4489 echo "$ac_t""yes" 1>&6
4490 else
4491 echo "$ac_t""no" 1>&6
4492 fi
4493
4494
4495 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4496 echo "configure:4497: checking for --enable-constraints" >&5
4497 no_cache=0
4498 # Check whether --enable-constraints or --disable-constraints was given.
4499 if test "${enable_constraints+set}" = set; then
4500 enableval="$enable_constraints"
4501
4502 if test "$enableval" = yes; then
4503 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4504 else
4505 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4506 fi
4507
4508 else
4509
4510 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4511 if test "x$LINE" != x ; then
4512 eval "DEFAULT_$LINE"
4513 else
4514 no_cache=1
4515 fi
4516
4517 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4518
4519 fi
4520
4521
4522 eval "$ac_cv_use_constraints"
4523 if test "$no_cache" != 1; then
4524 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4525 fi
4526
4527 if test "$wxUSE_CONSTRAINTS" = yes; then
4528 echo "$ac_t""yes" 1>&6
4529 else
4530 echo "$ac_t""no" 1>&6
4531 fi
4532
4533
4534 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4535 echo "configure:4536: checking for --enable-printarch" >&5
4536 no_cache=0
4537 # Check whether --enable-printarch or --disable-printarch was given.
4538 if test "${enable_printarch+set}" = set; then
4539 enableval="$enable_printarch"
4540
4541 if test "$enableval" = yes; then
4542 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4543 else
4544 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4545 fi
4546
4547 else
4548
4549 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4550 if test "x$LINE" != x ; then
4551 eval "DEFAULT_$LINE"
4552 else
4553 no_cache=1
4554 fi
4555
4556 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4557
4558 fi
4559
4560
4561 eval "$ac_cv_use_printarch"
4562 if test "$no_cache" != 1; then
4563 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4564 fi
4565
4566 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4567 echo "$ac_t""yes" 1>&6
4568 else
4569 echo "$ac_t""no" 1>&6
4570 fi
4571
4572
4573 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4574 echo "configure:4575: checking for --enable-mdi" >&5
4575 no_cache=0
4576 # Check whether --enable-mdi or --disable-mdi was given.
4577 if test "${enable_mdi+set}" = set; then
4578 enableval="$enable_mdi"
4579
4580 if test "$enableval" = yes; then
4581 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4582 else
4583 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4584 fi
4585
4586 else
4587
4588 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4589 if test "x$LINE" != x ; then
4590 eval "DEFAULT_$LINE"
4591 else
4592 no_cache=1
4593 fi
4594
4595 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4596
4597 fi
4598
4599
4600 eval "$ac_cv_use_mdi"
4601 if test "$no_cache" != 1; then
4602 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4603 fi
4604
4605 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4606 echo "$ac_t""yes" 1>&6
4607 else
4608 echo "$ac_t""no" 1>&6
4609 fi
4610
4611
4612 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4613 echo "configure:4614: checking for --enable-loggui" >&5
4614 no_cache=0
4615 # Check whether --enable-loggui or --disable-loggui was given.
4616 if test "${enable_loggui+set}" = set; then
4617 enableval="$enable_loggui"
4618
4619 if test "$enableval" = yes; then
4620 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4621 else
4622 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4623 fi
4624
4625 else
4626
4627 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4628 if test "x$LINE" != x ; then
4629 eval "DEFAULT_$LINE"
4630 else
4631 no_cache=1
4632 fi
4633
4634 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4635
4636 fi
4637
4638
4639 eval "$ac_cv_use_loggui"
4640 if test "$no_cache" != 1; then
4641 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4642 fi
4643
4644 if test "$wxUSE_LOGGUI" = yes; then
4645 echo "$ac_t""yes" 1>&6
4646 else
4647 echo "$ac_t""no" 1>&6
4648 fi
4649
4650
4651 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4652 echo "configure:4653: checking for --enable-logwin" >&5
4653 no_cache=0
4654 # Check whether --enable-logwin or --disable-logwin was given.
4655 if test "${enable_logwin+set}" = set; then
4656 enableval="$enable_logwin"
4657
4658 if test "$enableval" = yes; then
4659 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4660 else
4661 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4662 fi
4663
4664 else
4665
4666 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4667 if test "x$LINE" != x ; then
4668 eval "DEFAULT_$LINE"
4669 else
4670 no_cache=1
4671 fi
4672
4673 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4674
4675 fi
4676
4677
4678 eval "$ac_cv_use_logwin"
4679 if test "$no_cache" != 1; then
4680 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4681 fi
4682
4683 if test "$wxUSE_LOGWINDOW" = yes; then
4684 echo "$ac_t""yes" 1>&6
4685 else
4686 echo "$ac_t""no" 1>&6
4687 fi
4688
4689
4690
4691 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4692 echo "configure:4693: checking for --enable-postscript" >&5
4693 no_cache=0
4694 # Check whether --enable-postscript or --disable-postscript was given.
4695 if test "${enable_postscript+set}" = set; then
4696 enableval="$enable_postscript"
4697
4698 if test "$enableval" = yes; then
4699 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4700 else
4701 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4702 fi
4703
4704 else
4705
4706 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4707 if test "x$LINE" != x ; then
4708 eval "DEFAULT_$LINE"
4709 else
4710 no_cache=1
4711 fi
4712
4713 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4714
4715 fi
4716
4717
4718 eval "$ac_cv_use_postscript"
4719 if test "$no_cache" != 1; then
4720 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4721 fi
4722
4723 if test "$wxUSE_POSTSCRIPT" = yes; then
4724 echo "$ac_t""yes" 1>&6
4725 else
4726 echo "$ac_t""no" 1>&6
4727 fi
4728
4729
4730
4731
4732
4733 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4734 echo "configure:4735: checking for --enable-prologio" >&5
4735 no_cache=0
4736 # Check whether --enable-prologio or --disable-prologio was given.
4737 if test "${enable_prologio+set}" = set; then
4738 enableval="$enable_prologio"
4739
4740 if test "$enableval" = yes; then
4741 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4742 else
4743 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4744 fi
4745
4746 else
4747
4748 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4749 if test "x$LINE" != x ; then
4750 eval "DEFAULT_$LINE"
4751 else
4752 no_cache=1
4753 fi
4754
4755 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4756
4757 fi
4758
4759
4760 eval "$ac_cv_use_prologio"
4761 if test "$no_cache" != 1; then
4762 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4763 fi
4764
4765 if test "$wxUSE_PROLOGIO" = yes; then
4766 echo "$ac_t""yes" 1>&6
4767 else
4768 echo "$ac_t""no" 1>&6
4769 fi
4770
4771
4772 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4773 echo "configure:4774: checking for --enable-resources" >&5
4774 no_cache=0
4775 # Check whether --enable-resources or --disable-resources was given.
4776 if test "${enable_resources+set}" = set; then
4777 enableval="$enable_resources"
4778
4779 if test "$enableval" = yes; then
4780 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4781 else
4782 ac_cv_use_resources='wxUSE_RESOURCES=no'
4783 fi
4784
4785 else
4786
4787 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4788 if test "x$LINE" != x ; then
4789 eval "DEFAULT_$LINE"
4790 else
4791 no_cache=1
4792 fi
4793
4794 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4795
4796 fi
4797
4798
4799 eval "$ac_cv_use_resources"
4800 if test "$no_cache" != 1; then
4801 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4802 fi
4803
4804 if test "$wxUSE_RESOURCES" = yes; then
4805 echo "$ac_t""yes" 1>&6
4806 else
4807 echo "$ac_t""no" 1>&6
4808 fi
4809
4810
4811
4812 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4813 echo "configure:4814: checking for --enable-xresources" >&5
4814 no_cache=0
4815 # Check whether --enable-xresources or --disable-xresources was given.
4816 if test "${enable_xresources+set}" = set; then
4817 enableval="$enable_xresources"
4818
4819 if test "$enableval" = yes; then
4820 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4821 else
4822 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4823 fi
4824
4825 else
4826
4827 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4828 if test "x$LINE" != x ; then
4829 eval "DEFAULT_$LINE"
4830 else
4831 no_cache=1
4832 fi
4833
4834 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4835
4836 fi
4837
4838
4839 eval "$ac_cv_use_xresources"
4840 if test "$no_cache" != 1; then
4841 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4842 fi
4843
4844 if test "$wxUSE_X_RESOURCES" = yes; then
4845 echo "$ac_t""yes" 1>&6
4846 else
4847 echo "$ac_t""no" 1>&6
4848 fi
4849
4850
4851
4852
4853 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4854 echo "configure:4855: checking for --enable-clipboard" >&5
4855 no_cache=0
4856 # Check whether --enable-clipboard or --disable-clipboard was given.
4857 if test "${enable_clipboard+set}" = set; then
4858 enableval="$enable_clipboard"
4859
4860 if test "$enableval" = yes; then
4861 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4862 else
4863 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4864 fi
4865
4866 else
4867
4868 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4869 if test "x$LINE" != x ; then
4870 eval "DEFAULT_$LINE"
4871 else
4872 no_cache=1
4873 fi
4874
4875 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4876
4877 fi
4878
4879
4880 eval "$ac_cv_use_clipboard"
4881 if test "$no_cache" != 1; then
4882 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4883 fi
4884
4885 if test "$wxUSE_CLIPBOARD" = yes; then
4886 echo "$ac_t""yes" 1>&6
4887 else
4888 echo "$ac_t""no" 1>&6
4889 fi
4890
4891
4892 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4893 echo "configure:4894: checking for --enable-dnd" >&5
4894 no_cache=0
4895 # Check whether --enable-dnd or --disable-dnd was given.
4896 if test "${enable_dnd+set}" = set; then
4897 enableval="$enable_dnd"
4898
4899 if test "$enableval" = yes; then
4900 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4901 else
4902 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4903 fi
4904
4905 else
4906
4907 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4908 if test "x$LINE" != x ; then
4909 eval "DEFAULT_$LINE"
4910 else
4911 no_cache=1
4912 fi
4913
4914 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4915
4916 fi
4917
4918
4919 eval "$ac_cv_use_dnd"
4920 if test "$no_cache" != 1; then
4921 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4922 fi
4923
4924 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4925 echo "$ac_t""yes" 1>&6
4926 else
4927 echo "$ac_t""no" 1>&6
4928 fi
4929
4930
4931 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4932 echo "configure:4933: checking for --enable-metafile" >&5
4933 no_cache=0
4934 # Check whether --enable-metafile or --disable-metafile was given.
4935 if test "${enable_metafile+set}" = set; then
4936 enableval="$enable_metafile"
4937
4938 if test "$enableval" = yes; then
4939 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4940 else
4941 ac_cv_use_metafile='wxUSE_METAFILE=no'
4942 fi
4943
4944 else
4945
4946 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4947 if test "x$LINE" != x ; then
4948 eval "DEFAULT_$LINE"
4949 else
4950 no_cache=1
4951 fi
4952
4953 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4954
4955 fi
4956
4957
4958 eval "$ac_cv_use_metafile"
4959 if test "$no_cache" != 1; then
4960 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4961 fi
4962
4963 if test "$wxUSE_METAFILE" = yes; then
4964 echo "$ac_t""yes" 1>&6
4965 else
4966 echo "$ac_t""no" 1>&6
4967 fi
4968
4969
4970
4971 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
4972 echo "configure:4973: checking for --enable-treelayout" >&5
4973 no_cache=0
4974 # Check whether --enable-treelayout or --disable-treelayout was given.
4975 if test "${enable_treelayout+set}" = set; then
4976 enableval="$enable_treelayout"
4977
4978 if test "$enableval" = yes; then
4979 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
4980 else
4981 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
4982 fi
4983
4984 else
4985
4986 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
4987 if test "x$LINE" != x ; then
4988 eval "DEFAULT_$LINE"
4989 else
4990 no_cache=1
4991 fi
4992
4993 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
4994
4995 fi
4996
4997
4998 eval "$ac_cv_use_treelayout"
4999 if test "$no_cache" != 1; then
5000 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5001 fi
5002
5003 if test "$wxUSE_TREELAYOUT" = yes; then
5004 echo "$ac_t""yes" 1>&6
5005 else
5006 echo "$ac_t""no" 1>&6
5007 fi
5008
5009
5010
5011
5012 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5013 echo "configure:5014: checking for --enable-controls" >&5
5014 no_cache=0
5015 # Check whether --enable-controls or --disable-controls was given.
5016 if test "${enable_controls+set}" = set; then
5017 enableval="$enable_controls"
5018
5019 if test "$enableval" = yes; then
5020 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5021 else
5022 ac_cv_use_controls='wxUSE_CONTROLS=no'
5023 fi
5024
5025 else
5026
5027 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5028 if test "x$LINE" != x ; then
5029 eval "DEFAULT_$LINE"
5030 else
5031 no_cache=1
5032 fi
5033
5034 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5035
5036 fi
5037
5038
5039 eval "$ac_cv_use_controls"
5040 if test "$no_cache" != 1; then
5041 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5042 fi
5043
5044 if test "$wxUSE_CONTROLS" = yes; then
5045 echo "$ac_t""yes" 1>&6
5046 else
5047 echo "$ac_t""no" 1>&6
5048 fi
5049
5050
5051 if test "$wxUSE_CONTROLS" = "yes"; then
5052 DEFAULT_wxUSE_ACCEL=yes
5053 DEFAULT_wxUSE_BMPBUTTON=yes
5054 DEFAULT_wxUSE_BUTTON=yes
5055 DEFAULT_wxUSE_CALCTRL=no
5056 DEFAULT_wxUSE_CARET=yes
5057 DEFAULT_wxUSE_COMBOBOX=yes
5058 DEFAULT_wxUSE_CHECKBOX=yes
5059 DEFAULT_wxUSE_CHECKLISTBOX=yes
5060 DEFAULT_wxUSE_CHOICE=yes
5061 DEFAULT_wxUSE_GAUGE=yes
5062 DEFAULT_wxUSE_GRID=yes
5063 DEFAULT_wxUSE_NEW_GRID=yes
5064 DEFAULT_wxUSE_IMAGLIST=yes
5065 DEFAULT_wxUSE_LISTBOX=yes
5066 DEFAULT_wxUSE_LISTCTRL=yes
5067 DEFAULT_wxUSE_NOTEBOOK=yes
5068 DEFAULT_wxUSE_PROPSHEET=yes
5069 DEFAULT_wxUSE_RADIOBOX=yes
5070 DEFAULT_wxUSE_RADIOBTN=yes
5071 DEFAULT_wxUSE_SASH=yes
5072 DEFAULT_wxUSE_SCROLLBAR=yes
5073 DEFAULT_wxUSE_SLIDER=yes
5074 DEFAULT_wxUSE_SPINBTN=yes
5075 DEFAULT_wxUSE_SPINCTRL=yes
5076 DEFAULT_wxUSE_SPLITTER=yes
5077 DEFAULT_wxUSE_STATBMP=yes
5078 DEFAULT_wxUSE_STATBOX=yes
5079 DEFAULT_wxUSE_STATLINE=yes
5080 DEFAULT_wxUSE_STATUSBAR=yes
5081 DEFAULT_wxUSE_TAB_DIALOG=yes
5082 DEFAULT_wxUSE_TOGGLEBTN=yes
5083 DEFAULT_wxUSE_TOOLBAR=yes
5084 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5085 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5086 DEFAULT_wxUSE_TOOLTIPS=yes
5087 DEFAULT_wxUSE_TREECTRL=yes
5088 DEFAULT_wxUSE_POPUPWIN=yes
5089 elif test "$wxUSE_CONTROLS" = "no"; then
5090 DEFAULT_wxUSE_ACCEL=no
5091 DEFAULT_wxUSE_BMPBUTTON=no
5092 DEFAULT_wxUSE_BUTTON=no
5093 DEFAULT_wxUSE_CALCTRL=no
5094 DEFAULT_wxUSE_CARET=no
5095 DEFAULT_wxUSE_COMBOBOX=no
5096 DEFAULT_wxUSE_CHECKBOX=no
5097 DEFAULT_wxUSE_CHECKLISTBOX=no
5098 DEFAULT_wxUSE_CHOICE=no
5099 DEFAULT_wxUSE_GAUGE=no
5100 DEFAULT_wxUSE_GRID=no
5101 DEFAULT_wxUSE_NEW_GRID=no
5102 DEFAULT_wxUSE_IMAGLIST=no
5103 DEFAULT_wxUSE_LISTBOX=no
5104 DEFAULT_wxUSE_LISTCTRL=no
5105 DEFAULT_wxUSE_NOTEBOOK=no
5106 DEFAULT_wxUSE_PROPSHEET=no
5107 DEFAULT_wxUSE_RADIOBOX=no
5108 DEFAULT_wxUSE_RADIOBTN=no
5109 DEFAULT_wxUSE_SASH=no
5110 DEFAULT_wxUSE_SCROLLBAR=no
5111 DEFAULT_wxUSE_SLIDER=no
5112 DEFAULT_wxUSE_SPINBTN=no
5113 DEFAULT_wxUSE_SPINCTRL=no
5114 DEFAULT_wxUSE_SPLITTER=no
5115 DEFAULT_wxUSE_STATBMP=no
5116 DEFAULT_wxUSE_STATBOX=no
5117 DEFAULT_wxUSE_STATLINE=no
5118 DEFAULT_wxUSE_STATUSBAR=no
5119 DEFAULT_wxUSE_TAB_DIALOG=no
5120 DEFAULT_wxUSE_TOGGLEBTN=no
5121 DEFAULT_wxUSE_TOOLBAR=no
5122 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5123 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5124 DEFAULT_wxUSE_TOOLTIPS=no
5125 DEFAULT_wxUSE_TREECTRL=no
5126 DEFAULT_wxUSE_POPUPWIN=no
5127 fi
5128
5129
5130 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5131 echo "configure:5132: checking for --enable-accel" >&5
5132 no_cache=0
5133 # Check whether --enable-accel or --disable-accel was given.
5134 if test "${enable_accel+set}" = set; then
5135 enableval="$enable_accel"
5136
5137 if test "$enableval" = yes; then
5138 ac_cv_use_accel='wxUSE_ACCEL=yes'
5139 else
5140 ac_cv_use_accel='wxUSE_ACCEL=no'
5141 fi
5142
5143 else
5144
5145 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5146 if test "x$LINE" != x ; then
5147 eval "DEFAULT_$LINE"
5148 else
5149 no_cache=1
5150 fi
5151
5152 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5153
5154 fi
5155
5156
5157 eval "$ac_cv_use_accel"
5158 if test "$no_cache" != 1; then
5159 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5160 fi
5161
5162 if test "$wxUSE_ACCEL" = yes; then
5163 echo "$ac_t""yes" 1>&6
5164 else
5165 echo "$ac_t""no" 1>&6
5166 fi
5167
5168
5169 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5170 echo "configure:5171: checking for --enable-button" >&5
5171 no_cache=0
5172 # Check whether --enable-button or --disable-button was given.
5173 if test "${enable_button+set}" = set; then
5174 enableval="$enable_button"
5175
5176 if test "$enableval" = yes; then
5177 ac_cv_use_button='wxUSE_BUTTON=yes'
5178 else
5179 ac_cv_use_button='wxUSE_BUTTON=no'
5180 fi
5181
5182 else
5183
5184 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5185 if test "x$LINE" != x ; then
5186 eval "DEFAULT_$LINE"
5187 else
5188 no_cache=1
5189 fi
5190
5191 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5192
5193 fi
5194
5195
5196 eval "$ac_cv_use_button"
5197 if test "$no_cache" != 1; then
5198 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5199 fi
5200
5201 if test "$wxUSE_BUTTON" = yes; then
5202 echo "$ac_t""yes" 1>&6
5203 else
5204 echo "$ac_t""no" 1>&6
5205 fi
5206
5207
5208 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5209 echo "configure:5210: checking for --enable-bmpbutton" >&5
5210 no_cache=0
5211 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5212 if test "${enable_bmpbutton+set}" = set; then
5213 enableval="$enable_bmpbutton"
5214
5215 if test "$enableval" = yes; then
5216 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5217 else
5218 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5219 fi
5220
5221 else
5222
5223 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5224 if test "x$LINE" != x ; then
5225 eval "DEFAULT_$LINE"
5226 else
5227 no_cache=1
5228 fi
5229
5230 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5231
5232 fi
5233
5234
5235 eval "$ac_cv_use_bmpbutton"
5236 if test "$no_cache" != 1; then
5237 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5238 fi
5239
5240 if test "$wxUSE_BMPBUTTON" = yes; then
5241 echo "$ac_t""yes" 1>&6
5242 else
5243 echo "$ac_t""no" 1>&6
5244 fi
5245
5246
5247 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5248 echo "configure:5249: checking for --enable-calendar" >&5
5249 no_cache=0
5250 # Check whether --enable-calendar or --disable-calendar was given.
5251 if test "${enable_calendar+set}" = set; then
5252 enableval="$enable_calendar"
5253
5254 if test "$enableval" = yes; then
5255 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5256 else
5257 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5258 fi
5259
5260 else
5261
5262 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5263 if test "x$LINE" != x ; then
5264 eval "DEFAULT_$LINE"
5265 else
5266 no_cache=1
5267 fi
5268
5269 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5270
5271 fi
5272
5273
5274 eval "$ac_cv_use_calendar"
5275 if test "$no_cache" != 1; then
5276 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5277 fi
5278
5279 if test "$wxUSE_CALCTRL" = yes; then
5280 echo "$ac_t""yes" 1>&6
5281 else
5282 echo "$ac_t""no" 1>&6
5283 fi
5284
5285
5286 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5287 echo "configure:5288: checking for --enable-caret" >&5
5288 no_cache=0
5289 # Check whether --enable-caret or --disable-caret was given.
5290 if test "${enable_caret+set}" = set; then
5291 enableval="$enable_caret"
5292
5293 if test "$enableval" = yes; then
5294 ac_cv_use_caret='wxUSE_CARET=yes'
5295 else
5296 ac_cv_use_caret='wxUSE_CARET=no'
5297 fi
5298
5299 else
5300
5301 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5302 if test "x$LINE" != x ; then
5303 eval "DEFAULT_$LINE"
5304 else
5305 no_cache=1
5306 fi
5307
5308 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5309
5310 fi
5311
5312
5313 eval "$ac_cv_use_caret"
5314 if test "$no_cache" != 1; then
5315 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5316 fi
5317
5318 if test "$wxUSE_CARET" = yes; then
5319 echo "$ac_t""yes" 1>&6
5320 else
5321 echo "$ac_t""no" 1>&6
5322 fi
5323
5324
5325 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5326 echo "configure:5327: checking for --enable-checkbox" >&5
5327 no_cache=0
5328 # Check whether --enable-checkbox or --disable-checkbox was given.
5329 if test "${enable_checkbox+set}" = set; then
5330 enableval="$enable_checkbox"
5331
5332 if test "$enableval" = yes; then
5333 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5334 else
5335 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5336 fi
5337
5338 else
5339
5340 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5341 if test "x$LINE" != x ; then
5342 eval "DEFAULT_$LINE"
5343 else
5344 no_cache=1
5345 fi
5346
5347 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5348
5349 fi
5350
5351
5352 eval "$ac_cv_use_checkbox"
5353 if test "$no_cache" != 1; then
5354 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5355 fi
5356
5357 if test "$wxUSE_CHECKBOX" = yes; then
5358 echo "$ac_t""yes" 1>&6
5359 else
5360 echo "$ac_t""no" 1>&6
5361 fi
5362
5363
5364 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5365 echo "configure:5366: checking for --enable-checklst" >&5
5366 no_cache=0
5367 # Check whether --enable-checklst or --disable-checklst was given.
5368 if test "${enable_checklst+set}" = set; then
5369 enableval="$enable_checklst"
5370
5371 if test "$enableval" = yes; then
5372 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5373 else
5374 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5375 fi
5376
5377 else
5378
5379 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5380 if test "x$LINE" != x ; then
5381 eval "DEFAULT_$LINE"
5382 else
5383 no_cache=1
5384 fi
5385
5386 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5387
5388 fi
5389
5390
5391 eval "$ac_cv_use_checklst"
5392 if test "$no_cache" != 1; then
5393 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5394 fi
5395
5396 if test "$wxUSE_CHECKLST" = yes; then
5397 echo "$ac_t""yes" 1>&6
5398 else
5399 echo "$ac_t""no" 1>&6
5400 fi
5401
5402
5403 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5404 echo "configure:5405: checking for --enable-choice" >&5
5405 no_cache=0
5406 # Check whether --enable-choice or --disable-choice was given.
5407 if test "${enable_choice+set}" = set; then
5408 enableval="$enable_choice"
5409
5410 if test "$enableval" = yes; then
5411 ac_cv_use_choice='wxUSE_CHOICE=yes'
5412 else
5413 ac_cv_use_choice='wxUSE_CHOICE=no'
5414 fi
5415
5416 else
5417
5418 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5419 if test "x$LINE" != x ; then
5420 eval "DEFAULT_$LINE"
5421 else
5422 no_cache=1
5423 fi
5424
5425 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5426
5427 fi
5428
5429
5430 eval "$ac_cv_use_choice"
5431 if test "$no_cache" != 1; then
5432 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5433 fi
5434
5435 if test "$wxUSE_CHOICE" = yes; then
5436 echo "$ac_t""yes" 1>&6
5437 else
5438 echo "$ac_t""no" 1>&6
5439 fi
5440
5441
5442 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5443 echo "configure:5444: checking for --enable-combobox" >&5
5444 no_cache=0
5445 # Check whether --enable-combobox or --disable-combobox was given.
5446 if test "${enable_combobox+set}" = set; then
5447 enableval="$enable_combobox"
5448
5449 if test "$enableval" = yes; then
5450 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5451 else
5452 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5453 fi
5454
5455 else
5456
5457 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5458 if test "x$LINE" != x ; then
5459 eval "DEFAULT_$LINE"
5460 else
5461 no_cache=1
5462 fi
5463
5464 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5465
5466 fi
5467
5468
5469 eval "$ac_cv_use_combobox"
5470 if test "$no_cache" != 1; then
5471 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5472 fi
5473
5474 if test "$wxUSE_COMBOBOX" = yes; then
5475 echo "$ac_t""yes" 1>&6
5476 else
5477 echo "$ac_t""no" 1>&6
5478 fi
5479
5480
5481 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5482 echo "configure:5483: checking for --enable-gauge" >&5
5483 no_cache=0
5484 # Check whether --enable-gauge or --disable-gauge was given.
5485 if test "${enable_gauge+set}" = set; then
5486 enableval="$enable_gauge"
5487
5488 if test "$enableval" = yes; then
5489 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5490 else
5491 ac_cv_use_gauge='wxUSE_GAUGE=no'
5492 fi
5493
5494 else
5495
5496 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5497 if test "x$LINE" != x ; then
5498 eval "DEFAULT_$LINE"
5499 else
5500 no_cache=1
5501 fi
5502
5503 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5504
5505 fi
5506
5507
5508 eval "$ac_cv_use_gauge"
5509 if test "$no_cache" != 1; then
5510 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5511 fi
5512
5513 if test "$wxUSE_GAUGE" = yes; then
5514 echo "$ac_t""yes" 1>&6
5515 else
5516 echo "$ac_t""no" 1>&6
5517 fi
5518
5519
5520 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5521 echo "configure:5522: checking for --enable-grid" >&5
5522 no_cache=0
5523 # Check whether --enable-grid or --disable-grid was given.
5524 if test "${enable_grid+set}" = set; then
5525 enableval="$enable_grid"
5526
5527 if test "$enableval" = yes; then
5528 ac_cv_use_grid='wxUSE_GRID=yes'
5529 else
5530 ac_cv_use_grid='wxUSE_GRID=no'
5531 fi
5532
5533 else
5534
5535 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5536 if test "x$LINE" != x ; then
5537 eval "DEFAULT_$LINE"
5538 else
5539 no_cache=1
5540 fi
5541
5542 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5543
5544 fi
5545
5546
5547 eval "$ac_cv_use_grid"
5548 if test "$no_cache" != 1; then
5549 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5550 fi
5551
5552 if test "$wxUSE_GRID" = yes; then
5553 echo "$ac_t""yes" 1>&6
5554 else
5555 echo "$ac_t""no" 1>&6
5556 fi
5557
5558
5559 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5560 echo "configure:5561: checking for --enable-newgrid" >&5
5561 no_cache=0
5562 # Check whether --enable-newgrid or --disable-newgrid was given.
5563 if test "${enable_newgrid+set}" = set; then
5564 enableval="$enable_newgrid"
5565
5566 if test "$enableval" = yes; then
5567 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5568 else
5569 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5570 fi
5571
5572 else
5573
5574 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5575 if test "x$LINE" != x ; then
5576 eval "DEFAULT_$LINE"
5577 else
5578 no_cache=1
5579 fi
5580
5581 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5582
5583 fi
5584
5585
5586 eval "$ac_cv_use_newgrid"
5587 if test "$no_cache" != 1; then
5588 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5589 fi
5590
5591 if test "$wxUSE_NEW_GRID" = yes; then
5592 echo "$ac_t""yes" 1>&6
5593 else
5594 echo "$ac_t""no" 1>&6
5595 fi
5596
5597
5598 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5599 echo "configure:5600: checking for --enable-imaglist" >&5
5600 no_cache=0
5601 # Check whether --enable-imaglist or --disable-imaglist was given.
5602 if test "${enable_imaglist+set}" = set; then
5603 enableval="$enable_imaglist"
5604
5605 if test "$enableval" = yes; then
5606 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5607 else
5608 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5609 fi
5610
5611 else
5612
5613 LINE=`grep "wxUSE_IMAGLIST" ${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_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5621
5622 fi
5623
5624
5625 eval "$ac_cv_use_imaglist"
5626 if test "$no_cache" != 1; then
5627 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5628 fi
5629
5630 if test "$wxUSE_IMAGLIST" = yes; then
5631 echo "$ac_t""yes" 1>&6
5632 else
5633 echo "$ac_t""no" 1>&6
5634 fi
5635
5636
5637 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5638 echo "configure:5639: checking for --enable-listbox" >&5
5639 no_cache=0
5640 # Check whether --enable-listbox or --disable-listbox was given.
5641 if test "${enable_listbox+set}" = set; then
5642 enableval="$enable_listbox"
5643
5644 if test "$enableval" = yes; then
5645 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5646 else
5647 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5648 fi
5649
5650 else
5651
5652 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5653 if test "x$LINE" != x ; then
5654 eval "DEFAULT_$LINE"
5655 else
5656 no_cache=1
5657 fi
5658
5659 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5660
5661 fi
5662
5663
5664 eval "$ac_cv_use_listbox"
5665 if test "$no_cache" != 1; then
5666 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5667 fi
5668
5669 if test "$wxUSE_LISTBOX" = yes; then
5670 echo "$ac_t""yes" 1>&6
5671 else
5672 echo "$ac_t""no" 1>&6
5673 fi
5674
5675
5676 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5677 echo "configure:5678: checking for --enable-listctrl" >&5
5678 no_cache=0
5679 # Check whether --enable-listctrl or --disable-listctrl was given.
5680 if test "${enable_listctrl+set}" = set; then
5681 enableval="$enable_listctrl"
5682
5683 if test "$enableval" = yes; then
5684 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5685 else
5686 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5687 fi
5688
5689 else
5690
5691 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5692 if test "x$LINE" != x ; then
5693 eval "DEFAULT_$LINE"
5694 else
5695 no_cache=1
5696 fi
5697
5698 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5699
5700 fi
5701
5702
5703 eval "$ac_cv_use_listctrl"
5704 if test "$no_cache" != 1; then
5705 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5706 fi
5707
5708 if test "$wxUSE_LISTCTRL" = yes; then
5709 echo "$ac_t""yes" 1>&6
5710 else
5711 echo "$ac_t""no" 1>&6
5712 fi
5713
5714
5715 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5716 echo "configure:5717: checking for --enable-notebook" >&5
5717 no_cache=0
5718 # Check whether --enable-notebook or --disable-notebook was given.
5719 if test "${enable_notebook+set}" = set; then
5720 enableval="$enable_notebook"
5721
5722 if test "$enableval" = yes; then
5723 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5724 else
5725 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5726 fi
5727
5728 else
5729
5730 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5731 if test "x$LINE" != x ; then
5732 eval "DEFAULT_$LINE"
5733 else
5734 no_cache=1
5735 fi
5736
5737 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5738
5739 fi
5740
5741
5742 eval "$ac_cv_use_notebook"
5743 if test "$no_cache" != 1; then
5744 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5745 fi
5746
5747 if test "$wxUSE_NOTEBOOK" = yes; then
5748 echo "$ac_t""yes" 1>&6
5749 else
5750 echo "$ac_t""no" 1>&6
5751 fi
5752
5753
5754 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5755 echo "configure:5756: checking for --enable-propsheet" >&5
5756 no_cache=0
5757 # Check whether --enable-propsheet or --disable-propsheet was given.
5758 if test "${enable_propsheet+set}" = set; then
5759 enableval="$enable_propsheet"
5760
5761 if test "$enableval" = yes; then
5762 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5763 else
5764 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5765 fi
5766
5767 else
5768
5769 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5770 if test "x$LINE" != x ; then
5771 eval "DEFAULT_$LINE"
5772 else
5773 no_cache=1
5774 fi
5775
5776 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5777
5778 fi
5779
5780
5781 eval "$ac_cv_use_propsheet"
5782 if test "$no_cache" != 1; then
5783 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5784 fi
5785
5786 if test "$wxUSE_PROPSHEET" = yes; then
5787 echo "$ac_t""yes" 1>&6
5788 else
5789 echo "$ac_t""no" 1>&6
5790 fi
5791
5792
5793 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5794 echo "configure:5795: checking for --enable-radiobox" >&5
5795 no_cache=0
5796 # Check whether --enable-radiobox or --disable-radiobox was given.
5797 if test "${enable_radiobox+set}" = set; then
5798 enableval="$enable_radiobox"
5799
5800 if test "$enableval" = yes; then
5801 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5802 else
5803 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5804 fi
5805
5806 else
5807
5808 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5809 if test "x$LINE" != x ; then
5810 eval "DEFAULT_$LINE"
5811 else
5812 no_cache=1
5813 fi
5814
5815 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5816
5817 fi
5818
5819
5820 eval "$ac_cv_use_radiobox"
5821 if test "$no_cache" != 1; then
5822 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5823 fi
5824
5825 if test "$wxUSE_RADIOBOX" = yes; then
5826 echo "$ac_t""yes" 1>&6
5827 else
5828 echo "$ac_t""no" 1>&6
5829 fi
5830
5831
5832 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5833 echo "configure:5834: checking for --enable-radiobtn" >&5
5834 no_cache=0
5835 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5836 if test "${enable_radiobtn+set}" = set; then
5837 enableval="$enable_radiobtn"
5838
5839 if test "$enableval" = yes; then
5840 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5841 else
5842 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5843 fi
5844
5845 else
5846
5847 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5848 if test "x$LINE" != x ; then
5849 eval "DEFAULT_$LINE"
5850 else
5851 no_cache=1
5852 fi
5853
5854 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5855
5856 fi
5857
5858
5859 eval "$ac_cv_use_radiobtn"
5860 if test "$no_cache" != 1; then
5861 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5862 fi
5863
5864 if test "$wxUSE_RADIOBTN" = yes; then
5865 echo "$ac_t""yes" 1>&6
5866 else
5867 echo "$ac_t""no" 1>&6
5868 fi
5869
5870
5871 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5872 echo "configure:5873: checking for --enable-sash" >&5
5873 no_cache=0
5874 # Check whether --enable-sash or --disable-sash was given.
5875 if test "${enable_sash+set}" = set; then
5876 enableval="$enable_sash"
5877
5878 if test "$enableval" = yes; then
5879 ac_cv_use_sash='wxUSE_SASH=yes'
5880 else
5881 ac_cv_use_sash='wxUSE_SASH=no'
5882 fi
5883
5884 else
5885
5886 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5887 if test "x$LINE" != x ; then
5888 eval "DEFAULT_$LINE"
5889 else
5890 no_cache=1
5891 fi
5892
5893 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5894
5895 fi
5896
5897
5898 eval "$ac_cv_use_sash"
5899 if test "$no_cache" != 1; then
5900 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5901 fi
5902
5903 if test "$wxUSE_SASH" = yes; then
5904 echo "$ac_t""yes" 1>&6
5905 else
5906 echo "$ac_t""no" 1>&6
5907 fi
5908
5909
5910 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5911 echo "configure:5912: checking for --enable-scrollbar" >&5
5912 no_cache=0
5913 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5914 if test "${enable_scrollbar+set}" = set; then
5915 enableval="$enable_scrollbar"
5916
5917 if test "$enableval" = yes; then
5918 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5919 else
5920 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5921 fi
5922
5923 else
5924
5925 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5926 if test "x$LINE" != x ; then
5927 eval "DEFAULT_$LINE"
5928 else
5929 no_cache=1
5930 fi
5931
5932 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5933
5934 fi
5935
5936
5937 eval "$ac_cv_use_scrollbar"
5938 if test "$no_cache" != 1; then
5939 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5940 fi
5941
5942 if test "$wxUSE_SCROLLBAR" = yes; then
5943 echo "$ac_t""yes" 1>&6
5944 else
5945 echo "$ac_t""no" 1>&6
5946 fi
5947
5948
5949 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5950 echo "configure:5951: checking for --enable-slider" >&5
5951 no_cache=0
5952 # Check whether --enable-slider or --disable-slider was given.
5953 if test "${enable_slider+set}" = set; then
5954 enableval="$enable_slider"
5955
5956 if test "$enableval" = yes; then
5957 ac_cv_use_slider='wxUSE_SLIDER=yes'
5958 else
5959 ac_cv_use_slider='wxUSE_SLIDER=no'
5960 fi
5961
5962 else
5963
5964 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5965 if test "x$LINE" != x ; then
5966 eval "DEFAULT_$LINE"
5967 else
5968 no_cache=1
5969 fi
5970
5971 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5972
5973 fi
5974
5975
5976 eval "$ac_cv_use_slider"
5977 if test "$no_cache" != 1; then
5978 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5979 fi
5980
5981 if test "$wxUSE_SLIDER" = yes; then
5982 echo "$ac_t""yes" 1>&6
5983 else
5984 echo "$ac_t""no" 1>&6
5985 fi
5986
5987
5988 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5989 echo "configure:5990: checking for --enable-spinbtn" >&5
5990 no_cache=0
5991 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5992 if test "${enable_spinbtn+set}" = set; then
5993 enableval="$enable_spinbtn"
5994
5995 if test "$enableval" = yes; then
5996 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5997 else
5998 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5999 fi
6000
6001 else
6002
6003 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6004 if test "x$LINE" != x ; then
6005 eval "DEFAULT_$LINE"
6006 else
6007 no_cache=1
6008 fi
6009
6010 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6011
6012 fi
6013
6014
6015 eval "$ac_cv_use_spinbtn"
6016 if test "$no_cache" != 1; then
6017 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6018 fi
6019
6020 if test "$wxUSE_SPINBTN" = yes; then
6021 echo "$ac_t""yes" 1>&6
6022 else
6023 echo "$ac_t""no" 1>&6
6024 fi
6025
6026
6027 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6028 echo "configure:6029: checking for --enable-spinctrl" >&5
6029 no_cache=0
6030 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6031 if test "${enable_spinctrl+set}" = set; then
6032 enableval="$enable_spinctrl"
6033
6034 if test "$enableval" = yes; then
6035 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6036 else
6037 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6038 fi
6039
6040 else
6041
6042 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6043 if test "x$LINE" != x ; then
6044 eval "DEFAULT_$LINE"
6045 else
6046 no_cache=1
6047 fi
6048
6049 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6050
6051 fi
6052
6053
6054 eval "$ac_cv_use_spinctrl"
6055 if test "$no_cache" != 1; then
6056 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6057 fi
6058
6059 if test "$wxUSE_SPINCTRL" = yes; then
6060 echo "$ac_t""yes" 1>&6
6061 else
6062 echo "$ac_t""no" 1>&6
6063 fi
6064
6065
6066 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6067 echo "configure:6068: checking for --enable-splitter" >&5
6068 no_cache=0
6069 # Check whether --enable-splitter or --disable-splitter was given.
6070 if test "${enable_splitter+set}" = set; then
6071 enableval="$enable_splitter"
6072
6073 if test "$enableval" = yes; then
6074 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6075 else
6076 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6077 fi
6078
6079 else
6080
6081 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6082 if test "x$LINE" != x ; then
6083 eval "DEFAULT_$LINE"
6084 else
6085 no_cache=1
6086 fi
6087
6088 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6089
6090 fi
6091
6092
6093 eval "$ac_cv_use_splitter"
6094 if test "$no_cache" != 1; then
6095 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6096 fi
6097
6098 if test "$wxUSE_SPLITTER" = yes; then
6099 echo "$ac_t""yes" 1>&6
6100 else
6101 echo "$ac_t""no" 1>&6
6102 fi
6103
6104
6105 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6106 echo "configure:6107: checking for --enable-statbmp" >&5
6107 no_cache=0
6108 # Check whether --enable-statbmp or --disable-statbmp was given.
6109 if test "${enable_statbmp+set}" = set; then
6110 enableval="$enable_statbmp"
6111
6112 if test "$enableval" = yes; then
6113 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6114 else
6115 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6116 fi
6117
6118 else
6119
6120 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6121 if test "x$LINE" != x ; then
6122 eval "DEFAULT_$LINE"
6123 else
6124 no_cache=1
6125 fi
6126
6127 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6128
6129 fi
6130
6131
6132 eval "$ac_cv_use_statbmp"
6133 if test "$no_cache" != 1; then
6134 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6135 fi
6136
6137 if test "$wxUSE_STATBMP" = yes; then
6138 echo "$ac_t""yes" 1>&6
6139 else
6140 echo "$ac_t""no" 1>&6
6141 fi
6142
6143
6144 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6145 echo "configure:6146: checking for --enable-statbox" >&5
6146 no_cache=0
6147 # Check whether --enable-statbox or --disable-statbox was given.
6148 if test "${enable_statbox+set}" = set; then
6149 enableval="$enable_statbox"
6150
6151 if test "$enableval" = yes; then
6152 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6153 else
6154 ac_cv_use_statbox='wxUSE_STATBOX=no'
6155 fi
6156
6157 else
6158
6159 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6160 if test "x$LINE" != x ; then
6161 eval "DEFAULT_$LINE"
6162 else
6163 no_cache=1
6164 fi
6165
6166 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6167
6168 fi
6169
6170
6171 eval "$ac_cv_use_statbox"
6172 if test "$no_cache" != 1; then
6173 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6174 fi
6175
6176 if test "$wxUSE_STATBOX" = yes; then
6177 echo "$ac_t""yes" 1>&6
6178 else
6179 echo "$ac_t""no" 1>&6
6180 fi
6181
6182
6183 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6184 echo "configure:6185: checking for --enable-statline" >&5
6185 no_cache=0
6186 # Check whether --enable-statline or --disable-statline was given.
6187 if test "${enable_statline+set}" = set; then
6188 enableval="$enable_statline"
6189
6190 if test "$enableval" = yes; then
6191 ac_cv_use_statline='wxUSE_STATLINE=yes'
6192 else
6193 ac_cv_use_statline='wxUSE_STATLINE=no'
6194 fi
6195
6196 else
6197
6198 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6199 if test "x$LINE" != x ; then
6200 eval "DEFAULT_$LINE"
6201 else
6202 no_cache=1
6203 fi
6204
6205 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6206
6207 fi
6208
6209
6210 eval "$ac_cv_use_statline"
6211 if test "$no_cache" != 1; then
6212 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6213 fi
6214
6215 if test "$wxUSE_STATLINE" = yes; then
6216 echo "$ac_t""yes" 1>&6
6217 else
6218 echo "$ac_t""no" 1>&6
6219 fi
6220
6221
6222 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6223 echo "configure:6224: checking for --enable-stattext" >&5
6224 no_cache=0
6225 # Check whether --enable-stattext or --disable-stattext was given.
6226 if test "${enable_stattext+set}" = set; then
6227 enableval="$enable_stattext"
6228
6229 if test "$enableval" = yes; then
6230 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6231 else
6232 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6233 fi
6234
6235 else
6236
6237 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6238 if test "x$LINE" != x ; then
6239 eval "DEFAULT_$LINE"
6240 else
6241 no_cache=1
6242 fi
6243
6244 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6245
6246 fi
6247
6248
6249 eval "$ac_cv_use_stattext"
6250 if test "$no_cache" != 1; then
6251 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6252 fi
6253
6254 if test "$wxUSE_STATTEXT" = yes; then
6255 echo "$ac_t""yes" 1>&6
6256 else
6257 echo "$ac_t""no" 1>&6
6258 fi
6259
6260
6261 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6262 echo "configure:6263: checking for --enable-statusbar" >&5
6263 no_cache=0
6264 # Check whether --enable-statusbar or --disable-statusbar was given.
6265 if test "${enable_statusbar+set}" = set; then
6266 enableval="$enable_statusbar"
6267
6268 if test "$enableval" = yes; then
6269 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6270 else
6271 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6272 fi
6273
6274 else
6275
6276 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6277 if test "x$LINE" != x ; then
6278 eval "DEFAULT_$LINE"
6279 else
6280 no_cache=1
6281 fi
6282
6283 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6284
6285 fi
6286
6287
6288 eval "$ac_cv_use_statusbar"
6289 if test "$no_cache" != 1; then
6290 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6291 fi
6292
6293 if test "$wxUSE_STATUSBAR" = yes; then
6294 echo "$ac_t""yes" 1>&6
6295 else
6296 echo "$ac_t""no" 1>&6
6297 fi
6298
6299
6300 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6301 echo "configure:6302: checking for --enable-tabdialog" >&5
6302 no_cache=0
6303 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6304 if test "${enable_tabdialog+set}" = set; then
6305 enableval="$enable_tabdialog"
6306
6307 if test "$enableval" = yes; then
6308 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6309 else
6310 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6311 fi
6312
6313 else
6314
6315 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6316 if test "x$LINE" != x ; then
6317 eval "DEFAULT_$LINE"
6318 else
6319 no_cache=1
6320 fi
6321
6322 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6323
6324 fi
6325
6326
6327 eval "$ac_cv_use_tabdialog"
6328 if test "$no_cache" != 1; then
6329 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6330 fi
6331
6332 if test "$wxUSE_TABDIALOG" = yes; then
6333 echo "$ac_t""yes" 1>&6
6334 else
6335 echo "$ac_t""no" 1>&6
6336 fi
6337
6338
6339 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6340 echo "configure:6341: checking for --enable-textctrl" >&5
6341 no_cache=0
6342 # Check whether --enable-textctrl or --disable-textctrl was given.
6343 if test "${enable_textctrl+set}" = set; then
6344 enableval="$enable_textctrl"
6345
6346 if test "$enableval" = yes; then
6347 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6348 else
6349 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6350 fi
6351
6352 else
6353
6354 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6355 if test "x$LINE" != x ; then
6356 eval "DEFAULT_$LINE"
6357 else
6358 no_cache=1
6359 fi
6360
6361 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6362
6363 fi
6364
6365
6366 eval "$ac_cv_use_textctrl"
6367 if test "$no_cache" != 1; then
6368 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6369 fi
6370
6371 if test "$wxUSE_TEXTCTRL" = yes; then
6372 echo "$ac_t""yes" 1>&6
6373 else
6374 echo "$ac_t""no" 1>&6
6375 fi
6376
6377
6378 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6379 echo "configure:6380: checking for --enable-togglebtn" >&5
6380 no_cache=0
6381 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6382 if test "${enable_togglebtn+set}" = set; then
6383 enableval="$enable_togglebtn"
6384
6385 if test "$enableval" = yes; then
6386 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6387 else
6388 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6389 fi
6390
6391 else
6392
6393 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6394 if test "x$LINE" != x ; then
6395 eval "DEFAULT_$LINE"
6396 else
6397 no_cache=1
6398 fi
6399
6400 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6401
6402 fi
6403
6404
6405 eval "$ac_cv_use_togglebtn"
6406 if test "$no_cache" != 1; then
6407 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6408 fi
6409
6410 if test "$wxUSE_TOGGLEBTN" = yes; then
6411 echo "$ac_t""yes" 1>&6
6412 else
6413 echo "$ac_t""no" 1>&6
6414 fi
6415
6416
6417 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6418 echo "configure:6419: checking for --enable-toolbar" >&5
6419 no_cache=0
6420 # Check whether --enable-toolbar or --disable-toolbar was given.
6421 if test "${enable_toolbar+set}" = set; then
6422 enableval="$enable_toolbar"
6423
6424 if test "$enableval" = yes; then
6425 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6426 else
6427 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6428 fi
6429
6430 else
6431
6432 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6433 if test "x$LINE" != x ; then
6434 eval "DEFAULT_$LINE"
6435 else
6436 no_cache=1
6437 fi
6438
6439 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6440
6441 fi
6442
6443
6444 eval "$ac_cv_use_toolbar"
6445 if test "$no_cache" != 1; then
6446 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6447 fi
6448
6449 if test "$wxUSE_TOOLBAR" = yes; then
6450 echo "$ac_t""yes" 1>&6
6451 else
6452 echo "$ac_t""no" 1>&6
6453 fi
6454
6455
6456 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6457 echo "configure:6458: checking for --enable-tbarnative" >&5
6458 no_cache=0
6459 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6460 if test "${enable_tbarnative+set}" = set; then
6461 enableval="$enable_tbarnative"
6462
6463 if test "$enableval" = yes; then
6464 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6465 else
6466 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6467 fi
6468
6469 else
6470
6471 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6472 if test "x$LINE" != x ; then
6473 eval "DEFAULT_$LINE"
6474 else
6475 no_cache=1
6476 fi
6477
6478 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6479
6480 fi
6481
6482
6483 eval "$ac_cv_use_tbarnative"
6484 if test "$no_cache" != 1; then
6485 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6486 fi
6487
6488 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6489 echo "$ac_t""yes" 1>&6
6490 else
6491 echo "$ac_t""no" 1>&6
6492 fi
6493
6494
6495 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6496 echo "configure:6497: checking for --enable-tbarsmpl" >&5
6497 no_cache=0
6498 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6499 if test "${enable_tbarsmpl+set}" = set; then
6500 enableval="$enable_tbarsmpl"
6501
6502 if test "$enableval" = yes; then
6503 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6504 else
6505 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6506 fi
6507
6508 else
6509
6510 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6511 if test "x$LINE" != x ; then
6512 eval "DEFAULT_$LINE"
6513 else
6514 no_cache=1
6515 fi
6516
6517 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6518
6519 fi
6520
6521
6522 eval "$ac_cv_use_tbarsmpl"
6523 if test "$no_cache" != 1; then
6524 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6525 fi
6526
6527 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6528 echo "$ac_t""yes" 1>&6
6529 else
6530 echo "$ac_t""no" 1>&6
6531 fi
6532
6533
6534 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6535 echo "configure:6536: checking for --enable-treectrl" >&5
6536 no_cache=0
6537 # Check whether --enable-treectrl or --disable-treectrl was given.
6538 if test "${enable_treectrl+set}" = set; then
6539 enableval="$enable_treectrl"
6540
6541 if test "$enableval" = yes; then
6542 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6543 else
6544 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6545 fi
6546
6547 else
6548
6549 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6550 if test "x$LINE" != x ; then
6551 eval "DEFAULT_$LINE"
6552 else
6553 no_cache=1
6554 fi
6555
6556 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6557
6558 fi
6559
6560
6561 eval "$ac_cv_use_treectrl"
6562 if test "$no_cache" != 1; then
6563 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6564 fi
6565
6566 if test "$wxUSE_TREECTRL" = yes; then
6567 echo "$ac_t""yes" 1>&6
6568 else
6569 echo "$ac_t""no" 1>&6
6570 fi
6571
6572
6573 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6574 echo "configure:6575: checking for --enable-popupwin" >&5
6575 no_cache=0
6576 # Check whether --enable-popupwin or --disable-popupwin was given.
6577 if test "${enable_popupwin+set}" = set; then
6578 enableval="$enable_popupwin"
6579
6580 if test "$enableval" = yes; then
6581 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6582 else
6583 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6584 fi
6585
6586 else
6587
6588 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6589 if test "x$LINE" != x ; then
6590 eval "DEFAULT_$LINE"
6591 else
6592 no_cache=1
6593 fi
6594
6595 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6596
6597 fi
6598
6599
6600 eval "$ac_cv_use_popupwin"
6601 if test "$no_cache" != 1; then
6602 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6603 fi
6604
6605 if test "$wxUSE_POPUPWIN" = yes; then
6606 echo "$ac_t""yes" 1>&6
6607 else
6608 echo "$ac_t""no" 1>&6
6609 fi
6610
6611
6612
6613
6614 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6615 echo "configure:6616: checking for --enable-commondlg" >&5
6616 no_cache=0
6617 # Check whether --enable-commondlg or --disable-commondlg was given.
6618 if test "${enable_commondlg+set}" = set; then
6619 enableval="$enable_commondlg"
6620
6621 if test "$enableval" = yes; then
6622 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6623 else
6624 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6625 fi
6626
6627 else
6628
6629 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6630 if test "x$LINE" != x ; then
6631 eval "DEFAULT_$LINE"
6632 else
6633 no_cache=1
6634 fi
6635
6636 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6637
6638 fi
6639
6640
6641 eval "$ac_cv_use_commondlg"
6642 if test "$no_cache" != 1; then
6643 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6644 fi
6645
6646 if test "$wxUSE_COMMONDLGS" = yes; then
6647 echo "$ac_t""yes" 1>&6
6648 else
6649 echo "$ac_t""no" 1>&6
6650 fi
6651
6652
6653 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6654 echo "configure:6655: checking for --enable-choicedlg" >&5
6655 no_cache=0
6656 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6657 if test "${enable_choicedlg+set}" = set; then
6658 enableval="$enable_choicedlg"
6659
6660 if test "$enableval" = yes; then
6661 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6662 else
6663 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6664 fi
6665
6666 else
6667
6668 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6669 if test "x$LINE" != x ; then
6670 eval "DEFAULT_$LINE"
6671 else
6672 no_cache=1
6673 fi
6674
6675 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6676
6677 fi
6678
6679
6680 eval "$ac_cv_use_choicedlg"
6681 if test "$no_cache" != 1; then
6682 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6683 fi
6684
6685 if test "$wxUSE_CHOICEDLG" = yes; then
6686 echo "$ac_t""yes" 1>&6
6687 else
6688 echo "$ac_t""no" 1>&6
6689 fi
6690
6691
6692 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6693 echo "configure:6694: checking for --enable-coldlg" >&5
6694 no_cache=0
6695 # Check whether --enable-coldlg or --disable-coldlg was given.
6696 if test "${enable_coldlg+set}" = set; then
6697 enableval="$enable_coldlg"
6698
6699 if test "$enableval" = yes; then
6700 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6701 else
6702 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6703 fi
6704
6705 else
6706
6707 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6708 if test "x$LINE" != x ; then
6709 eval "DEFAULT_$LINE"
6710 else
6711 no_cache=1
6712 fi
6713
6714 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6715
6716 fi
6717
6718
6719 eval "$ac_cv_use_coldlg"
6720 if test "$no_cache" != 1; then
6721 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6722 fi
6723
6724 if test "$wxUSE_COLOURDLG" = yes; then
6725 echo "$ac_t""yes" 1>&6
6726 else
6727 echo "$ac_t""no" 1>&6
6728 fi
6729
6730
6731 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6732 echo "configure:6733: checking for --enable-filedlg" >&5
6733 no_cache=0
6734 # Check whether --enable-filedlg or --disable-filedlg was given.
6735 if test "${enable_filedlg+set}" = set; then
6736 enableval="$enable_filedlg"
6737
6738 if test "$enableval" = yes; then
6739 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6740 else
6741 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6742 fi
6743
6744 else
6745
6746 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6747 if test "x$LINE" != x ; then
6748 eval "DEFAULT_$LINE"
6749 else
6750 no_cache=1
6751 fi
6752
6753 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6754
6755 fi
6756
6757
6758 eval "$ac_cv_use_filedlg"
6759 if test "$no_cache" != 1; then
6760 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6761 fi
6762
6763 if test "$wxUSE_FILEDLG" = yes; then
6764 echo "$ac_t""yes" 1>&6
6765 else
6766 echo "$ac_t""no" 1>&6
6767 fi
6768
6769
6770 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6771 echo "configure:6772: checking for --enable-filedlg" >&5
6772 no_cache=0
6773 # Check whether --enable-filedlg or --disable-filedlg was given.
6774 if test "${enable_filedlg+set}" = set; then
6775 enableval="$enable_filedlg"
6776
6777 if test "$enableval" = yes; then
6778 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6779 else
6780 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6781 fi
6782
6783 else
6784
6785 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6786 if test "x$LINE" != x ; then
6787 eval "DEFAULT_$LINE"
6788 else
6789 no_cache=1
6790 fi
6791
6792 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6793
6794 fi
6795
6796
6797 eval "$ac_cv_use_filedlg"
6798 if test "$no_cache" != 1; then
6799 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6800 fi
6801
6802 if test "$wxUSE_FINDREPLDLG" = yes; then
6803 echo "$ac_t""yes" 1>&6
6804 else
6805 echo "$ac_t""no" 1>&6
6806 fi
6807
6808
6809 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6810 echo "configure:6811: checking for --enable-fontdlg" >&5
6811 no_cache=0
6812 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6813 if test "${enable_fontdlg+set}" = set; then
6814 enableval="$enable_fontdlg"
6815
6816 if test "$enableval" = yes; then
6817 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6818 else
6819 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6820 fi
6821
6822 else
6823
6824 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6825 if test "x$LINE" != x ; then
6826 eval "DEFAULT_$LINE"
6827 else
6828 no_cache=1
6829 fi
6830
6831 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6832
6833 fi
6834
6835
6836 eval "$ac_cv_use_fontdlg"
6837 if test "$no_cache" != 1; then
6838 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6839 fi
6840
6841 if test "$wxUSE_FONTDLG" = yes; then
6842 echo "$ac_t""yes" 1>&6
6843 else
6844 echo "$ac_t""no" 1>&6
6845 fi
6846
6847
6848 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6849 echo "configure:6850: checking for --enable-dirdlg" >&5
6850 no_cache=0
6851 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6852 if test "${enable_dirdlg+set}" = set; then
6853 enableval="$enable_dirdlg"
6854
6855 if test "$enableval" = yes; then
6856 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6857 else
6858 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6859 fi
6860
6861 else
6862
6863 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6864 if test "x$LINE" != x ; then
6865 eval "DEFAULT_$LINE"
6866 else
6867 no_cache=1
6868 fi
6869
6870 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6871
6872 fi
6873
6874
6875 eval "$ac_cv_use_dirdlg"
6876 if test "$no_cache" != 1; then
6877 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6878 fi
6879
6880 if test "$wxUSE_DIRDLG" = yes; then
6881 echo "$ac_t""yes" 1>&6
6882 else
6883 echo "$ac_t""no" 1>&6
6884 fi
6885
6886
6887 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6888 echo "configure:6889: checking for --enable-msgdlg" >&5
6889 no_cache=0
6890 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6891 if test "${enable_msgdlg+set}" = set; then
6892 enableval="$enable_msgdlg"
6893
6894 if test "$enableval" = yes; then
6895 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6896 else
6897 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6898 fi
6899
6900 else
6901
6902 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6903 if test "x$LINE" != x ; then
6904 eval "DEFAULT_$LINE"
6905 else
6906 no_cache=1
6907 fi
6908
6909 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6910
6911 fi
6912
6913
6914 eval "$ac_cv_use_msgdlg"
6915 if test "$no_cache" != 1; then
6916 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6917 fi
6918
6919 if test "$wxUSE_MSGDLG" = yes; then
6920 echo "$ac_t""yes" 1>&6
6921 else
6922 echo "$ac_t""no" 1>&6
6923 fi
6924
6925
6926 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6927 echo "configure:6928: checking for --enable-numberdlg" >&5
6928 no_cache=0
6929 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6930 if test "${enable_numberdlg+set}" = set; then
6931 enableval="$enable_numberdlg"
6932
6933 if test "$enableval" = yes; then
6934 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6935 else
6936 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6937 fi
6938
6939 else
6940
6941 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6942 if test "x$LINE" != x ; then
6943 eval "DEFAULT_$LINE"
6944 else
6945 no_cache=1
6946 fi
6947
6948 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6949
6950 fi
6951
6952
6953 eval "$ac_cv_use_numberdlg"
6954 if test "$no_cache" != 1; then
6955 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6956 fi
6957
6958 if test "$wxUSE_NUMBERDLG" = yes; then
6959 echo "$ac_t""yes" 1>&6
6960 else
6961 echo "$ac_t""no" 1>&6
6962 fi
6963
6964
6965 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
6966 echo "configure:6967: checking for --enable-splash" >&5
6967 no_cache=0
6968 # Check whether --enable-splash or --disable-splash was given.
6969 if test "${enable_splash+set}" = set; then
6970 enableval="$enable_splash"
6971
6972 if test "$enableval" = yes; then
6973 ac_cv_use_splash='wxUSE_SPLASH=yes'
6974 else
6975 ac_cv_use_splash='wxUSE_SPLASH=no'
6976 fi
6977
6978 else
6979
6980 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
6981 if test "x$LINE" != x ; then
6982 eval "DEFAULT_$LINE"
6983 else
6984 no_cache=1
6985 fi
6986
6987 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
6988
6989 fi
6990
6991
6992 eval "$ac_cv_use_splash"
6993 if test "$no_cache" != 1; then
6994 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
6995 fi
6996
6997 if test "$wxUSE_SPLASH" = yes; then
6998 echo "$ac_t""yes" 1>&6
6999 else
7000 echo "$ac_t""no" 1>&6
7001 fi
7002
7003
7004 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7005 echo "configure:7006: checking for --enable-textdlg" >&5
7006 no_cache=0
7007 # Check whether --enable-textdlg or --disable-textdlg was given.
7008 if test "${enable_textdlg+set}" = set; then
7009 enableval="$enable_textdlg"
7010
7011 if test "$enableval" = yes; then
7012 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7013 else
7014 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7015 fi
7016
7017 else
7018
7019 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7020 if test "x$LINE" != x ; then
7021 eval "DEFAULT_$LINE"
7022 else
7023 no_cache=1
7024 fi
7025
7026 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7027
7028 fi
7029
7030
7031 eval "$ac_cv_use_textdlg"
7032 if test "$no_cache" != 1; then
7033 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7034 fi
7035
7036 if test "$wxUSE_TEXTDLG" = yes; then
7037 echo "$ac_t""yes" 1>&6
7038 else
7039 echo "$ac_t""no" 1>&6
7040 fi
7041
7042
7043 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7044 echo "configure:7045: checking for --enable-tipdlg" >&5
7045 no_cache=0
7046 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7047 if test "${enable_tipdlg+set}" = set; then
7048 enableval="$enable_tipdlg"
7049
7050 if test "$enableval" = yes; then
7051 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7052 else
7053 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7054 fi
7055
7056 else
7057
7058 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7059 if test "x$LINE" != x ; then
7060 eval "DEFAULT_$LINE"
7061 else
7062 no_cache=1
7063 fi
7064
7065 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7066
7067 fi
7068
7069
7070 eval "$ac_cv_use_tipdlg"
7071 if test "$no_cache" != 1; then
7072 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7073 fi
7074
7075 if test "$wxUSE_STARTUP_TIPS" = yes; then
7076 echo "$ac_t""yes" 1>&6
7077 else
7078 echo "$ac_t""no" 1>&6
7079 fi
7080
7081
7082 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7083 echo "configure:7084: checking for --enable-progressdlg" >&5
7084 no_cache=0
7085 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7086 if test "${enable_progressdlg+set}" = set; then
7087 enableval="$enable_progressdlg"
7088
7089 if test "$enableval" = yes; then
7090 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7091 else
7092 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7093 fi
7094
7095 else
7096
7097 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7098 if test "x$LINE" != x ; then
7099 eval "DEFAULT_$LINE"
7100 else
7101 no_cache=1
7102 fi
7103
7104 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7105
7106 fi
7107
7108
7109 eval "$ac_cv_use_progressdlg"
7110 if test "$no_cache" != 1; then
7111 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7112 fi
7113
7114 if test "$wxUSE_PROGRESSDLG" = yes; then
7115 echo "$ac_t""yes" 1>&6
7116 else
7117 echo "$ac_t""no" 1>&6
7118 fi
7119
7120
7121 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7122 echo "configure:7123: checking for --enable-wizarddlg" >&5
7123 no_cache=0
7124 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7125 if test "${enable_wizarddlg+set}" = set; then
7126 enableval="$enable_wizarddlg"
7127
7128 if test "$enableval" = yes; then
7129 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7130 else
7131 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7132 fi
7133
7134 else
7135
7136 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7137 if test "x$LINE" != x ; then
7138 eval "DEFAULT_$LINE"
7139 else
7140 no_cache=1
7141 fi
7142
7143 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7144
7145 fi
7146
7147
7148 eval "$ac_cv_use_wizarddlg"
7149 if test "$no_cache" != 1; then
7150 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7151 fi
7152
7153 if test "$wxUSE_WIZARDDLG" = yes; then
7154 echo "$ac_t""yes" 1>&6
7155 else
7156 echo "$ac_t""no" 1>&6
7157 fi
7158
7159
7160
7161
7162 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7163 echo "configure:7164: checking for --enable-menus" >&5
7164 no_cache=0
7165 # Check whether --enable-menus or --disable-menus was given.
7166 if test "${enable_menus+set}" = set; then
7167 enableval="$enable_menus"
7168
7169 if test "$enableval" = yes; then
7170 ac_cv_use_menus='wxUSE_MENUS=yes'
7171 else
7172 ac_cv_use_menus='wxUSE_MENUS=no'
7173 fi
7174
7175 else
7176
7177 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7178 if test "x$LINE" != x ; then
7179 eval "DEFAULT_$LINE"
7180 else
7181 no_cache=1
7182 fi
7183
7184 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7185
7186 fi
7187
7188
7189 eval "$ac_cv_use_menus"
7190 if test "$no_cache" != 1; then
7191 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7192 fi
7193
7194 if test "$wxUSE_MENUS" = yes; then
7195 echo "$ac_t""yes" 1>&6
7196 else
7197 echo "$ac_t""no" 1>&6
7198 fi
7199
7200
7201 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7202 echo "configure:7203: checking for --enable-miniframe" >&5
7203 no_cache=0
7204 # Check whether --enable-miniframe or --disable-miniframe was given.
7205 if test "${enable_miniframe+set}" = set; then
7206 enableval="$enable_miniframe"
7207
7208 if test "$enableval" = yes; then
7209 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7210 else
7211 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7212 fi
7213
7214 else
7215
7216 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7217 if test "x$LINE" != x ; then
7218 eval "DEFAULT_$LINE"
7219 else
7220 no_cache=1
7221 fi
7222
7223 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7224
7225 fi
7226
7227
7228 eval "$ac_cv_use_miniframe"
7229 if test "$no_cache" != 1; then
7230 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7231 fi
7232
7233 if test "$wxUSE_MINIFRAME" = yes; then
7234 echo "$ac_t""yes" 1>&6
7235 else
7236 echo "$ac_t""no" 1>&6
7237 fi
7238
7239
7240 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7241 echo "configure:7242: checking for --enable-tooltips" >&5
7242 no_cache=0
7243 # Check whether --enable-tooltips or --disable-tooltips was given.
7244 if test "${enable_tooltips+set}" = set; then
7245 enableval="$enable_tooltips"
7246
7247 if test "$enableval" = yes; then
7248 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7249 else
7250 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7251 fi
7252
7253 else
7254
7255 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7256 if test "x$LINE" != x ; then
7257 eval "DEFAULT_$LINE"
7258 else
7259 no_cache=1
7260 fi
7261
7262 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7263
7264 fi
7265
7266
7267 eval "$ac_cv_use_tooltips"
7268 if test "$no_cache" != 1; then
7269 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7270 fi
7271
7272 if test "$wxUSE_TOOLTIPS" = yes; then
7273 echo "$ac_t""yes" 1>&6
7274 else
7275 echo "$ac_t""no" 1>&6
7276 fi
7277
7278
7279 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7280 echo "configure:7281: checking for --enable-splines" >&5
7281 no_cache=0
7282 # Check whether --enable-splines or --disable-splines was given.
7283 if test "${enable_splines+set}" = set; then
7284 enableval="$enable_splines"
7285
7286 if test "$enableval" = yes; then
7287 ac_cv_use_splines='wxUSE_SPLINES=yes'
7288 else
7289 ac_cv_use_splines='wxUSE_SPLINES=no'
7290 fi
7291
7292 else
7293
7294 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7295 if test "x$LINE" != x ; then
7296 eval "DEFAULT_$LINE"
7297 else
7298 no_cache=1
7299 fi
7300
7301 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7302
7303 fi
7304
7305
7306 eval "$ac_cv_use_splines"
7307 if test "$no_cache" != 1; then
7308 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7309 fi
7310
7311 if test "$wxUSE_SPLINES" = yes; then
7312 echo "$ac_t""yes" 1>&6
7313 else
7314 echo "$ac_t""no" 1>&6
7315 fi
7316
7317
7318 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7319 echo "configure:7320: checking for --enable-validators" >&5
7320 no_cache=0
7321 # Check whether --enable-validators or --disable-validators was given.
7322 if test "${enable_validators+set}" = set; then
7323 enableval="$enable_validators"
7324
7325 if test "$enableval" = yes; then
7326 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7327 else
7328 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7329 fi
7330
7331 else
7332
7333 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7334 if test "x$LINE" != x ; then
7335 eval "DEFAULT_$LINE"
7336 else
7337 no_cache=1
7338 fi
7339
7340 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7341
7342 fi
7343
7344
7345 eval "$ac_cv_use_validators"
7346 if test "$no_cache" != 1; then
7347 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7348 fi
7349
7350 if test "$wxUSE_VALIDATORS" = yes; then
7351 echo "$ac_t""yes" 1>&6
7352 else
7353 echo "$ac_t""no" 1>&6
7354 fi
7355
7356
7357 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7358 echo "configure:7359: checking for --enable-busyinfo" >&5
7359 no_cache=0
7360 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7361 if test "${enable_busyinfo+set}" = set; then
7362 enableval="$enable_busyinfo"
7363
7364 if test "$enableval" = yes; then
7365 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7366 else
7367 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7368 fi
7369
7370 else
7371
7372 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7373 if test "x$LINE" != x ; then
7374 eval "DEFAULT_$LINE"
7375 else
7376 no_cache=1
7377 fi
7378
7379 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7380
7381 fi
7382
7383
7384 eval "$ac_cv_use_busyinfo"
7385 if test "$no_cache" != 1; then
7386 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7387 fi
7388
7389 if test "$wxUSE_BUSYINFO" = yes; then
7390 echo "$ac_t""yes" 1>&6
7391 else
7392 echo "$ac_t""no" 1>&6
7393 fi
7394
7395
7396 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7397 echo "configure:7398: checking for --enable-joystick" >&5
7398 no_cache=0
7399 # Check whether --enable-joystick or --disable-joystick was given.
7400 if test "${enable_joystick+set}" = set; then
7401 enableval="$enable_joystick"
7402
7403 if test "$enableval" = yes; then
7404 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7405 else
7406 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7407 fi
7408
7409 else
7410
7411 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7412 if test "x$LINE" != x ; then
7413 eval "DEFAULT_$LINE"
7414 else
7415 no_cache=1
7416 fi
7417
7418 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7419
7420 fi
7421
7422
7423 eval "$ac_cv_use_joystick"
7424 if test "$no_cache" != 1; then
7425 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7426 fi
7427
7428 if test "$wxUSE_JOYSTICK" = yes; then
7429 echo "$ac_t""yes" 1>&6
7430 else
7431 echo "$ac_t""no" 1>&6
7432 fi
7433
7434
7435 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7436 echo "configure:7437: checking for --enable-metafile" >&5
7437 no_cache=0
7438 # Check whether --enable-metafile or --disable-metafile was given.
7439 if test "${enable_metafile+set}" = set; then
7440 enableval="$enable_metafile"
7441
7442 if test "$enableval" = yes; then
7443 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7444 else
7445 ac_cv_use_metafile='wxUSE_METAFILE=no'
7446 fi
7447
7448 else
7449
7450 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7451 if test "x$LINE" != x ; then
7452 eval "DEFAULT_$LINE"
7453 else
7454 no_cache=1
7455 fi
7456
7457 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7458
7459 fi
7460
7461
7462 eval "$ac_cv_use_metafile"
7463 if test "$no_cache" != 1; then
7464 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7465 fi
7466
7467 if test "$wxUSE_METAFILE" = yes; then
7468 echo "$ac_t""yes" 1>&6
7469 else
7470 echo "$ac_t""no" 1>&6
7471 fi
7472
7473
7474 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7475 echo "configure:7476: checking for --enable-dragimage" >&5
7476 no_cache=0
7477 # Check whether --enable-dragimage or --disable-dragimage was given.
7478 if test "${enable_dragimage+set}" = set; then
7479 enableval="$enable_dragimage"
7480
7481 if test "$enableval" = yes; then
7482 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7483 else
7484 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7485 fi
7486
7487 else
7488
7489 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7490 if test "x$LINE" != x ; then
7491 eval "DEFAULT_$LINE"
7492 else
7493 no_cache=1
7494 fi
7495
7496 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7497
7498 fi
7499
7500
7501 eval "$ac_cv_use_dragimage"
7502 if test "$no_cache" != 1; then
7503 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7504 fi
7505
7506 if test "$wxUSE_DRAGIMAGE" = yes; then
7507 echo "$ac_t""yes" 1>&6
7508 else
7509 echo "$ac_t""no" 1>&6
7510 fi
7511
7512
7513
7514
7515 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7516 echo "configure:7517: checking for --enable-image" >&5
7517 no_cache=0
7518 # Check whether --enable-image or --disable-image was given.
7519 if test "${enable_image+set}" = set; then
7520 enableval="$enable_image"
7521
7522 if test "$enableval" = yes; then
7523 ac_cv_use_image='wxUSE_IMAGE=yes'
7524 else
7525 ac_cv_use_image='wxUSE_IMAGE=no'
7526 fi
7527
7528 else
7529
7530 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7531 if test "x$LINE" != x ; then
7532 eval "DEFAULT_$LINE"
7533 else
7534 no_cache=1
7535 fi
7536
7537 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7538
7539 fi
7540
7541
7542 eval "$ac_cv_use_image"
7543 if test "$no_cache" != 1; then
7544 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7545 fi
7546
7547 if test "$wxUSE_IMAGE" = yes; then
7548 echo "$ac_t""yes" 1>&6
7549 else
7550 echo "$ac_t""no" 1>&6
7551 fi
7552
7553
7554 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7555 echo "configure:7556: checking for --enable-gif" >&5
7556 no_cache=0
7557 # Check whether --enable-gif or --disable-gif was given.
7558 if test "${enable_gif+set}" = set; then
7559 enableval="$enable_gif"
7560
7561 if test "$enableval" = yes; then
7562 ac_cv_use_gif='wxUSE_GIF=yes'
7563 else
7564 ac_cv_use_gif='wxUSE_GIF=no'
7565 fi
7566
7567 else
7568
7569 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7570 if test "x$LINE" != x ; then
7571 eval "DEFAULT_$LINE"
7572 else
7573 no_cache=1
7574 fi
7575
7576 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7577
7578 fi
7579
7580
7581 eval "$ac_cv_use_gif"
7582 if test "$no_cache" != 1; then
7583 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7584 fi
7585
7586 if test "$wxUSE_GIF" = yes; then
7587 echo "$ac_t""yes" 1>&6
7588 else
7589 echo "$ac_t""no" 1>&6
7590 fi
7591
7592
7593 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7594 echo "configure:7595: checking for --enable-pcx" >&5
7595 no_cache=0
7596 # Check whether --enable-pcx or --disable-pcx was given.
7597 if test "${enable_pcx+set}" = set; then
7598 enableval="$enable_pcx"
7599
7600 if test "$enableval" = yes; then
7601 ac_cv_use_pcx='wxUSE_PCX=yes'
7602 else
7603 ac_cv_use_pcx='wxUSE_PCX=no'
7604 fi
7605
7606 else
7607
7608 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7609 if test "x$LINE" != x ; then
7610 eval "DEFAULT_$LINE"
7611 else
7612 no_cache=1
7613 fi
7614
7615 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7616
7617 fi
7618
7619
7620 eval "$ac_cv_use_pcx"
7621 if test "$no_cache" != 1; then
7622 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7623 fi
7624
7625 if test "$wxUSE_PCX" = yes; then
7626 echo "$ac_t""yes" 1>&6
7627 else
7628 echo "$ac_t""no" 1>&6
7629 fi
7630
7631
7632 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7633 echo "configure:7634: checking for --enable-pnm" >&5
7634 no_cache=0
7635 # Check whether --enable-pnm or --disable-pnm was given.
7636 if test "${enable_pnm+set}" = set; then
7637 enableval="$enable_pnm"
7638
7639 if test "$enableval" = yes; then
7640 ac_cv_use_pnm='wxUSE_PNM=yes'
7641 else
7642 ac_cv_use_pnm='wxUSE_PNM=no'
7643 fi
7644
7645 else
7646
7647 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7648 if test "x$LINE" != x ; then
7649 eval "DEFAULT_$LINE"
7650 else
7651 no_cache=1
7652 fi
7653
7654 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7655
7656 fi
7657
7658
7659 eval "$ac_cv_use_pnm"
7660 if test "$no_cache" != 1; then
7661 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7662 fi
7663
7664 if test "$wxUSE_PNM" = yes; then
7665 echo "$ac_t""yes" 1>&6
7666 else
7667 echo "$ac_t""no" 1>&6
7668 fi
7669
7670
7671 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7672 echo "configure:7673: checking for --enable-pnm" >&5
7673 no_cache=0
7674 # Check whether --enable-pnm or --disable-pnm was given.
7675 if test "${enable_pnm+set}" = set; then
7676 enableval="$enable_pnm"
7677
7678 if test "$enableval" = yes; then
7679 ac_cv_use_pnm='wxUSE_XPM=yes'
7680 else
7681 ac_cv_use_pnm='wxUSE_XPM=no'
7682 fi
7683
7684 else
7685
7686 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7687 if test "x$LINE" != x ; then
7688 eval "DEFAULT_$LINE"
7689 else
7690 no_cache=1
7691 fi
7692
7693 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7694
7695 fi
7696
7697
7698 eval "$ac_cv_use_pnm"
7699 if test "$no_cache" != 1; then
7700 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7701 fi
7702
7703 if test "$wxUSE_XPM" = yes; then
7704 echo "$ac_t""yes" 1>&6
7705 else
7706 echo "$ac_t""no" 1>&6
7707 fi
7708
7709
7710 fi
7711
7712
7713 echo "saving argument cache $wx_arg_cache_file"
7714 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7715
7716
7717
7718 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7719 echo "configure:7720: checking for toolkit" >&5
7720
7721 if test "$wxUSE_GUI" = "yes"; then
7722
7723 if test "$USE_BEOS" = 1; then
7724 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7725 fi
7726
7727 if test "$TOOLKIT_GIVEN" = 1; then
7728 for toolkit in `echo $ALL_TOOLKITS`; do
7729 var=wxUSE_$toolkit
7730 eval "value=\$${var}"
7731 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7732 done
7733 else
7734 for toolkit in `echo $ALL_TOOLKITS`; do
7735 if test "$has_toolkit_in_cache" != 1; then
7736 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7737 else
7738 var=DEFAULT_wxUSE_$toolkit
7739 fi
7740 eval "wxUSE_$toolkit=\$${var}"
7741 done
7742 fi
7743
7744 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
7745 + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} \
7746 + ${wxUSE_MGL:-0}`
7747
7748 case "${host}" in
7749 *-pc-os2_emx )
7750 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7751 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7752 LEX_STEM="lexyy"
7753 ;;
7754 *)
7755 PATH_IFS=':'
7756 LEX_STEM="lex.yy"
7757 ;;
7758 esac
7759
7760 case "$NUM_TOOLKITS" in
7761 1)
7762 ;;
7763 0)
7764 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7765 ;;
7766 *)
7767 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7768 esac
7769
7770 for toolkit in `echo $ALL_TOOLKITS`; do
7771 var=wxUSE_$toolkit
7772 eval "value=\$${var}"
7773 if test "x$value" != x; then
7774 cache_var=CACHE_$toolkit
7775 eval "cache=\$${cache_var}"
7776 if test "$cache" = 1; then
7777 echo "$var=$value" >> ${wx_arg_cache_file}
7778 fi
7779 if test "$value" = 1; then
7780 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7781 echo "$ac_t""$toolkit_echo" 1>&6
7782 fi
7783 fi
7784 done
7785 else
7786 PATH_IFS=':'
7787 echo "$ac_t""base ($host_alias hosted) only" 1>&6
7788 fi
7789
7790
7791 cat > confcache <<\EOF
7792 # This file is a shell script that caches the results of configure
7793 # tests run on this system so they can be shared between configure
7794 # scripts and configure runs. It is not useful on other systems.
7795 # If it contains results you don't want to keep, you may remove or edit it.
7796 #
7797 # By default, configure uses ./config.cache as the cache file,
7798 # creating it if it does not exist already. You can give configure
7799 # the --cache-file=FILE option to use a different cache file; that is
7800 # what configure does when it calls configure scripts in
7801 # subdirectories, so they share the cache.
7802 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7803 # config.status only pays attention to the cache file if you give it the
7804 # --recheck option to rerun configure.
7805 #
7806 EOF
7807 # The following way of writing the cache mishandles newlines in values,
7808 # but we know of no workaround that is simple, portable, and efficient.
7809 # So, don't put newlines in cache variables' values.
7810 # Ultrix sh set writes to stderr and can't be redirected directly,
7811 # and sets the high bit in the cache file unless we assign to the vars.
7812 (set) 2>&1 |
7813 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7814 *ac_space=\ *)
7815 # `set' does not quote correctly, so add quotes (double-quote substitution
7816 # turns \\\\ into \\, and sed turns \\ into \).
7817 sed -n \
7818 -e "s/'/'\\\\''/g" \
7819 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7820 ;;
7821 *)
7822 # `set' quotes correctly as required by POSIX, so do not add quotes.
7823 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7824 ;;
7825 esac >> confcache
7826 if cmp -s $cache_file confcache; then
7827 :
7828 else
7829 if test -w $cache_file; then
7830 echo "updating cache $cache_file"
7831 cat confcache > $cache_file
7832 else
7833 echo "not updating unwritable cache $cache_file"
7834 fi
7835 fi
7836 rm -f confcache
7837
7838
7839 if test "$build" != "$host" ; then
7840 if test "$USE_WIN32" = 1 ; then
7841 CC=$host_alias-gcc
7842 CXX=$host_alias-c++
7843 AR=$host_alias-ar
7844 RANLIB=$host_alias-ranlib
7845 DLLTOOL=$host_alias-dlltool
7846 RESCOMP=$host_alias-windres
7847 LD=$host_alias-ld
7848 NM=$host_alias-nm
7849 STRIP=$host_alias-strip
7850 else
7851 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
7852 fi
7853 fi
7854
7855 # Extract the first word of "gcc", so it can be a program name with args.
7856 set dummy gcc; ac_word=$2
7857 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7858 echo "configure:7859: checking for $ac_word" >&5
7859 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7860 echo $ac_n "(cached) $ac_c" 1>&6
7861 else
7862 if test -n "$CC"; then
7863 ac_cv_prog_CC="$CC" # Let the user override the test.
7864 else
7865 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7866 ac_dummy="$PATH"
7867 for ac_dir in $ac_dummy; do
7868 test -z "$ac_dir" && ac_dir=.
7869 if test -f $ac_dir/$ac_word; then
7870 ac_cv_prog_CC="gcc"
7871 break
7872 fi
7873 done
7874 IFS="$ac_save_ifs"
7875 fi
7876 fi
7877 CC="$ac_cv_prog_CC"
7878 if test -n "$CC"; then
7879 echo "$ac_t""$CC" 1>&6
7880 else
7881 echo "$ac_t""no" 1>&6
7882 fi
7883
7884 if test -z "$CC"; then
7885 # Extract the first word of "cc", so it can be a program name with args.
7886 set dummy cc; ac_word=$2
7887 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7888 echo "configure:7889: checking for $ac_word" >&5
7889 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7890 echo $ac_n "(cached) $ac_c" 1>&6
7891 else
7892 if test -n "$CC"; then
7893 ac_cv_prog_CC="$CC" # Let the user override the test.
7894 else
7895 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7896 ac_prog_rejected=no
7897 ac_dummy="$PATH"
7898 for ac_dir in $ac_dummy; do
7899 test -z "$ac_dir" && ac_dir=.
7900 if test -f $ac_dir/$ac_word; then
7901 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7902 ac_prog_rejected=yes
7903 continue
7904 fi
7905 ac_cv_prog_CC="cc"
7906 break
7907 fi
7908 done
7909 IFS="$ac_save_ifs"
7910 if test $ac_prog_rejected = yes; then
7911 # We found a bogon in the path, so make sure we never use it.
7912 set dummy $ac_cv_prog_CC
7913 shift
7914 if test $# -gt 0; then
7915 # We chose a different compiler from the bogus one.
7916 # However, it has the same basename, so the bogon will be chosen
7917 # first if we set CC to just the basename; use the full file name.
7918 shift
7919 set dummy "$ac_dir/$ac_word" "$@"
7920 shift
7921 ac_cv_prog_CC="$@"
7922 fi
7923 fi
7924 fi
7925 fi
7926 CC="$ac_cv_prog_CC"
7927 if test -n "$CC"; then
7928 echo "$ac_t""$CC" 1>&6
7929 else
7930 echo "$ac_t""no" 1>&6
7931 fi
7932
7933 if test -z "$CC"; then
7934 case "`uname -s`" in
7935 *win32* | *WIN32*)
7936 # Extract the first word of "cl", so it can be a program name with args.
7937 set dummy cl; ac_word=$2
7938 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7939 echo "configure:7940: checking for $ac_word" >&5
7940 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7941 echo $ac_n "(cached) $ac_c" 1>&6
7942 else
7943 if test -n "$CC"; then
7944 ac_cv_prog_CC="$CC" # Let the user override the test.
7945 else
7946 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7947 ac_dummy="$PATH"
7948 for ac_dir in $ac_dummy; do
7949 test -z "$ac_dir" && ac_dir=.
7950 if test -f $ac_dir/$ac_word; then
7951 ac_cv_prog_CC="cl"
7952 break
7953 fi
7954 done
7955 IFS="$ac_save_ifs"
7956 fi
7957 fi
7958 CC="$ac_cv_prog_CC"
7959 if test -n "$CC"; then
7960 echo "$ac_t""$CC" 1>&6
7961 else
7962 echo "$ac_t""no" 1>&6
7963 fi
7964 ;;
7965 esac
7966 fi
7967 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7968 fi
7969
7970 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7971 echo "configure:7972: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7972
7973 ac_ext=c
7974 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7975 ac_cpp='$CPP $CPPFLAGS'
7976 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7977 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7978 cross_compiling=$ac_cv_prog_cc_cross
7979
7980 cat > conftest.$ac_ext << EOF
7981
7982 #line 7983 "configure"
7983 #include "confdefs.h"
7984
7985 main(){return(0);}
7986 EOF
7987 if { (eval echo configure:7988: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7988 ac_cv_prog_cc_works=yes
7989 # If we can't run a trivial program, we are probably using a cross compiler.
7990 if (./conftest; exit) 2>/dev/null; then
7991 ac_cv_prog_cc_cross=no
7992 else
7993 ac_cv_prog_cc_cross=yes
7994 fi
7995 else
7996 echo "configure: failed program was:" >&5
7997 cat conftest.$ac_ext >&5
7998 ac_cv_prog_cc_works=no
7999 fi
8000 rm -fr conftest*
8001 ac_ext=c
8002 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8003 ac_cpp='$CPP $CPPFLAGS'
8004 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8005 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8006 cross_compiling=$ac_cv_prog_cc_cross
8007
8008 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8009 if test $ac_cv_prog_cc_works = no; then
8010 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8011 fi
8012 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8013 echo "configure:8014: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8014 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8015 cross_compiling=$ac_cv_prog_cc_cross
8016
8017 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8018 echo "configure:8019: checking whether we are using GNU C" >&5
8019 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8020 echo $ac_n "(cached) $ac_c" 1>&6
8021 else
8022 cat > conftest.c <<EOF
8023 #ifdef __GNUC__
8024 yes;
8025 #endif
8026 EOF
8027 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8028: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8028 ac_cv_prog_gcc=yes
8029 else
8030 ac_cv_prog_gcc=no
8031 fi
8032 fi
8033
8034 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8035
8036 if test $ac_cv_prog_gcc = yes; then
8037 GCC=yes
8038 else
8039 GCC=
8040 fi
8041
8042 ac_test_CFLAGS="${CFLAGS+set}"
8043 ac_save_CFLAGS="$CFLAGS"
8044 CFLAGS=
8045 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8046 echo "configure:8047: checking whether ${CC-cc} accepts -g" >&5
8047 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8048 echo $ac_n "(cached) $ac_c" 1>&6
8049 else
8050 echo 'void f(){}' > conftest.c
8051 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8052 ac_cv_prog_cc_g=yes
8053 else
8054 ac_cv_prog_cc_g=no
8055 fi
8056 rm -f conftest*
8057
8058 fi
8059
8060 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8061 if test "$ac_test_CFLAGS" = set; then
8062 CFLAGS="$ac_save_CFLAGS"
8063 elif test $ac_cv_prog_cc_g = yes; then
8064 if test "$GCC" = yes; then
8065 CFLAGS="-g -O2"
8066 else
8067 CFLAGS="-g"
8068 fi
8069 else
8070 if test "$GCC" = yes; then
8071 CFLAGS="-O2"
8072 else
8073 CFLAGS=
8074 fi
8075 fi
8076
8077
8078 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8079
8080 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8081 echo "configure:8082: checking how to run the C preprocessor" >&5
8082 # On Suns, sometimes $CPP names a directory.
8083 if test -n "$CPP" && test -d "$CPP"; then
8084 CPP=
8085 fi
8086 if test -z "$CPP"; then
8087 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8088 echo $ac_n "(cached) $ac_c" 1>&6
8089 else
8090 # This must be in double quotes, not single quotes, because CPP may get
8091 # substituted into the Makefile and "${CC-cc}" will confuse make.
8092 CPP="${CC-cc} -E"
8093 # On the NeXT, cc -E runs the code through the compiler's parser,
8094 # not just through cpp.
8095 cat > conftest.$ac_ext <<EOF
8096 #line 8097 "configure"
8097 #include "confdefs.h"
8098 #include <assert.h>
8099 Syntax Error
8100 EOF
8101 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8102 { (eval echo configure:8103: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8103 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8104 if test -z "$ac_err"; then
8105 :
8106 else
8107 echo "$ac_err" >&5
8108 echo "configure: failed program was:" >&5
8109 cat conftest.$ac_ext >&5
8110 rm -rf conftest*
8111 CPP="${CC-cc} -E -traditional-cpp"
8112 cat > conftest.$ac_ext <<EOF
8113 #line 8114 "configure"
8114 #include "confdefs.h"
8115 #include <assert.h>
8116 Syntax Error
8117 EOF
8118 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8119 { (eval echo configure:8120: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8120 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8121 if test -z "$ac_err"; then
8122 :
8123 else
8124 echo "$ac_err" >&5
8125 echo "configure: failed program was:" >&5
8126 cat conftest.$ac_ext >&5
8127 rm -rf conftest*
8128 CPP="${CC-cc} -nologo -E"
8129 cat > conftest.$ac_ext <<EOF
8130 #line 8131 "configure"
8131 #include "confdefs.h"
8132 #include <assert.h>
8133 Syntax Error
8134 EOF
8135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8136 { (eval echo configure:8137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8138 if test -z "$ac_err"; then
8139 :
8140 else
8141 echo "$ac_err" >&5
8142 echo "configure: failed program was:" >&5
8143 cat conftest.$ac_ext >&5
8144 rm -rf conftest*
8145 CPP=/lib/cpp
8146 fi
8147 rm -f conftest*
8148 fi
8149 rm -f conftest*
8150 fi
8151 rm -f conftest*
8152 ac_cv_prog_CPP="$CPP"
8153 fi
8154 CPP="$ac_cv_prog_CPP"
8155 else
8156 ac_cv_prog_CPP="$CPP"
8157 fi
8158 echo "$ac_t""$CPP" 1>&6
8159
8160 if test $ac_cv_prog_gcc = yes; then
8161 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8162 echo "configure:8163: checking whether ${CC-cc} needs -traditional" >&5
8163 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8164 echo $ac_n "(cached) $ac_c" 1>&6
8165 else
8166 ac_pattern="Autoconf.*'x'"
8167 cat > conftest.$ac_ext <<EOF
8168 #line 8169 "configure"
8169 #include "confdefs.h"
8170 #include <sgtty.h>
8171 Autoconf TIOCGETP
8172 EOF
8173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8174 egrep "$ac_pattern" >/dev/null 2>&1; then
8175 rm -rf conftest*
8176 ac_cv_prog_gcc_traditional=yes
8177 else
8178 rm -rf conftest*
8179 ac_cv_prog_gcc_traditional=no
8180 fi
8181 rm -f conftest*
8182
8183
8184 if test $ac_cv_prog_gcc_traditional = no; then
8185 cat > conftest.$ac_ext <<EOF
8186 #line 8187 "configure"
8187 #include "confdefs.h"
8188 #include <termio.h>
8189 Autoconf TCGETA
8190 EOF
8191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8192 egrep "$ac_pattern" >/dev/null 2>&1; then
8193 rm -rf conftest*
8194 ac_cv_prog_gcc_traditional=yes
8195 fi
8196 rm -f conftest*
8197
8198 fi
8199 fi
8200
8201 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8202 if test $ac_cv_prog_gcc_traditional = yes; then
8203 CC="$CC -traditional"
8204 fi
8205 fi
8206
8207
8208
8209 ac_ext=C
8210 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8211 ac_cpp='$CXXCPP $CPPFLAGS'
8212 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8213 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8214 cross_compiling=$ac_cv_prog_cxx_cross
8215
8216
8217 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8218 do
8219 # Extract the first word of "$ac_prog", so it can be a program name with args.
8220 set dummy $ac_prog; ac_word=$2
8221 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8222 echo "configure:8223: checking for $ac_word" >&5
8223 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8224 echo $ac_n "(cached) $ac_c" 1>&6
8225 else
8226 if test -n "$CXX"; then
8227 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8228 else
8229 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8230 ac_dummy="$PATH"
8231 for ac_dir in $ac_dummy; do
8232 test -z "$ac_dir" && ac_dir=.
8233 if test -f $ac_dir/$ac_word; then
8234 ac_cv_prog_CXX="$ac_prog"
8235 break
8236 fi
8237 done
8238 IFS="$ac_save_ifs"
8239 fi
8240 fi
8241 CXX="$ac_cv_prog_CXX"
8242 if test -n "$CXX"; then
8243 echo "$ac_t""$CXX" 1>&6
8244 else
8245 echo "$ac_t""no" 1>&6
8246 fi
8247
8248 test -n "$CXX" && break
8249 done
8250 test -n "$CXX" || CXX="gcc"
8251
8252
8253 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8254 echo "configure:8255: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8255
8256 ac_ext=C
8257 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8258 ac_cpp='$CXXCPP $CPPFLAGS'
8259 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8260 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8261 cross_compiling=$ac_cv_prog_cxx_cross
8262
8263 cat > conftest.$ac_ext << EOF
8264
8265 #line 8266 "configure"
8266 #include "confdefs.h"
8267
8268 int main(){return(0);}
8269 EOF
8270 if { (eval echo configure:8271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8271 ac_cv_prog_cxx_works=yes
8272 # If we can't run a trivial program, we are probably using a cross compiler.
8273 if (./conftest; exit) 2>/dev/null; then
8274 ac_cv_prog_cxx_cross=no
8275 else
8276 ac_cv_prog_cxx_cross=yes
8277 fi
8278 else
8279 echo "configure: failed program was:" >&5
8280 cat conftest.$ac_ext >&5
8281 ac_cv_prog_cxx_works=no
8282 fi
8283 rm -fr conftest*
8284 ac_ext=C
8285 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8286 ac_cpp='$CXXCPP $CPPFLAGS'
8287 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8288 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8289 cross_compiling=$ac_cv_prog_cxx_cross
8290
8291 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8292 if test $ac_cv_prog_cxx_works = no; then
8293 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8294 fi
8295 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8296 echo "configure:8297: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8297 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8298 cross_compiling=$ac_cv_prog_cxx_cross
8299
8300 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8301 echo "configure:8302: checking whether we are using GNU C++" >&5
8302 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8303 echo $ac_n "(cached) $ac_c" 1>&6
8304 else
8305 cat > conftest.C <<EOF
8306 #ifdef __GNUC__
8307 yes;
8308 #endif
8309 EOF
8310 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8311 ac_cv_prog_gxx=yes
8312 else
8313 ac_cv_prog_gxx=no
8314 fi
8315 fi
8316
8317 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8318
8319 if test $ac_cv_prog_gxx = yes; then
8320 GXX=yes
8321 else
8322 GXX=
8323 fi
8324
8325 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8326 ac_save_CXXFLAGS="$CXXFLAGS"
8327 CXXFLAGS=
8328 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8329 echo "configure:8330: checking whether ${CXX-g++} accepts -g" >&5
8330 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8331 echo $ac_n "(cached) $ac_c" 1>&6
8332 else
8333 echo 'void f(){}' > conftest.cc
8334 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8335 ac_cv_prog_cxx_g=yes
8336 else
8337 ac_cv_prog_cxx_g=no
8338 fi
8339 rm -f conftest*
8340
8341 fi
8342
8343 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8344 if test "$ac_test_CXXFLAGS" = set; then
8345 CXXFLAGS="$ac_save_CXXFLAGS"
8346 elif test $ac_cv_prog_cxx_g = yes; then
8347 if test "$GXX" = yes; then
8348 CXXFLAGS="-g -O2"
8349 else
8350 CXXFLAGS="-g"
8351 fi
8352 else
8353 if test "$GXX" = yes; then
8354 CXXFLAGS="-O2"
8355 else
8356 CXXFLAGS=
8357 fi
8358 fi
8359
8360
8361 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8362
8363 ac_ext=c
8364 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8365 ac_cpp='$CPP $CPPFLAGS'
8366 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8367 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8368 cross_compiling=$ac_cv_prog_cc_cross
8369
8370
8371 # Extract the first word of "ranlib", so it can be a program name with args.
8372 set dummy ranlib; ac_word=$2
8373 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8374 echo "configure:8375: checking for $ac_word" >&5
8375 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8376 echo $ac_n "(cached) $ac_c" 1>&6
8377 else
8378 if test -n "$RANLIB"; then
8379 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8380 else
8381 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8382 ac_dummy="$PATH"
8383 for ac_dir in $ac_dummy; do
8384 test -z "$ac_dir" && ac_dir=.
8385 if test -f $ac_dir/$ac_word; then
8386 ac_cv_prog_RANLIB="ranlib"
8387 break
8388 fi
8389 done
8390 IFS="$ac_save_ifs"
8391 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8392 fi
8393 fi
8394 RANLIB="$ac_cv_prog_RANLIB"
8395 if test -n "$RANLIB"; then
8396 echo "$ac_t""$RANLIB" 1>&6
8397 else
8398 echo "$ac_t""no" 1>&6
8399 fi
8400
8401
8402 # Extract the first word of "ar", so it can be a program name with args.
8403 set dummy ar; ac_word=$2
8404 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8405 echo "configure:8406: checking for $ac_word" >&5
8406 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8407 echo $ac_n "(cached) $ac_c" 1>&6
8408 else
8409 if test -n "$AR"; then
8410 ac_cv_prog_AR="$AR" # Let the user override the test.
8411 else
8412 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8413 ac_dummy="$PATH"
8414 for ac_dir in $ac_dummy; do
8415 test -z "$ac_dir" && ac_dir=.
8416 if test -f $ac_dir/$ac_word; then
8417 ac_cv_prog_AR="ar"
8418 break
8419 fi
8420 done
8421 IFS="$ac_save_ifs"
8422 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8423 fi
8424 fi
8425 AR="$ac_cv_prog_AR"
8426 if test -n "$AR"; then
8427 echo "$ac_t""$AR" 1>&6
8428 else
8429 echo "$ac_t""no" 1>&6
8430 fi
8431
8432
8433 # Find a good install program. We prefer a C program (faster),
8434 # so one script is as good as another. But avoid the broken or
8435 # incompatible versions:
8436 # SysV /etc/install, /usr/sbin/install
8437 # SunOS /usr/etc/install
8438 # IRIX /sbin/install
8439 # AIX /bin/install
8440 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8441 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8442 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8443 # ./install, which can be erroneously created by make from ./install.sh.
8444 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8445 echo "configure:8446: checking for a BSD compatible install" >&5
8446 if test -z "$INSTALL"; then
8447 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8448 echo $ac_n "(cached) $ac_c" 1>&6
8449 else
8450 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8451 for ac_dir in $PATH; do
8452 # Account for people who put trailing slashes in PATH elements.
8453 case "$ac_dir/" in
8454 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8455 *)
8456 # OSF1 and SCO ODT 3.0 have their own names for install.
8457 # Don't use installbsd from OSF since it installs stuff as root
8458 # by default.
8459 for ac_prog in ginstall scoinst install; do
8460 if test -f $ac_dir/$ac_prog; then
8461 if test $ac_prog = install &&
8462 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8463 # AIX install. It has an incompatible calling convention.
8464 :
8465 else
8466 ac_cv_path_install="$ac_dir/$ac_prog -c"
8467 break 2
8468 fi
8469 fi
8470 done
8471 ;;
8472 esac
8473 done
8474 IFS="$ac_save_IFS"
8475
8476 fi
8477 if test "${ac_cv_path_install+set}" = set; then
8478 INSTALL="$ac_cv_path_install"
8479 else
8480 # As a last resort, use the slow shell script. We don't cache a
8481 # path for INSTALL within a source directory, because that will
8482 # break other packages using the cache if that directory is
8483 # removed, or if the path is relative.
8484 INSTALL="$ac_install_sh"
8485 fi
8486 fi
8487 echo "$ac_t""$INSTALL" 1>&6
8488
8489 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8490 # It thinks the first close brace ends the variable substitution.
8491 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8492
8493 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8494
8495 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8496
8497
8498 # Extract the first word of "strip", so it can be a program name with args.
8499 set dummy strip; ac_word=$2
8500 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8501 echo "configure:8502: checking for $ac_word" >&5
8502 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8503 echo $ac_n "(cached) $ac_c" 1>&6
8504 else
8505 if test -n "$STRIP"; then
8506 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8507 else
8508 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8509 ac_dummy="$PATH"
8510 for ac_dir in $ac_dummy; do
8511 test -z "$ac_dir" && ac_dir=.
8512 if test -f $ac_dir/$ac_word; then
8513 ac_cv_prog_STRIP="strip"
8514 break
8515 fi
8516 done
8517 IFS="$ac_save_ifs"
8518 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8519 fi
8520 fi
8521 STRIP="$ac_cv_prog_STRIP"
8522 if test -n "$STRIP"; then
8523 echo "$ac_t""$STRIP" 1>&6
8524 else
8525 echo "$ac_t""no" 1>&6
8526 fi
8527
8528
8529 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8530 echo "configure:8531: checking make for VPATH support" >&5
8531 cat - << EOF > confMake
8532 check : file
8533 cp \$? \$@
8534 cp \$? final_file
8535 EOF
8536
8537 if test ! -d sub ; then
8538 mkdir sub
8539 fi
8540 echo dummy > sub/file
8541 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8542 RESULT=$?
8543 rm -f sub/file check final_file confMake
8544 rmdir sub
8545 if test "$RESULT" = 0; then
8546 echo "$ac_t""yes" 1>&6
8547 else
8548 echo "$ac_t""no" 1>&6
8549 { echo "configure: error:
8550 You need a make-utility that is able to use the variable
8551 VPATH correctly.
8552 If your version of make does not support VPATH correctly,
8553 please install GNU-make (possibly as gmake), and start
8554 configure with the following command:
8555 export MAKE=gmake; ./configure for sh-type shells
8556 setenv MAKE gmake; ./configure for csh-type shells
8557 Also please do remember to use gmake in this case every time
8558 you are trying to compile.
8559 " 1>&2; exit 1; }
8560 fi
8561
8562 for ac_prog in 'bison -y' byacc
8563 do
8564 # Extract the first word of "$ac_prog", so it can be a program name with args.
8565 set dummy $ac_prog; ac_word=$2
8566 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8567 echo "configure:8568: checking for $ac_word" >&5
8568 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8569 echo $ac_n "(cached) $ac_c" 1>&6
8570 else
8571 if test -n "$YACC"; then
8572 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8573 else
8574 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8575 ac_dummy="$PATH"
8576 for ac_dir in $ac_dummy; do
8577 test -z "$ac_dir" && ac_dir=.
8578 if test -f $ac_dir/$ac_word; then
8579 ac_cv_prog_YACC="$ac_prog"
8580 break
8581 fi
8582 done
8583 IFS="$ac_save_ifs"
8584 fi
8585 fi
8586 YACC="$ac_cv_prog_YACC"
8587 if test -n "$YACC"; then
8588 echo "$ac_t""$YACC" 1>&6
8589 else
8590 echo "$ac_t""no" 1>&6
8591 fi
8592
8593 test -n "$YACC" && break
8594 done
8595 test -n "$YACC" || YACC="yacc"
8596
8597
8598 # Extract the first word of "flex", so it can be a program name with args.
8599 set dummy flex; 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_LEX'+set}'`\" = set"; then
8603 echo $ac_n "(cached) $ac_c" 1>&6
8604 else
8605 if test -n "$LEX"; then
8606 ac_cv_prog_LEX="$LEX" # 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_LEX="flex"
8614 break
8615 fi
8616 done
8617 IFS="$ac_save_ifs"
8618 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8619 fi
8620 fi
8621 LEX="$ac_cv_prog_LEX"
8622 if test -n "$LEX"; then
8623 echo "$ac_t""$LEX" 1>&6
8624 else
8625 echo "$ac_t""no" 1>&6
8626 fi
8627
8628 if test -z "$LEXLIB"
8629 then
8630 case "$LEX" in
8631 flex*) ac_lib=fl ;;
8632 *) ac_lib=l ;;
8633 esac
8634 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8635 echo "configure:8636: checking for yywrap in -l$ac_lib" >&5
8636 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8637 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8638 echo $ac_n "(cached) $ac_c" 1>&6
8639 else
8640 ac_save_LIBS="$LIBS"
8641 LIBS="-l$ac_lib $LIBS"
8642 cat > conftest.$ac_ext <<EOF
8643 #line 8644 "configure"
8644 #include "confdefs.h"
8645 /* Override any gcc2 internal prototype to avoid an error. */
8646 /* We use char because int might match the return type of a gcc2
8647 builtin and then its argument prototype would still apply. */
8648 char yywrap();
8649
8650 int main() {
8651 yywrap()
8652 ; return 0; }
8653 EOF
8654 if { (eval echo configure:8655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8655 rm -rf conftest*
8656 eval "ac_cv_lib_$ac_lib_var=yes"
8657 else
8658 echo "configure: failed program was:" >&5
8659 cat conftest.$ac_ext >&5
8660 rm -rf conftest*
8661 eval "ac_cv_lib_$ac_lib_var=no"
8662 fi
8663 rm -f conftest*
8664 LIBS="$ac_save_LIBS"
8665
8666 fi
8667 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8668 echo "$ac_t""yes" 1>&6
8669 LEXLIB="-l$ac_lib"
8670 else
8671 echo "$ac_t""no" 1>&6
8672 fi
8673
8674 fi
8675
8676
8677 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8678 echo "configure:8679: checking whether ln -s works" >&5
8679 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8680 echo $ac_n "(cached) $ac_c" 1>&6
8681 else
8682 rm -f conftestdata
8683 if ln -s X conftestdata 2>/dev/null
8684 then
8685 rm -f conftestdata
8686 ac_cv_prog_LN_S="ln -s"
8687 else
8688 ac_cv_prog_LN_S=ln
8689 fi
8690 fi
8691 LN_S="$ac_cv_prog_LN_S"
8692 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8693 echo "$ac_t""yes" 1>&6
8694 else
8695 echo "$ac_t""no" 1>&6
8696 fi
8697
8698
8699
8700 SEARCH_INCLUDE="\
8701 /usr/local/include \
8702 \
8703 /usr/Motif-1.2/include \
8704 /usr/Motif-2.1/include \
8705 \
8706 /usr/include/Motif1.2 \
8707 /opt/xpm/include/X11 \
8708 /opt/GBxpm/include/ \
8709 /opt/GBxpm/X11/include/ \
8710 \
8711 /usr/Motif1.2/include \
8712 /usr/dt/include \
8713 /usr/openwin/include \
8714 \
8715 /usr/include/Xm \
8716 \
8717 /usr/X11R6/include \
8718 /usr/X11R6.4/include \
8719 /usr/X11R5/include \
8720 /usr/X11R4/include \
8721 \
8722 /usr/include/X11R6 \
8723 /usr/include/X11R5 \
8724 /usr/include/X11R4 \
8725 \
8726 /usr/local/X11R6/include \
8727 /usr/local/X11R5/include \
8728 /usr/local/X11R4/include \
8729 \
8730 /usr/local/include/X11R6 \
8731 /usr/local/include/X11R5 \
8732 /usr/local/include/X11R4 \
8733 \
8734 /usr/X11/include \
8735 /usr/include/X11 \
8736 /usr/local/X11/include \
8737 /usr/local/include/X11 \
8738 \
8739 /usr/X386/include \
8740 /usr/x386/include \
8741 /usr/XFree86/include/X11 \
8742 \
8743 X:/XFree86/include \
8744 X:/XFree86/include/X11 \
8745 \
8746 /usr/include/gtk \
8747 /usr/local/include/gtk \
8748 /usr/include/glib \
8749 /usr/local/include/glib \
8750 \
8751 /usr/include/qt \
8752 /usr/local/include/qt \
8753 \
8754 /usr/include/windows \
8755 /usr/include/wine \
8756 /usr/local/include/wine \
8757 \
8758 /usr/unsupported/include \
8759 /usr/athena/include \
8760 /usr/local/x11r5/include \
8761 /usr/lpp/Xamples/include \
8762 \
8763 /usr/openwin/share/include \
8764 \
8765 /usr/include"
8766
8767 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8768
8769
8770 cat > confcache <<\EOF
8771 # This file is a shell script that caches the results of configure
8772 # tests run on this system so they can be shared between configure
8773 # scripts and configure runs. It is not useful on other systems.
8774 # If it contains results you don't want to keep, you may remove or edit it.
8775 #
8776 # By default, configure uses ./config.cache as the cache file,
8777 # creating it if it does not exist already. You can give configure
8778 # the --cache-file=FILE option to use a different cache file; that is
8779 # what configure does when it calls configure scripts in
8780 # subdirectories, so they share the cache.
8781 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8782 # config.status only pays attention to the cache file if you give it the
8783 # --recheck option to rerun configure.
8784 #
8785 EOF
8786 # The following way of writing the cache mishandles newlines in values,
8787 # but we know of no workaround that is simple, portable, and efficient.
8788 # So, don't put newlines in cache variables' values.
8789 # Ultrix sh set writes to stderr and can't be redirected directly,
8790 # and sets the high bit in the cache file unless we assign to the vars.
8791 (set) 2>&1 |
8792 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8793 *ac_space=\ *)
8794 # `set' does not quote correctly, so add quotes (double-quote substitution
8795 # turns \\\\ into \\, and sed turns \\ into \).
8796 sed -n \
8797 -e "s/'/'\\\\''/g" \
8798 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8799 ;;
8800 *)
8801 # `set' quotes correctly as required by POSIX, so do not add quotes.
8802 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8803 ;;
8804 esac >> confcache
8805 if cmp -s $cache_file confcache; then
8806 :
8807 else
8808 if test -w $cache_file; then
8809 echo "updating cache $cache_file"
8810 cat confcache > $cache_file
8811 else
8812 echo "not updating unwritable cache $cache_file"
8813 fi
8814 fi
8815 rm -f confcache
8816
8817
8818
8819 REGEX_INCLUDE=
8820 if test "$wxUSE_REGEX" != "no"; then
8821 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8822 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
8823 echo "configure:8824: checking for regex.h" >&5
8824 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8825 echo $ac_n "(cached) $ac_c" 1>&6
8826 else
8827 cat > conftest.$ac_ext <<EOF
8828 #line 8829 "configure"
8829 #include "confdefs.h"
8830 #include <regex.h>
8831 EOF
8832 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8833 { (eval echo configure:8834: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8834 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8835 if test -z "$ac_err"; then
8836 rm -rf conftest*
8837 eval "ac_cv_header_$ac_safe=yes"
8838 else
8839 echo "$ac_err" >&5
8840 echo "configure: failed program was:" >&5
8841 cat conftest.$ac_ext >&5
8842 rm -rf conftest*
8843 eval "ac_cv_header_$ac_safe=no"
8844 fi
8845 rm -f conftest*
8846 fi
8847 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8848 echo "$ac_t""yes" 1>&6
8849 for ac_func in regcomp
8850 do
8851 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8852 echo "configure:8853: checking for $ac_func" >&5
8853 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8854 echo $ac_n "(cached) $ac_c" 1>&6
8855 else
8856 cat > conftest.$ac_ext <<EOF
8857 #line 8858 "configure"
8858 #include "confdefs.h"
8859 /* System header to define __stub macros and hopefully few prototypes,
8860 which can conflict with char $ac_func(); below. */
8861 #include <assert.h>
8862 /* Override any gcc2 internal prototype to avoid an error. */
8863 /* We use char because int might match the return type of a gcc2
8864 builtin and then its argument prototype would still apply. */
8865 char $ac_func();
8866
8867 int main() {
8868
8869 /* The GNU C library defines this for functions which it implements
8870 to always fail with ENOSYS. Some functions are actually named
8871 something starting with __ and the normal name is an alias. */
8872 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8873 choke me
8874 #else
8875 $ac_func();
8876 #endif
8877
8878 ; return 0; }
8879 EOF
8880 if { (eval echo configure:8881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8881 rm -rf conftest*
8882 eval "ac_cv_func_$ac_func=yes"
8883 else
8884 echo "configure: failed program was:" >&5
8885 cat conftest.$ac_ext >&5
8886 rm -rf conftest*
8887 eval "ac_cv_func_$ac_func=no"
8888 fi
8889 rm -f conftest*
8890 fi
8891
8892 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8893 echo "$ac_t""yes" 1>&6
8894 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8895 cat >> confdefs.h <<EOF
8896 #define $ac_tr_func 1
8897 EOF
8898
8899 else
8900 echo "$ac_t""no" 1>&6
8901 fi
8902 done
8903
8904 else
8905 echo "$ac_t""no" 1>&6
8906 fi
8907
8908
8909 if test "x$ac_cv_func_regcomp" != "xyes"; then
8910 if test "$wxUSE_REGEX" = "sys"; then
8911 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
8912 fi
8913
8914 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
8915 fi
8916
8917 cat >> confdefs.h <<\EOF
8918 #define wxUSE_REGEX 1
8919 EOF
8920
8921 fi
8922
8923
8924 AFMINSTALL=
8925
8926 TOOLKIT=
8927 TOOLKIT_INCLUDE=
8928 WIDGET_SET=
8929
8930 if test "$USE_WIN32" = 1 ; then
8931 for ac_hdr in w32api.h
8932 do
8933 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8934 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8935 echo "configure:8936: checking for $ac_hdr" >&5
8936 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8937 echo $ac_n "(cached) $ac_c" 1>&6
8938 else
8939 cat > conftest.$ac_ext <<EOF
8940 #line 8941 "configure"
8941 #include "confdefs.h"
8942 #include <$ac_hdr>
8943 EOF
8944 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8945 { (eval echo configure:8946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8946 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8947 if test -z "$ac_err"; then
8948 rm -rf conftest*
8949 eval "ac_cv_header_$ac_safe=yes"
8950 else
8951 echo "$ac_err" >&5
8952 echo "configure: failed program was:" >&5
8953 cat conftest.$ac_ext >&5
8954 rm -rf conftest*
8955 eval "ac_cv_header_$ac_safe=no"
8956 fi
8957 rm -f conftest*
8958 fi
8959 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8960 echo "$ac_t""yes" 1>&6
8961 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8962 cat >> confdefs.h <<EOF
8963 #define $ac_tr_hdr 1
8964 EOF
8965
8966 else
8967 echo "$ac_t""no" 1>&6
8968 fi
8969 done
8970
8971 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8972 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
8973 echo "configure:8974: checking for windows.h" >&5
8974 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8975 echo $ac_n "(cached) $ac_c" 1>&6
8976 else
8977 cat > conftest.$ac_ext <<EOF
8978 #line 8979 "configure"
8979 #include "confdefs.h"
8980 #include <windows.h>
8981 EOF
8982 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8983 { (eval echo configure:8984: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8984 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8985 if test -z "$ac_err"; then
8986 rm -rf conftest*
8987 eval "ac_cv_header_$ac_safe=yes"
8988 else
8989 echo "$ac_err" >&5
8990 echo "configure: failed program was:" >&5
8991 cat conftest.$ac_ext >&5
8992 rm -rf conftest*
8993 eval "ac_cv_header_$ac_safe=no"
8994 fi
8995 rm -f conftest*
8996 fi
8997 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8998 echo "$ac_t""yes" 1>&6
8999 :
9000 else
9001 echo "$ac_t""no" 1>&6
9002
9003 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9004
9005 fi
9006
9007
9008 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
9009 echo "configure:9010: checking if w32api has good enough MSIE support" >&5
9010 if eval "test \"`echo '$''{'wx_cv_w32api_win_ie'+set}'`\" = set"; then
9011 echo $ac_n "(cached) $ac_c" 1>&6
9012 else
9013
9014 cat > conftest.$ac_ext <<EOF
9015 #line 9016 "configure"
9016 #include "confdefs.h"
9017 #include <w32api.h>
9018 int main() {
9019
9020 #define wxCHECK_W32API_VERSION( major, minor ) \
9021 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9022 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9023 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9024
9025 #if !wxCHECK_W32API_VERSION(1,1)
9026 #error You need w32api 1.1 or newer
9027 #endif
9028
9029 ; return 0; }
9030 EOF
9031 if { (eval echo configure:9032: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9032 rm -rf conftest*
9033
9034 wx_cv_w32api_win_ie=yes
9035 CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400"
9036
9037 else
9038 echo "configure: failed program was:" >&5
9039 cat conftest.$ac_ext >&5
9040 rm -rf conftest*
9041
9042 wx_cv_w32api_win_ie=no
9043
9044 fi
9045 rm -f conftest*
9046
9047 fi
9048
9049 echo "$ac_t""$wx_cv_w32api_win_ie" 1>&6
9050
9051 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9052
9053 if test "$wxUSE_ODBC" = "yes" ; then
9054 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
9055 fi
9056
9057 if test "$wxUSE_MINGW" = 1; then
9058 LDFLAGS="$LDFLAGS -mwindows"
9059 fi
9060
9061 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9062 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9063 fi
9064
9065 if test "$wxUSE_GUI" = "yes"; then
9066 USE_GUI=1
9067
9068 GUI_TK_LIBRARY=
9069
9070 WXGTK12=
9071 WXGTK127=
9072 WXGTK20=
9073
9074 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
9075 TOOLKIT=MSW
9076 GUIDIST=MSW_DIST
9077 fi
9078
9079 if test "$wxUSE_GTK" = 1; then
9080 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9081 echo "configure:9082: checking for GTK+ version" >&5
9082
9083 gtk_version_cached=1
9084 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9085 echo $ac_n "(cached) $ac_c" 1>&6
9086 else
9087
9088 gtk_version_cached=0
9089 echo "$ac_t""""" 1>&6
9090
9091 wx_cv_lib_gtk=
9092 if test "x$wxUSE_GTK2" = "xyes"; then
9093 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9094 if test "${with_gtk_prefix+set}" = set; then
9095 withval="$with_gtk_prefix"
9096 gtk_config_prefix="$withval"
9097 else
9098 gtk_config_prefix=""
9099 fi
9100
9101 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9102 if test "${with_gtk_exec_prefix+set}" = set; then
9103 withval="$with_gtk_exec_prefix"
9104 gtk_config_exec_prefix="$withval"
9105 else
9106 gtk_config_exec_prefix=""
9107 fi
9108
9109 # Check whether --enable-gtktest or --disable-gtktest was given.
9110 if test "${enable_gtktest+set}" = set; then
9111 enableval="$enable_gtktest"
9112 :
9113 else
9114 enable_gtktest=yes
9115 fi
9116
9117
9118 for module in .
9119 do
9120 case "$module" in
9121 gthread)
9122 gtk_config_args="$gtk_config_args gthread"
9123 ;;
9124 esac
9125 done
9126
9127 if test x$gtk_config_exec_prefix != x ; then
9128 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9129 if test x${GTK_CONFIG_2_0+set} != xset ; then
9130 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9131 fi
9132 fi
9133 if test x$gtk_config_prefix != x ; then
9134 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9135 if test x${GTK_CONFIG_2_0+set} != xset ; then
9136 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9137 fi
9138 fi
9139
9140 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9141 set dummy gtk-config-2.0; ac_word=$2
9142 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9143 echo "configure:9144: checking for $ac_word" >&5
9144 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9145 echo $ac_n "(cached) $ac_c" 1>&6
9146 else
9147 case "$GTK_CONFIG_2_0" in
9148 /*)
9149 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9150 ;;
9151 ?:/*)
9152 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9153 ;;
9154 *)
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_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9161 break
9162 fi
9163 done
9164 IFS="$ac_save_ifs"
9165 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9166 ;;
9167 esac
9168 fi
9169 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
9170 if test -n "$GTK_CONFIG_2_0"; then
9171 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
9172 else
9173 echo "$ac_t""no" 1>&6
9174 fi
9175
9176 min_gtk_version=1.3.1
9177 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9178 echo "configure:9179: checking for GTK - version >= $min_gtk_version" >&5
9179 no_gtk=""
9180 if test "$GTK_CONFIG_2_0" = "no" ; then
9181 no_gtk=yes
9182 else
9183 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9184 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9185 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9186 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9187 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9188 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9189 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9190 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9191 if test "x$enable_gtktest" = "xyes" ; then
9192 ac_save_CFLAGS="$CFLAGS"
9193 ac_save_LIBS="$LIBS"
9194 CFLAGS="$CFLAGS $GTK_CFLAGS"
9195 LIBS="$GTK_LIBS $LIBS"
9196 rm -f conf.gtktest
9197 if test "$cross_compiling" = yes; then
9198 echo $ac_n "cross compiling; assumed OK... $ac_c"
9199 else
9200 cat > conftest.$ac_ext <<EOF
9201 #line 9202 "configure"
9202 #include "confdefs.h"
9203
9204 #include <gtk/gtk.h>
9205 #include <stdio.h>
9206 #include <stdlib.h>
9207
9208 int
9209 main ()
9210 {
9211 int major, minor, micro;
9212 char *tmp_version;
9213
9214 system ("touch conf.gtktest");
9215
9216 /* HP/UX 9 (%@#!) writes to sscanf strings */
9217 tmp_version = g_strdup("$min_gtk_version");
9218 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9219 printf("%s, bad version string\n", "$min_gtk_version");
9220 exit(1);
9221 }
9222
9223 if ((gtk_major_version != $gtk_config_major_version) ||
9224 (gtk_minor_version != $gtk_config_minor_version) ||
9225 (gtk_micro_version != $gtk_config_micro_version))
9226 {
9227 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
9228 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9229 gtk_major_version, gtk_minor_version, gtk_micro_version);
9230 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9231 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9232 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9233 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9234 printf("*** required on your system.\n");
9235 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9236 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9237 printf("*** before re-running configure\n");
9238 }
9239 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9240 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9241 (gtk_minor_version != GTK_MINOR_VERSION) ||
9242 (gtk_micro_version != GTK_MICRO_VERSION))
9243 {
9244 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9245 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9246 printf("*** library (version %d.%d.%d)\n",
9247 gtk_major_version, gtk_minor_version, gtk_micro_version);
9248 }
9249 #endif /* defined (GTK_MAJOR_VERSION) ... */
9250 else
9251 {
9252 if ((gtk_major_version > major) ||
9253 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9254 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9255 {
9256 return 0;
9257 }
9258 else
9259 {
9260 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9261 gtk_major_version, gtk_minor_version, gtk_micro_version);
9262 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9263 major, minor, micro);
9264 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9265 printf("***\n");
9266 printf("*** If you have already installed a sufficiently new version, this error\n");
9267 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9268 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9269 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9270 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9271 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9272 printf("*** so that the correct libraries are found at run-time))\n");
9273 }
9274 }
9275 return 1;
9276 }
9277
9278 EOF
9279 if { (eval echo configure:9280: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9280 then
9281 :
9282 else
9283 echo "configure: failed program was:" >&5
9284 cat conftest.$ac_ext >&5
9285 rm -fr conftest*
9286 no_gtk=yes
9287 fi
9288 rm -fr conftest*
9289 fi
9290
9291 CFLAGS="$ac_save_CFLAGS"
9292 LIBS="$ac_save_LIBS"
9293 fi
9294 fi
9295 if test "x$no_gtk" = x ; then
9296 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9297 wx_cv_lib_gtk=2.0
9298 else
9299 echo "$ac_t""no" 1>&6
9300 if test "$GTK_CONFIG_2_0" = "no" ; then
9301 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9302 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9303 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9304 echo "*** full path to gtk-config-2.0."
9305 else
9306 if test -f conf.gtktest ; then
9307 :
9308 else
9309 echo "*** Could not run GTK test program, checking why..."
9310 CFLAGS="$CFLAGS $GTK_CFLAGS"
9311 LIBS="$LIBS $GTK_LIBS"
9312 cat > conftest.$ac_ext <<EOF
9313 #line 9314 "configure"
9314 #include "confdefs.h"
9315
9316 #include <gtk/gtk.h>
9317 #include <stdio.h>
9318
9319 int main() {
9320 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9321 ; return 0; }
9322 EOF
9323 if { (eval echo configure:9324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9324 rm -rf conftest*
9325 echo "*** The test program compiled, but did not run. This usually means"
9326 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9327 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9328 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9329 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9330 echo "*** is required on your system"
9331 echo "***"
9332 echo "*** If you have an old version installed, it is best to remove it, although"
9333 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9334 echo "***"
9335 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9336 echo "*** came with the system with the command"
9337 echo "***"
9338 echo "*** rpm --erase --nodeps gtk gtk-devel"
9339 else
9340 echo "configure: failed program was:" >&5
9341 cat conftest.$ac_ext >&5
9342 rm -rf conftest*
9343 echo "*** The test program failed to compile or link. See the file config.log for the"
9344 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9345 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
9346 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
9347 fi
9348 rm -f conftest*
9349 CFLAGS="$ac_save_CFLAGS"
9350 LIBS="$ac_save_LIBS"
9351 fi
9352 fi
9353 GTK_CFLAGS=""
9354 GTK_LIBS=""
9355 gthread
9356 fi
9357
9358
9359 rm -f conf.gtktest
9360
9361 fi
9362
9363 if test -z "$wx_cv_lib_gtk"; then
9364
9365 if test x$gtk_config_exec_prefix != x ; then
9366 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9367 if test x${GTK_CONFIG+set} != xset ; then
9368 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9369 fi
9370 fi
9371 if test x$gtk_config_prefix != x ; then
9372 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9373 if test x${GTK_CONFIG+set} != xset ; then
9374 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9375 fi
9376 fi
9377
9378 # Extract the first word of "gtk-config", so it can be a program name with args.
9379 set dummy gtk-config; ac_word=$2
9380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9381 echo "configure:9382: checking for $ac_word" >&5
9382 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9383 echo $ac_n "(cached) $ac_c" 1>&6
9384 else
9385 case "$GTK_CONFIG" in
9386 /*)
9387 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9388 ;;
9389 ?:/*)
9390 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9391 ;;
9392 *)
9393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9394 ac_dummy="$PATH"
9395 for ac_dir in $ac_dummy; do
9396 test -z "$ac_dir" && ac_dir=.
9397 if test -f $ac_dir/$ac_word; then
9398 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9399 break
9400 fi
9401 done
9402 IFS="$ac_save_ifs"
9403 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9404 ;;
9405 esac
9406 fi
9407 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9408 if test -n "$GTK_CONFIG"; then
9409 echo "$ac_t""$GTK_CONFIG" 1>&6
9410 else
9411 echo "$ac_t""no" 1>&6
9412 fi
9413
9414 min_gtk_version=1.2.7
9415 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9416 echo "configure:9417: checking for GTK - version >= $min_gtk_version" >&5
9417 no_gtk=""
9418 if test "$GTK_CONFIG" != "no" ; then
9419 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9420 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9421 ac_save_CFLAGS="$CFLAGS"
9422 ac_save_LIBS="$LIBS"
9423 CFLAGS="$CFLAGS $GTK_CFLAGS"
9424 LIBS="$LIBS $GTK_LIBS"
9425 if test "$cross_compiling" = yes; then
9426 echo $ac_n "cross compiling; assumed OK... $ac_c"
9427 else
9428 cat > conftest.$ac_ext <<EOF
9429 #line 9430 "configure"
9430 #include "confdefs.h"
9431
9432 #include <gtk/gtk.h>
9433 #include <gtk/gtkfeatures.h>
9434 #include <stdio.h>
9435 #include <stdlib.h>
9436
9437 int
9438 main ()
9439 {
9440 int major, minor, micro;
9441
9442 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9443 printf("%s, bad version string\n", "$min_gtk_version");
9444 exit(1);
9445 }
9446
9447 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9448 (GTK_MINOR_VERSION != gtk_minor_version) ||
9449 (GTK_MICRO_VERSION != gtk_micro_version)) {
9450 printf("Headers vs. library version mismatch!\n");
9451 exit(1);
9452 }
9453
9454 if (gtk_minor_version == 1) return FALSE;
9455
9456 return !((gtk_major_version > major) ||
9457 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9458 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9459 }
9460
9461 EOF
9462 if { (eval echo configure:9463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9463 then
9464 :
9465 else
9466 echo "configure: failed program was:" >&5
9467 cat conftest.$ac_ext >&5
9468 rm -fr conftest*
9469 no_gtk=yes
9470 fi
9471 rm -fr conftest*
9472 fi
9473
9474 CFLAGS="$ac_save_CFLAGS"
9475 LIBS="$ac_save_LIBS"
9476 else
9477 no_gtk=yes
9478 fi
9479 if test "x$no_gtk" = x ; then
9480 echo "$ac_t""yes" 1>&6
9481 wx_cv_lib_gtk=1.2.7
9482 else
9483 echo "$ac_t""no" 1>&6
9484 GTK_CFLAGS=""
9485 GTK_LIBS=""
9486 :
9487 fi
9488
9489
9490
9491 fi
9492
9493 if test -z "$wx_cv_lib_gtk"; then
9494
9495 if test x$gtk_config_exec_prefix != x ; then
9496 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9497 if test x${GTK_CONFIG+set} != xset ; then
9498 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9499 fi
9500 fi
9501 if test x$gtk_config_prefix != x ; then
9502 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9503 if test x${GTK_CONFIG+set} != xset ; then
9504 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9505 fi
9506 fi
9507
9508 # Extract the first word of "gtk-config", so it can be a program name with args.
9509 set dummy gtk-config; ac_word=$2
9510 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9511 echo "configure:9512: checking for $ac_word" >&5
9512 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9513 echo $ac_n "(cached) $ac_c" 1>&6
9514 else
9515 case "$GTK_CONFIG" in
9516 /*)
9517 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9518 ;;
9519 ?:/*)
9520 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9521 ;;
9522 *)
9523 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9524 ac_dummy="$PATH"
9525 for ac_dir in $ac_dummy; do
9526 test -z "$ac_dir" && ac_dir=.
9527 if test -f $ac_dir/$ac_word; then
9528 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9529 break
9530 fi
9531 done
9532 IFS="$ac_save_ifs"
9533 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9534 ;;
9535 esac
9536 fi
9537 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9538 if test -n "$GTK_CONFIG"; then
9539 echo "$ac_t""$GTK_CONFIG" 1>&6
9540 else
9541 echo "$ac_t""no" 1>&6
9542 fi
9543
9544 min_gtk_version=1.2.3
9545 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9546 echo "configure:9547: checking for GTK - version >= $min_gtk_version" >&5
9547 no_gtk=""
9548 if test "$GTK_CONFIG" != "no" ; then
9549 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9550 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9551 ac_save_CFLAGS="$CFLAGS"
9552 ac_save_LIBS="$LIBS"
9553 CFLAGS="$CFLAGS $GTK_CFLAGS"
9554 LIBS="$LIBS $GTK_LIBS"
9555 if test "$cross_compiling" = yes; then
9556 echo $ac_n "cross compiling; assumed OK... $ac_c"
9557 else
9558 cat > conftest.$ac_ext <<EOF
9559 #line 9560 "configure"
9560 #include "confdefs.h"
9561
9562 #include <gtk/gtk.h>
9563 #include <gtk/gtkfeatures.h>
9564 #include <stdio.h>
9565 #include <stdlib.h>
9566
9567 int
9568 main ()
9569 {
9570 int major, minor, micro;
9571
9572 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9573 printf("%s, bad version string\n", "$min_gtk_version");
9574 exit(1);
9575 }
9576
9577 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9578 (GTK_MINOR_VERSION != gtk_minor_version) ||
9579 (GTK_MICRO_VERSION != gtk_micro_version)) {
9580 printf("Headers vs. library version mismatch!\n");
9581 exit(1);
9582 }
9583
9584 if (gtk_minor_version == 1) return FALSE;
9585
9586 return !((gtk_major_version > major) ||
9587 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9588 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9589 }
9590
9591 EOF
9592 if { (eval echo configure:9593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9593 then
9594 :
9595 else
9596 echo "configure: failed program was:" >&5
9597 cat conftest.$ac_ext >&5
9598 rm -fr conftest*
9599 no_gtk=yes
9600 fi
9601 rm -fr conftest*
9602 fi
9603
9604 CFLAGS="$ac_save_CFLAGS"
9605 LIBS="$ac_save_LIBS"
9606 else
9607 no_gtk=yes
9608 fi
9609 if test "x$no_gtk" = x ; then
9610 echo "$ac_t""yes" 1>&6
9611 wx_cv_lib_gtk=1.2.3
9612 else
9613 echo "$ac_t""no" 1>&6
9614 GTK_CFLAGS=""
9615 GTK_LIBS=""
9616 :
9617 fi
9618
9619
9620
9621 fi
9622
9623 if test -z "$wx_cv_lib_gtk"; then
9624 wx_cv_lib_gtk=none
9625 else
9626 wx_cv_cflags_gtk=$GTK_CFLAGS
9627 wx_cv_libs_gtk=$GTK_LIBS
9628 fi
9629
9630
9631 fi
9632
9633
9634 if test "$gtk_version_cached" = 1; then
9635 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
9636 fi
9637
9638 case "$wx_cv_lib_gtk" in
9639 2.0) WXGTK20=1
9640 ;;
9641 1.2.7) WXGTK127=1
9642 WXGTK12=1
9643 ;;
9644 1.2.3) WXGTK12=1
9645 ;;
9646 *) { echo "configure: error:
9647 Please check that gtk-config is in path, the directory
9648 where GTK+ libraries are installed (returned by
9649 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9650 equivalent variable and GTK+ is version 1.2.3 or above.
9651 " 1>&2; exit 1; }
9652 ;;
9653 esac
9654
9655 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
9656 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
9657
9658 AFMINSTALL=afminstall
9659 TOOLKIT=GTK
9660 GUIDIST=GTK_DIST
9661
9662 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9663 echo "configure:9664: checking for gdk_im_open in -lgdk" >&5
9664 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9665 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9666 echo $ac_n "(cached) $ac_c" 1>&6
9667 else
9668 ac_save_LIBS="$LIBS"
9669 LIBS="-lgdk $LIBS"
9670 cat > conftest.$ac_ext <<EOF
9671 #line 9672 "configure"
9672 #include "confdefs.h"
9673 /* Override any gcc2 internal prototype to avoid an error. */
9674 /* We use char because int might match the return type of a gcc2
9675 builtin and then its argument prototype would still apply. */
9676 char gdk_im_open();
9677
9678 int main() {
9679 gdk_im_open()
9680 ; return 0; }
9681 EOF
9682 if { (eval echo configure:9683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9683 rm -rf conftest*
9684 eval "ac_cv_lib_$ac_lib_var=yes"
9685 else
9686 echo "configure: failed program was:" >&5
9687 cat conftest.$ac_ext >&5
9688 rm -rf conftest*
9689 eval "ac_cv_lib_$ac_lib_var=no"
9690 fi
9691 rm -f conftest*
9692 LIBS="$ac_save_LIBS"
9693
9694 fi
9695 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9696 echo "$ac_t""yes" 1>&6
9697 cat >> confdefs.h <<\EOF
9698 #define HAVE_XIM 1
9699 EOF
9700
9701 else
9702 echo "$ac_t""no" 1>&6
9703 fi
9704
9705 fi
9706
9707 if test "$wxUSE_MGL" = 1; then
9708
9709 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9710 echo "configure:9711: checking for SciTech MGL library" >&5
9711 if test "x$MGL_ROOT" = x ; then
9712 echo "$ac_t""not found" 1>&6
9713 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9714 else
9715 echo "$ac_t""$MGL_ROOT" 1>&6
9716 fi
9717
9718 mgl_os=linux/gcc/glibc
9719 mgl_lib_type=""
9720
9721 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9722 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then
9723 mgl_lib_type=debug
9724 fi
9725 fi
9726 if test "x$mgl_lib_type" = x ; then
9727 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then
9728 mgl_lib_type=release
9729 else
9730 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9731 fi
9732 fi
9733
9734 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9735 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
9736
9737 AFMINSTALL=afminstall
9738 TOOLKIT=MGL
9739 GUIDIST=MGL_DIST
9740 fi
9741
9742 if test "$wxUSE_WINE" = 1; then
9743 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9744 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
9745 echo "configure:9746: checking for windows.h" >&5
9746 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9747 echo $ac_n "(cached) $ac_c" 1>&6
9748 else
9749 cat > conftest.$ac_ext <<EOF
9750 #line 9751 "configure"
9751 #include "confdefs.h"
9752 #include <windows.h>
9753 EOF
9754 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9755 { (eval echo configure:9756: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9756 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9757 if test -z "$ac_err"; then
9758 rm -rf conftest*
9759 eval "ac_cv_header_$ac_safe=yes"
9760 else
9761 echo "$ac_err" >&5
9762 echo "configure: failed program was:" >&5
9763 cat conftest.$ac_ext >&5
9764 rm -rf conftest*
9765 eval "ac_cv_header_$ac_safe=no"
9766 fi
9767 rm -f conftest*
9768 fi
9769 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9770 echo "$ac_t""yes" 1>&6
9771 :
9772 else
9773 echo "$ac_t""no" 1>&6
9774
9775 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9776
9777 fi
9778
9779
9780 xpm_link=""
9781 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9782 echo "configure:9783: checking for Xpm library" >&5
9783
9784 ac_find_libraries=
9785 for ac_dir in $SEARCH_LIB;
9786 do
9787 for ac_extension in a so sl dylib; do
9788 if test -f "$ac_dir/libXpm.$ac_extension"; then
9789 ac_find_libraries=$ac_dir
9790 break 2
9791 fi
9792 done
9793 done
9794
9795 if test "$ac_find_libraries" != "" ; then
9796 GUI_TK_LIBRARY="-L$ac_find_libraries"
9797 xpm_link="-lXpm"
9798 cat >> confdefs.h <<\EOF
9799 #define wxHAVE_LIB_XPM 1
9800 EOF
9801
9802 echo "$ac_t""found at $ac_find_libraries" 1>&6
9803 else
9804 echo "$ac_t""no" 1>&6
9805 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9806 fi
9807
9808 mesa_link=""
9809 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9810 echo "configure:9811: checking for Mesa library" >&5
9811
9812 ac_find_libraries=
9813 for ac_dir in $SEARCH_LIB;
9814 do
9815 for ac_extension in a so sl dylib; do
9816 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9817 ac_find_libraries=$ac_dir
9818 break 2
9819 fi
9820 done
9821 done
9822
9823 if test "$ac_find_libraries" != "" ; then
9824 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9825 mesa_link="-lMesaGL"
9826 echo "$ac_t""found at $ac_find_libraries" 1>&6
9827 else
9828 { echo "configure: error: no" 1>&2; exit 1; }
9829 fi
9830
9831 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9832 TOOLKIT=MSW
9833 GUIDIST=MSW_DIST
9834 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
9835 fi
9836
9837
9838 # If we find X, set shell vars x_includes and x_libraries to the
9839 # paths, otherwise set no_x=yes.
9840 # Uses ac_ vars as temps to allow command line to override cache and checks.
9841 # --without-x overrides everything else, but does not touch the cache.
9842 echo $ac_n "checking for X""... $ac_c" 1>&6
9843 echo "configure:9844: checking for X" >&5
9844
9845 # Check whether --with-x or --without-x was given.
9846 if test "${with_x+set}" = set; then
9847 withval="$with_x"
9848 :
9849 fi
9850
9851 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9852 if test "x$with_x" = xno; then
9853 # The user explicitly disabled X.
9854 have_x=disabled
9855 else
9856 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9857 # Both variables are already set.
9858 have_x=yes
9859 else
9860 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9861 echo $ac_n "(cached) $ac_c" 1>&6
9862 else
9863 # One or both of the vars are not set, and there is no cached value.
9864 ac_x_includes=NO ac_x_libraries=NO
9865 rm -fr conftestdir
9866 if mkdir conftestdir; then
9867 cd conftestdir
9868 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9869 cat > Imakefile <<'EOF'
9870 acfindx:
9871 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9872 EOF
9873 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9874 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9875 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9876 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9877 for ac_extension in a so sl; do
9878 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9879 test -f $ac_im_libdir/libX11.$ac_extension; then
9880 ac_im_usrlibdir=$ac_im_libdir; break
9881 fi
9882 done
9883 # Screen out bogus values from the imake configuration. They are
9884 # bogus both because they are the default anyway, and because
9885 # using them would break gcc on systems where it needs fixed includes.
9886 case "$ac_im_incroot" in
9887 /usr/include) ;;
9888 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9889 esac
9890 case "$ac_im_usrlibdir" in
9891 /usr/lib | /lib) ;;
9892 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9893 esac
9894 fi
9895 cd ..
9896 rm -fr conftestdir
9897 fi
9898
9899 if test "$ac_x_includes" = NO; then
9900 # Guess where to find include files, by looking for this one X11 .h file.
9901 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9902
9903 # First, try using that file with no special directory specified.
9904 cat > conftest.$ac_ext <<EOF
9905 #line 9906 "configure"
9906 #include "confdefs.h"
9907 #include <$x_direct_test_include>
9908 EOF
9909 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9910 { (eval echo configure:9911: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9911 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9912 if test -z "$ac_err"; then
9913 rm -rf conftest*
9914 # We can compile using X headers with no special include directory.
9915 ac_x_includes=
9916 else
9917 echo "$ac_err" >&5
9918 echo "configure: failed program was:" >&5
9919 cat conftest.$ac_ext >&5
9920 rm -rf conftest*
9921 # Look for the header file in a standard set of common directories.
9922 # Check X11 before X11Rn because it is often a symlink to the current release.
9923 for ac_dir in \
9924 /usr/X11/include \
9925 /usr/X11R6/include \
9926 /usr/X11R5/include \
9927 /usr/X11R4/include \
9928 \
9929 /usr/include/X11 \
9930 /usr/include/X11R6 \
9931 /usr/include/X11R5 \
9932 /usr/include/X11R4 \
9933 \
9934 /usr/local/X11/include \
9935 /usr/local/X11R6/include \
9936 /usr/local/X11R5/include \
9937 /usr/local/X11R4/include \
9938 \
9939 /usr/local/include/X11 \
9940 /usr/local/include/X11R6 \
9941 /usr/local/include/X11R5 \
9942 /usr/local/include/X11R4 \
9943 \
9944 /usr/X386/include \
9945 /usr/x386/include \
9946 /usr/XFree86/include/X11 \
9947 \
9948 /usr/include \
9949 /usr/local/include \
9950 /usr/unsupported/include \
9951 /usr/athena/include \
9952 /usr/local/x11r5/include \
9953 /usr/lpp/Xamples/include \
9954 \
9955 /usr/openwin/include \
9956 /usr/openwin/share/include \
9957 ; \
9958 do
9959 if test -r "$ac_dir/$x_direct_test_include"; then
9960 ac_x_includes=$ac_dir
9961 break
9962 fi
9963 done
9964 fi
9965 rm -f conftest*
9966 fi # $ac_x_includes = NO
9967
9968 if test "$ac_x_libraries" = NO; then
9969 # Check for the libraries.
9970
9971 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9972 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9973
9974 # See if we find them without any special options.
9975 # Don't add to $LIBS permanently.
9976 ac_save_LIBS="$LIBS"
9977 LIBS="-l$x_direct_test_library $LIBS"
9978 cat > conftest.$ac_ext <<EOF
9979 #line 9980 "configure"
9980 #include "confdefs.h"
9981
9982 int main() {
9983 ${x_direct_test_function}()
9984 ; return 0; }
9985 EOF
9986 if { (eval echo configure:9987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9987 rm -rf conftest*
9988 LIBS="$ac_save_LIBS"
9989 # We can link X programs with no special library path.
9990 ac_x_libraries=
9991 else
9992 echo "configure: failed program was:" >&5
9993 cat conftest.$ac_ext >&5
9994 rm -rf conftest*
9995 LIBS="$ac_save_LIBS"
9996 # First see if replacing the include by lib works.
9997 # Check X11 before X11Rn because it is often a symlink to the current release.
9998 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9999 /usr/X11/lib \
10000 /usr/X11R6/lib \
10001 /usr/X11R5/lib \
10002 /usr/X11R4/lib \
10003 \
10004 /usr/lib/X11 \
10005 /usr/lib/X11R6 \
10006 /usr/lib/X11R5 \
10007 /usr/lib/X11R4 \
10008 \
10009 /usr/local/X11/lib \
10010 /usr/local/X11R6/lib \
10011 /usr/local/X11R5/lib \
10012 /usr/local/X11R4/lib \
10013 \
10014 /usr/local/lib/X11 \
10015 /usr/local/lib/X11R6 \
10016 /usr/local/lib/X11R5 \
10017 /usr/local/lib/X11R4 \
10018 \
10019 /usr/X386/lib \
10020 /usr/x386/lib \
10021 /usr/XFree86/lib/X11 \
10022 \
10023 /usr/lib \
10024 /usr/local/lib \
10025 /usr/unsupported/lib \
10026 /usr/athena/lib \
10027 /usr/local/x11r5/lib \
10028 /usr/lpp/Xamples/lib \
10029 /lib/usr/lib/X11 \
10030 \
10031 /usr/openwin/lib \
10032 /usr/openwin/share/lib \
10033 ; \
10034 do
10035 for ac_extension in a so sl; do
10036 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
10037 ac_x_libraries=$ac_dir
10038 break 2
10039 fi
10040 done
10041 done
10042 fi
10043 rm -f conftest*
10044 fi # $ac_x_libraries = NO
10045
10046 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
10047 # Didn't find X anywhere. Cache the known absence of X.
10048 ac_cv_have_x="have_x=no"
10049 else
10050 # Record where we found X for the cache.
10051 ac_cv_have_x="have_x=yes \
10052 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10053 fi
10054 fi
10055 fi
10056 eval "$ac_cv_have_x"
10057 fi # $with_x != no
10058
10059 if test "$have_x" != yes; then
10060 echo "$ac_t""$have_x" 1>&6
10061 no_x=yes
10062 else
10063 # If each of the values was on the command line, it overrides each guess.
10064 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10065 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10066 # Update the cache value to reflect the command line values.
10067 ac_cv_have_x="have_x=yes \
10068 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10069 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10070 fi
10071
10072 if test "$no_x" = yes; then
10073 # Not all programs may use this symbol, but it does not hurt to define it.
10074 cat >> confdefs.h <<\EOF
10075 #define X_DISPLAY_MISSING 1
10076 EOF
10077
10078 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10079 else
10080 if test -n "$x_includes"; then
10081 X_CFLAGS="$X_CFLAGS -I$x_includes"
10082 fi
10083
10084 # It would also be nice to do this for all -L options, not just this one.
10085 if test -n "$x_libraries"; then
10086 X_LIBS="$X_LIBS -L$x_libraries"
10087 # For Solaris; some versions of Sun CC require a space after -R and
10088 # others require no space. Words are not sufficient . . . .
10089 case "`(uname -sr) 2>/dev/null`" in
10090 "SunOS 5"*)
10091 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
10092 echo "configure:10093: checking whether -R must be followed by a space" >&5
10093 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10094 cat > conftest.$ac_ext <<EOF
10095 #line 10096 "configure"
10096 #include "confdefs.h"
10097
10098 int main() {
10099
10100 ; return 0; }
10101 EOF
10102 if { (eval echo configure:10103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10103 rm -rf conftest*
10104 ac_R_nospace=yes
10105 else
10106 echo "configure: failed program was:" >&5
10107 cat conftest.$ac_ext >&5
10108 rm -rf conftest*
10109 ac_R_nospace=no
10110 fi
10111 rm -f conftest*
10112 if test $ac_R_nospace = yes; then
10113 echo "$ac_t""no" 1>&6
10114 X_LIBS="$X_LIBS -R$x_libraries"
10115 else
10116 LIBS="$ac_xsave_LIBS -R $x_libraries"
10117 cat > conftest.$ac_ext <<EOF
10118 #line 10119 "configure"
10119 #include "confdefs.h"
10120
10121 int main() {
10122
10123 ; return 0; }
10124 EOF
10125 if { (eval echo configure:10126: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10126 rm -rf conftest*
10127 ac_R_space=yes
10128 else
10129 echo "configure: failed program was:" >&5
10130 cat conftest.$ac_ext >&5
10131 rm -rf conftest*
10132 ac_R_space=no
10133 fi
10134 rm -f conftest*
10135 if test $ac_R_space = yes; then
10136 echo "$ac_t""yes" 1>&6
10137 X_LIBS="$X_LIBS -R $x_libraries"
10138 else
10139 echo "$ac_t""neither works" 1>&6
10140 fi
10141 fi
10142 LIBS="$ac_xsave_LIBS"
10143 esac
10144 fi
10145
10146 # Check for system-dependent libraries X programs must link with.
10147 # Do this before checking for the system-independent R6 libraries
10148 # (-lICE), since we may need -lsocket or whatever for X linking.
10149
10150 if test "$ISC" = yes; then
10151 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10152 else
10153 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10154 # libraries were built with DECnet support. And karl@cs.umb.edu says
10155 # the Alpha needs dnet_stub (dnet does not exist).
10156 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
10157 echo "configure:10158: checking for dnet_ntoa in -ldnet" >&5
10158 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10159 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10160 echo $ac_n "(cached) $ac_c" 1>&6
10161 else
10162 ac_save_LIBS="$LIBS"
10163 LIBS="-ldnet $LIBS"
10164 cat > conftest.$ac_ext <<EOF
10165 #line 10166 "configure"
10166 #include "confdefs.h"
10167 /* Override any gcc2 internal prototype to avoid an error. */
10168 /* We use char because int might match the return type of a gcc2
10169 builtin and then its argument prototype would still apply. */
10170 char dnet_ntoa();
10171
10172 int main() {
10173 dnet_ntoa()
10174 ; return 0; }
10175 EOF
10176 if { (eval echo configure:10177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10177 rm -rf conftest*
10178 eval "ac_cv_lib_$ac_lib_var=yes"
10179 else
10180 echo "configure: failed program was:" >&5
10181 cat conftest.$ac_ext >&5
10182 rm -rf conftest*
10183 eval "ac_cv_lib_$ac_lib_var=no"
10184 fi
10185 rm -f conftest*
10186 LIBS="$ac_save_LIBS"
10187
10188 fi
10189 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10190 echo "$ac_t""yes" 1>&6
10191 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10192 else
10193 echo "$ac_t""no" 1>&6
10194 fi
10195
10196 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10197 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
10198 echo "configure:10199: checking for dnet_ntoa in -ldnet_stub" >&5
10199 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10201 echo $ac_n "(cached) $ac_c" 1>&6
10202 else
10203 ac_save_LIBS="$LIBS"
10204 LIBS="-ldnet_stub $LIBS"
10205 cat > conftest.$ac_ext <<EOF
10206 #line 10207 "configure"
10207 #include "confdefs.h"
10208 /* Override any gcc2 internal prototype to avoid an error. */
10209 /* We use char because int might match the return type of a gcc2
10210 builtin and then its argument prototype would still apply. */
10211 char dnet_ntoa();
10212
10213 int main() {
10214 dnet_ntoa()
10215 ; return 0; }
10216 EOF
10217 if { (eval echo configure:10218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10218 rm -rf conftest*
10219 eval "ac_cv_lib_$ac_lib_var=yes"
10220 else
10221 echo "configure: failed program was:" >&5
10222 cat conftest.$ac_ext >&5
10223 rm -rf conftest*
10224 eval "ac_cv_lib_$ac_lib_var=no"
10225 fi
10226 rm -f conftest*
10227 LIBS="$ac_save_LIBS"
10228
10229 fi
10230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10231 echo "$ac_t""yes" 1>&6
10232 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10233 else
10234 echo "$ac_t""no" 1>&6
10235 fi
10236
10237 fi
10238
10239 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10240 # to get the SysV transport functions.
10241 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10242 # needs -lnsl.
10243 # The nsl library prevents programs from opening the X display
10244 # on Irix 5.2, according to dickey@clark.net.
10245 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
10246 echo "configure:10247: checking for gethostbyname" >&5
10247 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10248 echo $ac_n "(cached) $ac_c" 1>&6
10249 else
10250 cat > conftest.$ac_ext <<EOF
10251 #line 10252 "configure"
10252 #include "confdefs.h"
10253 /* System header to define __stub macros and hopefully few prototypes,
10254 which can conflict with char gethostbyname(); below. */
10255 #include <assert.h>
10256 /* Override any gcc2 internal prototype to avoid an error. */
10257 /* We use char because int might match the return type of a gcc2
10258 builtin and then its argument prototype would still apply. */
10259 char gethostbyname();
10260
10261 int main() {
10262
10263 /* The GNU C library defines this for functions which it implements
10264 to always fail with ENOSYS. Some functions are actually named
10265 something starting with __ and the normal name is an alias. */
10266 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10267 choke me
10268 #else
10269 gethostbyname();
10270 #endif
10271
10272 ; return 0; }
10273 EOF
10274 if { (eval echo configure:10275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10275 rm -rf conftest*
10276 eval "ac_cv_func_gethostbyname=yes"
10277 else
10278 echo "configure: failed program was:" >&5
10279 cat conftest.$ac_ext >&5
10280 rm -rf conftest*
10281 eval "ac_cv_func_gethostbyname=no"
10282 fi
10283 rm -f conftest*
10284 fi
10285
10286 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10287 echo "$ac_t""yes" 1>&6
10288 :
10289 else
10290 echo "$ac_t""no" 1>&6
10291 fi
10292
10293 if test $ac_cv_func_gethostbyname = no; then
10294 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
10295 echo "configure:10296: checking for gethostbyname in -lnsl" >&5
10296 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10298 echo $ac_n "(cached) $ac_c" 1>&6
10299 else
10300 ac_save_LIBS="$LIBS"
10301 LIBS="-lnsl $LIBS"
10302 cat > conftest.$ac_ext <<EOF
10303 #line 10304 "configure"
10304 #include "confdefs.h"
10305 /* Override any gcc2 internal prototype to avoid an error. */
10306 /* We use char because int might match the return type of a gcc2
10307 builtin and then its argument prototype would still apply. */
10308 char gethostbyname();
10309
10310 int main() {
10311 gethostbyname()
10312 ; return 0; }
10313 EOF
10314 if { (eval echo configure:10315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10315 rm -rf conftest*
10316 eval "ac_cv_lib_$ac_lib_var=yes"
10317 else
10318 echo "configure: failed program was:" >&5
10319 cat conftest.$ac_ext >&5
10320 rm -rf conftest*
10321 eval "ac_cv_lib_$ac_lib_var=no"
10322 fi
10323 rm -f conftest*
10324 LIBS="$ac_save_LIBS"
10325
10326 fi
10327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10328 echo "$ac_t""yes" 1>&6
10329 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10330 else
10331 echo "$ac_t""no" 1>&6
10332 fi
10333
10334 fi
10335
10336 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10337 # socket/setsockopt and other routines are undefined under SCO ODT
10338 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10339 # on later versions), says simon@lia.di.epfl.ch: it contains
10340 # gethostby* variants that don't use the nameserver (or something).
10341 # -lsocket must be given before -lnsl if both are needed.
10342 # We assume that if connect needs -lnsl, so does gethostbyname.
10343 echo $ac_n "checking for connect""... $ac_c" 1>&6
10344 echo "configure:10345: checking for connect" >&5
10345 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10346 echo $ac_n "(cached) $ac_c" 1>&6
10347 else
10348 cat > conftest.$ac_ext <<EOF
10349 #line 10350 "configure"
10350 #include "confdefs.h"
10351 /* System header to define __stub macros and hopefully few prototypes,
10352 which can conflict with char connect(); below. */
10353 #include <assert.h>
10354 /* Override any gcc2 internal prototype to avoid an error. */
10355 /* We use char because int might match the return type of a gcc2
10356 builtin and then its argument prototype would still apply. */
10357 char connect();
10358
10359 int main() {
10360
10361 /* The GNU C library defines this for functions which it implements
10362 to always fail with ENOSYS. Some functions are actually named
10363 something starting with __ and the normal name is an alias. */
10364 #if defined (__stub_connect) || defined (__stub___connect)
10365 choke me
10366 #else
10367 connect();
10368 #endif
10369
10370 ; return 0; }
10371 EOF
10372 if { (eval echo configure:10373: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10373 rm -rf conftest*
10374 eval "ac_cv_func_connect=yes"
10375 else
10376 echo "configure: failed program was:" >&5
10377 cat conftest.$ac_ext >&5
10378 rm -rf conftest*
10379 eval "ac_cv_func_connect=no"
10380 fi
10381 rm -f conftest*
10382 fi
10383
10384 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10385 echo "$ac_t""yes" 1>&6
10386 :
10387 else
10388 echo "$ac_t""no" 1>&6
10389 fi
10390
10391 if test $ac_cv_func_connect = no; then
10392 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
10393 echo "configure:10394: checking for connect in -lsocket" >&5
10394 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10396 echo $ac_n "(cached) $ac_c" 1>&6
10397 else
10398 ac_save_LIBS="$LIBS"
10399 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10400 cat > conftest.$ac_ext <<EOF
10401 #line 10402 "configure"
10402 #include "confdefs.h"
10403 /* Override any gcc2 internal prototype to avoid an error. */
10404 /* We use char because int might match the return type of a gcc2
10405 builtin and then its argument prototype would still apply. */
10406 char connect();
10407
10408 int main() {
10409 connect()
10410 ; return 0; }
10411 EOF
10412 if { (eval echo configure:10413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10413 rm -rf conftest*
10414 eval "ac_cv_lib_$ac_lib_var=yes"
10415 else
10416 echo "configure: failed program was:" >&5
10417 cat conftest.$ac_ext >&5
10418 rm -rf conftest*
10419 eval "ac_cv_lib_$ac_lib_var=no"
10420 fi
10421 rm -f conftest*
10422 LIBS="$ac_save_LIBS"
10423
10424 fi
10425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10426 echo "$ac_t""yes" 1>&6
10427 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10428 else
10429 echo "$ac_t""no" 1>&6
10430 fi
10431
10432 fi
10433
10434 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10435 echo $ac_n "checking for remove""... $ac_c" 1>&6
10436 echo "configure:10437: checking for remove" >&5
10437 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10438 echo $ac_n "(cached) $ac_c" 1>&6
10439 else
10440 cat > conftest.$ac_ext <<EOF
10441 #line 10442 "configure"
10442 #include "confdefs.h"
10443 /* System header to define __stub macros and hopefully few prototypes,
10444 which can conflict with char remove(); below. */
10445 #include <assert.h>
10446 /* Override any gcc2 internal prototype to avoid an error. */
10447 /* We use char because int might match the return type of a gcc2
10448 builtin and then its argument prototype would still apply. */
10449 char remove();
10450
10451 int main() {
10452
10453 /* The GNU C library defines this for functions which it implements
10454 to always fail with ENOSYS. Some functions are actually named
10455 something starting with __ and the normal name is an alias. */
10456 #if defined (__stub_remove) || defined (__stub___remove)
10457 choke me
10458 #else
10459 remove();
10460 #endif
10461
10462 ; return 0; }
10463 EOF
10464 if { (eval echo configure:10465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10465 rm -rf conftest*
10466 eval "ac_cv_func_remove=yes"
10467 else
10468 echo "configure: failed program was:" >&5
10469 cat conftest.$ac_ext >&5
10470 rm -rf conftest*
10471 eval "ac_cv_func_remove=no"
10472 fi
10473 rm -f conftest*
10474 fi
10475
10476 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10477 echo "$ac_t""yes" 1>&6
10478 :
10479 else
10480 echo "$ac_t""no" 1>&6
10481 fi
10482
10483 if test $ac_cv_func_remove = no; then
10484 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
10485 echo "configure:10486: checking for remove in -lposix" >&5
10486 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10488 echo $ac_n "(cached) $ac_c" 1>&6
10489 else
10490 ac_save_LIBS="$LIBS"
10491 LIBS="-lposix $LIBS"
10492 cat > conftest.$ac_ext <<EOF
10493 #line 10494 "configure"
10494 #include "confdefs.h"
10495 /* Override any gcc2 internal prototype to avoid an error. */
10496 /* We use char because int might match the return type of a gcc2
10497 builtin and then its argument prototype would still apply. */
10498 char remove();
10499
10500 int main() {
10501 remove()
10502 ; return 0; }
10503 EOF
10504 if { (eval echo configure:10505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10505 rm -rf conftest*
10506 eval "ac_cv_lib_$ac_lib_var=yes"
10507 else
10508 echo "configure: failed program was:" >&5
10509 cat conftest.$ac_ext >&5
10510 rm -rf conftest*
10511 eval "ac_cv_lib_$ac_lib_var=no"
10512 fi
10513 rm -f conftest*
10514 LIBS="$ac_save_LIBS"
10515
10516 fi
10517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10518 echo "$ac_t""yes" 1>&6
10519 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10520 else
10521 echo "$ac_t""no" 1>&6
10522 fi
10523
10524 fi
10525
10526 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10527 echo $ac_n "checking for shmat""... $ac_c" 1>&6
10528 echo "configure:10529: checking for shmat" >&5
10529 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10530 echo $ac_n "(cached) $ac_c" 1>&6
10531 else
10532 cat > conftest.$ac_ext <<EOF
10533 #line 10534 "configure"
10534 #include "confdefs.h"
10535 /* System header to define __stub macros and hopefully few prototypes,
10536 which can conflict with char shmat(); below. */
10537 #include <assert.h>
10538 /* Override any gcc2 internal prototype to avoid an error. */
10539 /* We use char because int might match the return type of a gcc2
10540 builtin and then its argument prototype would still apply. */
10541 char shmat();
10542
10543 int main() {
10544
10545 /* The GNU C library defines this for functions which it implements
10546 to always fail with ENOSYS. Some functions are actually named
10547 something starting with __ and the normal name is an alias. */
10548 #if defined (__stub_shmat) || defined (__stub___shmat)
10549 choke me
10550 #else
10551 shmat();
10552 #endif
10553
10554 ; return 0; }
10555 EOF
10556 if { (eval echo configure:10557: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10557 rm -rf conftest*
10558 eval "ac_cv_func_shmat=yes"
10559 else
10560 echo "configure: failed program was:" >&5
10561 cat conftest.$ac_ext >&5
10562 rm -rf conftest*
10563 eval "ac_cv_func_shmat=no"
10564 fi
10565 rm -f conftest*
10566 fi
10567
10568 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10569 echo "$ac_t""yes" 1>&6
10570 :
10571 else
10572 echo "$ac_t""no" 1>&6
10573 fi
10574
10575 if test $ac_cv_func_shmat = no; then
10576 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
10577 echo "configure:10578: checking for shmat in -lipc" >&5
10578 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10579 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10580 echo $ac_n "(cached) $ac_c" 1>&6
10581 else
10582 ac_save_LIBS="$LIBS"
10583 LIBS="-lipc $LIBS"
10584 cat > conftest.$ac_ext <<EOF
10585 #line 10586 "configure"
10586 #include "confdefs.h"
10587 /* Override any gcc2 internal prototype to avoid an error. */
10588 /* We use char because int might match the return type of a gcc2
10589 builtin and then its argument prototype would still apply. */
10590 char shmat();
10591
10592 int main() {
10593 shmat()
10594 ; return 0; }
10595 EOF
10596 if { (eval echo configure:10597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10597 rm -rf conftest*
10598 eval "ac_cv_lib_$ac_lib_var=yes"
10599 else
10600 echo "configure: failed program was:" >&5
10601 cat conftest.$ac_ext >&5
10602 rm -rf conftest*
10603 eval "ac_cv_lib_$ac_lib_var=no"
10604 fi
10605 rm -f conftest*
10606 LIBS="$ac_save_LIBS"
10607
10608 fi
10609 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10610 echo "$ac_t""yes" 1>&6
10611 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10612 else
10613 echo "$ac_t""no" 1>&6
10614 fi
10615
10616 fi
10617 fi
10618
10619 # Check for libraries that X11R6 Xt/Xaw programs need.
10620 ac_save_LDFLAGS="$LDFLAGS"
10621 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10622 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10623 # check for ICE first), but we must link in the order -lSM -lICE or
10624 # we get undefined symbols. So assume we have SM if we have ICE.
10625 # These have to be linked with before -lX11, unlike the other
10626 # libraries we check for below, so use a different variable.
10627 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10628 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
10629 echo "configure:10630: checking for IceConnectionNumber in -lICE" >&5
10630 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10631 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10632 echo $ac_n "(cached) $ac_c" 1>&6
10633 else
10634 ac_save_LIBS="$LIBS"
10635 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10636 cat > conftest.$ac_ext <<EOF
10637 #line 10638 "configure"
10638 #include "confdefs.h"
10639 /* Override any gcc2 internal prototype to avoid an error. */
10640 /* We use char because int might match the return type of a gcc2
10641 builtin and then its argument prototype would still apply. */
10642 char IceConnectionNumber();
10643
10644 int main() {
10645 IceConnectionNumber()
10646 ; return 0; }
10647 EOF
10648 if { (eval echo configure:10649: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10649 rm -rf conftest*
10650 eval "ac_cv_lib_$ac_lib_var=yes"
10651 else
10652 echo "configure: failed program was:" >&5
10653 cat conftest.$ac_ext >&5
10654 rm -rf conftest*
10655 eval "ac_cv_lib_$ac_lib_var=no"
10656 fi
10657 rm -f conftest*
10658 LIBS="$ac_save_LIBS"
10659
10660 fi
10661 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10662 echo "$ac_t""yes" 1>&6
10663 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10664 else
10665 echo "$ac_t""no" 1>&6
10666 fi
10667
10668 LDFLAGS="$ac_save_LDFLAGS"
10669
10670 fi
10671
10672 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10673 LDFLAGS="$LDFLAGS $X_LIBS"
10674
10675 if test "$wxUSE_MOTIF" = 1; then
10676 if test "$no_x" = "yes"; then
10677 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10678 fi
10679
10680 GUI_TK_LIBRARY="$X_LIBS"
10681 TOOLKIT_INCLUDE="$X_CFLAGS"
10682 AFMINSTALL=afminstall
10683 COMPILED_X_PROGRAM=0
10684
10685 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
10686 echo "configure:10687: checking for Motif/Lesstif headers" >&5
10687
10688 ac_find_includes=
10689 for ac_dir in $SEARCH_INCLUDE;
10690 do
10691 if test -f "$ac_dir/Xm/Xm.h"; then
10692 ac_find_includes=$ac_dir
10693 break
10694 fi
10695 done
10696
10697 if test "$ac_find_includes" != "" ; then
10698 echo "$ac_t""found $ac_find_includes" 1>&6
10699 else
10700 cat > conftest.$ac_ext <<EOF
10701 #line 10702 "configure"
10702 #include "confdefs.h"
10703
10704 #include <Xm/Xm.h>
10705
10706 int main() {
10707
10708 int version;
10709 version = xmUseVersion;
10710
10711 ; return 0; }
10712 EOF
10713 if { (eval echo configure:10714: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10714 rm -rf conftest*
10715
10716 echo "$ac_t""found in default search path" 1>&6
10717 COMPILED_X_PROGRAM=1
10718
10719 else
10720 echo "configure: failed program was:" >&5
10721 cat conftest.$ac_ext >&5
10722 rm -rf conftest*
10723
10724 echo "$ac_t""no" 1>&6
10725 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10726
10727
10728 fi
10729 rm -f conftest*
10730 fi
10731
10732 if test "$COMPILED_X_PROGRAM" = 0; then
10733 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10734 echo "configure:10735: checking for Motif/Lesstif library" >&5
10735
10736 ac_find_libraries=
10737 for ac_dir in $SEARCH_LIB;
10738 do
10739 for ac_extension in a so sl dylib; do
10740 if test -f "$ac_dir/libXm.$ac_extension"; then
10741 ac_find_libraries=$ac_dir
10742 break 2
10743 fi
10744 done
10745 done
10746
10747 if test "$ac_find_libraries" != "" ; then
10748
10749 ac_path_to_include=$ac_find_includes
10750 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10751 result=$?
10752 if test $result = 0; then
10753 ac_path_to_include=""
10754 else
10755 ac_path_to_include="-I$ac_find_includes"
10756 fi
10757
10758
10759 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10760 result=$?
10761 if test $result = 0; then
10762 ac_path_to_link=""
10763 else
10764 ac_path_to_link="-L$ac_find_libraries"
10765 fi
10766
10767
10768 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10769 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10770 echo "$ac_t""found at $ac_find_libraries" 1>&6
10771 else
10772 cat > conftest.$ac_ext <<EOF
10773 #line 10774 "configure"
10774 #include "confdefs.h"
10775
10776 #include <Xm/Xm.h>
10777
10778 int main() {
10779
10780 int version;
10781 version = xmUseVersion;
10782
10783 ; return 0; }
10784 EOF
10785 if { (eval echo configure:10786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10786 rm -rf conftest*
10787
10788 echo "$ac_t""found in default search path" 1>&6
10789 COMPILED_X_PROGRAM=1
10790
10791 else
10792 echo "configure: failed program was:" >&5
10793 cat conftest.$ac_ext >&5
10794 rm -rf conftest*
10795
10796 echo "$ac_t""no" 1>&6
10797 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10798
10799
10800 fi
10801 rm -f conftest*
10802 fi
10803 fi
10804
10805 xpm_link=""
10806 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10807 echo "configure:10808: checking for Xpm library" >&5
10808
10809 ac_find_libraries=
10810 for ac_dir in $SEARCH_LIB;
10811 do
10812 for ac_extension in a so sl dylib; do
10813 if test -f "$ac_dir/libXpm.$ac_extension"; then
10814 ac_find_libraries=$ac_dir
10815 break 2
10816 fi
10817 done
10818 done
10819
10820 if test "$ac_find_libraries" != "" ; then
10821
10822 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10823 result=$?
10824 if test $result = 0; then
10825 ac_path_to_link=""
10826 else
10827 ac_path_to_link="-L$ac_find_libraries"
10828 fi
10829
10830 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10831 xpm_link="-lXpm "
10832 cat >> confdefs.h <<\EOF
10833 #define wxHAVE_LIB_XPM 1
10834 EOF
10835
10836 echo "$ac_t""found at $ac_find_libraries" 1>&6
10837 else
10838 cat > conftest.$ac_ext <<EOF
10839 #line 10840 "configure"
10840 #include "confdefs.h"
10841
10842 #include <X11/xpm.h>
10843
10844 int main() {
10845
10846 int version;
10847 version = XpmLibraryVersion();
10848
10849 ; return 0; }
10850 EOF
10851 if { (eval echo configure:10852: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10852 rm -rf conftest*
10853
10854 xpm_link="-lXpm "
10855 cat >> confdefs.h <<\EOF
10856 #define wxHAVE_LIB_XPM 1
10857 EOF
10858
10859 echo "$ac_t""found in default search path" 1>&6
10860 COMPILED_X_PROGRAM=0
10861
10862 else
10863 echo "configure: failed program was:" >&5
10864 cat conftest.$ac_ext >&5
10865 rm -rf conftest*
10866
10867 echo "$ac_t""no" 1>&6
10868 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10869
10870
10871 fi
10872 rm -f conftest*
10873 fi
10874
10875 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11"
10876 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10877 TOOLKIT=MOTIF
10878 GUIDIST=MOTIF_DIST
10879 fi
10880
10881 if test "$wxUSE_MAC" = 1; then
10882 TOOLKIT=MAC
10883 GUIDIST=MACX_DIST
10884 fi
10885
10886 if test "$wxUSE_PM" = 1; then
10887 TOOLKIT=PM
10888 GUIDIST=GTK_DIST
10889 fi
10890
10891 if test "$TOOLKIT" = "PM" ; then
10892 TOOLKIT_DIR="os2"
10893 else
10894 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10895 fi
10896
10897 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
10898
10899 if test "$wxUSE_UNIVERSAL" = "yes"; then
10900 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10901 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10902 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
10903 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
10904 WIDGET_SET=univ
10905 else
10906 ALL_OBJECTS="\$(GUIOBJS)"
10907 fi
10908
10909 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10910
10911 if test "$TOOLKIT" != "MSW"; then
10912 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10913 fi
10914
10915 if test "$wxUSE_HTML" = "yes"; then
10916 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10917 fi
10918
10919 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
10920 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10921 fi
10922 if test "$wxUSE_LIBJPEG" = "yes" ; then
10923 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10924 fi
10925 if test "$wxUSE_LIBTIFF" = "yes" ; then
10926 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10927 fi
10928 if test "$wxUSE_LIBPNG" = "yes" ; then
10929 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10930 fi
10931 if test "$wxUSE_FREETYPE" = "yes" ; then
10932 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10933 fi
10934
10935 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10936 RPM_SPEC="wx\$(TOOLKIT).spec"
10937
10938 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10939 DISTDIR="wx\$(TOOLKIT)"
10940 else
10941 USE_GUI=0
10942
10943 TOOLKIT_DIR="base"
10944
10945 if test "$USE_WIN32" = 1 ; then
10946 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
10947 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
10948
10949 TOOLKIT="MSW"
10950 else
10951 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
10952 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
10953 fi
10954
10955 PORT_FILES="\${top_srcdir}/src/files.lst"
10956 RPM_FILES="src/rpmfiles.lst"
10957 RPM_SPEC="wxBase.spec"
10958
10959 GUIDIST="BASE_DIST"
10960 DISTDIR="wxBase"
10961 fi
10962
10963 if test "x$REGEX_INCLUDE" != "x" ; then
10964 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10965 fi
10966 if test "$wxUSE_ZLIB" = "yes" ; then
10967 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10968 fi
10969
10970 if test "$wxUSE_OPENGL" = "yes"; then
10971 if test "$wxUSE_MAC" = 1; then
10972 cat >> confdefs.h <<\EOF
10973 #define wxUSE_OPENGL 1
10974 EOF
10975
10976 cat >> confdefs.h <<\EOF
10977 #define wxUSE_GLCANVAS 1
10978 EOF
10979
10980 OPENGL_LIBS="-framework OpenGL -framework AGL"
10981 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
10982 else
10983 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
10984 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
10985 echo "configure:10986: checking for GL/gl.h" >&5
10986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10987 echo $ac_n "(cached) $ac_c" 1>&6
10988 else
10989 cat > conftest.$ac_ext <<EOF
10990 #line 10991 "configure"
10991 #include "confdefs.h"
10992 #include <GL/gl.h>
10993 EOF
10994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10995 { (eval echo configure:10996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10997 if test -z "$ac_err"; then
10998 rm -rf conftest*
10999 eval "ac_cv_header_$ac_safe=yes"
11000 else
11001 echo "$ac_err" >&5
11002 echo "configure: failed program was:" >&5
11003 cat conftest.$ac_ext >&5
11004 rm -rf conftest*
11005 eval "ac_cv_header_$ac_safe=no"
11006 fi
11007 rm -f conftest*
11008 fi
11009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11010 echo "$ac_t""yes" 1>&6
11011
11012 cat >> confdefs.h <<\EOF
11013 #define wxUSE_OPENGL 1
11014 EOF
11015
11016 cat >> confdefs.h <<\EOF
11017 #define wxUSE_GLCANVAS 1
11018 EOF
11019
11020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11021 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
11022 echo "configure:11023: checking for glFlush in -lGL" >&5
11023 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
11024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11025 echo $ac_n "(cached) $ac_c" 1>&6
11026 else
11027 ac_save_LIBS="$LIBS"
11028 LIBS="-lGL $LIBS"
11029 cat > conftest.$ac_ext <<EOF
11030 #line 11031 "configure"
11031 #include "confdefs.h"
11032 /* Override any gcc2 internal prototype to avoid an error. */
11033 /* We use char because int might match the return type of a gcc2
11034 builtin and then its argument prototype would still apply. */
11035 char glFlush();
11036
11037 int main() {
11038 glFlush()
11039 ; return 0; }
11040 EOF
11041 if { (eval echo configure:11042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11042 rm -rf conftest*
11043 eval "ac_cv_lib_$ac_lib_var=yes"
11044 else
11045 echo "configure: failed program was:" >&5
11046 cat conftest.$ac_ext >&5
11047 rm -rf conftest*
11048 eval "ac_cv_lib_$ac_lib_var=no"
11049 fi
11050 rm -f conftest*
11051 LIBS="$ac_save_LIBS"
11052
11053 fi
11054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11055 echo "$ac_t""yes" 1>&6
11056
11057 OPENGL_LIBS="-lGL -lGLU"
11058
11059 else
11060 echo "$ac_t""no" 1>&6
11061
11062 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
11063 echo "configure:11064: checking for glFlush in -lMesaGL" >&5
11064 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
11065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11066 echo $ac_n "(cached) $ac_c" 1>&6
11067 else
11068 ac_save_LIBS="$LIBS"
11069 LIBS="-lMesaGL $LIBS"
11070 cat > conftest.$ac_ext <<EOF
11071 #line 11072 "configure"
11072 #include "confdefs.h"
11073 /* Override any gcc2 internal prototype to avoid an error. */
11074 /* We use char because int might match the return type of a gcc2
11075 builtin and then its argument prototype would still apply. */
11076 char glFlush();
11077
11078 int main() {
11079 glFlush()
11080 ; return 0; }
11081 EOF
11082 if { (eval echo configure:11083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11083 rm -rf conftest*
11084 eval "ac_cv_lib_$ac_lib_var=yes"
11085 else
11086 echo "configure: failed program was:" >&5
11087 cat conftest.$ac_ext >&5
11088 rm -rf conftest*
11089 eval "ac_cv_lib_$ac_lib_var=no"
11090 fi
11091 rm -f conftest*
11092 LIBS="$ac_save_LIBS"
11093
11094 fi
11095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11096 echo "$ac_t""yes" 1>&6
11097
11098 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11099
11100 else
11101 echo "$ac_t""no" 1>&6
11102 fi
11103
11104
11105 fi
11106
11107
11108 else
11109 echo "$ac_t""no" 1>&6
11110 wxUSE_OPENGL=0
11111 fi
11112
11113 fi
11114 fi
11115
11116 if test -z "$TOOLKIT_VPATH" ; then
11117 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11118 fi
11119
11120 if test -n "$TOOLKIT" ; then
11121 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11122 fi
11123
11124 if test "$wxUSE_CYGWIN" = 1 ; then
11125 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11126 fi
11127
11128 lib_debug_suffix=
11129 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11130 lib_debug_suffix=d
11131 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}d"
11132 fi
11133
11134 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}-${WX_RELEASE}"
11135 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}_gl-${WX_RELEASE}"
11136
11137 if test "$cross_compiling" = "yes"; then
11138 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11139 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11140 fi
11141
11142 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11143 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11144
11145 WXCONFIG_LIBS="-l${WX_LIBRARY}"
11146
11147 if test "$wxUSE_OPENGL" = "yes"; then
11148 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS"
11149 fi
11150
11151 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11152 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11153
11154 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11155 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11156
11157 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11158 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11159 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11160 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11161
11162 WX_RESOURCES_DARWIN="lib${WX_LIBRARY}.rsrc"
11163
11164
11165
11166 if test "$wxUSE_SHARED" = "yes"; then
11167
11168 if test "$wxUSE_OPENGL" = "yes"; then
11169 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11170 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
11171 else
11172 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11173 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
11174 fi
11175
11176 if test "$GCC" = "yes"; then
11177 PIC_FLAG="-fPIC"
11178 fi
11179
11180 SHARED_LD="${CXX} -shared -o"
11181
11182 case "${host}" in
11183 *-hp-hpux* )
11184 if test "$GCC" != "yes"; then
11185 LDFLAGS="-L/usr/lib"
11186
11187 SHARED_LD="${CXX} -b -o"
11188 PIC_FLAG="+Z"
11189 fi
11190
11191 ;;
11192
11193 *-*-linux* )
11194 if test "$GCC" != "yes"; then
11195 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
11196 echo "configure:11197: checking for Intel compiler" >&5
11197 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11198 echo $ac_n "(cached) $ac_c" 1>&6
11199 else
11200
11201 cat > conftest.$ac_ext <<EOF
11202 #line 11203 "configure"
11203 #include "confdefs.h"
11204
11205 int main() {
11206
11207 #ifndef __INTEL_COMPILER
11208 #error Not icc
11209 #endif
11210
11211 ; return 0; }
11212 EOF
11213 if { (eval echo configure:11214: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11214 rm -rf conftest*
11215 wx_cv_prog_icc=yes
11216 else
11217 echo "configure: failed program was:" >&5
11218 cat conftest.$ac_ext >&5
11219 rm -rf conftest*
11220 wx_cv_prog_icc=no
11221
11222 fi
11223 rm -f conftest*
11224
11225 fi
11226
11227 echo "$ac_t""$wx_cv_prog_icc" 1>&6
11228 if test "$wx_cv_prog_icc" = "yes"; then
11229 PIC_FLAG="-KPIC"
11230 fi
11231 fi
11232
11233 if test "$wxUSE_SONAME" = "yes" ; then
11234 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11235 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
11236 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
11237 fi
11238 ;;
11239
11240 *-*-solaris2* )
11241 if test "$GCC" = yes ; then
11242 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
11243 else
11244 SHARED_LD="${CXX} -G -o"
11245 PIC_FLAG="-KPIC"
11246 fi
11247 ;;
11248
11249 *-*-darwin* )
11250 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__UNIX__ -D__DARWIN__ -D__POWERPC__"
11251 CPPFLAGS="${CPPFLAGS} -fno-common"
11252 SHARED_LD="${CXX} -dynamiclib -o"
11253 PIC_FLAG="-dynamic -fPIC"
11254
11255 if test "$wxUSE_MAC" = 1 ; then
11256 WX_ALL="${WX_ALL} lib${WX_LIBRARY}.r"
11257 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON"
11258 CPPFLAGS="${CPPFLAGS} -fpascal-strings"
11259 CXXFLAGS="${CXXFLAGS} -cpp-precomp"
11260 # Extract the first word of "Rez", so it can be a program name with args.
11261 set dummy Rez; ac_word=$2
11262 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11263 echo "configure:11264: checking for $ac_word" >&5
11264 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
11265 echo $ac_n "(cached) $ac_c" 1>&6
11266 else
11267 if test -n "$RESCOMP"; then
11268 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
11269 else
11270 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11271 ac_dummy="$PATH"
11272 for ac_dir in $ac_dummy; do
11273 test -z "$ac_dir" && ac_dir=.
11274 if test -f $ac_dir/$ac_word; then
11275 ac_cv_prog_RESCOMP="Rez"
11276 break
11277 fi
11278 done
11279 IFS="$ac_save_ifs"
11280 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
11281 fi
11282 fi
11283 RESCOMP="$ac_cv_prog_RESCOMP"
11284 if test -n "$RESCOMP"; then
11285 echo "$ac_t""$RESCOMP" 1>&6
11286 else
11287 echo "$ac_t""no" 1>&6
11288 fi
11289
11290 # Extract the first word of "Derez", so it can be a program name with args.
11291 set dummy Derez; ac_word=$2
11292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11293 echo "configure:11294: checking for $ac_word" >&5
11294 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
11295 echo $ac_n "(cached) $ac_c" 1>&6
11296 else
11297 if test -n "$DEREZ"; then
11298 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
11299 else
11300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11301 ac_dummy="$PATH"
11302 for ac_dir in $ac_dummy; do
11303 test -z "$ac_dir" && ac_dir=.
11304 if test -f $ac_dir/$ac_word; then
11305 ac_cv_prog_DEREZ="Derez"
11306 break
11307 fi
11308 done
11309 IFS="$ac_save_ifs"
11310 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
11311 fi
11312 fi
11313 DEREZ="$ac_cv_prog_DEREZ"
11314 if test -n "$DEREZ"; then
11315 echo "$ac_t""$DEREZ" 1>&6
11316 else
11317 echo "$ac_t""no" 1>&6
11318 fi
11319
11320 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
11321 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
11322 fi
11323 ;;
11324
11325 *-*-aix* )
11326 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11327 ;;
11328
11329 *-*-cygwin* )
11330 echo "configure: warning: Shared libs unsupported for $host_alias -- forcing static build." 1>&2
11331 wxUSE_SHARED=no
11332 ;;
11333
11334 *-*-mingw32* )
11335 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_NAME_STATIC} -o"
11336 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1"
11337 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
11338 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11339 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11340 if test "$wxUSE_OPENGL" = "yes"; then
11341 WX_ALL_INSTALLED="preinstall_gl"
11342 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11343 else
11344 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11345 fi
11346 ;;
11347
11348 *-pc-os2_emx )
11349 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11350 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11351 ;;
11352
11353 *-*-beos* )
11354 SHARED_LD="${LD} -shared -o"
11355 ;;
11356
11357 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
11358 *-*-sunos4* | \
11359 *-*-irix5* | *-*-irix6* | \
11360 *-*-osf* | \
11361 *-*-dgux5* | \
11362 *-*-sysv5* )
11363 ;;
11364
11365 *)
11366 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
11367 esac
11368
11369 if test "x$WX_TARGET_LIBRARY" = "x"; then
11370 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11371 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11372 fi
11373
11374 WX_TARGET_LIBRARY_TYPE="so"
11375 fi
11376
11377 if test "$wxUSE_SHARED" = "no"; then
11378
11379 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
11380 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11381 fi
11382
11383 if test "$wxUSE_OPENGL" = "yes"; then
11384 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
11385 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
11386 else
11387 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11388 fi
11389
11390 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11391 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11392
11393 WX_TARGET_LIBRARY_TYPE="a"
11394 fi
11395
11396
11397 for ac_hdr in strings.h
11398 do
11399 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11400 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11401 echo "configure:11402: checking for $ac_hdr" >&5
11402 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11403 echo $ac_n "(cached) $ac_c" 1>&6
11404 else
11405 cat > conftest.$ac_ext <<EOF
11406 #line 11407 "configure"
11407 #include "confdefs.h"
11408 #include <$ac_hdr>
11409 EOF
11410 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11411 { (eval echo configure:11412: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11412 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11413 if test -z "$ac_err"; then
11414 rm -rf conftest*
11415 eval "ac_cv_header_$ac_safe=yes"
11416 else
11417 echo "$ac_err" >&5
11418 echo "configure: failed program was:" >&5
11419 cat conftest.$ac_ext >&5
11420 rm -rf conftest*
11421 eval "ac_cv_header_$ac_safe=no"
11422 fi
11423 rm -f conftest*
11424 fi
11425 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11426 echo "$ac_t""yes" 1>&6
11427 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11428 cat >> confdefs.h <<EOF
11429 #define $ac_tr_hdr 1
11430 EOF
11431
11432 else
11433 echo "$ac_t""no" 1>&6
11434 fi
11435 done
11436
11437 for ac_hdr in stdlib.h
11438 do
11439 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11440 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11441 echo "configure:11442: checking for $ac_hdr" >&5
11442 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11443 echo $ac_n "(cached) $ac_c" 1>&6
11444 else
11445 cat > conftest.$ac_ext <<EOF
11446 #line 11447 "configure"
11447 #include "confdefs.h"
11448 #include <$ac_hdr>
11449 EOF
11450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11451 { (eval echo configure:11452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11453 if test -z "$ac_err"; then
11454 rm -rf conftest*
11455 eval "ac_cv_header_$ac_safe=yes"
11456 else
11457 echo "$ac_err" >&5
11458 echo "configure: failed program was:" >&5
11459 cat conftest.$ac_ext >&5
11460 rm -rf conftest*
11461 eval "ac_cv_header_$ac_safe=no"
11462 fi
11463 rm -f conftest*
11464 fi
11465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11466 echo "$ac_t""yes" 1>&6
11467 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11468 cat >> confdefs.h <<EOF
11469 #define $ac_tr_hdr 1
11470 EOF
11471
11472 else
11473 echo "$ac_t""no" 1>&6
11474 fi
11475 done
11476
11477 for ac_hdr in unistd.h
11478 do
11479 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11481 echo "configure:11482: checking for $ac_hdr" >&5
11482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11483 echo $ac_n "(cached) $ac_c" 1>&6
11484 else
11485 cat > conftest.$ac_ext <<EOF
11486 #line 11487 "configure"
11487 #include "confdefs.h"
11488 #include <$ac_hdr>
11489 EOF
11490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11491 { (eval echo configure:11492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11493 if test -z "$ac_err"; then
11494 rm -rf conftest*
11495 eval "ac_cv_header_$ac_safe=yes"
11496 else
11497 echo "$ac_err" >&5
11498 echo "configure: failed program was:" >&5
11499 cat conftest.$ac_ext >&5
11500 rm -rf conftest*
11501 eval "ac_cv_header_$ac_safe=no"
11502 fi
11503 rm -f conftest*
11504 fi
11505 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11506 echo "$ac_t""yes" 1>&6
11507 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11508 cat >> confdefs.h <<EOF
11509 #define $ac_tr_hdr 1
11510 EOF
11511
11512 else
11513 echo "$ac_t""no" 1>&6
11514 fi
11515 done
11516
11517 for ac_hdr in wchar.h
11518 do
11519 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11520 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11521 echo "configure:11522: checking for $ac_hdr" >&5
11522 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11523 echo $ac_n "(cached) $ac_c" 1>&6
11524 else
11525 cat > conftest.$ac_ext <<EOF
11526 #line 11527 "configure"
11527 #include "confdefs.h"
11528 #include <$ac_hdr>
11529 EOF
11530 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11531 { (eval echo configure:11532: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11532 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11533 if test -z "$ac_err"; then
11534 rm -rf conftest*
11535 eval "ac_cv_header_$ac_safe=yes"
11536 else
11537 echo "$ac_err" >&5
11538 echo "configure: failed program was:" >&5
11539 cat conftest.$ac_ext >&5
11540 rm -rf conftest*
11541 eval "ac_cv_header_$ac_safe=no"
11542 fi
11543 rm -f conftest*
11544 fi
11545 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11546 echo "$ac_t""yes" 1>&6
11547 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11548 cat >> confdefs.h <<EOF
11549 #define $ac_tr_hdr 1
11550 EOF
11551
11552 else
11553 echo "$ac_t""no" 1>&6
11554 fi
11555 done
11556
11557 for ac_hdr in wcstr.h
11558 do
11559 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11560 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11561 echo "configure:11562: checking for $ac_hdr" >&5
11562 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11563 echo $ac_n "(cached) $ac_c" 1>&6
11564 else
11565 cat > conftest.$ac_ext <<EOF
11566 #line 11567 "configure"
11567 #include "confdefs.h"
11568 #include <$ac_hdr>
11569 EOF
11570 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11571 { (eval echo configure:11572: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11572 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11573 if test -z "$ac_err"; then
11574 rm -rf conftest*
11575 eval "ac_cv_header_$ac_safe=yes"
11576 else
11577 echo "$ac_err" >&5
11578 echo "configure: failed program was:" >&5
11579 cat conftest.$ac_ext >&5
11580 rm -rf conftest*
11581 eval "ac_cv_header_$ac_safe=no"
11582 fi
11583 rm -f conftest*
11584 fi
11585 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11586 echo "$ac_t""yes" 1>&6
11587 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11588 cat >> confdefs.h <<EOF
11589 #define $ac_tr_hdr 1
11590 EOF
11591
11592 else
11593 echo "$ac_t""no" 1>&6
11594 fi
11595 done
11596
11597 for ac_hdr in fnmatch.h
11598 do
11599 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11600 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11601 echo "configure:11602: checking for $ac_hdr" >&5
11602 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11603 echo $ac_n "(cached) $ac_c" 1>&6
11604 else
11605 cat > conftest.$ac_ext <<EOF
11606 #line 11607 "configure"
11607 #include "confdefs.h"
11608 #include <$ac_hdr>
11609 EOF
11610 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11611 { (eval echo configure:11612: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11612 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11613 if test -z "$ac_err"; then
11614 rm -rf conftest*
11615 eval "ac_cv_header_$ac_safe=yes"
11616 else
11617 echo "$ac_err" >&5
11618 echo "configure: failed program was:" >&5
11619 cat conftest.$ac_ext >&5
11620 rm -rf conftest*
11621 eval "ac_cv_header_$ac_safe=no"
11622 fi
11623 rm -f conftest*
11624 fi
11625 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11626 echo "$ac_t""yes" 1>&6
11627 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11628 cat >> confdefs.h <<EOF
11629 #define $ac_tr_hdr 1
11630 EOF
11631
11632 else
11633 echo "$ac_t""no" 1>&6
11634 fi
11635 done
11636
11637 for ac_hdr in iconv.h
11638 do
11639 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11640 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11641 echo "configure:11642: checking for $ac_hdr" >&5
11642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11643 echo $ac_n "(cached) $ac_c" 1>&6
11644 else
11645 cat > conftest.$ac_ext <<EOF
11646 #line 11647 "configure"
11647 #include "confdefs.h"
11648 #include <$ac_hdr>
11649 EOF
11650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11651 { (eval echo configure:11652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11653 if test -z "$ac_err"; then
11654 rm -rf conftest*
11655 eval "ac_cv_header_$ac_safe=yes"
11656 else
11657 echo "$ac_err" >&5
11658 echo "configure: failed program was:" >&5
11659 cat conftest.$ac_ext >&5
11660 rm -rf conftest*
11661 eval "ac_cv_header_$ac_safe=no"
11662 fi
11663 rm -f conftest*
11664 fi
11665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11666 echo "$ac_t""yes" 1>&6
11667 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11668 cat >> confdefs.h <<EOF
11669 #define $ac_tr_hdr 1
11670 EOF
11671
11672 else
11673 echo "$ac_t""no" 1>&6
11674 fi
11675 done
11676
11677 for ac_hdr in langinfo.h
11678 do
11679 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11680 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11681 echo "configure:11682: checking for $ac_hdr" >&5
11682 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11683 echo $ac_n "(cached) $ac_c" 1>&6
11684 else
11685 cat > conftest.$ac_ext <<EOF
11686 #line 11687 "configure"
11687 #include "confdefs.h"
11688 #include <$ac_hdr>
11689 EOF
11690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11691 { (eval echo configure:11692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11693 if test -z "$ac_err"; then
11694 rm -rf conftest*
11695 eval "ac_cv_header_$ac_safe=yes"
11696 else
11697 echo "$ac_err" >&5
11698 echo "configure: failed program was:" >&5
11699 cat conftest.$ac_ext >&5
11700 rm -rf conftest*
11701 eval "ac_cv_header_$ac_safe=no"
11702 fi
11703 rm -f conftest*
11704 fi
11705 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11706 echo "$ac_t""yes" 1>&6
11707 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11708 cat >> confdefs.h <<EOF
11709 #define $ac_tr_hdr 1
11710 EOF
11711
11712 else
11713 echo "$ac_t""no" 1>&6
11714 fi
11715 done
11716
11717
11718 if test "$wxUSE_GUI" = "yes"; then
11719 if test "$wxUSE_UNIX" = "yes"; then
11720 for ac_hdr in X11/XKBlib.h
11721 do
11722 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11723 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11724 echo "configure:11725: checking for $ac_hdr" >&5
11725 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11726 echo $ac_n "(cached) $ac_c" 1>&6
11727 else
11728 cat > conftest.$ac_ext <<EOF
11729 #line 11730 "configure"
11730 #include "confdefs.h"
11731 #include <$ac_hdr>
11732 EOF
11733 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11734 { (eval echo configure:11735: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11735 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11736 if test -z "$ac_err"; then
11737 rm -rf conftest*
11738 eval "ac_cv_header_$ac_safe=yes"
11739 else
11740 echo "$ac_err" >&5
11741 echo "configure: failed program was:" >&5
11742 cat conftest.$ac_ext >&5
11743 rm -rf conftest*
11744 eval "ac_cv_header_$ac_safe=no"
11745 fi
11746 rm -f conftest*
11747 fi
11748 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11749 echo "$ac_t""yes" 1>&6
11750 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11751 cat >> confdefs.h <<EOF
11752 #define $ac_tr_hdr 1
11753 EOF
11754
11755 else
11756 echo "$ac_t""no" 1>&6
11757 fi
11758 done
11759
11760 fi
11761 fi
11762
11763
11764 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11765 echo "configure:11766: checking for ANSI C header files" >&5
11766 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11767 echo $ac_n "(cached) $ac_c" 1>&6
11768 else
11769 cat > conftest.$ac_ext <<EOF
11770 #line 11771 "configure"
11771 #include "confdefs.h"
11772 #include <stdlib.h>
11773 #include <stdarg.h>
11774 #include <string.h>
11775 #include <float.h>
11776 EOF
11777 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11778 { (eval echo configure:11779: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11779 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11780 if test -z "$ac_err"; then
11781 rm -rf conftest*
11782 ac_cv_header_stdc=yes
11783 else
11784 echo "$ac_err" >&5
11785 echo "configure: failed program was:" >&5
11786 cat conftest.$ac_ext >&5
11787 rm -rf conftest*
11788 ac_cv_header_stdc=no
11789 fi
11790 rm -f conftest*
11791
11792 if test $ac_cv_header_stdc = yes; then
11793 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11794 cat > conftest.$ac_ext <<EOF
11795 #line 11796 "configure"
11796 #include "confdefs.h"
11797 #include <string.h>
11798 EOF
11799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11800 egrep "memchr" >/dev/null 2>&1; then
11801 :
11802 else
11803 rm -rf conftest*
11804 ac_cv_header_stdc=no
11805 fi
11806 rm -f conftest*
11807
11808 fi
11809
11810 if test $ac_cv_header_stdc = yes; then
11811 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11812 cat > conftest.$ac_ext <<EOF
11813 #line 11814 "configure"
11814 #include "confdefs.h"
11815 #include <stdlib.h>
11816 EOF
11817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11818 egrep "free" >/dev/null 2>&1; then
11819 :
11820 else
11821 rm -rf conftest*
11822 ac_cv_header_stdc=no
11823 fi
11824 rm -f conftest*
11825
11826 fi
11827
11828 if test $ac_cv_header_stdc = yes; then
11829 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11830 if test "$cross_compiling" = yes; then
11831 :
11832 else
11833 cat > conftest.$ac_ext <<EOF
11834 #line 11835 "configure"
11835 #include "confdefs.h"
11836 #include <ctype.h>
11837 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11838 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11839 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11840 int main () { int i; for (i = 0; i < 256; i++)
11841 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11842 exit (0); }
11843
11844 EOF
11845 if { (eval echo configure:11846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11846 then
11847 :
11848 else
11849 echo "configure: failed program was:" >&5
11850 cat conftest.$ac_ext >&5
11851 rm -fr conftest*
11852 ac_cv_header_stdc=no
11853 fi
11854 rm -fr conftest*
11855 fi
11856
11857 fi
11858 fi
11859
11860 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11861 if test $ac_cv_header_stdc = yes; then
11862 cat >> confdefs.h <<\EOF
11863 #define STDC_HEADERS 1
11864 EOF
11865
11866 fi
11867
11868 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11869 echo "configure:11870: checking for mode_t" >&5
11870 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11871 echo $ac_n "(cached) $ac_c" 1>&6
11872 else
11873 cat > conftest.$ac_ext <<EOF
11874 #line 11875 "configure"
11875 #include "confdefs.h"
11876 #include <sys/types.h>
11877 #if STDC_HEADERS
11878 #include <stdlib.h>
11879 #include <stddef.h>
11880 #endif
11881 EOF
11882 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11883 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11884 rm -rf conftest*
11885 ac_cv_type_mode_t=yes
11886 else
11887 rm -rf conftest*
11888 ac_cv_type_mode_t=no
11889 fi
11890 rm -f conftest*
11891
11892 fi
11893 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11894 if test $ac_cv_type_mode_t = no; then
11895 cat >> confdefs.h <<\EOF
11896 #define mode_t int
11897 EOF
11898
11899 fi
11900
11901 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11902 echo "configure:11903: checking for off_t" >&5
11903 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11904 echo $ac_n "(cached) $ac_c" 1>&6
11905 else
11906 cat > conftest.$ac_ext <<EOF
11907 #line 11908 "configure"
11908 #include "confdefs.h"
11909 #include <sys/types.h>
11910 #if STDC_HEADERS
11911 #include <stdlib.h>
11912 #include <stddef.h>
11913 #endif
11914 EOF
11915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11916 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11917 rm -rf conftest*
11918 ac_cv_type_off_t=yes
11919 else
11920 rm -rf conftest*
11921 ac_cv_type_off_t=no
11922 fi
11923 rm -f conftest*
11924
11925 fi
11926 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11927 if test $ac_cv_type_off_t = no; then
11928 cat >> confdefs.h <<\EOF
11929 #define off_t long
11930 EOF
11931
11932 fi
11933
11934 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11935 echo "configure:11936: checking for pid_t" >&5
11936 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11937 echo $ac_n "(cached) $ac_c" 1>&6
11938 else
11939 cat > conftest.$ac_ext <<EOF
11940 #line 11941 "configure"
11941 #include "confdefs.h"
11942 #include <sys/types.h>
11943 #if STDC_HEADERS
11944 #include <stdlib.h>
11945 #include <stddef.h>
11946 #endif
11947 EOF
11948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11949 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11950 rm -rf conftest*
11951 ac_cv_type_pid_t=yes
11952 else
11953 rm -rf conftest*
11954 ac_cv_type_pid_t=no
11955 fi
11956 rm -f conftest*
11957
11958 fi
11959 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11960 if test $ac_cv_type_pid_t = no; then
11961 cat >> confdefs.h <<\EOF
11962 #define pid_t int
11963 EOF
11964
11965 fi
11966
11967 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11968 echo "configure:11969: checking for size_t" >&5
11969 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11970 echo $ac_n "(cached) $ac_c" 1>&6
11971 else
11972 cat > conftest.$ac_ext <<EOF
11973 #line 11974 "configure"
11974 #include "confdefs.h"
11975 #include <sys/types.h>
11976 #if STDC_HEADERS
11977 #include <stdlib.h>
11978 #include <stddef.h>
11979 #endif
11980 EOF
11981 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11982 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11983 rm -rf conftest*
11984 ac_cv_type_size_t=yes
11985 else
11986 rm -rf conftest*
11987 ac_cv_type_size_t=no
11988 fi
11989 rm -f conftest*
11990
11991 fi
11992 echo "$ac_t""$ac_cv_type_size_t" 1>&6
11993 if test $ac_cv_type_size_t = no; then
11994 cat >> confdefs.h <<\EOF
11995 #define size_t unsigned
11996 EOF
11997
11998 fi
11999
12000 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12001 echo "configure:12002: checking for uid_t in sys/types.h" >&5
12002 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12003 echo $ac_n "(cached) $ac_c" 1>&6
12004 else
12005 cat > conftest.$ac_ext <<EOF
12006 #line 12007 "configure"
12007 #include "confdefs.h"
12008 #include <sys/types.h>
12009 EOF
12010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12011 egrep "uid_t" >/dev/null 2>&1; then
12012 rm -rf conftest*
12013 ac_cv_type_uid_t=yes
12014 else
12015 rm -rf conftest*
12016 ac_cv_type_uid_t=no
12017 fi
12018 rm -f conftest*
12019
12020 fi
12021
12022 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12023 if test $ac_cv_type_uid_t = no; then
12024 cat >> confdefs.h <<\EOF
12025 #define uid_t int
12026 EOF
12027
12028 cat >> confdefs.h <<\EOF
12029 #define gid_t int
12030 EOF
12031
12032 fi
12033
12034
12035 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
12036 echo "configure:12037: checking for wchar_t" >&5
12037 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12038 echo $ac_n "(cached) $ac_c" 1>&6
12039 else
12040
12041 cat > conftest.$ac_ext <<EOF
12042 #line 12043 "configure"
12043 #include "confdefs.h"
12044 #include <wchar.h>
12045 int main() {
12046
12047 wchar_t wc, *ws;
12048 wc = L'a';
12049 ws = L"Hello, world!";
12050
12051 ; return 0; }
12052 EOF
12053 if { (eval echo configure:12054: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12054 rm -rf conftest*
12055 wx_cv_type_wchar_t=yes
12056 else
12057 echo "configure: failed program was:" >&5
12058 cat conftest.$ac_ext >&5
12059 rm -rf conftest*
12060 cat > conftest.$ac_ext <<EOF
12061 #line 12062 "configure"
12062 #include "confdefs.h"
12063 #include <stdlib.h>
12064 int main() {
12065
12066 wchar_t wc, *ws;
12067 wc = L'a';
12068 ws = L"Hello, world!";
12069
12070 ; return 0; }
12071 EOF
12072 if { (eval echo configure:12073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12073 rm -rf conftest*
12074 wx_cv_type_wchar_t=yes
12075 else
12076 echo "configure: failed program was:" >&5
12077 cat conftest.$ac_ext >&5
12078 rm -rf conftest*
12079 wx_cv_type_wchar_t=no
12080 fi
12081 rm -f conftest*
12082
12083 fi
12084 rm -f conftest*
12085
12086 fi
12087
12088 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
12089
12090 if test "$wx_cv_type_wchar_t" = "yes"; then
12091 cat >> confdefs.h <<\EOF
12092 #define wxUSE_WCHAR_T 1
12093 EOF
12094
12095 fi
12096
12097
12098 ac_ext=C
12099 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12100 ac_cpp='$CXXCPP $CPPFLAGS'
12101 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12102 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12103 cross_compiling=$ac_cv_prog_cxx_cross
12104
12105 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
12106 echo "configure:12107: checking if size_t is unsigned int" >&5
12107 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12108 echo $ac_n "(cached) $ac_c" 1>&6
12109 else
12110 cat > conftest.$ac_ext <<EOF
12111 #line 12112 "configure"
12112 #include "confdefs.h"
12113 #include <stddef.h>
12114 int main() {
12115
12116 return 0; }
12117
12118 struct Foo { void foo(size_t); void foo(unsigned int); };
12119
12120 int bar() {
12121
12122 ; return 0; }
12123 EOF
12124 if { (eval echo configure:12125: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12125 rm -rf conftest*
12126 wx_cv_size_t_is_uint=no
12127 else
12128 echo "configure: failed program was:" >&5
12129 cat conftest.$ac_ext >&5
12130 rm -rf conftest*
12131 wx_cv_size_t_is_uint=yes
12132
12133 fi
12134 rm -f conftest*
12135
12136 fi
12137
12138 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12139
12140 if test "$wx_cv_size_t_is_uint" = "yes"; then
12141 cat >> confdefs.h <<\EOF
12142 #define wxSIZE_T_IS_UINT 1
12143 EOF
12144
12145 else
12146 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
12147 echo "configure:12148: checking if size_t is unsigned long" >&5
12148 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12149 echo $ac_n "(cached) $ac_c" 1>&6
12150 else
12151 cat > conftest.$ac_ext <<EOF
12152 #line 12153 "configure"
12153 #include "confdefs.h"
12154 #include <stddef.h>
12155 int main() {
12156
12157 return 0; }
12158
12159 struct Foo { void foo(size_t); void foo(unsigned long); };
12160
12161 int bar() {
12162
12163 ; return 0; }
12164 EOF
12165 if { (eval echo configure:12166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12166 rm -rf conftest*
12167 wx_cv_size_t_is_ulong=no
12168 else
12169 echo "configure: failed program was:" >&5
12170 cat conftest.$ac_ext >&5
12171 rm -rf conftest*
12172 wx_cv_size_t_is_ulong=yes
12173
12174 fi
12175 rm -f conftest*
12176
12177 fi
12178
12179 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12180
12181 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12182 cat >> confdefs.h <<\EOF
12183 #define wxSIZE_T_IS_ULONG 1
12184 EOF
12185
12186 fi
12187 fi
12188
12189 ac_ext=c
12190 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12191 ac_cpp='$CPP $CPPFLAGS'
12192 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12193 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12194 cross_compiling=$ac_cv_prog_cc_cross
12195
12196
12197
12198 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
12199 echo "configure:12200: checking for pw_gecos in struct passwd" >&5
12200 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12201 echo $ac_n "(cached) $ac_c" 1>&6
12202 else
12203
12204 cat > conftest.$ac_ext <<EOF
12205 #line 12206 "configure"
12206 #include "confdefs.h"
12207 #include <pwd.h>
12208 int main() {
12209
12210 char *p;
12211 struct passwd *pw;
12212 p = pw->pw_gecos;
12213
12214 ; return 0; }
12215 EOF
12216 if { (eval echo configure:12217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12217 rm -rf conftest*
12218
12219 wx_cv_struct_pw_gecos=yes
12220
12221 else
12222 echo "configure: failed program was:" >&5
12223 cat conftest.$ac_ext >&5
12224 rm -rf conftest*
12225
12226 wx_cv_struct_pw_gecos=no
12227
12228
12229 fi
12230 rm -f conftest*
12231
12232
12233 fi
12234
12235 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
12236
12237 if test "$wx_cv_struct_pw_gecos" = "yes"; then
12238 cat >> confdefs.h <<\EOF
12239 #define HAVE_PW_GECOS 1
12240 EOF
12241
12242 fi
12243
12244
12245 echo $ac_n "checking for working const""... $ac_c" 1>&6
12246 echo "configure:12247: checking for working const" >&5
12247 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12248 echo $ac_n "(cached) $ac_c" 1>&6
12249 else
12250 cat > conftest.$ac_ext <<EOF
12251 #line 12252 "configure"
12252 #include "confdefs.h"
12253
12254 int main() {
12255
12256 /* Ultrix mips cc rejects this. */
12257 typedef int charset[2]; const charset x;
12258 /* SunOS 4.1.1 cc rejects this. */
12259 char const *const *ccp;
12260 char **p;
12261 /* NEC SVR4.0.2 mips cc rejects this. */
12262 struct point {int x, y;};
12263 static struct point const zero = {0,0};
12264 /* AIX XL C 1.02.0.0 rejects this.
12265 It does not let you subtract one const X* pointer from another in an arm
12266 of an if-expression whose if-part is not a constant expression */
12267 const char *g = "string";
12268 ccp = &g + (g ? g-g : 0);
12269 /* HPUX 7.0 cc rejects these. */
12270 ++ccp;
12271 p = (char**) ccp;
12272 ccp = (char const *const *) p;
12273 { /* SCO 3.2v4 cc rejects this. */
12274 char *t;
12275 char const *s = 0 ? (char *) 0 : (char const *) 0;
12276
12277 *t++ = 0;
12278 }
12279 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12280 int x[] = {25, 17};
12281 const int *foo = &x[0];
12282 ++foo;
12283 }
12284 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12285 typedef const int *iptr;
12286 iptr p = 0;
12287 ++p;
12288 }
12289 { /* AIX XL C 1.02.0.0 rejects this saying
12290 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12291 struct s { int j; const int *ap[3]; };
12292 struct s *b; b->j = 5;
12293 }
12294 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12295 const int foo = 10;
12296 }
12297
12298 ; return 0; }
12299 EOF
12300 if { (eval echo configure:12301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12301 rm -rf conftest*
12302 ac_cv_c_const=yes
12303 else
12304 echo "configure: failed program was:" >&5
12305 cat conftest.$ac_ext >&5
12306 rm -rf conftest*
12307 ac_cv_c_const=no
12308 fi
12309 rm -f conftest*
12310 fi
12311
12312 echo "$ac_t""$ac_cv_c_const" 1>&6
12313 if test $ac_cv_c_const = no; then
12314 cat >> confdefs.h <<\EOF
12315 #define const
12316 EOF
12317
12318 fi
12319
12320 echo $ac_n "checking for inline""... $ac_c" 1>&6
12321 echo "configure:12322: checking for inline" >&5
12322 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12323 echo $ac_n "(cached) $ac_c" 1>&6
12324 else
12325 ac_cv_c_inline=no
12326 for ac_kw in inline __inline__ __inline; do
12327 cat > conftest.$ac_ext <<EOF
12328 #line 12329 "configure"
12329 #include "confdefs.h"
12330
12331 int main() {
12332 } $ac_kw foo() {
12333 ; return 0; }
12334 EOF
12335 if { (eval echo configure:12336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12336 rm -rf conftest*
12337 ac_cv_c_inline=$ac_kw; break
12338 else
12339 echo "configure: failed program was:" >&5
12340 cat conftest.$ac_ext >&5
12341 fi
12342 rm -f conftest*
12343 done
12344
12345 fi
12346
12347 echo "$ac_t""$ac_cv_c_inline" 1>&6
12348 case "$ac_cv_c_inline" in
12349 inline | yes) ;;
12350 no) cat >> confdefs.h <<\EOF
12351 #define inline
12352 EOF
12353 ;;
12354 *) cat >> confdefs.h <<EOF
12355 #define inline $ac_cv_c_inline
12356 EOF
12357 ;;
12358 esac
12359
12360
12361 echo $ac_n "checking size of char""... $ac_c" 1>&6
12362 echo "configure:12363: checking size of char" >&5
12363 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12364 echo $ac_n "(cached) $ac_c" 1>&6
12365 else
12366 if test "$cross_compiling" = yes; then
12367 ac_cv_sizeof_char=1
12368 else
12369 cat > conftest.$ac_ext <<EOF
12370 #line 12371 "configure"
12371 #include "confdefs.h"
12372 #include <stdio.h>
12373 #include <sys/types.h>
12374 main()
12375 {
12376 FILE *f=fopen("conftestval", "w");
12377 if (!f) exit(1);
12378 fprintf(f, "%d\n", sizeof(char));
12379 exit(0);
12380 }
12381 EOF
12382 if { (eval echo configure:12383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12383 then
12384 ac_cv_sizeof_char=`cat conftestval`
12385 else
12386 echo "configure: failed program was:" >&5
12387 cat conftest.$ac_ext >&5
12388 rm -fr conftest*
12389 ac_cv_sizeof_char=0
12390 fi
12391 rm -fr conftest*
12392 fi
12393
12394 fi
12395 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12396 cat >> confdefs.h <<EOF
12397 #define SIZEOF_CHAR $ac_cv_sizeof_char
12398 EOF
12399
12400
12401 echo $ac_n "checking size of short""... $ac_c" 1>&6
12402 echo "configure:12403: checking size of short" >&5
12403 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12404 echo $ac_n "(cached) $ac_c" 1>&6
12405 else
12406 if test "$cross_compiling" = yes; then
12407 ac_cv_sizeof_short=2
12408 else
12409 cat > conftest.$ac_ext <<EOF
12410 #line 12411 "configure"
12411 #include "confdefs.h"
12412 #include <stdio.h>
12413 #include <sys/types.h>
12414 main()
12415 {
12416 FILE *f=fopen("conftestval", "w");
12417 if (!f) exit(1);
12418 fprintf(f, "%d\n", sizeof(short));
12419 exit(0);
12420 }
12421 EOF
12422 if { (eval echo configure:12423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12423 then
12424 ac_cv_sizeof_short=`cat conftestval`
12425 else
12426 echo "configure: failed program was:" >&5
12427 cat conftest.$ac_ext >&5
12428 rm -fr conftest*
12429 ac_cv_sizeof_short=0
12430 fi
12431 rm -fr conftest*
12432 fi
12433
12434 fi
12435 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12436 cat >> confdefs.h <<EOF
12437 #define SIZEOF_SHORT $ac_cv_sizeof_short
12438 EOF
12439
12440
12441 echo $ac_n "checking size of int *""... $ac_c" 1>&6
12442 echo "configure:12443: checking size of int *" >&5
12443 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12444 echo $ac_n "(cached) $ac_c" 1>&6
12445 else
12446 if test "$cross_compiling" = yes; then
12447 ac_cv_sizeof_int_p=4
12448 else
12449 cat > conftest.$ac_ext <<EOF
12450 #line 12451 "configure"
12451 #include "confdefs.h"
12452 #include <stdio.h>
12453 #include <sys/types.h>
12454 main()
12455 {
12456 FILE *f=fopen("conftestval", "w");
12457 if (!f) exit(1);
12458 fprintf(f, "%d\n", sizeof(int *));
12459 exit(0);
12460 }
12461 EOF
12462 if { (eval echo configure:12463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12463 then
12464 ac_cv_sizeof_int_p=`cat conftestval`
12465 else
12466 echo "configure: failed program was:" >&5
12467 cat conftest.$ac_ext >&5
12468 rm -fr conftest*
12469 ac_cv_sizeof_int_p=0
12470 fi
12471 rm -fr conftest*
12472 fi
12473
12474 fi
12475 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12476 cat >> confdefs.h <<EOF
12477 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
12478 EOF
12479
12480
12481 echo $ac_n "checking size of int""... $ac_c" 1>&6
12482 echo "configure:12483: checking size of int" >&5
12483 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12484 echo $ac_n "(cached) $ac_c" 1>&6
12485 else
12486 if test "$cross_compiling" = yes; then
12487 ac_cv_sizeof_int=4
12488 else
12489 cat > conftest.$ac_ext <<EOF
12490 #line 12491 "configure"
12491 #include "confdefs.h"
12492 #include <stdio.h>
12493 #include <sys/types.h>
12494 main()
12495 {
12496 FILE *f=fopen("conftestval", "w");
12497 if (!f) exit(1);
12498 fprintf(f, "%d\n", sizeof(int));
12499 exit(0);
12500 }
12501 EOF
12502 if { (eval echo configure:12503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12503 then
12504 ac_cv_sizeof_int=`cat conftestval`
12505 else
12506 echo "configure: failed program was:" >&5
12507 cat conftest.$ac_ext >&5
12508 rm -fr conftest*
12509 ac_cv_sizeof_int=0
12510 fi
12511 rm -fr conftest*
12512 fi
12513
12514 fi
12515 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12516 cat >> confdefs.h <<EOF
12517 #define SIZEOF_INT $ac_cv_sizeof_int
12518 EOF
12519
12520
12521 echo $ac_n "checking size of long""... $ac_c" 1>&6
12522 echo "configure:12523: checking size of long" >&5
12523 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12524 echo $ac_n "(cached) $ac_c" 1>&6
12525 else
12526 if test "$cross_compiling" = yes; then
12527 ac_cv_sizeof_long=4
12528 else
12529 cat > conftest.$ac_ext <<EOF
12530 #line 12531 "configure"
12531 #include "confdefs.h"
12532 #include <stdio.h>
12533 #include <sys/types.h>
12534 main()
12535 {
12536 FILE *f=fopen("conftestval", "w");
12537 if (!f) exit(1);
12538 fprintf(f, "%d\n", sizeof(long));
12539 exit(0);
12540 }
12541 EOF
12542 if { (eval echo configure:12543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12543 then
12544 ac_cv_sizeof_long=`cat conftestval`
12545 else
12546 echo "configure: failed program was:" >&5
12547 cat conftest.$ac_ext >&5
12548 rm -fr conftest*
12549 ac_cv_sizeof_long=0
12550 fi
12551 rm -fr conftest*
12552 fi
12553
12554 fi
12555 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12556 cat >> confdefs.h <<EOF
12557 #define SIZEOF_LONG $ac_cv_sizeof_long
12558 EOF
12559
12560
12561 echo $ac_n "checking size of long long""... $ac_c" 1>&6
12562 echo "configure:12563: checking size of long long" >&5
12563 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12564 echo $ac_n "(cached) $ac_c" 1>&6
12565 else
12566 if test "$cross_compiling" = yes; then
12567 ac_cv_sizeof_long_long=0
12568 else
12569 cat > conftest.$ac_ext <<EOF
12570 #line 12571 "configure"
12571 #include "confdefs.h"
12572 #include <stdio.h>
12573 #include <sys/types.h>
12574 main()
12575 {
12576 FILE *f=fopen("conftestval", "w");
12577 if (!f) exit(1);
12578 fprintf(f, "%d\n", sizeof(long long));
12579 exit(0);
12580 }
12581 EOF
12582 if { (eval echo configure:12583: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12583 then
12584 ac_cv_sizeof_long_long=`cat conftestval`
12585 else
12586 echo "configure: failed program was:" >&5
12587 cat conftest.$ac_ext >&5
12588 rm -fr conftest*
12589 ac_cv_sizeof_long_long=0
12590 fi
12591 rm -fr conftest*
12592 fi
12593
12594 fi
12595 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12596 cat >> confdefs.h <<EOF
12597 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12598 EOF
12599
12600
12601
12602 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
12603 echo "configure:12604: checking size of wchar_t" >&5
12604 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12605 echo $ac_n "(cached) $ac_c" 1>&6
12606 else
12607
12608 if test "$cross_compiling" = yes; then
12609 wx_cv_sizeof_wchar_t=4
12610
12611 else
12612 cat > conftest.$ac_ext <<EOF
12613 #line 12614 "configure"
12614 #include "confdefs.h"
12615
12616 #ifdef HAVE_WCHAR_H
12617 # include <wchar.h>
12618 #endif
12619 #ifdef HAVE_STDLIB_H
12620 # include <stdlib.h>
12621 #endif
12622 #include <stdio.h>
12623 int main()
12624 {
12625 FILE *f=fopen("conftestval", "w");
12626 if (!f) exit(1);
12627 fprintf(f, "%i", sizeof(wchar_t));
12628 exit(0);
12629 }
12630
12631 EOF
12632 if { (eval echo configure:12633: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12633 then
12634 wx_cv_sizeof_wchar_t=`cat conftestval`
12635 else
12636 echo "configure: failed program was:" >&5
12637 cat conftest.$ac_ext >&5
12638 rm -fr conftest*
12639 wx_cv_sizeof_wchar_t=0
12640 fi
12641 rm -fr conftest*
12642 fi
12643
12644
12645 fi
12646
12647 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12648
12649 cat >> confdefs.h <<EOF
12650 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
12651 EOF
12652
12653
12654 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
12655 echo "configure:12656: checking whether byte ordering is bigendian" >&5
12656 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12657 echo $ac_n "(cached) $ac_c" 1>&6
12658 else
12659 ac_cv_c_bigendian=unknown
12660 # See if sys/param.h defines the BYTE_ORDER macro.
12661 cat > conftest.$ac_ext <<EOF
12662 #line 12663 "configure"
12663 #include "confdefs.h"
12664 #include <sys/types.h>
12665 #include <sys/param.h>
12666 int main() {
12667
12668 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12669 bogus endian macros
12670 #endif
12671 ; return 0; }
12672 EOF
12673 if { (eval echo configure:12674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12674 rm -rf conftest*
12675 # It does; now see whether it defined to BIG_ENDIAN or not.
12676 cat > conftest.$ac_ext <<EOF
12677 #line 12678 "configure"
12678 #include "confdefs.h"
12679 #include <sys/types.h>
12680 #include <sys/param.h>
12681 int main() {
12682
12683 #if BYTE_ORDER != BIG_ENDIAN
12684 not big endian
12685 #endif
12686 ; return 0; }
12687 EOF
12688 if { (eval echo configure:12689: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12689 rm -rf conftest*
12690 ac_cv_c_bigendian=yes
12691 else
12692 echo "configure: failed program was:" >&5
12693 cat conftest.$ac_ext >&5
12694 rm -rf conftest*
12695 ac_cv_c_bigendian=no
12696 fi
12697 rm -f conftest*
12698 else
12699 echo "configure: failed program was:" >&5
12700 cat conftest.$ac_ext >&5
12701 fi
12702 rm -f conftest*
12703 if test $ac_cv_c_bigendian = unknown; then
12704 if test "$cross_compiling" = yes; then
12705 ac_cv_c_bigendian=unknown
12706 else
12707 cat > conftest.$ac_ext <<EOF
12708 #line 12709 "configure"
12709 #include "confdefs.h"
12710 main () {
12711 /* Are we little or big endian? From Harbison&Steele. */
12712 union
12713 {
12714 long l;
12715 char c[sizeof (long)];
12716 } u;
12717 u.l = 1;
12718 exit (u.c[sizeof (long) - 1] == 1);
12719 }
12720 EOF
12721 if { (eval echo configure:12722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12722 then
12723 ac_cv_c_bigendian=no
12724 else
12725 echo "configure: failed program was:" >&5
12726 cat conftest.$ac_ext >&5
12727 rm -fr conftest*
12728 ac_cv_c_bigendian=yes
12729 fi
12730 rm -fr conftest*
12731 fi
12732
12733 fi
12734 fi
12735
12736 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
12737 if test $ac_cv_c_bigendian = unknown; then
12738 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
12739 fi
12740 if test $ac_cv_c_bigendian = yes; then
12741 cat >> confdefs.h <<\EOF
12742 #define WORDS_BIGENDIAN 1
12743 EOF
12744
12745 fi
12746
12747
12748 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
12749 echo "configure:12750: checking how to run the C++ preprocessor" >&5
12750 if test -z "$CXXCPP"; then
12751 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
12752 echo $ac_n "(cached) $ac_c" 1>&6
12753 else
12754 ac_ext=C
12755 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12756 ac_cpp='$CXXCPP $CPPFLAGS'
12757 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12758 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12759 cross_compiling=$ac_cv_prog_cxx_cross
12760 CXXCPP="${CXX-g++} -E"
12761 cat > conftest.$ac_ext <<EOF
12762 #line 12763 "configure"
12763 #include "confdefs.h"
12764 #include <stdlib.h>
12765 EOF
12766 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12767 { (eval echo configure:12768: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12768 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12769 if test -z "$ac_err"; then
12770 :
12771 else
12772 echo "$ac_err" >&5
12773 echo "configure: failed program was:" >&5
12774 cat conftest.$ac_ext >&5
12775 rm -rf conftest*
12776 CXXCPP=/lib/cpp
12777 fi
12778 rm -f conftest*
12779 ac_cv_prog_CXXCPP="$CXXCPP"
12780 ac_ext=C
12781 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12782 ac_cpp='$CXXCPP $CPPFLAGS'
12783 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12784 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12785 cross_compiling=$ac_cv_prog_cxx_cross
12786 fi
12787 fi
12788 CXXCPP="$ac_cv_prog_CXXCPP"
12789 echo "$ac_t""$CXXCPP" 1>&6
12790
12791
12792 if test "$cross_compiling" = "yes"; then
12793 cat >> confdefs.h <<\EOF
12794 #define wxUSE_IOSTREAMH 1
12795 EOF
12796
12797 else
12798
12799 ac_ext=C
12800 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12801 ac_cpp='$CXXCPP $CPPFLAGS'
12802 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12803 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12804 cross_compiling=$ac_cv_prog_cxx_cross
12805
12806
12807 for ac_hdr in iostream
12808 do
12809 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12810 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12811 echo "configure:12812: checking for $ac_hdr" >&5
12812 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12813 echo $ac_n "(cached) $ac_c" 1>&6
12814 else
12815 cat > conftest.$ac_ext <<EOF
12816 #line 12817 "configure"
12817 #include "confdefs.h"
12818 #include <$ac_hdr>
12819 EOF
12820 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12821 { (eval echo configure:12822: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12822 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12823 if test -z "$ac_err"; then
12824 rm -rf conftest*
12825 eval "ac_cv_header_$ac_safe=yes"
12826 else
12827 echo "$ac_err" >&5
12828 echo "configure: failed program was:" >&5
12829 cat conftest.$ac_ext >&5
12830 rm -rf conftest*
12831 eval "ac_cv_header_$ac_safe=no"
12832 fi
12833 rm -f conftest*
12834 fi
12835 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12836 echo "$ac_t""yes" 1>&6
12837 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12838 cat >> confdefs.h <<EOF
12839 #define $ac_tr_hdr 1
12840 EOF
12841
12842 else
12843 echo "$ac_t""no" 1>&6
12844 fi
12845 done
12846
12847
12848 if test "$ac_cv_header_iostream" = "yes" ; then
12849 :
12850 else
12851 cat >> confdefs.h <<\EOF
12852 #define wxUSE_IOSTREAMH 1
12853 EOF
12854
12855 fi
12856
12857 ac_ext=c
12858 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12859 ac_cpp='$CPP $CPPFLAGS'
12860 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12861 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12862 cross_compiling=$ac_cv_prog_cc_cross
12863
12864 fi
12865
12866
12867
12868 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
12869 echo "configure:12870: checking if C++ compiler supports bool" >&5
12870 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12871 echo $ac_n "(cached) $ac_c" 1>&6
12872 else
12873
12874
12875 ac_ext=C
12876 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12877 ac_cpp='$CXXCPP $CPPFLAGS'
12878 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12879 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12880 cross_compiling=$ac_cv_prog_cxx_cross
12881
12882
12883 cat > conftest.$ac_ext <<EOF
12884 #line 12885 "configure"
12885 #include "confdefs.h"
12886
12887
12888 int main() {
12889
12890 bool b = true;
12891
12892 return 0;
12893
12894 ; return 0; }
12895 EOF
12896 if { (eval echo configure:12897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12897 rm -rf conftest*
12898
12899 wx_cv_cpp_bool=yes
12900
12901 else
12902 echo "configure: failed program was:" >&5
12903 cat conftest.$ac_ext >&5
12904 rm -rf conftest*
12905
12906 wx_cv_cpp_bool=no
12907
12908
12909 fi
12910 rm -f conftest*
12911
12912 ac_ext=c
12913 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12914 ac_cpp='$CPP $CPPFLAGS'
12915 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12916 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12917 cross_compiling=$ac_cv_prog_cc_cross
12918
12919
12920 fi
12921
12922 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
12923
12924 if test "$wx_cv_cpp_bool" = "yes"; then
12925 cat >> confdefs.h <<\EOF
12926 #define HAVE_BOOL 1
12927 EOF
12928
12929 fi
12930
12931
12932
12933 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12934 echo "configure:12935: checking for wcslen in -lc" >&5
12935 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12936 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12937 echo $ac_n "(cached) $ac_c" 1>&6
12938 else
12939 ac_save_LIBS="$LIBS"
12940 LIBS="-lc $LIBS"
12941 cat > conftest.$ac_ext <<EOF
12942 #line 12943 "configure"
12943 #include "confdefs.h"
12944 /* Override any gcc2 internal prototype to avoid an error. */
12945 /* We use char because int might match the return type of a gcc2
12946 builtin and then its argument prototype would still apply. */
12947 char wcslen();
12948
12949 int main() {
12950 wcslen()
12951 ; return 0; }
12952 EOF
12953 if { (eval echo configure:12954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12954 rm -rf conftest*
12955 eval "ac_cv_lib_$ac_lib_var=yes"
12956 else
12957 echo "configure: failed program was:" >&5
12958 cat conftest.$ac_ext >&5
12959 rm -rf conftest*
12960 eval "ac_cv_lib_$ac_lib_var=no"
12961 fi
12962 rm -f conftest*
12963 LIBS="$ac_save_LIBS"
12964
12965 fi
12966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12967 echo "$ac_t""yes" 1>&6
12968
12969 cat >> confdefs.h <<\EOF
12970 #define HAVE_WCSLEN 1
12971 EOF
12972
12973 WCHAR_LINK=""
12974
12975 else
12976 echo "$ac_t""no" 1>&6
12977
12978 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12979 echo "configure:12980: checking for wcslen in -lw" >&5
12980 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12981 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12982 echo $ac_n "(cached) $ac_c" 1>&6
12983 else
12984 ac_save_LIBS="$LIBS"
12985 LIBS="-lw $LIBS"
12986 cat > conftest.$ac_ext <<EOF
12987 #line 12988 "configure"
12988 #include "confdefs.h"
12989 /* Override any gcc2 internal prototype to avoid an error. */
12990 /* We use char because int might match the return type of a gcc2
12991 builtin and then its argument prototype would still apply. */
12992 char wcslen();
12993
12994 int main() {
12995 wcslen()
12996 ; return 0; }
12997 EOF
12998 if { (eval echo configure:12999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12999 rm -rf conftest*
13000 eval "ac_cv_lib_$ac_lib_var=yes"
13001 else
13002 echo "configure: failed program was:" >&5
13003 cat conftest.$ac_ext >&5
13004 rm -rf conftest*
13005 eval "ac_cv_lib_$ac_lib_var=no"
13006 fi
13007 rm -f conftest*
13008 LIBS="$ac_save_LIBS"
13009
13010 fi
13011 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13012 echo "$ac_t""yes" 1>&6
13013
13014 cat >> confdefs.h <<\EOF
13015 #define HAVE_WCSLEN 1
13016 EOF
13017
13018 WCHAR_LINK="-lw"
13019
13020 else
13021 echo "$ac_t""no" 1>&6
13022
13023 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
13024 echo "configure:13025: checking for wcslen in -lmsvcrt" >&5
13025 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13026 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13027 echo $ac_n "(cached) $ac_c" 1>&6
13028 else
13029 ac_save_LIBS="$LIBS"
13030 LIBS="-lmsvcrt $LIBS"
13031 cat > conftest.$ac_ext <<EOF
13032 #line 13033 "configure"
13033 #include "confdefs.h"
13034 /* Override any gcc2 internal prototype to avoid an error. */
13035 /* We use char because int might match the return type of a gcc2
13036 builtin and then its argument prototype would still apply. */
13037 char wcslen();
13038
13039 int main() {
13040 wcslen()
13041 ; return 0; }
13042 EOF
13043 if { (eval echo configure:13044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13044 rm -rf conftest*
13045 eval "ac_cv_lib_$ac_lib_var=yes"
13046 else
13047 echo "configure: failed program was:" >&5
13048 cat conftest.$ac_ext >&5
13049 rm -rf conftest*
13050 eval "ac_cv_lib_$ac_lib_var=no"
13051 fi
13052 rm -f conftest*
13053 LIBS="$ac_save_LIBS"
13054
13055 fi
13056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13057 echo "$ac_t""yes" 1>&6
13058
13059 cat >> confdefs.h <<\EOF
13060 #define HAVE_WCSLEN 1
13061 EOF
13062
13063 WCHAR_LINK=""
13064
13065 else
13066 echo "$ac_t""no" 1>&6
13067 fi
13068
13069
13070 fi
13071
13072
13073 fi
13074
13075
13076 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13077 echo "configure:13078: checking for vprintf" >&5
13078 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
13079 echo $ac_n "(cached) $ac_c" 1>&6
13080 else
13081 cat > conftest.$ac_ext <<EOF
13082 #line 13083 "configure"
13083 #include "confdefs.h"
13084 /* System header to define __stub macros and hopefully few prototypes,
13085 which can conflict with char vprintf(); below. */
13086 #include <assert.h>
13087 /* Override any gcc2 internal prototype to avoid an error. */
13088 /* We use char because int might match the return type of a gcc2
13089 builtin and then its argument prototype would still apply. */
13090 char vprintf();
13091
13092 int main() {
13093
13094 /* The GNU C library defines this for functions which it implements
13095 to always fail with ENOSYS. Some functions are actually named
13096 something starting with __ and the normal name is an alias. */
13097 #if defined (__stub_vprintf) || defined (__stub___vprintf)
13098 choke me
13099 #else
13100 vprintf();
13101 #endif
13102
13103 ; return 0; }
13104 EOF
13105 if { (eval echo configure:13106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13106 rm -rf conftest*
13107 eval "ac_cv_func_vprintf=yes"
13108 else
13109 echo "configure: failed program was:" >&5
13110 cat conftest.$ac_ext >&5
13111 rm -rf conftest*
13112 eval "ac_cv_func_vprintf=no"
13113 fi
13114 rm -f conftest*
13115 fi
13116
13117 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13118 echo "$ac_t""yes" 1>&6
13119 cat >> confdefs.h <<\EOF
13120 #define HAVE_VPRINTF 1
13121 EOF
13122
13123 else
13124 echo "$ac_t""no" 1>&6
13125 fi
13126
13127 if test "$ac_cv_func_vprintf" != yes; then
13128 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
13129 echo "configure:13130: checking for _doprnt" >&5
13130 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
13131 echo $ac_n "(cached) $ac_c" 1>&6
13132 else
13133 cat > conftest.$ac_ext <<EOF
13134 #line 13135 "configure"
13135 #include "confdefs.h"
13136 /* System header to define __stub macros and hopefully few prototypes,
13137 which can conflict with char _doprnt(); below. */
13138 #include <assert.h>
13139 /* Override any gcc2 internal prototype to avoid an error. */
13140 /* We use char because int might match the return type of a gcc2
13141 builtin and then its argument prototype would still apply. */
13142 char _doprnt();
13143
13144 int main() {
13145
13146 /* The GNU C library defines this for functions which it implements
13147 to always fail with ENOSYS. Some functions are actually named
13148 something starting with __ and the normal name is an alias. */
13149 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13150 choke me
13151 #else
13152 _doprnt();
13153 #endif
13154
13155 ; return 0; }
13156 EOF
13157 if { (eval echo configure:13158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13158 rm -rf conftest*
13159 eval "ac_cv_func__doprnt=yes"
13160 else
13161 echo "configure: failed program was:" >&5
13162 cat conftest.$ac_ext >&5
13163 rm -rf conftest*
13164 eval "ac_cv_func__doprnt=no"
13165 fi
13166 rm -f conftest*
13167 fi
13168
13169 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13170 echo "$ac_t""yes" 1>&6
13171 cat >> confdefs.h <<\EOF
13172 #define HAVE_DOPRNT 1
13173 EOF
13174
13175 else
13176 echo "$ac_t""no" 1>&6
13177 fi
13178
13179 fi
13180
13181
13182
13183
13184
13185
13186
13187 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
13188 echo "configure:13189: checking for vsnprintf" >&5
13189 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
13190 echo $ac_n "(cached) $ac_c" 1>&6
13191 else
13192
13193 cat > conftest.$ac_ext <<EOF
13194 #line 13195 "configure"
13195 #include "confdefs.h"
13196
13197 #include <stdio.h>
13198 #include <stdarg.h>
13199
13200 int main() {
13201
13202 int wx_test_vsnprintf(const char *, ...);
13203
13204 wx_test_vsnprintf("%s");
13205 return 0;
13206 }
13207
13208 int wx_test_vsnprintf(const char *fmt, ...)
13209 {
13210 char *s;
13211
13212 va_list argp;
13213 va_start(argp, fmt);
13214 vsnprintf(s, 42, fmt, argp);
13215 va_end(argp);
13216
13217 ; return 0; }
13218 EOF
13219 if { (eval echo configure:13220: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13220 rm -rf conftest*
13221
13222 wx_cv_func_vsnprintf=yes
13223
13224 else
13225 echo "configure: failed program was:" >&5
13226 cat conftest.$ac_ext >&5
13227 rm -rf conftest*
13228
13229 cat > conftest.$ac_ext <<EOF
13230 #line 13231 "configure"
13231 #include "confdefs.h"
13232
13233 #include <stdio.h>
13234 #include <stdarg.h>
13235
13236 int main() {
13237
13238 int wx_test_vsnprintf(const char *, ...);
13239
13240 wx_test_vsnprintf("%s");
13241 return 0;
13242 }
13243
13244 int wx_test_vsnprintf(const char *fmt, ...)
13245 {
13246 char *s;
13247
13248 va_list argp;
13249 va_start(argp, fmt);
13250 _vsnprintf(s, 42, fmt, argp);
13251 va_end(argp);
13252
13253 ; return 0; }
13254 EOF
13255 if { (eval echo configure:13256: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13256 rm -rf conftest*
13257
13258 wx_cv_func_vsnprintf=yes
13259
13260 else
13261 echo "configure: failed program was:" >&5
13262 cat conftest.$ac_ext >&5
13263 rm -rf conftest*
13264
13265 wx_cv_func_vsnprintf=no
13266
13267 fi
13268 rm -f conftest*
13269
13270 fi
13271 rm -f conftest*
13272
13273 fi
13274
13275 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
13276
13277 if test "$wx_cv_func_vsnprintf" = yes; then
13278 cat >> confdefs.h <<\EOF
13279 #define HAVE_VSNPRINTF 1
13280 EOF
13281
13282 else
13283 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
13284 fi
13285
13286 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
13287 echo "configure:13288: checking for vsscanf" >&5
13288 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13289 echo $ac_n "(cached) $ac_c" 1>&6
13290 else
13291
13292 cat > conftest.$ac_ext <<EOF
13293 #line 13294 "configure"
13294 #include "confdefs.h"
13295
13296 #include <stdio.h>
13297 #include <stdarg.h>
13298
13299 int main() {
13300
13301 int wx_test_vsscanf(const char *, ...);
13302
13303 wx_test_vsscanf("%d");
13304 return 0;
13305 }
13306
13307 int wx_test_vsscanf(const char *fmt, ...)
13308 {
13309 va_list argp;
13310 va_start(argp, fmt);
13311 vsscanf("42", fmt, argp);
13312 va_end(argp);
13313
13314 ; return 0; }
13315 EOF
13316 if { (eval echo configure:13317: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13317 rm -rf conftest*
13318
13319 wx_cv_func_vsscanf=yes
13320
13321 else
13322 echo "configure: failed program was:" >&5
13323 cat conftest.$ac_ext >&5
13324 rm -rf conftest*
13325
13326 wx_cv_func_vsscanf=no
13327
13328 fi
13329 rm -f conftest*
13330
13331 fi
13332
13333 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
13334
13335 if test "$wx_cv_func_vsscanf" = yes; then
13336 cat >> confdefs.h <<\EOF
13337 #define HAVE_VSSCANF 1
13338 EOF
13339
13340 fi
13341
13342 if test "$TOOLKIT" != "MSW"; then
13343
13344
13345
13346 ac_ext=C
13347 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13348 ac_cpp='$CXXCPP $CPPFLAGS'
13349 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13350 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13351 cross_compiling=$ac_cv_prog_cxx_cross
13352
13353 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
13354 echo "configure:13355: checking if iconv() takes char**" >&5
13355 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
13356 echo $ac_n "(cached) $ac_c" 1>&6
13357 else
13358
13359 cat > conftest.$ac_ext <<EOF
13360 #line 13361 "configure"
13361 #include "confdefs.h"
13362 #include <iconv.h>
13363 int main() {
13364
13365 char **inbuf, **outbuf;
13366 iconv_t cd;
13367 size_t insz, outsz;
13368 iconv(cd, inbuf, &insz, outbuf, &outsz);
13369
13370 ; return 0; }
13371 EOF
13372 if { (eval echo configure:13373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13373 rm -rf conftest*
13374 wx_cv_iconv_takes_char=yes
13375 else
13376 echo "configure: failed program was:" >&5
13377 cat conftest.$ac_ext >&5
13378 rm -rf conftest*
13379 wx_cv_iconv_takes_char=no
13380 fi
13381 rm -f conftest*
13382
13383 fi
13384
13385 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
13386 ac_ext=c
13387 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13388 ac_cpp='$CPP $CPPFLAGS'
13389 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13390 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13391 cross_compiling=$ac_cv_prog_cc_cross
13392
13393 if test "$wx_cv_iconv_takes_char" = yes ; then
13394 cat >> confdefs.h <<\EOF
13395 #define WX_ICONV_TAKES_CHAR 1
13396 EOF
13397
13398 fi
13399
13400
13401 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13402 for ac_func in sigaction
13403 do
13404 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13405 echo "configure:13406: checking for $ac_func" >&5
13406 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13407 echo $ac_n "(cached) $ac_c" 1>&6
13408 else
13409 cat > conftest.$ac_ext <<EOF
13410 #line 13411 "configure"
13411 #include "confdefs.h"
13412 /* System header to define __stub macros and hopefully few prototypes,
13413 which can conflict with char $ac_func(); below. */
13414 #include <assert.h>
13415 /* Override any gcc2 internal prototype to avoid an error. */
13416 /* We use char because int might match the return type of a gcc2
13417 builtin and then its argument prototype would still apply. */
13418 char $ac_func();
13419
13420 int main() {
13421
13422 /* The GNU C library defines this for functions which it implements
13423 to always fail with ENOSYS. Some functions are actually named
13424 something starting with __ and the normal name is an alias. */
13425 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13426 choke me
13427 #else
13428 $ac_func();
13429 #endif
13430
13431 ; return 0; }
13432 EOF
13433 if { (eval echo configure:13434: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13434 rm -rf conftest*
13435 eval "ac_cv_func_$ac_func=yes"
13436 else
13437 echo "configure: failed program was:" >&5
13438 cat conftest.$ac_ext >&5
13439 rm -rf conftest*
13440 eval "ac_cv_func_$ac_func=no"
13441 fi
13442 rm -f conftest*
13443 fi
13444
13445 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13446 echo "$ac_t""yes" 1>&6
13447 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13448 cat >> confdefs.h <<EOF
13449 #define $ac_tr_func 1
13450 EOF
13451
13452 else
13453 echo "$ac_t""no" 1>&6
13454 fi
13455 done
13456
13457
13458 if test "$ac_cv_func_sigaction" = "no"; then
13459 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
13460 wxUSE_ON_FATAL_EXCEPTION=no
13461 fi
13462
13463 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13464
13465 ac_ext=C
13466 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13467 ac_cpp='$CXXCPP $CPPFLAGS'
13468 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13469 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13470 cross_compiling=$ac_cv_prog_cxx_cross
13471
13472
13473 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
13474 echo "configure:13475: checking for sa_handler type" >&5
13475 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13476 echo $ac_n "(cached) $ac_c" 1>&6
13477 else
13478
13479 cat > conftest.$ac_ext <<EOF
13480 #line 13481 "configure"
13481 #include "confdefs.h"
13482 #include <signal.h>
13483 int main() {
13484
13485 extern void testSigHandler(int);
13486
13487 struct sigaction sa;
13488 sa.sa_handler = testSigHandler;
13489
13490 ; return 0; }
13491 EOF
13492 if { (eval echo configure:13493: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13493 rm -rf conftest*
13494
13495 wx_cv_type_sa_handler=int
13496
13497 else
13498 echo "configure: failed program was:" >&5
13499 cat conftest.$ac_ext >&5
13500 rm -rf conftest*
13501
13502 wx_cv_type_sa_handler=void
13503
13504 fi
13505 rm -f conftest*
13506
13507 fi
13508
13509 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
13510
13511 ac_ext=c
13512 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13513 ac_cpp='$CPP $CPPFLAGS'
13514 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13515 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13516 cross_compiling=$ac_cv_prog_cc_cross
13517
13518
13519 cat >> confdefs.h <<EOF
13520 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13521 EOF
13522
13523 fi
13524 fi
13525
13526 for ac_func in vfork
13527 do
13528 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13529 echo "configure:13530: checking for $ac_func" >&5
13530 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13531 echo $ac_n "(cached) $ac_c" 1>&6
13532 else
13533 cat > conftest.$ac_ext <<EOF
13534 #line 13535 "configure"
13535 #include "confdefs.h"
13536 /* System header to define __stub macros and hopefully few prototypes,
13537 which can conflict with char $ac_func(); below. */
13538 #include <assert.h>
13539 /* Override any gcc2 internal prototype to avoid an error. */
13540 /* We use char because int might match the return type of a gcc2
13541 builtin and then its argument prototype would still apply. */
13542 char $ac_func();
13543
13544 int main() {
13545
13546 /* The GNU C library defines this for functions which it implements
13547 to always fail with ENOSYS. Some functions are actually named
13548 something starting with __ and the normal name is an alias. */
13549 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13550 choke me
13551 #else
13552 $ac_func();
13553 #endif
13554
13555 ; return 0; }
13556 EOF
13557 if { (eval echo configure:13558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13558 rm -rf conftest*
13559 eval "ac_cv_func_$ac_func=yes"
13560 else
13561 echo "configure: failed program was:" >&5
13562 cat conftest.$ac_ext >&5
13563 rm -rf conftest*
13564 eval "ac_cv_func_$ac_func=no"
13565 fi
13566 rm -f conftest*
13567 fi
13568
13569 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13570 echo "$ac_t""yes" 1>&6
13571 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13572 cat >> confdefs.h <<EOF
13573 #define $ac_tr_func 1
13574 EOF
13575
13576 else
13577 echo "$ac_t""no" 1>&6
13578 fi
13579 done
13580
13581
13582 echo $ac_n "checking for statfs""... $ac_c" 1>&6
13583 echo "configure:13584: checking for statfs" >&5
13584 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
13585 echo $ac_n "(cached) $ac_c" 1>&6
13586 else
13587 cat > conftest.$ac_ext <<EOF
13588 #line 13589 "configure"
13589 #include "confdefs.h"
13590
13591 #include <sys/vfs.h>
13592
13593 int main() {
13594
13595 long l;
13596 struct statfs fs;
13597 statfs("/", &fs);
13598 l = fs.f_bsize;
13599 l += fs.f_blocks;
13600 l += fs.f_bavail;
13601
13602 ; return 0; }
13603 EOF
13604 if { (eval echo configure:13605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13605 rm -rf conftest*
13606
13607 wx_cv_func_statfs=yes
13608
13609 else
13610 echo "configure: failed program was:" >&5
13611 cat conftest.$ac_ext >&5
13612 rm -rf conftest*
13613
13614 wx_cv_func_statfs=no
13615
13616
13617 fi
13618 rm -f conftest*
13619
13620 fi
13621
13622 echo "$ac_t""$wx_cv_func_statfs" 1>&6
13623
13624 if test "$wx_cv_func_statfs" = "yes"; then
13625 cat >> confdefs.h <<\EOF
13626 #define HAVE_STATFS 1
13627 EOF
13628
13629 else
13630 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
13631 fi
13632
13633 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13634 for ac_func in fcntl flock
13635 do
13636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13637 echo "configure:13638: checking for $ac_func" >&5
13638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13639 echo $ac_n "(cached) $ac_c" 1>&6
13640 else
13641 cat > conftest.$ac_ext <<EOF
13642 #line 13643 "configure"
13643 #include "confdefs.h"
13644 /* System header to define __stub macros and hopefully few prototypes,
13645 which can conflict with char $ac_func(); below. */
13646 #include <assert.h>
13647 /* Override any gcc2 internal prototype to avoid an error. */
13648 /* We use char because int might match the return type of a gcc2
13649 builtin and then its argument prototype would still apply. */
13650 char $ac_func();
13651
13652 int main() {
13653
13654 /* The GNU C library defines this for functions which it implements
13655 to always fail with ENOSYS. Some functions are actually named
13656 something starting with __ and the normal name is an alias. */
13657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13658 choke me
13659 #else
13660 $ac_func();
13661 #endif
13662
13663 ; return 0; }
13664 EOF
13665 if { (eval echo configure:13666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13666 rm -rf conftest*
13667 eval "ac_cv_func_$ac_func=yes"
13668 else
13669 echo "configure: failed program was:" >&5
13670 cat conftest.$ac_ext >&5
13671 rm -rf conftest*
13672 eval "ac_cv_func_$ac_func=no"
13673 fi
13674 rm -f conftest*
13675 fi
13676
13677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13678 echo "$ac_t""yes" 1>&6
13679 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13680 cat >> confdefs.h <<EOF
13681 #define $ac_tr_func 1
13682 EOF
13683 break
13684 else
13685 echo "$ac_t""no" 1>&6
13686 fi
13687 done
13688
13689
13690 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
13691 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
13692 wxUSE_SNGLINST_CHECKER=no
13693 fi
13694 fi
13695
13696 for ac_func in timegm
13697 do
13698 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13699 echo "configure:13700: checking for $ac_func" >&5
13700 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13701 echo $ac_n "(cached) $ac_c" 1>&6
13702 else
13703 cat > conftest.$ac_ext <<EOF
13704 #line 13705 "configure"
13705 #include "confdefs.h"
13706 /* System header to define __stub macros and hopefully few prototypes,
13707 which can conflict with char $ac_func(); below. */
13708 #include <assert.h>
13709 /* Override any gcc2 internal prototype to avoid an error. */
13710 /* We use char because int might match the return type of a gcc2
13711 builtin and then its argument prototype would still apply. */
13712 char $ac_func();
13713
13714 int main() {
13715
13716 /* The GNU C library defines this for functions which it implements
13717 to always fail with ENOSYS. Some functions are actually named
13718 something starting with __ and the normal name is an alias. */
13719 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13720 choke me
13721 #else
13722 $ac_func();
13723 #endif
13724
13725 ; return 0; }
13726 EOF
13727 if { (eval echo configure:13728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13728 rm -rf conftest*
13729 eval "ac_cv_func_$ac_func=yes"
13730 else
13731 echo "configure: failed program was:" >&5
13732 cat conftest.$ac_ext >&5
13733 rm -rf conftest*
13734 eval "ac_cv_func_$ac_func=no"
13735 fi
13736 rm -f conftest*
13737 fi
13738
13739 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13740 echo "$ac_t""yes" 1>&6
13741 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13742 cat >> confdefs.h <<EOF
13743 #define $ac_tr_func 1
13744 EOF
13745
13746 else
13747 echo "$ac_t""no" 1>&6
13748 fi
13749 done
13750
13751
13752 for ac_func in putenv setenv
13753 do
13754 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13755 echo "configure:13756: checking for $ac_func" >&5
13756 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13757 echo $ac_n "(cached) $ac_c" 1>&6
13758 else
13759 cat > conftest.$ac_ext <<EOF
13760 #line 13761 "configure"
13761 #include "confdefs.h"
13762 /* System header to define __stub macros and hopefully few prototypes,
13763 which can conflict with char $ac_func(); below. */
13764 #include <assert.h>
13765 /* Override any gcc2 internal prototype to avoid an error. */
13766 /* We use char because int might match the return type of a gcc2
13767 builtin and then its argument prototype would still apply. */
13768 char $ac_func();
13769
13770 int main() {
13771
13772 /* The GNU C library defines this for functions which it implements
13773 to always fail with ENOSYS. Some functions are actually named
13774 something starting with __ and the normal name is an alias. */
13775 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13776 choke me
13777 #else
13778 $ac_func();
13779 #endif
13780
13781 ; return 0; }
13782 EOF
13783 if { (eval echo configure:13784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13784 rm -rf conftest*
13785 eval "ac_cv_func_$ac_func=yes"
13786 else
13787 echo "configure: failed program was:" >&5
13788 cat conftest.$ac_ext >&5
13789 rm -rf conftest*
13790 eval "ac_cv_func_$ac_func=no"
13791 fi
13792 rm -f conftest*
13793 fi
13794
13795 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13796 echo "$ac_t""yes" 1>&6
13797 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13798 cat >> confdefs.h <<EOF
13799 #define $ac_tr_func 1
13800 EOF
13801 break
13802 else
13803 echo "$ac_t""no" 1>&6
13804 fi
13805 done
13806
13807
13808 HAVE_SOME_SLEEP_FUNC=0
13809 if test "$USE_BEOS" = 1; then
13810 cat >> confdefs.h <<\EOF
13811 #define HAVE_SLEEP 1
13812 EOF
13813
13814 HAVE_SOME_SLEEP_FUNC=1
13815 fi
13816
13817 if test "$USE_DARWIN" = 1; then
13818 cat >> confdefs.h <<\EOF
13819 #define HAVE_USLEEP 1
13820 EOF
13821
13822 HAVE_SOME_SLEEP_FUNC=1
13823 fi
13824
13825 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13826 POSIX4_LINK=
13827 for ac_func in nanosleep
13828 do
13829 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13830 echo "configure:13831: checking for $ac_func" >&5
13831 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13832 echo $ac_n "(cached) $ac_c" 1>&6
13833 else
13834 cat > conftest.$ac_ext <<EOF
13835 #line 13836 "configure"
13836 #include "confdefs.h"
13837 /* System header to define __stub macros and hopefully few prototypes,
13838 which can conflict with char $ac_func(); below. */
13839 #include <assert.h>
13840 /* Override any gcc2 internal prototype to avoid an error. */
13841 /* We use char because int might match the return type of a gcc2
13842 builtin and then its argument prototype would still apply. */
13843 char $ac_func();
13844
13845 int main() {
13846
13847 /* The GNU C library defines this for functions which it implements
13848 to always fail with ENOSYS. Some functions are actually named
13849 something starting with __ and the normal name is an alias. */
13850 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13851 choke me
13852 #else
13853 $ac_func();
13854 #endif
13855
13856 ; return 0; }
13857 EOF
13858 if { (eval echo configure:13859: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13859 rm -rf conftest*
13860 eval "ac_cv_func_$ac_func=yes"
13861 else
13862 echo "configure: failed program was:" >&5
13863 cat conftest.$ac_ext >&5
13864 rm -rf conftest*
13865 eval "ac_cv_func_$ac_func=no"
13866 fi
13867 rm -f conftest*
13868 fi
13869
13870 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13871 echo "$ac_t""yes" 1>&6
13872 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13873 cat >> confdefs.h <<EOF
13874 #define $ac_tr_func 1
13875 EOF
13876 cat >> confdefs.h <<\EOF
13877 #define HAVE_NANOSLEEP 1
13878 EOF
13879
13880 else
13881 echo "$ac_t""no" 1>&6
13882 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
13883 echo "configure:13884: checking for nanosleep in -lposix4" >&5
13884 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13885 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13886 echo $ac_n "(cached) $ac_c" 1>&6
13887 else
13888 ac_save_LIBS="$LIBS"
13889 LIBS="-lposix4 $LIBS"
13890 cat > conftest.$ac_ext <<EOF
13891 #line 13892 "configure"
13892 #include "confdefs.h"
13893 /* Override any gcc2 internal prototype to avoid an error. */
13894 /* We use char because int might match the return type of a gcc2
13895 builtin and then its argument prototype would still apply. */
13896 char nanosleep();
13897
13898 int main() {
13899 nanosleep()
13900 ; return 0; }
13901 EOF
13902 if { (eval echo configure:13903: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13903 rm -rf conftest*
13904 eval "ac_cv_lib_$ac_lib_var=yes"
13905 else
13906 echo "configure: failed program was:" >&5
13907 cat conftest.$ac_ext >&5
13908 rm -rf conftest*
13909 eval "ac_cv_lib_$ac_lib_var=no"
13910 fi
13911 rm -f conftest*
13912 LIBS="$ac_save_LIBS"
13913
13914 fi
13915 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13916 echo "$ac_t""yes" 1>&6
13917
13918 cat >> confdefs.h <<\EOF
13919 #define HAVE_NANOSLEEP 1
13920 EOF
13921
13922 POSIX4_LINK="-lposix4"
13923
13924 else
13925 echo "$ac_t""no" 1>&6
13926
13927 for ac_func in usleep
13928 do
13929 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13930 echo "configure:13931: checking for $ac_func" >&5
13931 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13932 echo $ac_n "(cached) $ac_c" 1>&6
13933 else
13934 cat > conftest.$ac_ext <<EOF
13935 #line 13936 "configure"
13936 #include "confdefs.h"
13937 /* System header to define __stub macros and hopefully few prototypes,
13938 which can conflict with char $ac_func(); below. */
13939 #include <assert.h>
13940 /* Override any gcc2 internal prototype to avoid an error. */
13941 /* We use char because int might match the return type of a gcc2
13942 builtin and then its argument prototype would still apply. */
13943 char $ac_func();
13944
13945 int main() {
13946
13947 /* The GNU C library defines this for functions which it implements
13948 to always fail with ENOSYS. Some functions are actually named
13949 something starting with __ and the normal name is an alias. */
13950 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13951 choke me
13952 #else
13953 $ac_func();
13954 #endif
13955
13956 ; return 0; }
13957 EOF
13958 if { (eval echo configure:13959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13959 rm -rf conftest*
13960 eval "ac_cv_func_$ac_func=yes"
13961 else
13962 echo "configure: failed program was:" >&5
13963 cat conftest.$ac_ext >&5
13964 rm -rf conftest*
13965 eval "ac_cv_func_$ac_func=no"
13966 fi
13967 rm -f conftest*
13968 fi
13969
13970 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13971 echo "$ac_t""yes" 1>&6
13972 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13973 cat >> confdefs.h <<EOF
13974 #define $ac_tr_func 1
13975 EOF
13976 cat >> confdefs.h <<\EOF
13977 #define HAVE_USLEEP 1
13978 EOF
13979
13980 else
13981 echo "$ac_t""no" 1>&6
13982 echo "configure: warning: wxSleep() function will not work" 1>&2
13983
13984 fi
13985 done
13986
13987
13988
13989 fi
13990
13991
13992
13993 fi
13994 done
13995
13996 fi
13997
13998 for ac_func in uname gethostname
13999 do
14000 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14001 echo "configure:14002: checking for $ac_func" >&5
14002 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14003 echo $ac_n "(cached) $ac_c" 1>&6
14004 else
14005 cat > conftest.$ac_ext <<EOF
14006 #line 14007 "configure"
14007 #include "confdefs.h"
14008 /* System header to define __stub macros and hopefully few prototypes,
14009 which can conflict with char $ac_func(); below. */
14010 #include <assert.h>
14011 /* Override any gcc2 internal prototype to avoid an error. */
14012 /* We use char because int might match the return type of a gcc2
14013 builtin and then its argument prototype would still apply. */
14014 char $ac_func();
14015
14016 int main() {
14017
14018 /* The GNU C library defines this for functions which it implements
14019 to always fail with ENOSYS. Some functions are actually named
14020 something starting with __ and the normal name is an alias. */
14021 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14022 choke me
14023 #else
14024 $ac_func();
14025 #endif
14026
14027 ; return 0; }
14028 EOF
14029 if { (eval echo configure:14030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14030 rm -rf conftest*
14031 eval "ac_cv_func_$ac_func=yes"
14032 else
14033 echo "configure: failed program was:" >&5
14034 cat conftest.$ac_ext >&5
14035 rm -rf conftest*
14036 eval "ac_cv_func_$ac_func=no"
14037 fi
14038 rm -f conftest*
14039 fi
14040
14041 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14042 echo "$ac_t""yes" 1>&6
14043 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14044 cat >> confdefs.h <<EOF
14045 #define $ac_tr_func 1
14046 EOF
14047 break
14048 else
14049 echo "$ac_t""no" 1>&6
14050 fi
14051 done
14052
14053
14054
14055 ac_ext=C
14056 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14057 ac_cpp='$CXXCPP $CPPFLAGS'
14058 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14059 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14060 cross_compiling=$ac_cv_prog_cxx_cross
14061
14062
14063 for ac_func in strtok_r
14064 do
14065 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14066 echo "configure:14067: checking for $ac_func" >&5
14067 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14068 echo $ac_n "(cached) $ac_c" 1>&6
14069 else
14070 cat > conftest.$ac_ext <<EOF
14071 #line 14072 "configure"
14072 #include "confdefs.h"
14073 /* System header to define __stub macros and hopefully few prototypes,
14074 which can conflict with char $ac_func(); below. */
14075 #include <assert.h>
14076 /* Override any gcc2 internal prototype to avoid an error. */
14077 #ifdef __cplusplus
14078 extern "C"
14079 #endif
14080 /* We use char because int might match the return type of a gcc2
14081 builtin and then its argument prototype would still apply. */
14082 char $ac_func();
14083
14084 int main() {
14085
14086 /* The GNU C library defines this for functions which it implements
14087 to always fail with ENOSYS. Some functions are actually named
14088 something starting with __ and the normal name is an alias. */
14089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14090 choke me
14091 #else
14092 $ac_func();
14093 #endif
14094
14095 ; return 0; }
14096 EOF
14097 if { (eval echo configure:14098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14098 rm -rf conftest*
14099 eval "ac_cv_func_$ac_func=yes"
14100 else
14101 echo "configure: failed program was:" >&5
14102 cat conftest.$ac_ext >&5
14103 rm -rf conftest*
14104 eval "ac_cv_func_$ac_func=no"
14105 fi
14106 rm -f conftest*
14107 fi
14108
14109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14110 echo "$ac_t""yes" 1>&6
14111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14112 cat >> confdefs.h <<EOF
14113 #define $ac_tr_func 1
14114 EOF
14115
14116 else
14117 echo "$ac_t""no" 1>&6
14118 fi
14119 done
14120
14121
14122 ac_ext=c
14123 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14124 ac_cpp='$CPP $CPPFLAGS'
14125 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14126 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14127 cross_compiling=$ac_cv_prog_cc_cross
14128
14129
14130 INET_LINK=
14131 for ac_func in inet_addr
14132 do
14133 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14134 echo "configure:14135: checking for $ac_func" >&5
14135 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14136 echo $ac_n "(cached) $ac_c" 1>&6
14137 else
14138 cat > conftest.$ac_ext <<EOF
14139 #line 14140 "configure"
14140 #include "confdefs.h"
14141 /* System header to define __stub macros and hopefully few prototypes,
14142 which can conflict with char $ac_func(); below. */
14143 #include <assert.h>
14144 /* Override any gcc2 internal prototype to avoid an error. */
14145 /* We use char because int might match the return type of a gcc2
14146 builtin and then its argument prototype would still apply. */
14147 char $ac_func();
14148
14149 int main() {
14150
14151 /* The GNU C library defines this for functions which it implements
14152 to always fail with ENOSYS. Some functions are actually named
14153 something starting with __ and the normal name is an alias. */
14154 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14155 choke me
14156 #else
14157 $ac_func();
14158 #endif
14159
14160 ; return 0; }
14161 EOF
14162 if { (eval echo configure:14163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14163 rm -rf conftest*
14164 eval "ac_cv_func_$ac_func=yes"
14165 else
14166 echo "configure: failed program was:" >&5
14167 cat conftest.$ac_ext >&5
14168 rm -rf conftest*
14169 eval "ac_cv_func_$ac_func=no"
14170 fi
14171 rm -f conftest*
14172 fi
14173
14174 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14175 echo "$ac_t""yes" 1>&6
14176 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14177 cat >> confdefs.h <<EOF
14178 #define $ac_tr_func 1
14179 EOF
14180 cat >> confdefs.h <<\EOF
14181 #define HAVE_INET_ADDR 1
14182 EOF
14183
14184 else
14185 echo "$ac_t""no" 1>&6
14186 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
14187 echo "configure:14188: checking for inet_addr in -lnsl" >&5
14188 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
14189 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14190 echo $ac_n "(cached) $ac_c" 1>&6
14191 else
14192 ac_save_LIBS="$LIBS"
14193 LIBS="-lnsl $LIBS"
14194 cat > conftest.$ac_ext <<EOF
14195 #line 14196 "configure"
14196 #include "confdefs.h"
14197 /* Override any gcc2 internal prototype to avoid an error. */
14198 /* We use char because int might match the return type of a gcc2
14199 builtin and then its argument prototype would still apply. */
14200 char inet_addr();
14201
14202 int main() {
14203 inet_addr()
14204 ; return 0; }
14205 EOF
14206 if { (eval echo configure:14207: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14207 rm -rf conftest*
14208 eval "ac_cv_lib_$ac_lib_var=yes"
14209 else
14210 echo "configure: failed program was:" >&5
14211 cat conftest.$ac_ext >&5
14212 rm -rf conftest*
14213 eval "ac_cv_lib_$ac_lib_var=no"
14214 fi
14215 rm -f conftest*
14216 LIBS="$ac_save_LIBS"
14217
14218 fi
14219 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14220 echo "$ac_t""yes" 1>&6
14221 INET_LINK="nsl"
14222 else
14223 echo "$ac_t""no" 1>&6
14224 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
14225 echo "configure:14226: checking for inet_addr in -lresolv" >&5
14226 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
14227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14228 echo $ac_n "(cached) $ac_c" 1>&6
14229 else
14230 ac_save_LIBS="$LIBS"
14231 LIBS="-lresolv $LIBS"
14232 cat > conftest.$ac_ext <<EOF
14233 #line 14234 "configure"
14234 #include "confdefs.h"
14235 /* Override any gcc2 internal prototype to avoid an error. */
14236 /* We use char because int might match the return type of a gcc2
14237 builtin and then its argument prototype would still apply. */
14238 char inet_addr();
14239
14240 int main() {
14241 inet_addr()
14242 ; return 0; }
14243 EOF
14244 if { (eval echo configure:14245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14245 rm -rf conftest*
14246 eval "ac_cv_lib_$ac_lib_var=yes"
14247 else
14248 echo "configure: failed program was:" >&5
14249 cat conftest.$ac_ext >&5
14250 rm -rf conftest*
14251 eval "ac_cv_lib_$ac_lib_var=no"
14252 fi
14253 rm -f conftest*
14254 LIBS="$ac_save_LIBS"
14255
14256 fi
14257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14258 echo "$ac_t""yes" 1>&6
14259 INET_LINK="resolv"
14260
14261 else
14262 echo "$ac_t""no" 1>&6
14263 fi
14264
14265
14266 fi
14267
14268
14269
14270 fi
14271 done
14272
14273
14274 for ac_func in inet_aton
14275 do
14276 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14277 echo "configure:14278: checking for $ac_func" >&5
14278 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14279 echo $ac_n "(cached) $ac_c" 1>&6
14280 else
14281 cat > conftest.$ac_ext <<EOF
14282 #line 14283 "configure"
14283 #include "confdefs.h"
14284 /* System header to define __stub macros and hopefully few prototypes,
14285 which can conflict with char $ac_func(); below. */
14286 #include <assert.h>
14287 /* Override any gcc2 internal prototype to avoid an error. */
14288 /* We use char because int might match the return type of a gcc2
14289 builtin and then its argument prototype would still apply. */
14290 char $ac_func();
14291
14292 int main() {
14293
14294 /* The GNU C library defines this for functions which it implements
14295 to always fail with ENOSYS. Some functions are actually named
14296 something starting with __ and the normal name is an alias. */
14297 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14298 choke me
14299 #else
14300 $ac_func();
14301 #endif
14302
14303 ; return 0; }
14304 EOF
14305 if { (eval echo configure:14306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14306 rm -rf conftest*
14307 eval "ac_cv_func_$ac_func=yes"
14308 else
14309 echo "configure: failed program was:" >&5
14310 cat conftest.$ac_ext >&5
14311 rm -rf conftest*
14312 eval "ac_cv_func_$ac_func=no"
14313 fi
14314 rm -f conftest*
14315 fi
14316
14317 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14318 echo "$ac_t""yes" 1>&6
14319 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14320 cat >> confdefs.h <<EOF
14321 #define $ac_tr_func 1
14322 EOF
14323 cat >> confdefs.h <<\EOF
14324 #define HAVE_INET_ATON 1
14325 EOF
14326
14327 else
14328 echo "$ac_t""no" 1>&6
14329 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
14330 echo "configure:14331: checking for inet_aton in -l$INET_LINK" >&5
14331 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
14332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14333 echo $ac_n "(cached) $ac_c" 1>&6
14334 else
14335 ac_save_LIBS="$LIBS"
14336 LIBS="-l$INET_LINK $LIBS"
14337 cat > conftest.$ac_ext <<EOF
14338 #line 14339 "configure"
14339 #include "confdefs.h"
14340 /* Override any gcc2 internal prototype to avoid an error. */
14341 /* We use char because int might match the return type of a gcc2
14342 builtin and then its argument prototype would still apply. */
14343 char inet_aton();
14344
14345 int main() {
14346 inet_aton()
14347 ; return 0; }
14348 EOF
14349 if { (eval echo configure:14350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14350 rm -rf conftest*
14351 eval "ac_cv_lib_$ac_lib_var=yes"
14352 else
14353 echo "configure: failed program was:" >&5
14354 cat conftest.$ac_ext >&5
14355 rm -rf conftest*
14356 eval "ac_cv_lib_$ac_lib_var=no"
14357 fi
14358 rm -f conftest*
14359 LIBS="$ac_save_LIBS"
14360
14361 fi
14362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14363 echo "$ac_t""yes" 1>&6
14364 cat >> confdefs.h <<\EOF
14365 #define HAVE_INET_ATON 1
14366 EOF
14367
14368 else
14369 echo "$ac_t""no" 1>&6
14370 fi
14371
14372
14373 fi
14374 done
14375
14376
14377 if test "x$INET_LINK" != "x"; then
14378 cat >> confdefs.h <<\EOF
14379 #define HAVE_INET_ADDR 1
14380 EOF
14381
14382 INET_LINK="-l$INET_LINK"
14383 fi
14384
14385 fi
14386
14387
14388 cat > confcache <<\EOF
14389 # This file is a shell script that caches the results of configure
14390 # tests run on this system so they can be shared between configure
14391 # scripts and configure runs. It is not useful on other systems.
14392 # If it contains results you don't want to keep, you may remove or edit it.
14393 #
14394 # By default, configure uses ./config.cache as the cache file,
14395 # creating it if it does not exist already. You can give configure
14396 # the --cache-file=FILE option to use a different cache file; that is
14397 # what configure does when it calls configure scripts in
14398 # subdirectories, so they share the cache.
14399 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14400 # config.status only pays attention to the cache file if you give it the
14401 # --recheck option to rerun configure.
14402 #
14403 EOF
14404 # The following way of writing the cache mishandles newlines in values,
14405 # but we know of no workaround that is simple, portable, and efficient.
14406 # So, don't put newlines in cache variables' values.
14407 # Ultrix sh set writes to stderr and can't be redirected directly,
14408 # and sets the high bit in the cache file unless we assign to the vars.
14409 (set) 2>&1 |
14410 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14411 *ac_space=\ *)
14412 # `set' does not quote correctly, so add quotes (double-quote substitution
14413 # turns \\\\ into \\, and sed turns \\ into \).
14414 sed -n \
14415 -e "s/'/'\\\\''/g" \
14416 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14417 ;;
14418 *)
14419 # `set' quotes correctly as required by POSIX, so do not add quotes.
14420 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14421 ;;
14422 esac >> confcache
14423 if cmp -s $cache_file confcache; then
14424 :
14425 else
14426 if test -w $cache_file; then
14427 echo "updating cache $cache_file"
14428 cat confcache > $cache_file
14429 else
14430 echo "not updating unwritable cache $cache_file"
14431 fi
14432 fi
14433 rm -f confcache
14434
14435
14436
14437 if test "$TOOLKIT" != "MSW"; then
14438
14439
14440 THREADS_LINK=
14441 THREADS_OBJ=
14442 CODE_GEN_FLAGS=
14443 CODE_GEN_FLAGS_CXX=
14444
14445 if test "$wxUSE_THREADS" = "yes" ; then
14446 if test "$wxUSE_WINE" = 1 ; then
14447 echo "configure: warning: Threads are not supported under WINE" 1>&2
14448 wxUSE_THREADS="no"
14449 elif test "$USE_BEOS" = 1; then
14450 echo "configure: warning: BeOS threads are not yet supported" 1>&2
14451 wxUSE_THREADS="no"
14452 fi
14453 fi
14454
14455 if test "$wxUSE_THREADS" = "yes" ; then
14456
14457 if test "$USE_AIX" = 1; then
14458 THREADS_LIB=pthreads
14459 else
14460 THREADS_LIB=pthread
14461 fi
14462
14463 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
14464 echo "configure:14465: checking for pthread_create in -l$THREADS_LIB" >&5
14465 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14466 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14467 echo $ac_n "(cached) $ac_c" 1>&6
14468 else
14469 ac_save_LIBS="$LIBS"
14470 LIBS="-l$THREADS_LIB $LIBS"
14471 cat > conftest.$ac_ext <<EOF
14472 #line 14473 "configure"
14473 #include "confdefs.h"
14474 /* Override any gcc2 internal prototype to avoid an error. */
14475 /* We use char because int might match the return type of a gcc2
14476 builtin and then its argument prototype would still apply. */
14477 char pthread_create();
14478
14479 int main() {
14480 pthread_create()
14481 ; return 0; }
14482 EOF
14483 if { (eval echo configure:14484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14484 rm -rf conftest*
14485 eval "ac_cv_lib_$ac_lib_var=yes"
14486 else
14487 echo "configure: failed program was:" >&5
14488 cat conftest.$ac_ext >&5
14489 rm -rf conftest*
14490 eval "ac_cv_lib_$ac_lib_var=no"
14491 fi
14492 rm -f conftest*
14493 LIBS="$ac_save_LIBS"
14494
14495 fi
14496 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14497 echo "$ac_t""yes" 1>&6
14498
14499 THREADS_OBJ="threadpsx.lo"
14500 THREADS_LINK=$THREADS_LIB
14501
14502 else
14503 echo "$ac_t""no" 1>&6
14504
14505 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
14506 echo "configure:14507: checking for pthread_create in -lc_r" >&5
14507 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14508 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14509 echo $ac_n "(cached) $ac_c" 1>&6
14510 else
14511 ac_save_LIBS="$LIBS"
14512 LIBS="-lc_r $LIBS"
14513 cat > conftest.$ac_ext <<EOF
14514 #line 14515 "configure"
14515 #include "confdefs.h"
14516 /* Override any gcc2 internal prototype to avoid an error. */
14517 /* We use char because int might match the return type of a gcc2
14518 builtin and then its argument prototype would still apply. */
14519 char pthread_create();
14520
14521 int main() {
14522 pthread_create()
14523 ; return 0; }
14524 EOF
14525 if { (eval echo configure:14526: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14526 rm -rf conftest*
14527 eval "ac_cv_lib_$ac_lib_var=yes"
14528 else
14529 echo "configure: failed program was:" >&5
14530 cat conftest.$ac_ext >&5
14531 rm -rf conftest*
14532 eval "ac_cv_lib_$ac_lib_var=no"
14533 fi
14534 rm -f conftest*
14535 LIBS="$ac_save_LIBS"
14536
14537 fi
14538 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14539 echo "$ac_t""yes" 1>&6
14540
14541 THREADS_OBJ="threadpsx.lo"
14542 THREADS_LINK="c_r"
14543
14544 else
14545 echo "$ac_t""no" 1>&6
14546
14547 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14548 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
14549 echo "configure:14550: checking for sys/prctl.h" >&5
14550 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14551 echo $ac_n "(cached) $ac_c" 1>&6
14552 else
14553 cat > conftest.$ac_ext <<EOF
14554 #line 14555 "configure"
14555 #include "confdefs.h"
14556 #include <sys/prctl.h>
14557 EOF
14558 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14559 { (eval echo configure:14560: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14560 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14561 if test -z "$ac_err"; then
14562 rm -rf conftest*
14563 eval "ac_cv_header_$ac_safe=yes"
14564 else
14565 echo "$ac_err" >&5
14566 echo "configure: failed program was:" >&5
14567 cat conftest.$ac_ext >&5
14568 rm -rf conftest*
14569 eval "ac_cv_header_$ac_safe=no"
14570 fi
14571 rm -f conftest*
14572 fi
14573 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14574 echo "$ac_t""yes" 1>&6
14575
14576 THREADS_OBJ="threadsgi.lo"
14577
14578 else
14579 echo "$ac_t""no" 1>&6
14580 fi
14581
14582
14583 fi
14584
14585
14586 fi
14587
14588
14589 if test -z "$THREADS_OBJ" ; then
14590 wxUSE_THREADS=no
14591 echo "configure: warning: No thread support on this system" 1>&2
14592 fi
14593 fi
14594
14595 if test "$wxUSE_THREADS" = "yes" ; then
14596 for ac_func in thr_setconcurrency
14597 do
14598 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14599 echo "configure:14600: checking for $ac_func" >&5
14600 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14601 echo $ac_n "(cached) $ac_c" 1>&6
14602 else
14603 cat > conftest.$ac_ext <<EOF
14604 #line 14605 "configure"
14605 #include "confdefs.h"
14606 /* System header to define __stub macros and hopefully few prototypes,
14607 which can conflict with char $ac_func(); below. */
14608 #include <assert.h>
14609 /* Override any gcc2 internal prototype to avoid an error. */
14610 /* We use char because int might match the return type of a gcc2
14611 builtin and then its argument prototype would still apply. */
14612 char $ac_func();
14613
14614 int main() {
14615
14616 /* The GNU C library defines this for functions which it implements
14617 to always fail with ENOSYS. Some functions are actually named
14618 something starting with __ and the normal name is an alias. */
14619 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14620 choke me
14621 #else
14622 $ac_func();
14623 #endif
14624
14625 ; return 0; }
14626 EOF
14627 if { (eval echo configure:14628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14628 rm -rf conftest*
14629 eval "ac_cv_func_$ac_func=yes"
14630 else
14631 echo "configure: failed program was:" >&5
14632 cat conftest.$ac_ext >&5
14633 rm -rf conftest*
14634 eval "ac_cv_func_$ac_func=no"
14635 fi
14636 rm -f conftest*
14637 fi
14638
14639 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14640 echo "$ac_t""yes" 1>&6
14641 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14642 cat >> confdefs.h <<EOF
14643 #define $ac_tr_func 1
14644 EOF
14645
14646 else
14647 echo "$ac_t""no" 1>&6
14648 fi
14649 done
14650
14651
14652
14653 for ac_hdr in sched.h
14654 do
14655 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14656 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14657 echo "configure:14658: checking for $ac_hdr" >&5
14658 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14659 echo $ac_n "(cached) $ac_c" 1>&6
14660 else
14661 cat > conftest.$ac_ext <<EOF
14662 #line 14663 "configure"
14663 #include "confdefs.h"
14664 #include <$ac_hdr>
14665 EOF
14666 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14667 { (eval echo configure:14668: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14668 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14669 if test -z "$ac_err"; then
14670 rm -rf conftest*
14671 eval "ac_cv_header_$ac_safe=yes"
14672 else
14673 echo "$ac_err" >&5
14674 echo "configure: failed program was:" >&5
14675 cat conftest.$ac_ext >&5
14676 rm -rf conftest*
14677 eval "ac_cv_header_$ac_safe=no"
14678 fi
14679 rm -f conftest*
14680 fi
14681 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14682 echo "$ac_t""yes" 1>&6
14683 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14684 cat >> confdefs.h <<EOF
14685 #define $ac_tr_hdr 1
14686 EOF
14687
14688 else
14689 echo "$ac_t""no" 1>&6
14690 fi
14691 done
14692
14693
14694 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
14695 echo "configure:14696: checking for sched_yield in -l$THREADS_LINK" >&5
14696 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14698 echo $ac_n "(cached) $ac_c" 1>&6
14699 else
14700 ac_save_LIBS="$LIBS"
14701 LIBS="-l$THREADS_LINK $LIBS"
14702 cat > conftest.$ac_ext <<EOF
14703 #line 14704 "configure"
14704 #include "confdefs.h"
14705 /* Override any gcc2 internal prototype to avoid an error. */
14706 /* We use char because int might match the return type of a gcc2
14707 builtin and then its argument prototype would still apply. */
14708 char sched_yield();
14709
14710 int main() {
14711 sched_yield()
14712 ; return 0; }
14713 EOF
14714 if { (eval echo configure:14715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14715 rm -rf conftest*
14716 eval "ac_cv_lib_$ac_lib_var=yes"
14717 else
14718 echo "configure: failed program was:" >&5
14719 cat conftest.$ac_ext >&5
14720 rm -rf conftest*
14721 eval "ac_cv_lib_$ac_lib_var=no"
14722 fi
14723 rm -f conftest*
14724 LIBS="$ac_save_LIBS"
14725
14726 fi
14727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14728 echo "$ac_t""yes" 1>&6
14729 cat >> confdefs.h <<\EOF
14730 #define HAVE_SCHED_YIELD 1
14731 EOF
14732
14733 else
14734 echo "$ac_t""no" 1>&6
14735 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
14736 echo "configure:14737: checking for sched_yield in -lposix4" >&5
14737 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14739 echo $ac_n "(cached) $ac_c" 1>&6
14740 else
14741 ac_save_LIBS="$LIBS"
14742 LIBS="-lposix4 $LIBS"
14743 cat > conftest.$ac_ext <<EOF
14744 #line 14745 "configure"
14745 #include "confdefs.h"
14746 /* Override any gcc2 internal prototype to avoid an error. */
14747 /* We use char because int might match the return type of a gcc2
14748 builtin and then its argument prototype would still apply. */
14749 char sched_yield();
14750
14751 int main() {
14752 sched_yield()
14753 ; return 0; }
14754 EOF
14755 if { (eval echo configure:14756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14756 rm -rf conftest*
14757 eval "ac_cv_lib_$ac_lib_var=yes"
14758 else
14759 echo "configure: failed program was:" >&5
14760 cat conftest.$ac_ext >&5
14761 rm -rf conftest*
14762 eval "ac_cv_lib_$ac_lib_var=no"
14763 fi
14764 rm -f conftest*
14765 LIBS="$ac_save_LIBS"
14766
14767 fi
14768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14769 echo "$ac_t""yes" 1>&6
14770 cat >> confdefs.h <<\EOF
14771 #define HAVE_SCHED_YIELD 1
14772 EOF
14773 POSIX4_LINK="-lposix4"
14774 else
14775 echo "$ac_t""no" 1>&6
14776 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14777
14778 fi
14779
14780
14781 fi
14782
14783
14784 HAVE_PRIOR_FUNCS=0
14785 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
14786 echo "configure:14787: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
14787 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14788 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14789 echo $ac_n "(cached) $ac_c" 1>&6
14790 else
14791 ac_save_LIBS="$LIBS"
14792 LIBS="-l$THREADS_LINK $LIBS"
14793 cat > conftest.$ac_ext <<EOF
14794 #line 14795 "configure"
14795 #include "confdefs.h"
14796 /* Override any gcc2 internal prototype to avoid an error. */
14797 /* We use char because int might match the return type of a gcc2
14798 builtin and then its argument prototype would still apply. */
14799 char pthread_attr_getschedpolicy();
14800
14801 int main() {
14802 pthread_attr_getschedpolicy()
14803 ; return 0; }
14804 EOF
14805 if { (eval echo configure:14806: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14806 rm -rf conftest*
14807 eval "ac_cv_lib_$ac_lib_var=yes"
14808 else
14809 echo "configure: failed program was:" >&5
14810 cat conftest.$ac_ext >&5
14811 rm -rf conftest*
14812 eval "ac_cv_lib_$ac_lib_var=no"
14813 fi
14814 rm -f conftest*
14815 LIBS="$ac_save_LIBS"
14816
14817 fi
14818 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14819 echo "$ac_t""yes" 1>&6
14820 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
14821 echo "configure:14822: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
14822 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14823 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14824 echo $ac_n "(cached) $ac_c" 1>&6
14825 else
14826 ac_save_LIBS="$LIBS"
14827 LIBS="-l$THREADS_LINK $LIBS"
14828 cat > conftest.$ac_ext <<EOF
14829 #line 14830 "configure"
14830 #include "confdefs.h"
14831 /* Override any gcc2 internal prototype to avoid an error. */
14832 /* We use char because int might match the return type of a gcc2
14833 builtin and then its argument prototype would still apply. */
14834 char pthread_attr_setschedparam();
14835
14836 int main() {
14837 pthread_attr_setschedparam()
14838 ; return 0; }
14839 EOF
14840 if { (eval echo configure:14841: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14841 rm -rf conftest*
14842 eval "ac_cv_lib_$ac_lib_var=yes"
14843 else
14844 echo "configure: failed program was:" >&5
14845 cat conftest.$ac_ext >&5
14846 rm -rf conftest*
14847 eval "ac_cv_lib_$ac_lib_var=no"
14848 fi
14849 rm -f conftest*
14850 LIBS="$ac_save_LIBS"
14851
14852 fi
14853 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14854 echo "$ac_t""yes" 1>&6
14855 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
14856 echo "configure:14857: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
14857 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14858 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14859 echo $ac_n "(cached) $ac_c" 1>&6
14860 else
14861 ac_save_LIBS="$LIBS"
14862 LIBS="-l$THREADS_LINK $LIBS"
14863 cat > conftest.$ac_ext <<EOF
14864 #line 14865 "configure"
14865 #include "confdefs.h"
14866 /* Override any gcc2 internal prototype to avoid an error. */
14867 /* We use char because int might match the return type of a gcc2
14868 builtin and then its argument prototype would still apply. */
14869 char sched_get_priority_max();
14870
14871 int main() {
14872 sched_get_priority_max()
14873 ; return 0; }
14874 EOF
14875 if { (eval echo configure:14876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14876 rm -rf conftest*
14877 eval "ac_cv_lib_$ac_lib_var=yes"
14878 else
14879 echo "configure: failed program was:" >&5
14880 cat conftest.$ac_ext >&5
14881 rm -rf conftest*
14882 eval "ac_cv_lib_$ac_lib_var=no"
14883 fi
14884 rm -f conftest*
14885 LIBS="$ac_save_LIBS"
14886
14887 fi
14888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14889 echo "$ac_t""yes" 1>&6
14890 HAVE_PRIOR_FUNCS=1
14891 else
14892 echo "$ac_t""no" 1>&6
14893 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
14894 echo "configure:14895: checking for sched_get_priority_max in -lposix4" >&5
14895 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14896 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14897 echo $ac_n "(cached) $ac_c" 1>&6
14898 else
14899 ac_save_LIBS="$LIBS"
14900 LIBS="-lposix4 $LIBS"
14901 cat > conftest.$ac_ext <<EOF
14902 #line 14903 "configure"
14903 #include "confdefs.h"
14904 /* Override any gcc2 internal prototype to avoid an error. */
14905 /* We use char because int might match the return type of a gcc2
14906 builtin and then its argument prototype would still apply. */
14907 char sched_get_priority_max();
14908
14909 int main() {
14910 sched_get_priority_max()
14911 ; return 0; }
14912 EOF
14913 if { (eval echo configure:14914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14914 rm -rf conftest*
14915 eval "ac_cv_lib_$ac_lib_var=yes"
14916 else
14917 echo "configure: failed program was:" >&5
14918 cat conftest.$ac_ext >&5
14919 rm -rf conftest*
14920 eval "ac_cv_lib_$ac_lib_var=no"
14921 fi
14922 rm -f conftest*
14923 LIBS="$ac_save_LIBS"
14924
14925 fi
14926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14927 echo "$ac_t""yes" 1>&6
14928
14929 HAVE_PRIOR_FUNCS=1
14930 POSIX4_LINK="-lposix4"
14931
14932 else
14933 echo "$ac_t""no" 1>&6
14934 fi
14935
14936
14937 fi
14938
14939
14940 else
14941 echo "$ac_t""no" 1>&6
14942 fi
14943
14944
14945 else
14946 echo "$ac_t""no" 1>&6
14947 fi
14948
14949
14950 if test "$HAVE_PRIOR_FUNCS" = 1; then
14951 cat >> confdefs.h <<\EOF
14952 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14953 EOF
14954
14955 else
14956 echo "configure: warning: Setting thread priority will not work" 1>&2
14957 fi
14958
14959 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
14960 echo "configure:14961: checking for pthread_cancel in -l$THREADS_LINK" >&5
14961 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14963 echo $ac_n "(cached) $ac_c" 1>&6
14964 else
14965 ac_save_LIBS="$LIBS"
14966 LIBS="-l$THREADS_LINK $LIBS"
14967 cat > conftest.$ac_ext <<EOF
14968 #line 14969 "configure"
14969 #include "confdefs.h"
14970 /* Override any gcc2 internal prototype to avoid an error. */
14971 /* We use char because int might match the return type of a gcc2
14972 builtin and then its argument prototype would still apply. */
14973 char pthread_cancel();
14974
14975 int main() {
14976 pthread_cancel()
14977 ; return 0; }
14978 EOF
14979 if { (eval echo configure:14980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14980 rm -rf conftest*
14981 eval "ac_cv_lib_$ac_lib_var=yes"
14982 else
14983 echo "configure: failed program was:" >&5
14984 cat conftest.$ac_ext >&5
14985 rm -rf conftest*
14986 eval "ac_cv_lib_$ac_lib_var=no"
14987 fi
14988 rm -f conftest*
14989 LIBS="$ac_save_LIBS"
14990
14991 fi
14992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14993 echo "$ac_t""yes" 1>&6
14994 cat >> confdefs.h <<\EOF
14995 #define HAVE_PTHREAD_CANCEL 1
14996 EOF
14997
14998 else
14999 echo "$ac_t""no" 1>&6
15000 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
15001 fi
15002
15003
15004 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
15005 echo "configure:15006: checking for pthread_cleanup_push/pop" >&5
15006 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15007 echo $ac_n "(cached) $ac_c" 1>&6
15008 else
15009
15010 cat > conftest.$ac_ext <<EOF
15011 #line 15012 "configure"
15012 #include "confdefs.h"
15013 #include <pthread.h>
15014 int main() {
15015
15016 pthread_cleanup_push(NULL, NULL);
15017 pthread_cleanup_pop(0);
15018
15019 ; return 0; }
15020 EOF
15021 if { (eval echo configure:15022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15022 rm -rf conftest*
15023
15024 wx_cv_func_pthread_cleanup_push=yes
15025
15026 else
15027 echo "configure: failed program was:" >&5
15028 cat conftest.$ac_ext >&5
15029 rm -rf conftest*
15030
15031 wx_cv_func_pthread_cleanup_push=no
15032
15033 fi
15034 rm -f conftest*
15035
15036 fi
15037
15038 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
15039
15040 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
15041 cat >> confdefs.h <<\EOF
15042 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
15043 EOF
15044
15045 fi
15046
15047
15048 if test "x$wx_lib_glibc21" = "xyes"; then
15049 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
15050 fi
15051
15052 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
15053 echo "configure:15054: checking for pthread_mutexattr_t" >&5
15054 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
15055 echo $ac_n "(cached) $ac_c" 1>&6
15056 else
15057
15058 cat > conftest.$ac_ext <<EOF
15059 #line 15060 "configure"
15060 #include "confdefs.h"
15061 #include <pthread.h>
15062 int main() {
15063
15064 pthread_mutexattr_t attr;
15065 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
15066
15067 ; return 0; }
15068 EOF
15069 if { (eval echo configure:15070: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15070 rm -rf conftest*
15071
15072 wx_cv_type_pthread_mutexattr_t=yes
15073
15074 else
15075 echo "configure: failed program was:" >&5
15076 cat conftest.$ac_ext >&5
15077 rm -rf conftest*
15078
15079 wx_cv_type_pthread_mutexattr_t=no
15080
15081
15082 fi
15083 rm -f conftest*
15084
15085 fi
15086
15087 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
15088
15089 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
15090 cat >> confdefs.h <<\EOF
15091 #define HAVE_PTHREAD_MUTEXATTR_T 1
15092 EOF
15093
15094 else
15095 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
15096 echo "configure:15097: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
15097 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
15098 echo $ac_n "(cached) $ac_c" 1>&6
15099 else
15100
15101 cat > conftest.$ac_ext <<EOF
15102 #line 15103 "configure"
15103 #include "confdefs.h"
15104 #include <pthread.h>
15105 int main() {
15106
15107 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
15108
15109 ; return 0; }
15110 EOF
15111 if { (eval echo configure:15112: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15112 rm -rf conftest*
15113
15114 wx_cv_type_pthread_rec_mutex_init=yes
15115
15116 else
15117 echo "configure: failed program was:" >&5
15118 cat conftest.$ac_ext >&5
15119 rm -rf conftest*
15120
15121 wx_cv_type_pthread_rec_mutex_init=no
15122
15123
15124 fi
15125 rm -f conftest*
15126
15127 fi
15128
15129 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
15130 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
15131 cat >> confdefs.h <<\EOF
15132 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
15133 EOF
15134
15135 else
15136 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
15137 fi
15138 fi
15139
15140 THREADS_LINK="-l$THREADS_LINK"
15141
15142 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
15143 CPPFLAGS="${CFLAGS} -mt"
15144 CXXFLAGS="${CXXFLAGS} -mt"
15145 LDFLAGS="${LDFLAGS} -mt"
15146 fi
15147 fi
15148
15149 fi
15150
15151 if test "$wxUSE_THREADS" = "yes"; then
15152 cat >> confdefs.h <<\EOF
15153 #define wxUSE_THREADS 1
15154 EOF
15155
15156
15157 if test "$USE_DARWIN" != 1; then
15158 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15159 fi
15160
15161 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
15162 else
15163 if test "$ac_cv_func_strtok_r" = "yes"; then
15164 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
15165 echo "configure:15166: checking if -D_REENTRANT is needed" >&5
15166 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
15167 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15168 echo "$ac_t""yes" 1>&6
15169 else
15170 echo "$ac_t""no" 1>&6
15171 fi
15172 fi
15173 fi
15174
15175 if test "$WXGTK20" = 1 ; then
15176 cat >> confdefs.h <<EOF
15177 #define __WXGTK20__ $WXGTK20
15178 EOF
15179
15180 WXGTK12=1
15181 fi
15182
15183 if test "$WXGTK12" = 1 ; then
15184 cat >> confdefs.h <<EOF
15185 #define __WXGTK12__ $WXGTK12
15186 EOF
15187
15188 fi
15189
15190 if test "$WXGTK127" = 1 ; then
15191 cat >> confdefs.h <<EOF
15192 #define __WXGTK127__ $WXGTK127
15193 EOF
15194
15195 fi
15196
15197 WXDEBUG=
15198
15199 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15200 WXDEBUG="-g"
15201 wxUSE_OPTIMISE=no
15202 fi
15203
15204 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15205 wxUSE_DEBUG_INFO=yes
15206 WXDEBUG="-ggdb"
15207 fi
15208
15209 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
15210 cat >> confdefs.h <<\EOF
15211 #define WXDEBUG 1
15212 EOF
15213
15214 WXDEBUG_DEFINE="-D__WXDEBUG__"
15215 else
15216 if test "$wxUSE_GTK" = 1 ; then
15217 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15218 fi
15219 fi
15220
15221 if test "$wxUSE_MEM_TRACING" = "yes" ; then
15222 cat >> confdefs.h <<\EOF
15223 #define wxUSE_MEMORY_TRACING 1
15224 EOF
15225
15226 cat >> confdefs.h <<\EOF
15227 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
15228 EOF
15229
15230 cat >> confdefs.h <<\EOF
15231 #define wxUSE_DEBUG_NEW_ALWAYS 1
15232 EOF
15233
15234 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15235 fi
15236
15237 if test "$wxUSE_DMALLOC" = "yes" ; then
15238 DMALLOC_LINK="-ldmalloc"
15239 fi
15240
15241 PROFILE=
15242 if test "$wxUSE_PROFILE" = "yes" ; then
15243 PROFILE="-pg"
15244 fi
15245
15246 if test "$GCC" = yes ; then
15247 if test "$wxUSE_NO_RTTI" = "yes" ; then
15248 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
15249 fi
15250 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
15251 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
15252 fi
15253 if test "$wxUSE_PERMISSIVE" = "yes" ; then
15254 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
15255 fi
15256 if test "$wxUSE_NO_DEPS" = "no" ; then
15257 CFLAGS="-MMD ${CFLAGS}"
15258 CXXFLAGS="-MMD ${CXXFLAGS}"
15259 fi
15260 if test "$USE_WIN32" = 1 ; then
15261 # I'm not even really sure what this was ever added to solve,
15262 # but someone added it for mingw native builds, so I guess
15263 # they had a reason, right??
15264 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
15265 fi
15266 fi
15267
15268
15269 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15270 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15271 if test "$wxUSE_OPTIMISE" = "no" ; then
15272 OPTIMISE=
15273 else
15274 if test "$GCC" = yes ; then
15275 OPTIMISE="-O2"
15276 case "${host}" in
15277 i586-*-*|i686-*-* )
15278 OPTIMISE="${OPTIMISE} "
15279 ;;
15280 esac
15281 else
15282 OPTIMISE="-O"
15283 fi
15284 fi
15285
15286 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
15287 cat >> confdefs.h <<\EOF
15288 #define WXWIN_COMPATIBILITY_2 1
15289 EOF
15290
15291
15292 WXWIN_COMPATIBILITY_2_2="yes"
15293 fi
15294
15295 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
15296 cat >> confdefs.h <<\EOF
15297 #define WXWIN_COMPATIBILITY_2_2 1
15298 EOF
15299
15300 fi
15301
15302
15303 ZLIB_INCLUDE=
15304 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
15305 cat >> confdefs.h <<\EOF
15306 #define wxUSE_ZLIB 1
15307 EOF
15308
15309 if test "$wxUSE_ZLIB" = "yes" ; then
15310 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15311 else
15312 ZLIB_LINK=
15313 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15314 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
15315 echo "configure:15316: checking for zlib.h" >&5
15316 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15317 echo $ac_n "(cached) $ac_c" 1>&6
15318 else
15319 cat > conftest.$ac_ext <<EOF
15320 #line 15321 "configure"
15321 #include "confdefs.h"
15322 #include <zlib.h>
15323 EOF
15324 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15325 { (eval echo configure:15326: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15326 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15327 if test -z "$ac_err"; then
15328 rm -rf conftest*
15329 eval "ac_cv_header_$ac_safe=yes"
15330 else
15331 echo "$ac_err" >&5
15332 echo "configure: failed program was:" >&5
15333 cat conftest.$ac_ext >&5
15334 rm -rf conftest*
15335 eval "ac_cv_header_$ac_safe=no"
15336 fi
15337 rm -f conftest*
15338 fi
15339 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15340 echo "$ac_t""yes" 1>&6
15341 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
15342 echo "configure:15343: checking for deflate in -lz" >&5
15343 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15344 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15345 echo $ac_n "(cached) $ac_c" 1>&6
15346 else
15347 ac_save_LIBS="$LIBS"
15348 LIBS="-lz $LIBS"
15349 cat > conftest.$ac_ext <<EOF
15350 #line 15351 "configure"
15351 #include "confdefs.h"
15352 /* Override any gcc2 internal prototype to avoid an error. */
15353 /* We use char because int might match the return type of a gcc2
15354 builtin and then its argument prototype would still apply. */
15355 char deflate();
15356
15357 int main() {
15358 deflate()
15359 ; return 0; }
15360 EOF
15361 if { (eval echo configure:15362: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15362 rm -rf conftest*
15363 eval "ac_cv_lib_$ac_lib_var=yes"
15364 else
15365 echo "configure: failed program was:" >&5
15366 cat conftest.$ac_ext >&5
15367 rm -rf conftest*
15368 eval "ac_cv_lib_$ac_lib_var=no"
15369 fi
15370 rm -f conftest*
15371 LIBS="$ac_save_LIBS"
15372
15373 fi
15374 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15375 echo "$ac_t""yes" 1>&6
15376 ZLIB_LINK="-lz"
15377 else
15378 echo "$ac_t""no" 1>&6
15379 fi
15380
15381 else
15382 echo "$ac_t""no" 1>&6
15383 fi
15384
15385 if test "x$ZLIB_LINK" = "x" ; then
15386 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
15387 fi
15388 fi
15389 fi
15390
15391 PNG_INCLUDE=
15392 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
15393 cat >> confdefs.h <<\EOF
15394 #define wxUSE_LIBPNG 1
15395 EOF
15396
15397 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
15398 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
15399 wxUSE_LIBPNG=yes
15400 fi
15401
15402 if test "$wxUSE_LIBPNG" = "yes" ; then
15403 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15404 else
15405 PNG_LINK=
15406 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15407 echo $ac_n "checking for png.h""... $ac_c" 1>&6
15408 echo "configure:15409: checking for png.h" >&5
15409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15410 echo $ac_n "(cached) $ac_c" 1>&6
15411 else
15412 cat > conftest.$ac_ext <<EOF
15413 #line 15414 "configure"
15414 #include "confdefs.h"
15415 #include <png.h>
15416 EOF
15417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15418 { (eval echo configure:15419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15420 if test -z "$ac_err"; then
15421 rm -rf conftest*
15422 eval "ac_cv_header_$ac_safe=yes"
15423 else
15424 echo "$ac_err" >&5
15425 echo "configure: failed program was:" >&5
15426 cat conftest.$ac_ext >&5
15427 rm -rf conftest*
15428 eval "ac_cv_header_$ac_safe=no"
15429 fi
15430 rm -f conftest*
15431 fi
15432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15433 echo "$ac_t""yes" 1>&6
15434 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
15435 echo "configure:15436: checking for png_check_sig in -lpng" >&5
15436 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15437 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15438 echo $ac_n "(cached) $ac_c" 1>&6
15439 else
15440 ac_save_LIBS="$LIBS"
15441 LIBS="-lpng -lz -lm $LIBS"
15442 cat > conftest.$ac_ext <<EOF
15443 #line 15444 "configure"
15444 #include "confdefs.h"
15445 /* Override any gcc2 internal prototype to avoid an error. */
15446 /* We use char because int might match the return type of a gcc2
15447 builtin and then its argument prototype would still apply. */
15448 char png_check_sig();
15449
15450 int main() {
15451 png_check_sig()
15452 ; return 0; }
15453 EOF
15454 if { (eval echo configure:15455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15455 rm -rf conftest*
15456 eval "ac_cv_lib_$ac_lib_var=yes"
15457 else
15458 echo "configure: failed program was:" >&5
15459 cat conftest.$ac_ext >&5
15460 rm -rf conftest*
15461 eval "ac_cv_lib_$ac_lib_var=no"
15462 fi
15463 rm -f conftest*
15464 LIBS="$ac_save_LIBS"
15465
15466 fi
15467 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15468 echo "$ac_t""yes" 1>&6
15469 PNG_LINK="-lpng"
15470 else
15471 echo "$ac_t""no" 1>&6
15472 fi
15473
15474
15475 else
15476 echo "$ac_t""no" 1>&6
15477 fi
15478
15479 if test "x$PNG_LINK" = "x" ; then
15480 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
15481 fi
15482 fi
15483
15484 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15485 fi
15486
15487 JPEG_INCLUDE=
15488 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
15489 cat >> confdefs.h <<\EOF
15490 #define wxUSE_LIBJPEG 1
15491 EOF
15492
15493 if test "$wxUSE_LIBJPEG" = "yes" ; then
15494 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15495 else
15496 JPEG_LINK=
15497 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
15498 echo "configure:15499: checking for jpeglib.h" >&5
15499 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
15500 echo $ac_n "(cached) $ac_c" 1>&6
15501 else
15502 cat > conftest.$ac_ext <<EOF
15503 #line 15504 "configure"
15504 #include "confdefs.h"
15505
15506 #undef HAVE_STDLIB_H
15507 #include <stdio.h>
15508 #include <jpeglib.h>
15509
15510 int main() {
15511
15512
15513 ; return 0; }
15514 EOF
15515 if { (eval echo configure:15516: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15516 rm -rf conftest*
15517 ac_cv_header_jpeglib_h=yes
15518 else
15519 echo "configure: failed program was:" >&5
15520 cat conftest.$ac_ext >&5
15521 rm -rf conftest*
15522 ac_cv_header_jpeglib_h=no
15523
15524 fi
15525 rm -f conftest*
15526
15527 fi
15528
15529 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15530
15531 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15532 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
15533 echo "configure:15534: checking for jpeg_read_header in -ljpeg" >&5
15534 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15535 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15536 echo $ac_n "(cached) $ac_c" 1>&6
15537 else
15538 ac_save_LIBS="$LIBS"
15539 LIBS="-ljpeg $LIBS"
15540 cat > conftest.$ac_ext <<EOF
15541 #line 15542 "configure"
15542 #include "confdefs.h"
15543 /* Override any gcc2 internal prototype to avoid an error. */
15544 /* We use char because int might match the return type of a gcc2
15545 builtin and then its argument prototype would still apply. */
15546 char jpeg_read_header();
15547
15548 int main() {
15549 jpeg_read_header()
15550 ; return 0; }
15551 EOF
15552 if { (eval echo configure:15553: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15553 rm -rf conftest*
15554 eval "ac_cv_lib_$ac_lib_var=yes"
15555 else
15556 echo "configure: failed program was:" >&5
15557 cat conftest.$ac_ext >&5
15558 rm -rf conftest*
15559 eval "ac_cv_lib_$ac_lib_var=no"
15560 fi
15561 rm -f conftest*
15562 LIBS="$ac_save_LIBS"
15563
15564 fi
15565 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15566 echo "$ac_t""yes" 1>&6
15567 JPEG_LINK="-ljpeg"
15568 else
15569 echo "$ac_t""no" 1>&6
15570 fi
15571
15572 fi
15573
15574 if test "x$JPEG_LINK" = "x" ; then
15575 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
15576 fi
15577 fi
15578 fi
15579
15580 TIFF_INCLUDE=
15581 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
15582 cat >> confdefs.h <<\EOF
15583 #define wxUSE_LIBTIFF 1
15584 EOF
15585
15586 if test "$wxUSE_LIBTIFF" = "yes" ; then
15587 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15588 else
15589 TIFF_LINK=
15590 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15591 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
15592 echo "configure:15593: checking for tiffio.h" >&5
15593 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15594 echo $ac_n "(cached) $ac_c" 1>&6
15595 else
15596 cat > conftest.$ac_ext <<EOF
15597 #line 15598 "configure"
15598 #include "confdefs.h"
15599 #include <tiffio.h>
15600 EOF
15601 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15602 { (eval echo configure:15603: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15603 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15604 if test -z "$ac_err"; then
15605 rm -rf conftest*
15606 eval "ac_cv_header_$ac_safe=yes"
15607 else
15608 echo "$ac_err" >&5
15609 echo "configure: failed program was:" >&5
15610 cat conftest.$ac_ext >&5
15611 rm -rf conftest*
15612 eval "ac_cv_header_$ac_safe=no"
15613 fi
15614 rm -f conftest*
15615 fi
15616 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15617 echo "$ac_t""yes" 1>&6
15618 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
15619 echo "configure:15620: checking for TIFFError in -ltiff" >&5
15620 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15621 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15622 echo $ac_n "(cached) $ac_c" 1>&6
15623 else
15624 ac_save_LIBS="$LIBS"
15625 LIBS="-ltiff -lm $LIBS"
15626 cat > conftest.$ac_ext <<EOF
15627 #line 15628 "configure"
15628 #include "confdefs.h"
15629 /* Override any gcc2 internal prototype to avoid an error. */
15630 /* We use char because int might match the return type of a gcc2
15631 builtin and then its argument prototype would still apply. */
15632 char TIFFError();
15633
15634 int main() {
15635 TIFFError()
15636 ; return 0; }
15637 EOF
15638 if { (eval echo configure:15639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15639 rm -rf conftest*
15640 eval "ac_cv_lib_$ac_lib_var=yes"
15641 else
15642 echo "configure: failed program was:" >&5
15643 cat conftest.$ac_ext >&5
15644 rm -rf conftest*
15645 eval "ac_cv_lib_$ac_lib_var=no"
15646 fi
15647 rm -f conftest*
15648 LIBS="$ac_save_LIBS"
15649
15650 fi
15651 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15652 echo "$ac_t""yes" 1>&6
15653 TIFF_LINK="-ltiff"
15654 else
15655 echo "$ac_t""no" 1>&6
15656 fi
15657
15658 else
15659 echo "$ac_t""no" 1>&6
15660 fi
15661
15662 if test "x$TIFF_LINK" = "x" ; then
15663 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
15664 fi
15665 fi
15666 fi
15667
15668 FREETYPE_INCLUDE=
15669 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
15670 cat >> confdefs.h <<\EOF
15671 #define wxUSE_FREETYPE 1
15672 EOF
15673
15674 if test "$wxUSE_FREETYPE" = "yes" ; then
15675 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15676 else
15677 FREETYPE_LINK=
15678 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15679 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
15680 echo "configure:15681: checking for freetype.h" >&5
15681 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15682 echo $ac_n "(cached) $ac_c" 1>&6
15683 else
15684 cat > conftest.$ac_ext <<EOF
15685 #line 15686 "configure"
15686 #include "confdefs.h"
15687 #include <freetype.h>
15688 EOF
15689 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15690 { (eval echo configure:15691: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15691 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15692 if test -z "$ac_err"; then
15693 rm -rf conftest*
15694 eval "ac_cv_header_$ac_safe=yes"
15695 else
15696 echo "$ac_err" >&5
15697 echo "configure: failed program was:" >&5
15698 cat conftest.$ac_ext >&5
15699 rm -rf conftest*
15700 eval "ac_cv_header_$ac_safe=no"
15701 fi
15702 rm -f conftest*
15703 fi
15704 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15705 echo "$ac_t""yes" 1>&6
15706 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
15707 echo "configure:15708: checking for FT_Render_Glyph in -lfreetype" >&5
15708 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15709 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15710 echo $ac_n "(cached) $ac_c" 1>&6
15711 else
15712 ac_save_LIBS="$LIBS"
15713 LIBS="-lfreetype -lm $LIBS"
15714 cat > conftest.$ac_ext <<EOF
15715 #line 15716 "configure"
15716 #include "confdefs.h"
15717 /* Override any gcc2 internal prototype to avoid an error. */
15718 /* We use char because int might match the return type of a gcc2
15719 builtin and then its argument prototype would still apply. */
15720 char FT_Render_Glyph();
15721
15722 int main() {
15723 FT_Render_Glyph()
15724 ; return 0; }
15725 EOF
15726 if { (eval echo configure:15727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15727 rm -rf conftest*
15728 eval "ac_cv_lib_$ac_lib_var=yes"
15729 else
15730 echo "configure: failed program was:" >&5
15731 cat conftest.$ac_ext >&5
15732 rm -rf conftest*
15733 eval "ac_cv_lib_$ac_lib_var=no"
15734 fi
15735 rm -f conftest*
15736 LIBS="$ac_save_LIBS"
15737
15738 fi
15739 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15740 echo "$ac_t""yes" 1>&6
15741 FREETYPE_LINK="-lfreetype"
15742 else
15743 echo "$ac_t""no" 1>&6
15744 fi
15745
15746
15747 else
15748 echo "$ac_t""no" 1>&6
15749 fi
15750
15751 if test "x$FREETYPE_LINK" = "x" ; then
15752 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15753 fi
15754 fi
15755 fi
15756
15757
15758 if test "$wxUSE_GUI" = "yes"; then
15759 cat >> confdefs.h <<\EOF
15760 #define wxUSE_GUI 1
15761 EOF
15762
15763
15764 else
15765 cat >> confdefs.h <<\EOF
15766 #define wxUSE_NOGUI 1
15767 EOF
15768
15769 fi
15770
15771
15772 if test "$wxUSE_UNIX" = "yes"; then
15773 cat >> confdefs.h <<\EOF
15774 #define wxUSE_UNIX 1
15775 EOF
15776
15777 fi
15778
15779
15780 if test "$wxUSE_APPLE_IEEE" = "yes"; then
15781 cat >> confdefs.h <<\EOF
15782 #define wxUSE_APPLE_IEEE 1
15783 EOF
15784
15785 fi
15786
15787 if test "$wxUSE_TIMER" = "yes"; then
15788 cat >> confdefs.h <<\EOF
15789 #define wxUSE_TIMER 1
15790 EOF
15791
15792 fi
15793
15794 if test "$wxUSE_WAVE" = "yes"; then
15795 cat >> confdefs.h <<\EOF
15796 #define wxUSE_WAVE 1
15797 EOF
15798
15799 fi
15800
15801 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15802 cat >> confdefs.h <<\EOF
15803 #define wxUSE_CMDLINE_PARSER 1
15804 EOF
15805
15806 fi
15807
15808 if test "$wxUSE_STOPWATCH" = "yes"; then
15809 cat >> confdefs.h <<\EOF
15810 #define wxUSE_STOPWATCH 1
15811 EOF
15812
15813 fi
15814
15815 if test "$wxUSE_DATETIME" = "yes"; then
15816 cat >> confdefs.h <<\EOF
15817 #define wxUSE_DATETIME 1
15818 EOF
15819
15820 fi
15821
15822 if test "$wxUSE_TIMEDATE" = "yes"; then
15823 cat >> confdefs.h <<\EOF
15824 #define wxUSE_TIMEDATE 1
15825 EOF
15826
15827 fi
15828
15829 if test "$wxUSE_FILE" = "yes"; then
15830 cat >> confdefs.h <<\EOF
15831 #define wxUSE_FILE 1
15832 EOF
15833
15834 fi
15835
15836 if test "$wxUSE_FFILE" = "yes"; then
15837 cat >> confdefs.h <<\EOF
15838 #define wxUSE_FFILE 1
15839 EOF
15840
15841 fi
15842
15843 if test "$wxUSE_FILESYSTEM" = "yes"; then
15844 cat >> confdefs.h <<\EOF
15845 #define wxUSE_FILESYSTEM 1
15846 EOF
15847
15848 fi
15849
15850 if test "$wxUSE_FS_INET" = "yes"; then
15851 cat >> confdefs.h <<\EOF
15852 #define wxUSE_FS_INET 1
15853 EOF
15854
15855 fi
15856
15857 if test "$wxUSE_FS_ZIP" = "yes"; then
15858 cat >> confdefs.h <<\EOF
15859 #define wxUSE_FS_ZIP 1
15860 EOF
15861
15862 fi
15863
15864 if test "$wxUSE_ZIPSTREAM" = "yes"; then
15865 cat >> confdefs.h <<\EOF
15866 #define wxUSE_ZIPSTREAM 1
15867 EOF
15868
15869 fi
15870
15871 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15872 cat >> confdefs.h <<\EOF
15873 #define wxUSE_ON_FATAL_EXCEPTION 1
15874 EOF
15875
15876 fi
15877
15878 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15879 cat >> confdefs.h <<\EOF
15880 #define wxUSE_SNGLINST_CHECKER 1
15881 EOF
15882
15883 fi
15884
15885 if test "$wxUSE_BUSYINFO" = "yes"; then
15886 cat >> confdefs.h <<\EOF
15887 #define wxUSE_BUSYINFO 1
15888 EOF
15889
15890 fi
15891
15892 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15893 cat >> confdefs.h <<\EOF
15894 #define wxUSE_STD_IOSTREAM 1
15895 EOF
15896
15897 fi
15898
15899 if test "$wxUSE_TEXTFILE" = "yes"; then
15900 if test "$wxUSE_FILE" != "yes"; then
15901 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15902 else
15903 cat >> confdefs.h <<\EOF
15904 #define wxUSE_TEXTFILE 1
15905 EOF
15906
15907 fi
15908 fi
15909
15910 if test "$wxUSE_CONFIG" = "yes" ; then
15911 if test "$wxUSE_TEXTFILE" != "yes"; then
15912 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15913 else
15914 cat >> confdefs.h <<\EOF
15915 #define wxUSE_CONFIG 1
15916 EOF
15917
15918 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15919 fi
15920 fi
15921
15922 if test "$wxUSE_INTL" = "yes" ; then
15923 if test "$wxUSE_FILE" != "yes"; then
15924 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
15925 else
15926 cat >> confdefs.h <<\EOF
15927 #define wxUSE_INTL 1
15928 EOF
15929
15930 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
15931 GUIDIST="$GUIDIST INTL_DIST"
15932 fi
15933 fi
15934
15935 if test "$wxUSE_LOG" = "yes"; then
15936 cat >> confdefs.h <<\EOF
15937 #define wxUSE_LOG 1
15938 EOF
15939
15940
15941 if test "$wxUSE_LOGGUI" = "yes"; then
15942 cat >> confdefs.h <<\EOF
15943 #define wxUSE_LOGGUI 1
15944 EOF
15945
15946 fi
15947
15948 if test "$wxUSE_LOGWINDOW" = "yes"; then
15949 cat >> confdefs.h <<\EOF
15950 #define wxUSE_LOGWINDOW 1
15951 EOF
15952
15953 fi
15954 fi
15955
15956 if test "$wxUSE_LONGLONG" = "yes"; then
15957 cat >> confdefs.h <<\EOF
15958 #define wxUSE_LONGLONG 1
15959 EOF
15960
15961 fi
15962
15963 if test "$wxUSE_GEOMETRY" = "yes"; then
15964 cat >> confdefs.h <<\EOF
15965 #define wxUSE_GEOMETRY 1
15966 EOF
15967
15968 fi
15969
15970 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
15971 cat >> confdefs.h <<\EOF
15972 #define wxUSE_DIALUP_MANAGER 1
15973 EOF
15974
15975 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
15976 fi
15977
15978 if test "$wxUSE_STREAMS" = "yes" ; then
15979 cat >> confdefs.h <<\EOF
15980 #define wxUSE_STREAMS 1
15981 EOF
15982
15983 fi
15984
15985
15986 if test "$wxUSE_DATETIME" = "yes"; then
15987 for ac_func in strptime
15988 do
15989 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15990 echo "configure:15991: checking for $ac_func" >&5
15991 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15992 echo $ac_n "(cached) $ac_c" 1>&6
15993 else
15994 cat > conftest.$ac_ext <<EOF
15995 #line 15996 "configure"
15996 #include "confdefs.h"
15997 /* System header to define __stub macros and hopefully few prototypes,
15998 which can conflict with char $ac_func(); below. */
15999 #include <assert.h>
16000 /* Override any gcc2 internal prototype to avoid an error. */
16001 /* We use char because int might match the return type of a gcc2
16002 builtin and then its argument prototype would still apply. */
16003 char $ac_func();
16004
16005 int main() {
16006
16007 /* The GNU C library defines this for functions which it implements
16008 to always fail with ENOSYS. Some functions are actually named
16009 something starting with __ and the normal name is an alias. */
16010 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16011 choke me
16012 #else
16013 $ac_func();
16014 #endif
16015
16016 ; return 0; }
16017 EOF
16018 if { (eval echo configure:16019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16019 rm -rf conftest*
16020 eval "ac_cv_func_$ac_func=yes"
16021 else
16022 echo "configure: failed program was:" >&5
16023 cat conftest.$ac_ext >&5
16024 rm -rf conftest*
16025 eval "ac_cv_func_$ac_func=no"
16026 fi
16027 rm -f conftest*
16028 fi
16029
16030 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16031 echo "$ac_t""yes" 1>&6
16032 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16033 cat >> confdefs.h <<EOF
16034 #define $ac_tr_func 1
16035 EOF
16036
16037 else
16038 echo "$ac_t""no" 1>&6
16039 fi
16040 done
16041
16042
16043 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
16044 echo "configure:16045: checking for timezone variable in <time.h>" >&5
16045 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16046 echo $ac_n "(cached) $ac_c" 1>&6
16047 else
16048
16049 cat > conftest.$ac_ext <<EOF
16050 #line 16051 "configure"
16051 #include "confdefs.h"
16052
16053 #include <time.h>
16054
16055 int main() {
16056
16057 int tz;
16058 tz = timezone;
16059
16060 ; return 0; }
16061 EOF
16062 if { (eval echo configure:16063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16063 rm -rf conftest*
16064
16065 wx_cv_var_timezone=timezone
16066
16067 else
16068 echo "configure: failed program was:" >&5
16069 cat conftest.$ac_ext >&5
16070 rm -rf conftest*
16071
16072 cat > conftest.$ac_ext <<EOF
16073 #line 16074 "configure"
16074 #include "confdefs.h"
16075
16076 #include <time.h>
16077
16078 int main() {
16079
16080 int tz;
16081 tz = _timezone;
16082
16083 ; return 0; }
16084 EOF
16085 if { (eval echo configure:16086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16086 rm -rf conftest*
16087
16088 wx_cv_var_timezone=_timezone
16089
16090 else
16091 echo "configure: failed program was:" >&5
16092 cat conftest.$ac_ext >&5
16093 rm -rf conftest*
16094
16095 cat > conftest.$ac_ext <<EOF
16096 #line 16097 "configure"
16097 #include "confdefs.h"
16098
16099 #include <time.h>
16100
16101 int main() {
16102
16103 int tz;
16104 tz = __timezone;
16105
16106 ; return 0; }
16107 EOF
16108 if { (eval echo configure:16109: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16109 rm -rf conftest*
16110
16111 wx_cv_var_timezone=__timezone
16112
16113 else
16114 echo "configure: failed program was:" >&5
16115 cat conftest.$ac_ext >&5
16116 rm -rf conftest*
16117 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16118
16119 fi
16120 rm -f conftest*
16121
16122
16123 fi
16124 rm -f conftest*
16125
16126
16127 fi
16128 rm -f conftest*
16129
16130
16131 fi
16132
16133 echo "$ac_t""$wx_cv_var_timezone" 1>&6
16134
16135 cat >> confdefs.h <<EOF
16136 #define WX_TIMEZONE $wx_cv_var_timezone
16137 EOF
16138
16139
16140 for ac_func in localtime
16141 do
16142 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16143 echo "configure:16144: checking for $ac_func" >&5
16144 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16145 echo $ac_n "(cached) $ac_c" 1>&6
16146 else
16147 cat > conftest.$ac_ext <<EOF
16148 #line 16149 "configure"
16149 #include "confdefs.h"
16150 /* System header to define __stub macros and hopefully few prototypes,
16151 which can conflict with char $ac_func(); below. */
16152 #include <assert.h>
16153 /* Override any gcc2 internal prototype to avoid an error. */
16154 /* We use char because int might match the return type of a gcc2
16155 builtin and then its argument prototype would still apply. */
16156 char $ac_func();
16157
16158 int main() {
16159
16160 /* The GNU C library defines this for functions which it implements
16161 to always fail with ENOSYS. Some functions are actually named
16162 something starting with __ and the normal name is an alias. */
16163 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16164 choke me
16165 #else
16166 $ac_func();
16167 #endif
16168
16169 ; return 0; }
16170 EOF
16171 if { (eval echo configure:16172: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16172 rm -rf conftest*
16173 eval "ac_cv_func_$ac_func=yes"
16174 else
16175 echo "configure: failed program was:" >&5
16176 cat conftest.$ac_ext >&5
16177 rm -rf conftest*
16178 eval "ac_cv_func_$ac_func=no"
16179 fi
16180 rm -f conftest*
16181 fi
16182
16183 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16184 echo "$ac_t""yes" 1>&6
16185 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16186 cat >> confdefs.h <<EOF
16187 #define $ac_tr_func 1
16188 EOF
16189
16190 else
16191 echo "$ac_t""no" 1>&6
16192 fi
16193 done
16194
16195
16196 if test "$ac_cv_func_localtime" = "yes"; then
16197 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
16198 echo "configure:16199: checking for tm_gmtoff in struct tm" >&5
16199 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16200 echo $ac_n "(cached) $ac_c" 1>&6
16201 else
16202
16203 cat > conftest.$ac_ext <<EOF
16204 #line 16205 "configure"
16205 #include "confdefs.h"
16206
16207 #include <time.h>
16208
16209 int main() {
16210
16211 struct tm tm;
16212 tm.tm_gmtoff++;
16213
16214 ; return 0; }
16215 EOF
16216 if { (eval echo configure:16217: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16217 rm -rf conftest*
16218
16219 wx_cv_struct_tm_has_gmtoff=yes
16220
16221 else
16222 echo "configure: failed program was:" >&5
16223 cat conftest.$ac_ext >&5
16224 rm -rf conftest*
16225 wx_cv_struct_tm_has_gmtoff=no
16226
16227 fi
16228 rm -f conftest*
16229
16230 fi
16231
16232 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
16233 fi
16234
16235 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16236 cat >> confdefs.h <<\EOF
16237 #define WX_GMTOFF_IN_TM 1
16238 EOF
16239
16240 fi
16241
16242 for ac_func in gettimeofday ftime
16243 do
16244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16245 echo "configure:16246: checking for $ac_func" >&5
16246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16247 echo $ac_n "(cached) $ac_c" 1>&6
16248 else
16249 cat > conftest.$ac_ext <<EOF
16250 #line 16251 "configure"
16251 #include "confdefs.h"
16252 /* System header to define __stub macros and hopefully few prototypes,
16253 which can conflict with char $ac_func(); below. */
16254 #include <assert.h>
16255 /* Override any gcc2 internal prototype to avoid an error. */
16256 /* We use char because int might match the return type of a gcc2
16257 builtin and then its argument prototype would still apply. */
16258 char $ac_func();
16259
16260 int main() {
16261
16262 /* The GNU C library defines this for functions which it implements
16263 to always fail with ENOSYS. Some functions are actually named
16264 something starting with __ and the normal name is an alias. */
16265 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16266 choke me
16267 #else
16268 $ac_func();
16269 #endif
16270
16271 ; return 0; }
16272 EOF
16273 if { (eval echo configure:16274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16274 rm -rf conftest*
16275 eval "ac_cv_func_$ac_func=yes"
16276 else
16277 echo "configure: failed program was:" >&5
16278 cat conftest.$ac_ext >&5
16279 rm -rf conftest*
16280 eval "ac_cv_func_$ac_func=no"
16281 fi
16282 rm -f conftest*
16283 fi
16284
16285 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16286 echo "$ac_t""yes" 1>&6
16287 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16288 cat >> confdefs.h <<EOF
16289 #define $ac_tr_func 1
16290 EOF
16291 break
16292 else
16293 echo "$ac_t""no" 1>&6
16294 fi
16295 done
16296
16297
16298 if test "$ac_cv_func_gettimeofday" = "yes"; then
16299 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16300 echo "configure:16301: checking whether gettimeofday takes two arguments" >&5
16301 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16302 echo $ac_n "(cached) $ac_c" 1>&6
16303 else
16304
16305
16306 ac_ext=C
16307 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16308 ac_cpp='$CXXCPP $CPPFLAGS'
16309 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16310 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16311 cross_compiling=$ac_cv_prog_cxx_cross
16312
16313
16314 cat > conftest.$ac_ext <<EOF
16315 #line 16316 "configure"
16316 #include "confdefs.h"
16317
16318 #include <sys/time.h>
16319 #include <unistd.h>
16320
16321 int main() {
16322
16323 struct timeval tv;
16324 gettimeofday(&tv, NULL);
16325
16326 ; return 0; }
16327 EOF
16328 if { (eval echo configure:16329: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16329 rm -rf conftest*
16330 wx_cv_func_gettimeofday_has_2_args=yes
16331 else
16332 echo "configure: failed program was:" >&5
16333 cat conftest.$ac_ext >&5
16334 rm -rf conftest*
16335 cat > conftest.$ac_ext <<EOF
16336 #line 16337 "configure"
16337 #include "confdefs.h"
16338
16339 #include <sys/time.h>
16340 #include <unistd.h>
16341
16342 int main() {
16343
16344 struct timeval tv;
16345 gettimeofday(&tv);
16346
16347 ; return 0; }
16348 EOF
16349 if { (eval echo configure:16350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16350 rm -rf conftest*
16351 wx_cv_func_gettimeofday_has_2_args=no
16352 else
16353 echo "configure: failed program was:" >&5
16354 cat conftest.$ac_ext >&5
16355 rm -rf conftest*
16356
16357 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16358 wx_cv_func_gettimeofday_has_2_args=unknown
16359
16360
16361 fi
16362 rm -f conftest*
16363
16364 fi
16365 rm -f conftest*
16366 ac_ext=c
16367 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16368 ac_cpp='$CPP $CPPFLAGS'
16369 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16370 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16371 cross_compiling=$ac_cv_prog_cc_cross
16372
16373
16374 fi
16375
16376 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16377
16378 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16379 cat >> confdefs.h <<\EOF
16380 #define WX_GETTIMEOFDAY_NO_TZ 1
16381 EOF
16382
16383 fi
16384 fi
16385
16386 cat >> confdefs.h <<\EOF
16387 #define wxUSE_TIMEDATE 1
16388 EOF
16389
16390 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16391 fi
16392
16393
16394 if test "$TOOLKIT" != "MSW"; then
16395
16396 if test "$wxUSE_SOCKETS" = "yes"; then
16397 echo $ac_n "checking for socket""... $ac_c" 1>&6
16398 echo "configure:16399: checking for socket" >&5
16399 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16400 echo $ac_n "(cached) $ac_c" 1>&6
16401 else
16402 cat > conftest.$ac_ext <<EOF
16403 #line 16404 "configure"
16404 #include "confdefs.h"
16405 /* System header to define __stub macros and hopefully few prototypes,
16406 which can conflict with char socket(); below. */
16407 #include <assert.h>
16408 /* Override any gcc2 internal prototype to avoid an error. */
16409 /* We use char because int might match the return type of a gcc2
16410 builtin and then its argument prototype would still apply. */
16411 char socket();
16412
16413 int main() {
16414
16415 /* The GNU C library defines this for functions which it implements
16416 to always fail with ENOSYS. Some functions are actually named
16417 something starting with __ and the normal name is an alias. */
16418 #if defined (__stub_socket) || defined (__stub___socket)
16419 choke me
16420 #else
16421 socket();
16422 #endif
16423
16424 ; return 0; }
16425 EOF
16426 if { (eval echo configure:16427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16427 rm -rf conftest*
16428 eval "ac_cv_func_socket=yes"
16429 else
16430 echo "configure: failed program was:" >&5
16431 cat conftest.$ac_ext >&5
16432 rm -rf conftest*
16433 eval "ac_cv_func_socket=no"
16434 fi
16435 rm -f conftest*
16436 fi
16437
16438 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16439 echo "$ac_t""yes" 1>&6
16440 :
16441 else
16442 echo "$ac_t""no" 1>&6
16443 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16444 echo "configure:16445: checking for socket in -lsocket" >&5
16445 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16447 echo $ac_n "(cached) $ac_c" 1>&6
16448 else
16449 ac_save_LIBS="$LIBS"
16450 LIBS="-lsocket $LIBS"
16451 cat > conftest.$ac_ext <<EOF
16452 #line 16453 "configure"
16453 #include "confdefs.h"
16454 /* Override any gcc2 internal prototype to avoid an error. */
16455 /* We use char because int might match the return type of a gcc2
16456 builtin and then its argument prototype would still apply. */
16457 char socket();
16458
16459 int main() {
16460 socket()
16461 ; return 0; }
16462 EOF
16463 if { (eval echo configure:16464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16464 rm -rf conftest*
16465 eval "ac_cv_lib_$ac_lib_var=yes"
16466 else
16467 echo "configure: failed program was:" >&5
16468 cat conftest.$ac_ext >&5
16469 rm -rf conftest*
16470 eval "ac_cv_lib_$ac_lib_var=no"
16471 fi
16472 rm -f conftest*
16473 LIBS="$ac_save_LIBS"
16474
16475 fi
16476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16477 echo "$ac_t""yes" 1>&6
16478 INET_LINK="$INET_LINK -lsocket"
16479 else
16480 echo "$ac_t""no" 1>&6
16481
16482 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16483 wxUSE_SOCKETS=no
16484
16485
16486 fi
16487
16488
16489 fi
16490
16491 fi
16492
16493
16494 if test "$wxUSE_SOCKETS" = "yes" ; then
16495 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16496 echo "configure:16497: checking what is the type of the third argument of getsockname" >&5
16497 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16498 echo $ac_n "(cached) $ac_c" 1>&6
16499 else
16500
16501
16502 ac_ext=C
16503 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16504 ac_cpp='$CXXCPP $CPPFLAGS'
16505 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16506 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16507 cross_compiling=$ac_cv_prog_cxx_cross
16508
16509
16510 cat > conftest.$ac_ext <<EOF
16511 #line 16512 "configure"
16512 #include "confdefs.h"
16513
16514 #include <sys/types.h>
16515 #include <sys/socket.h>
16516
16517 int main() {
16518
16519 socklen_t len;
16520 getsockname(0, 0, &len);
16521
16522 ; return 0; }
16523 EOF
16524 if { (eval echo configure:16525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16525 rm -rf conftest*
16526 wx_cv_type_getsockname3=socklen_t
16527 else
16528 echo "configure: failed program was:" >&5
16529 cat conftest.$ac_ext >&5
16530 rm -rf conftest*
16531 cat > conftest.$ac_ext <<EOF
16532 #line 16533 "configure"
16533 #include "confdefs.h"
16534
16535 #include <sys/types.h>
16536 #include <sys/socket.h>
16537
16538 int main() {
16539
16540 size_t len;
16541 getsockname(0, 0, &len);
16542
16543 ; return 0; }
16544 EOF
16545 if { (eval echo configure:16546: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16546 rm -rf conftest*
16547 wx_cv_type_getsockname3=size_t
16548 else
16549 echo "configure: failed program was:" >&5
16550 cat conftest.$ac_ext >&5
16551 rm -rf conftest*
16552 cat > conftest.$ac_ext <<EOF
16553 #line 16554 "configure"
16554 #include "confdefs.h"
16555
16556 #include <sys/types.h>
16557 #include <sys/socket.h>
16558
16559 int main() {
16560
16561 int len;
16562 getsockname(0, 0, &len);
16563
16564 ; return 0; }
16565 EOF
16566 if { (eval echo configure:16567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16567 rm -rf conftest*
16568 wx_cv_type_getsockname3=int
16569 else
16570 echo "configure: failed program was:" >&5
16571 cat conftest.$ac_ext >&5
16572 rm -rf conftest*
16573 wx_cv_type_getsockname3=unknown
16574
16575 fi
16576 rm -f conftest*
16577
16578 fi
16579 rm -f conftest*
16580
16581 fi
16582 rm -f conftest*
16583
16584 ac_ext=c
16585 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16586 ac_cpp='$CPP $CPPFLAGS'
16587 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16588 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16589 cross_compiling=$ac_cv_prog_cc_cross
16590
16591
16592 fi
16593
16594 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
16595
16596 if test "$wx_cv_type_getsockname3" = "unknown"; then
16597 wxUSE_SOCKETS=no
16598 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16599 else
16600 cat >> confdefs.h <<EOF
16601 #define SOCKLEN_T $wx_cv_type_getsockname3
16602 EOF
16603
16604 fi
16605 fi
16606 fi
16607
16608 if test "$wxUSE_SOCKETS" = "yes" ; then
16609 cat >> confdefs.h <<\EOF
16610 #define wxUSE_SOCKETS 1
16611 EOF
16612
16613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
16614 fi
16615
16616
16617 if test "$wxUSE_GUI" = "yes"; then
16618
16619 if test "$TOOLKIT" != "MSW"; then
16620 if test "$wxUSE_JOYSTICK" = "yes"; then
16621 for ac_hdr in linux/joystick.h
16622 do
16623 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16624 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16625 echo "configure:16626: checking for $ac_hdr" >&5
16626 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16627 echo $ac_n "(cached) $ac_c" 1>&6
16628 else
16629 cat > conftest.$ac_ext <<EOF
16630 #line 16631 "configure"
16631 #include "confdefs.h"
16632 #include <$ac_hdr>
16633 EOF
16634 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16635 { (eval echo configure:16636: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16636 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16637 if test -z "$ac_err"; then
16638 rm -rf conftest*
16639 eval "ac_cv_header_$ac_safe=yes"
16640 else
16641 echo "$ac_err" >&5
16642 echo "configure: failed program was:" >&5
16643 cat conftest.$ac_ext >&5
16644 rm -rf conftest*
16645 eval "ac_cv_header_$ac_safe=no"
16646 fi
16647 rm -f conftest*
16648 fi
16649 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16650 echo "$ac_t""yes" 1>&6
16651 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16652 cat >> confdefs.h <<EOF
16653 #define $ac_tr_hdr 1
16654 EOF
16655
16656 else
16657 echo "$ac_t""no" 1>&6
16658 fi
16659 done
16660
16661 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16662 wxUSE_JOYSTICK=no
16663 echo "configure: warning: Joystick not supported by this system" 1>&2
16664 fi
16665 fi
16666 fi
16667
16668 if test "$wxUSE_JOYSTICK" = "yes"; then
16669 cat >> confdefs.h <<\EOF
16670 #define wxUSE_JOYSTICK 1
16671 EOF
16672
16673 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16674 fi
16675 fi
16676
16677
16678 if test "$TOOLKIT" != "MSW"; then
16679
16680 HAVE_DL_FUNCS=0
16681 HAVE_SHL_FUNCS=0
16682 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16683 if test "$USE_DARWIN" = 1; then
16684 HAVE_DL_FUNCS=1
16685 else
16686 for ac_func in dlopen
16687 do
16688 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16689 echo "configure:16690: checking for $ac_func" >&5
16690 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16691 echo $ac_n "(cached) $ac_c" 1>&6
16692 else
16693 cat > conftest.$ac_ext <<EOF
16694 #line 16695 "configure"
16695 #include "confdefs.h"
16696 /* System header to define __stub macros and hopefully few prototypes,
16697 which can conflict with char $ac_func(); below. */
16698 #include <assert.h>
16699 /* Override any gcc2 internal prototype to avoid an error. */
16700 /* We use char because int might match the return type of a gcc2
16701 builtin and then its argument prototype would still apply. */
16702 char $ac_func();
16703
16704 int main() {
16705
16706 /* The GNU C library defines this for functions which it implements
16707 to always fail with ENOSYS. Some functions are actually named
16708 something starting with __ and the normal name is an alias. */
16709 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16710 choke me
16711 #else
16712 $ac_func();
16713 #endif
16714
16715 ; return 0; }
16716 EOF
16717 if { (eval echo configure:16718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16718 rm -rf conftest*
16719 eval "ac_cv_func_$ac_func=yes"
16720 else
16721 echo "configure: failed program was:" >&5
16722 cat conftest.$ac_ext >&5
16723 rm -rf conftest*
16724 eval "ac_cv_func_$ac_func=no"
16725 fi
16726 rm -f conftest*
16727 fi
16728
16729 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16730 echo "$ac_t""yes" 1>&6
16731 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16732 cat >> confdefs.h <<EOF
16733 #define $ac_tr_func 1
16734 EOF
16735
16736 cat >> confdefs.h <<\EOF
16737 #define HAVE_DLOPEN 1
16738 EOF
16739
16740 HAVE_DL_FUNCS=1
16741
16742 else
16743 echo "$ac_t""no" 1>&6
16744 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
16745 echo "configure:16746: checking for dlopen in -ldl" >&5
16746 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16747 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16748 echo $ac_n "(cached) $ac_c" 1>&6
16749 else
16750 ac_save_LIBS="$LIBS"
16751 LIBS="-ldl $LIBS"
16752 cat > conftest.$ac_ext <<EOF
16753 #line 16754 "configure"
16754 #include "confdefs.h"
16755 /* Override any gcc2 internal prototype to avoid an error. */
16756 /* We use char because int might match the return type of a gcc2
16757 builtin and then its argument prototype would still apply. */
16758 char dlopen();
16759
16760 int main() {
16761 dlopen()
16762 ; return 0; }
16763 EOF
16764 if { (eval echo configure:16765: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16765 rm -rf conftest*
16766 eval "ac_cv_lib_$ac_lib_var=yes"
16767 else
16768 echo "configure: failed program was:" >&5
16769 cat conftest.$ac_ext >&5
16770 rm -rf conftest*
16771 eval "ac_cv_lib_$ac_lib_var=no"
16772 fi
16773 rm -f conftest*
16774 LIBS="$ac_save_LIBS"
16775
16776 fi
16777 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16778 echo "$ac_t""yes" 1>&6
16779
16780 cat >> confdefs.h <<\EOF
16781 #define HAVE_DLOPEN 1
16782 EOF
16783
16784 HAVE_DL_FUNCS=1
16785 LIBS="$LIBS -ldl"
16786
16787 else
16788 echo "$ac_t""no" 1>&6
16789
16790 for ac_func in shl_load
16791 do
16792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16793 echo "configure:16794: checking for $ac_func" >&5
16794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16795 echo $ac_n "(cached) $ac_c" 1>&6
16796 else
16797 cat > conftest.$ac_ext <<EOF
16798 #line 16799 "configure"
16799 #include "confdefs.h"
16800 /* System header to define __stub macros and hopefully few prototypes,
16801 which can conflict with char $ac_func(); below. */
16802 #include <assert.h>
16803 /* Override any gcc2 internal prototype to avoid an error. */
16804 /* We use char because int might match the return type of a gcc2
16805 builtin and then its argument prototype would still apply. */
16806 char $ac_func();
16807
16808 int main() {
16809
16810 /* The GNU C library defines this for functions which it implements
16811 to always fail with ENOSYS. Some functions are actually named
16812 something starting with __ and the normal name is an alias. */
16813 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16814 choke me
16815 #else
16816 $ac_func();
16817 #endif
16818
16819 ; return 0; }
16820 EOF
16821 if { (eval echo configure:16822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16822 rm -rf conftest*
16823 eval "ac_cv_func_$ac_func=yes"
16824 else
16825 echo "configure: failed program was:" >&5
16826 cat conftest.$ac_ext >&5
16827 rm -rf conftest*
16828 eval "ac_cv_func_$ac_func=no"
16829 fi
16830 rm -f conftest*
16831 fi
16832
16833 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16834 echo "$ac_t""yes" 1>&6
16835 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16836 cat >> confdefs.h <<EOF
16837 #define $ac_tr_func 1
16838 EOF
16839
16840 cat >> confdefs.h <<\EOF
16841 #define HAVE_SHL_LOAD 1
16842 EOF
16843
16844 HAVE_SHL_FUNCS=1
16845
16846 else
16847 echo "$ac_t""no" 1>&6
16848 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16849 echo "configure:16850: checking for dld in -lshl_load" >&5
16850 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16852 echo $ac_n "(cached) $ac_c" 1>&6
16853 else
16854 ac_save_LIBS="$LIBS"
16855 LIBS="-lshl_load $LIBS"
16856 cat > conftest.$ac_ext <<EOF
16857 #line 16858 "configure"
16858 #include "confdefs.h"
16859 /* Override any gcc2 internal prototype to avoid an error. */
16860 /* We use char because int might match the return type of a gcc2
16861 builtin and then its argument prototype would still apply. */
16862 char dld();
16863
16864 int main() {
16865 dld()
16866 ; return 0; }
16867 EOF
16868 if { (eval echo configure:16869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16869 rm -rf conftest*
16870 eval "ac_cv_lib_$ac_lib_var=yes"
16871 else
16872 echo "configure: failed program was:" >&5
16873 cat conftest.$ac_ext >&5
16874 rm -rf conftest*
16875 eval "ac_cv_lib_$ac_lib_var=no"
16876 fi
16877 rm -f conftest*
16878 LIBS="$ac_save_LIBS"
16879
16880 fi
16881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16882 echo "$ac_t""yes" 1>&6
16883
16884 HAVE_SHL_FUNCS=1
16885 LIBS="$LIBS -ldld"
16886
16887 else
16888 echo "$ac_t""no" 1>&6
16889 fi
16890
16891
16892 fi
16893 done
16894
16895
16896 fi
16897
16898
16899 fi
16900 done
16901
16902
16903 if test "$HAVE_DL_FUNCS" = 1; then
16904 for ac_func in dlerror
16905 do
16906 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16907 echo "configure:16908: checking for $ac_func" >&5
16908 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16909 echo $ac_n "(cached) $ac_c" 1>&6
16910 else
16911 cat > conftest.$ac_ext <<EOF
16912 #line 16913 "configure"
16913 #include "confdefs.h"
16914 /* System header to define __stub macros and hopefully few prototypes,
16915 which can conflict with char $ac_func(); below. */
16916 #include <assert.h>
16917 /* Override any gcc2 internal prototype to avoid an error. */
16918 /* We use char because int might match the return type of a gcc2
16919 builtin and then its argument prototype would still apply. */
16920 char $ac_func();
16921
16922 int main() {
16923
16924 /* The GNU C library defines this for functions which it implements
16925 to always fail with ENOSYS. Some functions are actually named
16926 something starting with __ and the normal name is an alias. */
16927 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16928 choke me
16929 #else
16930 $ac_func();
16931 #endif
16932
16933 ; return 0; }
16934 EOF
16935 if { (eval echo configure:16936: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16936 rm -rf conftest*
16937 eval "ac_cv_func_$ac_func=yes"
16938 else
16939 echo "configure: failed program was:" >&5
16940 cat conftest.$ac_ext >&5
16941 rm -rf conftest*
16942 eval "ac_cv_func_$ac_func=no"
16943 fi
16944 rm -f conftest*
16945 fi
16946
16947 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16948 echo "$ac_t""yes" 1>&6
16949 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16950 cat >> confdefs.h <<EOF
16951 #define $ac_tr_func 1
16952 EOF
16953 cat >> confdefs.h <<\EOF
16954 #define HAVE_DLERROR 1
16955 EOF
16956
16957 else
16958 echo "$ac_t""no" 1>&6
16959 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
16960 echo "configure:16961: checking for dlerror in -ldl" >&5
16961 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16962 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16963 echo $ac_n "(cached) $ac_c" 1>&6
16964 else
16965 ac_save_LIBS="$LIBS"
16966 LIBS="-ldl $LIBS"
16967 cat > conftest.$ac_ext <<EOF
16968 #line 16969 "configure"
16969 #include "confdefs.h"
16970 /* Override any gcc2 internal prototype to avoid an error. */
16971 /* We use char because int might match the return type of a gcc2
16972 builtin and then its argument prototype would still apply. */
16973 char dlerror();
16974
16975 int main() {
16976 dlerror()
16977 ; return 0; }
16978 EOF
16979 if { (eval echo configure:16980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16980 rm -rf conftest*
16981 eval "ac_cv_lib_$ac_lib_var=yes"
16982 else
16983 echo "configure: failed program was:" >&5
16984 cat conftest.$ac_ext >&5
16985 rm -rf conftest*
16986 eval "ac_cv_lib_$ac_lib_var=no"
16987 fi
16988 rm -f conftest*
16989 LIBS="$ac_save_LIBS"
16990
16991 fi
16992 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16993 echo "$ac_t""yes" 1>&6
16994 cat >> confdefs.h <<\EOF
16995 #define HAVE_DLERROR 1
16996 EOF
16997
16998 else
16999 echo "$ac_t""no" 1>&6
17000 fi
17001
17002 fi
17003 done
17004
17005 fi
17006 fi
17007
17008 if test "$HAVE_DL_FUNCS" = 0; then
17009 if test "$HAVE_SHL_FUNCS" = 0; then
17010 if test "$USE_UNIX" = 1; then
17011 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17012 wxUSE_DYNLIB_CLASS=no
17013 else
17014 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17015 fi
17016 fi
17017 fi
17018 fi
17019 fi
17020
17021 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
17022 cat >> confdefs.h <<\EOF
17023 #define wxUSE_DYNLIB_CLASS 1
17024 EOF
17025
17026 else
17027 wxUSE_ODBC=no
17028 wxUSE_SERIAL=no
17029 fi
17030
17031
17032 if test "$wxUSE_FONTMAP" = "yes" ; then
17033 cat >> confdefs.h <<\EOF
17034 #define wxUSE_FONTMAP 1
17035 EOF
17036
17037 fi
17038
17039 if test "$wxUSE_UNICODE" = "yes" ; then
17040 cat >> confdefs.h <<\EOF
17041 #define wxUSE_UNICODE 1
17042 EOF
17043
17044 fi
17045
17046 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
17047 cat >> confdefs.h <<\EOF
17048 #define wxUSE_WCSRTOMBS 1
17049 EOF
17050
17051 fi
17052
17053 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
17054 cat >> confdefs.h <<\EOF
17055 #define wxUSE_EXPERIMENTAL_PRINTF 1
17056 EOF
17057
17058 fi
17059
17060
17061 if test "$wxUSE_SERIAL" = "yes" ; then
17062 cat >> confdefs.h <<\EOF
17063 #define wxUSE_SERIAL 1
17064 EOF
17065
17066 fi
17067
17068
17069 IODBC_C_SRC=""
17070 if test "$wxUSE_ODBC" = "yes" ; then
17071 cat >> confdefs.h <<\EOF
17072 #define wxUSE_ODBC 1
17073 EOF
17074
17075 WXODBCFLAG="-D_IODBC_"
17076 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
17077 fi
17078
17079
17080 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
17081 cat >> confdefs.h <<\EOF
17082 #define wxUSE_POSTSCRIPT 1
17083 EOF
17084
17085 fi
17086
17087 cat >> confdefs.h <<\EOF
17088 #define wxUSE_AFM_FOR_POSTSCRIPT 1
17089 EOF
17090
17091
17092 cat >> confdefs.h <<\EOF
17093 #define wxUSE_NORMALIZED_PS_FONTS 1
17094 EOF
17095
17096
17097
17098 if test "$wxUSE_CONSTRAINTS" = "yes"; then
17099 cat >> confdefs.h <<\EOF
17100 #define wxUSE_CONSTRAINTS 1
17101 EOF
17102
17103 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17104 fi
17105
17106 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17107 cat >> confdefs.h <<\EOF
17108 #define wxUSE_MDI_ARCHITECTURE 1
17109 EOF
17110
17111 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17112 fi
17113
17114 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
17115 cat >> confdefs.h <<\EOF
17116 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
17117 EOF
17118
17119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17120 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17121 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17122 fi
17123 fi
17124
17125 if test "$wxUSE_HELP" = "yes"; then
17126 cat >> confdefs.h <<\EOF
17127 #define wxUSE_HELP 1
17128 EOF
17129
17130 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
17131
17132 if test "$USE_WIN32" = 1; then
17133 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
17134 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17135 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
17136 echo "configure:17137: checking for htmlhelp.h" >&5
17137 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17138 echo $ac_n "(cached) $ac_c" 1>&6
17139 else
17140 cat > conftest.$ac_ext <<EOF
17141 #line 17142 "configure"
17142 #include "confdefs.h"
17143 #include <htmlhelp.h>
17144 EOF
17145 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17146 { (eval echo configure:17147: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17147 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17148 if test -z "$ac_err"; then
17149 rm -rf conftest*
17150 eval "ac_cv_header_$ac_safe=yes"
17151 else
17152 echo "$ac_err" >&5
17153 echo "configure: failed program was:" >&5
17154 cat conftest.$ac_ext >&5
17155 rm -rf conftest*
17156 eval "ac_cv_header_$ac_safe=no"
17157 fi
17158 rm -f conftest*
17159 fi
17160 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17161 echo "$ac_t""yes" 1>&6
17162
17163 cat >> confdefs.h <<\EOF
17164 #define wxUSE_MS_HTML_HELP 1
17165 EOF
17166
17167
17168 else
17169 echo "$ac_t""no" 1>&6
17170
17171 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h, disabled" 1>&2
17172 wxUSE_MS_HTML_HELP=no
17173
17174 fi
17175
17176 fi
17177 fi
17178
17179 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17180 if test "$wxUSE_HTML" = "yes"; then
17181 cat >> confdefs.h <<\EOF
17182 #define wxUSE_WXHTML_HELP 1
17183 EOF
17184
17185 else
17186 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17187 wxUSE_WXHTML_HELP=no
17188 fi
17189 fi
17190 fi
17191
17192 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17193 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17194 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
17195 else
17196 cat >> confdefs.h <<\EOF
17197 #define wxUSE_PRINTING_ARCHITECTURE 1
17198 EOF
17199
17200 fi
17201 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17202 fi
17203
17204 if test "$wxUSE_PROLOGIO" = "yes" ; then
17205 cat >> confdefs.h <<\EOF
17206 #define wxUSE_PROLOGIO 1
17207 EOF
17208
17209 fi
17210
17211 if test "$wxUSE_RESOURCES" = "yes" ; then
17212 cat >> confdefs.h <<\EOF
17213 #define wxUSE_RESOURCES 1
17214 EOF
17215
17216 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
17217 fi
17218
17219 if test "$wxUSE_X_RESOURCES" = "yes"; then
17220 cat >> confdefs.h <<\EOF
17221 #define wxUSE_X_RESOURCES 1
17222 EOF
17223
17224 fi
17225
17226
17227 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17228 -o "$wxUSE_CLIPBOARD" = "yes" \
17229 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
17230 for ac_hdr in ole2.h
17231 do
17232 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17233 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17234 echo "configure:17235: checking for $ac_hdr" >&5
17235 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17236 echo $ac_n "(cached) $ac_c" 1>&6
17237 else
17238 cat > conftest.$ac_ext <<EOF
17239 #line 17240 "configure"
17240 #include "confdefs.h"
17241 #include <$ac_hdr>
17242 EOF
17243 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17244 { (eval echo configure:17245: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17245 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17246 if test -z "$ac_err"; then
17247 rm -rf conftest*
17248 eval "ac_cv_header_$ac_safe=yes"
17249 else
17250 echo "$ac_err" >&5
17251 echo "configure: failed program was:" >&5
17252 cat conftest.$ac_ext >&5
17253 rm -rf conftest*
17254 eval "ac_cv_header_$ac_safe=no"
17255 fi
17256 rm -f conftest*
17257 fi
17258 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17259 echo "$ac_t""yes" 1>&6
17260 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17261 cat >> confdefs.h <<EOF
17262 #define $ac_tr_hdr 1
17263 EOF
17264
17265 else
17266 echo "$ac_t""no" 1>&6
17267 fi
17268 done
17269
17270
17271 if test "$ac_cv_header_ole2_h" = "yes" ; then
17272 if test "$GCC" = yes ; then
17273 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17274 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17275 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
17276 cat >> confdefs.h <<\EOF
17277 #define wxUSE_OLE 1
17278 EOF
17279
17280
17281 fi
17282
17283 cat >> confdefs.h <<\EOF
17284 #define wxUSE_DATAOBJ 1
17285 EOF
17286
17287 else
17288 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17289
17290 wxUSE_CLIPBOARD=no
17291 wxUSE_DRAG_AND_DROP=no
17292 wxUSE_DATAOBJ=no
17293 fi
17294
17295 if test "$wxUSE_METAFILE" = "yes"; then
17296 cat >> confdefs.h <<\EOF
17297 #define wxUSE_METAFILE 1
17298 EOF
17299
17300
17301 cat >> confdefs.h <<\EOF
17302 #define wxUSE_ENH_METAFILE 1
17303 EOF
17304
17305 fi
17306 fi
17307
17308 if test "$wxUSE_IPC" = "yes"; then
17309 if test "$wxUSE_SOCKETS" != "yes"; then
17310 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17311 fi
17312
17313 cat >> confdefs.h <<\EOF
17314 #define wxUSE_IPC 1
17315 EOF
17316
17317 fi
17318
17319 if test "$wxUSE_CLIPBOARD" = "yes"; then
17320 cat >> confdefs.h <<\EOF
17321 #define wxUSE_CLIPBOARD 1
17322 EOF
17323
17324
17325 cat >> confdefs.h <<\EOF
17326 #define wxUSE_DATAOBJ 1
17327 EOF
17328
17329 fi
17330
17331 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17332 if test "$wxUSE_GTK" = 1; then
17333 if test "$WXGTK12" != 1; then
17334 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
17335 wxUSE_DRAG_AND_DROP=no
17336 fi
17337 fi
17338
17339 if test "$wxUSE_MOTIF" = 1; then
17340 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17341 wxUSE_DRAG_AND_DROP=no
17342 fi
17343
17344 if test "$wxUSE_MAC" = 1; then
17345 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17346 wxUSE_DRAG_AND_DROP=no
17347 fi
17348
17349 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17350 cat >> confdefs.h <<\EOF
17351 #define wxUSE_DRAG_AND_DROP 1
17352 EOF
17353
17354 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17355 fi
17356
17357 fi
17358
17359 if test "$wxUSE_SPLINES" = "yes" ; then
17360 cat >> confdefs.h <<\EOF
17361 #define wxUSE_SPLINES 1
17362 EOF
17363
17364 fi
17365
17366
17367 USES_CONTROLS=0
17368 if test "$wxUSE_CONTROLS" = "yes"; then
17369 USES_CONTROLS=1
17370 fi
17371
17372 if test "$wxUSE_ACCEL" = "yes"; then
17373 cat >> confdefs.h <<\EOF
17374 #define wxUSE_ACCEL 1
17375 EOF
17376
17377 USES_CONTROLS=1
17378 fi
17379
17380 if test "$wxUSE_BUTTON" = "yes"; then
17381 cat >> confdefs.h <<\EOF
17382 #define wxUSE_BUTTON 1
17383 EOF
17384
17385 USES_CONTROLS=1
17386 fi
17387
17388 if test "$wxUSE_BMPBUTTON" = "yes"; then
17389 cat >> confdefs.h <<\EOF
17390 #define wxUSE_BMPBUTTON 1
17391 EOF
17392
17393 USES_CONTROLS=1
17394 fi
17395
17396 if test "$wxUSE_CALCTRL" = "yes"; then
17397 cat >> confdefs.h <<\EOF
17398 #define wxUSE_CALENDARCTRL 1
17399 EOF
17400
17401 USES_CONTROLS=1
17402 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17403 fi
17404
17405 if test "$wxUSE_CARET" = "yes"; then
17406 cat >> confdefs.h <<\EOF
17407 #define wxUSE_CARET 1
17408 EOF
17409
17410 USES_CONTROLS=1
17411 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17412 fi
17413
17414 if test "$wxUSE_COMBOBOX" = "yes"; then
17415 cat >> confdefs.h <<\EOF
17416 #define wxUSE_COMBOBOX 1
17417 EOF
17418
17419 USES_CONTROLS=1
17420 fi
17421
17422 if test "$wxUSE_CHOICE" = "yes"; then
17423 cat >> confdefs.h <<\EOF
17424 #define wxUSE_CHOICE 1
17425 EOF
17426
17427 USES_CONTROLS=1
17428 fi
17429
17430 if test "$wxUSE_CHECKBOX" = "yes"; then
17431 cat >> confdefs.h <<\EOF
17432 #define wxUSE_CHECKBOX 1
17433 EOF
17434
17435 USES_CONTROLS=1
17436 fi
17437
17438 if test "$wxUSE_CHECKLST" = "yes"; then
17439 cat >> confdefs.h <<\EOF
17440 #define wxUSE_CHECKLISTBOX 1
17441 EOF
17442
17443 USES_CONTROLS=1
17444 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17445 fi
17446
17447 if test "$wxUSE_GAUGE" = "yes"; then
17448 cat >> confdefs.h <<\EOF
17449 #define wxUSE_GAUGE 1
17450 EOF
17451
17452 USES_CONTROLS=1
17453 fi
17454
17455 if test "$wxUSE_NEW_GRID" = "yes"; then
17456 wxUSE_GRID="yes"
17457 cat >> confdefs.h <<\EOF
17458 #define wxUSE_NEW_GRID 1
17459 EOF
17460
17461 USES_CONTROLS=1
17462 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17463 fi
17464
17465 if test "$wxUSE_GRID" = "yes"; then
17466 cat >> confdefs.h <<\EOF
17467 #define wxUSE_GRID 1
17468 EOF
17469
17470 USES_CONTROLS=1
17471 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17472 fi
17473
17474 if test "$wxUSE_IMAGLIST" = "yes"; then
17475 cat >> confdefs.h <<\EOF
17476 #define wxUSE_IMAGLIST 1
17477 EOF
17478
17479 fi
17480
17481 if test "$wxUSE_LISTBOX" = "yes"; then
17482 cat >> confdefs.h <<\EOF
17483 #define wxUSE_LISTBOX 1
17484 EOF
17485
17486 USES_CONTROLS=1
17487 fi
17488
17489 if test "$wxUSE_LISTCTRL" = "yes"; then
17490 if test "$wxUSE_IMAGLIST" = "yes"; then
17491 cat >> confdefs.h <<\EOF
17492 #define wxUSE_LISTCTRL 1
17493 EOF
17494
17495 USES_CONTROLS=1
17496 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17497 else
17498 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
17499 fi
17500 fi
17501
17502 if test "$wxUSE_NOTEBOOK" = "yes"; then
17503 cat >> confdefs.h <<\EOF
17504 #define wxUSE_NOTEBOOK 1
17505 EOF
17506
17507 USES_CONTROLS=1
17508 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17509 fi
17510
17511 if test "$wxUSE_PROPSHEET" = "yes"; then
17512 cat >> confdefs.h <<\EOF
17513 #define wxUSE_PROPSHEET 1
17514 EOF
17515
17516 USES_CONTROLS=1
17517 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17518 fi
17519
17520 if test "$wxUSE_RADIOBOX" = "yes"; then
17521 cat >> confdefs.h <<\EOF
17522 #define wxUSE_RADIOBOX 1
17523 EOF
17524
17525 USES_CONTROLS=1
17526 fi
17527
17528 if test "$wxUSE_RADIOBTN" = "yes"; then
17529 cat >> confdefs.h <<\EOF
17530 #define wxUSE_RADIOBTN 1
17531 EOF
17532
17533 USES_CONTROLS=1
17534 fi
17535
17536 if test "$wxUSE_SASH" = "yes"; then
17537 cat >> confdefs.h <<\EOF
17538 #define wxUSE_SASH 1
17539 EOF
17540
17541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17542 fi
17543
17544 if test "$wxUSE_SCROLLBAR" = "yes"; then
17545 cat >> confdefs.h <<\EOF
17546 #define wxUSE_SCROLLBAR 1
17547 EOF
17548
17549 USES_CONTROLS=1
17550 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
17551 fi
17552
17553 if test "$wxUSE_SLIDER" = "yes"; then
17554 cat >> confdefs.h <<\EOF
17555 #define wxUSE_SLIDER 1
17556 EOF
17557
17558 USES_CONTROLS=1
17559 fi
17560
17561 if test "$wxUSE_SPINBTN" = "yes"; then
17562 cat >> confdefs.h <<\EOF
17563 #define wxUSE_SPINBTN 1
17564 EOF
17565
17566 USES_CONTROLS=1
17567 fi
17568
17569 if test "$wxUSE_SPINCTRL" = "yes"; then
17570 cat >> confdefs.h <<\EOF
17571 #define wxUSE_SPINCTRL 1
17572 EOF
17573
17574 USES_CONTROLS=1
17575 fi
17576
17577 if test "$wxUSE_SPLITTER" = "yes"; then
17578 cat >> confdefs.h <<\EOF
17579 #define wxUSE_SPLITTER 1
17580 EOF
17581
17582 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17583 fi
17584
17585 if test "$wxUSE_STATBMP" = "yes"; then
17586 cat >> confdefs.h <<\EOF
17587 #define wxUSE_STATBMP 1
17588 EOF
17589
17590 USES_CONTROLS=1
17591 fi
17592
17593 if test "$wxUSE_STATBOX" = "yes"; then
17594 cat >> confdefs.h <<\EOF
17595 #define wxUSE_STATBOX 1
17596 EOF
17597
17598 USES_CONTROLS=1
17599 fi
17600
17601 if test "$wxUSE_STATTEXT" = "yes"; then
17602 cat >> confdefs.h <<\EOF
17603 #define wxUSE_STATTEXT 1
17604 EOF
17605
17606 USES_CONTROLS=1
17607 fi
17608
17609 if test "$wxUSE_STATLINE" = "yes"; then
17610 if test "$wxUSE_WINE" = 1 ; then
17611 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
17612 else
17613 cat >> confdefs.h <<\EOF
17614 #define wxUSE_STATLINE 1
17615 EOF
17616
17617 USES_CONTROLS=1
17618 fi
17619 fi
17620
17621 if test "$wxUSE_STATUSBAR" = "yes"; then
17622 cat >> confdefs.h <<\EOF
17623 #define wxUSE_STATUSBAR 1
17624 EOF
17625
17626 USES_CONTROLS=1
17627
17628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
17629 fi
17630
17631 if test "$wxUSE_TABDIALOG" = "yes"; then
17632 cat >> confdefs.h <<\EOF
17633 #define wxUSE_TAB_DIALOG 1
17634 EOF
17635
17636 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17637 fi
17638
17639 if test "$wxUSE_TEXTCTRL" = "yes"; then
17640 cat >> confdefs.h <<\EOF
17641 #define wxUSE_TEXTCTRL 1
17642 EOF
17643
17644 USES_CONTROLS=1
17645 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17646 fi
17647
17648 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17649 if test "$wxUSE_MAC" = 1; then
17650 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17651 wxUSE_TOGGLEBTN=no
17652 fi
17653
17654 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17655 cat >> confdefs.h <<\EOF
17656 #define wxUSE_TOGGLEBTN 1
17657 EOF
17658
17659 USES_CONTROLS=1
17660 fi
17661 fi
17662
17663 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
17664 cat >> confdefs.h <<\EOF
17665 #define wxUSE_TOOLBAR_SIMPLE 1
17666 EOF
17667
17668 wxUSE_TOOLBAR="yes"
17669 USES_CONTROLS=1
17670 fi
17671
17672 if test "$wxUSE_TOOLBAR" = "yes"; then
17673 cat >> confdefs.h <<\EOF
17674 #define wxUSE_TOOLBAR 1
17675 EOF
17676
17677 USES_CONTROLS=1
17678
17679 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17680 wxUSE_TOOLBAR_NATIVE="yes"
17681 fi
17682
17683 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17684 cat >> confdefs.h <<\EOF
17685 #define wxUSE_TOOLBAR_NATIVE 1
17686 EOF
17687
17688 USES_CONTROLS=1
17689 fi
17690
17691 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
17692 fi
17693
17694 if test "$wxUSE_TOOLTIPS" = "yes"; then
17695 if test "$wxUSE_MOTIF" = 1; then
17696 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
17697 else
17698 if test "$wxUSE_WINE" = 1; then
17699 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
17700 else
17701 cat >> confdefs.h <<\EOF
17702 #define wxUSE_TOOLTIPS 1
17703 EOF
17704
17705 fi
17706 fi
17707 fi
17708
17709 if test "$wxUSE_TREECTRL" = "yes"; then
17710 if test "$wxUSE_IMAGLIST" = "yes"; then
17711 cat >> confdefs.h <<\EOF
17712 #define wxUSE_TREECTRL 1
17713 EOF
17714
17715 USES_CONTROLS=1
17716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17717 else
17718 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
17719 fi
17720 fi
17721
17722 if test "$wxUSE_POPUPWIN" = "yes"; then
17723 if test "$wxUSE_MAC" = 1; then
17724 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17725 else
17726 cat >> confdefs.h <<\EOF
17727 #define wxUSE_POPUPWIN 1
17728 EOF
17729
17730 USES_CONTROLS=1
17731 fi
17732 fi
17733
17734 if test "$USES_CONTROLS" = 1; then
17735 cat >> confdefs.h <<\EOF
17736 #define wxUSE_CONTROLS 1
17737 EOF
17738
17739 fi
17740
17741
17742 if test "$wxUSE_TREELAYOUT" = "yes"; then
17743 cat >> confdefs.h <<\EOF
17744 #define wxUSE_TREELAYOUT 1
17745 EOF
17746
17747 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17748 fi
17749
17750 if test "$wxUSE_DRAGIMAGE" = "yes"; then
17751 cat >> confdefs.h <<\EOF
17752 #define wxUSE_DRAGIMAGE 1
17753 EOF
17754
17755 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17756 fi
17757
17758 if test "$wxUSE_MENUS" = "yes"; then
17759 cat >> confdefs.h <<\EOF
17760 #define wxUSE_MENUS 1
17761 EOF
17762
17763 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
17764 fi
17765
17766 if test "$wxUSE_METAFILE" = "yes"; then
17767 cat >> confdefs.h <<\EOF
17768 #define wxUSE_METAFILE 1
17769 EOF
17770
17771 fi
17772
17773 if test "$wxUSE_MIMETYPE" = "yes"; then
17774 cat >> confdefs.h <<\EOF
17775 #define wxUSE_MIMETYPE 1
17776 EOF
17777
17778 fi
17779
17780 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17781 cat >> confdefs.h <<\EOF
17782 #define wxUSE_SYSTEM_OPTIONS 1
17783 EOF
17784
17785 fi
17786
17787 if test "$wxUSE_MINIFRAME" = "yes"; then
17788 cat >> confdefs.h <<\EOF
17789 #define wxUSE_MINIFRAME 1
17790 EOF
17791
17792 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17793 fi
17794
17795 if test "$wxUSE_HTML" = "yes"; then
17796 cat >> confdefs.h <<\EOF
17797 #define wxUSE_HTML 1
17798 EOF
17799
17800 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17801 fi
17802
17803 if test "$wxUSE_VALIDATORS" = "yes"; then
17804 cat >> confdefs.h <<\EOF
17805 #define wxUSE_VALIDATORS 1
17806 EOF
17807
17808 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17809 fi
17810
17811 if test "$wxUSE_IMAGE" = "yes" ; then
17812 cat >> confdefs.h <<\EOF
17813 #define wxUSE_IMAGE 1
17814 EOF
17815
17816 fi
17817
17818 if test "$wxUSE_GIF" = "yes" ; then
17819 cat >> confdefs.h <<\EOF
17820 #define wxUSE_GIF 1
17821 EOF
17822
17823 fi
17824
17825 if test "$wxUSE_PCX" = "yes" ; then
17826 cat >> confdefs.h <<\EOF
17827 #define wxUSE_PCX 1
17828 EOF
17829
17830 fi
17831
17832 if test "$wxUSE_PNM" = "yes" ; then
17833 cat >> confdefs.h <<\EOF
17834 #define wxUSE_PNM 1
17835 EOF
17836
17837 fi
17838
17839 if test "$wxUSE_XPM" = "yes" ; then
17840 cat >> confdefs.h <<\EOF
17841 #define wxUSE_XPM 1
17842 EOF
17843
17844 fi
17845
17846
17847 if test "$wxUSE_CHOICEDLG" = "yes"; then
17848 cat >> confdefs.h <<\EOF
17849 #define wxUSE_CHOICEDLG 1
17850 EOF
17851
17852 fi
17853
17854 if test "$wxUSE_COLOURDLG" = "yes"; then
17855 cat >> confdefs.h <<\EOF
17856 #define wxUSE_COLOURDLG 1
17857 EOF
17858
17859 fi
17860
17861 if test "$wxUSE_FILEDLG" = "yes"; then
17862 cat >> confdefs.h <<\EOF
17863 #define wxUSE_FILEDLG 1
17864 EOF
17865
17866 fi
17867
17868 if test "$wxUSE_FINDREPLDLG" = "yes"; then
17869 cat >> confdefs.h <<\EOF
17870 #define wxUSE_FINDREPLDLG 1
17871 EOF
17872
17873 fi
17874
17875 if test "$wxUSE_FONTDLG" = "yes"; then
17876 cat >> confdefs.h <<\EOF
17877 #define wxUSE_FONTDLG 1
17878 EOF
17879
17880 fi
17881
17882 if test "$wxUSE_DIRDLG" = "yes"; then
17883 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17884 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17885 else
17886 if test "$wxUSE_TREECTRL" != "yes"; then
17887 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17888 else
17889 cat >> confdefs.h <<\EOF
17890 #define wxUSE_DIRDLG 1
17891 EOF
17892
17893 fi
17894 fi
17895 fi
17896
17897 if test "$wxUSE_MSGDLG" = "yes"; then
17898 cat >> confdefs.h <<\EOF
17899 #define wxUSE_MSGDLG 1
17900 EOF
17901
17902 fi
17903
17904 if test "$wxUSE_NUMBERDLG" = "yes"; then
17905 cat >> confdefs.h <<\EOF
17906 #define wxUSE_NUMBERDLG 1
17907 EOF
17908
17909 fi
17910
17911 if test "$wxUSE_PROGRESSDLG" = "yes"; then
17912 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17913 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17914 else
17915 cat >> confdefs.h <<\EOF
17916 #define wxUSE_PROGRESSDLG 1
17917 EOF
17918
17919 fi
17920 fi
17921
17922 if test "$wxUSE_SPLASH" = "yes"; then
17923 cat >> confdefs.h <<\EOF
17924 #define wxUSE_SPLASH 1
17925 EOF
17926
17927 fi
17928
17929 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17930 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17931 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17932 else
17933 cat >> confdefs.h <<\EOF
17934 #define wxUSE_STARTUP_TIPS 1
17935 EOF
17936
17937 fi
17938 fi
17939
17940 if test "$wxUSE_TEXTDLG" = "yes"; then
17941 cat >> confdefs.h <<\EOF
17942 #define wxUSE_TEXTDLG 1
17943 EOF
17944
17945 fi
17946
17947 if test "$wxUSE_WIZARDDLG" = "yes"; then
17948 cat >> confdefs.h <<\EOF
17949 #define wxUSE_WIZARDDLG 1
17950 EOF
17951
17952 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17953 fi
17954
17955
17956 if test "$cross_compiling" = "yes"; then
17957 OSINFO="\"$host\""
17958 else
17959 OSINFO=`uname -s -r -m`
17960 OSINFO="\"$OSINFO\""
17961 fi
17962
17963 cat >> confdefs.h <<EOF
17964 #define WXWIN_OS_DESCRIPTION $OSINFO
17965 EOF
17966
17967
17968
17969 if test "x$prefix" != "xNONE"; then
17970 wxPREFIX=$prefix
17971 else
17972 wxPREFIX=$ac_default_prefix
17973 fi
17974
17975 cat >> confdefs.h <<EOF
17976 #define wxINSTALL_PREFIX "$wxPREFIX"
17977 EOF
17978
17979
17980
17981 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17982
17983 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17984
17985 if test "$wxUSE_MAC" = 1 ; then
17986 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17987 fi
17988
17989 if test "$wxUSE_GUI" = "yes"; then
17990 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17991
17992
17993 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
17994 drawing dynamic erase event exec font image \
17995 minimal richedit rotate widgets"
17996
17997 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17998 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17999 fi
18000
18001 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18002 else
18003 SAMPLES_SUBDIRS="console"
18004 fi
18005
18006 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
18007
18008 INCLUDES="-I. -I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
18009 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18010 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
18011
18012 if test "$wxUSE_GTK" = 1; then
18013 WXCONFIG_INCLUDE=""
18014 else
18015 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18016 fi
18017
18018 if test "$GXX" = yes ; then
18019 CXXWARNINGS="-Wall"
18020 fi
18021 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
18022
18023 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18024 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18025
18026 LDFLAGS="$LDFLAGS $PROFILE"
18027
18028 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089
18090
18091
18092
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
18112 echo "configure:18113: checking whether ${MAKE-make} sets \${MAKE}" >&5
18113 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18114 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18115 echo $ac_n "(cached) $ac_c" 1>&6
18116 else
18117 cat > conftestmake <<\EOF
18118 all:
18119 @echo 'ac_maketemp="${MAKE}"'
18120 EOF
18121 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18122 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
18123 if test -n "$ac_maketemp"; then
18124 eval ac_cv_prog_make_${ac_make}_set=yes
18125 else
18126 eval ac_cv_prog_make_${ac_make}_set=no
18127 fi
18128 rm -f conftestmake
18129 fi
18130 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18131 echo "$ac_t""yes" 1>&6
18132 SET_MAKE=
18133 else
18134 echo "$ac_t""no" 1>&6
18135 SET_MAKE="MAKE=${MAKE-make}"
18136 fi
18137
18138
18139 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18140 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
18141 fi
18142
18143
18144
18145 if test "$wxUSE_GUI" = "yes"; then
18146 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
18147 wx_cv_path_ifs=$PATH_IFS
18148 wx_cv_program_ext=$PROGRAM_EXT
18149 wx_cv_target_library=$WX_TARGET_LIBRARY
18150 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
18151 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
18152 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
18153 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
18154 subdirs="demos samples utils contrib"
18155
18156 fi
18157
18158 trap '' 1 2 15
18159 cat > confcache <<\EOF
18160 # This file is a shell script that caches the results of configure
18161 # tests run on this system so they can be shared between configure
18162 # scripts and configure runs. It is not useful on other systems.
18163 # If it contains results you don't want to keep, you may remove or edit it.
18164 #
18165 # By default, configure uses ./config.cache as the cache file,
18166 # creating it if it does not exist already. You can give configure
18167 # the --cache-file=FILE option to use a different cache file; that is
18168 # what configure does when it calls configure scripts in
18169 # subdirectories, so they share the cache.
18170 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18171 # config.status only pays attention to the cache file if you give it the
18172 # --recheck option to rerun configure.
18173 #
18174 EOF
18175 # The following way of writing the cache mishandles newlines in values,
18176 # but we know of no workaround that is simple, portable, and efficient.
18177 # So, don't put newlines in cache variables' values.
18178 # Ultrix sh set writes to stderr and can't be redirected directly,
18179 # and sets the high bit in the cache file unless we assign to the vars.
18180 (set) 2>&1 |
18181 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18182 *ac_space=\ *)
18183 # `set' does not quote correctly, so add quotes (double-quote substitution
18184 # turns \\\\ into \\, and sed turns \\ into \).
18185 sed -n \
18186 -e "s/'/'\\\\''/g" \
18187 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18188 ;;
18189 *)
18190 # `set' quotes correctly as required by POSIX, so do not add quotes.
18191 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18192 ;;
18193 esac >> confcache
18194 if cmp -s $cache_file confcache; then
18195 :
18196 else
18197 if test -w $cache_file; then
18198 echo "updating cache $cache_file"
18199 cat confcache > $cache_file
18200 else
18201 echo "not updating unwritable cache $cache_file"
18202 fi
18203 fi
18204 rm -f confcache
18205
18206 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18207
18208 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18209 # Let make expand exec_prefix.
18210 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18211
18212 # Any assignment to VPATH causes Sun make to only execute
18213 # the first set of double-colon rules, so remove it if not needed.
18214 # If there is a colon in the path, we need to keep it.
18215 if test "x$srcdir" = x.; then
18216 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18217 fi
18218
18219 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18220
18221 DEFS=-DHAVE_CONFIG_H
18222
18223 # Without the "./", some shells look in PATH for config.status.
18224 : ${CONFIG_STATUS=./config.status}
18225
18226 echo creating $CONFIG_STATUS
18227 rm -f $CONFIG_STATUS
18228 cat > $CONFIG_STATUS <<EOF
18229 #! /bin/sh
18230 # Generated automatically by configure.
18231 # Run this file to recreate the current configuration.
18232 # This directory was configured as follows,
18233 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18234 #
18235 # $0 $ac_configure_args
18236 #
18237 # Compiler output produced by configure, useful for debugging
18238 # configure, is in ./config.log if it exists.
18239
18240 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18241 for ac_option
18242 do
18243 case "\$ac_option" in
18244 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18245 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18246 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18247 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18248 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18249 exit 0 ;;
18250 -help | --help | --hel | --he | --h)
18251 echo "\$ac_cs_usage"; exit 0 ;;
18252 *) echo "\$ac_cs_usage"; exit 1 ;;
18253 esac
18254 done
18255
18256 ac_given_srcdir=$srcdir
18257 ac_given_INSTALL="$INSTALL"
18258
18259 trap 'rm -fr `echo "
18260 wx-config
18261 src/make.env
18262 src/makeprog.env
18263 src/makelib.env
18264 Makefile
18265 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18266 EOF
18267 cat >> $CONFIG_STATUS <<EOF
18268
18269 # Protect against being on the right side of a sed subst in config.status.
18270 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18271 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18272 $ac_vpsub
18273 $extrasub
18274 s%@SHELL@%$SHELL%g
18275 s%@CFLAGS@%$CFLAGS%g
18276 s%@CPPFLAGS@%$CPPFLAGS%g
18277 s%@CXXFLAGS@%$CXXFLAGS%g
18278 s%@FFLAGS@%$FFLAGS%g
18279 s%@DEFS@%$DEFS%g
18280 s%@LDFLAGS@%$LDFLAGS%g
18281 s%@LIBS@%$LIBS%g
18282 s%@exec_prefix@%$exec_prefix%g
18283 s%@prefix@%$prefix%g
18284 s%@program_transform_name@%$program_transform_name%g
18285 s%@bindir@%$bindir%g
18286 s%@sbindir@%$sbindir%g
18287 s%@libexecdir@%$libexecdir%g
18288 s%@datadir@%$datadir%g
18289 s%@sysconfdir@%$sysconfdir%g
18290 s%@sharedstatedir@%$sharedstatedir%g
18291 s%@localstatedir@%$localstatedir%g
18292 s%@libdir@%$libdir%g
18293 s%@includedir@%$includedir%g
18294 s%@oldincludedir@%$oldincludedir%g
18295 s%@infodir@%$infodir%g
18296 s%@mandir@%$mandir%g
18297 s%@host@%$host%g
18298 s%@host_alias@%$host_alias%g
18299 s%@host_cpu@%$host_cpu%g
18300 s%@host_vendor@%$host_vendor%g
18301 s%@host_os@%$host_os%g
18302 s%@target@%$target%g
18303 s%@target_alias@%$target_alias%g
18304 s%@target_cpu@%$target_cpu%g
18305 s%@target_vendor@%$target_vendor%g
18306 s%@target_os@%$target_os%g
18307 s%@build@%$build%g
18308 s%@build_alias@%$build_alias%g
18309 s%@build_cpu@%$build_cpu%g
18310 s%@build_vendor@%$build_vendor%g
18311 s%@build_os@%$build_os%g
18312 s%@CC@%$CC%g
18313 s%@CPP@%$CPP%g
18314 s%@CXX@%$CXX%g
18315 s%@RANLIB@%$RANLIB%g
18316 s%@AR@%$AR%g
18317 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18318 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18319 s%@INSTALL_DATA@%$INSTALL_DATA%g
18320 s%@STRIP@%$STRIP%g
18321 s%@YACC@%$YACC%g
18322 s%@LEX@%$LEX%g
18323 s%@LEXLIB@%$LEXLIB%g
18324 s%@LN_S@%$LN_S%g
18325 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18326 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18327 s%@GTK_LIBS@%$GTK_LIBS%g
18328 s%@GTK_CONFIG@%$GTK_CONFIG%g
18329 s%@X_CFLAGS@%$X_CFLAGS%g
18330 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18331 s%@X_LIBS@%$X_LIBS%g
18332 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18333 s%@RESCOMP@%$RESCOMP%g
18334 s%@DEREZ@%$DEREZ%g
18335 s%@CXXCPP@%$CXXCPP%g
18336 s%@LEX_STEM@%$LEX_STEM%g
18337 s%@PATH_IFS@%$PATH_IFS%g
18338 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18339 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18340 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18341 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18342 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18343 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18344 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18345 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18346 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18347 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18348 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18349 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18350 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18351 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18352 s%@WX_ALL@%$WX_ALL%g
18353 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18354 s%@SHARED_LD@%$SHARED_LD%g
18355 s%@PIC_FLAG@%$PIC_FLAG%g
18356 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18357 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18358 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18359 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
18360 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18361 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18362 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18363 s%@USE_GUI@%$USE_GUI%g
18364 s%@AFMINSTALL@%$AFMINSTALL%g
18365 s%@TOOLKIT@%$TOOLKIT%g
18366 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18367 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18368 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18369 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
18370 s%@cross_compiling@%$cross_compiling%g
18371 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18372 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
18373 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18374 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18375 s%@GUIDIST@%$GUIDIST%g
18376 s%@PORT_FILES@%$PORT_FILES%g
18377 s%@DISTDIR@%$DISTDIR%g
18378 s%@RPM_SPEC@%$RPM_SPEC%g
18379 s%@RPM_FILES@%$RPM_FILES%g
18380 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18381 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18382 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18383 s%@EXTRADEFS@%$EXTRADEFS%g
18384 s%@LD_LIBS@%$LD_LIBS%g
18385 s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
18386 s%@RESFLAGS@%$RESFLAGS%g
18387 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
18388 s%@WX_RESOURCES_DARWIN@%$WX_RESOURCES_DARWIN%g
18389 s%@LIBWXMACRES@%$LIBWXMACRES%g
18390 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18391 s%@DLLTOOL@%$DLLTOOL%g
18392 s%@AS@%$AS%g
18393 s%@NM@%$NM%g
18394 s%@LD@%$LD%g
18395 s%@MAKEINFO@%$MAKEINFO%g
18396 s%@SET_MAKE@%$SET_MAKE%g
18397 s%@subdirs@%$subdirs%g
18398
18399 CEOF
18400 EOF
18401
18402 cat >> $CONFIG_STATUS <<\EOF
18403
18404 # Split the substitutions into bite-sized pieces for seds with
18405 # small command number limits, like on Digital OSF/1 and HP-UX.
18406 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18407 ac_file=1 # Number of current file.
18408 ac_beg=1 # First line for current file.
18409 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18410 ac_more_lines=:
18411 ac_sed_cmds=""
18412 while $ac_more_lines; do
18413 if test $ac_beg -gt 1; then
18414 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18415 else
18416 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18417 fi
18418 if test ! -s conftest.s$ac_file; then
18419 ac_more_lines=false
18420 rm -f conftest.s$ac_file
18421 else
18422 if test -z "$ac_sed_cmds"; then
18423 ac_sed_cmds="sed -f conftest.s$ac_file"
18424 else
18425 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18426 fi
18427 ac_file=`expr $ac_file + 1`
18428 ac_beg=$ac_end
18429 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18430 fi
18431 done
18432 if test -z "$ac_sed_cmds"; then
18433 ac_sed_cmds=cat
18434 fi
18435 EOF
18436
18437 cat >> $CONFIG_STATUS <<EOF
18438
18439 CONFIG_FILES=\${CONFIG_FILES-"wx-config
18440 src/make.env
18441 src/makeprog.env
18442 src/makelib.env
18443 Makefile
18444 "}
18445 EOF
18446 cat >> $CONFIG_STATUS <<\EOF
18447 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18448 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18449 case "$ac_file" in
18450 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18451 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18452 *) ac_file_in="${ac_file}.in" ;;
18453 esac
18454
18455 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18456
18457 # Remove last slash and all that follows it. Not all systems have dirname.
18458 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18459 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18460 # The file is in a subdirectory.
18461 test ! -d "$ac_dir" && mkdir "$ac_dir"
18462 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18463 # A "../" for each directory in $ac_dir_suffix.
18464 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18465 else
18466 ac_dir_suffix= ac_dots=
18467 fi
18468
18469 case "$ac_given_srcdir" in
18470 .) srcdir=.
18471 if test -z "$ac_dots"; then top_srcdir=.
18472 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18473 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18474 *) # Relative path.
18475 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18476 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18477 esac
18478
18479 case "$ac_given_INSTALL" in
18480 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18481 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18482 esac
18483
18484 echo creating "$ac_file"
18485 rm -f "$ac_file"
18486 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18487 case "$ac_file" in
18488 *Makefile*) ac_comsub="1i\\
18489 # $configure_input" ;;
18490 *) ac_comsub= ;;
18491 esac
18492
18493 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18494 sed -e "$ac_comsub
18495 s%@configure_input@%$configure_input%g
18496 s%@srcdir@%$srcdir%g
18497 s%@top_srcdir@%$top_srcdir%g
18498 s%@INSTALL@%$INSTALL%g
18499 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18500 fi; done
18501 rm -f conftest.s*
18502
18503 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18504 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18505 #
18506 # ac_d sets the value in "#define NAME VALUE" lines.
18507 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18508 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18509 ac_dC='\3'
18510 ac_dD='%g'
18511 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18512 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18513 ac_uB='\([ ]\)%\1#\2define\3'
18514 ac_uC=' '
18515 ac_uD='\4%g'
18516 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18517 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18518 ac_eB='$%\1#\2define\3'
18519 ac_eC=' '
18520 ac_eD='%g'
18521
18522 if test "${CONFIG_HEADERS+set}" != set; then
18523 EOF
18524 cat >> $CONFIG_STATUS <<EOF
18525 CONFIG_HEADERS="setup.h:setup.h.in"
18526 EOF
18527 cat >> $CONFIG_STATUS <<\EOF
18528 fi
18529 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18530 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18531 case "$ac_file" in
18532 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18533 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18534 *) ac_file_in="${ac_file}.in" ;;
18535 esac
18536
18537 echo creating $ac_file
18538
18539 rm -f conftest.frag conftest.in conftest.out
18540 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18541 cat $ac_file_inputs > conftest.in
18542
18543 EOF
18544
18545 # Transform confdefs.h into a sed script conftest.vals that substitutes
18546 # the proper values into config.h.in to produce config.h. And first:
18547 # Protect against being on the right side of a sed subst in config.status.
18548 # Protect against being in an unquoted here document in config.status.
18549 rm -f conftest.vals
18550 cat > conftest.hdr <<\EOF
18551 s/[\\&%]/\\&/g
18552 s%[\\$`]%\\&%g
18553 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18554 s%ac_d%ac_u%gp
18555 s%ac_u%ac_e%gp
18556 EOF
18557 sed -n -f conftest.hdr confdefs.h > conftest.vals
18558 rm -f conftest.hdr
18559
18560 # This sed command replaces #undef with comments. This is necessary, for
18561 # example, in the case of _POSIX_SOURCE, which is predefined and required
18562 # on some systems where configure will not decide to define it.
18563 cat >> conftest.vals <<\EOF
18564 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18565 EOF
18566
18567 # Break up conftest.vals because some shells have a limit on
18568 # the size of here documents, and old seds have small limits too.
18569
18570 rm -f conftest.tail
18571 while :
18572 do
18573 ac_lines=`grep -c . conftest.vals`
18574 # grep -c gives empty output for an empty file on some AIX systems.
18575 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18576 # Write a limited-size here document to conftest.frag.
18577 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18578 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18579 echo 'CEOF
18580 sed -f conftest.frag conftest.in > conftest.out
18581 rm -f conftest.in
18582 mv conftest.out conftest.in
18583 ' >> $CONFIG_STATUS
18584 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18585 rm -f conftest.vals
18586 mv conftest.tail conftest.vals
18587 done
18588 rm -f conftest.vals
18589
18590 cat >> $CONFIG_STATUS <<\EOF
18591 rm -f conftest.frag conftest.h
18592 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18593 cat conftest.in >> conftest.h
18594 rm -f conftest.in
18595 if cmp -s $ac_file conftest.h 2>/dev/null; then
18596 echo "$ac_file is unchanged"
18597 rm -f conftest.h
18598 else
18599 # Remove last slash and all that follows it. Not all systems have dirname.
18600 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18601 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18602 # The file is in a subdirectory.
18603 test ! -d "$ac_dir" && mkdir "$ac_dir"
18604 fi
18605 rm -f $ac_file
18606 mv conftest.h $ac_file
18607 fi
18608 fi; done
18609
18610 EOF
18611 cat >> $CONFIG_STATUS <<EOF
18612
18613 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
18614 LN_S="${LN_S}"
18615
18616
18617 EOF
18618 cat >> $CONFIG_STATUS <<\EOF
18619
18620 if test ! -L wx-config; then
18621 chmod +x wx-config
18622 mv wx-config wx${TOOLCHAIN_NAME}-config
18623 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
18624 fi
18625
18626 if test ! -d lib; then
18627 mkdir lib
18628 fi
18629 if test ! -d lib/wx; then
18630 mkdir lib/wx
18631 fi
18632 if test ! -d lib/wx/include; then
18633 mkdir lib/wx/include
18634 fi
18635 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
18636 mkdir lib/wx/include/${TOOLCHAIN_NAME}
18637 fi
18638 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
18639 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
18640 fi
18641 if test -f setup.h; then
18642 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
18643 fi
18644
18645 exit 0
18646 EOF
18647 chmod +x $CONFIG_STATUS
18648 rm -fr confdefs* $ac_clean_files
18649 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18650
18651 if test "$no_recursion" != yes; then
18652
18653 # Remove --cache-file and --srcdir arguments so they do not pile up.
18654 ac_sub_configure_args=
18655 ac_prev=
18656 for ac_arg in $ac_configure_args; do
18657 if test -n "$ac_prev"; then
18658 ac_prev=
18659 continue
18660 fi
18661 case "$ac_arg" in
18662 -cache-file | --cache-file | --cache-fil | --cache-fi \
18663 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18664 ac_prev=cache_file ;;
18665 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18666 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
18667 ;;
18668 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18669 ac_prev=srcdir ;;
18670 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18671 ;;
18672 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18673 esac
18674 done
18675
18676 for ac_config_dir in demos samples utils contrib; do
18677
18678 # Do not complain, so a configure script can configure whichever
18679 # parts of a large source tree are present.
18680 if test ! -d $srcdir/$ac_config_dir; then
18681 continue
18682 fi
18683
18684 echo configuring in $ac_config_dir
18685
18686 case "$srcdir" in
18687 .) ;;
18688 *)
18689 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18690 else
18691 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18692 fi
18693 ;;
18694 esac
18695
18696 ac_popdir=`pwd`
18697 cd $ac_config_dir
18698
18699 # A "../" for each directory in /$ac_config_dir.
18700 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
18701
18702 case "$srcdir" in
18703 .) # No --srcdir option. We are building in place.
18704 ac_sub_srcdir=$srcdir ;;
18705 /*) # Absolute path.
18706 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
18707 *) # Relative path.
18708 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
18709 esac
18710
18711 # Check for guested configure; otherwise get Cygnus style configure.
18712 if test -f $ac_sub_srcdir/configure; then
18713 ac_sub_configure=$ac_sub_srcdir/configure
18714 elif test -f $ac_sub_srcdir/configure.in; then
18715 ac_sub_configure=$ac_configure
18716 else
18717 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
18718 ac_sub_configure=
18719 fi
18720
18721 # The recursion is here.
18722 if test -n "$ac_sub_configure"; then
18723
18724 # Make the cache file name correct relative to the subdirectory.
18725 case "$cache_file" in
18726 /*) ac_sub_cache_file=$cache_file ;;
18727 *) # Relative path.
18728 ac_sub_cache_file="$ac_dots$cache_file" ;;
18729 esac
18730 case "$ac_given_INSTALL" in
18731 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18732 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18733 esac
18734
18735 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
18736 # The eval makes quoting arguments work.
18737 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18738 then :
18739 else
18740 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18741 fi
18742 fi
18743
18744 cd $ac_popdir
18745 done
18746 fi
18747
18748