]> git.saurik.com Git - wxWidgets.git/blob - configure
fixes for RPM generation after Ron's changes
[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 SciTech 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 C++ exceptions handling"
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 wxWindows 2.0 compatibility"
128 ac_help="$ac_help
129 --enable-compat22 enable wxWindows 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-wxprintfv use wxWindows implementation of vprintf()"
178 ac_help="$ac_help
179 --enable-std_iostreams use standard C++ stream classes"
180 ac_help="$ac_help
181 --enable-filesystem use virtual file systems classes"
182 ac_help="$ac_help
183 --enable-fs_inet use virtual HTTP/FTP filesystems"
184 ac_help="$ac_help
185 --enable-fs_zip use virtual ZIP filesystems"
186 ac_help="$ac_help
187 --enable-zipstream use wxZipInputStream"
188 ac_help="$ac_help
189 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
190 ac_help="$ac_help
191 --enable-snglinst use wxSingleInstanceChecker class"
192 ac_help="$ac_help
193 --enable-mimetypes use wxMimeTypesManager"
194 ac_help="$ac_help
195 --enable-sysoptions use wxSystemOptions"
196 ac_help="$ac_help
197 --enable-threads use threads"
198 ac_help="$ac_help
199 --enable-serial use class serialization"
200 ac_help="$ac_help
201 --enable-docview use document view architecture"
202 ac_help="$ac_help
203 --enable-help use help subsystem"
204 ac_help="$ac_help
205 --enable-mshtmlhelp use MS HTML Help (win32)"
206 ac_help="$ac_help
207 --enable-html use wxHTML sub-library"
208 ac_help="$ac_help
209 --enable-htmlhelp use wxHTML-based help"
210 ac_help="$ac_help
211 --enable-constraints use layout-constraints system"
212 ac_help="$ac_help
213 --enable-printarch use printing architecture"
214 ac_help="$ac_help
215 --enable-mdi use multiple document interface architecture"
216 ac_help="$ac_help
217 --enable-loggui use standard GUI logger"
218 ac_help="$ac_help
219 --enable-logwin use wxLogWindow"
220 ac_help="$ac_help
221 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
222 ac_help="$ac_help
223 --enable-prologio use Prolog IO library"
224 ac_help="$ac_help
225 --enable-resources use wxWindows resources"
226 ac_help="$ac_help
227 --enable-xresources use X resources for save (default for gtk+)"
228 ac_help="$ac_help
229 --enable-clipboard use wxClipboard classes"
230 ac_help="$ac_help
231 --enable-dnd use Drag'n'Drop classes"
232 ac_help="$ac_help
233 --enable-metafile use win32 metafiles"
234 ac_help="$ac_help
235 --enable-treelayout use wxTreeLayout classes"
236 ac_help="$ac_help
237 --enable-controls use all usual controls"
238 ac_help="$ac_help
239 --enable-accel use accelerators"
240 ac_help="$ac_help
241 --enable-button use wxButton class"
242 ac_help="$ac_help
243 --enable-bmpbutton use wxBitmapButton class"
244 ac_help="$ac_help
245 --enable-calendar use wxCalendarCtrl class"
246 ac_help="$ac_help
247 --enable-caret use wxCaret class"
248 ac_help="$ac_help
249 --enable-checkbox use wxCheckBox class"
250 ac_help="$ac_help
251 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
252 ac_help="$ac_help
253 --enable-choice use wxChoice class"
254 ac_help="$ac_help
255 --enable-combobox use wxComboBox classes"
256 ac_help="$ac_help
257 --enable-gauge use wxGauge class"
258 ac_help="$ac_help
259 --enable-grid use wxGrid class"
260 ac_help="$ac_help
261 --enable-newgrid use new wxGrid class"
262 ac_help="$ac_help
263 --enable-imaglist use wxImageList class"
264 ac_help="$ac_help
265 --enable-listbox use wxListBox class"
266 ac_help="$ac_help
267 --enable-listctrl use wxListCtrl class"
268 ac_help="$ac_help
269 --enable-notebook use wxNotebook class"
270 ac_help="$ac_help
271 --enable-propsheet use wxPropertySheet class"
272 ac_help="$ac_help
273 --enable-radiobox use wxRadioBox class"
274 ac_help="$ac_help
275 --enable-radiobtn use wxRadioButton class"
276 ac_help="$ac_help
277 --enable-sash use wxSashWindow class"
278 ac_help="$ac_help
279 --enable-scrollbar use wxScrollBar class and scrollable windows"
280 ac_help="$ac_help
281 --enable-slider use wxSlider class"
282 ac_help="$ac_help
283 --enable-spinbtn use wxSpinButton class"
284 ac_help="$ac_help
285 --enable-spinctrl use wxSpinCtrl class"
286 ac_help="$ac_help
287 --enable-splitter use wxSplitterWindow class"
288 ac_help="$ac_help
289 --enable-statbmp use wxStaticBitmap class"
290 ac_help="$ac_help
291 --enable-statbox use wxStaticBox class"
292 ac_help="$ac_help
293 --enable-statline use wxStaticLine class"
294 ac_help="$ac_help
295 --enable-stattext use wxStaticText class"
296 ac_help="$ac_help
297 --enable-statusbar use wxStatusBar class"
298 ac_help="$ac_help
299 --enable-tabdialog use wxTabControl class"
300 ac_help="$ac_help
301 --enable-textctrl use wxTextCtrl class"
302 ac_help="$ac_help
303 --enable-togglebtn use wxToggleButton class"
304 ac_help="$ac_help
305 --enable-toolbar use wxToolBar class"
306 ac_help="$ac_help
307 --enable-tbarnative use native wxToolBar class"
308 ac_help="$ac_help
309 --enable-tbarsmpl use wxToolBarSimple class"
310 ac_help="$ac_help
311 --enable-treectrl use wxTreeCtrl class"
312 ac_help="$ac_help
313 --enable-popupwin use wxPopUpWindow class"
314 ac_help="$ac_help
315 --enable-commondlg use all common dialogs"
316 ac_help="$ac_help
317 --enable-choicedlg use wxChoiceDialog"
318 ac_help="$ac_help
319 --enable-coldlg use wxColourDialog"
320 ac_help="$ac_help
321 --enable-filedlg use wxFileDialog"
322 ac_help="$ac_help
323 --enable-finddlg use wxFindReplaceDialog"
324 ac_help="$ac_help
325 --enable-fontdlg use wxFontDialog"
326 ac_help="$ac_help
327 --enable-dirdlg use wxDirDialog"
328 ac_help="$ac_help
329 --enable-msgdlg use wxMessageDialog"
330 ac_help="$ac_help
331 --enable-numberdlg use wxNumberEntryDialog"
332 ac_help="$ac_help
333 --enable-splash use wxSplashScreen"
334 ac_help="$ac_help
335 --enable-textdlg use wxTextDialog"
336 ac_help="$ac_help
337 --enable-tipdlg use startup tips"
338 ac_help="$ac_help
339 --enable-progressdlg use wxProgressDialog"
340 ac_help="$ac_help
341 --enable-wizarddlg use wxWizard"
342 ac_help="$ac_help
343 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
344 ac_help="$ac_help
345 --enable-miniframe use wxMiniFrame class"
346 ac_help="$ac_help
347 --enable-tooltips use wxToolTip class"
348 ac_help="$ac_help
349 --enable-splines use spline drawing code"
350 ac_help="$ac_help
351 --enable-validators use wxValidator and derived classes"
352 ac_help="$ac_help
353 --enable-busyinfo use wxBusyInfo"
354 ac_help="$ac_help
355 --enable-joystick use wxJoystick (Linux only)"
356 ac_help="$ac_help
357 --enable-metafiles use wxMetaFile (Windows only)"
358 ac_help="$ac_help
359 --enable-dragimage use wxDragImage"
360 ac_help="$ac_help
361 --enable-palette use wxPalette class"
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_PALETTE=no
1527 DEFAULT_wxUSE_IMAGE=no
1528 DEFAULT_wxUSE_GIF=no
1529 DEFAULT_wxUSE_PCX=no
1530 DEFAULT_wxUSE_PNM=no
1531 DEFAULT_wxUSE_XPM=no
1532 else
1533 DEFAULT_wxUSE_UNIVERSAL=no
1534
1535 DEFAULT_wxUSE_THREADS=yes
1536
1537 DEFAULT_wxUSE_SHARED=yes
1538 DEFAULT_wxUSE_SONAME=no
1539 DEFAULT_wxUSE_OPTIMISE=yes
1540 DEFAULT_wxUSE_PROFILE=no
1541 DEFAULT_wxUSE_NO_DEPS=no
1542 DEFAULT_wxUSE_NO_RTTI=no
1543 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1544 DEFAULT_wxUSE_PERMISSIVE=no
1545 DEFAULT_wxUSE_DEBUG_FLAG=no
1546 DEFAULT_wxUSE_DEBUG_INFO=no
1547 DEFAULT_wxUSE_DEBUG_GDB=no
1548 DEFAULT_wxUSE_MEM_TRACING=no
1549 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1550 DEFAULT_wxUSE_DMALLOC=no
1551 DEFAULT_wxUSE_APPLE_IEEE=yes
1552
1553 DEFAULT_wxUSE_LOG=yes
1554 DEFAULT_wxUSE_LOGWINDOW=yes
1555 DEFAULT_wxUSE_LOGGUI=yes
1556
1557 DEFAULT_wxUSE_GUI=yes
1558
1559 DEFAULT_wxUSE_REGEX=yes
1560 DEFAULT_wxUSE_ZLIB=yes
1561 DEFAULT_wxUSE_LIBPNG=yes
1562 DEFAULT_wxUSE_LIBJPEG=yes
1563 DEFAULT_wxUSE_LIBTIFF=yes
1564 DEFAULT_wxUSE_ODBC=no
1565 DEFAULT_wxUSE_FREETYPE=no
1566 DEFAULT_wxUSE_OPENGL=no
1567
1568 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1569 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1570 DEFAULT_wxUSE_STD_IOSTREAM=no
1571 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1572 DEFAULT_wxUSE_DATETIME=yes
1573 DEFAULT_wxUSE_TIMEDATE=no
1574 DEFAULT_wxUSE_TIMER=yes
1575 DEFAULT_wxUSE_STOPWATCH=yes
1576 DEFAULT_wxUSE_FILE=yes
1577 DEFAULT_wxUSE_FFILE=yes
1578 DEFAULT_wxUSE_TEXTFILE=yes
1579 DEFAULT_wxUSE_WAVE=no
1580 DEFAULT_wxUSE_INTL=yes
1581 DEFAULT_wxUSE_CONFIG=yes
1582 DEFAULT_wxUSE_FONTMAP=yes
1583 DEFAULT_wxUSE_STREAMS=yes
1584 DEFAULT_wxUSE_SOCKETS=yes
1585 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1586 DEFAULT_wxUSE_SERIAL=yes
1587 DEFAULT_wxUSE_JOYSTICK=yes
1588 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1589 DEFAULT_wxUSE_LONGLONG=yes
1590 DEFAULT_wxUSE_GEOMETRY=yes
1591
1592 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1593 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1594 DEFAULT_wxUSE_POSTSCRIPT=yes
1595
1596 DEFAULT_wxUSE_X_RESOURCES=no
1597 DEFAULT_wxUSE_CLIPBOARD=yes
1598 DEFAULT_wxUSE_TOOLTIPS=yes
1599 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1600 DEFAULT_wxUSE_DRAGIMAGE=yes
1601 DEFAULT_wxUSE_SPLINES=yes
1602
1603 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1604 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1605 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1606
1607 DEFAULT_wxUSE_PROLOGIO=yes
1608 DEFAULT_wxUSE_RESOURCES=yes
1609 DEFAULT_wxUSE_CONSTRAINTS=yes
1610 DEFAULT_wxUSE_IPC=yes
1611 DEFAULT_wxUSE_HELP=yes
1612 DEFAULT_wxUSE_MS_HTML_HELP=yes
1613 DEFAULT_wxUSE_WXHTML_HELP=yes
1614 DEFAULT_wxUSE_TREELAYOUT=yes
1615 DEFAULT_wxUSE_METAFILE=yes
1616 DEFAULT_wxUSE_MIMETYPE=yes
1617 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1618
1619 DEFAULT_wxUSE_COMMONDLGS=yes
1620 DEFAULT_wxUSE_CHOICEDLG=yes
1621 DEFAULT_wxUSE_COLOURDLG=yes
1622 DEFAULT_wxUSE_DIRDLG=yes
1623 DEFAULT_wxUSE_FILEDLG=yes
1624 DEFAULT_wxUSE_FINDREPLDLG=yes
1625 DEFAULT_wxUSE_FONTDLG=yes
1626 DEFAULT_wxUSE_MSGDLG=yes
1627 DEFAULT_wxUSE_NUMBERDLG=yes
1628 DEFAULT_wxUSE_TEXTDLG=yes
1629 DEFAULT_wxUSE_SPLASH=yes
1630 DEFAULT_wxUSE_STARTUP_TIPS=yes
1631 DEFAULT_wxUSE_PROGRESSDLG=yes
1632 DEFAULT_wxUSE_WIZARDDLG=yes
1633
1634 DEFAULT_wxUSE_MENUS=yes
1635 DEFAULT_wxUSE_MINIFRAME=yes
1636 DEFAULT_wxUSE_HTML=yes
1637 DEFAULT_wxUSE_FILESYSTEM=yes
1638 DEFAULT_wxUSE_FS_INET=yes
1639 DEFAULT_wxUSE_FS_ZIP=yes
1640 DEFAULT_wxUSE_BUSYINFO=yes
1641 DEFAULT_wxUSE_ZIPSTREAM=yes
1642 DEFAULT_wxUSE_VALIDATORS=yes
1643
1644 DEFAULT_wxUSE_ACCEL=yes
1645 DEFAULT_wxUSE_BUTTON=yes
1646 DEFAULT_wxUSE_BMPBUTTON=yes
1647 DEFAULT_wxUSE_CALCTRL=yes
1648 DEFAULT_wxUSE_CARET=yes
1649 DEFAULT_wxUSE_CHECKBOX=yes
1650 DEFAULT_wxUSE_CHECKLST=yes
1651 DEFAULT_wxUSE_CHOICE=yes
1652 DEFAULT_wxUSE_COMBOBOX=yes
1653 DEFAULT_wxUSE_GAUGE=yes
1654 DEFAULT_wxUSE_GRID=yes
1655 DEFAULT_wxUSE_NEW_GRID=yes
1656 DEFAULT_wxUSE_IMAGLIST=yes
1657 DEFAULT_wxUSE_LISTBOX=yes
1658 DEFAULT_wxUSE_LISTCTRL=yes
1659 DEFAULT_wxUSE_NOTEBOOK=yes
1660 DEFAULT_wxUSE_PROPSHEET=yes
1661 DEFAULT_wxUSE_RADIOBOX=yes
1662 DEFAULT_wxUSE_RADIOBTN=yes
1663 DEFAULT_wxUSE_SASH=yes
1664 DEFAULT_wxUSE_SCROLLBAR=yes
1665 DEFAULT_wxUSE_SLIDER=yes
1666 DEFAULT_wxUSE_SPINBTN=yes
1667 DEFAULT_wxUSE_SPINCTRL=yes
1668 DEFAULT_wxUSE_SPLITTER=yes
1669 DEFAULT_wxUSE_STATBMP=yes
1670 DEFAULT_wxUSE_STATBOX=yes
1671 DEFAULT_wxUSE_STATLINE=yes
1672 DEFAULT_wxUSE_STATTEXT=yes
1673 DEFAULT_wxUSE_STATUSBAR=yes
1674 DEFAULT_wxUSE_TABDIALOG=no
1675 DEFAULT_wxUSE_TEXTCTRL=yes
1676 DEFAULT_wxUSE_TOGGLEBTN=yes
1677 DEFAULT_wxUSE_TOOLBAR=yes
1678 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1679 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1680 DEFAULT_wxUSE_TREECTRL=yes
1681 DEFAULT_wxUSE_POPUPWIN=yes
1682
1683 DEFAULT_wxUSE_UNICODE=no
1684 DEFAULT_wxUSE_WCSRTOMBS=no
1685
1686 DEFAULT_wxUSE_PALETTE=yes
1687 DEFAULT_wxUSE_IMAGE=yes
1688 DEFAULT_wxUSE_GIF=yes
1689 DEFAULT_wxUSE_PCX=yes
1690 DEFAULT_wxUSE_PNM=yes
1691 DEFAULT_wxUSE_XPM=yes
1692 fi
1693
1694
1695
1696 for toolkit in `echo $ALL_TOOLKITS`; do
1697 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1698 if test "x$LINE" != x ; then
1699 has_toolkit_in_cache=1
1700 eval "DEFAULT_$LINE"
1701 eval "CACHE_$toolkit=1"
1702 fi
1703 done
1704
1705
1706
1707 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1708 echo "configure:1709: checking for --enable-gui" >&5
1709 no_cache=0
1710 # Check whether --enable-gui or --disable-gui was given.
1711 if test "${enable_gui+set}" = set; then
1712 enableval="$enable_gui"
1713
1714 if test "$enableval" = yes; then
1715 ac_cv_use_gui='wxUSE_GUI=yes'
1716 else
1717 ac_cv_use_gui='wxUSE_GUI=no'
1718 fi
1719
1720 else
1721
1722 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1723 if test "x$LINE" != x ; then
1724 eval "DEFAULT_$LINE"
1725 else
1726 no_cache=1
1727 fi
1728
1729 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1730
1731 fi
1732
1733
1734 eval "$ac_cv_use_gui"
1735 if test "$no_cache" != 1; then
1736 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1737 fi
1738
1739 if test "$wxUSE_GUI" = yes; then
1740 echo "$ac_t""yes" 1>&6
1741 else
1742 echo "$ac_t""no" 1>&6
1743 fi
1744
1745
1746 if test "$wxUSE_GUI" = "yes"; then
1747
1748
1749 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1750 echo "configure:1751: checking for --enable-universal" >&5
1751 no_cache=0
1752 # Check whether --enable-universal or --disable-universal was given.
1753 if test "${enable_universal+set}" = set; then
1754 enableval="$enable_universal"
1755
1756 if test "$enableval" = yes; then
1757 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1758 else
1759 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1760 fi
1761
1762 else
1763
1764 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1765 if test "x$LINE" != x ; then
1766 eval "DEFAULT_$LINE"
1767 else
1768 no_cache=1
1769 fi
1770
1771 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1772
1773 fi
1774
1775
1776 eval "$ac_cv_use_universal"
1777 if test "$no_cache" != 1; then
1778 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1779 fi
1780
1781 if test "$wxUSE_UNIVERSAL" = yes; then
1782 echo "$ac_t""yes" 1>&6
1783 else
1784 echo "$ac_t""no" 1>&6
1785 fi
1786
1787 # Check whether --with-gtk or --without-gtk was given.
1788 if test "${with_gtk+set}" = set; then
1789 withval="$with_gtk"
1790 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1791 fi
1792
1793 # Check whether --with-motif or --without-motif was given.
1794 if test "${with_motif+set}" = set; then
1795 withval="$with_motif"
1796 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1797 fi
1798
1799 # Check whether --with-mac or --without-mac was given.
1800 if test "${with_mac+set}" = set; then
1801 withval="$with_mac"
1802 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1803 fi
1804
1805 # Check whether --with-wine or --without-wine was given.
1806 if test "${with_wine+set}" = set; then
1807 withval="$with_wine"
1808 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1809 fi
1810
1811 # Check whether --with-cygwin or --without-cygwin was given.
1812 if test "${with_cygwin+set}" = set; then
1813 withval="$with_cygwin"
1814 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1815 fi
1816
1817 # Check whether --with-mingw or --without-mingw was given.
1818 if test "${with_mingw+set}" = set; then
1819 withval="$with_mingw"
1820 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1821 fi
1822
1823 # Check whether --with-pm or --without-pm was given.
1824 if test "${with_pm+set}" = set; then
1825 withval="$with_pm"
1826 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1827 fi
1828
1829 # Check whether --with-mgl or --without-mgl was given.
1830 if test "${with_mgl+set}" = set; then
1831 withval="$with_mgl"
1832 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1833 fi
1834
1835
1836 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1837 if test "${enable_gtk2+set}" = set; then
1838 enableval="$enable_gtk2"
1839 wxUSE_GTK2=1
1840 else
1841 wxUSE_GTK2=0
1842 fi
1843
1844
1845
1846 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1847 echo "configure:1848: checking for --with-libpng" >&5
1848 no_cache=0
1849 # Check whether --with-libpng or --without-libpng was given.
1850 if test "${with_libpng+set}" = set; then
1851 withval="$with_libpng"
1852
1853 if test "$withval" = yes; then
1854 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1855 elif test "$withval" = no; then
1856 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1857 elif test "$withval" = sys; then
1858 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1859 else
1860 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1861 fi
1862
1863 else
1864
1865 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1866 if test "x$LINE" != x ; then
1867 eval "DEFAULT_$LINE"
1868 else
1869 no_cache=1
1870 fi
1871
1872 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1873
1874 fi
1875
1876
1877 eval "$ac_cv_use_libpng"
1878 if test "$no_cache" != 1; then
1879 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1880 fi
1881
1882 if test "$wxUSE_LIBPNG" = yes; then
1883 echo "$ac_t""yes" 1>&6
1884 elif test "$wxUSE_LIBPNG" = no; then
1885 echo "$ac_t""no" 1>&6
1886 elif test "$wxUSE_LIBPNG" = sys; then
1887 echo "$ac_t""system version" 1>&6
1888 else
1889 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1890 fi
1891
1892
1893 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1894 echo "configure:1895: checking for --with-libjpeg" >&5
1895 no_cache=0
1896 # Check whether --with-libjpeg or --without-libjpeg was given.
1897 if test "${with_libjpeg+set}" = set; then
1898 withval="$with_libjpeg"
1899
1900 if test "$withval" = yes; then
1901 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1902 elif test "$withval" = no; then
1903 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1904 elif test "$withval" = sys; then
1905 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1906 else
1907 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1908 fi
1909
1910 else
1911
1912 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1913 if test "x$LINE" != x ; then
1914 eval "DEFAULT_$LINE"
1915 else
1916 no_cache=1
1917 fi
1918
1919 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1920
1921 fi
1922
1923
1924 eval "$ac_cv_use_libjpeg"
1925 if test "$no_cache" != 1; then
1926 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1927 fi
1928
1929 if test "$wxUSE_LIBJPEG" = yes; then
1930 echo "$ac_t""yes" 1>&6
1931 elif test "$wxUSE_LIBJPEG" = no; then
1932 echo "$ac_t""no" 1>&6
1933 elif test "$wxUSE_LIBJPEG" = sys; then
1934 echo "$ac_t""system version" 1>&6
1935 else
1936 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1937 fi
1938
1939
1940 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1941 echo "configure:1942: checking for --with-libtiff" >&5
1942 no_cache=0
1943 # Check whether --with-libtiff or --without-libtiff was given.
1944 if test "${with_libtiff+set}" = set; then
1945 withval="$with_libtiff"
1946
1947 if test "$withval" = yes; then
1948 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1949 elif test "$withval" = no; then
1950 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1951 elif test "$withval" = sys; then
1952 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1953 else
1954 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1955 fi
1956
1957 else
1958
1959 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1960 if test "x$LINE" != x ; then
1961 eval "DEFAULT_$LINE"
1962 else
1963 no_cache=1
1964 fi
1965
1966 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1967
1968 fi
1969
1970
1971 eval "$ac_cv_use_libtiff"
1972 if test "$no_cache" != 1; then
1973 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1974 fi
1975
1976 if test "$wxUSE_LIBTIFF" = yes; then
1977 echo "$ac_t""yes" 1>&6
1978 elif test "$wxUSE_LIBTIFF" = no; then
1979 echo "$ac_t""no" 1>&6
1980 elif test "$wxUSE_LIBTIFF" = sys; then
1981 echo "$ac_t""system version" 1>&6
1982 else
1983 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1984 fi
1985
1986
1987 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1988 echo "configure:1989: checking for --with-freetype" >&5
1989 no_cache=0
1990 # Check whether --with-freetype or --without-freetype was given.
1991 if test "${with_freetype+set}" = set; then
1992 withval="$with_freetype"
1993
1994 if test "$withval" = yes; then
1995 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1996 elif test "$withval" = no; then
1997 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1998 elif test "$withval" = sys; then
1999 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2000 else
2001 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2002 fi
2003
2004 else
2005
2006 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2007 if test "x$LINE" != x ; then
2008 eval "DEFAULT_$LINE"
2009 else
2010 no_cache=1
2011 fi
2012
2013 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2014
2015 fi
2016
2017
2018 eval "$ac_cv_use_freetype"
2019 if test "$no_cache" != 1; then
2020 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2021 fi
2022
2023 if test "$wxUSE_FREETYPE" = yes; then
2024 echo "$ac_t""yes" 1>&6
2025 elif test "$wxUSE_FREETYPE" = no; then
2026 echo "$ac_t""no" 1>&6
2027 elif test "$wxUSE_FREETYPE" = sys; then
2028 echo "$ac_t""system version" 1>&6
2029 else
2030 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2031 fi
2032
2033
2034 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2035 echo "configure:2036: checking for --with-opengl" >&5
2036 no_cache=0
2037 # Check whether --with-opengl or --without-opengl was given.
2038 if test "${with_opengl+set}" = set; then
2039 withval="$with_opengl"
2040
2041 if test "$withval" = yes; then
2042 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2043 else
2044 ac_cv_use_opengl='wxUSE_OPENGL=no'
2045 fi
2046
2047 else
2048
2049 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2050 if test "x$LINE" != x ; then
2051 eval "DEFAULT_$LINE"
2052 else
2053 no_cache=1
2054 fi
2055
2056 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2057
2058 fi
2059
2060
2061 eval "$ac_cv_use_opengl"
2062 if test "$no_cache" != 1; then
2063 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2064 fi
2065
2066 if test "$wxUSE_OPENGL" = yes; then
2067 echo "$ac_t""yes" 1>&6
2068 else
2069 echo "$ac_t""no" 1>&6
2070 fi
2071
2072
2073 fi
2074
2075
2076 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2077 echo "configure:2078: checking for --with-dmalloc" >&5
2078 no_cache=0
2079 # Check whether --with-dmalloc or --without-dmalloc was given.
2080 if test "${with_dmalloc+set}" = set; then
2081 withval="$with_dmalloc"
2082
2083 if test "$withval" = yes; then
2084 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2085 else
2086 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2087 fi
2088
2089 else
2090
2091 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2092 if test "x$LINE" != x ; then
2093 eval "DEFAULT_$LINE"
2094 else
2095 no_cache=1
2096 fi
2097
2098 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2099
2100 fi
2101
2102
2103 eval "$ac_cv_use_dmalloc"
2104 if test "$no_cache" != 1; then
2105 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2106 fi
2107
2108 if test "$wxUSE_DMALLOC" = yes; then
2109 echo "$ac_t""yes" 1>&6
2110 else
2111 echo "$ac_t""no" 1>&6
2112 fi
2113
2114
2115 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2116 echo "configure:2117: checking for --with-regex" >&5
2117 no_cache=0
2118 # Check whether --with-regex or --without-regex was given.
2119 if test "${with_regex+set}" = set; then
2120 withval="$with_regex"
2121
2122 if test "$withval" = yes; then
2123 ac_cv_use_regex='wxUSE_REGEX=yes'
2124 elif test "$withval" = no; then
2125 ac_cv_use_regex='wxUSE_REGEX=no'
2126 elif test "$withval" = sys; then
2127 ac_cv_use_regex='wxUSE_REGEX=sys'
2128 else
2129 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2130 fi
2131
2132 else
2133
2134 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2135 if test "x$LINE" != x ; then
2136 eval "DEFAULT_$LINE"
2137 else
2138 no_cache=1
2139 fi
2140
2141 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2142
2143 fi
2144
2145
2146 eval "$ac_cv_use_regex"
2147 if test "$no_cache" != 1; then
2148 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2149 fi
2150
2151 if test "$wxUSE_REGEX" = yes; then
2152 echo "$ac_t""yes" 1>&6
2153 elif test "$wxUSE_REGEX" = no; then
2154 echo "$ac_t""no" 1>&6
2155 elif test "$wxUSE_REGEX" = sys; then
2156 echo "$ac_t""system version" 1>&6
2157 else
2158 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2159 fi
2160
2161
2162 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2163 echo "configure:2164: checking for --with-zlib" >&5
2164 no_cache=0
2165 # Check whether --with-zlib or --without-zlib was given.
2166 if test "${with_zlib+set}" = set; then
2167 withval="$with_zlib"
2168
2169 if test "$withval" = yes; then
2170 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2171 elif test "$withval" = no; then
2172 ac_cv_use_zlib='wxUSE_ZLIB=no'
2173 elif test "$withval" = sys; then
2174 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2175 else
2176 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2177 fi
2178
2179 else
2180
2181 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2182 if test "x$LINE" != x ; then
2183 eval "DEFAULT_$LINE"
2184 else
2185 no_cache=1
2186 fi
2187
2188 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2189
2190 fi
2191
2192
2193 eval "$ac_cv_use_zlib"
2194 if test "$no_cache" != 1; then
2195 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2196 fi
2197
2198 if test "$wxUSE_ZLIB" = yes; then
2199 echo "$ac_t""yes" 1>&6
2200 elif test "$wxUSE_ZLIB" = no; then
2201 echo "$ac_t""no" 1>&6
2202 elif test "$wxUSE_ZLIB" = sys; then
2203 echo "$ac_t""system version" 1>&6
2204 else
2205 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2206 fi
2207
2208
2209 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2210 echo "configure:2211: checking for --with-odbc" >&5
2211 no_cache=0
2212 # Check whether --with-odbc or --without-odbc was given.
2213 if test "${with_odbc+set}" = set; then
2214 withval="$with_odbc"
2215
2216 if test "$withval" = yes; then
2217 ac_cv_use_odbc='wxUSE_ODBC=yes'
2218 else
2219 ac_cv_use_odbc='wxUSE_ODBC=no'
2220 fi
2221
2222 else
2223
2224 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2225 if test "x$LINE" != x ; then
2226 eval "DEFAULT_$LINE"
2227 else
2228 no_cache=1
2229 fi
2230
2231 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2232
2233 fi
2234
2235
2236 eval "$ac_cv_use_odbc"
2237 if test "$no_cache" != 1; then
2238 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2239 fi
2240
2241 if test "$wxUSE_ODBC" = yes; then
2242 echo "$ac_t""yes" 1>&6
2243 else
2244 echo "$ac_t""no" 1>&6
2245 fi
2246
2247
2248
2249
2250
2251 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2252 echo "configure:2253: checking for --enable-shared" >&5
2253 no_cache=0
2254 # Check whether --enable-shared or --disable-shared was given.
2255 if test "${enable_shared+set}" = set; then
2256 enableval="$enable_shared"
2257
2258 if test "$enableval" = yes; then
2259 ac_cv_use_shared='wxUSE_SHARED=yes'
2260 else
2261 ac_cv_use_shared='wxUSE_SHARED=no'
2262 fi
2263
2264 else
2265
2266 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2267 if test "x$LINE" != x ; then
2268 eval "DEFAULT_$LINE"
2269 else
2270 no_cache=1
2271 fi
2272
2273 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2274
2275 fi
2276
2277
2278 eval "$ac_cv_use_shared"
2279 if test "$no_cache" != 1; then
2280 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2281 fi
2282
2283 if test "$wxUSE_SHARED" = yes; then
2284 echo "$ac_t""yes" 1>&6
2285 else
2286 echo "$ac_t""no" 1>&6
2287 fi
2288
2289
2290 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2291 echo "configure:2292: checking for --enable-soname" >&5
2292 no_cache=0
2293 # Check whether --enable-soname or --disable-soname was given.
2294 if test "${enable_soname+set}" = set; then
2295 enableval="$enable_soname"
2296
2297 if test "$enableval" = yes; then
2298 ac_cv_use_soname='wxUSE_SONAME=yes'
2299 else
2300 ac_cv_use_soname='wxUSE_SONAME=no'
2301 fi
2302
2303 else
2304
2305 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2306 if test "x$LINE" != x ; then
2307 eval "DEFAULT_$LINE"
2308 else
2309 no_cache=1
2310 fi
2311
2312 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2313
2314 fi
2315
2316
2317 eval "$ac_cv_use_soname"
2318 if test "$no_cache" != 1; then
2319 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2320 fi
2321
2322 if test "$wxUSE_SONAME" = yes; then
2323 echo "$ac_t""yes" 1>&6
2324 else
2325 echo "$ac_t""no" 1>&6
2326 fi
2327
2328
2329 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2330 echo "configure:2331: checking for --enable-optimise" >&5
2331 no_cache=0
2332 # Check whether --enable-optimise or --disable-optimise was given.
2333 if test "${enable_optimise+set}" = set; then
2334 enableval="$enable_optimise"
2335
2336 if test "$enableval" = yes; then
2337 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2338 else
2339 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2340 fi
2341
2342 else
2343
2344 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2345 if test "x$LINE" != x ; then
2346 eval "DEFAULT_$LINE"
2347 else
2348 no_cache=1
2349 fi
2350
2351 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2352
2353 fi
2354
2355
2356 eval "$ac_cv_use_optimise"
2357 if test "$no_cache" != 1; then
2358 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2359 fi
2360
2361 if test "$wxUSE_OPTIMISE" = yes; then
2362 echo "$ac_t""yes" 1>&6
2363 else
2364 echo "$ac_t""no" 1>&6
2365 fi
2366
2367
2368 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2369 echo "configure:2370: checking for --enable-debug" >&5
2370 no_cache=0
2371 # Check whether --enable-debug or --disable-debug was given.
2372 if test "${enable_debug+set}" = set; then
2373 enableval="$enable_debug"
2374
2375 if test "$enableval" = yes; then
2376 ac_cv_use_debug='wxUSE_DEBUG=yes'
2377 else
2378 ac_cv_use_debug='wxUSE_DEBUG=no'
2379 fi
2380
2381 else
2382
2383 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2384 if test "x$LINE" != x ; then
2385 eval "DEFAULT_$LINE"
2386 else
2387 no_cache=1
2388 fi
2389
2390 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2391
2392 fi
2393
2394
2395 eval "$ac_cv_use_debug"
2396 if test "$no_cache" != 1; then
2397 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2398 fi
2399
2400 if test "$wxUSE_DEBUG" = yes; then
2401 echo "$ac_t""yes" 1>&6
2402 else
2403 echo "$ac_t""no" 1>&6
2404 fi
2405
2406
2407 if test "$wxUSE_DEBUG" = "yes"; then
2408 DEFAULT_wxUSE_DEBUG_FLAG=yes
2409 DEFAULT_wxUSE_DEBUG_INFO=yes
2410 elif test "$wxUSE_DEBUG" = "no"; then
2411 DEFAULT_wxUSE_DEBUG_FLAG=no
2412 DEFAULT_wxUSE_DEBUG_INFO=no
2413 fi
2414
2415
2416 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2417 echo "configure:2418: checking for --enable-debug_flag" >&5
2418 no_cache=0
2419 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2420 if test "${enable_debug_flag+set}" = set; then
2421 enableval="$enable_debug_flag"
2422
2423 if test "$enableval" = yes; then
2424 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2425 else
2426 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2427 fi
2428
2429 else
2430
2431 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2432 if test "x$LINE" != x ; then
2433 eval "DEFAULT_$LINE"
2434 else
2435 no_cache=1
2436 fi
2437
2438 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2439
2440 fi
2441
2442
2443 eval "$ac_cv_use_debug_flag"
2444 if test "$no_cache" != 1; then
2445 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2446 fi
2447
2448 if test "$wxUSE_DEBUG_FLAG" = yes; then
2449 echo "$ac_t""yes" 1>&6
2450 else
2451 echo "$ac_t""no" 1>&6
2452 fi
2453
2454
2455 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2456 echo "configure:2457: checking for --enable-debug_info" >&5
2457 no_cache=0
2458 # Check whether --enable-debug_info or --disable-debug_info was given.
2459 if test "${enable_debug_info+set}" = set; then
2460 enableval="$enable_debug_info"
2461
2462 if test "$enableval" = yes; then
2463 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2464 else
2465 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2466 fi
2467
2468 else
2469
2470 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2471 if test "x$LINE" != x ; then
2472 eval "DEFAULT_$LINE"
2473 else
2474 no_cache=1
2475 fi
2476
2477 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2478
2479 fi
2480
2481
2482 eval "$ac_cv_use_debug_info"
2483 if test "$no_cache" != 1; then
2484 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2485 fi
2486
2487 if test "$wxUSE_DEBUG_INFO" = yes; then
2488 echo "$ac_t""yes" 1>&6
2489 else
2490 echo "$ac_t""no" 1>&6
2491 fi
2492
2493
2494 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2495 echo "configure:2496: checking for --enable-debug_gdb" >&5
2496 no_cache=0
2497 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2498 if test "${enable_debug_gdb+set}" = set; then
2499 enableval="$enable_debug_gdb"
2500
2501 if test "$enableval" = yes; then
2502 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2503 else
2504 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2505 fi
2506
2507 else
2508
2509 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2510 if test "x$LINE" != x ; then
2511 eval "DEFAULT_$LINE"
2512 else
2513 no_cache=1
2514 fi
2515
2516 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2517
2518 fi
2519
2520
2521 eval "$ac_cv_use_debug_gdb"
2522 if test "$no_cache" != 1; then
2523 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2524 fi
2525
2526 if test "$wxUSE_DEBUG_GDB" = yes; then
2527 echo "$ac_t""yes" 1>&6
2528 else
2529 echo "$ac_t""no" 1>&6
2530 fi
2531
2532
2533 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2534 echo "configure:2535: checking for --enable-debug_cntxt" >&5
2535 no_cache=0
2536 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2537 if test "${enable_debug_cntxt+set}" = set; then
2538 enableval="$enable_debug_cntxt"
2539
2540 if test "$enableval" = yes; then
2541 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2542 else
2543 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2544 fi
2545
2546 else
2547
2548 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2549 if test "x$LINE" != x ; then
2550 eval "DEFAULT_$LINE"
2551 else
2552 no_cache=1
2553 fi
2554
2555 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2556
2557 fi
2558
2559
2560 eval "$ac_cv_use_debug_cntxt"
2561 if test "$no_cache" != 1; then
2562 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2563 fi
2564
2565 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2566 echo "$ac_t""yes" 1>&6
2567 else
2568 echo "$ac_t""no" 1>&6
2569 fi
2570
2571
2572 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2573 echo "configure:2574: checking for --enable-mem_tracing" >&5
2574 no_cache=0
2575 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2576 if test "${enable_mem_tracing+set}" = set; then
2577 enableval="$enable_mem_tracing"
2578
2579 if test "$enableval" = yes; then
2580 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2581 else
2582 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2583 fi
2584
2585 else
2586
2587 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2588 if test "x$LINE" != x ; then
2589 eval "DEFAULT_$LINE"
2590 else
2591 no_cache=1
2592 fi
2593
2594 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2595
2596 fi
2597
2598
2599 eval "$ac_cv_use_mem_tracing"
2600 if test "$no_cache" != 1; then
2601 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2602 fi
2603
2604 if test "$wxUSE_MEM_TRACING" = yes; then
2605 echo "$ac_t""yes" 1>&6
2606 else
2607 echo "$ac_t""no" 1>&6
2608 fi
2609
2610
2611 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2612 echo "configure:2613: checking for --enable-profile" >&5
2613 no_cache=0
2614 # Check whether --enable-profile or --disable-profile was given.
2615 if test "${enable_profile+set}" = set; then
2616 enableval="$enable_profile"
2617
2618 if test "$enableval" = yes; then
2619 ac_cv_use_profile='wxUSE_PROFILE=yes'
2620 else
2621 ac_cv_use_profile='wxUSE_PROFILE=no'
2622 fi
2623
2624 else
2625
2626 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2627 if test "x$LINE" != x ; then
2628 eval "DEFAULT_$LINE"
2629 else
2630 no_cache=1
2631 fi
2632
2633 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2634
2635 fi
2636
2637
2638 eval "$ac_cv_use_profile"
2639 if test "$no_cache" != 1; then
2640 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2641 fi
2642
2643 if test "$wxUSE_PROFILE" = yes; then
2644 echo "$ac_t""yes" 1>&6
2645 else
2646 echo "$ac_t""no" 1>&6
2647 fi
2648
2649
2650 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2651 echo "configure:2652: checking for --enable-no_rtti" >&5
2652 no_cache=0
2653 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2654 if test "${enable_no_rtti+set}" = set; then
2655 enableval="$enable_no_rtti"
2656
2657 if test "$enableval" = yes; then
2658 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2659 else
2660 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2661 fi
2662
2663 else
2664
2665 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2666 if test "x$LINE" != x ; then
2667 eval "DEFAULT_$LINE"
2668 else
2669 no_cache=1
2670 fi
2671
2672 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2673
2674 fi
2675
2676
2677 eval "$ac_cv_use_no_rtti"
2678 if test "$no_cache" != 1; then
2679 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2680 fi
2681
2682 if test "$wxUSE_NO_RTTI" = yes; then
2683 echo "$ac_t""yes" 1>&6
2684 else
2685 echo "$ac_t""no" 1>&6
2686 fi
2687
2688
2689 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2690 echo "configure:2691: checking for --enable-no_exceptions" >&5
2691 no_cache=0
2692 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2693 if test "${enable_no_exceptions+set}" = set; then
2694 enableval="$enable_no_exceptions"
2695
2696 if test "$enableval" = yes; then
2697 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2698 else
2699 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2700 fi
2701
2702 else
2703
2704 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2705 if test "x$LINE" != x ; then
2706 eval "DEFAULT_$LINE"
2707 else
2708 no_cache=1
2709 fi
2710
2711 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2712
2713 fi
2714
2715
2716 eval "$ac_cv_use_no_exceptions"
2717 if test "$no_cache" != 1; then
2718 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2719 fi
2720
2721 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2722 echo "$ac_t""yes" 1>&6
2723 else
2724 echo "$ac_t""no" 1>&6
2725 fi
2726
2727
2728 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2729 echo "configure:2730: checking for --enable-permissive" >&5
2730 no_cache=0
2731 # Check whether --enable-permissive or --disable-permissive was given.
2732 if test "${enable_permissive+set}" = set; then
2733 enableval="$enable_permissive"
2734
2735 if test "$enableval" = yes; then
2736 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2737 else
2738 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2739 fi
2740
2741 else
2742
2743 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2744 if test "x$LINE" != x ; then
2745 eval "DEFAULT_$LINE"
2746 else
2747 no_cache=1
2748 fi
2749
2750 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2751
2752 fi
2753
2754
2755 eval "$ac_cv_use_permissive"
2756 if test "$no_cache" != 1; then
2757 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2758 fi
2759
2760 if test "$wxUSE_PERMISSIVE" = yes; then
2761 echo "$ac_t""yes" 1>&6
2762 else
2763 echo "$ac_t""no" 1>&6
2764 fi
2765
2766
2767 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2768 echo "configure:2769: checking for --enable-no_deps" >&5
2769 no_cache=0
2770 # Check whether --enable-no_deps or --disable-no_deps was given.
2771 if test "${enable_no_deps+set}" = set; then
2772 enableval="$enable_no_deps"
2773
2774 if test "$enableval" = yes; then
2775 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2776 else
2777 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2778 fi
2779
2780 else
2781
2782 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2783 if test "x$LINE" != x ; then
2784 eval "DEFAULT_$LINE"
2785 else
2786 no_cache=1
2787 fi
2788
2789 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2790
2791 fi
2792
2793
2794 eval "$ac_cv_use_no_deps"
2795 if test "$no_cache" != 1; then
2796 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2797 fi
2798
2799 if test "$wxUSE_NO_DEPS" = yes; then
2800 echo "$ac_t""yes" 1>&6
2801 else
2802 echo "$ac_t""no" 1>&6
2803 fi
2804
2805
2806
2807 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2808 echo "configure:2809: checking for --enable-compat20" >&5
2809 no_cache=0
2810 # Check whether --enable-compat20 or --disable-compat20 was given.
2811 if test "${enable_compat20+set}" = set; then
2812 enableval="$enable_compat20"
2813
2814 if test "$enableval" = yes; then
2815 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2816 else
2817 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2818 fi
2819
2820 else
2821
2822 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2823 if test "x$LINE" != x ; then
2824 eval "DEFAULT_$LINE"
2825 else
2826 no_cache=1
2827 fi
2828
2829 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2830
2831 fi
2832
2833
2834 eval "$ac_cv_use_compat20"
2835 if test "$no_cache" != 1; then
2836 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2837 fi
2838
2839 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2840 echo "$ac_t""yes" 1>&6
2841 else
2842 echo "$ac_t""no" 1>&6
2843 fi
2844
2845
2846 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2847 echo "configure:2848: checking for --enable-compat22" >&5
2848 no_cache=0
2849 # Check whether --enable-compat22 or --disable-compat22 was given.
2850 if test "${enable_compat22+set}" = set; then
2851 enableval="$enable_compat22"
2852
2853 if test "$enableval" = yes; then
2854 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2855 else
2856 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2857 fi
2858
2859 else
2860
2861 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2862 if test "x$LINE" != x ; then
2863 eval "DEFAULT_$LINE"
2864 else
2865 no_cache=1
2866 fi
2867
2868 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2869
2870 fi
2871
2872
2873 eval "$ac_cv_use_compat22"
2874 if test "$no_cache" != 1; then
2875 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2876 fi
2877
2878 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2879 echo "$ac_t""yes" 1>&6
2880 else
2881 echo "$ac_t""no" 1>&6
2882 fi
2883
2884
2885
2886
2887 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2888 echo "configure:2889: checking for --enable-intl" >&5
2889 no_cache=0
2890 # Check whether --enable-intl or --disable-intl was given.
2891 if test "${enable_intl+set}" = set; then
2892 enableval="$enable_intl"
2893
2894 if test "$enableval" = yes; then
2895 ac_cv_use_intl='wxUSE_INTL=yes'
2896 else
2897 ac_cv_use_intl='wxUSE_INTL=no'
2898 fi
2899
2900 else
2901
2902 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2903 if test "x$LINE" != x ; then
2904 eval "DEFAULT_$LINE"
2905 else
2906 no_cache=1
2907 fi
2908
2909 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2910
2911 fi
2912
2913
2914 eval "$ac_cv_use_intl"
2915 if test "$no_cache" != 1; then
2916 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2917 fi
2918
2919 if test "$wxUSE_INTL" = yes; then
2920 echo "$ac_t""yes" 1>&6
2921 else
2922 echo "$ac_t""no" 1>&6
2923 fi
2924
2925
2926 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2927 echo "configure:2928: checking for --enable-config" >&5
2928 no_cache=0
2929 # Check whether --enable-config or --disable-config was given.
2930 if test "${enable_config+set}" = set; then
2931 enableval="$enable_config"
2932
2933 if test "$enableval" = yes; then
2934 ac_cv_use_config='wxUSE_CONFIG=yes'
2935 else
2936 ac_cv_use_config='wxUSE_CONFIG=no'
2937 fi
2938
2939 else
2940
2941 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2942 if test "x$LINE" != x ; then
2943 eval "DEFAULT_$LINE"
2944 else
2945 no_cache=1
2946 fi
2947
2948 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2949
2950 fi
2951
2952
2953 eval "$ac_cv_use_config"
2954 if test "$no_cache" != 1; then
2955 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2956 fi
2957
2958 if test "$wxUSE_CONFIG" = yes; then
2959 echo "$ac_t""yes" 1>&6
2960 else
2961 echo "$ac_t""no" 1>&6
2962 fi
2963
2964
2965
2966 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2967 echo "configure:2968: checking for --enable-sockets" >&5
2968 no_cache=0
2969 # Check whether --enable-sockets or --disable-sockets was given.
2970 if test "${enable_sockets+set}" = set; then
2971 enableval="$enable_sockets"
2972
2973 if test "$enableval" = yes; then
2974 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2975 else
2976 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2977 fi
2978
2979 else
2980
2981 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2982 if test "x$LINE" != x ; then
2983 eval "DEFAULT_$LINE"
2984 else
2985 no_cache=1
2986 fi
2987
2988 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2989
2990 fi
2991
2992
2993 eval "$ac_cv_use_sockets"
2994 if test "$no_cache" != 1; then
2995 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2996 fi
2997
2998 if test "$wxUSE_SOCKETS" = yes; then
2999 echo "$ac_t""yes" 1>&6
3000 else
3001 echo "$ac_t""no" 1>&6
3002 fi
3003
3004
3005
3006 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3007 echo "configure:3008: checking for --enable-ipc" >&5
3008 no_cache=0
3009 # Check whether --enable-ipc or --disable-ipc was given.
3010 if test "${enable_ipc+set}" = set; then
3011 enableval="$enable_ipc"
3012
3013 if test "$enableval" = yes; then
3014 ac_cv_use_ipc='wxUSE_IPC=yes'
3015 else
3016 ac_cv_use_ipc='wxUSE_IPC=no'
3017 fi
3018
3019 else
3020
3021 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3022 if test "x$LINE" != x ; then
3023 eval "DEFAULT_$LINE"
3024 else
3025 no_cache=1
3026 fi
3027
3028 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3029
3030 fi
3031
3032
3033 eval "$ac_cv_use_ipc"
3034 if test "$no_cache" != 1; then
3035 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3036 fi
3037
3038 if test "$wxUSE_IPC" = yes; then
3039 echo "$ac_t""yes" 1>&6
3040 else
3041 echo "$ac_t""no" 1>&6
3042 fi
3043
3044
3045
3046 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3047 echo "configure:3048: checking for --enable-cmdline" >&5
3048 no_cache=0
3049 # Check whether --enable-cmdline or --disable-cmdline was given.
3050 if test "${enable_cmdline+set}" = set; then
3051 enableval="$enable_cmdline"
3052
3053 if test "$enableval" = yes; then
3054 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3055 else
3056 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3057 fi
3058
3059 else
3060
3061 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3062 if test "x$LINE" != x ; then
3063 eval "DEFAULT_$LINE"
3064 else
3065 no_cache=1
3066 fi
3067
3068 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3069
3070 fi
3071
3072
3073 eval "$ac_cv_use_cmdline"
3074 if test "$no_cache" != 1; then
3075 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3076 fi
3077
3078 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3079 echo "$ac_t""yes" 1>&6
3080 else
3081 echo "$ac_t""no" 1>&6
3082 fi
3083
3084
3085 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3086 echo "configure:3087: checking for --enable-datetime" >&5
3087 no_cache=0
3088 # Check whether --enable-datetime or --disable-datetime was given.
3089 if test "${enable_datetime+set}" = set; then
3090 enableval="$enable_datetime"
3091
3092 if test "$enableval" = yes; then
3093 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3094 else
3095 ac_cv_use_datetime='wxUSE_DATETIME=no'
3096 fi
3097
3098 else
3099
3100 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3101 if test "x$LINE" != x ; then
3102 eval "DEFAULT_$LINE"
3103 else
3104 no_cache=1
3105 fi
3106
3107 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3108
3109 fi
3110
3111
3112 eval "$ac_cv_use_datetime"
3113 if test "$no_cache" != 1; then
3114 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3115 fi
3116
3117 if test "$wxUSE_DATETIME" = yes; then
3118 echo "$ac_t""yes" 1>&6
3119 else
3120 echo "$ac_t""no" 1>&6
3121 fi
3122
3123
3124 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3125 echo "configure:3126: checking for --enable-timedate" >&5
3126 no_cache=0
3127 # Check whether --enable-timedate or --disable-timedate was given.
3128 if test "${enable_timedate+set}" = set; then
3129 enableval="$enable_timedate"
3130
3131 if test "$enableval" = yes; then
3132 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3133 else
3134 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3135 fi
3136
3137 else
3138
3139 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3140 if test "x$LINE" != x ; then
3141 eval "DEFAULT_$LINE"
3142 else
3143 no_cache=1
3144 fi
3145
3146 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3147
3148 fi
3149
3150
3151 eval "$ac_cv_use_timedate"
3152 if test "$no_cache" != 1; then
3153 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3154 fi
3155
3156 if test "$wxUSE_TIMEDATE" = yes; then
3157 echo "$ac_t""yes" 1>&6
3158 else
3159 echo "$ac_t""no" 1>&6
3160 fi
3161
3162
3163 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3164 echo "configure:3165: checking for --enable-stopwatch" >&5
3165 no_cache=0
3166 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3167 if test "${enable_stopwatch+set}" = set; then
3168 enableval="$enable_stopwatch"
3169
3170 if test "$enableval" = yes; then
3171 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3172 else
3173 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3174 fi
3175
3176 else
3177
3178 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3179 if test "x$LINE" != x ; then
3180 eval "DEFAULT_$LINE"
3181 else
3182 no_cache=1
3183 fi
3184
3185 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3186
3187 fi
3188
3189
3190 eval "$ac_cv_use_stopwatch"
3191 if test "$no_cache" != 1; then
3192 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3193 fi
3194
3195 if test "$wxUSE_STOPWATCH" = yes; then
3196 echo "$ac_t""yes" 1>&6
3197 else
3198 echo "$ac_t""no" 1>&6
3199 fi
3200
3201
3202 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3203 echo "configure:3204: checking for --enable-dialupman" >&5
3204 no_cache=0
3205 # Check whether --enable-dialupman or --disable-dialupman was given.
3206 if test "${enable_dialupman+set}" = set; then
3207 enableval="$enable_dialupman"
3208
3209 if test "$enableval" = yes; then
3210 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3211 else
3212 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3213 fi
3214
3215 else
3216
3217 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3218 if test "x$LINE" != x ; then
3219 eval "DEFAULT_$LINE"
3220 else
3221 no_cache=1
3222 fi
3223
3224 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3225
3226 fi
3227
3228
3229 eval "$ac_cv_use_dialupman"
3230 if test "$no_cache" != 1; then
3231 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3232 fi
3233
3234 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3235 echo "$ac_t""yes" 1>&6
3236 else
3237 echo "$ac_t""no" 1>&6
3238 fi
3239
3240
3241 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3242 echo "configure:3243: checking for --enable-apple_ieee" >&5
3243 no_cache=0
3244 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3245 if test "${enable_apple_ieee+set}" = set; then
3246 enableval="$enable_apple_ieee"
3247
3248 if test "$enableval" = yes; then
3249 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3250 else
3251 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3252 fi
3253
3254 else
3255
3256 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3257 if test "x$LINE" != x ; then
3258 eval "DEFAULT_$LINE"
3259 else
3260 no_cache=1
3261 fi
3262
3263 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3264
3265 fi
3266
3267
3268 eval "$ac_cv_use_apple_ieee"
3269 if test "$no_cache" != 1; then
3270 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3271 fi
3272
3273 if test "$wxUSE_APPLE_IEEE" = yes; then
3274 echo "$ac_t""yes" 1>&6
3275 else
3276 echo "$ac_t""no" 1>&6
3277 fi
3278
3279
3280 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3281 echo "configure:3282: checking for --enable-timer" >&5
3282 no_cache=0
3283 # Check whether --enable-timer or --disable-timer was given.
3284 if test "${enable_timer+set}" = set; then
3285 enableval="$enable_timer"
3286
3287 if test "$enableval" = yes; then
3288 ac_cv_use_timer='wxUSE_TIMER=yes'
3289 else
3290 ac_cv_use_timer='wxUSE_TIMER=no'
3291 fi
3292
3293 else
3294
3295 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3296 if test "x$LINE" != x ; then
3297 eval "DEFAULT_$LINE"
3298 else
3299 no_cache=1
3300 fi
3301
3302 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3303
3304 fi
3305
3306
3307 eval "$ac_cv_use_timer"
3308 if test "$no_cache" != 1; then
3309 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3310 fi
3311
3312 if test "$wxUSE_TIMER" = yes; then
3313 echo "$ac_t""yes" 1>&6
3314 else
3315 echo "$ac_t""no" 1>&6
3316 fi
3317
3318
3319 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3320 echo "configure:3321: checking for --enable-wave" >&5
3321 no_cache=0
3322 # Check whether --enable-wave or --disable-wave was given.
3323 if test "${enable_wave+set}" = set; then
3324 enableval="$enable_wave"
3325
3326 if test "$enableval" = yes; then
3327 ac_cv_use_wave='wxUSE_WAVE=yes'
3328 else
3329 ac_cv_use_wave='wxUSE_WAVE=no'
3330 fi
3331
3332 else
3333
3334 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3335 if test "x$LINE" != x ; then
3336 eval "DEFAULT_$LINE"
3337 else
3338 no_cache=1
3339 fi
3340
3341 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3342
3343 fi
3344
3345
3346 eval "$ac_cv_use_wave"
3347 if test "$no_cache" != 1; then
3348 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3349 fi
3350
3351 if test "$wxUSE_WAVE" = yes; then
3352 echo "$ac_t""yes" 1>&6
3353 else
3354 echo "$ac_t""no" 1>&6
3355 fi
3356
3357
3358 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3359 echo "configure:3360: checking for --enable-fraction" >&5
3360 no_cache=0
3361 # Check whether --enable-fraction or --disable-fraction was given.
3362 if test "${enable_fraction+set}" = set; then
3363 enableval="$enable_fraction"
3364
3365 if test "$enableval" = yes; then
3366 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3367 else
3368 ac_cv_use_fraction='wxUSE_FRACTION=no'
3369 fi
3370
3371 else
3372
3373 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3374 if test "x$LINE" != x ; then
3375 eval "DEFAULT_$LINE"
3376 else
3377 no_cache=1
3378 fi
3379
3380 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3381
3382 fi
3383
3384
3385 eval "$ac_cv_use_fraction"
3386 if test "$no_cache" != 1; then
3387 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3388 fi
3389
3390 if test "$wxUSE_FRACTION" = yes; then
3391 echo "$ac_t""yes" 1>&6
3392 else
3393 echo "$ac_t""no" 1>&6
3394 fi
3395
3396
3397 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3398 echo "configure:3399: checking for --enable-dynlib" >&5
3399 no_cache=0
3400 # Check whether --enable-dynlib or --disable-dynlib was given.
3401 if test "${enable_dynlib+set}" = set; then
3402 enableval="$enable_dynlib"
3403
3404 if test "$enableval" = yes; then
3405 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3406 else
3407 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3408 fi
3409
3410 else
3411
3412 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3413 if test "x$LINE" != x ; then
3414 eval "DEFAULT_$LINE"
3415 else
3416 no_cache=1
3417 fi
3418
3419 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3420
3421 fi
3422
3423
3424 eval "$ac_cv_use_dynlib"
3425 if test "$no_cache" != 1; then
3426 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3427 fi
3428
3429 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3430 echo "$ac_t""yes" 1>&6
3431 else
3432 echo "$ac_t""no" 1>&6
3433 fi
3434
3435
3436 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3437 echo "configure:3438: checking for --enable-longlong" >&5
3438 no_cache=0
3439 # Check whether --enable-longlong or --disable-longlong was given.
3440 if test "${enable_longlong+set}" = set; then
3441 enableval="$enable_longlong"
3442
3443 if test "$enableval" = yes; then
3444 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3445 else
3446 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3447 fi
3448
3449 else
3450
3451 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3452 if test "x$LINE" != x ; then
3453 eval "DEFAULT_$LINE"
3454 else
3455 no_cache=1
3456 fi
3457
3458 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3459
3460 fi
3461
3462
3463 eval "$ac_cv_use_longlong"
3464 if test "$no_cache" != 1; then
3465 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3466 fi
3467
3468 if test "$wxUSE_LONGLONG" = yes; then
3469 echo "$ac_t""yes" 1>&6
3470 else
3471 echo "$ac_t""no" 1>&6
3472 fi
3473
3474
3475 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3476 echo "configure:3477: checking for --enable-geometry" >&5
3477 no_cache=0
3478 # Check whether --enable-geometry or --disable-geometry was given.
3479 if test "${enable_geometry+set}" = set; then
3480 enableval="$enable_geometry"
3481
3482 if test "$enableval" = yes; then
3483 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3484 else
3485 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3486 fi
3487
3488 else
3489
3490 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3491 if test "x$LINE" != x ; then
3492 eval "DEFAULT_$LINE"
3493 else
3494 no_cache=1
3495 fi
3496
3497 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3498
3499 fi
3500
3501
3502 eval "$ac_cv_use_geometry"
3503 if test "$no_cache" != 1; then
3504 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3505 fi
3506
3507 if test "$wxUSE_GEOMETRY" = yes; then
3508 echo "$ac_t""yes" 1>&6
3509 else
3510 echo "$ac_t""no" 1>&6
3511 fi
3512
3513
3514 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3515 echo "configure:3516: checking for --enable-log" >&5
3516 no_cache=0
3517 # Check whether --enable-log or --disable-log was given.
3518 if test "${enable_log+set}" = set; then
3519 enableval="$enable_log"
3520
3521 if test "$enableval" = yes; then
3522 ac_cv_use_log='wxUSE_LOG=yes'
3523 else
3524 ac_cv_use_log='wxUSE_LOG=no'
3525 fi
3526
3527 else
3528
3529 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3530 if test "x$LINE" != x ; then
3531 eval "DEFAULT_$LINE"
3532 else
3533 no_cache=1
3534 fi
3535
3536 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3537
3538 fi
3539
3540
3541 eval "$ac_cv_use_log"
3542 if test "$no_cache" != 1; then
3543 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3544 fi
3545
3546 if test "$wxUSE_LOG" = yes; then
3547 echo "$ac_t""yes" 1>&6
3548 else
3549 echo "$ac_t""no" 1>&6
3550 fi
3551
3552
3553 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3554 echo "configure:3555: checking for --enable-streams" >&5
3555 no_cache=0
3556 # Check whether --enable-streams or --disable-streams was given.
3557 if test "${enable_streams+set}" = set; then
3558 enableval="$enable_streams"
3559
3560 if test "$enableval" = yes; then
3561 ac_cv_use_streams='wxUSE_STREAMS=yes'
3562 else
3563 ac_cv_use_streams='wxUSE_STREAMS=no'
3564 fi
3565
3566 else
3567
3568 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3569 if test "x$LINE" != x ; then
3570 eval "DEFAULT_$LINE"
3571 else
3572 no_cache=1
3573 fi
3574
3575 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3576
3577 fi
3578
3579
3580 eval "$ac_cv_use_streams"
3581 if test "$no_cache" != 1; then
3582 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3583 fi
3584
3585 if test "$wxUSE_STREAMS" = yes; then
3586 echo "$ac_t""yes" 1>&6
3587 else
3588 echo "$ac_t""no" 1>&6
3589 fi
3590
3591
3592 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3593 echo "configure:3594: checking for --enable-file" >&5
3594 no_cache=0
3595 # Check whether --enable-file or --disable-file was given.
3596 if test "${enable_file+set}" = set; then
3597 enableval="$enable_file"
3598
3599 if test "$enableval" = yes; then
3600 ac_cv_use_file='wxUSE_FILE=yes'
3601 else
3602 ac_cv_use_file='wxUSE_FILE=no'
3603 fi
3604
3605 else
3606
3607 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3608 if test "x$LINE" != x ; then
3609 eval "DEFAULT_$LINE"
3610 else
3611 no_cache=1
3612 fi
3613
3614 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3615
3616 fi
3617
3618
3619 eval "$ac_cv_use_file"
3620 if test "$no_cache" != 1; then
3621 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3622 fi
3623
3624 if test "$wxUSE_FILE" = yes; then
3625 echo "$ac_t""yes" 1>&6
3626 else
3627 echo "$ac_t""no" 1>&6
3628 fi
3629
3630
3631 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3632 echo "configure:3633: checking for --enable-ffile" >&5
3633 no_cache=0
3634 # Check whether --enable-ffile or --disable-ffile was given.
3635 if test "${enable_ffile+set}" = set; then
3636 enableval="$enable_ffile"
3637
3638 if test "$enableval" = yes; then
3639 ac_cv_use_ffile='wxUSE_FFILE=yes'
3640 else
3641 ac_cv_use_ffile='wxUSE_FFILE=no'
3642 fi
3643
3644 else
3645
3646 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3647 if test "x$LINE" != x ; then
3648 eval "DEFAULT_$LINE"
3649 else
3650 no_cache=1
3651 fi
3652
3653 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3654
3655 fi
3656
3657
3658 eval "$ac_cv_use_ffile"
3659 if test "$no_cache" != 1; then
3660 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3661 fi
3662
3663 if test "$wxUSE_FFILE" = yes; then
3664 echo "$ac_t""yes" 1>&6
3665 else
3666 echo "$ac_t""no" 1>&6
3667 fi
3668
3669
3670 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3671 echo "configure:3672: checking for --enable-textfile" >&5
3672 no_cache=0
3673 # Check whether --enable-textfile or --disable-textfile was given.
3674 if test "${enable_textfile+set}" = set; then
3675 enableval="$enable_textfile"
3676
3677 if test "$enableval" = yes; then
3678 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3679 else
3680 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3681 fi
3682
3683 else
3684
3685 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3686 if test "x$LINE" != x ; then
3687 eval "DEFAULT_$LINE"
3688 else
3689 no_cache=1
3690 fi
3691
3692 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3693
3694 fi
3695
3696
3697 eval "$ac_cv_use_textfile"
3698 if test "$no_cache" != 1; then
3699 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3700 fi
3701
3702 if test "$wxUSE_TEXTFILE" = yes; then
3703 echo "$ac_t""yes" 1>&6
3704 else
3705 echo "$ac_t""no" 1>&6
3706 fi
3707
3708
3709 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3710 echo "configure:3711: checking for --enable-fontmap" >&5
3711 no_cache=0
3712 # Check whether --enable-fontmap or --disable-fontmap was given.
3713 if test "${enable_fontmap+set}" = set; then
3714 enableval="$enable_fontmap"
3715
3716 if test "$enableval" = yes; then
3717 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3718 else
3719 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3720 fi
3721
3722 else
3723
3724 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3725 if test "x$LINE" != x ; then
3726 eval "DEFAULT_$LINE"
3727 else
3728 no_cache=1
3729 fi
3730
3731 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3732
3733 fi
3734
3735
3736 eval "$ac_cv_use_fontmap"
3737 if test "$no_cache" != 1; then
3738 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3739 fi
3740
3741 if test "$wxUSE_FONTMAP" = yes; then
3742 echo "$ac_t""yes" 1>&6
3743 else
3744 echo "$ac_t""no" 1>&6
3745 fi
3746
3747
3748 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3749 echo "configure:3750: checking for --enable-unicode" >&5
3750 no_cache=0
3751 # Check whether --enable-unicode or --disable-unicode was given.
3752 if test "${enable_unicode+set}" = set; then
3753 enableval="$enable_unicode"
3754
3755 if test "$enableval" = yes; then
3756 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3757 else
3758 ac_cv_use_unicode='wxUSE_UNICODE=no'
3759 fi
3760
3761 else
3762
3763 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3764 if test "x$LINE" != x ; then
3765 eval "DEFAULT_$LINE"
3766 else
3767 no_cache=1
3768 fi
3769
3770 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3771
3772 fi
3773
3774
3775 eval "$ac_cv_use_unicode"
3776 if test "$no_cache" != 1; then
3777 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3778 fi
3779
3780 if test "$wxUSE_UNICODE" = yes; then
3781 echo "$ac_t""yes" 1>&6
3782 else
3783 echo "$ac_t""no" 1>&6
3784 fi
3785
3786
3787 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3788 echo "configure:3789: checking for --enable-wxprintfv" >&5
3789 no_cache=0
3790 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3791 if test "${enable_wxprintfv+set}" = set; then
3792 enableval="$enable_wxprintfv"
3793
3794 if test "$enableval" = yes; then
3795 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3796 else
3797 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3798 fi
3799
3800 else
3801
3802 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3803 if test "x$LINE" != x ; then
3804 eval "DEFAULT_$LINE"
3805 else
3806 no_cache=1
3807 fi
3808
3809 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3810
3811 fi
3812
3813
3814 eval "$ac_cv_use_wxprintfv"
3815 if test "$no_cache" != 1; then
3816 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3817 fi
3818
3819 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3820 echo "$ac_t""yes" 1>&6
3821 else
3822 echo "$ac_t""no" 1>&6
3823 fi
3824
3825
3826 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3827 echo "configure:3828: checking for --enable-std_iostreams" >&5
3828 no_cache=0
3829 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3830 if test "${enable_std_iostreams+set}" = set; then
3831 enableval="$enable_std_iostreams"
3832
3833 if test "$enableval" = yes; then
3834 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3835 else
3836 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3837 fi
3838
3839 else
3840
3841 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3842 if test "x$LINE" != x ; then
3843 eval "DEFAULT_$LINE"
3844 else
3845 no_cache=1
3846 fi
3847
3848 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3849
3850 fi
3851
3852
3853 eval "$ac_cv_use_std_iostreams"
3854 if test "$no_cache" != 1; then
3855 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3856 fi
3857
3858 if test "$wxUSE_STD_IOSTREAM" = yes; then
3859 echo "$ac_t""yes" 1>&6
3860 else
3861 echo "$ac_t""no" 1>&6
3862 fi
3863
3864
3865 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3866 echo "configure:3867: checking for --enable-filesystem" >&5
3867 no_cache=0
3868 # Check whether --enable-filesystem or --disable-filesystem was given.
3869 if test "${enable_filesystem+set}" = set; then
3870 enableval="$enable_filesystem"
3871
3872 if test "$enableval" = yes; then
3873 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3874 else
3875 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3876 fi
3877
3878 else
3879
3880 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3881 if test "x$LINE" != x ; then
3882 eval "DEFAULT_$LINE"
3883 else
3884 no_cache=1
3885 fi
3886
3887 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3888
3889 fi
3890
3891
3892 eval "$ac_cv_use_filesystem"
3893 if test "$no_cache" != 1; then
3894 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3895 fi
3896
3897 if test "$wxUSE_FILESYSTEM" = yes; then
3898 echo "$ac_t""yes" 1>&6
3899 else
3900 echo "$ac_t""no" 1>&6
3901 fi
3902
3903
3904 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3905 echo "configure:3906: checking for --enable-fs_inet" >&5
3906 no_cache=0
3907 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3908 if test "${enable_fs_inet+set}" = set; then
3909 enableval="$enable_fs_inet"
3910
3911 if test "$enableval" = yes; then
3912 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3913 else
3914 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3915 fi
3916
3917 else
3918
3919 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3920 if test "x$LINE" != x ; then
3921 eval "DEFAULT_$LINE"
3922 else
3923 no_cache=1
3924 fi
3925
3926 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3927
3928 fi
3929
3930
3931 eval "$ac_cv_use_fs_inet"
3932 if test "$no_cache" != 1; then
3933 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3934 fi
3935
3936 if test "$wxUSE_FS_INET" = yes; then
3937 echo "$ac_t""yes" 1>&6
3938 else
3939 echo "$ac_t""no" 1>&6
3940 fi
3941
3942
3943 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3944 echo "configure:3945: checking for --enable-fs_zip" >&5
3945 no_cache=0
3946 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3947 if test "${enable_fs_zip+set}" = set; then
3948 enableval="$enable_fs_zip"
3949
3950 if test "$enableval" = yes; then
3951 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3952 else
3953 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3954 fi
3955
3956 else
3957
3958 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3959 if test "x$LINE" != x ; then
3960 eval "DEFAULT_$LINE"
3961 else
3962 no_cache=1
3963 fi
3964
3965 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
3966
3967 fi
3968
3969
3970 eval "$ac_cv_use_fs_zip"
3971 if test "$no_cache" != 1; then
3972 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
3973 fi
3974
3975 if test "$wxUSE_FS_ZIP" = yes; then
3976 echo "$ac_t""yes" 1>&6
3977 else
3978 echo "$ac_t""no" 1>&6
3979 fi
3980
3981
3982 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
3983 echo "configure:3984: checking for --enable-zipstream" >&5
3984 no_cache=0
3985 # Check whether --enable-zipstream or --disable-zipstream was given.
3986 if test "${enable_zipstream+set}" = set; then
3987 enableval="$enable_zipstream"
3988
3989 if test "$enableval" = yes; then
3990 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
3991 else
3992 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
3993 fi
3994
3995 else
3996
3997 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
3998 if test "x$LINE" != x ; then
3999 eval "DEFAULT_$LINE"
4000 else
4001 no_cache=1
4002 fi
4003
4004 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4005
4006 fi
4007
4008
4009 eval "$ac_cv_use_zipstream"
4010 if test "$no_cache" != 1; then
4011 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4012 fi
4013
4014 if test "$wxUSE_ZIPSTREAM" = yes; then
4015 echo "$ac_t""yes" 1>&6
4016 else
4017 echo "$ac_t""no" 1>&6
4018 fi
4019
4020
4021
4022 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4023 echo "configure:4024: checking for --enable-catch_segvs" >&5
4024 no_cache=0
4025 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4026 if test "${enable_catch_segvs+set}" = set; then
4027 enableval="$enable_catch_segvs"
4028
4029 if test "$enableval" = yes; then
4030 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4031 else
4032 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4033 fi
4034
4035 else
4036
4037 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4038 if test "x$LINE" != x ; then
4039 eval "DEFAULT_$LINE"
4040 else
4041 no_cache=1
4042 fi
4043
4044 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4045
4046 fi
4047
4048
4049 eval "$ac_cv_use_catch_segvs"
4050 if test "$no_cache" != 1; then
4051 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4052 fi
4053
4054 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4055 echo "$ac_t""yes" 1>&6
4056 else
4057 echo "$ac_t""no" 1>&6
4058 fi
4059
4060
4061 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4062 echo "configure:4063: checking for --enable-snglinst" >&5
4063 no_cache=0
4064 # Check whether --enable-snglinst or --disable-snglinst was given.
4065 if test "${enable_snglinst+set}" = set; then
4066 enableval="$enable_snglinst"
4067
4068 if test "$enableval" = yes; then
4069 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4070 else
4071 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4072 fi
4073
4074 else
4075
4076 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4077 if test "x$LINE" != x ; then
4078 eval "DEFAULT_$LINE"
4079 else
4080 no_cache=1
4081 fi
4082
4083 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4084
4085 fi
4086
4087
4088 eval "$ac_cv_use_snglinst"
4089 if test "$no_cache" != 1; then
4090 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4091 fi
4092
4093 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4094 echo "$ac_t""yes" 1>&6
4095 else
4096 echo "$ac_t""no" 1>&6
4097 fi
4098
4099
4100
4101 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4102 echo "configure:4103: checking for --enable-mimetype" >&5
4103 no_cache=0
4104 # Check whether --enable-mimetype or --disable-mimetype was given.
4105 if test "${enable_mimetype+set}" = set; then
4106 enableval="$enable_mimetype"
4107
4108 if test "$enableval" = yes; then
4109 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4110 else
4111 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4112 fi
4113
4114 else
4115
4116 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4117 if test "x$LINE" != x ; then
4118 eval "DEFAULT_$LINE"
4119 else
4120 no_cache=1
4121 fi
4122
4123 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4124
4125 fi
4126
4127
4128 eval "$ac_cv_use_mimetype"
4129 if test "$no_cache" != 1; then
4130 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4131 fi
4132
4133 if test "$wxUSE_MIMETYPE" = yes; then
4134 echo "$ac_t""yes" 1>&6
4135 else
4136 echo "$ac_t""no" 1>&6
4137 fi
4138
4139
4140 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4141 echo "configure:4142: checking for --enable-system_options" >&5
4142 no_cache=0
4143 # Check whether --enable-system_options or --disable-system_options was given.
4144 if test "${enable_system_options+set}" = set; then
4145 enableval="$enable_system_options"
4146
4147 if test "$enableval" = yes; then
4148 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4149 else
4150 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4151 fi
4152
4153 else
4154
4155 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4156 if test "x$LINE" != x ; then
4157 eval "DEFAULT_$LINE"
4158 else
4159 no_cache=1
4160 fi
4161
4162 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4163
4164 fi
4165
4166
4167 eval "$ac_cv_use_system_options"
4168 if test "$no_cache" != 1; then
4169 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4170 fi
4171
4172 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4173 echo "$ac_t""yes" 1>&6
4174 else
4175 echo "$ac_t""no" 1>&6
4176 fi
4177
4178
4179
4180
4181 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4182 echo "configure:4183: checking for --enable-threads" >&5
4183 no_cache=0
4184 # Check whether --enable-threads or --disable-threads was given.
4185 if test "${enable_threads+set}" = set; then
4186 enableval="$enable_threads"
4187
4188 if test "$enableval" = yes; then
4189 ac_cv_use_threads='wxUSE_THREADS=yes'
4190 else
4191 ac_cv_use_threads='wxUSE_THREADS=no'
4192 fi
4193
4194 else
4195
4196 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4197 if test "x$LINE" != x ; then
4198 eval "DEFAULT_$LINE"
4199 else
4200 no_cache=1
4201 fi
4202
4203 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4204
4205 fi
4206
4207
4208 eval "$ac_cv_use_threads"
4209 if test "$no_cache" != 1; then
4210 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4211 fi
4212
4213 if test "$wxUSE_THREADS" = yes; then
4214 echo "$ac_t""yes" 1>&6
4215 else
4216 echo "$ac_t""no" 1>&6
4217 fi
4218
4219
4220 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4221 echo "configure:4222: checking for --enable-serial" >&5
4222 no_cache=0
4223 # Check whether --enable-serial or --disable-serial was given.
4224 if test "${enable_serial+set}" = set; then
4225 enableval="$enable_serial"
4226
4227 if test "$enableval" = yes; then
4228 ac_cv_use_serial='wxUSE_SERIAL=yes'
4229 else
4230 ac_cv_use_serial='wxUSE_SERIAL=no'
4231 fi
4232
4233 else
4234
4235 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4236 if test "x$LINE" != x ; then
4237 eval "DEFAULT_$LINE"
4238 else
4239 no_cache=1
4240 fi
4241
4242 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4243
4244 fi
4245
4246
4247 eval "$ac_cv_use_serial"
4248 if test "$no_cache" != 1; then
4249 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4250 fi
4251
4252 if test "$wxUSE_SERIAL" = yes; then
4253 echo "$ac_t""yes" 1>&6
4254 else
4255 echo "$ac_t""no" 1>&6
4256 fi
4257
4258
4259 if test "$wxUSE_GUI" = "yes"; then
4260
4261
4262
4263 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4264 echo "configure:4265: checking for --enable-docview" >&5
4265 no_cache=0
4266 # Check whether --enable-docview or --disable-docview was given.
4267 if test "${enable_docview+set}" = set; then
4268 enableval="$enable_docview"
4269
4270 if test "$enableval" = yes; then
4271 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4272 else
4273 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4274 fi
4275
4276 else
4277
4278 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4279 if test "x$LINE" != x ; then
4280 eval "DEFAULT_$LINE"
4281 else
4282 no_cache=1
4283 fi
4284
4285 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4286
4287 fi
4288
4289
4290 eval "$ac_cv_use_docview"
4291 if test "$no_cache" != 1; then
4292 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4293 fi
4294
4295 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4296 echo "$ac_t""yes" 1>&6
4297 else
4298 echo "$ac_t""no" 1>&6
4299 fi
4300
4301
4302 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4303 echo "configure:4304: checking for --enable-help" >&5
4304 no_cache=0
4305 # Check whether --enable-help or --disable-help was given.
4306 if test "${enable_help+set}" = set; then
4307 enableval="$enable_help"
4308
4309 if test "$enableval" = yes; then
4310 ac_cv_use_help='wxUSE_HELP=yes'
4311 else
4312 ac_cv_use_help='wxUSE_HELP=no'
4313 fi
4314
4315 else
4316
4317 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4318 if test "x$LINE" != x ; then
4319 eval "DEFAULT_$LINE"
4320 else
4321 no_cache=1
4322 fi
4323
4324 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4325
4326 fi
4327
4328
4329 eval "$ac_cv_use_help"
4330 if test "$no_cache" != 1; then
4331 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4332 fi
4333
4334 if test "$wxUSE_HELP" = yes; then
4335 echo "$ac_t""yes" 1>&6
4336 else
4337 echo "$ac_t""no" 1>&6
4338 fi
4339
4340
4341 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4342 echo "configure:4343: checking for --enable-mshtmlhelp" >&5
4343 no_cache=0
4344 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4345 if test "${enable_mshtmlhelp+set}" = set; then
4346 enableval="$enable_mshtmlhelp"
4347
4348 if test "$enableval" = yes; then
4349 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4350 else
4351 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4352 fi
4353
4354 else
4355
4356 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4357 if test "x$LINE" != x ; then
4358 eval "DEFAULT_$LINE"
4359 else
4360 no_cache=1
4361 fi
4362
4363 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4364
4365 fi
4366
4367
4368 eval "$ac_cv_use_mshtmlhelp"
4369 if test "$no_cache" != 1; then
4370 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4371 fi
4372
4373 if test "$wxUSE_MS_HTML_HELP" = yes; then
4374 echo "$ac_t""yes" 1>&6
4375 else
4376 echo "$ac_t""no" 1>&6
4377 fi
4378
4379
4380 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4381 echo "configure:4382: checking for --enable-html" >&5
4382 no_cache=0
4383 # Check whether --enable-html or --disable-html was given.
4384 if test "${enable_html+set}" = set; then
4385 enableval="$enable_html"
4386
4387 if test "$enableval" = yes; then
4388 ac_cv_use_html='wxUSE_HTML=yes'
4389 else
4390 ac_cv_use_html='wxUSE_HTML=no'
4391 fi
4392
4393 else
4394
4395 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4396 if test "x$LINE" != x ; then
4397 eval "DEFAULT_$LINE"
4398 else
4399 no_cache=1
4400 fi
4401
4402 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4403
4404 fi
4405
4406
4407 eval "$ac_cv_use_html"
4408 if test "$no_cache" != 1; then
4409 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4410 fi
4411
4412 if test "$wxUSE_HTML" = yes; then
4413 echo "$ac_t""yes" 1>&6
4414 else
4415 echo "$ac_t""no" 1>&6
4416 fi
4417
4418
4419 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4420 echo "configure:4421: checking for --enable-htmlhelp" >&5
4421 no_cache=0
4422 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4423 if test "${enable_htmlhelp+set}" = set; then
4424 enableval="$enable_htmlhelp"
4425
4426 if test "$enableval" = yes; then
4427 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4428 else
4429 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4430 fi
4431
4432 else
4433
4434 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4435 if test "x$LINE" != x ; then
4436 eval "DEFAULT_$LINE"
4437 else
4438 no_cache=1
4439 fi
4440
4441 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4442
4443 fi
4444
4445
4446 eval "$ac_cv_use_htmlhelp"
4447 if test "$no_cache" != 1; then
4448 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4449 fi
4450
4451 if test "$wxUSE_WXHTML_HELP" = yes; then
4452 echo "$ac_t""yes" 1>&6
4453 else
4454 echo "$ac_t""no" 1>&6
4455 fi
4456
4457
4458 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4459 echo "configure:4460: checking for --enable-constraints" >&5
4460 no_cache=0
4461 # Check whether --enable-constraints or --disable-constraints was given.
4462 if test "${enable_constraints+set}" = set; then
4463 enableval="$enable_constraints"
4464
4465 if test "$enableval" = yes; then
4466 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4467 else
4468 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4469 fi
4470
4471 else
4472
4473 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4474 if test "x$LINE" != x ; then
4475 eval "DEFAULT_$LINE"
4476 else
4477 no_cache=1
4478 fi
4479
4480 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4481
4482 fi
4483
4484
4485 eval "$ac_cv_use_constraints"
4486 if test "$no_cache" != 1; then
4487 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4488 fi
4489
4490 if test "$wxUSE_CONSTRAINTS" = yes; then
4491 echo "$ac_t""yes" 1>&6
4492 else
4493 echo "$ac_t""no" 1>&6
4494 fi
4495
4496
4497 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4498 echo "configure:4499: checking for --enable-printarch" >&5
4499 no_cache=0
4500 # Check whether --enable-printarch or --disable-printarch was given.
4501 if test "${enable_printarch+set}" = set; then
4502 enableval="$enable_printarch"
4503
4504 if test "$enableval" = yes; then
4505 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4506 else
4507 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4508 fi
4509
4510 else
4511
4512 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4513 if test "x$LINE" != x ; then
4514 eval "DEFAULT_$LINE"
4515 else
4516 no_cache=1
4517 fi
4518
4519 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4520
4521 fi
4522
4523
4524 eval "$ac_cv_use_printarch"
4525 if test "$no_cache" != 1; then
4526 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4527 fi
4528
4529 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4530 echo "$ac_t""yes" 1>&6
4531 else
4532 echo "$ac_t""no" 1>&6
4533 fi
4534
4535
4536 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4537 echo "configure:4538: checking for --enable-mdi" >&5
4538 no_cache=0
4539 # Check whether --enable-mdi or --disable-mdi was given.
4540 if test "${enable_mdi+set}" = set; then
4541 enableval="$enable_mdi"
4542
4543 if test "$enableval" = yes; then
4544 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4545 else
4546 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4547 fi
4548
4549 else
4550
4551 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4552 if test "x$LINE" != x ; then
4553 eval "DEFAULT_$LINE"
4554 else
4555 no_cache=1
4556 fi
4557
4558 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4559
4560 fi
4561
4562
4563 eval "$ac_cv_use_mdi"
4564 if test "$no_cache" != 1; then
4565 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4566 fi
4567
4568 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4569 echo "$ac_t""yes" 1>&6
4570 else
4571 echo "$ac_t""no" 1>&6
4572 fi
4573
4574
4575 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4576 echo "configure:4577: checking for --enable-loggui" >&5
4577 no_cache=0
4578 # Check whether --enable-loggui or --disable-loggui was given.
4579 if test "${enable_loggui+set}" = set; then
4580 enableval="$enable_loggui"
4581
4582 if test "$enableval" = yes; then
4583 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4584 else
4585 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4586 fi
4587
4588 else
4589
4590 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4591 if test "x$LINE" != x ; then
4592 eval "DEFAULT_$LINE"
4593 else
4594 no_cache=1
4595 fi
4596
4597 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4598
4599 fi
4600
4601
4602 eval "$ac_cv_use_loggui"
4603 if test "$no_cache" != 1; then
4604 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4605 fi
4606
4607 if test "$wxUSE_LOGGUI" = yes; then
4608 echo "$ac_t""yes" 1>&6
4609 else
4610 echo "$ac_t""no" 1>&6
4611 fi
4612
4613
4614 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4615 echo "configure:4616: checking for --enable-logwin" >&5
4616 no_cache=0
4617 # Check whether --enable-logwin or --disable-logwin was given.
4618 if test "${enable_logwin+set}" = set; then
4619 enableval="$enable_logwin"
4620
4621 if test "$enableval" = yes; then
4622 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4623 else
4624 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4625 fi
4626
4627 else
4628
4629 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4630 if test "x$LINE" != x ; then
4631 eval "DEFAULT_$LINE"
4632 else
4633 no_cache=1
4634 fi
4635
4636 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4637
4638 fi
4639
4640
4641 eval "$ac_cv_use_logwin"
4642 if test "$no_cache" != 1; then
4643 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4644 fi
4645
4646 if test "$wxUSE_LOGWINDOW" = yes; then
4647 echo "$ac_t""yes" 1>&6
4648 else
4649 echo "$ac_t""no" 1>&6
4650 fi
4651
4652
4653
4654 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4655 echo "configure:4656: checking for --enable-postscript" >&5
4656 no_cache=0
4657 # Check whether --enable-postscript or --disable-postscript was given.
4658 if test "${enable_postscript+set}" = set; then
4659 enableval="$enable_postscript"
4660
4661 if test "$enableval" = yes; then
4662 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4663 else
4664 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4665 fi
4666
4667 else
4668
4669 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4670 if test "x$LINE" != x ; then
4671 eval "DEFAULT_$LINE"
4672 else
4673 no_cache=1
4674 fi
4675
4676 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4677
4678 fi
4679
4680
4681 eval "$ac_cv_use_postscript"
4682 if test "$no_cache" != 1; then
4683 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4684 fi
4685
4686 if test "$wxUSE_POSTSCRIPT" = yes; then
4687 echo "$ac_t""yes" 1>&6
4688 else
4689 echo "$ac_t""no" 1>&6
4690 fi
4691
4692
4693
4694
4695
4696 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4697 echo "configure:4698: checking for --enable-prologio" >&5
4698 no_cache=0
4699 # Check whether --enable-prologio or --disable-prologio was given.
4700 if test "${enable_prologio+set}" = set; then
4701 enableval="$enable_prologio"
4702
4703 if test "$enableval" = yes; then
4704 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4705 else
4706 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4707 fi
4708
4709 else
4710
4711 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4712 if test "x$LINE" != x ; then
4713 eval "DEFAULT_$LINE"
4714 else
4715 no_cache=1
4716 fi
4717
4718 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4719
4720 fi
4721
4722
4723 eval "$ac_cv_use_prologio"
4724 if test "$no_cache" != 1; then
4725 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4726 fi
4727
4728 if test "$wxUSE_PROLOGIO" = yes; then
4729 echo "$ac_t""yes" 1>&6
4730 else
4731 echo "$ac_t""no" 1>&6
4732 fi
4733
4734
4735 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4736 echo "configure:4737: checking for --enable-resources" >&5
4737 no_cache=0
4738 # Check whether --enable-resources or --disable-resources was given.
4739 if test "${enable_resources+set}" = set; then
4740 enableval="$enable_resources"
4741
4742 if test "$enableval" = yes; then
4743 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4744 else
4745 ac_cv_use_resources='wxUSE_RESOURCES=no'
4746 fi
4747
4748 else
4749
4750 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4751 if test "x$LINE" != x ; then
4752 eval "DEFAULT_$LINE"
4753 else
4754 no_cache=1
4755 fi
4756
4757 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4758
4759 fi
4760
4761
4762 eval "$ac_cv_use_resources"
4763 if test "$no_cache" != 1; then
4764 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4765 fi
4766
4767 if test "$wxUSE_RESOURCES" = yes; then
4768 echo "$ac_t""yes" 1>&6
4769 else
4770 echo "$ac_t""no" 1>&6
4771 fi
4772
4773
4774
4775 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4776 echo "configure:4777: checking for --enable-xresources" >&5
4777 no_cache=0
4778 # Check whether --enable-xresources or --disable-xresources was given.
4779 if test "${enable_xresources+set}" = set; then
4780 enableval="$enable_xresources"
4781
4782 if test "$enableval" = yes; then
4783 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4784 else
4785 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4786 fi
4787
4788 else
4789
4790 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4791 if test "x$LINE" != x ; then
4792 eval "DEFAULT_$LINE"
4793 else
4794 no_cache=1
4795 fi
4796
4797 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4798
4799 fi
4800
4801
4802 eval "$ac_cv_use_xresources"
4803 if test "$no_cache" != 1; then
4804 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4805 fi
4806
4807 if test "$wxUSE_X_RESOURCES" = yes; then
4808 echo "$ac_t""yes" 1>&6
4809 else
4810 echo "$ac_t""no" 1>&6
4811 fi
4812
4813
4814
4815
4816 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4817 echo "configure:4818: checking for --enable-clipboard" >&5
4818 no_cache=0
4819 # Check whether --enable-clipboard or --disable-clipboard was given.
4820 if test "${enable_clipboard+set}" = set; then
4821 enableval="$enable_clipboard"
4822
4823 if test "$enableval" = yes; then
4824 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4825 else
4826 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4827 fi
4828
4829 else
4830
4831 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4832 if test "x$LINE" != x ; then
4833 eval "DEFAULT_$LINE"
4834 else
4835 no_cache=1
4836 fi
4837
4838 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4839
4840 fi
4841
4842
4843 eval "$ac_cv_use_clipboard"
4844 if test "$no_cache" != 1; then
4845 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4846 fi
4847
4848 if test "$wxUSE_CLIPBOARD" = yes; then
4849 echo "$ac_t""yes" 1>&6
4850 else
4851 echo "$ac_t""no" 1>&6
4852 fi
4853
4854
4855 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4856 echo "configure:4857: checking for --enable-dnd" >&5
4857 no_cache=0
4858 # Check whether --enable-dnd or --disable-dnd was given.
4859 if test "${enable_dnd+set}" = set; then
4860 enableval="$enable_dnd"
4861
4862 if test "$enableval" = yes; then
4863 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4864 else
4865 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4866 fi
4867
4868 else
4869
4870 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4871 if test "x$LINE" != x ; then
4872 eval "DEFAULT_$LINE"
4873 else
4874 no_cache=1
4875 fi
4876
4877 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4878
4879 fi
4880
4881
4882 eval "$ac_cv_use_dnd"
4883 if test "$no_cache" != 1; then
4884 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4885 fi
4886
4887 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4888 echo "$ac_t""yes" 1>&6
4889 else
4890 echo "$ac_t""no" 1>&6
4891 fi
4892
4893
4894 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4895 echo "configure:4896: checking for --enable-metafile" >&5
4896 no_cache=0
4897 # Check whether --enable-metafile or --disable-metafile was given.
4898 if test "${enable_metafile+set}" = set; then
4899 enableval="$enable_metafile"
4900
4901 if test "$enableval" = yes; then
4902 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4903 else
4904 ac_cv_use_metafile='wxUSE_METAFILE=no'
4905 fi
4906
4907 else
4908
4909 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4910 if test "x$LINE" != x ; then
4911 eval "DEFAULT_$LINE"
4912 else
4913 no_cache=1
4914 fi
4915
4916 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4917
4918 fi
4919
4920
4921 eval "$ac_cv_use_metafile"
4922 if test "$no_cache" != 1; then
4923 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4924 fi
4925
4926 if test "$wxUSE_METAFILE" = yes; then
4927 echo "$ac_t""yes" 1>&6
4928 else
4929 echo "$ac_t""no" 1>&6
4930 fi
4931
4932
4933
4934 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
4935 echo "configure:4936: checking for --enable-treelayout" >&5
4936 no_cache=0
4937 # Check whether --enable-treelayout or --disable-treelayout was given.
4938 if test "${enable_treelayout+set}" = set; then
4939 enableval="$enable_treelayout"
4940
4941 if test "$enableval" = yes; then
4942 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
4943 else
4944 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
4945 fi
4946
4947 else
4948
4949 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
4950 if test "x$LINE" != x ; then
4951 eval "DEFAULT_$LINE"
4952 else
4953 no_cache=1
4954 fi
4955
4956 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
4957
4958 fi
4959
4960
4961 eval "$ac_cv_use_treelayout"
4962 if test "$no_cache" != 1; then
4963 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
4964 fi
4965
4966 if test "$wxUSE_TREELAYOUT" = yes; then
4967 echo "$ac_t""yes" 1>&6
4968 else
4969 echo "$ac_t""no" 1>&6
4970 fi
4971
4972
4973
4974
4975 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
4976 echo "configure:4977: checking for --enable-controls" >&5
4977 no_cache=0
4978 # Check whether --enable-controls or --disable-controls was given.
4979 if test "${enable_controls+set}" = set; then
4980 enableval="$enable_controls"
4981
4982 if test "$enableval" = yes; then
4983 ac_cv_use_controls='wxUSE_CONTROLS=yes'
4984 else
4985 ac_cv_use_controls='wxUSE_CONTROLS=no'
4986 fi
4987
4988 else
4989
4990 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
4991 if test "x$LINE" != x ; then
4992 eval "DEFAULT_$LINE"
4993 else
4994 no_cache=1
4995 fi
4996
4997 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
4998
4999 fi
5000
5001
5002 eval "$ac_cv_use_controls"
5003 if test "$no_cache" != 1; then
5004 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5005 fi
5006
5007 if test "$wxUSE_CONTROLS" = yes; then
5008 echo "$ac_t""yes" 1>&6
5009 else
5010 echo "$ac_t""no" 1>&6
5011 fi
5012
5013
5014 if test "$wxUSE_CONTROLS" = "yes"; then
5015 DEFAULT_wxUSE_ACCEL=yes
5016 DEFAULT_wxUSE_BMPBUTTON=yes
5017 DEFAULT_wxUSE_BUTTON=yes
5018 DEFAULT_wxUSE_CALCTRL=no
5019 DEFAULT_wxUSE_CARET=yes
5020 DEFAULT_wxUSE_COMBOBOX=yes
5021 DEFAULT_wxUSE_CHECKBOX=yes
5022 DEFAULT_wxUSE_CHECKLISTBOX=yes
5023 DEFAULT_wxUSE_CHOICE=yes
5024 DEFAULT_wxUSE_GAUGE=yes
5025 DEFAULT_wxUSE_GRID=yes
5026 DEFAULT_wxUSE_NEW_GRID=yes
5027 DEFAULT_wxUSE_IMAGLIST=yes
5028 DEFAULT_wxUSE_LISTBOX=yes
5029 DEFAULT_wxUSE_LISTCTRL=yes
5030 DEFAULT_wxUSE_NOTEBOOK=yes
5031 DEFAULT_wxUSE_PROPSHEET=yes
5032 DEFAULT_wxUSE_RADIOBOX=yes
5033 DEFAULT_wxUSE_RADIOBTN=yes
5034 DEFAULT_wxUSE_SASH=yes
5035 DEFAULT_wxUSE_SCROLLBAR=yes
5036 DEFAULT_wxUSE_SLIDER=yes
5037 DEFAULT_wxUSE_SPINBTN=yes
5038 DEFAULT_wxUSE_SPINCTRL=yes
5039 DEFAULT_wxUSE_SPLITTER=yes
5040 DEFAULT_wxUSE_STATBMP=yes
5041 DEFAULT_wxUSE_STATBOX=yes
5042 DEFAULT_wxUSE_STATLINE=yes
5043 DEFAULT_wxUSE_STATUSBAR=yes
5044 DEFAULT_wxUSE_TAB_DIALOG=yes
5045 DEFAULT_wxUSE_TOGGLEBTN=yes
5046 DEFAULT_wxUSE_TOOLBAR=yes
5047 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5048 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5049 DEFAULT_wxUSE_TOOLTIPS=yes
5050 DEFAULT_wxUSE_TREECTRL=yes
5051 DEFAULT_wxUSE_POPUPWIN=yes
5052 elif test "$wxUSE_CONTROLS" = "no"; then
5053 DEFAULT_wxUSE_ACCEL=no
5054 DEFAULT_wxUSE_BMPBUTTON=no
5055 DEFAULT_wxUSE_BUTTON=no
5056 DEFAULT_wxUSE_CALCTRL=no
5057 DEFAULT_wxUSE_CARET=no
5058 DEFAULT_wxUSE_COMBOBOX=no
5059 DEFAULT_wxUSE_CHECKBOX=no
5060 DEFAULT_wxUSE_CHECKLISTBOX=no
5061 DEFAULT_wxUSE_CHOICE=no
5062 DEFAULT_wxUSE_GAUGE=no
5063 DEFAULT_wxUSE_GRID=no
5064 DEFAULT_wxUSE_NEW_GRID=no
5065 DEFAULT_wxUSE_IMAGLIST=no
5066 DEFAULT_wxUSE_LISTBOX=no
5067 DEFAULT_wxUSE_LISTCTRL=no
5068 DEFAULT_wxUSE_NOTEBOOK=no
5069 DEFAULT_wxUSE_PROPSHEET=no
5070 DEFAULT_wxUSE_RADIOBOX=no
5071 DEFAULT_wxUSE_RADIOBTN=no
5072 DEFAULT_wxUSE_SASH=no
5073 DEFAULT_wxUSE_SCROLLBAR=no
5074 DEFAULT_wxUSE_SLIDER=no
5075 DEFAULT_wxUSE_SPINBTN=no
5076 DEFAULT_wxUSE_SPINCTRL=no
5077 DEFAULT_wxUSE_SPLITTER=no
5078 DEFAULT_wxUSE_STATBMP=no
5079 DEFAULT_wxUSE_STATBOX=no
5080 DEFAULT_wxUSE_STATLINE=no
5081 DEFAULT_wxUSE_STATUSBAR=no
5082 DEFAULT_wxUSE_TAB_DIALOG=no
5083 DEFAULT_wxUSE_TOGGLEBTN=no
5084 DEFAULT_wxUSE_TOOLBAR=no
5085 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5086 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5087 DEFAULT_wxUSE_TOOLTIPS=no
5088 DEFAULT_wxUSE_TREECTRL=no
5089 DEFAULT_wxUSE_POPUPWIN=no
5090 fi
5091
5092
5093 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5094 echo "configure:5095: checking for --enable-accel" >&5
5095 no_cache=0
5096 # Check whether --enable-accel or --disable-accel was given.
5097 if test "${enable_accel+set}" = set; then
5098 enableval="$enable_accel"
5099
5100 if test "$enableval" = yes; then
5101 ac_cv_use_accel='wxUSE_ACCEL=yes'
5102 else
5103 ac_cv_use_accel='wxUSE_ACCEL=no'
5104 fi
5105
5106 else
5107
5108 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5109 if test "x$LINE" != x ; then
5110 eval "DEFAULT_$LINE"
5111 else
5112 no_cache=1
5113 fi
5114
5115 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5116
5117 fi
5118
5119
5120 eval "$ac_cv_use_accel"
5121 if test "$no_cache" != 1; then
5122 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5123 fi
5124
5125 if test "$wxUSE_ACCEL" = yes; then
5126 echo "$ac_t""yes" 1>&6
5127 else
5128 echo "$ac_t""no" 1>&6
5129 fi
5130
5131
5132 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5133 echo "configure:5134: checking for --enable-button" >&5
5134 no_cache=0
5135 # Check whether --enable-button or --disable-button was given.
5136 if test "${enable_button+set}" = set; then
5137 enableval="$enable_button"
5138
5139 if test "$enableval" = yes; then
5140 ac_cv_use_button='wxUSE_BUTTON=yes'
5141 else
5142 ac_cv_use_button='wxUSE_BUTTON=no'
5143 fi
5144
5145 else
5146
5147 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5148 if test "x$LINE" != x ; then
5149 eval "DEFAULT_$LINE"
5150 else
5151 no_cache=1
5152 fi
5153
5154 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5155
5156 fi
5157
5158
5159 eval "$ac_cv_use_button"
5160 if test "$no_cache" != 1; then
5161 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5162 fi
5163
5164 if test "$wxUSE_BUTTON" = yes; then
5165 echo "$ac_t""yes" 1>&6
5166 else
5167 echo "$ac_t""no" 1>&6
5168 fi
5169
5170
5171 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5172 echo "configure:5173: checking for --enable-bmpbutton" >&5
5173 no_cache=0
5174 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5175 if test "${enable_bmpbutton+set}" = set; then
5176 enableval="$enable_bmpbutton"
5177
5178 if test "$enableval" = yes; then
5179 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5180 else
5181 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5182 fi
5183
5184 else
5185
5186 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5187 if test "x$LINE" != x ; then
5188 eval "DEFAULT_$LINE"
5189 else
5190 no_cache=1
5191 fi
5192
5193 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5194
5195 fi
5196
5197
5198 eval "$ac_cv_use_bmpbutton"
5199 if test "$no_cache" != 1; then
5200 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5201 fi
5202
5203 if test "$wxUSE_BMPBUTTON" = yes; then
5204 echo "$ac_t""yes" 1>&6
5205 else
5206 echo "$ac_t""no" 1>&6
5207 fi
5208
5209
5210 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5211 echo "configure:5212: checking for --enable-calendar" >&5
5212 no_cache=0
5213 # Check whether --enable-calendar or --disable-calendar was given.
5214 if test "${enable_calendar+set}" = set; then
5215 enableval="$enable_calendar"
5216
5217 if test "$enableval" = yes; then
5218 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5219 else
5220 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5221 fi
5222
5223 else
5224
5225 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5226 if test "x$LINE" != x ; then
5227 eval "DEFAULT_$LINE"
5228 else
5229 no_cache=1
5230 fi
5231
5232 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5233
5234 fi
5235
5236
5237 eval "$ac_cv_use_calendar"
5238 if test "$no_cache" != 1; then
5239 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5240 fi
5241
5242 if test "$wxUSE_CALCTRL" = yes; then
5243 echo "$ac_t""yes" 1>&6
5244 else
5245 echo "$ac_t""no" 1>&6
5246 fi
5247
5248
5249 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5250 echo "configure:5251: checking for --enable-caret" >&5
5251 no_cache=0
5252 # Check whether --enable-caret or --disable-caret was given.
5253 if test "${enable_caret+set}" = set; then
5254 enableval="$enable_caret"
5255
5256 if test "$enableval" = yes; then
5257 ac_cv_use_caret='wxUSE_CARET=yes'
5258 else
5259 ac_cv_use_caret='wxUSE_CARET=no'
5260 fi
5261
5262 else
5263
5264 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5265 if test "x$LINE" != x ; then
5266 eval "DEFAULT_$LINE"
5267 else
5268 no_cache=1
5269 fi
5270
5271 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5272
5273 fi
5274
5275
5276 eval "$ac_cv_use_caret"
5277 if test "$no_cache" != 1; then
5278 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5279 fi
5280
5281 if test "$wxUSE_CARET" = yes; then
5282 echo "$ac_t""yes" 1>&6
5283 else
5284 echo "$ac_t""no" 1>&6
5285 fi
5286
5287
5288 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5289 echo "configure:5290: checking for --enable-checkbox" >&5
5290 no_cache=0
5291 # Check whether --enable-checkbox or --disable-checkbox was given.
5292 if test "${enable_checkbox+set}" = set; then
5293 enableval="$enable_checkbox"
5294
5295 if test "$enableval" = yes; then
5296 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5297 else
5298 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5299 fi
5300
5301 else
5302
5303 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5304 if test "x$LINE" != x ; then
5305 eval "DEFAULT_$LINE"
5306 else
5307 no_cache=1
5308 fi
5309
5310 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5311
5312 fi
5313
5314
5315 eval "$ac_cv_use_checkbox"
5316 if test "$no_cache" != 1; then
5317 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5318 fi
5319
5320 if test "$wxUSE_CHECKBOX" = yes; then
5321 echo "$ac_t""yes" 1>&6
5322 else
5323 echo "$ac_t""no" 1>&6
5324 fi
5325
5326
5327 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5328 echo "configure:5329: checking for --enable-checklst" >&5
5329 no_cache=0
5330 # Check whether --enable-checklst or --disable-checklst was given.
5331 if test "${enable_checklst+set}" = set; then
5332 enableval="$enable_checklst"
5333
5334 if test "$enableval" = yes; then
5335 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5336 else
5337 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5338 fi
5339
5340 else
5341
5342 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5343 if test "x$LINE" != x ; then
5344 eval "DEFAULT_$LINE"
5345 else
5346 no_cache=1
5347 fi
5348
5349 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5350
5351 fi
5352
5353
5354 eval "$ac_cv_use_checklst"
5355 if test "$no_cache" != 1; then
5356 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5357 fi
5358
5359 if test "$wxUSE_CHECKLST" = yes; then
5360 echo "$ac_t""yes" 1>&6
5361 else
5362 echo "$ac_t""no" 1>&6
5363 fi
5364
5365
5366 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5367 echo "configure:5368: checking for --enable-choice" >&5
5368 no_cache=0
5369 # Check whether --enable-choice or --disable-choice was given.
5370 if test "${enable_choice+set}" = set; then
5371 enableval="$enable_choice"
5372
5373 if test "$enableval" = yes; then
5374 ac_cv_use_choice='wxUSE_CHOICE=yes'
5375 else
5376 ac_cv_use_choice='wxUSE_CHOICE=no'
5377 fi
5378
5379 else
5380
5381 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5382 if test "x$LINE" != x ; then
5383 eval "DEFAULT_$LINE"
5384 else
5385 no_cache=1
5386 fi
5387
5388 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5389
5390 fi
5391
5392
5393 eval "$ac_cv_use_choice"
5394 if test "$no_cache" != 1; then
5395 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5396 fi
5397
5398 if test "$wxUSE_CHOICE" = yes; then
5399 echo "$ac_t""yes" 1>&6
5400 else
5401 echo "$ac_t""no" 1>&6
5402 fi
5403
5404
5405 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5406 echo "configure:5407: checking for --enable-combobox" >&5
5407 no_cache=0
5408 # Check whether --enable-combobox or --disable-combobox was given.
5409 if test "${enable_combobox+set}" = set; then
5410 enableval="$enable_combobox"
5411
5412 if test "$enableval" = yes; then
5413 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5414 else
5415 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5416 fi
5417
5418 else
5419
5420 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5421 if test "x$LINE" != x ; then
5422 eval "DEFAULT_$LINE"
5423 else
5424 no_cache=1
5425 fi
5426
5427 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5428
5429 fi
5430
5431
5432 eval "$ac_cv_use_combobox"
5433 if test "$no_cache" != 1; then
5434 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5435 fi
5436
5437 if test "$wxUSE_COMBOBOX" = yes; then
5438 echo "$ac_t""yes" 1>&6
5439 else
5440 echo "$ac_t""no" 1>&6
5441 fi
5442
5443
5444 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5445 echo "configure:5446: checking for --enable-gauge" >&5
5446 no_cache=0
5447 # Check whether --enable-gauge or --disable-gauge was given.
5448 if test "${enable_gauge+set}" = set; then
5449 enableval="$enable_gauge"
5450
5451 if test "$enableval" = yes; then
5452 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5453 else
5454 ac_cv_use_gauge='wxUSE_GAUGE=no'
5455 fi
5456
5457 else
5458
5459 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5460 if test "x$LINE" != x ; then
5461 eval "DEFAULT_$LINE"
5462 else
5463 no_cache=1
5464 fi
5465
5466 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5467
5468 fi
5469
5470
5471 eval "$ac_cv_use_gauge"
5472 if test "$no_cache" != 1; then
5473 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5474 fi
5475
5476 if test "$wxUSE_GAUGE" = yes; then
5477 echo "$ac_t""yes" 1>&6
5478 else
5479 echo "$ac_t""no" 1>&6
5480 fi
5481
5482
5483 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5484 echo "configure:5485: checking for --enable-grid" >&5
5485 no_cache=0
5486 # Check whether --enable-grid or --disable-grid was given.
5487 if test "${enable_grid+set}" = set; then
5488 enableval="$enable_grid"
5489
5490 if test "$enableval" = yes; then
5491 ac_cv_use_grid='wxUSE_GRID=yes'
5492 else
5493 ac_cv_use_grid='wxUSE_GRID=no'
5494 fi
5495
5496 else
5497
5498 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5499 if test "x$LINE" != x ; then
5500 eval "DEFAULT_$LINE"
5501 else
5502 no_cache=1
5503 fi
5504
5505 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5506
5507 fi
5508
5509
5510 eval "$ac_cv_use_grid"
5511 if test "$no_cache" != 1; then
5512 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5513 fi
5514
5515 if test "$wxUSE_GRID" = yes; then
5516 echo "$ac_t""yes" 1>&6
5517 else
5518 echo "$ac_t""no" 1>&6
5519 fi
5520
5521
5522 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5523 echo "configure:5524: checking for --enable-newgrid" >&5
5524 no_cache=0
5525 # Check whether --enable-newgrid or --disable-newgrid was given.
5526 if test "${enable_newgrid+set}" = set; then
5527 enableval="$enable_newgrid"
5528
5529 if test "$enableval" = yes; then
5530 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5531 else
5532 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5533 fi
5534
5535 else
5536
5537 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5538 if test "x$LINE" != x ; then
5539 eval "DEFAULT_$LINE"
5540 else
5541 no_cache=1
5542 fi
5543
5544 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5545
5546 fi
5547
5548
5549 eval "$ac_cv_use_newgrid"
5550 if test "$no_cache" != 1; then
5551 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5552 fi
5553
5554 if test "$wxUSE_NEW_GRID" = yes; then
5555 echo "$ac_t""yes" 1>&6
5556 else
5557 echo "$ac_t""no" 1>&6
5558 fi
5559
5560
5561 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5562 echo "configure:5563: checking for --enable-imaglist" >&5
5563 no_cache=0
5564 # Check whether --enable-imaglist or --disable-imaglist was given.
5565 if test "${enable_imaglist+set}" = set; then
5566 enableval="$enable_imaglist"
5567
5568 if test "$enableval" = yes; then
5569 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5570 else
5571 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5572 fi
5573
5574 else
5575
5576 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5577 if test "x$LINE" != x ; then
5578 eval "DEFAULT_$LINE"
5579 else
5580 no_cache=1
5581 fi
5582
5583 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5584
5585 fi
5586
5587
5588 eval "$ac_cv_use_imaglist"
5589 if test "$no_cache" != 1; then
5590 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5591 fi
5592
5593 if test "$wxUSE_IMAGLIST" = yes; then
5594 echo "$ac_t""yes" 1>&6
5595 else
5596 echo "$ac_t""no" 1>&6
5597 fi
5598
5599
5600 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5601 echo "configure:5602: checking for --enable-listbox" >&5
5602 no_cache=0
5603 # Check whether --enable-listbox or --disable-listbox was given.
5604 if test "${enable_listbox+set}" = set; then
5605 enableval="$enable_listbox"
5606
5607 if test "$enableval" = yes; then
5608 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5609 else
5610 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5611 fi
5612
5613 else
5614
5615 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5616 if test "x$LINE" != x ; then
5617 eval "DEFAULT_$LINE"
5618 else
5619 no_cache=1
5620 fi
5621
5622 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5623
5624 fi
5625
5626
5627 eval "$ac_cv_use_listbox"
5628 if test "$no_cache" != 1; then
5629 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5630 fi
5631
5632 if test "$wxUSE_LISTBOX" = yes; then
5633 echo "$ac_t""yes" 1>&6
5634 else
5635 echo "$ac_t""no" 1>&6
5636 fi
5637
5638
5639 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5640 echo "configure:5641: checking for --enable-listctrl" >&5
5641 no_cache=0
5642 # Check whether --enable-listctrl or --disable-listctrl was given.
5643 if test "${enable_listctrl+set}" = set; then
5644 enableval="$enable_listctrl"
5645
5646 if test "$enableval" = yes; then
5647 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5648 else
5649 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5650 fi
5651
5652 else
5653
5654 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5655 if test "x$LINE" != x ; then
5656 eval "DEFAULT_$LINE"
5657 else
5658 no_cache=1
5659 fi
5660
5661 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5662
5663 fi
5664
5665
5666 eval "$ac_cv_use_listctrl"
5667 if test "$no_cache" != 1; then
5668 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5669 fi
5670
5671 if test "$wxUSE_LISTCTRL" = yes; then
5672 echo "$ac_t""yes" 1>&6
5673 else
5674 echo "$ac_t""no" 1>&6
5675 fi
5676
5677
5678 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5679 echo "configure:5680: checking for --enable-notebook" >&5
5680 no_cache=0
5681 # Check whether --enable-notebook or --disable-notebook was given.
5682 if test "${enable_notebook+set}" = set; then
5683 enableval="$enable_notebook"
5684
5685 if test "$enableval" = yes; then
5686 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5687 else
5688 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5689 fi
5690
5691 else
5692
5693 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5694 if test "x$LINE" != x ; then
5695 eval "DEFAULT_$LINE"
5696 else
5697 no_cache=1
5698 fi
5699
5700 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5701
5702 fi
5703
5704
5705 eval "$ac_cv_use_notebook"
5706 if test "$no_cache" != 1; then
5707 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5708 fi
5709
5710 if test "$wxUSE_NOTEBOOK" = yes; then
5711 echo "$ac_t""yes" 1>&6
5712 else
5713 echo "$ac_t""no" 1>&6
5714 fi
5715
5716
5717 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5718 echo "configure:5719: checking for --enable-propsheet" >&5
5719 no_cache=0
5720 # Check whether --enable-propsheet or --disable-propsheet was given.
5721 if test "${enable_propsheet+set}" = set; then
5722 enableval="$enable_propsheet"
5723
5724 if test "$enableval" = yes; then
5725 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5726 else
5727 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5728 fi
5729
5730 else
5731
5732 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5733 if test "x$LINE" != x ; then
5734 eval "DEFAULT_$LINE"
5735 else
5736 no_cache=1
5737 fi
5738
5739 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5740
5741 fi
5742
5743
5744 eval "$ac_cv_use_propsheet"
5745 if test "$no_cache" != 1; then
5746 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5747 fi
5748
5749 if test "$wxUSE_PROPSHEET" = yes; then
5750 echo "$ac_t""yes" 1>&6
5751 else
5752 echo "$ac_t""no" 1>&6
5753 fi
5754
5755
5756 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5757 echo "configure:5758: checking for --enable-radiobox" >&5
5758 no_cache=0
5759 # Check whether --enable-radiobox or --disable-radiobox was given.
5760 if test "${enable_radiobox+set}" = set; then
5761 enableval="$enable_radiobox"
5762
5763 if test "$enableval" = yes; then
5764 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5765 else
5766 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5767 fi
5768
5769 else
5770
5771 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5772 if test "x$LINE" != x ; then
5773 eval "DEFAULT_$LINE"
5774 else
5775 no_cache=1
5776 fi
5777
5778 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5779
5780 fi
5781
5782
5783 eval "$ac_cv_use_radiobox"
5784 if test "$no_cache" != 1; then
5785 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5786 fi
5787
5788 if test "$wxUSE_RADIOBOX" = yes; then
5789 echo "$ac_t""yes" 1>&6
5790 else
5791 echo "$ac_t""no" 1>&6
5792 fi
5793
5794
5795 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5796 echo "configure:5797: checking for --enable-radiobtn" >&5
5797 no_cache=0
5798 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5799 if test "${enable_radiobtn+set}" = set; then
5800 enableval="$enable_radiobtn"
5801
5802 if test "$enableval" = yes; then
5803 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5804 else
5805 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5806 fi
5807
5808 else
5809
5810 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5811 if test "x$LINE" != x ; then
5812 eval "DEFAULT_$LINE"
5813 else
5814 no_cache=1
5815 fi
5816
5817 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5818
5819 fi
5820
5821
5822 eval "$ac_cv_use_radiobtn"
5823 if test "$no_cache" != 1; then
5824 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5825 fi
5826
5827 if test "$wxUSE_RADIOBTN" = yes; then
5828 echo "$ac_t""yes" 1>&6
5829 else
5830 echo "$ac_t""no" 1>&6
5831 fi
5832
5833
5834 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5835 echo "configure:5836: checking for --enable-sash" >&5
5836 no_cache=0
5837 # Check whether --enable-sash or --disable-sash was given.
5838 if test "${enable_sash+set}" = set; then
5839 enableval="$enable_sash"
5840
5841 if test "$enableval" = yes; then
5842 ac_cv_use_sash='wxUSE_SASH=yes'
5843 else
5844 ac_cv_use_sash='wxUSE_SASH=no'
5845 fi
5846
5847 else
5848
5849 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5850 if test "x$LINE" != x ; then
5851 eval "DEFAULT_$LINE"
5852 else
5853 no_cache=1
5854 fi
5855
5856 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5857
5858 fi
5859
5860
5861 eval "$ac_cv_use_sash"
5862 if test "$no_cache" != 1; then
5863 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5864 fi
5865
5866 if test "$wxUSE_SASH" = yes; then
5867 echo "$ac_t""yes" 1>&6
5868 else
5869 echo "$ac_t""no" 1>&6
5870 fi
5871
5872
5873 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5874 echo "configure:5875: checking for --enable-scrollbar" >&5
5875 no_cache=0
5876 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5877 if test "${enable_scrollbar+set}" = set; then
5878 enableval="$enable_scrollbar"
5879
5880 if test "$enableval" = yes; then
5881 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5882 else
5883 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5884 fi
5885
5886 else
5887
5888 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5889 if test "x$LINE" != x ; then
5890 eval "DEFAULT_$LINE"
5891 else
5892 no_cache=1
5893 fi
5894
5895 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5896
5897 fi
5898
5899
5900 eval "$ac_cv_use_scrollbar"
5901 if test "$no_cache" != 1; then
5902 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5903 fi
5904
5905 if test "$wxUSE_SCROLLBAR" = yes; then
5906 echo "$ac_t""yes" 1>&6
5907 else
5908 echo "$ac_t""no" 1>&6
5909 fi
5910
5911
5912 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5913 echo "configure:5914: checking for --enable-slider" >&5
5914 no_cache=0
5915 # Check whether --enable-slider or --disable-slider was given.
5916 if test "${enable_slider+set}" = set; then
5917 enableval="$enable_slider"
5918
5919 if test "$enableval" = yes; then
5920 ac_cv_use_slider='wxUSE_SLIDER=yes'
5921 else
5922 ac_cv_use_slider='wxUSE_SLIDER=no'
5923 fi
5924
5925 else
5926
5927 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5928 if test "x$LINE" != x ; then
5929 eval "DEFAULT_$LINE"
5930 else
5931 no_cache=1
5932 fi
5933
5934 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5935
5936 fi
5937
5938
5939 eval "$ac_cv_use_slider"
5940 if test "$no_cache" != 1; then
5941 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5942 fi
5943
5944 if test "$wxUSE_SLIDER" = yes; then
5945 echo "$ac_t""yes" 1>&6
5946 else
5947 echo "$ac_t""no" 1>&6
5948 fi
5949
5950
5951 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5952 echo "configure:5953: checking for --enable-spinbtn" >&5
5953 no_cache=0
5954 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5955 if test "${enable_spinbtn+set}" = set; then
5956 enableval="$enable_spinbtn"
5957
5958 if test "$enableval" = yes; then
5959 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5960 else
5961 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5962 fi
5963
5964 else
5965
5966 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5967 if test "x$LINE" != x ; then
5968 eval "DEFAULT_$LINE"
5969 else
5970 no_cache=1
5971 fi
5972
5973 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5974
5975 fi
5976
5977
5978 eval "$ac_cv_use_spinbtn"
5979 if test "$no_cache" != 1; then
5980 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5981 fi
5982
5983 if test "$wxUSE_SPINBTN" = yes; then
5984 echo "$ac_t""yes" 1>&6
5985 else
5986 echo "$ac_t""no" 1>&6
5987 fi
5988
5989
5990 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
5991 echo "configure:5992: checking for --enable-spinctrl" >&5
5992 no_cache=0
5993 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5994 if test "${enable_spinctrl+set}" = set; then
5995 enableval="$enable_spinctrl"
5996
5997 if test "$enableval" = yes; then
5998 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5999 else
6000 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6001 fi
6002
6003 else
6004
6005 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6006 if test "x$LINE" != x ; then
6007 eval "DEFAULT_$LINE"
6008 else
6009 no_cache=1
6010 fi
6011
6012 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6013
6014 fi
6015
6016
6017 eval "$ac_cv_use_spinctrl"
6018 if test "$no_cache" != 1; then
6019 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6020 fi
6021
6022 if test "$wxUSE_SPINCTRL" = yes; then
6023 echo "$ac_t""yes" 1>&6
6024 else
6025 echo "$ac_t""no" 1>&6
6026 fi
6027
6028
6029 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6030 echo "configure:6031: checking for --enable-splitter" >&5
6031 no_cache=0
6032 # Check whether --enable-splitter or --disable-splitter was given.
6033 if test "${enable_splitter+set}" = set; then
6034 enableval="$enable_splitter"
6035
6036 if test "$enableval" = yes; then
6037 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6038 else
6039 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6040 fi
6041
6042 else
6043
6044 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6045 if test "x$LINE" != x ; then
6046 eval "DEFAULT_$LINE"
6047 else
6048 no_cache=1
6049 fi
6050
6051 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6052
6053 fi
6054
6055
6056 eval "$ac_cv_use_splitter"
6057 if test "$no_cache" != 1; then
6058 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6059 fi
6060
6061 if test "$wxUSE_SPLITTER" = yes; then
6062 echo "$ac_t""yes" 1>&6
6063 else
6064 echo "$ac_t""no" 1>&6
6065 fi
6066
6067
6068 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6069 echo "configure:6070: checking for --enable-statbmp" >&5
6070 no_cache=0
6071 # Check whether --enable-statbmp or --disable-statbmp was given.
6072 if test "${enable_statbmp+set}" = set; then
6073 enableval="$enable_statbmp"
6074
6075 if test "$enableval" = yes; then
6076 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6077 else
6078 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6079 fi
6080
6081 else
6082
6083 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6084 if test "x$LINE" != x ; then
6085 eval "DEFAULT_$LINE"
6086 else
6087 no_cache=1
6088 fi
6089
6090 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6091
6092 fi
6093
6094
6095 eval "$ac_cv_use_statbmp"
6096 if test "$no_cache" != 1; then
6097 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6098 fi
6099
6100 if test "$wxUSE_STATBMP" = yes; then
6101 echo "$ac_t""yes" 1>&6
6102 else
6103 echo "$ac_t""no" 1>&6
6104 fi
6105
6106
6107 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6108 echo "configure:6109: checking for --enable-statbox" >&5
6109 no_cache=0
6110 # Check whether --enable-statbox or --disable-statbox was given.
6111 if test "${enable_statbox+set}" = set; then
6112 enableval="$enable_statbox"
6113
6114 if test "$enableval" = yes; then
6115 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6116 else
6117 ac_cv_use_statbox='wxUSE_STATBOX=no'
6118 fi
6119
6120 else
6121
6122 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6123 if test "x$LINE" != x ; then
6124 eval "DEFAULT_$LINE"
6125 else
6126 no_cache=1
6127 fi
6128
6129 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6130
6131 fi
6132
6133
6134 eval "$ac_cv_use_statbox"
6135 if test "$no_cache" != 1; then
6136 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6137 fi
6138
6139 if test "$wxUSE_STATBOX" = yes; then
6140 echo "$ac_t""yes" 1>&6
6141 else
6142 echo "$ac_t""no" 1>&6
6143 fi
6144
6145
6146 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6147 echo "configure:6148: checking for --enable-statline" >&5
6148 no_cache=0
6149 # Check whether --enable-statline or --disable-statline was given.
6150 if test "${enable_statline+set}" = set; then
6151 enableval="$enable_statline"
6152
6153 if test "$enableval" = yes; then
6154 ac_cv_use_statline='wxUSE_STATLINE=yes'
6155 else
6156 ac_cv_use_statline='wxUSE_STATLINE=no'
6157 fi
6158
6159 else
6160
6161 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6162 if test "x$LINE" != x ; then
6163 eval "DEFAULT_$LINE"
6164 else
6165 no_cache=1
6166 fi
6167
6168 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6169
6170 fi
6171
6172
6173 eval "$ac_cv_use_statline"
6174 if test "$no_cache" != 1; then
6175 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6176 fi
6177
6178 if test "$wxUSE_STATLINE" = yes; then
6179 echo "$ac_t""yes" 1>&6
6180 else
6181 echo "$ac_t""no" 1>&6
6182 fi
6183
6184
6185 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6186 echo "configure:6187: checking for --enable-stattext" >&5
6187 no_cache=0
6188 # Check whether --enable-stattext or --disable-stattext was given.
6189 if test "${enable_stattext+set}" = set; then
6190 enableval="$enable_stattext"
6191
6192 if test "$enableval" = yes; then
6193 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6194 else
6195 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6196 fi
6197
6198 else
6199
6200 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6201 if test "x$LINE" != x ; then
6202 eval "DEFAULT_$LINE"
6203 else
6204 no_cache=1
6205 fi
6206
6207 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6208
6209 fi
6210
6211
6212 eval "$ac_cv_use_stattext"
6213 if test "$no_cache" != 1; then
6214 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6215 fi
6216
6217 if test "$wxUSE_STATTEXT" = yes; then
6218 echo "$ac_t""yes" 1>&6
6219 else
6220 echo "$ac_t""no" 1>&6
6221 fi
6222
6223
6224 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6225 echo "configure:6226: checking for --enable-statusbar" >&5
6226 no_cache=0
6227 # Check whether --enable-statusbar or --disable-statusbar was given.
6228 if test "${enable_statusbar+set}" = set; then
6229 enableval="$enable_statusbar"
6230
6231 if test "$enableval" = yes; then
6232 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6233 else
6234 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6235 fi
6236
6237 else
6238
6239 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6240 if test "x$LINE" != x ; then
6241 eval "DEFAULT_$LINE"
6242 else
6243 no_cache=1
6244 fi
6245
6246 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6247
6248 fi
6249
6250
6251 eval "$ac_cv_use_statusbar"
6252 if test "$no_cache" != 1; then
6253 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6254 fi
6255
6256 if test "$wxUSE_STATUSBAR" = yes; then
6257 echo "$ac_t""yes" 1>&6
6258 else
6259 echo "$ac_t""no" 1>&6
6260 fi
6261
6262
6263 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6264 echo "configure:6265: checking for --enable-tabdialog" >&5
6265 no_cache=0
6266 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6267 if test "${enable_tabdialog+set}" = set; then
6268 enableval="$enable_tabdialog"
6269
6270 if test "$enableval" = yes; then
6271 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6272 else
6273 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6274 fi
6275
6276 else
6277
6278 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6279 if test "x$LINE" != x ; then
6280 eval "DEFAULT_$LINE"
6281 else
6282 no_cache=1
6283 fi
6284
6285 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6286
6287 fi
6288
6289
6290 eval "$ac_cv_use_tabdialog"
6291 if test "$no_cache" != 1; then
6292 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6293 fi
6294
6295 if test "$wxUSE_TABDIALOG" = yes; then
6296 echo "$ac_t""yes" 1>&6
6297 else
6298 echo "$ac_t""no" 1>&6
6299 fi
6300
6301
6302 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6303 echo "configure:6304: checking for --enable-textctrl" >&5
6304 no_cache=0
6305 # Check whether --enable-textctrl or --disable-textctrl was given.
6306 if test "${enable_textctrl+set}" = set; then
6307 enableval="$enable_textctrl"
6308
6309 if test "$enableval" = yes; then
6310 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6311 else
6312 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6313 fi
6314
6315 else
6316
6317 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6318 if test "x$LINE" != x ; then
6319 eval "DEFAULT_$LINE"
6320 else
6321 no_cache=1
6322 fi
6323
6324 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6325
6326 fi
6327
6328
6329 eval "$ac_cv_use_textctrl"
6330 if test "$no_cache" != 1; then
6331 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6332 fi
6333
6334 if test "$wxUSE_TEXTCTRL" = yes; then
6335 echo "$ac_t""yes" 1>&6
6336 else
6337 echo "$ac_t""no" 1>&6
6338 fi
6339
6340
6341 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6342 echo "configure:6343: checking for --enable-togglebtn" >&5
6343 no_cache=0
6344 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6345 if test "${enable_togglebtn+set}" = set; then
6346 enableval="$enable_togglebtn"
6347
6348 if test "$enableval" = yes; then
6349 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6350 else
6351 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6352 fi
6353
6354 else
6355
6356 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6357 if test "x$LINE" != x ; then
6358 eval "DEFAULT_$LINE"
6359 else
6360 no_cache=1
6361 fi
6362
6363 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6364
6365 fi
6366
6367
6368 eval "$ac_cv_use_togglebtn"
6369 if test "$no_cache" != 1; then
6370 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6371 fi
6372
6373 if test "$wxUSE_TOGGLEBTN" = yes; then
6374 echo "$ac_t""yes" 1>&6
6375 else
6376 echo "$ac_t""no" 1>&6
6377 fi
6378
6379
6380 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6381 echo "configure:6382: checking for --enable-toolbar" >&5
6382 no_cache=0
6383 # Check whether --enable-toolbar or --disable-toolbar was given.
6384 if test "${enable_toolbar+set}" = set; then
6385 enableval="$enable_toolbar"
6386
6387 if test "$enableval" = yes; then
6388 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6389 else
6390 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6391 fi
6392
6393 else
6394
6395 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6396 if test "x$LINE" != x ; then
6397 eval "DEFAULT_$LINE"
6398 else
6399 no_cache=1
6400 fi
6401
6402 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6403
6404 fi
6405
6406
6407 eval "$ac_cv_use_toolbar"
6408 if test "$no_cache" != 1; then
6409 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6410 fi
6411
6412 if test "$wxUSE_TOOLBAR" = yes; then
6413 echo "$ac_t""yes" 1>&6
6414 else
6415 echo "$ac_t""no" 1>&6
6416 fi
6417
6418
6419 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6420 echo "configure:6421: checking for --enable-tbarnative" >&5
6421 no_cache=0
6422 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6423 if test "${enable_tbarnative+set}" = set; then
6424 enableval="$enable_tbarnative"
6425
6426 if test "$enableval" = yes; then
6427 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6428 else
6429 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6430 fi
6431
6432 else
6433
6434 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6435 if test "x$LINE" != x ; then
6436 eval "DEFAULT_$LINE"
6437 else
6438 no_cache=1
6439 fi
6440
6441 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6442
6443 fi
6444
6445
6446 eval "$ac_cv_use_tbarnative"
6447 if test "$no_cache" != 1; then
6448 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6449 fi
6450
6451 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6452 echo "$ac_t""yes" 1>&6
6453 else
6454 echo "$ac_t""no" 1>&6
6455 fi
6456
6457
6458 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6459 echo "configure:6460: checking for --enable-tbarsmpl" >&5
6460 no_cache=0
6461 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6462 if test "${enable_tbarsmpl+set}" = set; then
6463 enableval="$enable_tbarsmpl"
6464
6465 if test "$enableval" = yes; then
6466 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6467 else
6468 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6469 fi
6470
6471 else
6472
6473 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6474 if test "x$LINE" != x ; then
6475 eval "DEFAULT_$LINE"
6476 else
6477 no_cache=1
6478 fi
6479
6480 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6481
6482 fi
6483
6484
6485 eval "$ac_cv_use_tbarsmpl"
6486 if test "$no_cache" != 1; then
6487 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6488 fi
6489
6490 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6491 echo "$ac_t""yes" 1>&6
6492 else
6493 echo "$ac_t""no" 1>&6
6494 fi
6495
6496
6497 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6498 echo "configure:6499: checking for --enable-treectrl" >&5
6499 no_cache=0
6500 # Check whether --enable-treectrl or --disable-treectrl was given.
6501 if test "${enable_treectrl+set}" = set; then
6502 enableval="$enable_treectrl"
6503
6504 if test "$enableval" = yes; then
6505 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6506 else
6507 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6508 fi
6509
6510 else
6511
6512 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6513 if test "x$LINE" != x ; then
6514 eval "DEFAULT_$LINE"
6515 else
6516 no_cache=1
6517 fi
6518
6519 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6520
6521 fi
6522
6523
6524 eval "$ac_cv_use_treectrl"
6525 if test "$no_cache" != 1; then
6526 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6527 fi
6528
6529 if test "$wxUSE_TREECTRL" = yes; then
6530 echo "$ac_t""yes" 1>&6
6531 else
6532 echo "$ac_t""no" 1>&6
6533 fi
6534
6535
6536 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6537 echo "configure:6538: checking for --enable-popupwin" >&5
6538 no_cache=0
6539 # Check whether --enable-popupwin or --disable-popupwin was given.
6540 if test "${enable_popupwin+set}" = set; then
6541 enableval="$enable_popupwin"
6542
6543 if test "$enableval" = yes; then
6544 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6545 else
6546 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6547 fi
6548
6549 else
6550
6551 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6552 if test "x$LINE" != x ; then
6553 eval "DEFAULT_$LINE"
6554 else
6555 no_cache=1
6556 fi
6557
6558 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6559
6560 fi
6561
6562
6563 eval "$ac_cv_use_popupwin"
6564 if test "$no_cache" != 1; then
6565 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6566 fi
6567
6568 if test "$wxUSE_POPUPWIN" = yes; then
6569 echo "$ac_t""yes" 1>&6
6570 else
6571 echo "$ac_t""no" 1>&6
6572 fi
6573
6574
6575
6576
6577 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6578 echo "configure:6579: checking for --enable-commondlg" >&5
6579 no_cache=0
6580 # Check whether --enable-commondlg or --disable-commondlg was given.
6581 if test "${enable_commondlg+set}" = set; then
6582 enableval="$enable_commondlg"
6583
6584 if test "$enableval" = yes; then
6585 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6586 else
6587 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6588 fi
6589
6590 else
6591
6592 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6593 if test "x$LINE" != x ; then
6594 eval "DEFAULT_$LINE"
6595 else
6596 no_cache=1
6597 fi
6598
6599 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6600
6601 fi
6602
6603
6604 eval "$ac_cv_use_commondlg"
6605 if test "$no_cache" != 1; then
6606 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6607 fi
6608
6609 if test "$wxUSE_COMMONDLGS" = yes; then
6610 echo "$ac_t""yes" 1>&6
6611 else
6612 echo "$ac_t""no" 1>&6
6613 fi
6614
6615
6616 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6617 echo "configure:6618: checking for --enable-choicedlg" >&5
6618 no_cache=0
6619 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6620 if test "${enable_choicedlg+set}" = set; then
6621 enableval="$enable_choicedlg"
6622
6623 if test "$enableval" = yes; then
6624 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6625 else
6626 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6627 fi
6628
6629 else
6630
6631 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6632 if test "x$LINE" != x ; then
6633 eval "DEFAULT_$LINE"
6634 else
6635 no_cache=1
6636 fi
6637
6638 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6639
6640 fi
6641
6642
6643 eval "$ac_cv_use_choicedlg"
6644 if test "$no_cache" != 1; then
6645 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6646 fi
6647
6648 if test "$wxUSE_CHOICEDLG" = yes; then
6649 echo "$ac_t""yes" 1>&6
6650 else
6651 echo "$ac_t""no" 1>&6
6652 fi
6653
6654
6655 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6656 echo "configure:6657: checking for --enable-coldlg" >&5
6657 no_cache=0
6658 # Check whether --enable-coldlg or --disable-coldlg was given.
6659 if test "${enable_coldlg+set}" = set; then
6660 enableval="$enable_coldlg"
6661
6662 if test "$enableval" = yes; then
6663 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6664 else
6665 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6666 fi
6667
6668 else
6669
6670 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6671 if test "x$LINE" != x ; then
6672 eval "DEFAULT_$LINE"
6673 else
6674 no_cache=1
6675 fi
6676
6677 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6678
6679 fi
6680
6681
6682 eval "$ac_cv_use_coldlg"
6683 if test "$no_cache" != 1; then
6684 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6685 fi
6686
6687 if test "$wxUSE_COLOURDLG" = yes; then
6688 echo "$ac_t""yes" 1>&6
6689 else
6690 echo "$ac_t""no" 1>&6
6691 fi
6692
6693
6694 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6695 echo "configure:6696: checking for --enable-filedlg" >&5
6696 no_cache=0
6697 # Check whether --enable-filedlg or --disable-filedlg was given.
6698 if test "${enable_filedlg+set}" = set; then
6699 enableval="$enable_filedlg"
6700
6701 if test "$enableval" = yes; then
6702 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6703 else
6704 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6705 fi
6706
6707 else
6708
6709 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6710 if test "x$LINE" != x ; then
6711 eval "DEFAULT_$LINE"
6712 else
6713 no_cache=1
6714 fi
6715
6716 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6717
6718 fi
6719
6720
6721 eval "$ac_cv_use_filedlg"
6722 if test "$no_cache" != 1; then
6723 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6724 fi
6725
6726 if test "$wxUSE_FILEDLG" = yes; then
6727 echo "$ac_t""yes" 1>&6
6728 else
6729 echo "$ac_t""no" 1>&6
6730 fi
6731
6732
6733 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6734 echo "configure:6735: checking for --enable-filedlg" >&5
6735 no_cache=0
6736 # Check whether --enable-filedlg or --disable-filedlg was given.
6737 if test "${enable_filedlg+set}" = set; then
6738 enableval="$enable_filedlg"
6739
6740 if test "$enableval" = yes; then
6741 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6742 else
6743 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6744 fi
6745
6746 else
6747
6748 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6749 if test "x$LINE" != x ; then
6750 eval "DEFAULT_$LINE"
6751 else
6752 no_cache=1
6753 fi
6754
6755 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6756
6757 fi
6758
6759
6760 eval "$ac_cv_use_filedlg"
6761 if test "$no_cache" != 1; then
6762 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6763 fi
6764
6765 if test "$wxUSE_FINDREPLDLG" = yes; then
6766 echo "$ac_t""yes" 1>&6
6767 else
6768 echo "$ac_t""no" 1>&6
6769 fi
6770
6771
6772 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6773 echo "configure:6774: checking for --enable-fontdlg" >&5
6774 no_cache=0
6775 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6776 if test "${enable_fontdlg+set}" = set; then
6777 enableval="$enable_fontdlg"
6778
6779 if test "$enableval" = yes; then
6780 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6781 else
6782 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6783 fi
6784
6785 else
6786
6787 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6788 if test "x$LINE" != x ; then
6789 eval "DEFAULT_$LINE"
6790 else
6791 no_cache=1
6792 fi
6793
6794 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6795
6796 fi
6797
6798
6799 eval "$ac_cv_use_fontdlg"
6800 if test "$no_cache" != 1; then
6801 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6802 fi
6803
6804 if test "$wxUSE_FONTDLG" = yes; then
6805 echo "$ac_t""yes" 1>&6
6806 else
6807 echo "$ac_t""no" 1>&6
6808 fi
6809
6810
6811 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6812 echo "configure:6813: checking for --enable-dirdlg" >&5
6813 no_cache=0
6814 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6815 if test "${enable_dirdlg+set}" = set; then
6816 enableval="$enable_dirdlg"
6817
6818 if test "$enableval" = yes; then
6819 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6820 else
6821 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6822 fi
6823
6824 else
6825
6826 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6827 if test "x$LINE" != x ; then
6828 eval "DEFAULT_$LINE"
6829 else
6830 no_cache=1
6831 fi
6832
6833 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6834
6835 fi
6836
6837
6838 eval "$ac_cv_use_dirdlg"
6839 if test "$no_cache" != 1; then
6840 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6841 fi
6842
6843 if test "$wxUSE_DIRDLG" = yes; then
6844 echo "$ac_t""yes" 1>&6
6845 else
6846 echo "$ac_t""no" 1>&6
6847 fi
6848
6849
6850 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6851 echo "configure:6852: checking for --enable-msgdlg" >&5
6852 no_cache=0
6853 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6854 if test "${enable_msgdlg+set}" = set; then
6855 enableval="$enable_msgdlg"
6856
6857 if test "$enableval" = yes; then
6858 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6859 else
6860 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6861 fi
6862
6863 else
6864
6865 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6866 if test "x$LINE" != x ; then
6867 eval "DEFAULT_$LINE"
6868 else
6869 no_cache=1
6870 fi
6871
6872 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6873
6874 fi
6875
6876
6877 eval "$ac_cv_use_msgdlg"
6878 if test "$no_cache" != 1; then
6879 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6880 fi
6881
6882 if test "$wxUSE_MSGDLG" = yes; then
6883 echo "$ac_t""yes" 1>&6
6884 else
6885 echo "$ac_t""no" 1>&6
6886 fi
6887
6888
6889 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6890 echo "configure:6891: checking for --enable-numberdlg" >&5
6891 no_cache=0
6892 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6893 if test "${enable_numberdlg+set}" = set; then
6894 enableval="$enable_numberdlg"
6895
6896 if test "$enableval" = yes; then
6897 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6898 else
6899 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6900 fi
6901
6902 else
6903
6904 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6905 if test "x$LINE" != x ; then
6906 eval "DEFAULT_$LINE"
6907 else
6908 no_cache=1
6909 fi
6910
6911 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6912
6913 fi
6914
6915
6916 eval "$ac_cv_use_numberdlg"
6917 if test "$no_cache" != 1; then
6918 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6919 fi
6920
6921 if test "$wxUSE_NUMBERDLG" = yes; then
6922 echo "$ac_t""yes" 1>&6
6923 else
6924 echo "$ac_t""no" 1>&6
6925 fi
6926
6927
6928 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
6929 echo "configure:6930: checking for --enable-splash" >&5
6930 no_cache=0
6931 # Check whether --enable-splash or --disable-splash was given.
6932 if test "${enable_splash+set}" = set; then
6933 enableval="$enable_splash"
6934
6935 if test "$enableval" = yes; then
6936 ac_cv_use_splash='wxUSE_SPLASH=yes'
6937 else
6938 ac_cv_use_splash='wxUSE_SPLASH=no'
6939 fi
6940
6941 else
6942
6943 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
6944 if test "x$LINE" != x ; then
6945 eval "DEFAULT_$LINE"
6946 else
6947 no_cache=1
6948 fi
6949
6950 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
6951
6952 fi
6953
6954
6955 eval "$ac_cv_use_splash"
6956 if test "$no_cache" != 1; then
6957 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
6958 fi
6959
6960 if test "$wxUSE_SPLASH" = yes; then
6961 echo "$ac_t""yes" 1>&6
6962 else
6963 echo "$ac_t""no" 1>&6
6964 fi
6965
6966
6967 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
6968 echo "configure:6969: checking for --enable-textdlg" >&5
6969 no_cache=0
6970 # Check whether --enable-textdlg or --disable-textdlg was given.
6971 if test "${enable_textdlg+set}" = set; then
6972 enableval="$enable_textdlg"
6973
6974 if test "$enableval" = yes; then
6975 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6976 else
6977 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6978 fi
6979
6980 else
6981
6982 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6983 if test "x$LINE" != x ; then
6984 eval "DEFAULT_$LINE"
6985 else
6986 no_cache=1
6987 fi
6988
6989 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
6990
6991 fi
6992
6993
6994 eval "$ac_cv_use_textdlg"
6995 if test "$no_cache" != 1; then
6996 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6997 fi
6998
6999 if test "$wxUSE_TEXTDLG" = yes; then
7000 echo "$ac_t""yes" 1>&6
7001 else
7002 echo "$ac_t""no" 1>&6
7003 fi
7004
7005
7006 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7007 echo "configure:7008: checking for --enable-tipdlg" >&5
7008 no_cache=0
7009 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7010 if test "${enable_tipdlg+set}" = set; then
7011 enableval="$enable_tipdlg"
7012
7013 if test "$enableval" = yes; then
7014 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7015 else
7016 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7017 fi
7018
7019 else
7020
7021 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7022 if test "x$LINE" != x ; then
7023 eval "DEFAULT_$LINE"
7024 else
7025 no_cache=1
7026 fi
7027
7028 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7029
7030 fi
7031
7032
7033 eval "$ac_cv_use_tipdlg"
7034 if test "$no_cache" != 1; then
7035 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7036 fi
7037
7038 if test "$wxUSE_STARTUP_TIPS" = yes; then
7039 echo "$ac_t""yes" 1>&6
7040 else
7041 echo "$ac_t""no" 1>&6
7042 fi
7043
7044
7045 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7046 echo "configure:7047: checking for --enable-progressdlg" >&5
7047 no_cache=0
7048 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7049 if test "${enable_progressdlg+set}" = set; then
7050 enableval="$enable_progressdlg"
7051
7052 if test "$enableval" = yes; then
7053 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7054 else
7055 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7056 fi
7057
7058 else
7059
7060 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7061 if test "x$LINE" != x ; then
7062 eval "DEFAULT_$LINE"
7063 else
7064 no_cache=1
7065 fi
7066
7067 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7068
7069 fi
7070
7071
7072 eval "$ac_cv_use_progressdlg"
7073 if test "$no_cache" != 1; then
7074 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7075 fi
7076
7077 if test "$wxUSE_PROGRESSDLG" = yes; then
7078 echo "$ac_t""yes" 1>&6
7079 else
7080 echo "$ac_t""no" 1>&6
7081 fi
7082
7083
7084 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7085 echo "configure:7086: checking for --enable-wizarddlg" >&5
7086 no_cache=0
7087 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7088 if test "${enable_wizarddlg+set}" = set; then
7089 enableval="$enable_wizarddlg"
7090
7091 if test "$enableval" = yes; then
7092 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7093 else
7094 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7095 fi
7096
7097 else
7098
7099 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7100 if test "x$LINE" != x ; then
7101 eval "DEFAULT_$LINE"
7102 else
7103 no_cache=1
7104 fi
7105
7106 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7107
7108 fi
7109
7110
7111 eval "$ac_cv_use_wizarddlg"
7112 if test "$no_cache" != 1; then
7113 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7114 fi
7115
7116 if test "$wxUSE_WIZARDDLG" = yes; then
7117 echo "$ac_t""yes" 1>&6
7118 else
7119 echo "$ac_t""no" 1>&6
7120 fi
7121
7122
7123
7124
7125 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7126 echo "configure:7127: checking for --enable-menus" >&5
7127 no_cache=0
7128 # Check whether --enable-menus or --disable-menus was given.
7129 if test "${enable_menus+set}" = set; then
7130 enableval="$enable_menus"
7131
7132 if test "$enableval" = yes; then
7133 ac_cv_use_menus='wxUSE_MENUS=yes'
7134 else
7135 ac_cv_use_menus='wxUSE_MENUS=no'
7136 fi
7137
7138 else
7139
7140 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7141 if test "x$LINE" != x ; then
7142 eval "DEFAULT_$LINE"
7143 else
7144 no_cache=1
7145 fi
7146
7147 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7148
7149 fi
7150
7151
7152 eval "$ac_cv_use_menus"
7153 if test "$no_cache" != 1; then
7154 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7155 fi
7156
7157 if test "$wxUSE_MENUS" = yes; then
7158 echo "$ac_t""yes" 1>&6
7159 else
7160 echo "$ac_t""no" 1>&6
7161 fi
7162
7163
7164 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7165 echo "configure:7166: checking for --enable-miniframe" >&5
7166 no_cache=0
7167 # Check whether --enable-miniframe or --disable-miniframe was given.
7168 if test "${enable_miniframe+set}" = set; then
7169 enableval="$enable_miniframe"
7170
7171 if test "$enableval" = yes; then
7172 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7173 else
7174 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7175 fi
7176
7177 else
7178
7179 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7180 if test "x$LINE" != x ; then
7181 eval "DEFAULT_$LINE"
7182 else
7183 no_cache=1
7184 fi
7185
7186 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7187
7188 fi
7189
7190
7191 eval "$ac_cv_use_miniframe"
7192 if test "$no_cache" != 1; then
7193 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7194 fi
7195
7196 if test "$wxUSE_MINIFRAME" = yes; then
7197 echo "$ac_t""yes" 1>&6
7198 else
7199 echo "$ac_t""no" 1>&6
7200 fi
7201
7202
7203 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7204 echo "configure:7205: checking for --enable-tooltips" >&5
7205 no_cache=0
7206 # Check whether --enable-tooltips or --disable-tooltips was given.
7207 if test "${enable_tooltips+set}" = set; then
7208 enableval="$enable_tooltips"
7209
7210 if test "$enableval" = yes; then
7211 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7212 else
7213 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7214 fi
7215
7216 else
7217
7218 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7219 if test "x$LINE" != x ; then
7220 eval "DEFAULT_$LINE"
7221 else
7222 no_cache=1
7223 fi
7224
7225 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7226
7227 fi
7228
7229
7230 eval "$ac_cv_use_tooltips"
7231 if test "$no_cache" != 1; then
7232 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7233 fi
7234
7235 if test "$wxUSE_TOOLTIPS" = yes; then
7236 echo "$ac_t""yes" 1>&6
7237 else
7238 echo "$ac_t""no" 1>&6
7239 fi
7240
7241
7242 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7243 echo "configure:7244: checking for --enable-splines" >&5
7244 no_cache=0
7245 # Check whether --enable-splines or --disable-splines was given.
7246 if test "${enable_splines+set}" = set; then
7247 enableval="$enable_splines"
7248
7249 if test "$enableval" = yes; then
7250 ac_cv_use_splines='wxUSE_SPLINES=yes'
7251 else
7252 ac_cv_use_splines='wxUSE_SPLINES=no'
7253 fi
7254
7255 else
7256
7257 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7258 if test "x$LINE" != x ; then
7259 eval "DEFAULT_$LINE"
7260 else
7261 no_cache=1
7262 fi
7263
7264 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7265
7266 fi
7267
7268
7269 eval "$ac_cv_use_splines"
7270 if test "$no_cache" != 1; then
7271 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7272 fi
7273
7274 if test "$wxUSE_SPLINES" = yes; then
7275 echo "$ac_t""yes" 1>&6
7276 else
7277 echo "$ac_t""no" 1>&6
7278 fi
7279
7280
7281 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7282 echo "configure:7283: checking for --enable-validators" >&5
7283 no_cache=0
7284 # Check whether --enable-validators or --disable-validators was given.
7285 if test "${enable_validators+set}" = set; then
7286 enableval="$enable_validators"
7287
7288 if test "$enableval" = yes; then
7289 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7290 else
7291 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7292 fi
7293
7294 else
7295
7296 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7297 if test "x$LINE" != x ; then
7298 eval "DEFAULT_$LINE"
7299 else
7300 no_cache=1
7301 fi
7302
7303 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7304
7305 fi
7306
7307
7308 eval "$ac_cv_use_validators"
7309 if test "$no_cache" != 1; then
7310 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7311 fi
7312
7313 if test "$wxUSE_VALIDATORS" = yes; then
7314 echo "$ac_t""yes" 1>&6
7315 else
7316 echo "$ac_t""no" 1>&6
7317 fi
7318
7319
7320 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7321 echo "configure:7322: checking for --enable-busyinfo" >&5
7322 no_cache=0
7323 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7324 if test "${enable_busyinfo+set}" = set; then
7325 enableval="$enable_busyinfo"
7326
7327 if test "$enableval" = yes; then
7328 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7329 else
7330 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7331 fi
7332
7333 else
7334
7335 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7336 if test "x$LINE" != x ; then
7337 eval "DEFAULT_$LINE"
7338 else
7339 no_cache=1
7340 fi
7341
7342 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7343
7344 fi
7345
7346
7347 eval "$ac_cv_use_busyinfo"
7348 if test "$no_cache" != 1; then
7349 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7350 fi
7351
7352 if test "$wxUSE_BUSYINFO" = yes; then
7353 echo "$ac_t""yes" 1>&6
7354 else
7355 echo "$ac_t""no" 1>&6
7356 fi
7357
7358
7359 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7360 echo "configure:7361: checking for --enable-joystick" >&5
7361 no_cache=0
7362 # Check whether --enable-joystick or --disable-joystick was given.
7363 if test "${enable_joystick+set}" = set; then
7364 enableval="$enable_joystick"
7365
7366 if test "$enableval" = yes; then
7367 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7368 else
7369 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7370 fi
7371
7372 else
7373
7374 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7375 if test "x$LINE" != x ; then
7376 eval "DEFAULT_$LINE"
7377 else
7378 no_cache=1
7379 fi
7380
7381 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7382
7383 fi
7384
7385
7386 eval "$ac_cv_use_joystick"
7387 if test "$no_cache" != 1; then
7388 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7389 fi
7390
7391 if test "$wxUSE_JOYSTICK" = yes; then
7392 echo "$ac_t""yes" 1>&6
7393 else
7394 echo "$ac_t""no" 1>&6
7395 fi
7396
7397
7398 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7399 echo "configure:7400: checking for --enable-metafile" >&5
7400 no_cache=0
7401 # Check whether --enable-metafile or --disable-metafile was given.
7402 if test "${enable_metafile+set}" = set; then
7403 enableval="$enable_metafile"
7404
7405 if test "$enableval" = yes; then
7406 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7407 else
7408 ac_cv_use_metafile='wxUSE_METAFILE=no'
7409 fi
7410
7411 else
7412
7413 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7414 if test "x$LINE" != x ; then
7415 eval "DEFAULT_$LINE"
7416 else
7417 no_cache=1
7418 fi
7419
7420 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7421
7422 fi
7423
7424
7425 eval "$ac_cv_use_metafile"
7426 if test "$no_cache" != 1; then
7427 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7428 fi
7429
7430 if test "$wxUSE_METAFILE" = yes; then
7431 echo "$ac_t""yes" 1>&6
7432 else
7433 echo "$ac_t""no" 1>&6
7434 fi
7435
7436
7437 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7438 echo "configure:7439: checking for --enable-dragimage" >&5
7439 no_cache=0
7440 # Check whether --enable-dragimage or --disable-dragimage was given.
7441 if test "${enable_dragimage+set}" = set; then
7442 enableval="$enable_dragimage"
7443
7444 if test "$enableval" = yes; then
7445 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7446 else
7447 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7448 fi
7449
7450 else
7451
7452 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7453 if test "x$LINE" != x ; then
7454 eval "DEFAULT_$LINE"
7455 else
7456 no_cache=1
7457 fi
7458
7459 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7460
7461 fi
7462
7463
7464 eval "$ac_cv_use_dragimage"
7465 if test "$no_cache" != 1; then
7466 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7467 fi
7468
7469 if test "$wxUSE_DRAGIMAGE" = yes; then
7470 echo "$ac_t""yes" 1>&6
7471 else
7472 echo "$ac_t""no" 1>&6
7473 fi
7474
7475
7476
7477
7478 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
7479 echo "configure:7480: checking for --enable-palette" >&5
7480 no_cache=0
7481 # Check whether --enable-palette or --disable-palette was given.
7482 if test "${enable_palette+set}" = set; then
7483 enableval="$enable_palette"
7484
7485 if test "$enableval" = yes; then
7486 ac_cv_use_palette='wxUSE_PALETTE=yes'
7487 else
7488 ac_cv_use_palette='wxUSE_PALETTE=no'
7489 fi
7490
7491 else
7492
7493 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7494 if test "x$LINE" != x ; then
7495 eval "DEFAULT_$LINE"
7496 else
7497 no_cache=1
7498 fi
7499
7500 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7501
7502 fi
7503
7504
7505 eval "$ac_cv_use_palette"
7506 if test "$no_cache" != 1; then
7507 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7508 fi
7509
7510 if test "$wxUSE_PALETTE" = yes; then
7511 echo "$ac_t""yes" 1>&6
7512 else
7513 echo "$ac_t""no" 1>&6
7514 fi
7515
7516
7517 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7518 echo "configure:7519: checking for --enable-image" >&5
7519 no_cache=0
7520 # Check whether --enable-image or --disable-image was given.
7521 if test "${enable_image+set}" = set; then
7522 enableval="$enable_image"
7523
7524 if test "$enableval" = yes; then
7525 ac_cv_use_image='wxUSE_IMAGE=yes'
7526 else
7527 ac_cv_use_image='wxUSE_IMAGE=no'
7528 fi
7529
7530 else
7531
7532 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7533 if test "x$LINE" != x ; then
7534 eval "DEFAULT_$LINE"
7535 else
7536 no_cache=1
7537 fi
7538
7539 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7540
7541 fi
7542
7543
7544 eval "$ac_cv_use_image"
7545 if test "$no_cache" != 1; then
7546 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7547 fi
7548
7549 if test "$wxUSE_IMAGE" = yes; then
7550 echo "$ac_t""yes" 1>&6
7551 else
7552 echo "$ac_t""no" 1>&6
7553 fi
7554
7555
7556 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7557 echo "configure:7558: checking for --enable-gif" >&5
7558 no_cache=0
7559 # Check whether --enable-gif or --disable-gif was given.
7560 if test "${enable_gif+set}" = set; then
7561 enableval="$enable_gif"
7562
7563 if test "$enableval" = yes; then
7564 ac_cv_use_gif='wxUSE_GIF=yes'
7565 else
7566 ac_cv_use_gif='wxUSE_GIF=no'
7567 fi
7568
7569 else
7570
7571 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7572 if test "x$LINE" != x ; then
7573 eval "DEFAULT_$LINE"
7574 else
7575 no_cache=1
7576 fi
7577
7578 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7579
7580 fi
7581
7582
7583 eval "$ac_cv_use_gif"
7584 if test "$no_cache" != 1; then
7585 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7586 fi
7587
7588 if test "$wxUSE_GIF" = yes; then
7589 echo "$ac_t""yes" 1>&6
7590 else
7591 echo "$ac_t""no" 1>&6
7592 fi
7593
7594
7595 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7596 echo "configure:7597: checking for --enable-pcx" >&5
7597 no_cache=0
7598 # Check whether --enable-pcx or --disable-pcx was given.
7599 if test "${enable_pcx+set}" = set; then
7600 enableval="$enable_pcx"
7601
7602 if test "$enableval" = yes; then
7603 ac_cv_use_pcx='wxUSE_PCX=yes'
7604 else
7605 ac_cv_use_pcx='wxUSE_PCX=no'
7606 fi
7607
7608 else
7609
7610 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7611 if test "x$LINE" != x ; then
7612 eval "DEFAULT_$LINE"
7613 else
7614 no_cache=1
7615 fi
7616
7617 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7618
7619 fi
7620
7621
7622 eval "$ac_cv_use_pcx"
7623 if test "$no_cache" != 1; then
7624 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7625 fi
7626
7627 if test "$wxUSE_PCX" = yes; then
7628 echo "$ac_t""yes" 1>&6
7629 else
7630 echo "$ac_t""no" 1>&6
7631 fi
7632
7633
7634 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7635 echo "configure:7636: checking for --enable-pnm" >&5
7636 no_cache=0
7637 # Check whether --enable-pnm or --disable-pnm was given.
7638 if test "${enable_pnm+set}" = set; then
7639 enableval="$enable_pnm"
7640
7641 if test "$enableval" = yes; then
7642 ac_cv_use_pnm='wxUSE_PNM=yes'
7643 else
7644 ac_cv_use_pnm='wxUSE_PNM=no'
7645 fi
7646
7647 else
7648
7649 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7650 if test "x$LINE" != x ; then
7651 eval "DEFAULT_$LINE"
7652 else
7653 no_cache=1
7654 fi
7655
7656 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7657
7658 fi
7659
7660
7661 eval "$ac_cv_use_pnm"
7662 if test "$no_cache" != 1; then
7663 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7664 fi
7665
7666 if test "$wxUSE_PNM" = yes; then
7667 echo "$ac_t""yes" 1>&6
7668 else
7669 echo "$ac_t""no" 1>&6
7670 fi
7671
7672
7673 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7674 echo "configure:7675: checking for --enable-pnm" >&5
7675 no_cache=0
7676 # Check whether --enable-pnm or --disable-pnm was given.
7677 if test "${enable_pnm+set}" = set; then
7678 enableval="$enable_pnm"
7679
7680 if test "$enableval" = yes; then
7681 ac_cv_use_pnm='wxUSE_XPM=yes'
7682 else
7683 ac_cv_use_pnm='wxUSE_XPM=no'
7684 fi
7685
7686 else
7687
7688 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7689 if test "x$LINE" != x ; then
7690 eval "DEFAULT_$LINE"
7691 else
7692 no_cache=1
7693 fi
7694
7695 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7696
7697 fi
7698
7699
7700 eval "$ac_cv_use_pnm"
7701 if test "$no_cache" != 1; then
7702 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7703 fi
7704
7705 if test "$wxUSE_XPM" = yes; then
7706 echo "$ac_t""yes" 1>&6
7707 else
7708 echo "$ac_t""no" 1>&6
7709 fi
7710
7711
7712 fi
7713
7714
7715 echo "saving argument cache $wx_arg_cache_file"
7716 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7717
7718
7719
7720 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7721 echo "configure:7722: checking for toolkit" >&5
7722
7723 if test "$wxUSE_GUI" = "yes"; then
7724
7725 if test "$USE_BEOS" = 1; then
7726 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7727 fi
7728
7729 if test "$TOOLKIT_GIVEN" = 1; then
7730 for toolkit in `echo $ALL_TOOLKITS`; do
7731 var=wxUSE_$toolkit
7732 eval "value=\$${var}"
7733 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7734 done
7735 else
7736 for toolkit in `echo $ALL_TOOLKITS`; do
7737 if test "$has_toolkit_in_cache" != 1; then
7738 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7739 else
7740 var=DEFAULT_wxUSE_$toolkit
7741 fi
7742 eval "wxUSE_$toolkit=\$${var}"
7743 done
7744 fi
7745
7746 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
7747 + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} \
7748 + ${wxUSE_MGL:-0}`
7749
7750 case "${host}" in
7751 *-pc-os2_emx )
7752 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7753 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7754 LEX_STEM="lexyy"
7755 ;;
7756 *)
7757 PATH_IFS=':'
7758 LEX_STEM="lex.yy"
7759 ;;
7760 esac
7761
7762 case "$NUM_TOOLKITS" in
7763 1)
7764 ;;
7765 0)
7766 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7767 ;;
7768 *)
7769 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7770 esac
7771
7772 for toolkit in `echo $ALL_TOOLKITS`; do
7773 var=wxUSE_$toolkit
7774 eval "value=\$${var}"
7775 if test "x$value" != x; then
7776 cache_var=CACHE_$toolkit
7777 eval "cache=\$${cache_var}"
7778 if test "$cache" = 1; then
7779 echo "$var=$value" >> ${wx_arg_cache_file}
7780 fi
7781 if test "$value" = 1; then
7782 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7783 echo "$ac_t""$toolkit_echo" 1>&6
7784 fi
7785 fi
7786 done
7787 else
7788 PATH_IFS=':'
7789 echo "$ac_t""base ($host_alias hosted) only" 1>&6
7790 fi
7791
7792
7793 cat > confcache <<\EOF
7794 # This file is a shell script that caches the results of configure
7795 # tests run on this system so they can be shared between configure
7796 # scripts and configure runs. It is not useful on other systems.
7797 # If it contains results you don't want to keep, you may remove or edit it.
7798 #
7799 # By default, configure uses ./config.cache as the cache file,
7800 # creating it if it does not exist already. You can give configure
7801 # the --cache-file=FILE option to use a different cache file; that is
7802 # what configure does when it calls configure scripts in
7803 # subdirectories, so they share the cache.
7804 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7805 # config.status only pays attention to the cache file if you give it the
7806 # --recheck option to rerun configure.
7807 #
7808 EOF
7809 # The following way of writing the cache mishandles newlines in values,
7810 # but we know of no workaround that is simple, portable, and efficient.
7811 # So, don't put newlines in cache variables' values.
7812 # Ultrix sh set writes to stderr and can't be redirected directly,
7813 # and sets the high bit in the cache file unless we assign to the vars.
7814 (set) 2>&1 |
7815 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7816 *ac_space=\ *)
7817 # `set' does not quote correctly, so add quotes (double-quote substitution
7818 # turns \\\\ into \\, and sed turns \\ into \).
7819 sed -n \
7820 -e "s/'/'\\\\''/g" \
7821 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7822 ;;
7823 *)
7824 # `set' quotes correctly as required by POSIX, so do not add quotes.
7825 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7826 ;;
7827 esac >> confcache
7828 if cmp -s $cache_file confcache; then
7829 :
7830 else
7831 if test -w $cache_file; then
7832 echo "updating cache $cache_file"
7833 cat confcache > $cache_file
7834 else
7835 echo "not updating unwritable cache $cache_file"
7836 fi
7837 fi
7838 rm -f confcache
7839
7840
7841 if test "$build" != "$host" ; then
7842 if test "$USE_WIN32" = 1 ; then
7843 CC=$host_alias-gcc
7844 CXX=$host_alias-c++
7845 AR=$host_alias-ar
7846 RANLIB=$host_alias-ranlib
7847 DLLTOOL=$host_alias-dlltool
7848 RESCOMP=$host_alias-windres
7849 LD=$host_alias-ld
7850 NM=$host_alias-nm
7851 STRIP=$host_alias-strip
7852 else
7853 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
7854 fi
7855 fi
7856
7857 # Extract the first word of "gcc", so it can be a program name with args.
7858 set dummy gcc; ac_word=$2
7859 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7860 echo "configure:7861: checking for $ac_word" >&5
7861 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7862 echo $ac_n "(cached) $ac_c" 1>&6
7863 else
7864 if test -n "$CC"; then
7865 ac_cv_prog_CC="$CC" # Let the user override the test.
7866 else
7867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7868 ac_dummy="$PATH"
7869 for ac_dir in $ac_dummy; do
7870 test -z "$ac_dir" && ac_dir=.
7871 if test -f $ac_dir/$ac_word; then
7872 ac_cv_prog_CC="gcc"
7873 break
7874 fi
7875 done
7876 IFS="$ac_save_ifs"
7877 fi
7878 fi
7879 CC="$ac_cv_prog_CC"
7880 if test -n "$CC"; then
7881 echo "$ac_t""$CC" 1>&6
7882 else
7883 echo "$ac_t""no" 1>&6
7884 fi
7885
7886 if test -z "$CC"; then
7887 # Extract the first word of "cc", so it can be a program name with args.
7888 set dummy cc; ac_word=$2
7889 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7890 echo "configure:7891: checking for $ac_word" >&5
7891 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7892 echo $ac_n "(cached) $ac_c" 1>&6
7893 else
7894 if test -n "$CC"; then
7895 ac_cv_prog_CC="$CC" # Let the user override the test.
7896 else
7897 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7898 ac_prog_rejected=no
7899 ac_dummy="$PATH"
7900 for ac_dir in $ac_dummy; do
7901 test -z "$ac_dir" && ac_dir=.
7902 if test -f $ac_dir/$ac_word; then
7903 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7904 ac_prog_rejected=yes
7905 continue
7906 fi
7907 ac_cv_prog_CC="cc"
7908 break
7909 fi
7910 done
7911 IFS="$ac_save_ifs"
7912 if test $ac_prog_rejected = yes; then
7913 # We found a bogon in the path, so make sure we never use it.
7914 set dummy $ac_cv_prog_CC
7915 shift
7916 if test $# -gt 0; then
7917 # We chose a different compiler from the bogus one.
7918 # However, it has the same basename, so the bogon will be chosen
7919 # first if we set CC to just the basename; use the full file name.
7920 shift
7921 set dummy "$ac_dir/$ac_word" "$@"
7922 shift
7923 ac_cv_prog_CC="$@"
7924 fi
7925 fi
7926 fi
7927 fi
7928 CC="$ac_cv_prog_CC"
7929 if test -n "$CC"; then
7930 echo "$ac_t""$CC" 1>&6
7931 else
7932 echo "$ac_t""no" 1>&6
7933 fi
7934
7935 if test -z "$CC"; then
7936 case "`uname -s`" in
7937 *win32* | *WIN32*)
7938 # Extract the first word of "cl", so it can be a program name with args.
7939 set dummy cl; ac_word=$2
7940 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7941 echo "configure:7942: checking for $ac_word" >&5
7942 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7943 echo $ac_n "(cached) $ac_c" 1>&6
7944 else
7945 if test -n "$CC"; then
7946 ac_cv_prog_CC="$CC" # Let the user override the test.
7947 else
7948 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7949 ac_dummy="$PATH"
7950 for ac_dir in $ac_dummy; do
7951 test -z "$ac_dir" && ac_dir=.
7952 if test -f $ac_dir/$ac_word; then
7953 ac_cv_prog_CC="cl"
7954 break
7955 fi
7956 done
7957 IFS="$ac_save_ifs"
7958 fi
7959 fi
7960 CC="$ac_cv_prog_CC"
7961 if test -n "$CC"; then
7962 echo "$ac_t""$CC" 1>&6
7963 else
7964 echo "$ac_t""no" 1>&6
7965 fi
7966 ;;
7967 esac
7968 fi
7969 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7970 fi
7971
7972 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7973 echo "configure:7974: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7974
7975 ac_ext=c
7976 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7977 ac_cpp='$CPP $CPPFLAGS'
7978 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7979 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7980 cross_compiling=$ac_cv_prog_cc_cross
7981
7982 cat > conftest.$ac_ext << EOF
7983
7984 #line 7985 "configure"
7985 #include "confdefs.h"
7986
7987 main(){return(0);}
7988 EOF
7989 if { (eval echo configure:7990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7990 ac_cv_prog_cc_works=yes
7991 # If we can't run a trivial program, we are probably using a cross compiler.
7992 if (./conftest; exit) 2>/dev/null; then
7993 ac_cv_prog_cc_cross=no
7994 else
7995 ac_cv_prog_cc_cross=yes
7996 fi
7997 else
7998 echo "configure: failed program was:" >&5
7999 cat conftest.$ac_ext >&5
8000 ac_cv_prog_cc_works=no
8001 fi
8002 rm -fr conftest*
8003 ac_ext=c
8004 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8005 ac_cpp='$CPP $CPPFLAGS'
8006 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8007 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8008 cross_compiling=$ac_cv_prog_cc_cross
8009
8010 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8011 if test $ac_cv_prog_cc_works = no; then
8012 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8013 fi
8014 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8015 echo "configure:8016: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8016 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8017 cross_compiling=$ac_cv_prog_cc_cross
8018
8019 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8020 echo "configure:8021: checking whether we are using GNU C" >&5
8021 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8022 echo $ac_n "(cached) $ac_c" 1>&6
8023 else
8024 cat > conftest.c <<EOF
8025 #ifdef __GNUC__
8026 yes;
8027 #endif
8028 EOF
8029 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8030 ac_cv_prog_gcc=yes
8031 else
8032 ac_cv_prog_gcc=no
8033 fi
8034 fi
8035
8036 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8037
8038 if test $ac_cv_prog_gcc = yes; then
8039 GCC=yes
8040 else
8041 GCC=
8042 fi
8043
8044 ac_test_CFLAGS="${CFLAGS+set}"
8045 ac_save_CFLAGS="$CFLAGS"
8046 CFLAGS=
8047 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8048 echo "configure:8049: checking whether ${CC-cc} accepts -g" >&5
8049 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8050 echo $ac_n "(cached) $ac_c" 1>&6
8051 else
8052 echo 'void f(){}' > conftest.c
8053 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8054 ac_cv_prog_cc_g=yes
8055 else
8056 ac_cv_prog_cc_g=no
8057 fi
8058 rm -f conftest*
8059
8060 fi
8061
8062 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8063 if test "$ac_test_CFLAGS" = set; then
8064 CFLAGS="$ac_save_CFLAGS"
8065 elif test $ac_cv_prog_cc_g = yes; then
8066 if test "$GCC" = yes; then
8067 CFLAGS="-g -O2"
8068 else
8069 CFLAGS="-g"
8070 fi
8071 else
8072 if test "$GCC" = yes; then
8073 CFLAGS="-O2"
8074 else
8075 CFLAGS=
8076 fi
8077 fi
8078
8079
8080 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8081
8082 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8083 echo "configure:8084: checking how to run the C preprocessor" >&5
8084 # On Suns, sometimes $CPP names a directory.
8085 if test -n "$CPP" && test -d "$CPP"; then
8086 CPP=
8087 fi
8088 if test -z "$CPP"; then
8089 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8090 echo $ac_n "(cached) $ac_c" 1>&6
8091 else
8092 # This must be in double quotes, not single quotes, because CPP may get
8093 # substituted into the Makefile and "${CC-cc}" will confuse make.
8094 CPP="${CC-cc} -E"
8095 # On the NeXT, cc -E runs the code through the compiler's parser,
8096 # not just through cpp.
8097 cat > conftest.$ac_ext <<EOF
8098 #line 8099 "configure"
8099 #include "confdefs.h"
8100 #include <assert.h>
8101 Syntax Error
8102 EOF
8103 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8104 { (eval echo configure:8105: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8105 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8106 if test -z "$ac_err"; then
8107 :
8108 else
8109 echo "$ac_err" >&5
8110 echo "configure: failed program was:" >&5
8111 cat conftest.$ac_ext >&5
8112 rm -rf conftest*
8113 CPP="${CC-cc} -E -traditional-cpp"
8114 cat > conftest.$ac_ext <<EOF
8115 #line 8116 "configure"
8116 #include "confdefs.h"
8117 #include <assert.h>
8118 Syntax Error
8119 EOF
8120 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8121 { (eval echo configure:8122: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8122 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8123 if test -z "$ac_err"; then
8124 :
8125 else
8126 echo "$ac_err" >&5
8127 echo "configure: failed program was:" >&5
8128 cat conftest.$ac_ext >&5
8129 rm -rf conftest*
8130 CPP="${CC-cc} -nologo -E"
8131 cat > conftest.$ac_ext <<EOF
8132 #line 8133 "configure"
8133 #include "confdefs.h"
8134 #include <assert.h>
8135 Syntax Error
8136 EOF
8137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8138 { (eval echo configure:8139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8140 if test -z "$ac_err"; then
8141 :
8142 else
8143 echo "$ac_err" >&5
8144 echo "configure: failed program was:" >&5
8145 cat conftest.$ac_ext >&5
8146 rm -rf conftest*
8147 CPP=/lib/cpp
8148 fi
8149 rm -f conftest*
8150 fi
8151 rm -f conftest*
8152 fi
8153 rm -f conftest*
8154 ac_cv_prog_CPP="$CPP"
8155 fi
8156 CPP="$ac_cv_prog_CPP"
8157 else
8158 ac_cv_prog_CPP="$CPP"
8159 fi
8160 echo "$ac_t""$CPP" 1>&6
8161
8162 if test $ac_cv_prog_gcc = yes; then
8163 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8164 echo "configure:8165: checking whether ${CC-cc} needs -traditional" >&5
8165 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8166 echo $ac_n "(cached) $ac_c" 1>&6
8167 else
8168 ac_pattern="Autoconf.*'x'"
8169 cat > conftest.$ac_ext <<EOF
8170 #line 8171 "configure"
8171 #include "confdefs.h"
8172 #include <sgtty.h>
8173 Autoconf TIOCGETP
8174 EOF
8175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8176 egrep "$ac_pattern" >/dev/null 2>&1; then
8177 rm -rf conftest*
8178 ac_cv_prog_gcc_traditional=yes
8179 else
8180 rm -rf conftest*
8181 ac_cv_prog_gcc_traditional=no
8182 fi
8183 rm -f conftest*
8184
8185
8186 if test $ac_cv_prog_gcc_traditional = no; then
8187 cat > conftest.$ac_ext <<EOF
8188 #line 8189 "configure"
8189 #include "confdefs.h"
8190 #include <termio.h>
8191 Autoconf TCGETA
8192 EOF
8193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8194 egrep "$ac_pattern" >/dev/null 2>&1; then
8195 rm -rf conftest*
8196 ac_cv_prog_gcc_traditional=yes
8197 fi
8198 rm -f conftest*
8199
8200 fi
8201 fi
8202
8203 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8204 if test $ac_cv_prog_gcc_traditional = yes; then
8205 CC="$CC -traditional"
8206 fi
8207 fi
8208
8209
8210
8211 ac_ext=C
8212 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8213 ac_cpp='$CXXCPP $CPPFLAGS'
8214 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8215 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8216 cross_compiling=$ac_cv_prog_cxx_cross
8217
8218
8219 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8220 do
8221 # Extract the first word of "$ac_prog", so it can be a program name with args.
8222 set dummy $ac_prog; ac_word=$2
8223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8224 echo "configure:8225: checking for $ac_word" >&5
8225 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8226 echo $ac_n "(cached) $ac_c" 1>&6
8227 else
8228 if test -n "$CXX"; then
8229 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8230 else
8231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8232 ac_dummy="$PATH"
8233 for ac_dir in $ac_dummy; do
8234 test -z "$ac_dir" && ac_dir=.
8235 if test -f $ac_dir/$ac_word; then
8236 ac_cv_prog_CXX="$ac_prog"
8237 break
8238 fi
8239 done
8240 IFS="$ac_save_ifs"
8241 fi
8242 fi
8243 CXX="$ac_cv_prog_CXX"
8244 if test -n "$CXX"; then
8245 echo "$ac_t""$CXX" 1>&6
8246 else
8247 echo "$ac_t""no" 1>&6
8248 fi
8249
8250 test -n "$CXX" && break
8251 done
8252 test -n "$CXX" || CXX="gcc"
8253
8254
8255 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8256 echo "configure:8257: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8257
8258 ac_ext=C
8259 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8260 ac_cpp='$CXXCPP $CPPFLAGS'
8261 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8262 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8263 cross_compiling=$ac_cv_prog_cxx_cross
8264
8265 cat > conftest.$ac_ext << EOF
8266
8267 #line 8268 "configure"
8268 #include "confdefs.h"
8269
8270 int main(){return(0);}
8271 EOF
8272 if { (eval echo configure:8273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8273 ac_cv_prog_cxx_works=yes
8274 # If we can't run a trivial program, we are probably using a cross compiler.
8275 if (./conftest; exit) 2>/dev/null; then
8276 ac_cv_prog_cxx_cross=no
8277 else
8278 ac_cv_prog_cxx_cross=yes
8279 fi
8280 else
8281 echo "configure: failed program was:" >&5
8282 cat conftest.$ac_ext >&5
8283 ac_cv_prog_cxx_works=no
8284 fi
8285 rm -fr conftest*
8286 ac_ext=C
8287 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8288 ac_cpp='$CXXCPP $CPPFLAGS'
8289 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8290 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8291 cross_compiling=$ac_cv_prog_cxx_cross
8292
8293 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8294 if test $ac_cv_prog_cxx_works = no; then
8295 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8296 fi
8297 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8298 echo "configure:8299: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8299 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8300 cross_compiling=$ac_cv_prog_cxx_cross
8301
8302 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8303 echo "configure:8304: checking whether we are using GNU C++" >&5
8304 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8305 echo $ac_n "(cached) $ac_c" 1>&6
8306 else
8307 cat > conftest.C <<EOF
8308 #ifdef __GNUC__
8309 yes;
8310 #endif
8311 EOF
8312 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8313 ac_cv_prog_gxx=yes
8314 else
8315 ac_cv_prog_gxx=no
8316 fi
8317 fi
8318
8319 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8320
8321 if test $ac_cv_prog_gxx = yes; then
8322 GXX=yes
8323 else
8324 GXX=
8325 fi
8326
8327 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8328 ac_save_CXXFLAGS="$CXXFLAGS"
8329 CXXFLAGS=
8330 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8331 echo "configure:8332: checking whether ${CXX-g++} accepts -g" >&5
8332 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8333 echo $ac_n "(cached) $ac_c" 1>&6
8334 else
8335 echo 'void f(){}' > conftest.cc
8336 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8337 ac_cv_prog_cxx_g=yes
8338 else
8339 ac_cv_prog_cxx_g=no
8340 fi
8341 rm -f conftest*
8342
8343 fi
8344
8345 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8346 if test "$ac_test_CXXFLAGS" = set; then
8347 CXXFLAGS="$ac_save_CXXFLAGS"
8348 elif test $ac_cv_prog_cxx_g = yes; then
8349 if test "$GXX" = yes; then
8350 CXXFLAGS="-g -O2"
8351 else
8352 CXXFLAGS="-g"
8353 fi
8354 else
8355 if test "$GXX" = yes; then
8356 CXXFLAGS="-O2"
8357 else
8358 CXXFLAGS=
8359 fi
8360 fi
8361
8362
8363 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8364
8365 ac_ext=c
8366 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8367 ac_cpp='$CPP $CPPFLAGS'
8368 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8369 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8370 cross_compiling=$ac_cv_prog_cc_cross
8371
8372
8373 # Extract the first word of "ranlib", so it can be a program name with args.
8374 set dummy ranlib; ac_word=$2
8375 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8376 echo "configure:8377: checking for $ac_word" >&5
8377 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8378 echo $ac_n "(cached) $ac_c" 1>&6
8379 else
8380 if test -n "$RANLIB"; then
8381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8382 else
8383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8384 ac_dummy="$PATH"
8385 for ac_dir in $ac_dummy; do
8386 test -z "$ac_dir" && ac_dir=.
8387 if test -f $ac_dir/$ac_word; then
8388 ac_cv_prog_RANLIB="ranlib"
8389 break
8390 fi
8391 done
8392 IFS="$ac_save_ifs"
8393 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8394 fi
8395 fi
8396 RANLIB="$ac_cv_prog_RANLIB"
8397 if test -n "$RANLIB"; then
8398 echo "$ac_t""$RANLIB" 1>&6
8399 else
8400 echo "$ac_t""no" 1>&6
8401 fi
8402
8403
8404 # Extract the first word of "ar", so it can be a program name with args.
8405 set dummy ar; ac_word=$2
8406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8407 echo "configure:8408: checking for $ac_word" >&5
8408 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8409 echo $ac_n "(cached) $ac_c" 1>&6
8410 else
8411 if test -n "$AR"; then
8412 ac_cv_prog_AR="$AR" # Let the user override the test.
8413 else
8414 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8415 ac_dummy="$PATH"
8416 for ac_dir in $ac_dummy; do
8417 test -z "$ac_dir" && ac_dir=.
8418 if test -f $ac_dir/$ac_word; then
8419 ac_cv_prog_AR="ar"
8420 break
8421 fi
8422 done
8423 IFS="$ac_save_ifs"
8424 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8425 fi
8426 fi
8427 AR="$ac_cv_prog_AR"
8428 if test -n "$AR"; then
8429 echo "$ac_t""$AR" 1>&6
8430 else
8431 echo "$ac_t""no" 1>&6
8432 fi
8433
8434
8435 # Find a good install program. We prefer a C program (faster),
8436 # so one script is as good as another. But avoid the broken or
8437 # incompatible versions:
8438 # SysV /etc/install, /usr/sbin/install
8439 # SunOS /usr/etc/install
8440 # IRIX /sbin/install
8441 # AIX /bin/install
8442 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8443 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8444 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8445 # ./install, which can be erroneously created by make from ./install.sh.
8446 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8447 echo "configure:8448: checking for a BSD compatible install" >&5
8448 if test -z "$INSTALL"; then
8449 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8450 echo $ac_n "(cached) $ac_c" 1>&6
8451 else
8452 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8453 for ac_dir in $PATH; do
8454 # Account for people who put trailing slashes in PATH elements.
8455 case "$ac_dir/" in
8456 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8457 *)
8458 # OSF1 and SCO ODT 3.0 have their own names for install.
8459 # Don't use installbsd from OSF since it installs stuff as root
8460 # by default.
8461 for ac_prog in ginstall scoinst install; do
8462 if test -f $ac_dir/$ac_prog; then
8463 if test $ac_prog = install &&
8464 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8465 # AIX install. It has an incompatible calling convention.
8466 :
8467 else
8468 ac_cv_path_install="$ac_dir/$ac_prog -c"
8469 break 2
8470 fi
8471 fi
8472 done
8473 ;;
8474 esac
8475 done
8476 IFS="$ac_save_IFS"
8477
8478 fi
8479 if test "${ac_cv_path_install+set}" = set; then
8480 INSTALL="$ac_cv_path_install"
8481 else
8482 # As a last resort, use the slow shell script. We don't cache a
8483 # path for INSTALL within a source directory, because that will
8484 # break other packages using the cache if that directory is
8485 # removed, or if the path is relative.
8486 INSTALL="$ac_install_sh"
8487 fi
8488 fi
8489 echo "$ac_t""$INSTALL" 1>&6
8490
8491 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8492 # It thinks the first close brace ends the variable substitution.
8493 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8494
8495 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8496
8497 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8498
8499
8500 # Extract the first word of "strip", so it can be a program name with args.
8501 set dummy strip; ac_word=$2
8502 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8503 echo "configure:8504: checking for $ac_word" >&5
8504 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8505 echo $ac_n "(cached) $ac_c" 1>&6
8506 else
8507 if test -n "$STRIP"; then
8508 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8509 else
8510 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8511 ac_dummy="$PATH"
8512 for ac_dir in $ac_dummy; do
8513 test -z "$ac_dir" && ac_dir=.
8514 if test -f $ac_dir/$ac_word; then
8515 ac_cv_prog_STRIP="strip"
8516 break
8517 fi
8518 done
8519 IFS="$ac_save_ifs"
8520 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8521 fi
8522 fi
8523 STRIP="$ac_cv_prog_STRIP"
8524 if test -n "$STRIP"; then
8525 echo "$ac_t""$STRIP" 1>&6
8526 else
8527 echo "$ac_t""no" 1>&6
8528 fi
8529
8530
8531 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8532 echo "configure:8533: checking make for VPATH support" >&5
8533 cat - << EOF > confMake
8534 check : file
8535 cp \$? \$@
8536 cp \$? final_file
8537 EOF
8538
8539 if test ! -d sub ; then
8540 mkdir sub
8541 fi
8542 echo dummy > sub/file
8543 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8544 RESULT=$?
8545 rm -f sub/file check final_file confMake
8546 rmdir sub
8547 if test "$RESULT" = 0; then
8548 echo "$ac_t""yes" 1>&6
8549 else
8550 echo "$ac_t""no" 1>&6
8551 { echo "configure: error:
8552 You need a make-utility that is able to use the variable
8553 VPATH correctly.
8554 If your version of make does not support VPATH correctly,
8555 please install GNU-make (possibly as gmake), and start
8556 configure with the following command:
8557 export MAKE=gmake; ./configure for sh-type shells
8558 setenv MAKE gmake; ./configure for csh-type shells
8559 Also please do remember to use gmake in this case every time
8560 you are trying to compile.
8561 " 1>&2; exit 1; }
8562 fi
8563
8564 for ac_prog in 'bison -y' byacc
8565 do
8566 # Extract the first word of "$ac_prog", so it can be a program name with args.
8567 set dummy $ac_prog; ac_word=$2
8568 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8569 echo "configure:8570: checking for $ac_word" >&5
8570 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8571 echo $ac_n "(cached) $ac_c" 1>&6
8572 else
8573 if test -n "$YACC"; then
8574 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8575 else
8576 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8577 ac_dummy="$PATH"
8578 for ac_dir in $ac_dummy; do
8579 test -z "$ac_dir" && ac_dir=.
8580 if test -f $ac_dir/$ac_word; then
8581 ac_cv_prog_YACC="$ac_prog"
8582 break
8583 fi
8584 done
8585 IFS="$ac_save_ifs"
8586 fi
8587 fi
8588 YACC="$ac_cv_prog_YACC"
8589 if test -n "$YACC"; then
8590 echo "$ac_t""$YACC" 1>&6
8591 else
8592 echo "$ac_t""no" 1>&6
8593 fi
8594
8595 test -n "$YACC" && break
8596 done
8597 test -n "$YACC" || YACC="yacc"
8598
8599
8600 # Extract the first word of "flex", so it can be a program name with args.
8601 set dummy flex; ac_word=$2
8602 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8603 echo "configure:8604: checking for $ac_word" >&5
8604 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8605 echo $ac_n "(cached) $ac_c" 1>&6
8606 else
8607 if test -n "$LEX"; then
8608 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8609 else
8610 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8611 ac_dummy="$PATH"
8612 for ac_dir in $ac_dummy; do
8613 test -z "$ac_dir" && ac_dir=.
8614 if test -f $ac_dir/$ac_word; then
8615 ac_cv_prog_LEX="flex"
8616 break
8617 fi
8618 done
8619 IFS="$ac_save_ifs"
8620 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8621 fi
8622 fi
8623 LEX="$ac_cv_prog_LEX"
8624 if test -n "$LEX"; then
8625 echo "$ac_t""$LEX" 1>&6
8626 else
8627 echo "$ac_t""no" 1>&6
8628 fi
8629
8630 if test -z "$LEXLIB"
8631 then
8632 case "$LEX" in
8633 flex*) ac_lib=fl ;;
8634 *) ac_lib=l ;;
8635 esac
8636 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8637 echo "configure:8638: checking for yywrap in -l$ac_lib" >&5
8638 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8639 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8640 echo $ac_n "(cached) $ac_c" 1>&6
8641 else
8642 ac_save_LIBS="$LIBS"
8643 LIBS="-l$ac_lib $LIBS"
8644 cat > conftest.$ac_ext <<EOF
8645 #line 8646 "configure"
8646 #include "confdefs.h"
8647 /* Override any gcc2 internal prototype to avoid an error. */
8648 /* We use char because int might match the return type of a gcc2
8649 builtin and then its argument prototype would still apply. */
8650 char yywrap();
8651
8652 int main() {
8653 yywrap()
8654 ; return 0; }
8655 EOF
8656 if { (eval echo configure:8657: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8657 rm -rf conftest*
8658 eval "ac_cv_lib_$ac_lib_var=yes"
8659 else
8660 echo "configure: failed program was:" >&5
8661 cat conftest.$ac_ext >&5
8662 rm -rf conftest*
8663 eval "ac_cv_lib_$ac_lib_var=no"
8664 fi
8665 rm -f conftest*
8666 LIBS="$ac_save_LIBS"
8667
8668 fi
8669 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8670 echo "$ac_t""yes" 1>&6
8671 LEXLIB="-l$ac_lib"
8672 else
8673 echo "$ac_t""no" 1>&6
8674 fi
8675
8676 fi
8677
8678
8679 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8680 echo "configure:8681: checking whether ln -s works" >&5
8681 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8682 echo $ac_n "(cached) $ac_c" 1>&6
8683 else
8684 rm -f conftestdata
8685 if ln -s X conftestdata 2>/dev/null
8686 then
8687 rm -f conftestdata
8688 ac_cv_prog_LN_S="ln -s"
8689 else
8690 ac_cv_prog_LN_S=ln
8691 fi
8692 fi
8693 LN_S="$ac_cv_prog_LN_S"
8694 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8695 echo "$ac_t""yes" 1>&6
8696 else
8697 echo "$ac_t""no" 1>&6
8698 fi
8699
8700
8701
8702 SEARCH_INCLUDE="\
8703 /usr/local/include \
8704 \
8705 /usr/Motif-1.2/include \
8706 /usr/Motif-2.1/include \
8707 \
8708 /usr/include/Motif1.2 \
8709 /opt/xpm/include/X11 \
8710 /opt/GBxpm/include/ \
8711 /opt/GBxpm/X11/include/ \
8712 \
8713 /usr/Motif1.2/include \
8714 /usr/dt/include \
8715 /usr/openwin/include \
8716 \
8717 /usr/include/Xm \
8718 \
8719 /usr/X11R6/include \
8720 /usr/X11R6.4/include \
8721 /usr/X11R5/include \
8722 /usr/X11R4/include \
8723 \
8724 /usr/include/X11R6 \
8725 /usr/include/X11R5 \
8726 /usr/include/X11R4 \
8727 \
8728 /usr/local/X11R6/include \
8729 /usr/local/X11R5/include \
8730 /usr/local/X11R4/include \
8731 \
8732 /usr/local/include/X11R6 \
8733 /usr/local/include/X11R5 \
8734 /usr/local/include/X11R4 \
8735 \
8736 /usr/X11/include \
8737 /usr/include/X11 \
8738 /usr/local/X11/include \
8739 /usr/local/include/X11 \
8740 \
8741 /usr/X386/include \
8742 /usr/x386/include \
8743 /usr/XFree86/include/X11 \
8744 \
8745 X:/XFree86/include \
8746 X:/XFree86/include/X11 \
8747 \
8748 /usr/include/gtk \
8749 /usr/local/include/gtk \
8750 /usr/include/glib \
8751 /usr/local/include/glib \
8752 \
8753 /usr/include/qt \
8754 /usr/local/include/qt \
8755 \
8756 /usr/include/windows \
8757 /usr/include/wine \
8758 /usr/local/include/wine \
8759 \
8760 /usr/unsupported/include \
8761 /usr/athena/include \
8762 /usr/local/x11r5/include \
8763 /usr/lpp/Xamples/include \
8764 \
8765 /usr/openwin/share/include \
8766 \
8767 /usr/include"
8768
8769 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8770
8771
8772 cat > confcache <<\EOF
8773 # This file is a shell script that caches the results of configure
8774 # tests run on this system so they can be shared between configure
8775 # scripts and configure runs. It is not useful on other systems.
8776 # If it contains results you don't want to keep, you may remove or edit it.
8777 #
8778 # By default, configure uses ./config.cache as the cache file,
8779 # creating it if it does not exist already. You can give configure
8780 # the --cache-file=FILE option to use a different cache file; that is
8781 # what configure does when it calls configure scripts in
8782 # subdirectories, so they share the cache.
8783 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8784 # config.status only pays attention to the cache file if you give it the
8785 # --recheck option to rerun configure.
8786 #
8787 EOF
8788 # The following way of writing the cache mishandles newlines in values,
8789 # but we know of no workaround that is simple, portable, and efficient.
8790 # So, don't put newlines in cache variables' values.
8791 # Ultrix sh set writes to stderr and can't be redirected directly,
8792 # and sets the high bit in the cache file unless we assign to the vars.
8793 (set) 2>&1 |
8794 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8795 *ac_space=\ *)
8796 # `set' does not quote correctly, so add quotes (double-quote substitution
8797 # turns \\\\ into \\, and sed turns \\ into \).
8798 sed -n \
8799 -e "s/'/'\\\\''/g" \
8800 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8801 ;;
8802 *)
8803 # `set' quotes correctly as required by POSIX, so do not add quotes.
8804 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8805 ;;
8806 esac >> confcache
8807 if cmp -s $cache_file confcache; then
8808 :
8809 else
8810 if test -w $cache_file; then
8811 echo "updating cache $cache_file"
8812 cat confcache > $cache_file
8813 else
8814 echo "not updating unwritable cache $cache_file"
8815 fi
8816 fi
8817 rm -f confcache
8818
8819
8820
8821 REGEX_INCLUDE=
8822 if test "$wxUSE_REGEX" != "no"; then
8823 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8824 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
8825 echo "configure:8826: checking for regex.h" >&5
8826 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8827 echo $ac_n "(cached) $ac_c" 1>&6
8828 else
8829 cat > conftest.$ac_ext <<EOF
8830 #line 8831 "configure"
8831 #include "confdefs.h"
8832 #include <regex.h>
8833 EOF
8834 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8835 { (eval echo configure:8836: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8836 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8837 if test -z "$ac_err"; then
8838 rm -rf conftest*
8839 eval "ac_cv_header_$ac_safe=yes"
8840 else
8841 echo "$ac_err" >&5
8842 echo "configure: failed program was:" >&5
8843 cat conftest.$ac_ext >&5
8844 rm -rf conftest*
8845 eval "ac_cv_header_$ac_safe=no"
8846 fi
8847 rm -f conftest*
8848 fi
8849 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8850 echo "$ac_t""yes" 1>&6
8851 for ac_func in regcomp
8852 do
8853 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8854 echo "configure:8855: checking for $ac_func" >&5
8855 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8856 echo $ac_n "(cached) $ac_c" 1>&6
8857 else
8858 cat > conftest.$ac_ext <<EOF
8859 #line 8860 "configure"
8860 #include "confdefs.h"
8861 /* System header to define __stub macros and hopefully few prototypes,
8862 which can conflict with char $ac_func(); below. */
8863 #include <assert.h>
8864 /* Override any gcc2 internal prototype to avoid an error. */
8865 /* We use char because int might match the return type of a gcc2
8866 builtin and then its argument prototype would still apply. */
8867 char $ac_func();
8868
8869 int main() {
8870
8871 /* The GNU C library defines this for functions which it implements
8872 to always fail with ENOSYS. Some functions are actually named
8873 something starting with __ and the normal name is an alias. */
8874 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8875 choke me
8876 #else
8877 $ac_func();
8878 #endif
8879
8880 ; return 0; }
8881 EOF
8882 if { (eval echo configure:8883: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8883 rm -rf conftest*
8884 eval "ac_cv_func_$ac_func=yes"
8885 else
8886 echo "configure: failed program was:" >&5
8887 cat conftest.$ac_ext >&5
8888 rm -rf conftest*
8889 eval "ac_cv_func_$ac_func=no"
8890 fi
8891 rm -f conftest*
8892 fi
8893
8894 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8895 echo "$ac_t""yes" 1>&6
8896 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8897 cat >> confdefs.h <<EOF
8898 #define $ac_tr_func 1
8899 EOF
8900
8901 else
8902 echo "$ac_t""no" 1>&6
8903 fi
8904 done
8905
8906 else
8907 echo "$ac_t""no" 1>&6
8908 fi
8909
8910
8911 if test "x$ac_cv_func_regcomp" != "xyes"; then
8912 if test "$wxUSE_REGEX" = "sys"; then
8913 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
8914 fi
8915
8916 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
8917 fi
8918
8919 cat >> confdefs.h <<\EOF
8920 #define wxUSE_REGEX 1
8921 EOF
8922
8923 fi
8924
8925
8926 AFMINSTALL=
8927
8928 TOOLKIT=
8929 TOOLKIT_INCLUDE=
8930 WIDGET_SET=
8931
8932 if test "$USE_WIN32" = 1 ; then
8933 for ac_hdr in w32api.h
8934 do
8935 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
8936 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
8937 echo "configure:8938: checking for $ac_hdr" >&5
8938 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8939 echo $ac_n "(cached) $ac_c" 1>&6
8940 else
8941 cat > conftest.$ac_ext <<EOF
8942 #line 8943 "configure"
8943 #include "confdefs.h"
8944 #include <$ac_hdr>
8945 EOF
8946 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8947 { (eval echo configure:8948: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8948 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8949 if test -z "$ac_err"; then
8950 rm -rf conftest*
8951 eval "ac_cv_header_$ac_safe=yes"
8952 else
8953 echo "$ac_err" >&5
8954 echo "configure: failed program was:" >&5
8955 cat conftest.$ac_ext >&5
8956 rm -rf conftest*
8957 eval "ac_cv_header_$ac_safe=no"
8958 fi
8959 rm -f conftest*
8960 fi
8961 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8962 echo "$ac_t""yes" 1>&6
8963 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
8964 cat >> confdefs.h <<EOF
8965 #define $ac_tr_hdr 1
8966 EOF
8967
8968 else
8969 echo "$ac_t""no" 1>&6
8970 fi
8971 done
8972
8973 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8974 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
8975 echo "configure:8976: checking for windows.h" >&5
8976 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8977 echo $ac_n "(cached) $ac_c" 1>&6
8978 else
8979 cat > conftest.$ac_ext <<EOF
8980 #line 8981 "configure"
8981 #include "confdefs.h"
8982 #include <windows.h>
8983 EOF
8984 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8985 { (eval echo configure:8986: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8986 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8987 if test -z "$ac_err"; then
8988 rm -rf conftest*
8989 eval "ac_cv_header_$ac_safe=yes"
8990 else
8991 echo "$ac_err" >&5
8992 echo "configure: failed program was:" >&5
8993 cat conftest.$ac_ext >&5
8994 rm -rf conftest*
8995 eval "ac_cv_header_$ac_safe=no"
8996 fi
8997 rm -f conftest*
8998 fi
8999 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9000 echo "$ac_t""yes" 1>&6
9001 :
9002 else
9003 echo "$ac_t""no" 1>&6
9004
9005 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9006
9007 fi
9008
9009
9010 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
9011 echo "configure:9012: checking if w32api has good enough MSIE support" >&5
9012 if eval "test \"`echo '$''{'wx_cv_w32api_win_ie'+set}'`\" = set"; then
9013 echo $ac_n "(cached) $ac_c" 1>&6
9014 else
9015
9016 cat > conftest.$ac_ext <<EOF
9017 #line 9018 "configure"
9018 #include "confdefs.h"
9019 #include <w32api.h>
9020 int main() {
9021
9022 #define wxCHECK_W32API_VERSION( major, minor ) \
9023 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9024 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9025 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9026
9027 #if !wxCHECK_W32API_VERSION(1,1)
9028 #error You need w32api 1.1 or newer
9029 #endif
9030
9031 ; return 0; }
9032 EOF
9033 if { (eval echo configure:9034: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9034 rm -rf conftest*
9035
9036 wx_cv_w32api_win_ie=yes
9037 CPPFLAGS="$CPPFLAGS -D_WIN_IE=0x400"
9038
9039 else
9040 echo "configure: failed program was:" >&5
9041 cat conftest.$ac_ext >&5
9042 rm -rf conftest*
9043
9044 wx_cv_w32api_win_ie=no
9045
9046 fi
9047 rm -f conftest*
9048
9049 fi
9050
9051 echo "$ac_t""$wx_cv_w32api_win_ie" 1>&6
9052
9053 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9054
9055 if test "$wxUSE_ODBC" = "yes" ; then
9056 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
9057 fi
9058
9059 if test "$wxUSE_MINGW" = 1; then
9060 LDFLAGS="$LDFLAGS -mwindows"
9061 fi
9062
9063 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9064 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9065 fi
9066
9067 if test "$wxUSE_GUI" = "yes"; then
9068 USE_GUI=1
9069
9070 GUI_TK_LIBRARY=
9071
9072 WXGTK12=
9073 WXGTK127=
9074 WXGTK20=
9075
9076 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
9077 TOOLKIT=MSW
9078 GUIDIST=MSW_DIST
9079 fi
9080
9081 if test "$wxUSE_GTK" = 1; then
9082 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9083 echo "configure:9084: checking for GTK+ version" >&5
9084
9085 gtk_version_cached=1
9086 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9087 echo $ac_n "(cached) $ac_c" 1>&6
9088 else
9089
9090 gtk_version_cached=0
9091 echo "$ac_t""""" 1>&6
9092
9093 wx_cv_lib_gtk=
9094 if test "x$wxUSE_GTK2" = "xyes"; then
9095 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9096 if test "${with_gtk_prefix+set}" = set; then
9097 withval="$with_gtk_prefix"
9098 gtk_config_prefix="$withval"
9099 else
9100 gtk_config_prefix=""
9101 fi
9102
9103 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9104 if test "${with_gtk_exec_prefix+set}" = set; then
9105 withval="$with_gtk_exec_prefix"
9106 gtk_config_exec_prefix="$withval"
9107 else
9108 gtk_config_exec_prefix=""
9109 fi
9110
9111 # Check whether --enable-gtktest or --disable-gtktest was given.
9112 if test "${enable_gtktest+set}" = set; then
9113 enableval="$enable_gtktest"
9114 :
9115 else
9116 enable_gtktest=yes
9117 fi
9118
9119
9120 for module in .
9121 do
9122 case "$module" in
9123 gthread)
9124 gtk_config_args="$gtk_config_args gthread"
9125 ;;
9126 esac
9127 done
9128
9129 if test x$gtk_config_exec_prefix != x ; then
9130 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9131 if test x${GTK_CONFIG_2_0+set} != xset ; then
9132 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9133 fi
9134 fi
9135 if test x$gtk_config_prefix != x ; then
9136 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9137 if test x${GTK_CONFIG_2_0+set} != xset ; then
9138 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9139 fi
9140 fi
9141
9142 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9143 set dummy gtk-config-2.0; ac_word=$2
9144 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9145 echo "configure:9146: checking for $ac_word" >&5
9146 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9147 echo $ac_n "(cached) $ac_c" 1>&6
9148 else
9149 case "$GTK_CONFIG_2_0" in
9150 /*)
9151 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9152 ;;
9153 ?:/*)
9154 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9155 ;;
9156 *)
9157 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9158 ac_dummy="$PATH"
9159 for ac_dir in $ac_dummy; do
9160 test -z "$ac_dir" && ac_dir=.
9161 if test -f $ac_dir/$ac_word; then
9162 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9163 break
9164 fi
9165 done
9166 IFS="$ac_save_ifs"
9167 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9168 ;;
9169 esac
9170 fi
9171 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
9172 if test -n "$GTK_CONFIG_2_0"; then
9173 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
9174 else
9175 echo "$ac_t""no" 1>&6
9176 fi
9177
9178 min_gtk_version=1.3.1
9179 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9180 echo "configure:9181: checking for GTK - version >= $min_gtk_version" >&5
9181 no_gtk=""
9182 if test "$GTK_CONFIG_2_0" = "no" ; then
9183 no_gtk=yes
9184 else
9185 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9186 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9187 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9188 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9189 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9190 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9191 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9192 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9193 if test "x$enable_gtktest" = "xyes" ; then
9194 ac_save_CFLAGS="$CFLAGS"
9195 ac_save_LIBS="$LIBS"
9196 CFLAGS="$CFLAGS $GTK_CFLAGS"
9197 LIBS="$GTK_LIBS $LIBS"
9198 rm -f conf.gtktest
9199 if test "$cross_compiling" = yes; then
9200 echo $ac_n "cross compiling; assumed OK... $ac_c"
9201 else
9202 cat > conftest.$ac_ext <<EOF
9203 #line 9204 "configure"
9204 #include "confdefs.h"
9205
9206 #include <gtk/gtk.h>
9207 #include <stdio.h>
9208 #include <stdlib.h>
9209
9210 int
9211 main ()
9212 {
9213 int major, minor, micro;
9214 char *tmp_version;
9215
9216 system ("touch conf.gtktest");
9217
9218 /* HP/UX 9 (%@#!) writes to sscanf strings */
9219 tmp_version = g_strdup("$min_gtk_version");
9220 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9221 printf("%s, bad version string\n", "$min_gtk_version");
9222 exit(1);
9223 }
9224
9225 if ((gtk_major_version != $gtk_config_major_version) ||
9226 (gtk_minor_version != $gtk_config_minor_version) ||
9227 (gtk_micro_version != $gtk_config_micro_version))
9228 {
9229 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
9230 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9231 gtk_major_version, gtk_minor_version, gtk_micro_version);
9232 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9233 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9234 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9235 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9236 printf("*** required on your system.\n");
9237 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9238 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9239 printf("*** before re-running configure\n");
9240 }
9241 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9242 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9243 (gtk_minor_version != GTK_MINOR_VERSION) ||
9244 (gtk_micro_version != GTK_MICRO_VERSION))
9245 {
9246 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9247 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9248 printf("*** library (version %d.%d.%d)\n",
9249 gtk_major_version, gtk_minor_version, gtk_micro_version);
9250 }
9251 #endif /* defined (GTK_MAJOR_VERSION) ... */
9252 else
9253 {
9254 if ((gtk_major_version > major) ||
9255 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9256 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9257 {
9258 return 0;
9259 }
9260 else
9261 {
9262 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9263 gtk_major_version, gtk_minor_version, gtk_micro_version);
9264 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9265 major, minor, micro);
9266 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9267 printf("***\n");
9268 printf("*** If you have already installed a sufficiently new version, this error\n");
9269 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9270 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9271 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9272 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9273 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9274 printf("*** so that the correct libraries are found at run-time))\n");
9275 }
9276 }
9277 return 1;
9278 }
9279
9280 EOF
9281 if { (eval echo configure:9282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9282 then
9283 :
9284 else
9285 echo "configure: failed program was:" >&5
9286 cat conftest.$ac_ext >&5
9287 rm -fr conftest*
9288 no_gtk=yes
9289 fi
9290 rm -fr conftest*
9291 fi
9292
9293 CFLAGS="$ac_save_CFLAGS"
9294 LIBS="$ac_save_LIBS"
9295 fi
9296 fi
9297 if test "x$no_gtk" = x ; then
9298 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9299 wx_cv_lib_gtk=2.0
9300 else
9301 echo "$ac_t""no" 1>&6
9302 if test "$GTK_CONFIG_2_0" = "no" ; then
9303 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9304 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9305 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9306 echo "*** full path to gtk-config-2.0."
9307 else
9308 if test -f conf.gtktest ; then
9309 :
9310 else
9311 echo "*** Could not run GTK test program, checking why..."
9312 CFLAGS="$CFLAGS $GTK_CFLAGS"
9313 LIBS="$LIBS $GTK_LIBS"
9314 cat > conftest.$ac_ext <<EOF
9315 #line 9316 "configure"
9316 #include "confdefs.h"
9317
9318 #include <gtk/gtk.h>
9319 #include <stdio.h>
9320
9321 int main() {
9322 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9323 ; return 0; }
9324 EOF
9325 if { (eval echo configure:9326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9326 rm -rf conftest*
9327 echo "*** The test program compiled, but did not run. This usually means"
9328 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9329 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9330 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9331 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9332 echo "*** is required on your system"
9333 echo "***"
9334 echo "*** If you have an old version installed, it is best to remove it, although"
9335 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9336 echo "***"
9337 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9338 echo "*** came with the system with the command"
9339 echo "***"
9340 echo "*** rpm --erase --nodeps gtk gtk-devel"
9341 else
9342 echo "configure: failed program was:" >&5
9343 cat conftest.$ac_ext >&5
9344 rm -rf conftest*
9345 echo "*** The test program failed to compile or link. See the file config.log for the"
9346 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9347 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
9348 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
9349 fi
9350 rm -f conftest*
9351 CFLAGS="$ac_save_CFLAGS"
9352 LIBS="$ac_save_LIBS"
9353 fi
9354 fi
9355 GTK_CFLAGS=""
9356 GTK_LIBS=""
9357 gthread
9358 fi
9359
9360
9361 rm -f conf.gtktest
9362
9363 fi
9364
9365 if test -z "$wx_cv_lib_gtk"; then
9366
9367 if test x$gtk_config_exec_prefix != x ; then
9368 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9369 if test x${GTK_CONFIG+set} != xset ; then
9370 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9371 fi
9372 fi
9373 if test x$gtk_config_prefix != x ; then
9374 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9375 if test x${GTK_CONFIG+set} != xset ; then
9376 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9377 fi
9378 fi
9379
9380 # Extract the first word of "gtk-config", so it can be a program name with args.
9381 set dummy gtk-config; ac_word=$2
9382 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9383 echo "configure:9384: checking for $ac_word" >&5
9384 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9385 echo $ac_n "(cached) $ac_c" 1>&6
9386 else
9387 case "$GTK_CONFIG" in
9388 /*)
9389 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9390 ;;
9391 ?:/*)
9392 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9393 ;;
9394 *)
9395 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9396 ac_dummy="$PATH"
9397 for ac_dir in $ac_dummy; do
9398 test -z "$ac_dir" && ac_dir=.
9399 if test -f $ac_dir/$ac_word; then
9400 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9401 break
9402 fi
9403 done
9404 IFS="$ac_save_ifs"
9405 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9406 ;;
9407 esac
9408 fi
9409 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9410 if test -n "$GTK_CONFIG"; then
9411 echo "$ac_t""$GTK_CONFIG" 1>&6
9412 else
9413 echo "$ac_t""no" 1>&6
9414 fi
9415
9416 min_gtk_version=1.2.7
9417 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9418 echo "configure:9419: checking for GTK - version >= $min_gtk_version" >&5
9419 no_gtk=""
9420 if test "$GTK_CONFIG" != "no" ; then
9421 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9422 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9423 ac_save_CFLAGS="$CFLAGS"
9424 ac_save_LIBS="$LIBS"
9425 CFLAGS="$CFLAGS $GTK_CFLAGS"
9426 LIBS="$LIBS $GTK_LIBS"
9427 if test "$cross_compiling" = yes; then
9428 echo $ac_n "cross compiling; assumed OK... $ac_c"
9429 else
9430 cat > conftest.$ac_ext <<EOF
9431 #line 9432 "configure"
9432 #include "confdefs.h"
9433
9434 #include <gtk/gtk.h>
9435 #include <gtk/gtkfeatures.h>
9436 #include <stdio.h>
9437 #include <stdlib.h>
9438
9439 int
9440 main ()
9441 {
9442 int major, minor, micro;
9443
9444 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9445 printf("%s, bad version string\n", "$min_gtk_version");
9446 exit(1);
9447 }
9448
9449 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9450 (GTK_MINOR_VERSION != gtk_minor_version) ||
9451 (GTK_MICRO_VERSION != gtk_micro_version)) {
9452 printf("Headers vs. library version mismatch!\n");
9453 exit(1);
9454 }
9455
9456 if (gtk_minor_version == 1) return FALSE;
9457
9458 return !((gtk_major_version > major) ||
9459 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9460 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9461 }
9462
9463 EOF
9464 if { (eval echo configure:9465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9465 then
9466 :
9467 else
9468 echo "configure: failed program was:" >&5
9469 cat conftest.$ac_ext >&5
9470 rm -fr conftest*
9471 no_gtk=yes
9472 fi
9473 rm -fr conftest*
9474 fi
9475
9476 CFLAGS="$ac_save_CFLAGS"
9477 LIBS="$ac_save_LIBS"
9478 else
9479 no_gtk=yes
9480 fi
9481 if test "x$no_gtk" = x ; then
9482 echo "$ac_t""yes" 1>&6
9483 wx_cv_lib_gtk=1.2.7
9484 else
9485 echo "$ac_t""no" 1>&6
9486 GTK_CFLAGS=""
9487 GTK_LIBS=""
9488 :
9489 fi
9490
9491
9492
9493 fi
9494
9495 if test -z "$wx_cv_lib_gtk"; then
9496
9497 if test x$gtk_config_exec_prefix != x ; then
9498 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9499 if test x${GTK_CONFIG+set} != xset ; then
9500 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9501 fi
9502 fi
9503 if test x$gtk_config_prefix != x ; then
9504 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9505 if test x${GTK_CONFIG+set} != xset ; then
9506 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9507 fi
9508 fi
9509
9510 # Extract the first word of "gtk-config", so it can be a program name with args.
9511 set dummy gtk-config; ac_word=$2
9512 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9513 echo "configure:9514: checking for $ac_word" >&5
9514 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9515 echo $ac_n "(cached) $ac_c" 1>&6
9516 else
9517 case "$GTK_CONFIG" in
9518 /*)
9519 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9520 ;;
9521 ?:/*)
9522 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9523 ;;
9524 *)
9525 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9526 ac_dummy="$PATH"
9527 for ac_dir in $ac_dummy; do
9528 test -z "$ac_dir" && ac_dir=.
9529 if test -f $ac_dir/$ac_word; then
9530 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9531 break
9532 fi
9533 done
9534 IFS="$ac_save_ifs"
9535 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9536 ;;
9537 esac
9538 fi
9539 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9540 if test -n "$GTK_CONFIG"; then
9541 echo "$ac_t""$GTK_CONFIG" 1>&6
9542 else
9543 echo "$ac_t""no" 1>&6
9544 fi
9545
9546 min_gtk_version=1.2.3
9547 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9548 echo "configure:9549: checking for GTK - version >= $min_gtk_version" >&5
9549 no_gtk=""
9550 if test "$GTK_CONFIG" != "no" ; then
9551 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9552 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9553 ac_save_CFLAGS="$CFLAGS"
9554 ac_save_LIBS="$LIBS"
9555 CFLAGS="$CFLAGS $GTK_CFLAGS"
9556 LIBS="$LIBS $GTK_LIBS"
9557 if test "$cross_compiling" = yes; then
9558 echo $ac_n "cross compiling; assumed OK... $ac_c"
9559 else
9560 cat > conftest.$ac_ext <<EOF
9561 #line 9562 "configure"
9562 #include "confdefs.h"
9563
9564 #include <gtk/gtk.h>
9565 #include <gtk/gtkfeatures.h>
9566 #include <stdio.h>
9567 #include <stdlib.h>
9568
9569 int
9570 main ()
9571 {
9572 int major, minor, micro;
9573
9574 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9575 printf("%s, bad version string\n", "$min_gtk_version");
9576 exit(1);
9577 }
9578
9579 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9580 (GTK_MINOR_VERSION != gtk_minor_version) ||
9581 (GTK_MICRO_VERSION != gtk_micro_version)) {
9582 printf("Headers vs. library version mismatch!\n");
9583 exit(1);
9584 }
9585
9586 if (gtk_minor_version == 1) return FALSE;
9587
9588 return !((gtk_major_version > major) ||
9589 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9590 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9591 }
9592
9593 EOF
9594 if { (eval echo configure:9595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9595 then
9596 :
9597 else
9598 echo "configure: failed program was:" >&5
9599 cat conftest.$ac_ext >&5
9600 rm -fr conftest*
9601 no_gtk=yes
9602 fi
9603 rm -fr conftest*
9604 fi
9605
9606 CFLAGS="$ac_save_CFLAGS"
9607 LIBS="$ac_save_LIBS"
9608 else
9609 no_gtk=yes
9610 fi
9611 if test "x$no_gtk" = x ; then
9612 echo "$ac_t""yes" 1>&6
9613 wx_cv_lib_gtk=1.2.3
9614 else
9615 echo "$ac_t""no" 1>&6
9616 GTK_CFLAGS=""
9617 GTK_LIBS=""
9618 :
9619 fi
9620
9621
9622
9623 fi
9624
9625 if test -z "$wx_cv_lib_gtk"; then
9626 wx_cv_lib_gtk=none
9627 else
9628 wx_cv_cflags_gtk=$GTK_CFLAGS
9629 wx_cv_libs_gtk=$GTK_LIBS
9630 fi
9631
9632
9633 fi
9634
9635
9636 if test "$gtk_version_cached" = 1; then
9637 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
9638 fi
9639
9640 case "$wx_cv_lib_gtk" in
9641 2.0) WXGTK20=1
9642 ;;
9643 1.2.7) WXGTK127=1
9644 WXGTK12=1
9645 ;;
9646 1.2.3) WXGTK12=1
9647 ;;
9648 *) { echo "configure: error:
9649 Please check that gtk-config is in path, the directory
9650 where GTK+ libraries are installed (returned by
9651 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9652 equivalent variable and GTK+ is version 1.2.3 or above.
9653 " 1>&2; exit 1; }
9654 ;;
9655 esac
9656
9657 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
9658 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
9659
9660 AFMINSTALL=afminstall
9661 TOOLKIT=GTK
9662 GUIDIST=GTK_DIST
9663
9664 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9665 echo "configure:9666: checking for gdk_im_open in -lgdk" >&5
9666 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9668 echo $ac_n "(cached) $ac_c" 1>&6
9669 else
9670 ac_save_LIBS="$LIBS"
9671 LIBS="-lgdk $LIBS"
9672 cat > conftest.$ac_ext <<EOF
9673 #line 9674 "configure"
9674 #include "confdefs.h"
9675 /* Override any gcc2 internal prototype to avoid an error. */
9676 /* We use char because int might match the return type of a gcc2
9677 builtin and then its argument prototype would still apply. */
9678 char gdk_im_open();
9679
9680 int main() {
9681 gdk_im_open()
9682 ; return 0; }
9683 EOF
9684 if { (eval echo configure:9685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9685 rm -rf conftest*
9686 eval "ac_cv_lib_$ac_lib_var=yes"
9687 else
9688 echo "configure: failed program was:" >&5
9689 cat conftest.$ac_ext >&5
9690 rm -rf conftest*
9691 eval "ac_cv_lib_$ac_lib_var=no"
9692 fi
9693 rm -f conftest*
9694 LIBS="$ac_save_LIBS"
9695
9696 fi
9697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9698 echo "$ac_t""yes" 1>&6
9699 cat >> confdefs.h <<\EOF
9700 #define HAVE_XIM 1
9701 EOF
9702
9703 else
9704 echo "$ac_t""no" 1>&6
9705 fi
9706
9707 fi
9708
9709 if test "$wxUSE_MGL" = 1; then
9710
9711 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9712 echo "configure:9713: checking for SciTech MGL library" >&5
9713 if test "x$MGL_ROOT" = x ; then
9714 echo "$ac_t""not found" 1>&6
9715 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9716 else
9717 echo "$ac_t""$MGL_ROOT" 1>&6
9718 fi
9719
9720 mgl_os=linux/gcc/glibc
9721 mgl_lib_type=""
9722
9723 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9724 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then
9725 mgl_lib_type=debug
9726 fi
9727 fi
9728 if test "x$mgl_lib_type" = x ; then
9729 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then
9730 mgl_lib_type=release
9731 else
9732 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9733 fi
9734 fi
9735
9736 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9737 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
9738
9739 AFMINSTALL=afminstall
9740 TOOLKIT=MGL
9741 GUIDIST=MGL_DIST
9742 fi
9743
9744 if test "$wxUSE_WINE" = 1; then
9745 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9746 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
9747 echo "configure:9748: checking for windows.h" >&5
9748 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9749 echo $ac_n "(cached) $ac_c" 1>&6
9750 else
9751 cat > conftest.$ac_ext <<EOF
9752 #line 9753 "configure"
9753 #include "confdefs.h"
9754 #include <windows.h>
9755 EOF
9756 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9757 { (eval echo configure:9758: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9758 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9759 if test -z "$ac_err"; then
9760 rm -rf conftest*
9761 eval "ac_cv_header_$ac_safe=yes"
9762 else
9763 echo "$ac_err" >&5
9764 echo "configure: failed program was:" >&5
9765 cat conftest.$ac_ext >&5
9766 rm -rf conftest*
9767 eval "ac_cv_header_$ac_safe=no"
9768 fi
9769 rm -f conftest*
9770 fi
9771 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9772 echo "$ac_t""yes" 1>&6
9773 :
9774 else
9775 echo "$ac_t""no" 1>&6
9776
9777 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9778
9779 fi
9780
9781
9782 xpm_link=""
9783 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9784 echo "configure:9785: checking for Xpm library" >&5
9785
9786 ac_find_libraries=
9787 for ac_dir in $SEARCH_LIB;
9788 do
9789 for ac_extension in a so sl dylib; do
9790 if test -f "$ac_dir/libXpm.$ac_extension"; then
9791 ac_find_libraries=$ac_dir
9792 break 2
9793 fi
9794 done
9795 done
9796
9797 if test "$ac_find_libraries" != "" ; then
9798 GUI_TK_LIBRARY="-L$ac_find_libraries"
9799 xpm_link="-lXpm"
9800 cat >> confdefs.h <<\EOF
9801 #define wxHAVE_LIB_XPM 1
9802 EOF
9803
9804 echo "$ac_t""found at $ac_find_libraries" 1>&6
9805 else
9806 echo "$ac_t""no" 1>&6
9807 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9808 fi
9809
9810 mesa_link=""
9811 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9812 echo "configure:9813: checking for Mesa library" >&5
9813
9814 ac_find_libraries=
9815 for ac_dir in $SEARCH_LIB;
9816 do
9817 for ac_extension in a so sl dylib; do
9818 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9819 ac_find_libraries=$ac_dir
9820 break 2
9821 fi
9822 done
9823 done
9824
9825 if test "$ac_find_libraries" != "" ; then
9826 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9827 mesa_link="-lMesaGL"
9828 echo "$ac_t""found at $ac_find_libraries" 1>&6
9829 else
9830 { echo "configure: error: no" 1>&2; exit 1; }
9831 fi
9832
9833 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9834 TOOLKIT=MSW
9835 GUIDIST=MSW_DIST
9836 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
9837 fi
9838
9839
9840 # If we find X, set shell vars x_includes and x_libraries to the
9841 # paths, otherwise set no_x=yes.
9842 # Uses ac_ vars as temps to allow command line to override cache and checks.
9843 # --without-x overrides everything else, but does not touch the cache.
9844 echo $ac_n "checking for X""... $ac_c" 1>&6
9845 echo "configure:9846: checking for X" >&5
9846
9847 # Check whether --with-x or --without-x was given.
9848 if test "${with_x+set}" = set; then
9849 withval="$with_x"
9850 :
9851 fi
9852
9853 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9854 if test "x$with_x" = xno; then
9855 # The user explicitly disabled X.
9856 have_x=disabled
9857 else
9858 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9859 # Both variables are already set.
9860 have_x=yes
9861 else
9862 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9863 echo $ac_n "(cached) $ac_c" 1>&6
9864 else
9865 # One or both of the vars are not set, and there is no cached value.
9866 ac_x_includes=NO ac_x_libraries=NO
9867 rm -fr conftestdir
9868 if mkdir conftestdir; then
9869 cd conftestdir
9870 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9871 cat > Imakefile <<'EOF'
9872 acfindx:
9873 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9874 EOF
9875 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9876 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9877 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9878 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9879 for ac_extension in a so sl; do
9880 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9881 test -f $ac_im_libdir/libX11.$ac_extension; then
9882 ac_im_usrlibdir=$ac_im_libdir; break
9883 fi
9884 done
9885 # Screen out bogus values from the imake configuration. They are
9886 # bogus both because they are the default anyway, and because
9887 # using them would break gcc on systems where it needs fixed includes.
9888 case "$ac_im_incroot" in
9889 /usr/include) ;;
9890 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9891 esac
9892 case "$ac_im_usrlibdir" in
9893 /usr/lib | /lib) ;;
9894 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9895 esac
9896 fi
9897 cd ..
9898 rm -fr conftestdir
9899 fi
9900
9901 if test "$ac_x_includes" = NO; then
9902 # Guess where to find include files, by looking for this one X11 .h file.
9903 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9904
9905 # First, try using that file with no special directory specified.
9906 cat > conftest.$ac_ext <<EOF
9907 #line 9908 "configure"
9908 #include "confdefs.h"
9909 #include <$x_direct_test_include>
9910 EOF
9911 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9912 { (eval echo configure:9913: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9913 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9914 if test -z "$ac_err"; then
9915 rm -rf conftest*
9916 # We can compile using X headers with no special include directory.
9917 ac_x_includes=
9918 else
9919 echo "$ac_err" >&5
9920 echo "configure: failed program was:" >&5
9921 cat conftest.$ac_ext >&5
9922 rm -rf conftest*
9923 # Look for the header file in a standard set of common directories.
9924 # Check X11 before X11Rn because it is often a symlink to the current release.
9925 for ac_dir in \
9926 /usr/X11/include \
9927 /usr/X11R6/include \
9928 /usr/X11R5/include \
9929 /usr/X11R4/include \
9930 \
9931 /usr/include/X11 \
9932 /usr/include/X11R6 \
9933 /usr/include/X11R5 \
9934 /usr/include/X11R4 \
9935 \
9936 /usr/local/X11/include \
9937 /usr/local/X11R6/include \
9938 /usr/local/X11R5/include \
9939 /usr/local/X11R4/include \
9940 \
9941 /usr/local/include/X11 \
9942 /usr/local/include/X11R6 \
9943 /usr/local/include/X11R5 \
9944 /usr/local/include/X11R4 \
9945 \
9946 /usr/X386/include \
9947 /usr/x386/include \
9948 /usr/XFree86/include/X11 \
9949 \
9950 /usr/include \
9951 /usr/local/include \
9952 /usr/unsupported/include \
9953 /usr/athena/include \
9954 /usr/local/x11r5/include \
9955 /usr/lpp/Xamples/include \
9956 \
9957 /usr/openwin/include \
9958 /usr/openwin/share/include \
9959 ; \
9960 do
9961 if test -r "$ac_dir/$x_direct_test_include"; then
9962 ac_x_includes=$ac_dir
9963 break
9964 fi
9965 done
9966 fi
9967 rm -f conftest*
9968 fi # $ac_x_includes = NO
9969
9970 if test "$ac_x_libraries" = NO; then
9971 # Check for the libraries.
9972
9973 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9974 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9975
9976 # See if we find them without any special options.
9977 # Don't add to $LIBS permanently.
9978 ac_save_LIBS="$LIBS"
9979 LIBS="-l$x_direct_test_library $LIBS"
9980 cat > conftest.$ac_ext <<EOF
9981 #line 9982 "configure"
9982 #include "confdefs.h"
9983
9984 int main() {
9985 ${x_direct_test_function}()
9986 ; return 0; }
9987 EOF
9988 if { (eval echo configure:9989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9989 rm -rf conftest*
9990 LIBS="$ac_save_LIBS"
9991 # We can link X programs with no special library path.
9992 ac_x_libraries=
9993 else
9994 echo "configure: failed program was:" >&5
9995 cat conftest.$ac_ext >&5
9996 rm -rf conftest*
9997 LIBS="$ac_save_LIBS"
9998 # First see if replacing the include by lib works.
9999 # Check X11 before X11Rn because it is often a symlink to the current release.
10000 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10001 /usr/X11/lib \
10002 /usr/X11R6/lib \
10003 /usr/X11R5/lib \
10004 /usr/X11R4/lib \
10005 \
10006 /usr/lib/X11 \
10007 /usr/lib/X11R6 \
10008 /usr/lib/X11R5 \
10009 /usr/lib/X11R4 \
10010 \
10011 /usr/local/X11/lib \
10012 /usr/local/X11R6/lib \
10013 /usr/local/X11R5/lib \
10014 /usr/local/X11R4/lib \
10015 \
10016 /usr/local/lib/X11 \
10017 /usr/local/lib/X11R6 \
10018 /usr/local/lib/X11R5 \
10019 /usr/local/lib/X11R4 \
10020 \
10021 /usr/X386/lib \
10022 /usr/x386/lib \
10023 /usr/XFree86/lib/X11 \
10024 \
10025 /usr/lib \
10026 /usr/local/lib \
10027 /usr/unsupported/lib \
10028 /usr/athena/lib \
10029 /usr/local/x11r5/lib \
10030 /usr/lpp/Xamples/lib \
10031 /lib/usr/lib/X11 \
10032 \
10033 /usr/openwin/lib \
10034 /usr/openwin/share/lib \
10035 ; \
10036 do
10037 for ac_extension in a so sl; do
10038 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
10039 ac_x_libraries=$ac_dir
10040 break 2
10041 fi
10042 done
10043 done
10044 fi
10045 rm -f conftest*
10046 fi # $ac_x_libraries = NO
10047
10048 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
10049 # Didn't find X anywhere. Cache the known absence of X.
10050 ac_cv_have_x="have_x=no"
10051 else
10052 # Record where we found X for the cache.
10053 ac_cv_have_x="have_x=yes \
10054 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10055 fi
10056 fi
10057 fi
10058 eval "$ac_cv_have_x"
10059 fi # $with_x != no
10060
10061 if test "$have_x" != yes; then
10062 echo "$ac_t""$have_x" 1>&6
10063 no_x=yes
10064 else
10065 # If each of the values was on the command line, it overrides each guess.
10066 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10067 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10068 # Update the cache value to reflect the command line values.
10069 ac_cv_have_x="have_x=yes \
10070 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10071 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10072 fi
10073
10074 if test "$no_x" = yes; then
10075 # Not all programs may use this symbol, but it does not hurt to define it.
10076 cat >> confdefs.h <<\EOF
10077 #define X_DISPLAY_MISSING 1
10078 EOF
10079
10080 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10081 else
10082 if test -n "$x_includes"; then
10083 X_CFLAGS="$X_CFLAGS -I$x_includes"
10084 fi
10085
10086 # It would also be nice to do this for all -L options, not just this one.
10087 if test -n "$x_libraries"; then
10088 X_LIBS="$X_LIBS -L$x_libraries"
10089 # For Solaris; some versions of Sun CC require a space after -R and
10090 # others require no space. Words are not sufficient . . . .
10091 case "`(uname -sr) 2>/dev/null`" in
10092 "SunOS 5"*)
10093 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
10094 echo "configure:10095: checking whether -R must be followed by a space" >&5
10095 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10096 cat > conftest.$ac_ext <<EOF
10097 #line 10098 "configure"
10098 #include "confdefs.h"
10099
10100 int main() {
10101
10102 ; return 0; }
10103 EOF
10104 if { (eval echo configure:10105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10105 rm -rf conftest*
10106 ac_R_nospace=yes
10107 else
10108 echo "configure: failed program was:" >&5
10109 cat conftest.$ac_ext >&5
10110 rm -rf conftest*
10111 ac_R_nospace=no
10112 fi
10113 rm -f conftest*
10114 if test $ac_R_nospace = yes; then
10115 echo "$ac_t""no" 1>&6
10116 X_LIBS="$X_LIBS -R$x_libraries"
10117 else
10118 LIBS="$ac_xsave_LIBS -R $x_libraries"
10119 cat > conftest.$ac_ext <<EOF
10120 #line 10121 "configure"
10121 #include "confdefs.h"
10122
10123 int main() {
10124
10125 ; return 0; }
10126 EOF
10127 if { (eval echo configure:10128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10128 rm -rf conftest*
10129 ac_R_space=yes
10130 else
10131 echo "configure: failed program was:" >&5
10132 cat conftest.$ac_ext >&5
10133 rm -rf conftest*
10134 ac_R_space=no
10135 fi
10136 rm -f conftest*
10137 if test $ac_R_space = yes; then
10138 echo "$ac_t""yes" 1>&6
10139 X_LIBS="$X_LIBS -R $x_libraries"
10140 else
10141 echo "$ac_t""neither works" 1>&6
10142 fi
10143 fi
10144 LIBS="$ac_xsave_LIBS"
10145 esac
10146 fi
10147
10148 # Check for system-dependent libraries X programs must link with.
10149 # Do this before checking for the system-independent R6 libraries
10150 # (-lICE), since we may need -lsocket or whatever for X linking.
10151
10152 if test "$ISC" = yes; then
10153 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10154 else
10155 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10156 # libraries were built with DECnet support. And karl@cs.umb.edu says
10157 # the Alpha needs dnet_stub (dnet does not exist).
10158 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
10159 echo "configure:10160: checking for dnet_ntoa in -ldnet" >&5
10160 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10161 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10162 echo $ac_n "(cached) $ac_c" 1>&6
10163 else
10164 ac_save_LIBS="$LIBS"
10165 LIBS="-ldnet $LIBS"
10166 cat > conftest.$ac_ext <<EOF
10167 #line 10168 "configure"
10168 #include "confdefs.h"
10169 /* Override any gcc2 internal prototype to avoid an error. */
10170 /* We use char because int might match the return type of a gcc2
10171 builtin and then its argument prototype would still apply. */
10172 char dnet_ntoa();
10173
10174 int main() {
10175 dnet_ntoa()
10176 ; return 0; }
10177 EOF
10178 if { (eval echo configure:10179: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10179 rm -rf conftest*
10180 eval "ac_cv_lib_$ac_lib_var=yes"
10181 else
10182 echo "configure: failed program was:" >&5
10183 cat conftest.$ac_ext >&5
10184 rm -rf conftest*
10185 eval "ac_cv_lib_$ac_lib_var=no"
10186 fi
10187 rm -f conftest*
10188 LIBS="$ac_save_LIBS"
10189
10190 fi
10191 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10192 echo "$ac_t""yes" 1>&6
10193 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10194 else
10195 echo "$ac_t""no" 1>&6
10196 fi
10197
10198 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10199 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
10200 echo "configure:10201: checking for dnet_ntoa in -ldnet_stub" >&5
10201 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10202 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10203 echo $ac_n "(cached) $ac_c" 1>&6
10204 else
10205 ac_save_LIBS="$LIBS"
10206 LIBS="-ldnet_stub $LIBS"
10207 cat > conftest.$ac_ext <<EOF
10208 #line 10209 "configure"
10209 #include "confdefs.h"
10210 /* Override any gcc2 internal prototype to avoid an error. */
10211 /* We use char because int might match the return type of a gcc2
10212 builtin and then its argument prototype would still apply. */
10213 char dnet_ntoa();
10214
10215 int main() {
10216 dnet_ntoa()
10217 ; return 0; }
10218 EOF
10219 if { (eval echo configure:10220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10220 rm -rf conftest*
10221 eval "ac_cv_lib_$ac_lib_var=yes"
10222 else
10223 echo "configure: failed program was:" >&5
10224 cat conftest.$ac_ext >&5
10225 rm -rf conftest*
10226 eval "ac_cv_lib_$ac_lib_var=no"
10227 fi
10228 rm -f conftest*
10229 LIBS="$ac_save_LIBS"
10230
10231 fi
10232 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10233 echo "$ac_t""yes" 1>&6
10234 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10235 else
10236 echo "$ac_t""no" 1>&6
10237 fi
10238
10239 fi
10240
10241 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10242 # to get the SysV transport functions.
10243 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10244 # needs -lnsl.
10245 # The nsl library prevents programs from opening the X display
10246 # on Irix 5.2, according to dickey@clark.net.
10247 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
10248 echo "configure:10249: checking for gethostbyname" >&5
10249 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10250 echo $ac_n "(cached) $ac_c" 1>&6
10251 else
10252 cat > conftest.$ac_ext <<EOF
10253 #line 10254 "configure"
10254 #include "confdefs.h"
10255 /* System header to define __stub macros and hopefully few prototypes,
10256 which can conflict with char gethostbyname(); below. */
10257 #include <assert.h>
10258 /* Override any gcc2 internal prototype to avoid an error. */
10259 /* We use char because int might match the return type of a gcc2
10260 builtin and then its argument prototype would still apply. */
10261 char gethostbyname();
10262
10263 int main() {
10264
10265 /* The GNU C library defines this for functions which it implements
10266 to always fail with ENOSYS. Some functions are actually named
10267 something starting with __ and the normal name is an alias. */
10268 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10269 choke me
10270 #else
10271 gethostbyname();
10272 #endif
10273
10274 ; return 0; }
10275 EOF
10276 if { (eval echo configure:10277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10277 rm -rf conftest*
10278 eval "ac_cv_func_gethostbyname=yes"
10279 else
10280 echo "configure: failed program was:" >&5
10281 cat conftest.$ac_ext >&5
10282 rm -rf conftest*
10283 eval "ac_cv_func_gethostbyname=no"
10284 fi
10285 rm -f conftest*
10286 fi
10287
10288 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10289 echo "$ac_t""yes" 1>&6
10290 :
10291 else
10292 echo "$ac_t""no" 1>&6
10293 fi
10294
10295 if test $ac_cv_func_gethostbyname = no; then
10296 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
10297 echo "configure:10298: checking for gethostbyname in -lnsl" >&5
10298 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10299 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10300 echo $ac_n "(cached) $ac_c" 1>&6
10301 else
10302 ac_save_LIBS="$LIBS"
10303 LIBS="-lnsl $LIBS"
10304 cat > conftest.$ac_ext <<EOF
10305 #line 10306 "configure"
10306 #include "confdefs.h"
10307 /* Override any gcc2 internal prototype to avoid an error. */
10308 /* We use char because int might match the return type of a gcc2
10309 builtin and then its argument prototype would still apply. */
10310 char gethostbyname();
10311
10312 int main() {
10313 gethostbyname()
10314 ; return 0; }
10315 EOF
10316 if { (eval echo configure:10317: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10317 rm -rf conftest*
10318 eval "ac_cv_lib_$ac_lib_var=yes"
10319 else
10320 echo "configure: failed program was:" >&5
10321 cat conftest.$ac_ext >&5
10322 rm -rf conftest*
10323 eval "ac_cv_lib_$ac_lib_var=no"
10324 fi
10325 rm -f conftest*
10326 LIBS="$ac_save_LIBS"
10327
10328 fi
10329 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10330 echo "$ac_t""yes" 1>&6
10331 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10332 else
10333 echo "$ac_t""no" 1>&6
10334 fi
10335
10336 fi
10337
10338 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10339 # socket/setsockopt and other routines are undefined under SCO ODT
10340 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10341 # on later versions), says simon@lia.di.epfl.ch: it contains
10342 # gethostby* variants that don't use the nameserver (or something).
10343 # -lsocket must be given before -lnsl if both are needed.
10344 # We assume that if connect needs -lnsl, so does gethostbyname.
10345 echo $ac_n "checking for connect""... $ac_c" 1>&6
10346 echo "configure:10347: checking for connect" >&5
10347 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10348 echo $ac_n "(cached) $ac_c" 1>&6
10349 else
10350 cat > conftest.$ac_ext <<EOF
10351 #line 10352 "configure"
10352 #include "confdefs.h"
10353 /* System header to define __stub macros and hopefully few prototypes,
10354 which can conflict with char connect(); below. */
10355 #include <assert.h>
10356 /* Override any gcc2 internal prototype to avoid an error. */
10357 /* We use char because int might match the return type of a gcc2
10358 builtin and then its argument prototype would still apply. */
10359 char connect();
10360
10361 int main() {
10362
10363 /* The GNU C library defines this for functions which it implements
10364 to always fail with ENOSYS. Some functions are actually named
10365 something starting with __ and the normal name is an alias. */
10366 #if defined (__stub_connect) || defined (__stub___connect)
10367 choke me
10368 #else
10369 connect();
10370 #endif
10371
10372 ; return 0; }
10373 EOF
10374 if { (eval echo configure:10375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10375 rm -rf conftest*
10376 eval "ac_cv_func_connect=yes"
10377 else
10378 echo "configure: failed program was:" >&5
10379 cat conftest.$ac_ext >&5
10380 rm -rf conftest*
10381 eval "ac_cv_func_connect=no"
10382 fi
10383 rm -f conftest*
10384 fi
10385
10386 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10387 echo "$ac_t""yes" 1>&6
10388 :
10389 else
10390 echo "$ac_t""no" 1>&6
10391 fi
10392
10393 if test $ac_cv_func_connect = no; then
10394 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
10395 echo "configure:10396: checking for connect in -lsocket" >&5
10396 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10397 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10398 echo $ac_n "(cached) $ac_c" 1>&6
10399 else
10400 ac_save_LIBS="$LIBS"
10401 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10402 cat > conftest.$ac_ext <<EOF
10403 #line 10404 "configure"
10404 #include "confdefs.h"
10405 /* Override any gcc2 internal prototype to avoid an error. */
10406 /* We use char because int might match the return type of a gcc2
10407 builtin and then its argument prototype would still apply. */
10408 char connect();
10409
10410 int main() {
10411 connect()
10412 ; return 0; }
10413 EOF
10414 if { (eval echo configure:10415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10415 rm -rf conftest*
10416 eval "ac_cv_lib_$ac_lib_var=yes"
10417 else
10418 echo "configure: failed program was:" >&5
10419 cat conftest.$ac_ext >&5
10420 rm -rf conftest*
10421 eval "ac_cv_lib_$ac_lib_var=no"
10422 fi
10423 rm -f conftest*
10424 LIBS="$ac_save_LIBS"
10425
10426 fi
10427 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10428 echo "$ac_t""yes" 1>&6
10429 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10430 else
10431 echo "$ac_t""no" 1>&6
10432 fi
10433
10434 fi
10435
10436 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10437 echo $ac_n "checking for remove""... $ac_c" 1>&6
10438 echo "configure:10439: checking for remove" >&5
10439 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10440 echo $ac_n "(cached) $ac_c" 1>&6
10441 else
10442 cat > conftest.$ac_ext <<EOF
10443 #line 10444 "configure"
10444 #include "confdefs.h"
10445 /* System header to define __stub macros and hopefully few prototypes,
10446 which can conflict with char remove(); below. */
10447 #include <assert.h>
10448 /* Override any gcc2 internal prototype to avoid an error. */
10449 /* We use char because int might match the return type of a gcc2
10450 builtin and then its argument prototype would still apply. */
10451 char remove();
10452
10453 int main() {
10454
10455 /* The GNU C library defines this for functions which it implements
10456 to always fail with ENOSYS. Some functions are actually named
10457 something starting with __ and the normal name is an alias. */
10458 #if defined (__stub_remove) || defined (__stub___remove)
10459 choke me
10460 #else
10461 remove();
10462 #endif
10463
10464 ; return 0; }
10465 EOF
10466 if { (eval echo configure:10467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10467 rm -rf conftest*
10468 eval "ac_cv_func_remove=yes"
10469 else
10470 echo "configure: failed program was:" >&5
10471 cat conftest.$ac_ext >&5
10472 rm -rf conftest*
10473 eval "ac_cv_func_remove=no"
10474 fi
10475 rm -f conftest*
10476 fi
10477
10478 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10479 echo "$ac_t""yes" 1>&6
10480 :
10481 else
10482 echo "$ac_t""no" 1>&6
10483 fi
10484
10485 if test $ac_cv_func_remove = no; then
10486 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
10487 echo "configure:10488: checking for remove in -lposix" >&5
10488 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10489 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10490 echo $ac_n "(cached) $ac_c" 1>&6
10491 else
10492 ac_save_LIBS="$LIBS"
10493 LIBS="-lposix $LIBS"
10494 cat > conftest.$ac_ext <<EOF
10495 #line 10496 "configure"
10496 #include "confdefs.h"
10497 /* Override any gcc2 internal prototype to avoid an error. */
10498 /* We use char because int might match the return type of a gcc2
10499 builtin and then its argument prototype would still apply. */
10500 char remove();
10501
10502 int main() {
10503 remove()
10504 ; return 0; }
10505 EOF
10506 if { (eval echo configure:10507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10507 rm -rf conftest*
10508 eval "ac_cv_lib_$ac_lib_var=yes"
10509 else
10510 echo "configure: failed program was:" >&5
10511 cat conftest.$ac_ext >&5
10512 rm -rf conftest*
10513 eval "ac_cv_lib_$ac_lib_var=no"
10514 fi
10515 rm -f conftest*
10516 LIBS="$ac_save_LIBS"
10517
10518 fi
10519 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10520 echo "$ac_t""yes" 1>&6
10521 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10522 else
10523 echo "$ac_t""no" 1>&6
10524 fi
10525
10526 fi
10527
10528 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10529 echo $ac_n "checking for shmat""... $ac_c" 1>&6
10530 echo "configure:10531: checking for shmat" >&5
10531 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10532 echo $ac_n "(cached) $ac_c" 1>&6
10533 else
10534 cat > conftest.$ac_ext <<EOF
10535 #line 10536 "configure"
10536 #include "confdefs.h"
10537 /* System header to define __stub macros and hopefully few prototypes,
10538 which can conflict with char shmat(); below. */
10539 #include <assert.h>
10540 /* Override any gcc2 internal prototype to avoid an error. */
10541 /* We use char because int might match the return type of a gcc2
10542 builtin and then its argument prototype would still apply. */
10543 char shmat();
10544
10545 int main() {
10546
10547 /* The GNU C library defines this for functions which it implements
10548 to always fail with ENOSYS. Some functions are actually named
10549 something starting with __ and the normal name is an alias. */
10550 #if defined (__stub_shmat) || defined (__stub___shmat)
10551 choke me
10552 #else
10553 shmat();
10554 #endif
10555
10556 ; return 0; }
10557 EOF
10558 if { (eval echo configure:10559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10559 rm -rf conftest*
10560 eval "ac_cv_func_shmat=yes"
10561 else
10562 echo "configure: failed program was:" >&5
10563 cat conftest.$ac_ext >&5
10564 rm -rf conftest*
10565 eval "ac_cv_func_shmat=no"
10566 fi
10567 rm -f conftest*
10568 fi
10569
10570 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10571 echo "$ac_t""yes" 1>&6
10572 :
10573 else
10574 echo "$ac_t""no" 1>&6
10575 fi
10576
10577 if test $ac_cv_func_shmat = no; then
10578 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
10579 echo "configure:10580: checking for shmat in -lipc" >&5
10580 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10582 echo $ac_n "(cached) $ac_c" 1>&6
10583 else
10584 ac_save_LIBS="$LIBS"
10585 LIBS="-lipc $LIBS"
10586 cat > conftest.$ac_ext <<EOF
10587 #line 10588 "configure"
10588 #include "confdefs.h"
10589 /* Override any gcc2 internal prototype to avoid an error. */
10590 /* We use char because int might match the return type of a gcc2
10591 builtin and then its argument prototype would still apply. */
10592 char shmat();
10593
10594 int main() {
10595 shmat()
10596 ; return 0; }
10597 EOF
10598 if { (eval echo configure:10599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10599 rm -rf conftest*
10600 eval "ac_cv_lib_$ac_lib_var=yes"
10601 else
10602 echo "configure: failed program was:" >&5
10603 cat conftest.$ac_ext >&5
10604 rm -rf conftest*
10605 eval "ac_cv_lib_$ac_lib_var=no"
10606 fi
10607 rm -f conftest*
10608 LIBS="$ac_save_LIBS"
10609
10610 fi
10611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10612 echo "$ac_t""yes" 1>&6
10613 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10614 else
10615 echo "$ac_t""no" 1>&6
10616 fi
10617
10618 fi
10619 fi
10620
10621 # Check for libraries that X11R6 Xt/Xaw programs need.
10622 ac_save_LDFLAGS="$LDFLAGS"
10623 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10624 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10625 # check for ICE first), but we must link in the order -lSM -lICE or
10626 # we get undefined symbols. So assume we have SM if we have ICE.
10627 # These have to be linked with before -lX11, unlike the other
10628 # libraries we check for below, so use a different variable.
10629 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10630 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
10631 echo "configure:10632: checking for IceConnectionNumber in -lICE" >&5
10632 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10633 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10634 echo $ac_n "(cached) $ac_c" 1>&6
10635 else
10636 ac_save_LIBS="$LIBS"
10637 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10638 cat > conftest.$ac_ext <<EOF
10639 #line 10640 "configure"
10640 #include "confdefs.h"
10641 /* Override any gcc2 internal prototype to avoid an error. */
10642 /* We use char because int might match the return type of a gcc2
10643 builtin and then its argument prototype would still apply. */
10644 char IceConnectionNumber();
10645
10646 int main() {
10647 IceConnectionNumber()
10648 ; return 0; }
10649 EOF
10650 if { (eval echo configure:10651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10651 rm -rf conftest*
10652 eval "ac_cv_lib_$ac_lib_var=yes"
10653 else
10654 echo "configure: failed program was:" >&5
10655 cat conftest.$ac_ext >&5
10656 rm -rf conftest*
10657 eval "ac_cv_lib_$ac_lib_var=no"
10658 fi
10659 rm -f conftest*
10660 LIBS="$ac_save_LIBS"
10661
10662 fi
10663 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10664 echo "$ac_t""yes" 1>&6
10665 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10666 else
10667 echo "$ac_t""no" 1>&6
10668 fi
10669
10670 LDFLAGS="$ac_save_LDFLAGS"
10671
10672 fi
10673
10674 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10675 LDFLAGS="$LDFLAGS $X_LIBS"
10676
10677 if test "$wxUSE_MOTIF" = 1; then
10678 if test "$no_x" = "yes"; then
10679 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10680 fi
10681
10682 GUI_TK_LIBRARY="$X_LIBS"
10683 TOOLKIT_INCLUDE="$X_CFLAGS"
10684 AFMINSTALL=afminstall
10685 COMPILED_X_PROGRAM=0
10686
10687 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
10688 echo "configure:10689: checking for Motif/Lesstif headers" >&5
10689
10690 ac_find_includes=
10691 for ac_dir in $SEARCH_INCLUDE;
10692 do
10693 if test -f "$ac_dir/Xm/Xm.h"; then
10694 ac_find_includes=$ac_dir
10695 break
10696 fi
10697 done
10698
10699 if test "$ac_find_includes" != "" ; then
10700 echo "$ac_t""found $ac_find_includes" 1>&6
10701 else
10702 cat > conftest.$ac_ext <<EOF
10703 #line 10704 "configure"
10704 #include "confdefs.h"
10705
10706 #include <Xm/Xm.h>
10707
10708 int main() {
10709
10710 int version;
10711 version = xmUseVersion;
10712
10713 ; return 0; }
10714 EOF
10715 if { (eval echo configure:10716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10716 rm -rf conftest*
10717
10718 echo "$ac_t""found in default search path" 1>&6
10719 COMPILED_X_PROGRAM=1
10720
10721 else
10722 echo "configure: failed program was:" >&5
10723 cat conftest.$ac_ext >&5
10724 rm -rf conftest*
10725
10726 echo "$ac_t""no" 1>&6
10727 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10728
10729
10730 fi
10731 rm -f conftest*
10732 fi
10733
10734 if test "$COMPILED_X_PROGRAM" = 0; then
10735 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10736 echo "configure:10737: checking for Motif/Lesstif library" >&5
10737
10738 ac_find_libraries=
10739 for ac_dir in $SEARCH_LIB;
10740 do
10741 for ac_extension in a so sl dylib; do
10742 if test -f "$ac_dir/libXm.$ac_extension"; then
10743 ac_find_libraries=$ac_dir
10744 break 2
10745 fi
10746 done
10747 done
10748
10749 if test "$ac_find_libraries" != "" ; then
10750
10751 ac_path_to_include=$ac_find_includes
10752 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10753 result=$?
10754 if test $result = 0; then
10755 ac_path_to_include=""
10756 else
10757 ac_path_to_include="-I$ac_find_includes"
10758 fi
10759
10760
10761 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10762 result=$?
10763 if test $result = 0; then
10764 ac_path_to_link=""
10765 else
10766 ac_path_to_link="-L$ac_find_libraries"
10767 fi
10768
10769
10770 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10771 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10772 echo "$ac_t""found at $ac_find_libraries" 1>&6
10773 else
10774 cat > conftest.$ac_ext <<EOF
10775 #line 10776 "configure"
10776 #include "confdefs.h"
10777
10778 #include <Xm/Xm.h>
10779
10780 int main() {
10781
10782 int version;
10783 version = xmUseVersion;
10784
10785 ; return 0; }
10786 EOF
10787 if { (eval echo configure:10788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10788 rm -rf conftest*
10789
10790 echo "$ac_t""found in default search path" 1>&6
10791 COMPILED_X_PROGRAM=1
10792
10793 else
10794 echo "configure: failed program was:" >&5
10795 cat conftest.$ac_ext >&5
10796 rm -rf conftest*
10797
10798 echo "$ac_t""no" 1>&6
10799 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10800
10801
10802 fi
10803 rm -f conftest*
10804 fi
10805 fi
10806
10807 xpm_link=""
10808 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10809 echo "configure:10810: checking for Xpm library" >&5
10810
10811 ac_find_libraries=
10812 for ac_dir in $SEARCH_LIB;
10813 do
10814 for ac_extension in a so sl dylib; do
10815 if test -f "$ac_dir/libXpm.$ac_extension"; then
10816 ac_find_libraries=$ac_dir
10817 break 2
10818 fi
10819 done
10820 done
10821
10822 if test "$ac_find_libraries" != "" ; then
10823
10824 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10825 result=$?
10826 if test $result = 0; then
10827 ac_path_to_link=""
10828 else
10829 ac_path_to_link="-L$ac_find_libraries"
10830 fi
10831
10832 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10833 xpm_link="-lXpm "
10834 cat >> confdefs.h <<\EOF
10835 #define wxHAVE_LIB_XPM 1
10836 EOF
10837
10838 echo "$ac_t""found at $ac_find_libraries" 1>&6
10839 else
10840 cat > conftest.$ac_ext <<EOF
10841 #line 10842 "configure"
10842 #include "confdefs.h"
10843
10844 #include <X11/xpm.h>
10845
10846 int main() {
10847
10848 int version;
10849 version = XpmLibraryVersion();
10850
10851 ; return 0; }
10852 EOF
10853 if { (eval echo configure:10854: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10854 rm -rf conftest*
10855
10856 xpm_link="-lXpm "
10857 cat >> confdefs.h <<\EOF
10858 #define wxHAVE_LIB_XPM 1
10859 EOF
10860
10861 echo "$ac_t""found in default search path" 1>&6
10862 COMPILED_X_PROGRAM=0
10863
10864 else
10865 echo "configure: failed program was:" >&5
10866 cat conftest.$ac_ext >&5
10867 rm -rf conftest*
10868
10869 echo "$ac_t""no" 1>&6
10870 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10871
10872
10873 fi
10874 rm -f conftest*
10875 fi
10876
10877 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11"
10878 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10879 TOOLKIT=MOTIF
10880 GUIDIST=MOTIF_DIST
10881 fi
10882
10883 if test "$wxUSE_MAC" = 1; then
10884 TOOLKIT=MAC
10885 GUIDIST=MACX_DIST
10886 fi
10887
10888 if test "$wxUSE_PM" = 1; then
10889 TOOLKIT=PM
10890 GUIDIST=GTK_DIST
10891 fi
10892
10893 if test "$TOOLKIT" = "PM" ; then
10894 TOOLKIT_DIR="os2"
10895 else
10896 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10897 fi
10898
10899 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
10900
10901 if test "$wxUSE_UNIVERSAL" = "yes"; then
10902 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10903 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10904 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
10905 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
10906 WIDGET_SET=univ
10907 else
10908 ALL_OBJECTS="\$(GUIOBJS)"
10909 fi
10910
10911 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10912
10913 if test "$TOOLKIT" != "MSW"; then
10914 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10915 fi
10916
10917 if test "$wxUSE_HTML" = "yes"; then
10918 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10919 fi
10920
10921 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
10922 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10923 fi
10924 if test "$wxUSE_LIBJPEG" = "yes" ; then
10925 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10926 fi
10927 if test "$wxUSE_LIBTIFF" = "yes" ; then
10928 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10929 fi
10930 if test "$wxUSE_LIBPNG" = "yes" ; then
10931 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10932 fi
10933 if test "$wxUSE_FREETYPE" = "yes" ; then
10934 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10935 fi
10936
10937 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10938 RPM_SPEC="wx\$(TOOLKIT).spec"
10939
10940 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10941 DISTDIR="wx\$(TOOLKIT)"
10942 else
10943 USE_GUI=0
10944
10945 TOOLKIT_DIR="base"
10946
10947 if test "$USE_WIN32" = 1 ; then
10948 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
10949 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
10950
10951 TOOLKIT="MSW"
10952 else
10953 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
10954 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
10955 fi
10956
10957 PORT_FILES="\${top_srcdir}/src/files.lst"
10958 RPM_FILES="src/rpmfiles.lst"
10959 RPM_SPEC="wxBase.spec"
10960
10961 GUIDIST="BASE_DIST"
10962 DISTDIR="wxBase"
10963 fi
10964
10965 if test "x$REGEX_INCLUDE" != "x" ; then
10966 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10967 fi
10968 if test "$wxUSE_ZLIB" = "yes" ; then
10969 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10970 fi
10971
10972 if test "$wxUSE_OPENGL" = "yes"; then
10973 if test "$wxUSE_MAC" = 1; then
10974 cat >> confdefs.h <<\EOF
10975 #define wxUSE_OPENGL 1
10976 EOF
10977
10978 cat >> confdefs.h <<\EOF
10979 #define wxUSE_GLCANVAS 1
10980 EOF
10981
10982 OPENGL_LIBS="-framework OpenGL -framework AGL"
10983 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
10984 else
10985 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
10986 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
10987 echo "configure:10988: checking for GL/gl.h" >&5
10988 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10989 echo $ac_n "(cached) $ac_c" 1>&6
10990 else
10991 cat > conftest.$ac_ext <<EOF
10992 #line 10993 "configure"
10993 #include "confdefs.h"
10994 #include <GL/gl.h>
10995 EOF
10996 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10997 { (eval echo configure:10998: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10998 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10999 if test -z "$ac_err"; then
11000 rm -rf conftest*
11001 eval "ac_cv_header_$ac_safe=yes"
11002 else
11003 echo "$ac_err" >&5
11004 echo "configure: failed program was:" >&5
11005 cat conftest.$ac_ext >&5
11006 rm -rf conftest*
11007 eval "ac_cv_header_$ac_safe=no"
11008 fi
11009 rm -f conftest*
11010 fi
11011 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11012 echo "$ac_t""yes" 1>&6
11013
11014 cat >> confdefs.h <<\EOF
11015 #define wxUSE_OPENGL 1
11016 EOF
11017
11018 cat >> confdefs.h <<\EOF
11019 #define wxUSE_GLCANVAS 1
11020 EOF
11021
11022 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11023 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
11024 echo "configure:11025: checking for glFlush in -lGL" >&5
11025 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
11026 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11027 echo $ac_n "(cached) $ac_c" 1>&6
11028 else
11029 ac_save_LIBS="$LIBS"
11030 LIBS="-lGL $LIBS"
11031 cat > conftest.$ac_ext <<EOF
11032 #line 11033 "configure"
11033 #include "confdefs.h"
11034 /* Override any gcc2 internal prototype to avoid an error. */
11035 /* We use char because int might match the return type of a gcc2
11036 builtin and then its argument prototype would still apply. */
11037 char glFlush();
11038
11039 int main() {
11040 glFlush()
11041 ; return 0; }
11042 EOF
11043 if { (eval echo configure:11044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11044 rm -rf conftest*
11045 eval "ac_cv_lib_$ac_lib_var=yes"
11046 else
11047 echo "configure: failed program was:" >&5
11048 cat conftest.$ac_ext >&5
11049 rm -rf conftest*
11050 eval "ac_cv_lib_$ac_lib_var=no"
11051 fi
11052 rm -f conftest*
11053 LIBS="$ac_save_LIBS"
11054
11055 fi
11056 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11057 echo "$ac_t""yes" 1>&6
11058
11059 OPENGL_LIBS="-lGL -lGLU"
11060
11061 else
11062 echo "$ac_t""no" 1>&6
11063
11064 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
11065 echo "configure:11066: checking for glFlush in -lMesaGL" >&5
11066 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
11067 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11068 echo $ac_n "(cached) $ac_c" 1>&6
11069 else
11070 ac_save_LIBS="$LIBS"
11071 LIBS="-lMesaGL $LIBS"
11072 cat > conftest.$ac_ext <<EOF
11073 #line 11074 "configure"
11074 #include "confdefs.h"
11075 /* Override any gcc2 internal prototype to avoid an error. */
11076 /* We use char because int might match the return type of a gcc2
11077 builtin and then its argument prototype would still apply. */
11078 char glFlush();
11079
11080 int main() {
11081 glFlush()
11082 ; return 0; }
11083 EOF
11084 if { (eval echo configure:11085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11085 rm -rf conftest*
11086 eval "ac_cv_lib_$ac_lib_var=yes"
11087 else
11088 echo "configure: failed program was:" >&5
11089 cat conftest.$ac_ext >&5
11090 rm -rf conftest*
11091 eval "ac_cv_lib_$ac_lib_var=no"
11092 fi
11093 rm -f conftest*
11094 LIBS="$ac_save_LIBS"
11095
11096 fi
11097 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11098 echo "$ac_t""yes" 1>&6
11099
11100 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11101
11102 else
11103 echo "$ac_t""no" 1>&6
11104 fi
11105
11106
11107 fi
11108
11109
11110 else
11111 echo "$ac_t""no" 1>&6
11112 wxUSE_OPENGL=0
11113 fi
11114
11115 fi
11116 fi
11117
11118 if test -z "$TOOLKIT_VPATH" ; then
11119 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11120 fi
11121
11122 if test -n "$TOOLKIT" ; then
11123 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11124 fi
11125
11126 if test "$wxUSE_CYGWIN" = 1 ; then
11127 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
11128 fi
11129
11130 lib_debug_suffix=
11131 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11132 lib_debug_suffix=d
11133 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}d"
11134 fi
11135
11136 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}-${WX_RELEASE}"
11137 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_debug_suffix}_gl-${WX_RELEASE}"
11138
11139 if test "$cross_compiling" = "yes"; then
11140 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11141 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11142 fi
11143
11144 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11145 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11146
11147 WXCONFIG_LIBS="-l${WX_LIBRARY}"
11148
11149 if test "$wxUSE_OPENGL" = "yes"; then
11150 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS"
11151 fi
11152
11153 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11154 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11155
11156 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11157 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11158
11159 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11160 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11161 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11162 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11163
11164 WX_RESOURCES_DARWIN="lib${WX_LIBRARY}.rsrc"
11165
11166
11167
11168 if test "$wxUSE_SHARED" = "yes"; then
11169
11170 if test "$wxUSE_OPENGL" = "yes"; then
11171 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11172 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
11173 else
11174 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11175 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
11176 fi
11177
11178 if test "$GCC" = "yes"; then
11179 PIC_FLAG="-fPIC"
11180 fi
11181
11182 SHARED_LD="${CXX} -shared -o"
11183
11184 case "${host}" in
11185 *-hp-hpux* )
11186 if test "$GCC" != "yes"; then
11187 LDFLAGS="-L/usr/lib"
11188
11189 SHARED_LD="${CXX} -b -o"
11190 PIC_FLAG="+Z"
11191 fi
11192
11193 ;;
11194
11195 *-*-linux* )
11196 if test "$GCC" != "yes"; then
11197 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
11198 echo "configure:11199: checking for Intel compiler" >&5
11199 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11200 echo $ac_n "(cached) $ac_c" 1>&6
11201 else
11202
11203 cat > conftest.$ac_ext <<EOF
11204 #line 11205 "configure"
11205 #include "confdefs.h"
11206
11207 int main() {
11208
11209 #ifndef __INTEL_COMPILER
11210 #error Not icc
11211 #endif
11212
11213 ; return 0; }
11214 EOF
11215 if { (eval echo configure:11216: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11216 rm -rf conftest*
11217 wx_cv_prog_icc=yes
11218 else
11219 echo "configure: failed program was:" >&5
11220 cat conftest.$ac_ext >&5
11221 rm -rf conftest*
11222 wx_cv_prog_icc=no
11223
11224 fi
11225 rm -f conftest*
11226
11227 fi
11228
11229 echo "$ac_t""$wx_cv_prog_icc" 1>&6
11230 if test "$wx_cv_prog_icc" = "yes"; then
11231 PIC_FLAG="-KPIC"
11232 fi
11233 fi
11234
11235 if test "$wxUSE_SONAME" = "yes" ; then
11236 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11237 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
11238 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
11239 fi
11240 ;;
11241
11242 *-*-solaris2* )
11243 if test "$GCC" = yes ; then
11244 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
11245 else
11246 SHARED_LD="${CXX} -G -o"
11247 PIC_FLAG="-KPIC"
11248 fi
11249 ;;
11250
11251 *-*-darwin* )
11252 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__UNIX__ -D__DARWIN__ -D__POWERPC__"
11253 CPPFLAGS="${CPPFLAGS} -fno-common"
11254 SHARED_LD="${CXX} -dynamiclib -o"
11255 PIC_FLAG="-dynamic -fPIC"
11256
11257 if test "$wxUSE_MAC" = 1 ; then
11258 WX_ALL="${WX_ALL} lib${WX_LIBRARY}.r"
11259 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON"
11260 CPPFLAGS="${CPPFLAGS} -fpascal-strings"
11261 CXXFLAGS="${CXXFLAGS} -cpp-precomp"
11262 # Extract the first word of "Rez", so it can be a program name with args.
11263 set dummy Rez; ac_word=$2
11264 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11265 echo "configure:11266: checking for $ac_word" >&5
11266 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
11267 echo $ac_n "(cached) $ac_c" 1>&6
11268 else
11269 if test -n "$RESCOMP"; then
11270 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
11271 else
11272 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11273 ac_dummy="$PATH"
11274 for ac_dir in $ac_dummy; do
11275 test -z "$ac_dir" && ac_dir=.
11276 if test -f $ac_dir/$ac_word; then
11277 ac_cv_prog_RESCOMP="Rez"
11278 break
11279 fi
11280 done
11281 IFS="$ac_save_ifs"
11282 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
11283 fi
11284 fi
11285 RESCOMP="$ac_cv_prog_RESCOMP"
11286 if test -n "$RESCOMP"; then
11287 echo "$ac_t""$RESCOMP" 1>&6
11288 else
11289 echo "$ac_t""no" 1>&6
11290 fi
11291
11292 # Extract the first word of "Derez", so it can be a program name with args.
11293 set dummy Derez; ac_word=$2
11294 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11295 echo "configure:11296: checking for $ac_word" >&5
11296 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
11297 echo $ac_n "(cached) $ac_c" 1>&6
11298 else
11299 if test -n "$DEREZ"; then
11300 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
11301 else
11302 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11303 ac_dummy="$PATH"
11304 for ac_dir in $ac_dummy; do
11305 test -z "$ac_dir" && ac_dir=.
11306 if test -f $ac_dir/$ac_word; then
11307 ac_cv_prog_DEREZ="Derez"
11308 break
11309 fi
11310 done
11311 IFS="$ac_save_ifs"
11312 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
11313 fi
11314 fi
11315 DEREZ="$ac_cv_prog_DEREZ"
11316 if test -n "$DEREZ"; then
11317 echo "$ac_t""$DEREZ" 1>&6
11318 else
11319 echo "$ac_t""no" 1>&6
11320 fi
11321
11322 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
11323 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
11324 fi
11325 ;;
11326
11327 *-*-aix* )
11328 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11329 ;;
11330
11331 *-*-cygwin* )
11332 echo "configure: warning: Shared libs unsupported for $host_alias -- forcing static build." 1>&2
11333 wxUSE_SHARED=no
11334 ;;
11335
11336 *-*-mingw32* )
11337 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_NAME_STATIC} -o"
11338 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1"
11339 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
11340 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11341 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11342 if test "$wxUSE_OPENGL" = "yes"; then
11343 WX_ALL_INSTALLED="preinstall_gl"
11344 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11345 else
11346 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11347 fi
11348 ;;
11349
11350 *-pc-os2_emx )
11351 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11352 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11353 ;;
11354
11355 *-*-beos* )
11356 SHARED_LD="${LD} -shared -o"
11357 ;;
11358
11359 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
11360 *-*-sunos4* | \
11361 *-*-irix5* | *-*-irix6* | \
11362 *-*-osf* | \
11363 *-*-dgux5* | \
11364 *-*-sysv5* )
11365 ;;
11366
11367 *)
11368 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
11369 esac
11370
11371 if test "x$WX_TARGET_LIBRARY" = "x"; then
11372 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11373 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11374 fi
11375
11376 WX_TARGET_LIBRARY_TYPE="so"
11377 fi
11378
11379 if test "$wxUSE_SHARED" = "no"; then
11380
11381 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
11382 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11383 fi
11384
11385 if test "$wxUSE_OPENGL" = "yes"; then
11386 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
11387 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
11388 else
11389 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11390 fi
11391
11392 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11393 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11394
11395 WX_TARGET_LIBRARY_TYPE="a"
11396 fi
11397
11398
11399 for ac_hdr in strings.h
11400 do
11401 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11402 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11403 echo "configure:11404: checking for $ac_hdr" >&5
11404 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11405 echo $ac_n "(cached) $ac_c" 1>&6
11406 else
11407 cat > conftest.$ac_ext <<EOF
11408 #line 11409 "configure"
11409 #include "confdefs.h"
11410 #include <$ac_hdr>
11411 EOF
11412 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11413 { (eval echo configure:11414: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11414 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11415 if test -z "$ac_err"; then
11416 rm -rf conftest*
11417 eval "ac_cv_header_$ac_safe=yes"
11418 else
11419 echo "$ac_err" >&5
11420 echo "configure: failed program was:" >&5
11421 cat conftest.$ac_ext >&5
11422 rm -rf conftest*
11423 eval "ac_cv_header_$ac_safe=no"
11424 fi
11425 rm -f conftest*
11426 fi
11427 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11428 echo "$ac_t""yes" 1>&6
11429 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11430 cat >> confdefs.h <<EOF
11431 #define $ac_tr_hdr 1
11432 EOF
11433
11434 else
11435 echo "$ac_t""no" 1>&6
11436 fi
11437 done
11438
11439 for ac_hdr in stdlib.h
11440 do
11441 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11442 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11443 echo "configure:11444: checking for $ac_hdr" >&5
11444 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11445 echo $ac_n "(cached) $ac_c" 1>&6
11446 else
11447 cat > conftest.$ac_ext <<EOF
11448 #line 11449 "configure"
11449 #include "confdefs.h"
11450 #include <$ac_hdr>
11451 EOF
11452 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11453 { (eval echo configure:11454: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11454 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11455 if test -z "$ac_err"; then
11456 rm -rf conftest*
11457 eval "ac_cv_header_$ac_safe=yes"
11458 else
11459 echo "$ac_err" >&5
11460 echo "configure: failed program was:" >&5
11461 cat conftest.$ac_ext >&5
11462 rm -rf conftest*
11463 eval "ac_cv_header_$ac_safe=no"
11464 fi
11465 rm -f conftest*
11466 fi
11467 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11468 echo "$ac_t""yes" 1>&6
11469 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11470 cat >> confdefs.h <<EOF
11471 #define $ac_tr_hdr 1
11472 EOF
11473
11474 else
11475 echo "$ac_t""no" 1>&6
11476 fi
11477 done
11478
11479 for ac_hdr in unistd.h
11480 do
11481 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11482 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11483 echo "configure:11484: checking for $ac_hdr" >&5
11484 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11485 echo $ac_n "(cached) $ac_c" 1>&6
11486 else
11487 cat > conftest.$ac_ext <<EOF
11488 #line 11489 "configure"
11489 #include "confdefs.h"
11490 #include <$ac_hdr>
11491 EOF
11492 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11493 { (eval echo configure:11494: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11494 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11495 if test -z "$ac_err"; then
11496 rm -rf conftest*
11497 eval "ac_cv_header_$ac_safe=yes"
11498 else
11499 echo "$ac_err" >&5
11500 echo "configure: failed program was:" >&5
11501 cat conftest.$ac_ext >&5
11502 rm -rf conftest*
11503 eval "ac_cv_header_$ac_safe=no"
11504 fi
11505 rm -f conftest*
11506 fi
11507 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11508 echo "$ac_t""yes" 1>&6
11509 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11510 cat >> confdefs.h <<EOF
11511 #define $ac_tr_hdr 1
11512 EOF
11513
11514 else
11515 echo "$ac_t""no" 1>&6
11516 fi
11517 done
11518
11519 for ac_hdr in wchar.h
11520 do
11521 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11522 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11523 echo "configure:11524: checking for $ac_hdr" >&5
11524 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11525 echo $ac_n "(cached) $ac_c" 1>&6
11526 else
11527 cat > conftest.$ac_ext <<EOF
11528 #line 11529 "configure"
11529 #include "confdefs.h"
11530 #include <$ac_hdr>
11531 EOF
11532 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11533 { (eval echo configure:11534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11534 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11535 if test -z "$ac_err"; then
11536 rm -rf conftest*
11537 eval "ac_cv_header_$ac_safe=yes"
11538 else
11539 echo "$ac_err" >&5
11540 echo "configure: failed program was:" >&5
11541 cat conftest.$ac_ext >&5
11542 rm -rf conftest*
11543 eval "ac_cv_header_$ac_safe=no"
11544 fi
11545 rm -f conftest*
11546 fi
11547 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11548 echo "$ac_t""yes" 1>&6
11549 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11550 cat >> confdefs.h <<EOF
11551 #define $ac_tr_hdr 1
11552 EOF
11553
11554 else
11555 echo "$ac_t""no" 1>&6
11556 fi
11557 done
11558
11559 for ac_hdr in wcstr.h
11560 do
11561 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11562 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11563 echo "configure:11564: checking for $ac_hdr" >&5
11564 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11565 echo $ac_n "(cached) $ac_c" 1>&6
11566 else
11567 cat > conftest.$ac_ext <<EOF
11568 #line 11569 "configure"
11569 #include "confdefs.h"
11570 #include <$ac_hdr>
11571 EOF
11572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11573 { (eval echo configure:11574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11575 if test -z "$ac_err"; then
11576 rm -rf conftest*
11577 eval "ac_cv_header_$ac_safe=yes"
11578 else
11579 echo "$ac_err" >&5
11580 echo "configure: failed program was:" >&5
11581 cat conftest.$ac_ext >&5
11582 rm -rf conftest*
11583 eval "ac_cv_header_$ac_safe=no"
11584 fi
11585 rm -f conftest*
11586 fi
11587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11588 echo "$ac_t""yes" 1>&6
11589 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11590 cat >> confdefs.h <<EOF
11591 #define $ac_tr_hdr 1
11592 EOF
11593
11594 else
11595 echo "$ac_t""no" 1>&6
11596 fi
11597 done
11598
11599 for ac_hdr in fnmatch.h
11600 do
11601 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11603 echo "configure:11604: checking for $ac_hdr" >&5
11604 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11605 echo $ac_n "(cached) $ac_c" 1>&6
11606 else
11607 cat > conftest.$ac_ext <<EOF
11608 #line 11609 "configure"
11609 #include "confdefs.h"
11610 #include <$ac_hdr>
11611 EOF
11612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11613 { (eval echo configure:11614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11615 if test -z "$ac_err"; then
11616 rm -rf conftest*
11617 eval "ac_cv_header_$ac_safe=yes"
11618 else
11619 echo "$ac_err" >&5
11620 echo "configure: failed program was:" >&5
11621 cat conftest.$ac_ext >&5
11622 rm -rf conftest*
11623 eval "ac_cv_header_$ac_safe=no"
11624 fi
11625 rm -f conftest*
11626 fi
11627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11628 echo "$ac_t""yes" 1>&6
11629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11630 cat >> confdefs.h <<EOF
11631 #define $ac_tr_hdr 1
11632 EOF
11633
11634 else
11635 echo "$ac_t""no" 1>&6
11636 fi
11637 done
11638
11639 for ac_hdr in iconv.h
11640 do
11641 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11642 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11643 echo "configure:11644: checking for $ac_hdr" >&5
11644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11645 echo $ac_n "(cached) $ac_c" 1>&6
11646 else
11647 cat > conftest.$ac_ext <<EOF
11648 #line 11649 "configure"
11649 #include "confdefs.h"
11650 #include <$ac_hdr>
11651 EOF
11652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11653 { (eval echo configure:11654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11655 if test -z "$ac_err"; then
11656 rm -rf conftest*
11657 eval "ac_cv_header_$ac_safe=yes"
11658 else
11659 echo "$ac_err" >&5
11660 echo "configure: failed program was:" >&5
11661 cat conftest.$ac_ext >&5
11662 rm -rf conftest*
11663 eval "ac_cv_header_$ac_safe=no"
11664 fi
11665 rm -f conftest*
11666 fi
11667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11668 echo "$ac_t""yes" 1>&6
11669 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11670 cat >> confdefs.h <<EOF
11671 #define $ac_tr_hdr 1
11672 EOF
11673
11674 else
11675 echo "$ac_t""no" 1>&6
11676 fi
11677 done
11678
11679 for ac_hdr in langinfo.h
11680 do
11681 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11682 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11683 echo "configure:11684: checking for $ac_hdr" >&5
11684 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11685 echo $ac_n "(cached) $ac_c" 1>&6
11686 else
11687 cat > conftest.$ac_ext <<EOF
11688 #line 11689 "configure"
11689 #include "confdefs.h"
11690 #include <$ac_hdr>
11691 EOF
11692 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11693 { (eval echo configure:11694: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11694 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11695 if test -z "$ac_err"; then
11696 rm -rf conftest*
11697 eval "ac_cv_header_$ac_safe=yes"
11698 else
11699 echo "$ac_err" >&5
11700 echo "configure: failed program was:" >&5
11701 cat conftest.$ac_ext >&5
11702 rm -rf conftest*
11703 eval "ac_cv_header_$ac_safe=no"
11704 fi
11705 rm -f conftest*
11706 fi
11707 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11708 echo "$ac_t""yes" 1>&6
11709 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11710 cat >> confdefs.h <<EOF
11711 #define $ac_tr_hdr 1
11712 EOF
11713
11714 else
11715 echo "$ac_t""no" 1>&6
11716 fi
11717 done
11718
11719
11720 if test "$wxUSE_GUI" = "yes"; then
11721 if test "$wxUSE_UNIX" = "yes"; then
11722 for ac_hdr in X11/XKBlib.h
11723 do
11724 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11725 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11726 echo "configure:11727: checking for $ac_hdr" >&5
11727 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11728 echo $ac_n "(cached) $ac_c" 1>&6
11729 else
11730 cat > conftest.$ac_ext <<EOF
11731 #line 11732 "configure"
11732 #include "confdefs.h"
11733 #include <$ac_hdr>
11734 EOF
11735 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11736 { (eval echo configure:11737: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11737 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11738 if test -z "$ac_err"; then
11739 rm -rf conftest*
11740 eval "ac_cv_header_$ac_safe=yes"
11741 else
11742 echo "$ac_err" >&5
11743 echo "configure: failed program was:" >&5
11744 cat conftest.$ac_ext >&5
11745 rm -rf conftest*
11746 eval "ac_cv_header_$ac_safe=no"
11747 fi
11748 rm -f conftest*
11749 fi
11750 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11751 echo "$ac_t""yes" 1>&6
11752 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11753 cat >> confdefs.h <<EOF
11754 #define $ac_tr_hdr 1
11755 EOF
11756
11757 else
11758 echo "$ac_t""no" 1>&6
11759 fi
11760 done
11761
11762 fi
11763 fi
11764
11765
11766 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11767 echo "configure:11768: checking for ANSI C header files" >&5
11768 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11769 echo $ac_n "(cached) $ac_c" 1>&6
11770 else
11771 cat > conftest.$ac_ext <<EOF
11772 #line 11773 "configure"
11773 #include "confdefs.h"
11774 #include <stdlib.h>
11775 #include <stdarg.h>
11776 #include <string.h>
11777 #include <float.h>
11778 EOF
11779 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11780 { (eval echo configure:11781: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11781 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11782 if test -z "$ac_err"; then
11783 rm -rf conftest*
11784 ac_cv_header_stdc=yes
11785 else
11786 echo "$ac_err" >&5
11787 echo "configure: failed program was:" >&5
11788 cat conftest.$ac_ext >&5
11789 rm -rf conftest*
11790 ac_cv_header_stdc=no
11791 fi
11792 rm -f conftest*
11793
11794 if test $ac_cv_header_stdc = yes; then
11795 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11796 cat > conftest.$ac_ext <<EOF
11797 #line 11798 "configure"
11798 #include "confdefs.h"
11799 #include <string.h>
11800 EOF
11801 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11802 egrep "memchr" >/dev/null 2>&1; then
11803 :
11804 else
11805 rm -rf conftest*
11806 ac_cv_header_stdc=no
11807 fi
11808 rm -f conftest*
11809
11810 fi
11811
11812 if test $ac_cv_header_stdc = yes; then
11813 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11814 cat > conftest.$ac_ext <<EOF
11815 #line 11816 "configure"
11816 #include "confdefs.h"
11817 #include <stdlib.h>
11818 EOF
11819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11820 egrep "free" >/dev/null 2>&1; then
11821 :
11822 else
11823 rm -rf conftest*
11824 ac_cv_header_stdc=no
11825 fi
11826 rm -f conftest*
11827
11828 fi
11829
11830 if test $ac_cv_header_stdc = yes; then
11831 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11832 if test "$cross_compiling" = yes; then
11833 :
11834 else
11835 cat > conftest.$ac_ext <<EOF
11836 #line 11837 "configure"
11837 #include "confdefs.h"
11838 #include <ctype.h>
11839 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11840 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11841 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11842 int main () { int i; for (i = 0; i < 256; i++)
11843 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11844 exit (0); }
11845
11846 EOF
11847 if { (eval echo configure:11848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11848 then
11849 :
11850 else
11851 echo "configure: failed program was:" >&5
11852 cat conftest.$ac_ext >&5
11853 rm -fr conftest*
11854 ac_cv_header_stdc=no
11855 fi
11856 rm -fr conftest*
11857 fi
11858
11859 fi
11860 fi
11861
11862 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11863 if test $ac_cv_header_stdc = yes; then
11864 cat >> confdefs.h <<\EOF
11865 #define STDC_HEADERS 1
11866 EOF
11867
11868 fi
11869
11870 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11871 echo "configure:11872: checking for mode_t" >&5
11872 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11873 echo $ac_n "(cached) $ac_c" 1>&6
11874 else
11875 cat > conftest.$ac_ext <<EOF
11876 #line 11877 "configure"
11877 #include "confdefs.h"
11878 #include <sys/types.h>
11879 #if STDC_HEADERS
11880 #include <stdlib.h>
11881 #include <stddef.h>
11882 #endif
11883 EOF
11884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11885 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11886 rm -rf conftest*
11887 ac_cv_type_mode_t=yes
11888 else
11889 rm -rf conftest*
11890 ac_cv_type_mode_t=no
11891 fi
11892 rm -f conftest*
11893
11894 fi
11895 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11896 if test $ac_cv_type_mode_t = no; then
11897 cat >> confdefs.h <<\EOF
11898 #define mode_t int
11899 EOF
11900
11901 fi
11902
11903 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11904 echo "configure:11905: checking for off_t" >&5
11905 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11906 echo $ac_n "(cached) $ac_c" 1>&6
11907 else
11908 cat > conftest.$ac_ext <<EOF
11909 #line 11910 "configure"
11910 #include "confdefs.h"
11911 #include <sys/types.h>
11912 #if STDC_HEADERS
11913 #include <stdlib.h>
11914 #include <stddef.h>
11915 #endif
11916 EOF
11917 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11918 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11919 rm -rf conftest*
11920 ac_cv_type_off_t=yes
11921 else
11922 rm -rf conftest*
11923 ac_cv_type_off_t=no
11924 fi
11925 rm -f conftest*
11926
11927 fi
11928 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11929 if test $ac_cv_type_off_t = no; then
11930 cat >> confdefs.h <<\EOF
11931 #define off_t long
11932 EOF
11933
11934 fi
11935
11936 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11937 echo "configure:11938: checking for pid_t" >&5
11938 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11939 echo $ac_n "(cached) $ac_c" 1>&6
11940 else
11941 cat > conftest.$ac_ext <<EOF
11942 #line 11943 "configure"
11943 #include "confdefs.h"
11944 #include <sys/types.h>
11945 #if STDC_HEADERS
11946 #include <stdlib.h>
11947 #include <stddef.h>
11948 #endif
11949 EOF
11950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11951 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11952 rm -rf conftest*
11953 ac_cv_type_pid_t=yes
11954 else
11955 rm -rf conftest*
11956 ac_cv_type_pid_t=no
11957 fi
11958 rm -f conftest*
11959
11960 fi
11961 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11962 if test $ac_cv_type_pid_t = no; then
11963 cat >> confdefs.h <<\EOF
11964 #define pid_t int
11965 EOF
11966
11967 fi
11968
11969 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11970 echo "configure:11971: checking for size_t" >&5
11971 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11972 echo $ac_n "(cached) $ac_c" 1>&6
11973 else
11974 cat > conftest.$ac_ext <<EOF
11975 #line 11976 "configure"
11976 #include "confdefs.h"
11977 #include <sys/types.h>
11978 #if STDC_HEADERS
11979 #include <stdlib.h>
11980 #include <stddef.h>
11981 #endif
11982 EOF
11983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11984 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11985 rm -rf conftest*
11986 ac_cv_type_size_t=yes
11987 else
11988 rm -rf conftest*
11989 ac_cv_type_size_t=no
11990 fi
11991 rm -f conftest*
11992
11993 fi
11994 echo "$ac_t""$ac_cv_type_size_t" 1>&6
11995 if test $ac_cv_type_size_t = no; then
11996 cat >> confdefs.h <<\EOF
11997 #define size_t unsigned
11998 EOF
11999
12000 fi
12001
12002 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12003 echo "configure:12004: checking for uid_t in sys/types.h" >&5
12004 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12005 echo $ac_n "(cached) $ac_c" 1>&6
12006 else
12007 cat > conftest.$ac_ext <<EOF
12008 #line 12009 "configure"
12009 #include "confdefs.h"
12010 #include <sys/types.h>
12011 EOF
12012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12013 egrep "uid_t" >/dev/null 2>&1; then
12014 rm -rf conftest*
12015 ac_cv_type_uid_t=yes
12016 else
12017 rm -rf conftest*
12018 ac_cv_type_uid_t=no
12019 fi
12020 rm -f conftest*
12021
12022 fi
12023
12024 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12025 if test $ac_cv_type_uid_t = no; then
12026 cat >> confdefs.h <<\EOF
12027 #define uid_t int
12028 EOF
12029
12030 cat >> confdefs.h <<\EOF
12031 #define gid_t int
12032 EOF
12033
12034 fi
12035
12036
12037 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
12038 echo "configure:12039: checking for wchar_t" >&5
12039 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12040 echo $ac_n "(cached) $ac_c" 1>&6
12041 else
12042
12043 cat > conftest.$ac_ext <<EOF
12044 #line 12045 "configure"
12045 #include "confdefs.h"
12046 #include <wchar.h>
12047 int main() {
12048
12049 wchar_t wc, *ws;
12050 wc = L'a';
12051 ws = L"Hello, world!";
12052
12053 ; return 0; }
12054 EOF
12055 if { (eval echo configure:12056: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12056 rm -rf conftest*
12057 wx_cv_type_wchar_t=yes
12058 else
12059 echo "configure: failed program was:" >&5
12060 cat conftest.$ac_ext >&5
12061 rm -rf conftest*
12062 cat > conftest.$ac_ext <<EOF
12063 #line 12064 "configure"
12064 #include "confdefs.h"
12065 #include <stdlib.h>
12066 int main() {
12067
12068 wchar_t wc, *ws;
12069 wc = L'a';
12070 ws = L"Hello, world!";
12071
12072 ; return 0; }
12073 EOF
12074 if { (eval echo configure:12075: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12075 rm -rf conftest*
12076 wx_cv_type_wchar_t=yes
12077 else
12078 echo "configure: failed program was:" >&5
12079 cat conftest.$ac_ext >&5
12080 rm -rf conftest*
12081 wx_cv_type_wchar_t=no
12082 fi
12083 rm -f conftest*
12084
12085 fi
12086 rm -f conftest*
12087
12088 fi
12089
12090 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
12091
12092 if test "$wx_cv_type_wchar_t" = "yes"; then
12093 cat >> confdefs.h <<\EOF
12094 #define wxUSE_WCHAR_T 1
12095 EOF
12096
12097 fi
12098
12099
12100 ac_ext=C
12101 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12102 ac_cpp='$CXXCPP $CPPFLAGS'
12103 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12104 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12105 cross_compiling=$ac_cv_prog_cxx_cross
12106
12107 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
12108 echo "configure:12109: checking if size_t is unsigned int" >&5
12109 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12110 echo $ac_n "(cached) $ac_c" 1>&6
12111 else
12112 cat > conftest.$ac_ext <<EOF
12113 #line 12114 "configure"
12114 #include "confdefs.h"
12115 #include <stddef.h>
12116 int main() {
12117
12118 return 0; }
12119
12120 struct Foo { void foo(size_t); void foo(unsigned int); };
12121
12122 int bar() {
12123
12124 ; return 0; }
12125 EOF
12126 if { (eval echo configure:12127: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12127 rm -rf conftest*
12128 wx_cv_size_t_is_uint=no
12129 else
12130 echo "configure: failed program was:" >&5
12131 cat conftest.$ac_ext >&5
12132 rm -rf conftest*
12133 wx_cv_size_t_is_uint=yes
12134
12135 fi
12136 rm -f conftest*
12137
12138 fi
12139
12140 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12141
12142 if test "$wx_cv_size_t_is_uint" = "yes"; then
12143 cat >> confdefs.h <<\EOF
12144 #define wxSIZE_T_IS_UINT 1
12145 EOF
12146
12147 else
12148 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
12149 echo "configure:12150: checking if size_t is unsigned long" >&5
12150 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12151 echo $ac_n "(cached) $ac_c" 1>&6
12152 else
12153 cat > conftest.$ac_ext <<EOF
12154 #line 12155 "configure"
12155 #include "confdefs.h"
12156 #include <stddef.h>
12157 int main() {
12158
12159 return 0; }
12160
12161 struct Foo { void foo(size_t); void foo(unsigned long); };
12162
12163 int bar() {
12164
12165 ; return 0; }
12166 EOF
12167 if { (eval echo configure:12168: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12168 rm -rf conftest*
12169 wx_cv_size_t_is_ulong=no
12170 else
12171 echo "configure: failed program was:" >&5
12172 cat conftest.$ac_ext >&5
12173 rm -rf conftest*
12174 wx_cv_size_t_is_ulong=yes
12175
12176 fi
12177 rm -f conftest*
12178
12179 fi
12180
12181 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12182
12183 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12184 cat >> confdefs.h <<\EOF
12185 #define wxSIZE_T_IS_ULONG 1
12186 EOF
12187
12188 fi
12189 fi
12190
12191 ac_ext=c
12192 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12193 ac_cpp='$CPP $CPPFLAGS'
12194 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12195 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12196 cross_compiling=$ac_cv_prog_cc_cross
12197
12198
12199
12200 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
12201 echo "configure:12202: checking for pw_gecos in struct passwd" >&5
12202 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12203 echo $ac_n "(cached) $ac_c" 1>&6
12204 else
12205
12206 cat > conftest.$ac_ext <<EOF
12207 #line 12208 "configure"
12208 #include "confdefs.h"
12209 #include <pwd.h>
12210 int main() {
12211
12212 char *p;
12213 struct passwd *pw;
12214 p = pw->pw_gecos;
12215
12216 ; return 0; }
12217 EOF
12218 if { (eval echo configure:12219: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12219 rm -rf conftest*
12220
12221 wx_cv_struct_pw_gecos=yes
12222
12223 else
12224 echo "configure: failed program was:" >&5
12225 cat conftest.$ac_ext >&5
12226 rm -rf conftest*
12227
12228 wx_cv_struct_pw_gecos=no
12229
12230
12231 fi
12232 rm -f conftest*
12233
12234
12235 fi
12236
12237 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
12238
12239 if test "$wx_cv_struct_pw_gecos" = "yes"; then
12240 cat >> confdefs.h <<\EOF
12241 #define HAVE_PW_GECOS 1
12242 EOF
12243
12244 fi
12245
12246
12247 echo $ac_n "checking for working const""... $ac_c" 1>&6
12248 echo "configure:12249: checking for working const" >&5
12249 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12250 echo $ac_n "(cached) $ac_c" 1>&6
12251 else
12252 cat > conftest.$ac_ext <<EOF
12253 #line 12254 "configure"
12254 #include "confdefs.h"
12255
12256 int main() {
12257
12258 /* Ultrix mips cc rejects this. */
12259 typedef int charset[2]; const charset x;
12260 /* SunOS 4.1.1 cc rejects this. */
12261 char const *const *ccp;
12262 char **p;
12263 /* NEC SVR4.0.2 mips cc rejects this. */
12264 struct point {int x, y;};
12265 static struct point const zero = {0,0};
12266 /* AIX XL C 1.02.0.0 rejects this.
12267 It does not let you subtract one const X* pointer from another in an arm
12268 of an if-expression whose if-part is not a constant expression */
12269 const char *g = "string";
12270 ccp = &g + (g ? g-g : 0);
12271 /* HPUX 7.0 cc rejects these. */
12272 ++ccp;
12273 p = (char**) ccp;
12274 ccp = (char const *const *) p;
12275 { /* SCO 3.2v4 cc rejects this. */
12276 char *t;
12277 char const *s = 0 ? (char *) 0 : (char const *) 0;
12278
12279 *t++ = 0;
12280 }
12281 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12282 int x[] = {25, 17};
12283 const int *foo = &x[0];
12284 ++foo;
12285 }
12286 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12287 typedef const int *iptr;
12288 iptr p = 0;
12289 ++p;
12290 }
12291 { /* AIX XL C 1.02.0.0 rejects this saying
12292 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12293 struct s { int j; const int *ap[3]; };
12294 struct s *b; b->j = 5;
12295 }
12296 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12297 const int foo = 10;
12298 }
12299
12300 ; return 0; }
12301 EOF
12302 if { (eval echo configure:12303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12303 rm -rf conftest*
12304 ac_cv_c_const=yes
12305 else
12306 echo "configure: failed program was:" >&5
12307 cat conftest.$ac_ext >&5
12308 rm -rf conftest*
12309 ac_cv_c_const=no
12310 fi
12311 rm -f conftest*
12312 fi
12313
12314 echo "$ac_t""$ac_cv_c_const" 1>&6
12315 if test $ac_cv_c_const = no; then
12316 cat >> confdefs.h <<\EOF
12317 #define const
12318 EOF
12319
12320 fi
12321
12322 echo $ac_n "checking for inline""... $ac_c" 1>&6
12323 echo "configure:12324: checking for inline" >&5
12324 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12325 echo $ac_n "(cached) $ac_c" 1>&6
12326 else
12327 ac_cv_c_inline=no
12328 for ac_kw in inline __inline__ __inline; do
12329 cat > conftest.$ac_ext <<EOF
12330 #line 12331 "configure"
12331 #include "confdefs.h"
12332
12333 int main() {
12334 } $ac_kw foo() {
12335 ; return 0; }
12336 EOF
12337 if { (eval echo configure:12338: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12338 rm -rf conftest*
12339 ac_cv_c_inline=$ac_kw; break
12340 else
12341 echo "configure: failed program was:" >&5
12342 cat conftest.$ac_ext >&5
12343 fi
12344 rm -f conftest*
12345 done
12346
12347 fi
12348
12349 echo "$ac_t""$ac_cv_c_inline" 1>&6
12350 case "$ac_cv_c_inline" in
12351 inline | yes) ;;
12352 no) cat >> confdefs.h <<\EOF
12353 #define inline
12354 EOF
12355 ;;
12356 *) cat >> confdefs.h <<EOF
12357 #define inline $ac_cv_c_inline
12358 EOF
12359 ;;
12360 esac
12361
12362
12363 echo $ac_n "checking size of char""... $ac_c" 1>&6
12364 echo "configure:12365: checking size of char" >&5
12365 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12366 echo $ac_n "(cached) $ac_c" 1>&6
12367 else
12368 if test "$cross_compiling" = yes; then
12369 ac_cv_sizeof_char=1
12370 else
12371 cat > conftest.$ac_ext <<EOF
12372 #line 12373 "configure"
12373 #include "confdefs.h"
12374 #include <stdio.h>
12375 main()
12376 {
12377 FILE *f=fopen("conftestval", "w");
12378 if (!f) exit(1);
12379 fprintf(f, "%d\n", sizeof(char));
12380 exit(0);
12381 }
12382 EOF
12383 if { (eval echo configure:12384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12384 then
12385 ac_cv_sizeof_char=`cat conftestval`
12386 else
12387 echo "configure: failed program was:" >&5
12388 cat conftest.$ac_ext >&5
12389 rm -fr conftest*
12390 ac_cv_sizeof_char=0
12391 fi
12392 rm -fr conftest*
12393 fi
12394
12395 fi
12396 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12397 cat >> confdefs.h <<EOF
12398 #define SIZEOF_CHAR $ac_cv_sizeof_char
12399 EOF
12400
12401
12402 echo $ac_n "checking size of short""... $ac_c" 1>&6
12403 echo "configure:12404: checking size of short" >&5
12404 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12405 echo $ac_n "(cached) $ac_c" 1>&6
12406 else
12407 if test "$cross_compiling" = yes; then
12408 ac_cv_sizeof_short=2
12409 else
12410 cat > conftest.$ac_ext <<EOF
12411 #line 12412 "configure"
12412 #include "confdefs.h"
12413 #include <stdio.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 main()
12454 {
12455 FILE *f=fopen("conftestval", "w");
12456 if (!f) exit(1);
12457 fprintf(f, "%d\n", sizeof(int *));
12458 exit(0);
12459 }
12460 EOF
12461 if { (eval echo configure:12462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12462 then
12463 ac_cv_sizeof_int_p=`cat conftestval`
12464 else
12465 echo "configure: failed program was:" >&5
12466 cat conftest.$ac_ext >&5
12467 rm -fr conftest*
12468 ac_cv_sizeof_int_p=0
12469 fi
12470 rm -fr conftest*
12471 fi
12472
12473 fi
12474 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12475 cat >> confdefs.h <<EOF
12476 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
12477 EOF
12478
12479
12480 echo $ac_n "checking size of int""... $ac_c" 1>&6
12481 echo "configure:12482: checking size of int" >&5
12482 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12483 echo $ac_n "(cached) $ac_c" 1>&6
12484 else
12485 if test "$cross_compiling" = yes; then
12486 ac_cv_sizeof_int=4
12487 else
12488 cat > conftest.$ac_ext <<EOF
12489 #line 12490 "configure"
12490 #include "confdefs.h"
12491 #include <stdio.h>
12492 main()
12493 {
12494 FILE *f=fopen("conftestval", "w");
12495 if (!f) exit(1);
12496 fprintf(f, "%d\n", sizeof(int));
12497 exit(0);
12498 }
12499 EOF
12500 if { (eval echo configure:12501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12501 then
12502 ac_cv_sizeof_int=`cat conftestval`
12503 else
12504 echo "configure: failed program was:" >&5
12505 cat conftest.$ac_ext >&5
12506 rm -fr conftest*
12507 ac_cv_sizeof_int=0
12508 fi
12509 rm -fr conftest*
12510 fi
12511
12512 fi
12513 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12514 cat >> confdefs.h <<EOF
12515 #define SIZEOF_INT $ac_cv_sizeof_int
12516 EOF
12517
12518
12519 echo $ac_n "checking size of long""... $ac_c" 1>&6
12520 echo "configure:12521: checking size of long" >&5
12521 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12522 echo $ac_n "(cached) $ac_c" 1>&6
12523 else
12524 if test "$cross_compiling" = yes; then
12525 ac_cv_sizeof_long=4
12526 else
12527 cat > conftest.$ac_ext <<EOF
12528 #line 12529 "configure"
12529 #include "confdefs.h"
12530 #include <stdio.h>
12531 main()
12532 {
12533 FILE *f=fopen("conftestval", "w");
12534 if (!f) exit(1);
12535 fprintf(f, "%d\n", sizeof(long));
12536 exit(0);
12537 }
12538 EOF
12539 if { (eval echo configure:12540: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12540 then
12541 ac_cv_sizeof_long=`cat conftestval`
12542 else
12543 echo "configure: failed program was:" >&5
12544 cat conftest.$ac_ext >&5
12545 rm -fr conftest*
12546 ac_cv_sizeof_long=0
12547 fi
12548 rm -fr conftest*
12549 fi
12550
12551 fi
12552 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12553 cat >> confdefs.h <<EOF
12554 #define SIZEOF_LONG $ac_cv_sizeof_long
12555 EOF
12556
12557
12558 echo $ac_n "checking size of long long""... $ac_c" 1>&6
12559 echo "configure:12560: checking size of long long" >&5
12560 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12561 echo $ac_n "(cached) $ac_c" 1>&6
12562 else
12563 if test "$cross_compiling" = yes; then
12564 ac_cv_sizeof_long_long=0
12565 else
12566 cat > conftest.$ac_ext <<EOF
12567 #line 12568 "configure"
12568 #include "confdefs.h"
12569 #include <stdio.h>
12570 main()
12571 {
12572 FILE *f=fopen("conftestval", "w");
12573 if (!f) exit(1);
12574 fprintf(f, "%d\n", sizeof(long long));
12575 exit(0);
12576 }
12577 EOF
12578 if { (eval echo configure:12579: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12579 then
12580 ac_cv_sizeof_long_long=`cat conftestval`
12581 else
12582 echo "configure: failed program was:" >&5
12583 cat conftest.$ac_ext >&5
12584 rm -fr conftest*
12585 ac_cv_sizeof_long_long=0
12586 fi
12587 rm -fr conftest*
12588 fi
12589
12590 fi
12591 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12592 cat >> confdefs.h <<EOF
12593 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12594 EOF
12595
12596
12597
12598 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
12599 echo "configure:12600: checking size of wchar_t" >&5
12600 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12601 echo $ac_n "(cached) $ac_c" 1>&6
12602 else
12603
12604 if test "$cross_compiling" = yes; then
12605 wx_cv_sizeof_wchar_t=4
12606
12607 else
12608 cat > conftest.$ac_ext <<EOF
12609 #line 12610 "configure"
12610 #include "confdefs.h"
12611
12612 #ifdef HAVE_WCHAR_H
12613 # include <wchar.h>
12614 #endif
12615 #ifdef HAVE_STDLIB_H
12616 # include <stdlib.h>
12617 #endif
12618 #include <stdio.h>
12619 int main()
12620 {
12621 FILE *f=fopen("conftestval", "w");
12622 if (!f) exit(1);
12623 fprintf(f, "%i", sizeof(wchar_t));
12624 exit(0);
12625 }
12626
12627 EOF
12628 if { (eval echo configure:12629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12629 then
12630 wx_cv_sizeof_wchar_t=`cat conftestval`
12631 else
12632 echo "configure: failed program was:" >&5
12633 cat conftest.$ac_ext >&5
12634 rm -fr conftest*
12635 wx_cv_sizeof_wchar_t=0
12636 fi
12637 rm -fr conftest*
12638 fi
12639
12640
12641 fi
12642
12643 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12644
12645 cat >> confdefs.h <<EOF
12646 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
12647 EOF
12648
12649
12650 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
12651 echo "configure:12652: checking whether byte ordering is bigendian" >&5
12652 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12653 echo $ac_n "(cached) $ac_c" 1>&6
12654 else
12655 ac_cv_c_bigendian=unknown
12656 # See if sys/param.h defines the BYTE_ORDER macro.
12657 cat > conftest.$ac_ext <<EOF
12658 #line 12659 "configure"
12659 #include "confdefs.h"
12660 #include <sys/types.h>
12661 #include <sys/param.h>
12662 int main() {
12663
12664 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12665 bogus endian macros
12666 #endif
12667 ; return 0; }
12668 EOF
12669 if { (eval echo configure:12670: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12670 rm -rf conftest*
12671 # It does; now see whether it defined to BIG_ENDIAN or not.
12672 cat > conftest.$ac_ext <<EOF
12673 #line 12674 "configure"
12674 #include "confdefs.h"
12675 #include <sys/types.h>
12676 #include <sys/param.h>
12677 int main() {
12678
12679 #if BYTE_ORDER != BIG_ENDIAN
12680 not big endian
12681 #endif
12682 ; return 0; }
12683 EOF
12684 if { (eval echo configure:12685: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12685 rm -rf conftest*
12686 ac_cv_c_bigendian=yes
12687 else
12688 echo "configure: failed program was:" >&5
12689 cat conftest.$ac_ext >&5
12690 rm -rf conftest*
12691 ac_cv_c_bigendian=no
12692 fi
12693 rm -f conftest*
12694 else
12695 echo "configure: failed program was:" >&5
12696 cat conftest.$ac_ext >&5
12697 fi
12698 rm -f conftest*
12699 if test $ac_cv_c_bigendian = unknown; then
12700 if test "$cross_compiling" = yes; then
12701 ac_cv_c_bigendian=unknown
12702 else
12703 cat > conftest.$ac_ext <<EOF
12704 #line 12705 "configure"
12705 #include "confdefs.h"
12706 main () {
12707 /* Are we little or big endian? From Harbison&Steele. */
12708 union
12709 {
12710 long l;
12711 char c[sizeof (long)];
12712 } u;
12713 u.l = 1;
12714 exit (u.c[sizeof (long) - 1] == 1);
12715 }
12716 EOF
12717 if { (eval echo configure:12718: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12718 then
12719 ac_cv_c_bigendian=no
12720 else
12721 echo "configure: failed program was:" >&5
12722 cat conftest.$ac_ext >&5
12723 rm -fr conftest*
12724 ac_cv_c_bigendian=yes
12725 fi
12726 rm -fr conftest*
12727 fi
12728
12729 fi
12730 fi
12731
12732 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
12733 if test $ac_cv_c_bigendian = unknown; then
12734 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
12735 fi
12736 if test $ac_cv_c_bigendian = yes; then
12737 cat >> confdefs.h <<\EOF
12738 #define WORDS_BIGENDIAN 1
12739 EOF
12740
12741 fi
12742
12743
12744 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
12745 echo "configure:12746: checking how to run the C++ preprocessor" >&5
12746 if test -z "$CXXCPP"; then
12747 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
12748 echo $ac_n "(cached) $ac_c" 1>&6
12749 else
12750 ac_ext=C
12751 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12752 ac_cpp='$CXXCPP $CPPFLAGS'
12753 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12754 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12755 cross_compiling=$ac_cv_prog_cxx_cross
12756 CXXCPP="${CXX-g++} -E"
12757 cat > conftest.$ac_ext <<EOF
12758 #line 12759 "configure"
12759 #include "confdefs.h"
12760 #include <stdlib.h>
12761 EOF
12762 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12763 { (eval echo configure:12764: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12764 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12765 if test -z "$ac_err"; then
12766 :
12767 else
12768 echo "$ac_err" >&5
12769 echo "configure: failed program was:" >&5
12770 cat conftest.$ac_ext >&5
12771 rm -rf conftest*
12772 CXXCPP=/lib/cpp
12773 fi
12774 rm -f conftest*
12775 ac_cv_prog_CXXCPP="$CXXCPP"
12776 ac_ext=C
12777 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12778 ac_cpp='$CXXCPP $CPPFLAGS'
12779 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12780 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12781 cross_compiling=$ac_cv_prog_cxx_cross
12782 fi
12783 fi
12784 CXXCPP="$ac_cv_prog_CXXCPP"
12785 echo "$ac_t""$CXXCPP" 1>&6
12786
12787
12788 if test "$cross_compiling" = "yes"; then
12789 cat >> confdefs.h <<\EOF
12790 #define wxUSE_IOSTREAMH 1
12791 EOF
12792
12793 else
12794
12795 ac_ext=C
12796 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12797 ac_cpp='$CXXCPP $CPPFLAGS'
12798 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12799 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12800 cross_compiling=$ac_cv_prog_cxx_cross
12801
12802
12803 for ac_hdr in iostream
12804 do
12805 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12806 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12807 echo "configure:12808: checking for $ac_hdr" >&5
12808 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12809 echo $ac_n "(cached) $ac_c" 1>&6
12810 else
12811 cat > conftest.$ac_ext <<EOF
12812 #line 12813 "configure"
12813 #include "confdefs.h"
12814 #include <$ac_hdr>
12815 EOF
12816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12817 { (eval echo configure:12818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12818 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12819 if test -z "$ac_err"; then
12820 rm -rf conftest*
12821 eval "ac_cv_header_$ac_safe=yes"
12822 else
12823 echo "$ac_err" >&5
12824 echo "configure: failed program was:" >&5
12825 cat conftest.$ac_ext >&5
12826 rm -rf conftest*
12827 eval "ac_cv_header_$ac_safe=no"
12828 fi
12829 rm -f conftest*
12830 fi
12831 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12832 echo "$ac_t""yes" 1>&6
12833 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12834 cat >> confdefs.h <<EOF
12835 #define $ac_tr_hdr 1
12836 EOF
12837
12838 else
12839 echo "$ac_t""no" 1>&6
12840 fi
12841 done
12842
12843
12844 if test "$ac_cv_header_iostream" = "yes" ; then
12845 :
12846 else
12847 cat >> confdefs.h <<\EOF
12848 #define wxUSE_IOSTREAMH 1
12849 EOF
12850
12851 fi
12852
12853 ac_ext=c
12854 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12855 ac_cpp='$CPP $CPPFLAGS'
12856 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12857 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12858 cross_compiling=$ac_cv_prog_cc_cross
12859
12860 fi
12861
12862
12863
12864 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
12865 echo "configure:12866: checking if C++ compiler supports bool" >&5
12866 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12867 echo $ac_n "(cached) $ac_c" 1>&6
12868 else
12869
12870
12871 ac_ext=C
12872 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12873 ac_cpp='$CXXCPP $CPPFLAGS'
12874 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12875 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12876 cross_compiling=$ac_cv_prog_cxx_cross
12877
12878
12879 cat > conftest.$ac_ext <<EOF
12880 #line 12881 "configure"
12881 #include "confdefs.h"
12882
12883
12884 int main() {
12885
12886 bool b = true;
12887
12888 return 0;
12889
12890 ; return 0; }
12891 EOF
12892 if { (eval echo configure:12893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12893 rm -rf conftest*
12894
12895 wx_cv_cpp_bool=yes
12896
12897 else
12898 echo "configure: failed program was:" >&5
12899 cat conftest.$ac_ext >&5
12900 rm -rf conftest*
12901
12902 wx_cv_cpp_bool=no
12903
12904
12905 fi
12906 rm -f conftest*
12907
12908 ac_ext=c
12909 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12910 ac_cpp='$CPP $CPPFLAGS'
12911 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12912 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12913 cross_compiling=$ac_cv_prog_cc_cross
12914
12915
12916 fi
12917
12918 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
12919
12920 if test "$wx_cv_cpp_bool" = "yes"; then
12921 cat >> confdefs.h <<\EOF
12922 #define HAVE_BOOL 1
12923 EOF
12924
12925 fi
12926
12927
12928
12929 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12930 echo "configure:12931: checking for wcslen in -lc" >&5
12931 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12932 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12933 echo $ac_n "(cached) $ac_c" 1>&6
12934 else
12935 ac_save_LIBS="$LIBS"
12936 LIBS="-lc $LIBS"
12937 cat > conftest.$ac_ext <<EOF
12938 #line 12939 "configure"
12939 #include "confdefs.h"
12940 /* Override any gcc2 internal prototype to avoid an error. */
12941 /* We use char because int might match the return type of a gcc2
12942 builtin and then its argument prototype would still apply. */
12943 char wcslen();
12944
12945 int main() {
12946 wcslen()
12947 ; return 0; }
12948 EOF
12949 if { (eval echo configure:12950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12950 rm -rf conftest*
12951 eval "ac_cv_lib_$ac_lib_var=yes"
12952 else
12953 echo "configure: failed program was:" >&5
12954 cat conftest.$ac_ext >&5
12955 rm -rf conftest*
12956 eval "ac_cv_lib_$ac_lib_var=no"
12957 fi
12958 rm -f conftest*
12959 LIBS="$ac_save_LIBS"
12960
12961 fi
12962 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12963 echo "$ac_t""yes" 1>&6
12964
12965 cat >> confdefs.h <<\EOF
12966 #define HAVE_WCSLEN 1
12967 EOF
12968
12969 WCHAR_LINK=""
12970
12971 else
12972 echo "$ac_t""no" 1>&6
12973
12974 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12975 echo "configure:12976: checking for wcslen in -lw" >&5
12976 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12977 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12978 echo $ac_n "(cached) $ac_c" 1>&6
12979 else
12980 ac_save_LIBS="$LIBS"
12981 LIBS="-lw $LIBS"
12982 cat > conftest.$ac_ext <<EOF
12983 #line 12984 "configure"
12984 #include "confdefs.h"
12985 /* Override any gcc2 internal prototype to avoid an error. */
12986 /* We use char because int might match the return type of a gcc2
12987 builtin and then its argument prototype would still apply. */
12988 char wcslen();
12989
12990 int main() {
12991 wcslen()
12992 ; return 0; }
12993 EOF
12994 if { (eval echo configure:12995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12995 rm -rf conftest*
12996 eval "ac_cv_lib_$ac_lib_var=yes"
12997 else
12998 echo "configure: failed program was:" >&5
12999 cat conftest.$ac_ext >&5
13000 rm -rf conftest*
13001 eval "ac_cv_lib_$ac_lib_var=no"
13002 fi
13003 rm -f conftest*
13004 LIBS="$ac_save_LIBS"
13005
13006 fi
13007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13008 echo "$ac_t""yes" 1>&6
13009
13010 cat >> confdefs.h <<\EOF
13011 #define HAVE_WCSLEN 1
13012 EOF
13013
13014 WCHAR_LINK="-lw"
13015
13016 else
13017 echo "$ac_t""no" 1>&6
13018
13019 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
13020 echo "configure:13021: checking for wcslen in -lmsvcrt" >&5
13021 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13023 echo $ac_n "(cached) $ac_c" 1>&6
13024 else
13025 ac_save_LIBS="$LIBS"
13026 LIBS="-lmsvcrt $LIBS"
13027 cat > conftest.$ac_ext <<EOF
13028 #line 13029 "configure"
13029 #include "confdefs.h"
13030 /* Override any gcc2 internal prototype to avoid an error. */
13031 /* We use char because int might match the return type of a gcc2
13032 builtin and then its argument prototype would still apply. */
13033 char wcslen();
13034
13035 int main() {
13036 wcslen()
13037 ; return 0; }
13038 EOF
13039 if { (eval echo configure:13040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13040 rm -rf conftest*
13041 eval "ac_cv_lib_$ac_lib_var=yes"
13042 else
13043 echo "configure: failed program was:" >&5
13044 cat conftest.$ac_ext >&5
13045 rm -rf conftest*
13046 eval "ac_cv_lib_$ac_lib_var=no"
13047 fi
13048 rm -f conftest*
13049 LIBS="$ac_save_LIBS"
13050
13051 fi
13052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13053 echo "$ac_t""yes" 1>&6
13054
13055 cat >> confdefs.h <<\EOF
13056 #define HAVE_WCSLEN 1
13057 EOF
13058
13059 WCHAR_LINK=""
13060
13061 else
13062 echo "$ac_t""no" 1>&6
13063 fi
13064
13065
13066 fi
13067
13068
13069 fi
13070
13071
13072 for ac_func in wcsrtombs
13073 do
13074 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13075 echo "configure:13076: checking for $ac_func" >&5
13076 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13077 echo $ac_n "(cached) $ac_c" 1>&6
13078 else
13079 cat > conftest.$ac_ext <<EOF
13080 #line 13081 "configure"
13081 #include "confdefs.h"
13082 /* System header to define __stub macros and hopefully few prototypes,
13083 which can conflict with char $ac_func(); below. */
13084 #include <assert.h>
13085 /* Override any gcc2 internal prototype to avoid an error. */
13086 /* We use char because int might match the return type of a gcc2
13087 builtin and then its argument prototype would still apply. */
13088 char $ac_func();
13089
13090 int main() {
13091
13092 /* The GNU C library defines this for functions which it implements
13093 to always fail with ENOSYS. Some functions are actually named
13094 something starting with __ and the normal name is an alias. */
13095 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13096 choke me
13097 #else
13098 $ac_func();
13099 #endif
13100
13101 ; return 0; }
13102 EOF
13103 if { (eval echo configure:13104: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13104 rm -rf conftest*
13105 eval "ac_cv_func_$ac_func=yes"
13106 else
13107 echo "configure: failed program was:" >&5
13108 cat conftest.$ac_ext >&5
13109 rm -rf conftest*
13110 eval "ac_cv_func_$ac_func=no"
13111 fi
13112 rm -f conftest*
13113 fi
13114
13115 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13116 echo "$ac_t""yes" 1>&6
13117 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13118 cat >> confdefs.h <<EOF
13119 #define $ac_tr_func 1
13120 EOF
13121
13122 else
13123 echo "$ac_t""no" 1>&6
13124 fi
13125 done
13126
13127
13128 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13129 echo "configure:13130: checking for vprintf" >&5
13130 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+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 vprintf(); 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 vprintf();
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_vprintf) || defined (__stub___vprintf)
13150 choke me
13151 #else
13152 vprintf();
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_vprintf=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_vprintf=no"
13165 fi
13166 rm -f conftest*
13167 fi
13168
13169 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13170 echo "$ac_t""yes" 1>&6
13171 cat >> confdefs.h <<\EOF
13172 #define HAVE_VPRINTF 1
13173 EOF
13174
13175 else
13176 echo "$ac_t""no" 1>&6
13177 fi
13178
13179 if test "$ac_cv_func_vprintf" != yes; then
13180 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
13181 echo "configure:13182: checking for _doprnt" >&5
13182 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
13183 echo $ac_n "(cached) $ac_c" 1>&6
13184 else
13185 cat > conftest.$ac_ext <<EOF
13186 #line 13187 "configure"
13187 #include "confdefs.h"
13188 /* System header to define __stub macros and hopefully few prototypes,
13189 which can conflict with char _doprnt(); below. */
13190 #include <assert.h>
13191 /* Override any gcc2 internal prototype to avoid an error. */
13192 /* We use char because int might match the return type of a gcc2
13193 builtin and then its argument prototype would still apply. */
13194 char _doprnt();
13195
13196 int main() {
13197
13198 /* The GNU C library defines this for functions which it implements
13199 to always fail with ENOSYS. Some functions are actually named
13200 something starting with __ and the normal name is an alias. */
13201 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13202 choke me
13203 #else
13204 _doprnt();
13205 #endif
13206
13207 ; return 0; }
13208 EOF
13209 if { (eval echo configure:13210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13210 rm -rf conftest*
13211 eval "ac_cv_func__doprnt=yes"
13212 else
13213 echo "configure: failed program was:" >&5
13214 cat conftest.$ac_ext >&5
13215 rm -rf conftest*
13216 eval "ac_cv_func__doprnt=no"
13217 fi
13218 rm -f conftest*
13219 fi
13220
13221 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13222 echo "$ac_t""yes" 1>&6
13223 cat >> confdefs.h <<\EOF
13224 #define HAVE_DOPRNT 1
13225 EOF
13226
13227 else
13228 echo "$ac_t""no" 1>&6
13229 fi
13230
13231 fi
13232
13233
13234
13235
13236
13237
13238 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
13239 echo "configure:13240: checking for vsnprintf" >&5
13240 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
13241 echo $ac_n "(cached) $ac_c" 1>&6
13242 else
13243
13244 cat > conftest.$ac_ext <<EOF
13245 #line 13246 "configure"
13246 #include "confdefs.h"
13247
13248 #include <stdio.h>
13249 #include <stdarg.h>
13250
13251 int main() {
13252
13253 int wx_test_vsnprintf(const char *, ...);
13254
13255 wx_test_vsnprintf("%s");
13256 return 0;
13257 }
13258
13259 int wx_test_vsnprintf(const char *fmt, ...)
13260 {
13261 char *s;
13262
13263 va_list argp;
13264 va_start(argp, fmt);
13265 vsnprintf(s, 42, fmt, argp);
13266 va_end(argp);
13267
13268 ; return 0; }
13269 EOF
13270 if { (eval echo configure:13271: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13271 rm -rf conftest*
13272
13273 wx_cv_func_vsnprintf=yes
13274
13275 else
13276 echo "configure: failed program was:" >&5
13277 cat conftest.$ac_ext >&5
13278 rm -rf conftest*
13279
13280 cat > conftest.$ac_ext <<EOF
13281 #line 13282 "configure"
13282 #include "confdefs.h"
13283
13284 #include <stdio.h>
13285 #include <stdarg.h>
13286
13287 int main() {
13288
13289 int wx_test_vsnprintf(const char *, ...);
13290
13291 wx_test_vsnprintf("%s");
13292 return 0;
13293 }
13294
13295 int wx_test_vsnprintf(const char *fmt, ...)
13296 {
13297 char *s;
13298
13299 va_list argp;
13300 va_start(argp, fmt);
13301 _vsnprintf(s, 42, fmt, argp);
13302 va_end(argp);
13303
13304 ; return 0; }
13305 EOF
13306 if { (eval echo configure:13307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13307 rm -rf conftest*
13308
13309 wx_cv_func_vsnprintf=yes
13310
13311 else
13312 echo "configure: failed program was:" >&5
13313 cat conftest.$ac_ext >&5
13314 rm -rf conftest*
13315
13316 wx_cv_func_vsnprintf=no
13317
13318 fi
13319 rm -f conftest*
13320
13321 fi
13322 rm -f conftest*
13323
13324 fi
13325
13326 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
13327
13328 if test "$wx_cv_func_vsnprintf" = yes; then
13329 cat >> confdefs.h <<\EOF
13330 #define HAVE_VSNPRINTF 1
13331 EOF
13332
13333 else
13334 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
13335 fi
13336
13337 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
13338 echo "configure:13339: checking for vsscanf" >&5
13339 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13340 echo $ac_n "(cached) $ac_c" 1>&6
13341 else
13342
13343 cat > conftest.$ac_ext <<EOF
13344 #line 13345 "configure"
13345 #include "confdefs.h"
13346
13347 #include <stdio.h>
13348 #include <stdarg.h>
13349
13350 int main() {
13351
13352 int wx_test_vsscanf(const char *, ...);
13353
13354 wx_test_vsscanf("%d");
13355 return 0;
13356 }
13357
13358 int wx_test_vsscanf(const char *fmt, ...)
13359 {
13360 va_list argp;
13361 va_start(argp, fmt);
13362 vsscanf("42", fmt, argp);
13363 va_end(argp);
13364
13365 ; return 0; }
13366 EOF
13367 if { (eval echo configure:13368: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13368 rm -rf conftest*
13369
13370 wx_cv_func_vsscanf=yes
13371
13372 else
13373 echo "configure: failed program was:" >&5
13374 cat conftest.$ac_ext >&5
13375 rm -rf conftest*
13376
13377 wx_cv_func_vsscanf=no
13378
13379 fi
13380 rm -f conftest*
13381
13382 fi
13383
13384 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
13385
13386 if test "$wx_cv_func_vsscanf" = yes; then
13387 cat >> confdefs.h <<\EOF
13388 #define HAVE_VSSCANF 1
13389 EOF
13390
13391 fi
13392
13393 if test "$TOOLKIT" != "MSW"; then
13394
13395
13396
13397 ac_ext=C
13398 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13399 ac_cpp='$CXXCPP $CPPFLAGS'
13400 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13401 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13402 cross_compiling=$ac_cv_prog_cxx_cross
13403
13404 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
13405 echo "configure:13406: checking if iconv() takes char**" >&5
13406 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
13407 echo $ac_n "(cached) $ac_c" 1>&6
13408 else
13409
13410 cat > conftest.$ac_ext <<EOF
13411 #line 13412 "configure"
13412 #include "confdefs.h"
13413 #include <iconv.h>
13414 int main() {
13415
13416 char **inbuf, **outbuf;
13417 iconv_t cd;
13418 size_t insz, outsz;
13419 iconv(cd, inbuf, &insz, outbuf, &outsz);
13420
13421 ; return 0; }
13422 EOF
13423 if { (eval echo configure:13424: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13424 rm -rf conftest*
13425 wx_cv_iconv_takes_char=yes
13426 else
13427 echo "configure: failed program was:" >&5
13428 cat conftest.$ac_ext >&5
13429 rm -rf conftest*
13430 wx_cv_iconv_takes_char=no
13431 fi
13432 rm -f conftest*
13433
13434 fi
13435
13436 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
13437 ac_ext=c
13438 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13439 ac_cpp='$CPP $CPPFLAGS'
13440 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13441 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13442 cross_compiling=$ac_cv_prog_cc_cross
13443
13444 if test "$wx_cv_iconv_takes_char" = yes ; then
13445 cat >> confdefs.h <<\EOF
13446 #define WX_ICONV_TAKES_CHAR 1
13447 EOF
13448
13449 fi
13450
13451
13452 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13453 for ac_func in sigaction
13454 do
13455 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13456 echo "configure:13457: checking for $ac_func" >&5
13457 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13458 echo $ac_n "(cached) $ac_c" 1>&6
13459 else
13460 cat > conftest.$ac_ext <<EOF
13461 #line 13462 "configure"
13462 #include "confdefs.h"
13463 /* System header to define __stub macros and hopefully few prototypes,
13464 which can conflict with char $ac_func(); below. */
13465 #include <assert.h>
13466 /* Override any gcc2 internal prototype to avoid an error. */
13467 /* We use char because int might match the return type of a gcc2
13468 builtin and then its argument prototype would still apply. */
13469 char $ac_func();
13470
13471 int main() {
13472
13473 /* The GNU C library defines this for functions which it implements
13474 to always fail with ENOSYS. Some functions are actually named
13475 something starting with __ and the normal name is an alias. */
13476 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13477 choke me
13478 #else
13479 $ac_func();
13480 #endif
13481
13482 ; return 0; }
13483 EOF
13484 if { (eval echo configure:13485: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13485 rm -rf conftest*
13486 eval "ac_cv_func_$ac_func=yes"
13487 else
13488 echo "configure: failed program was:" >&5
13489 cat conftest.$ac_ext >&5
13490 rm -rf conftest*
13491 eval "ac_cv_func_$ac_func=no"
13492 fi
13493 rm -f conftest*
13494 fi
13495
13496 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13497 echo "$ac_t""yes" 1>&6
13498 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13499 cat >> confdefs.h <<EOF
13500 #define $ac_tr_func 1
13501 EOF
13502
13503 else
13504 echo "$ac_t""no" 1>&6
13505 fi
13506 done
13507
13508
13509 if test "$ac_cv_func_sigaction" = "no"; then
13510 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
13511 wxUSE_ON_FATAL_EXCEPTION=no
13512 fi
13513
13514 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13515
13516 ac_ext=C
13517 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13518 ac_cpp='$CXXCPP $CPPFLAGS'
13519 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13520 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13521 cross_compiling=$ac_cv_prog_cxx_cross
13522
13523
13524 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
13525 echo "configure:13526: checking for sa_handler type" >&5
13526 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13527 echo $ac_n "(cached) $ac_c" 1>&6
13528 else
13529
13530 cat > conftest.$ac_ext <<EOF
13531 #line 13532 "configure"
13532 #include "confdefs.h"
13533 #include <signal.h>
13534 int main() {
13535
13536 extern void testSigHandler(int);
13537
13538 struct sigaction sa;
13539 sa.sa_handler = testSigHandler;
13540
13541 ; return 0; }
13542 EOF
13543 if { (eval echo configure:13544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13544 rm -rf conftest*
13545
13546 wx_cv_type_sa_handler=int
13547
13548 else
13549 echo "configure: failed program was:" >&5
13550 cat conftest.$ac_ext >&5
13551 rm -rf conftest*
13552
13553 wx_cv_type_sa_handler=void
13554
13555 fi
13556 rm -f conftest*
13557
13558 fi
13559
13560 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
13561
13562 ac_ext=c
13563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13564 ac_cpp='$CPP $CPPFLAGS'
13565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13567 cross_compiling=$ac_cv_prog_cc_cross
13568
13569
13570 cat >> confdefs.h <<EOF
13571 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13572 EOF
13573
13574 fi
13575 fi
13576
13577 for ac_func in vfork
13578 do
13579 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13580 echo "configure:13581: checking for $ac_func" >&5
13581 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13582 echo $ac_n "(cached) $ac_c" 1>&6
13583 else
13584 cat > conftest.$ac_ext <<EOF
13585 #line 13586 "configure"
13586 #include "confdefs.h"
13587 /* System header to define __stub macros and hopefully few prototypes,
13588 which can conflict with char $ac_func(); below. */
13589 #include <assert.h>
13590 /* Override any gcc2 internal prototype to avoid an error. */
13591 /* We use char because int might match the return type of a gcc2
13592 builtin and then its argument prototype would still apply. */
13593 char $ac_func();
13594
13595 int main() {
13596
13597 /* The GNU C library defines this for functions which it implements
13598 to always fail with ENOSYS. Some functions are actually named
13599 something starting with __ and the normal name is an alias. */
13600 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13601 choke me
13602 #else
13603 $ac_func();
13604 #endif
13605
13606 ; return 0; }
13607 EOF
13608 if { (eval echo configure:13609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13609 rm -rf conftest*
13610 eval "ac_cv_func_$ac_func=yes"
13611 else
13612 echo "configure: failed program was:" >&5
13613 cat conftest.$ac_ext >&5
13614 rm -rf conftest*
13615 eval "ac_cv_func_$ac_func=no"
13616 fi
13617 rm -f conftest*
13618 fi
13619
13620 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13621 echo "$ac_t""yes" 1>&6
13622 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13623 cat >> confdefs.h <<EOF
13624 #define $ac_tr_func 1
13625 EOF
13626
13627 else
13628 echo "$ac_t""no" 1>&6
13629 fi
13630 done
13631
13632
13633 echo $ac_n "checking for statfs""... $ac_c" 1>&6
13634 echo "configure:13635: checking for statfs" >&5
13635 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
13636 echo $ac_n "(cached) $ac_c" 1>&6
13637 else
13638 cat > conftest.$ac_ext <<EOF
13639 #line 13640 "configure"
13640 #include "confdefs.h"
13641
13642 #include <sys/vfs.h>
13643
13644 int main() {
13645
13646 long l;
13647 struct statfs fs;
13648 statfs("/", &fs);
13649 l = fs.f_bsize;
13650 l += fs.f_blocks;
13651 l += fs.f_bavail;
13652
13653 ; return 0; }
13654 EOF
13655 if { (eval echo configure:13656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13656 rm -rf conftest*
13657
13658 wx_cv_func_statfs=yes
13659
13660 else
13661 echo "configure: failed program was:" >&5
13662 cat conftest.$ac_ext >&5
13663 rm -rf conftest*
13664
13665 wx_cv_func_statfs=no
13666
13667
13668 fi
13669 rm -f conftest*
13670
13671 fi
13672
13673 echo "$ac_t""$wx_cv_func_statfs" 1>&6
13674
13675 if test "$wx_cv_func_statfs" = "yes"; then
13676 cat >> confdefs.h <<\EOF
13677 #define HAVE_STATFS 1
13678 EOF
13679
13680 else
13681 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
13682 fi
13683
13684 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13685 for ac_func in fcntl flock
13686 do
13687 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13688 echo "configure:13689: checking for $ac_func" >&5
13689 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13690 echo $ac_n "(cached) $ac_c" 1>&6
13691 else
13692 cat > conftest.$ac_ext <<EOF
13693 #line 13694 "configure"
13694 #include "confdefs.h"
13695 /* System header to define __stub macros and hopefully few prototypes,
13696 which can conflict with char $ac_func(); below. */
13697 #include <assert.h>
13698 /* Override any gcc2 internal prototype to avoid an error. */
13699 /* We use char because int might match the return type of a gcc2
13700 builtin and then its argument prototype would still apply. */
13701 char $ac_func();
13702
13703 int main() {
13704
13705 /* The GNU C library defines this for functions which it implements
13706 to always fail with ENOSYS. Some functions are actually named
13707 something starting with __ and the normal name is an alias. */
13708 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13709 choke me
13710 #else
13711 $ac_func();
13712 #endif
13713
13714 ; return 0; }
13715 EOF
13716 if { (eval echo configure:13717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13717 rm -rf conftest*
13718 eval "ac_cv_func_$ac_func=yes"
13719 else
13720 echo "configure: failed program was:" >&5
13721 cat conftest.$ac_ext >&5
13722 rm -rf conftest*
13723 eval "ac_cv_func_$ac_func=no"
13724 fi
13725 rm -f conftest*
13726 fi
13727
13728 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13729 echo "$ac_t""yes" 1>&6
13730 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13731 cat >> confdefs.h <<EOF
13732 #define $ac_tr_func 1
13733 EOF
13734 break
13735 else
13736 echo "$ac_t""no" 1>&6
13737 fi
13738 done
13739
13740
13741 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
13742 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
13743 wxUSE_SNGLINST_CHECKER=no
13744 fi
13745 fi
13746
13747 for ac_func in timegm
13748 do
13749 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13750 echo "configure:13751: checking for $ac_func" >&5
13751 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13752 echo $ac_n "(cached) $ac_c" 1>&6
13753 else
13754 cat > conftest.$ac_ext <<EOF
13755 #line 13756 "configure"
13756 #include "confdefs.h"
13757 /* System header to define __stub macros and hopefully few prototypes,
13758 which can conflict with char $ac_func(); below. */
13759 #include <assert.h>
13760 /* Override any gcc2 internal prototype to avoid an error. */
13761 /* We use char because int might match the return type of a gcc2
13762 builtin and then its argument prototype would still apply. */
13763 char $ac_func();
13764
13765 int main() {
13766
13767 /* The GNU C library defines this for functions which it implements
13768 to always fail with ENOSYS. Some functions are actually named
13769 something starting with __ and the normal name is an alias. */
13770 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13771 choke me
13772 #else
13773 $ac_func();
13774 #endif
13775
13776 ; return 0; }
13777 EOF
13778 if { (eval echo configure:13779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13779 rm -rf conftest*
13780 eval "ac_cv_func_$ac_func=yes"
13781 else
13782 echo "configure: failed program was:" >&5
13783 cat conftest.$ac_ext >&5
13784 rm -rf conftest*
13785 eval "ac_cv_func_$ac_func=no"
13786 fi
13787 rm -f conftest*
13788 fi
13789
13790 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13791 echo "$ac_t""yes" 1>&6
13792 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13793 cat >> confdefs.h <<EOF
13794 #define $ac_tr_func 1
13795 EOF
13796
13797 else
13798 echo "$ac_t""no" 1>&6
13799 fi
13800 done
13801
13802
13803 for ac_func in putenv setenv
13804 do
13805 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13806 echo "configure:13807: checking for $ac_func" >&5
13807 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13808 echo $ac_n "(cached) $ac_c" 1>&6
13809 else
13810 cat > conftest.$ac_ext <<EOF
13811 #line 13812 "configure"
13812 #include "confdefs.h"
13813 /* System header to define __stub macros and hopefully few prototypes,
13814 which can conflict with char $ac_func(); below. */
13815 #include <assert.h>
13816 /* Override any gcc2 internal prototype to avoid an error. */
13817 /* We use char because int might match the return type of a gcc2
13818 builtin and then its argument prototype would still apply. */
13819 char $ac_func();
13820
13821 int main() {
13822
13823 /* The GNU C library defines this for functions which it implements
13824 to always fail with ENOSYS. Some functions are actually named
13825 something starting with __ and the normal name is an alias. */
13826 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13827 choke me
13828 #else
13829 $ac_func();
13830 #endif
13831
13832 ; return 0; }
13833 EOF
13834 if { (eval echo configure:13835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13835 rm -rf conftest*
13836 eval "ac_cv_func_$ac_func=yes"
13837 else
13838 echo "configure: failed program was:" >&5
13839 cat conftest.$ac_ext >&5
13840 rm -rf conftest*
13841 eval "ac_cv_func_$ac_func=no"
13842 fi
13843 rm -f conftest*
13844 fi
13845
13846 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13847 echo "$ac_t""yes" 1>&6
13848 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13849 cat >> confdefs.h <<EOF
13850 #define $ac_tr_func 1
13851 EOF
13852 break
13853 else
13854 echo "$ac_t""no" 1>&6
13855 fi
13856 done
13857
13858
13859 HAVE_SOME_SLEEP_FUNC=0
13860 if test "$USE_BEOS" = 1; then
13861 cat >> confdefs.h <<\EOF
13862 #define HAVE_SLEEP 1
13863 EOF
13864
13865 HAVE_SOME_SLEEP_FUNC=1
13866 fi
13867
13868 if test "$USE_DARWIN" = 1; then
13869 cat >> confdefs.h <<\EOF
13870 #define HAVE_USLEEP 1
13871 EOF
13872
13873 HAVE_SOME_SLEEP_FUNC=1
13874 fi
13875
13876 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13877 POSIX4_LINK=
13878 for ac_func in nanosleep
13879 do
13880 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13881 echo "configure:13882: checking for $ac_func" >&5
13882 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13883 echo $ac_n "(cached) $ac_c" 1>&6
13884 else
13885 cat > conftest.$ac_ext <<EOF
13886 #line 13887 "configure"
13887 #include "confdefs.h"
13888 /* System header to define __stub macros and hopefully few prototypes,
13889 which can conflict with char $ac_func(); below. */
13890 #include <assert.h>
13891 /* Override any gcc2 internal prototype to avoid an error. */
13892 /* We use char because int might match the return type of a gcc2
13893 builtin and then its argument prototype would still apply. */
13894 char $ac_func();
13895
13896 int main() {
13897
13898 /* The GNU C library defines this for functions which it implements
13899 to always fail with ENOSYS. Some functions are actually named
13900 something starting with __ and the normal name is an alias. */
13901 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13902 choke me
13903 #else
13904 $ac_func();
13905 #endif
13906
13907 ; return 0; }
13908 EOF
13909 if { (eval echo configure:13910: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13910 rm -rf conftest*
13911 eval "ac_cv_func_$ac_func=yes"
13912 else
13913 echo "configure: failed program was:" >&5
13914 cat conftest.$ac_ext >&5
13915 rm -rf conftest*
13916 eval "ac_cv_func_$ac_func=no"
13917 fi
13918 rm -f conftest*
13919 fi
13920
13921 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13922 echo "$ac_t""yes" 1>&6
13923 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13924 cat >> confdefs.h <<EOF
13925 #define $ac_tr_func 1
13926 EOF
13927 cat >> confdefs.h <<\EOF
13928 #define HAVE_NANOSLEEP 1
13929 EOF
13930
13931 else
13932 echo "$ac_t""no" 1>&6
13933 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
13934 echo "configure:13935: checking for nanosleep in -lposix4" >&5
13935 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13936 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13937 echo $ac_n "(cached) $ac_c" 1>&6
13938 else
13939 ac_save_LIBS="$LIBS"
13940 LIBS="-lposix4 $LIBS"
13941 cat > conftest.$ac_ext <<EOF
13942 #line 13943 "configure"
13943 #include "confdefs.h"
13944 /* Override any gcc2 internal prototype to avoid an error. */
13945 /* We use char because int might match the return type of a gcc2
13946 builtin and then its argument prototype would still apply. */
13947 char nanosleep();
13948
13949 int main() {
13950 nanosleep()
13951 ; return 0; }
13952 EOF
13953 if { (eval echo configure:13954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13954 rm -rf conftest*
13955 eval "ac_cv_lib_$ac_lib_var=yes"
13956 else
13957 echo "configure: failed program was:" >&5
13958 cat conftest.$ac_ext >&5
13959 rm -rf conftest*
13960 eval "ac_cv_lib_$ac_lib_var=no"
13961 fi
13962 rm -f conftest*
13963 LIBS="$ac_save_LIBS"
13964
13965 fi
13966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13967 echo "$ac_t""yes" 1>&6
13968
13969 cat >> confdefs.h <<\EOF
13970 #define HAVE_NANOSLEEP 1
13971 EOF
13972
13973 POSIX4_LINK="-lposix4"
13974
13975 else
13976 echo "$ac_t""no" 1>&6
13977
13978 for ac_func in usleep
13979 do
13980 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13981 echo "configure:13982: checking for $ac_func" >&5
13982 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13983 echo $ac_n "(cached) $ac_c" 1>&6
13984 else
13985 cat > conftest.$ac_ext <<EOF
13986 #line 13987 "configure"
13987 #include "confdefs.h"
13988 /* System header to define __stub macros and hopefully few prototypes,
13989 which can conflict with char $ac_func(); below. */
13990 #include <assert.h>
13991 /* Override any gcc2 internal prototype to avoid an error. */
13992 /* We use char because int might match the return type of a gcc2
13993 builtin and then its argument prototype would still apply. */
13994 char $ac_func();
13995
13996 int main() {
13997
13998 /* The GNU C library defines this for functions which it implements
13999 to always fail with ENOSYS. Some functions are actually named
14000 something starting with __ and the normal name is an alias. */
14001 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14002 choke me
14003 #else
14004 $ac_func();
14005 #endif
14006
14007 ; return 0; }
14008 EOF
14009 if { (eval echo configure:14010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14010 rm -rf conftest*
14011 eval "ac_cv_func_$ac_func=yes"
14012 else
14013 echo "configure: failed program was:" >&5
14014 cat conftest.$ac_ext >&5
14015 rm -rf conftest*
14016 eval "ac_cv_func_$ac_func=no"
14017 fi
14018 rm -f conftest*
14019 fi
14020
14021 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14022 echo "$ac_t""yes" 1>&6
14023 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14024 cat >> confdefs.h <<EOF
14025 #define $ac_tr_func 1
14026 EOF
14027 cat >> confdefs.h <<\EOF
14028 #define HAVE_USLEEP 1
14029 EOF
14030
14031 else
14032 echo "$ac_t""no" 1>&6
14033 echo "configure: warning: wxSleep() function will not work" 1>&2
14034
14035 fi
14036 done
14037
14038
14039
14040 fi
14041
14042
14043
14044 fi
14045 done
14046
14047 fi
14048
14049 for ac_func in uname gethostname
14050 do
14051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14052 echo "configure:14053: checking for $ac_func" >&5
14053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14054 echo $ac_n "(cached) $ac_c" 1>&6
14055 else
14056 cat > conftest.$ac_ext <<EOF
14057 #line 14058 "configure"
14058 #include "confdefs.h"
14059 /* System header to define __stub macros and hopefully few prototypes,
14060 which can conflict with char $ac_func(); below. */
14061 #include <assert.h>
14062 /* Override any gcc2 internal prototype to avoid an error. */
14063 /* We use char because int might match the return type of a gcc2
14064 builtin and then its argument prototype would still apply. */
14065 char $ac_func();
14066
14067 int main() {
14068
14069 /* The GNU C library defines this for functions which it implements
14070 to always fail with ENOSYS. Some functions are actually named
14071 something starting with __ and the normal name is an alias. */
14072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14073 choke me
14074 #else
14075 $ac_func();
14076 #endif
14077
14078 ; return 0; }
14079 EOF
14080 if { (eval echo configure:14081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14081 rm -rf conftest*
14082 eval "ac_cv_func_$ac_func=yes"
14083 else
14084 echo "configure: failed program was:" >&5
14085 cat conftest.$ac_ext >&5
14086 rm -rf conftest*
14087 eval "ac_cv_func_$ac_func=no"
14088 fi
14089 rm -f conftest*
14090 fi
14091
14092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14093 echo "$ac_t""yes" 1>&6
14094 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14095 cat >> confdefs.h <<EOF
14096 #define $ac_tr_func 1
14097 EOF
14098 break
14099 else
14100 echo "$ac_t""no" 1>&6
14101 fi
14102 done
14103
14104
14105
14106 ac_ext=C
14107 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14108 ac_cpp='$CXXCPP $CPPFLAGS'
14109 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14110 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14111 cross_compiling=$ac_cv_prog_cxx_cross
14112
14113
14114 for ac_func in strtok_r
14115 do
14116 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14117 echo "configure:14118: checking for $ac_func" >&5
14118 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14119 echo $ac_n "(cached) $ac_c" 1>&6
14120 else
14121 cat > conftest.$ac_ext <<EOF
14122 #line 14123 "configure"
14123 #include "confdefs.h"
14124 /* System header to define __stub macros and hopefully few prototypes,
14125 which can conflict with char $ac_func(); below. */
14126 #include <assert.h>
14127 /* Override any gcc2 internal prototype to avoid an error. */
14128 #ifdef __cplusplus
14129 extern "C"
14130 #endif
14131 /* We use char because int might match the return type of a gcc2
14132 builtin and then its argument prototype would still apply. */
14133 char $ac_func();
14134
14135 int main() {
14136
14137 /* The GNU C library defines this for functions which it implements
14138 to always fail with ENOSYS. Some functions are actually named
14139 something starting with __ and the normal name is an alias. */
14140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14141 choke me
14142 #else
14143 $ac_func();
14144 #endif
14145
14146 ; return 0; }
14147 EOF
14148 if { (eval echo configure:14149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14149 rm -rf conftest*
14150 eval "ac_cv_func_$ac_func=yes"
14151 else
14152 echo "configure: failed program was:" >&5
14153 cat conftest.$ac_ext >&5
14154 rm -rf conftest*
14155 eval "ac_cv_func_$ac_func=no"
14156 fi
14157 rm -f conftest*
14158 fi
14159
14160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14161 echo "$ac_t""yes" 1>&6
14162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14163 cat >> confdefs.h <<EOF
14164 #define $ac_tr_func 1
14165 EOF
14166
14167 else
14168 echo "$ac_t""no" 1>&6
14169 fi
14170 done
14171
14172
14173 ac_ext=c
14174 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14175 ac_cpp='$CPP $CPPFLAGS'
14176 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14177 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14178 cross_compiling=$ac_cv_prog_cc_cross
14179
14180
14181 INET_LINK=
14182 for ac_func in inet_addr
14183 do
14184 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14185 echo "configure:14186: checking for $ac_func" >&5
14186 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14187 echo $ac_n "(cached) $ac_c" 1>&6
14188 else
14189 cat > conftest.$ac_ext <<EOF
14190 #line 14191 "configure"
14191 #include "confdefs.h"
14192 /* System header to define __stub macros and hopefully few prototypes,
14193 which can conflict with char $ac_func(); below. */
14194 #include <assert.h>
14195 /* Override any gcc2 internal prototype to avoid an error. */
14196 /* We use char because int might match the return type of a gcc2
14197 builtin and then its argument prototype would still apply. */
14198 char $ac_func();
14199
14200 int main() {
14201
14202 /* The GNU C library defines this for functions which it implements
14203 to always fail with ENOSYS. Some functions are actually named
14204 something starting with __ and the normal name is an alias. */
14205 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14206 choke me
14207 #else
14208 $ac_func();
14209 #endif
14210
14211 ; return 0; }
14212 EOF
14213 if { (eval echo configure:14214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14214 rm -rf conftest*
14215 eval "ac_cv_func_$ac_func=yes"
14216 else
14217 echo "configure: failed program was:" >&5
14218 cat conftest.$ac_ext >&5
14219 rm -rf conftest*
14220 eval "ac_cv_func_$ac_func=no"
14221 fi
14222 rm -f conftest*
14223 fi
14224
14225 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14226 echo "$ac_t""yes" 1>&6
14227 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14228 cat >> confdefs.h <<EOF
14229 #define $ac_tr_func 1
14230 EOF
14231 cat >> confdefs.h <<\EOF
14232 #define HAVE_INET_ADDR 1
14233 EOF
14234
14235 else
14236 echo "$ac_t""no" 1>&6
14237 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
14238 echo "configure:14239: checking for inet_addr in -lnsl" >&5
14239 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
14240 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14241 echo $ac_n "(cached) $ac_c" 1>&6
14242 else
14243 ac_save_LIBS="$LIBS"
14244 LIBS="-lnsl $LIBS"
14245 cat > conftest.$ac_ext <<EOF
14246 #line 14247 "configure"
14247 #include "confdefs.h"
14248 /* Override any gcc2 internal prototype to avoid an error. */
14249 /* We use char because int might match the return type of a gcc2
14250 builtin and then its argument prototype would still apply. */
14251 char inet_addr();
14252
14253 int main() {
14254 inet_addr()
14255 ; return 0; }
14256 EOF
14257 if { (eval echo configure:14258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14258 rm -rf conftest*
14259 eval "ac_cv_lib_$ac_lib_var=yes"
14260 else
14261 echo "configure: failed program was:" >&5
14262 cat conftest.$ac_ext >&5
14263 rm -rf conftest*
14264 eval "ac_cv_lib_$ac_lib_var=no"
14265 fi
14266 rm -f conftest*
14267 LIBS="$ac_save_LIBS"
14268
14269 fi
14270 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14271 echo "$ac_t""yes" 1>&6
14272 INET_LINK="nsl"
14273 else
14274 echo "$ac_t""no" 1>&6
14275 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
14276 echo "configure:14277: checking for inet_addr in -lresolv" >&5
14277 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
14278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14279 echo $ac_n "(cached) $ac_c" 1>&6
14280 else
14281 ac_save_LIBS="$LIBS"
14282 LIBS="-lresolv $LIBS"
14283 cat > conftest.$ac_ext <<EOF
14284 #line 14285 "configure"
14285 #include "confdefs.h"
14286 /* Override any gcc2 internal prototype to avoid an error. */
14287 /* We use char because int might match the return type of a gcc2
14288 builtin and then its argument prototype would still apply. */
14289 char inet_addr();
14290
14291 int main() {
14292 inet_addr()
14293 ; return 0; }
14294 EOF
14295 if { (eval echo configure:14296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14296 rm -rf conftest*
14297 eval "ac_cv_lib_$ac_lib_var=yes"
14298 else
14299 echo "configure: failed program was:" >&5
14300 cat conftest.$ac_ext >&5
14301 rm -rf conftest*
14302 eval "ac_cv_lib_$ac_lib_var=no"
14303 fi
14304 rm -f conftest*
14305 LIBS="$ac_save_LIBS"
14306
14307 fi
14308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14309 echo "$ac_t""yes" 1>&6
14310 INET_LINK="resolv"
14311
14312 else
14313 echo "$ac_t""no" 1>&6
14314 fi
14315
14316
14317 fi
14318
14319
14320
14321 fi
14322 done
14323
14324
14325 for ac_func in inet_aton
14326 do
14327 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14328 echo "configure:14329: checking for $ac_func" >&5
14329 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14330 echo $ac_n "(cached) $ac_c" 1>&6
14331 else
14332 cat > conftest.$ac_ext <<EOF
14333 #line 14334 "configure"
14334 #include "confdefs.h"
14335 /* System header to define __stub macros and hopefully few prototypes,
14336 which can conflict with char $ac_func(); below. */
14337 #include <assert.h>
14338 /* Override any gcc2 internal prototype to avoid an error. */
14339 /* We use char because int might match the return type of a gcc2
14340 builtin and then its argument prototype would still apply. */
14341 char $ac_func();
14342
14343 int main() {
14344
14345 /* The GNU C library defines this for functions which it implements
14346 to always fail with ENOSYS. Some functions are actually named
14347 something starting with __ and the normal name is an alias. */
14348 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14349 choke me
14350 #else
14351 $ac_func();
14352 #endif
14353
14354 ; return 0; }
14355 EOF
14356 if { (eval echo configure:14357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14357 rm -rf conftest*
14358 eval "ac_cv_func_$ac_func=yes"
14359 else
14360 echo "configure: failed program was:" >&5
14361 cat conftest.$ac_ext >&5
14362 rm -rf conftest*
14363 eval "ac_cv_func_$ac_func=no"
14364 fi
14365 rm -f conftest*
14366 fi
14367
14368 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14369 echo "$ac_t""yes" 1>&6
14370 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14371 cat >> confdefs.h <<EOF
14372 #define $ac_tr_func 1
14373 EOF
14374 cat >> confdefs.h <<\EOF
14375 #define HAVE_INET_ATON 1
14376 EOF
14377
14378 else
14379 echo "$ac_t""no" 1>&6
14380 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
14381 echo "configure:14382: checking for inet_aton in -l$INET_LINK" >&5
14382 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
14383 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14384 echo $ac_n "(cached) $ac_c" 1>&6
14385 else
14386 ac_save_LIBS="$LIBS"
14387 LIBS="-l$INET_LINK $LIBS"
14388 cat > conftest.$ac_ext <<EOF
14389 #line 14390 "configure"
14390 #include "confdefs.h"
14391 /* Override any gcc2 internal prototype to avoid an error. */
14392 /* We use char because int might match the return type of a gcc2
14393 builtin and then its argument prototype would still apply. */
14394 char inet_aton();
14395
14396 int main() {
14397 inet_aton()
14398 ; return 0; }
14399 EOF
14400 if { (eval echo configure:14401: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14401 rm -rf conftest*
14402 eval "ac_cv_lib_$ac_lib_var=yes"
14403 else
14404 echo "configure: failed program was:" >&5
14405 cat conftest.$ac_ext >&5
14406 rm -rf conftest*
14407 eval "ac_cv_lib_$ac_lib_var=no"
14408 fi
14409 rm -f conftest*
14410 LIBS="$ac_save_LIBS"
14411
14412 fi
14413 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14414 echo "$ac_t""yes" 1>&6
14415 cat >> confdefs.h <<\EOF
14416 #define HAVE_INET_ATON 1
14417 EOF
14418
14419 else
14420 echo "$ac_t""no" 1>&6
14421 fi
14422
14423
14424 fi
14425 done
14426
14427
14428 if test "x$INET_LINK" != "x"; then
14429 cat >> confdefs.h <<\EOF
14430 #define HAVE_INET_ADDR 1
14431 EOF
14432
14433 INET_LINK="-l$INET_LINK"
14434 fi
14435
14436 fi
14437
14438
14439 cat > confcache <<\EOF
14440 # This file is a shell script that caches the results of configure
14441 # tests run on this system so they can be shared between configure
14442 # scripts and configure runs. It is not useful on other systems.
14443 # If it contains results you don't want to keep, you may remove or edit it.
14444 #
14445 # By default, configure uses ./config.cache as the cache file,
14446 # creating it if it does not exist already. You can give configure
14447 # the --cache-file=FILE option to use a different cache file; that is
14448 # what configure does when it calls configure scripts in
14449 # subdirectories, so they share the cache.
14450 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14451 # config.status only pays attention to the cache file if you give it the
14452 # --recheck option to rerun configure.
14453 #
14454 EOF
14455 # The following way of writing the cache mishandles newlines in values,
14456 # but we know of no workaround that is simple, portable, and efficient.
14457 # So, don't put newlines in cache variables' values.
14458 # Ultrix sh set writes to stderr and can't be redirected directly,
14459 # and sets the high bit in the cache file unless we assign to the vars.
14460 (set) 2>&1 |
14461 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14462 *ac_space=\ *)
14463 # `set' does not quote correctly, so add quotes (double-quote substitution
14464 # turns \\\\ into \\, and sed turns \\ into \).
14465 sed -n \
14466 -e "s/'/'\\\\''/g" \
14467 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14468 ;;
14469 *)
14470 # `set' quotes correctly as required by POSIX, so do not add quotes.
14471 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14472 ;;
14473 esac >> confcache
14474 if cmp -s $cache_file confcache; then
14475 :
14476 else
14477 if test -w $cache_file; then
14478 echo "updating cache $cache_file"
14479 cat confcache > $cache_file
14480 else
14481 echo "not updating unwritable cache $cache_file"
14482 fi
14483 fi
14484 rm -f confcache
14485
14486
14487
14488 if test "$TOOLKIT" != "MSW"; then
14489
14490
14491 THREADS_LINK=
14492 THREADS_OBJ=
14493 CODE_GEN_FLAGS=
14494 CODE_GEN_FLAGS_CXX=
14495
14496 if test "$wxUSE_THREADS" = "yes" ; then
14497 if test "$wxUSE_WINE" = 1 ; then
14498 echo "configure: warning: Threads are not supported under WINE" 1>&2
14499 wxUSE_THREADS="no"
14500 elif test "$USE_BEOS" = 1; then
14501 echo "configure: warning: BeOS threads are not yet supported" 1>&2
14502 wxUSE_THREADS="no"
14503 fi
14504 fi
14505
14506 if test "$wxUSE_THREADS" = "yes" ; then
14507
14508 if test "$USE_AIX" = 1; then
14509 THREADS_LIB=pthreads
14510 else
14511 THREADS_LIB=pthread
14512 fi
14513
14514 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
14515 echo "configure:14516: checking for pthread_create in -l$THREADS_LIB" >&5
14516 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14517 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14518 echo $ac_n "(cached) $ac_c" 1>&6
14519 else
14520 ac_save_LIBS="$LIBS"
14521 LIBS="-l$THREADS_LIB $LIBS"
14522 cat > conftest.$ac_ext <<EOF
14523 #line 14524 "configure"
14524 #include "confdefs.h"
14525 /* Override any gcc2 internal prototype to avoid an error. */
14526 /* We use char because int might match the return type of a gcc2
14527 builtin and then its argument prototype would still apply. */
14528 char pthread_create();
14529
14530 int main() {
14531 pthread_create()
14532 ; return 0; }
14533 EOF
14534 if { (eval echo configure:14535: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14535 rm -rf conftest*
14536 eval "ac_cv_lib_$ac_lib_var=yes"
14537 else
14538 echo "configure: failed program was:" >&5
14539 cat conftest.$ac_ext >&5
14540 rm -rf conftest*
14541 eval "ac_cv_lib_$ac_lib_var=no"
14542 fi
14543 rm -f conftest*
14544 LIBS="$ac_save_LIBS"
14545
14546 fi
14547 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14548 echo "$ac_t""yes" 1>&6
14549
14550 THREADS_OBJ="threadpsx.lo"
14551 THREADS_LINK=$THREADS_LIB
14552
14553 else
14554 echo "$ac_t""no" 1>&6
14555
14556 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
14557 echo "configure:14558: checking for pthread_create in -lc_r" >&5
14558 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14559 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14560 echo $ac_n "(cached) $ac_c" 1>&6
14561 else
14562 ac_save_LIBS="$LIBS"
14563 LIBS="-lc_r $LIBS"
14564 cat > conftest.$ac_ext <<EOF
14565 #line 14566 "configure"
14566 #include "confdefs.h"
14567 /* Override any gcc2 internal prototype to avoid an error. */
14568 /* We use char because int might match the return type of a gcc2
14569 builtin and then its argument prototype would still apply. */
14570 char pthread_create();
14571
14572 int main() {
14573 pthread_create()
14574 ; return 0; }
14575 EOF
14576 if { (eval echo configure:14577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14577 rm -rf conftest*
14578 eval "ac_cv_lib_$ac_lib_var=yes"
14579 else
14580 echo "configure: failed program was:" >&5
14581 cat conftest.$ac_ext >&5
14582 rm -rf conftest*
14583 eval "ac_cv_lib_$ac_lib_var=no"
14584 fi
14585 rm -f conftest*
14586 LIBS="$ac_save_LIBS"
14587
14588 fi
14589 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14590 echo "$ac_t""yes" 1>&6
14591
14592 THREADS_OBJ="threadpsx.lo"
14593 THREADS_LINK="c_r"
14594
14595 else
14596 echo "$ac_t""no" 1>&6
14597
14598 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14599 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
14600 echo "configure:14601: checking for sys/prctl.h" >&5
14601 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14602 echo $ac_n "(cached) $ac_c" 1>&6
14603 else
14604 cat > conftest.$ac_ext <<EOF
14605 #line 14606 "configure"
14606 #include "confdefs.h"
14607 #include <sys/prctl.h>
14608 EOF
14609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14610 { (eval echo configure:14611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14612 if test -z "$ac_err"; then
14613 rm -rf conftest*
14614 eval "ac_cv_header_$ac_safe=yes"
14615 else
14616 echo "$ac_err" >&5
14617 echo "configure: failed program was:" >&5
14618 cat conftest.$ac_ext >&5
14619 rm -rf conftest*
14620 eval "ac_cv_header_$ac_safe=no"
14621 fi
14622 rm -f conftest*
14623 fi
14624 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14625 echo "$ac_t""yes" 1>&6
14626
14627 THREADS_OBJ="threadsgi.lo"
14628
14629 else
14630 echo "$ac_t""no" 1>&6
14631 fi
14632
14633
14634 fi
14635
14636
14637 fi
14638
14639
14640 if test -z "$THREADS_OBJ" ; then
14641 wxUSE_THREADS=no
14642 echo "configure: warning: No thread support on this system" 1>&2
14643 fi
14644 fi
14645
14646 if test "$wxUSE_THREADS" = "yes" ; then
14647 for ac_func in thr_setconcurrency
14648 do
14649 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14650 echo "configure:14651: checking for $ac_func" >&5
14651 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14652 echo $ac_n "(cached) $ac_c" 1>&6
14653 else
14654 cat > conftest.$ac_ext <<EOF
14655 #line 14656 "configure"
14656 #include "confdefs.h"
14657 /* System header to define __stub macros and hopefully few prototypes,
14658 which can conflict with char $ac_func(); below. */
14659 #include <assert.h>
14660 /* Override any gcc2 internal prototype to avoid an error. */
14661 /* We use char because int might match the return type of a gcc2
14662 builtin and then its argument prototype would still apply. */
14663 char $ac_func();
14664
14665 int main() {
14666
14667 /* The GNU C library defines this for functions which it implements
14668 to always fail with ENOSYS. Some functions are actually named
14669 something starting with __ and the normal name is an alias. */
14670 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14671 choke me
14672 #else
14673 $ac_func();
14674 #endif
14675
14676 ; return 0; }
14677 EOF
14678 if { (eval echo configure:14679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14679 rm -rf conftest*
14680 eval "ac_cv_func_$ac_func=yes"
14681 else
14682 echo "configure: failed program was:" >&5
14683 cat conftest.$ac_ext >&5
14684 rm -rf conftest*
14685 eval "ac_cv_func_$ac_func=no"
14686 fi
14687 rm -f conftest*
14688 fi
14689
14690 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14691 echo "$ac_t""yes" 1>&6
14692 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14693 cat >> confdefs.h <<EOF
14694 #define $ac_tr_func 1
14695 EOF
14696
14697 else
14698 echo "$ac_t""no" 1>&6
14699 fi
14700 done
14701
14702
14703
14704 for ac_hdr in sched.h
14705 do
14706 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14707 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14708 echo "configure:14709: checking for $ac_hdr" >&5
14709 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14710 echo $ac_n "(cached) $ac_c" 1>&6
14711 else
14712 cat > conftest.$ac_ext <<EOF
14713 #line 14714 "configure"
14714 #include "confdefs.h"
14715 #include <$ac_hdr>
14716 EOF
14717 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14718 { (eval echo configure:14719: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14719 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14720 if test -z "$ac_err"; then
14721 rm -rf conftest*
14722 eval "ac_cv_header_$ac_safe=yes"
14723 else
14724 echo "$ac_err" >&5
14725 echo "configure: failed program was:" >&5
14726 cat conftest.$ac_ext >&5
14727 rm -rf conftest*
14728 eval "ac_cv_header_$ac_safe=no"
14729 fi
14730 rm -f conftest*
14731 fi
14732 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14733 echo "$ac_t""yes" 1>&6
14734 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14735 cat >> confdefs.h <<EOF
14736 #define $ac_tr_hdr 1
14737 EOF
14738
14739 else
14740 echo "$ac_t""no" 1>&6
14741 fi
14742 done
14743
14744
14745 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
14746 echo "configure:14747: checking for sched_yield in -l$THREADS_LINK" >&5
14747 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14749 echo $ac_n "(cached) $ac_c" 1>&6
14750 else
14751 ac_save_LIBS="$LIBS"
14752 LIBS="-l$THREADS_LINK $LIBS"
14753 cat > conftest.$ac_ext <<EOF
14754 #line 14755 "configure"
14755 #include "confdefs.h"
14756 /* Override any gcc2 internal prototype to avoid an error. */
14757 /* We use char because int might match the return type of a gcc2
14758 builtin and then its argument prototype would still apply. */
14759 char sched_yield();
14760
14761 int main() {
14762 sched_yield()
14763 ; return 0; }
14764 EOF
14765 if { (eval echo configure:14766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14766 rm -rf conftest*
14767 eval "ac_cv_lib_$ac_lib_var=yes"
14768 else
14769 echo "configure: failed program was:" >&5
14770 cat conftest.$ac_ext >&5
14771 rm -rf conftest*
14772 eval "ac_cv_lib_$ac_lib_var=no"
14773 fi
14774 rm -f conftest*
14775 LIBS="$ac_save_LIBS"
14776
14777 fi
14778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14779 echo "$ac_t""yes" 1>&6
14780 cat >> confdefs.h <<\EOF
14781 #define HAVE_SCHED_YIELD 1
14782 EOF
14783
14784 else
14785 echo "$ac_t""no" 1>&6
14786 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
14787 echo "configure:14788: checking for sched_yield in -lposix4" >&5
14788 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14789 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14790 echo $ac_n "(cached) $ac_c" 1>&6
14791 else
14792 ac_save_LIBS="$LIBS"
14793 LIBS="-lposix4 $LIBS"
14794 cat > conftest.$ac_ext <<EOF
14795 #line 14796 "configure"
14796 #include "confdefs.h"
14797 /* Override any gcc2 internal prototype to avoid an error. */
14798 /* We use char because int might match the return type of a gcc2
14799 builtin and then its argument prototype would still apply. */
14800 char sched_yield();
14801
14802 int main() {
14803 sched_yield()
14804 ; return 0; }
14805 EOF
14806 if { (eval echo configure:14807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14807 rm -rf conftest*
14808 eval "ac_cv_lib_$ac_lib_var=yes"
14809 else
14810 echo "configure: failed program was:" >&5
14811 cat conftest.$ac_ext >&5
14812 rm -rf conftest*
14813 eval "ac_cv_lib_$ac_lib_var=no"
14814 fi
14815 rm -f conftest*
14816 LIBS="$ac_save_LIBS"
14817
14818 fi
14819 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14820 echo "$ac_t""yes" 1>&6
14821 cat >> confdefs.h <<\EOF
14822 #define HAVE_SCHED_YIELD 1
14823 EOF
14824 POSIX4_LINK="-lposix4"
14825 else
14826 echo "$ac_t""no" 1>&6
14827 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14828
14829 fi
14830
14831
14832 fi
14833
14834
14835 HAVE_PRIOR_FUNCS=0
14836 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
14837 echo "configure:14838: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
14838 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14839 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14840 echo $ac_n "(cached) $ac_c" 1>&6
14841 else
14842 ac_save_LIBS="$LIBS"
14843 LIBS="-l$THREADS_LINK $LIBS"
14844 cat > conftest.$ac_ext <<EOF
14845 #line 14846 "configure"
14846 #include "confdefs.h"
14847 /* Override any gcc2 internal prototype to avoid an error. */
14848 /* We use char because int might match the return type of a gcc2
14849 builtin and then its argument prototype would still apply. */
14850 char pthread_attr_getschedpolicy();
14851
14852 int main() {
14853 pthread_attr_getschedpolicy()
14854 ; return 0; }
14855 EOF
14856 if { (eval echo configure:14857: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14857 rm -rf conftest*
14858 eval "ac_cv_lib_$ac_lib_var=yes"
14859 else
14860 echo "configure: failed program was:" >&5
14861 cat conftest.$ac_ext >&5
14862 rm -rf conftest*
14863 eval "ac_cv_lib_$ac_lib_var=no"
14864 fi
14865 rm -f conftest*
14866 LIBS="$ac_save_LIBS"
14867
14868 fi
14869 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14870 echo "$ac_t""yes" 1>&6
14871 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
14872 echo "configure:14873: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
14873 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14874 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14875 echo $ac_n "(cached) $ac_c" 1>&6
14876 else
14877 ac_save_LIBS="$LIBS"
14878 LIBS="-l$THREADS_LINK $LIBS"
14879 cat > conftest.$ac_ext <<EOF
14880 #line 14881 "configure"
14881 #include "confdefs.h"
14882 /* Override any gcc2 internal prototype to avoid an error. */
14883 /* We use char because int might match the return type of a gcc2
14884 builtin and then its argument prototype would still apply. */
14885 char pthread_attr_setschedparam();
14886
14887 int main() {
14888 pthread_attr_setschedparam()
14889 ; return 0; }
14890 EOF
14891 if { (eval echo configure:14892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14892 rm -rf conftest*
14893 eval "ac_cv_lib_$ac_lib_var=yes"
14894 else
14895 echo "configure: failed program was:" >&5
14896 cat conftest.$ac_ext >&5
14897 rm -rf conftest*
14898 eval "ac_cv_lib_$ac_lib_var=no"
14899 fi
14900 rm -f conftest*
14901 LIBS="$ac_save_LIBS"
14902
14903 fi
14904 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14905 echo "$ac_t""yes" 1>&6
14906 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
14907 echo "configure:14908: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
14908 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14909 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14910 echo $ac_n "(cached) $ac_c" 1>&6
14911 else
14912 ac_save_LIBS="$LIBS"
14913 LIBS="-l$THREADS_LINK $LIBS"
14914 cat > conftest.$ac_ext <<EOF
14915 #line 14916 "configure"
14916 #include "confdefs.h"
14917 /* Override any gcc2 internal prototype to avoid an error. */
14918 /* We use char because int might match the return type of a gcc2
14919 builtin and then its argument prototype would still apply. */
14920 char sched_get_priority_max();
14921
14922 int main() {
14923 sched_get_priority_max()
14924 ; return 0; }
14925 EOF
14926 if { (eval echo configure:14927: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14927 rm -rf conftest*
14928 eval "ac_cv_lib_$ac_lib_var=yes"
14929 else
14930 echo "configure: failed program was:" >&5
14931 cat conftest.$ac_ext >&5
14932 rm -rf conftest*
14933 eval "ac_cv_lib_$ac_lib_var=no"
14934 fi
14935 rm -f conftest*
14936 LIBS="$ac_save_LIBS"
14937
14938 fi
14939 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14940 echo "$ac_t""yes" 1>&6
14941 HAVE_PRIOR_FUNCS=1
14942 else
14943 echo "$ac_t""no" 1>&6
14944 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
14945 echo "configure:14946: checking for sched_get_priority_max in -lposix4" >&5
14946 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14947 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14948 echo $ac_n "(cached) $ac_c" 1>&6
14949 else
14950 ac_save_LIBS="$LIBS"
14951 LIBS="-lposix4 $LIBS"
14952 cat > conftest.$ac_ext <<EOF
14953 #line 14954 "configure"
14954 #include "confdefs.h"
14955 /* Override any gcc2 internal prototype to avoid an error. */
14956 /* We use char because int might match the return type of a gcc2
14957 builtin and then its argument prototype would still apply. */
14958 char sched_get_priority_max();
14959
14960 int main() {
14961 sched_get_priority_max()
14962 ; return 0; }
14963 EOF
14964 if { (eval echo configure:14965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14965 rm -rf conftest*
14966 eval "ac_cv_lib_$ac_lib_var=yes"
14967 else
14968 echo "configure: failed program was:" >&5
14969 cat conftest.$ac_ext >&5
14970 rm -rf conftest*
14971 eval "ac_cv_lib_$ac_lib_var=no"
14972 fi
14973 rm -f conftest*
14974 LIBS="$ac_save_LIBS"
14975
14976 fi
14977 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14978 echo "$ac_t""yes" 1>&6
14979
14980 HAVE_PRIOR_FUNCS=1
14981 POSIX4_LINK="-lposix4"
14982
14983 else
14984 echo "$ac_t""no" 1>&6
14985 fi
14986
14987
14988 fi
14989
14990
14991 else
14992 echo "$ac_t""no" 1>&6
14993 fi
14994
14995
14996 else
14997 echo "$ac_t""no" 1>&6
14998 fi
14999
15000
15001 if test "$HAVE_PRIOR_FUNCS" = 1; then
15002 cat >> confdefs.h <<\EOF
15003 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
15004 EOF
15005
15006 else
15007 echo "configure: warning: Setting thread priority will not work" 1>&2
15008 fi
15009
15010 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
15011 echo "configure:15012: checking for pthread_cancel in -l$THREADS_LINK" >&5
15012 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
15013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15014 echo $ac_n "(cached) $ac_c" 1>&6
15015 else
15016 ac_save_LIBS="$LIBS"
15017 LIBS="-l$THREADS_LINK $LIBS"
15018 cat > conftest.$ac_ext <<EOF
15019 #line 15020 "configure"
15020 #include "confdefs.h"
15021 /* Override any gcc2 internal prototype to avoid an error. */
15022 /* We use char because int might match the return type of a gcc2
15023 builtin and then its argument prototype would still apply. */
15024 char pthread_cancel();
15025
15026 int main() {
15027 pthread_cancel()
15028 ; return 0; }
15029 EOF
15030 if { (eval echo configure:15031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15031 rm -rf conftest*
15032 eval "ac_cv_lib_$ac_lib_var=yes"
15033 else
15034 echo "configure: failed program was:" >&5
15035 cat conftest.$ac_ext >&5
15036 rm -rf conftest*
15037 eval "ac_cv_lib_$ac_lib_var=no"
15038 fi
15039 rm -f conftest*
15040 LIBS="$ac_save_LIBS"
15041
15042 fi
15043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15044 echo "$ac_t""yes" 1>&6
15045 cat >> confdefs.h <<\EOF
15046 #define HAVE_PTHREAD_CANCEL 1
15047 EOF
15048
15049 else
15050 echo "$ac_t""no" 1>&6
15051 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
15052 fi
15053
15054
15055 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
15056 echo "configure:15057: checking for pthread_cleanup_push/pop" >&5
15057 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15058 echo $ac_n "(cached) $ac_c" 1>&6
15059 else
15060
15061 cat > conftest.$ac_ext <<EOF
15062 #line 15063 "configure"
15063 #include "confdefs.h"
15064 #include <pthread.h>
15065 int main() {
15066
15067 pthread_cleanup_push(NULL, NULL);
15068 pthread_cleanup_pop(0);
15069
15070 ; return 0; }
15071 EOF
15072 if { (eval echo configure:15073: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15073 rm -rf conftest*
15074
15075 wx_cv_func_pthread_cleanup_push=yes
15076
15077 else
15078 echo "configure: failed program was:" >&5
15079 cat conftest.$ac_ext >&5
15080 rm -rf conftest*
15081
15082 wx_cv_func_pthread_cleanup_push=no
15083
15084 fi
15085 rm -f conftest*
15086
15087 fi
15088
15089 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
15090
15091 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
15092 cat >> confdefs.h <<\EOF
15093 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
15094 EOF
15095
15096 fi
15097
15098
15099 if test "x$wx_lib_glibc21" = "xyes"; then
15100 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
15101 fi
15102
15103 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
15104 echo "configure:15105: checking for pthread_mutexattr_t" >&5
15105 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
15106 echo $ac_n "(cached) $ac_c" 1>&6
15107 else
15108
15109 cat > conftest.$ac_ext <<EOF
15110 #line 15111 "configure"
15111 #include "confdefs.h"
15112 #include <pthread.h>
15113 int main() {
15114
15115 pthread_mutexattr_t attr;
15116 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
15117
15118 ; return 0; }
15119 EOF
15120 if { (eval echo configure:15121: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15121 rm -rf conftest*
15122
15123 wx_cv_type_pthread_mutexattr_t=yes
15124
15125 else
15126 echo "configure: failed program was:" >&5
15127 cat conftest.$ac_ext >&5
15128 rm -rf conftest*
15129
15130 wx_cv_type_pthread_mutexattr_t=no
15131
15132
15133 fi
15134 rm -f conftest*
15135
15136 fi
15137
15138 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
15139
15140 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
15141 cat >> confdefs.h <<\EOF
15142 #define HAVE_PTHREAD_MUTEXATTR_T 1
15143 EOF
15144
15145 else
15146 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
15147 echo "configure:15148: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
15148 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
15149 echo $ac_n "(cached) $ac_c" 1>&6
15150 else
15151
15152 cat > conftest.$ac_ext <<EOF
15153 #line 15154 "configure"
15154 #include "confdefs.h"
15155 #include <pthread.h>
15156 int main() {
15157
15158 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
15159
15160 ; return 0; }
15161 EOF
15162 if { (eval echo configure:15163: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15163 rm -rf conftest*
15164
15165 wx_cv_type_pthread_rec_mutex_init=yes
15166
15167 else
15168 echo "configure: failed program was:" >&5
15169 cat conftest.$ac_ext >&5
15170 rm -rf conftest*
15171
15172 wx_cv_type_pthread_rec_mutex_init=no
15173
15174
15175 fi
15176 rm -f conftest*
15177
15178 fi
15179
15180 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
15181 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
15182 cat >> confdefs.h <<\EOF
15183 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
15184 EOF
15185
15186 else
15187 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
15188 fi
15189 fi
15190
15191 THREADS_LINK="-l$THREADS_LINK"
15192
15193 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
15194 CPPFLAGS="${CFLAGS} -mt"
15195 CXXFLAGS="${CXXFLAGS} -mt"
15196 LDFLAGS="${LDFLAGS} -mt"
15197 fi
15198 fi
15199
15200 fi
15201
15202 if test "$wxUSE_THREADS" = "yes"; then
15203 cat >> confdefs.h <<\EOF
15204 #define wxUSE_THREADS 1
15205 EOF
15206
15207
15208 if test "$USE_DARWIN" != 1; then
15209 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15210 fi
15211
15212 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
15213 else
15214 if test "$ac_cv_func_strtok_r" = "yes"; then
15215 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
15216 echo "configure:15217: checking if -D_REENTRANT is needed" >&5
15217 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
15218 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15219 echo "$ac_t""yes" 1>&6
15220 else
15221 echo "$ac_t""no" 1>&6
15222 fi
15223 fi
15224 fi
15225
15226 if test "$WXGTK20" = 1 ; then
15227 cat >> confdefs.h <<EOF
15228 #define __WXGTK20__ $WXGTK20
15229 EOF
15230
15231 WXGTK12=1
15232 fi
15233
15234 if test "$WXGTK12" = 1 ; then
15235 cat >> confdefs.h <<EOF
15236 #define __WXGTK12__ $WXGTK12
15237 EOF
15238
15239 fi
15240
15241 if test "$WXGTK127" = 1 ; then
15242 cat >> confdefs.h <<EOF
15243 #define __WXGTK127__ $WXGTK127
15244 EOF
15245
15246 fi
15247
15248 WXDEBUG=
15249
15250 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15251 WXDEBUG="-g"
15252 wxUSE_OPTIMISE=no
15253 fi
15254
15255 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15256 wxUSE_DEBUG_INFO=yes
15257 WXDEBUG="-ggdb"
15258 fi
15259
15260 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
15261 cat >> confdefs.h <<\EOF
15262 #define WXDEBUG 1
15263 EOF
15264
15265 WXDEBUG_DEFINE="-D__WXDEBUG__"
15266 else
15267 if test "$wxUSE_GTK" = 1 ; then
15268 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15269 fi
15270 fi
15271
15272 if test "$wxUSE_MEM_TRACING" = "yes" ; then
15273 cat >> confdefs.h <<\EOF
15274 #define wxUSE_MEMORY_TRACING 1
15275 EOF
15276
15277 cat >> confdefs.h <<\EOF
15278 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
15279 EOF
15280
15281 cat >> confdefs.h <<\EOF
15282 #define wxUSE_DEBUG_NEW_ALWAYS 1
15283 EOF
15284
15285 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15286 fi
15287
15288 if test "$wxUSE_DMALLOC" = "yes" ; then
15289 DMALLOC_LINK="-ldmalloc"
15290 fi
15291
15292 PROFILE=
15293 if test "$wxUSE_PROFILE" = "yes" ; then
15294 PROFILE="-pg"
15295 fi
15296
15297 if test "$GCC" = yes ; then
15298 if test "$wxUSE_NO_RTTI" = "yes" ; then
15299 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
15300 fi
15301 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
15302 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
15303 fi
15304 if test "$wxUSE_PERMISSIVE" = "yes" ; then
15305 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
15306 fi
15307 if test "$wxUSE_NO_DEPS" = "no" ; then
15308 CFLAGS="-MMD ${CFLAGS}"
15309 CXXFLAGS="-MMD ${CXXFLAGS}"
15310 fi
15311 if test "$USE_WIN32" = 1 ; then
15312 # I'm not even really sure what this was ever added to solve,
15313 # but someone added it for mingw native builds, so I guess
15314 # they had a reason, right??
15315 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
15316 fi
15317 fi
15318
15319
15320 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15321 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15322 if test "$wxUSE_OPTIMISE" = "no" ; then
15323 OPTIMISE=
15324 else
15325 if test "$GCC" = yes ; then
15326 OPTIMISE="-O2"
15327 case "${host}" in
15328 i586-*-*|i686-*-* )
15329 OPTIMISE="${OPTIMISE} "
15330 ;;
15331 esac
15332 else
15333 OPTIMISE="-O"
15334 fi
15335 fi
15336
15337 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
15338 cat >> confdefs.h <<\EOF
15339 #define WXWIN_COMPATIBILITY_2 1
15340 EOF
15341
15342
15343 WXWIN_COMPATIBILITY_2_2="yes"
15344 fi
15345
15346 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
15347 cat >> confdefs.h <<\EOF
15348 #define WXWIN_COMPATIBILITY_2_2 1
15349 EOF
15350
15351 fi
15352
15353
15354 ZLIB_INCLUDE=
15355 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
15356 cat >> confdefs.h <<\EOF
15357 #define wxUSE_ZLIB 1
15358 EOF
15359
15360 if test "$wxUSE_ZLIB" = "yes" ; then
15361 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15362 else
15363 ZLIB_LINK=
15364 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15365 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
15366 echo "configure:15367: checking for zlib.h" >&5
15367 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15368 echo $ac_n "(cached) $ac_c" 1>&6
15369 else
15370 cat > conftest.$ac_ext <<EOF
15371 #line 15372 "configure"
15372 #include "confdefs.h"
15373 #include <zlib.h>
15374 EOF
15375 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15376 { (eval echo configure:15377: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15377 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15378 if test -z "$ac_err"; then
15379 rm -rf conftest*
15380 eval "ac_cv_header_$ac_safe=yes"
15381 else
15382 echo "$ac_err" >&5
15383 echo "configure: failed program was:" >&5
15384 cat conftest.$ac_ext >&5
15385 rm -rf conftest*
15386 eval "ac_cv_header_$ac_safe=no"
15387 fi
15388 rm -f conftest*
15389 fi
15390 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15391 echo "$ac_t""yes" 1>&6
15392 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
15393 echo "configure:15394: checking for deflate in -lz" >&5
15394 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15396 echo $ac_n "(cached) $ac_c" 1>&6
15397 else
15398 ac_save_LIBS="$LIBS"
15399 LIBS="-lz $LIBS"
15400 cat > conftest.$ac_ext <<EOF
15401 #line 15402 "configure"
15402 #include "confdefs.h"
15403 /* Override any gcc2 internal prototype to avoid an error. */
15404 /* We use char because int might match the return type of a gcc2
15405 builtin and then its argument prototype would still apply. */
15406 char deflate();
15407
15408 int main() {
15409 deflate()
15410 ; return 0; }
15411 EOF
15412 if { (eval echo configure:15413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15413 rm -rf conftest*
15414 eval "ac_cv_lib_$ac_lib_var=yes"
15415 else
15416 echo "configure: failed program was:" >&5
15417 cat conftest.$ac_ext >&5
15418 rm -rf conftest*
15419 eval "ac_cv_lib_$ac_lib_var=no"
15420 fi
15421 rm -f conftest*
15422 LIBS="$ac_save_LIBS"
15423
15424 fi
15425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15426 echo "$ac_t""yes" 1>&6
15427 ZLIB_LINK="-lz"
15428 else
15429 echo "$ac_t""no" 1>&6
15430 fi
15431
15432 else
15433 echo "$ac_t""no" 1>&6
15434 fi
15435
15436 if test "x$ZLIB_LINK" = "x" ; then
15437 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
15438 fi
15439 fi
15440 fi
15441
15442 PNG_INCLUDE=
15443 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
15444 cat >> confdefs.h <<\EOF
15445 #define wxUSE_LIBPNG 1
15446 EOF
15447
15448 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
15449 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
15450 wxUSE_LIBPNG=yes
15451 fi
15452
15453 if test "$wxUSE_LIBPNG" = "yes" ; then
15454 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15455 else
15456 PNG_LINK=
15457 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15458 echo $ac_n "checking for png.h""... $ac_c" 1>&6
15459 echo "configure:15460: checking for png.h" >&5
15460 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15461 echo $ac_n "(cached) $ac_c" 1>&6
15462 else
15463 cat > conftest.$ac_ext <<EOF
15464 #line 15465 "configure"
15465 #include "confdefs.h"
15466 #include <png.h>
15467 EOF
15468 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15469 { (eval echo configure:15470: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15470 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15471 if test -z "$ac_err"; then
15472 rm -rf conftest*
15473 eval "ac_cv_header_$ac_safe=yes"
15474 else
15475 echo "$ac_err" >&5
15476 echo "configure: failed program was:" >&5
15477 cat conftest.$ac_ext >&5
15478 rm -rf conftest*
15479 eval "ac_cv_header_$ac_safe=no"
15480 fi
15481 rm -f conftest*
15482 fi
15483 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15484 echo "$ac_t""yes" 1>&6
15485 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
15486 echo "configure:15487: checking for png_check_sig in -lpng" >&5
15487 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15488 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15489 echo $ac_n "(cached) $ac_c" 1>&6
15490 else
15491 ac_save_LIBS="$LIBS"
15492 LIBS="-lpng -lz -lm $LIBS"
15493 cat > conftest.$ac_ext <<EOF
15494 #line 15495 "configure"
15495 #include "confdefs.h"
15496 /* Override any gcc2 internal prototype to avoid an error. */
15497 /* We use char because int might match the return type of a gcc2
15498 builtin and then its argument prototype would still apply. */
15499 char png_check_sig();
15500
15501 int main() {
15502 png_check_sig()
15503 ; return 0; }
15504 EOF
15505 if { (eval echo configure:15506: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15506 rm -rf conftest*
15507 eval "ac_cv_lib_$ac_lib_var=yes"
15508 else
15509 echo "configure: failed program was:" >&5
15510 cat conftest.$ac_ext >&5
15511 rm -rf conftest*
15512 eval "ac_cv_lib_$ac_lib_var=no"
15513 fi
15514 rm -f conftest*
15515 LIBS="$ac_save_LIBS"
15516
15517 fi
15518 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15519 echo "$ac_t""yes" 1>&6
15520 PNG_LINK="-lpng"
15521 else
15522 echo "$ac_t""no" 1>&6
15523 fi
15524
15525
15526 else
15527 echo "$ac_t""no" 1>&6
15528 fi
15529
15530 if test "x$PNG_LINK" = "x" ; then
15531 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
15532 fi
15533 fi
15534
15535 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15536 fi
15537
15538 JPEG_INCLUDE=
15539 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
15540 cat >> confdefs.h <<\EOF
15541 #define wxUSE_LIBJPEG 1
15542 EOF
15543
15544 if test "$wxUSE_LIBJPEG" = "yes" ; then
15545 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15546 else
15547 JPEG_LINK=
15548 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
15549 echo "configure:15550: checking for jpeglib.h" >&5
15550 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
15551 echo $ac_n "(cached) $ac_c" 1>&6
15552 else
15553 cat > conftest.$ac_ext <<EOF
15554 #line 15555 "configure"
15555 #include "confdefs.h"
15556
15557 #undef HAVE_STDLIB_H
15558 #include <stdio.h>
15559 #include <jpeglib.h>
15560
15561 int main() {
15562
15563
15564 ; return 0; }
15565 EOF
15566 if { (eval echo configure:15567: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15567 rm -rf conftest*
15568 ac_cv_header_jpeglib_h=yes
15569 else
15570 echo "configure: failed program was:" >&5
15571 cat conftest.$ac_ext >&5
15572 rm -rf conftest*
15573 ac_cv_header_jpeglib_h=no
15574
15575 fi
15576 rm -f conftest*
15577
15578 fi
15579
15580 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15581
15582 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15583 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
15584 echo "configure:15585: checking for jpeg_read_header in -ljpeg" >&5
15585 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15587 echo $ac_n "(cached) $ac_c" 1>&6
15588 else
15589 ac_save_LIBS="$LIBS"
15590 LIBS="-ljpeg $LIBS"
15591 cat > conftest.$ac_ext <<EOF
15592 #line 15593 "configure"
15593 #include "confdefs.h"
15594 /* Override any gcc2 internal prototype to avoid an error. */
15595 /* We use char because int might match the return type of a gcc2
15596 builtin and then its argument prototype would still apply. */
15597 char jpeg_read_header();
15598
15599 int main() {
15600 jpeg_read_header()
15601 ; return 0; }
15602 EOF
15603 if { (eval echo configure:15604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15604 rm -rf conftest*
15605 eval "ac_cv_lib_$ac_lib_var=yes"
15606 else
15607 echo "configure: failed program was:" >&5
15608 cat conftest.$ac_ext >&5
15609 rm -rf conftest*
15610 eval "ac_cv_lib_$ac_lib_var=no"
15611 fi
15612 rm -f conftest*
15613 LIBS="$ac_save_LIBS"
15614
15615 fi
15616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15617 echo "$ac_t""yes" 1>&6
15618 JPEG_LINK="-ljpeg"
15619 else
15620 echo "$ac_t""no" 1>&6
15621 fi
15622
15623 fi
15624
15625 if test "x$JPEG_LINK" = "x" ; then
15626 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
15627 fi
15628 fi
15629 fi
15630
15631 TIFF_INCLUDE=
15632 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
15633 cat >> confdefs.h <<\EOF
15634 #define wxUSE_LIBTIFF 1
15635 EOF
15636
15637 if test "$wxUSE_LIBTIFF" = "yes" ; then
15638 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15639 else
15640 TIFF_LINK=
15641 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15642 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
15643 echo "configure:15644: checking for tiffio.h" >&5
15644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15645 echo $ac_n "(cached) $ac_c" 1>&6
15646 else
15647 cat > conftest.$ac_ext <<EOF
15648 #line 15649 "configure"
15649 #include "confdefs.h"
15650 #include <tiffio.h>
15651 EOF
15652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15653 { (eval echo configure:15654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15655 if test -z "$ac_err"; then
15656 rm -rf conftest*
15657 eval "ac_cv_header_$ac_safe=yes"
15658 else
15659 echo "$ac_err" >&5
15660 echo "configure: failed program was:" >&5
15661 cat conftest.$ac_ext >&5
15662 rm -rf conftest*
15663 eval "ac_cv_header_$ac_safe=no"
15664 fi
15665 rm -f conftest*
15666 fi
15667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15668 echo "$ac_t""yes" 1>&6
15669 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
15670 echo "configure:15671: checking for TIFFError in -ltiff" >&5
15671 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15673 echo $ac_n "(cached) $ac_c" 1>&6
15674 else
15675 ac_save_LIBS="$LIBS"
15676 LIBS="-ltiff -lm $LIBS"
15677 cat > conftest.$ac_ext <<EOF
15678 #line 15679 "configure"
15679 #include "confdefs.h"
15680 /* Override any gcc2 internal prototype to avoid an error. */
15681 /* We use char because int might match the return type of a gcc2
15682 builtin and then its argument prototype would still apply. */
15683 char TIFFError();
15684
15685 int main() {
15686 TIFFError()
15687 ; return 0; }
15688 EOF
15689 if { (eval echo configure:15690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15690 rm -rf conftest*
15691 eval "ac_cv_lib_$ac_lib_var=yes"
15692 else
15693 echo "configure: failed program was:" >&5
15694 cat conftest.$ac_ext >&5
15695 rm -rf conftest*
15696 eval "ac_cv_lib_$ac_lib_var=no"
15697 fi
15698 rm -f conftest*
15699 LIBS="$ac_save_LIBS"
15700
15701 fi
15702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15703 echo "$ac_t""yes" 1>&6
15704 TIFF_LINK="-ltiff"
15705 else
15706 echo "$ac_t""no" 1>&6
15707 fi
15708
15709 else
15710 echo "$ac_t""no" 1>&6
15711 fi
15712
15713 if test "x$TIFF_LINK" = "x" ; then
15714 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
15715 fi
15716 fi
15717 fi
15718
15719 FREETYPE_INCLUDE=
15720 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
15721 cat >> confdefs.h <<\EOF
15722 #define wxUSE_FREETYPE 1
15723 EOF
15724
15725 if test "$wxUSE_FREETYPE" = "yes" ; then
15726 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15727 else
15728 FREETYPE_LINK=
15729 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15730 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
15731 echo "configure:15732: checking for freetype.h" >&5
15732 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15733 echo $ac_n "(cached) $ac_c" 1>&6
15734 else
15735 cat > conftest.$ac_ext <<EOF
15736 #line 15737 "configure"
15737 #include "confdefs.h"
15738 #include <freetype.h>
15739 EOF
15740 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15741 { (eval echo configure:15742: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15742 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15743 if test -z "$ac_err"; then
15744 rm -rf conftest*
15745 eval "ac_cv_header_$ac_safe=yes"
15746 else
15747 echo "$ac_err" >&5
15748 echo "configure: failed program was:" >&5
15749 cat conftest.$ac_ext >&5
15750 rm -rf conftest*
15751 eval "ac_cv_header_$ac_safe=no"
15752 fi
15753 rm -f conftest*
15754 fi
15755 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15756 echo "$ac_t""yes" 1>&6
15757 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
15758 echo "configure:15759: checking for FT_Render_Glyph in -lfreetype" >&5
15759 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15760 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15761 echo $ac_n "(cached) $ac_c" 1>&6
15762 else
15763 ac_save_LIBS="$LIBS"
15764 LIBS="-lfreetype -lm $LIBS"
15765 cat > conftest.$ac_ext <<EOF
15766 #line 15767 "configure"
15767 #include "confdefs.h"
15768 /* Override any gcc2 internal prototype to avoid an error. */
15769 /* We use char because int might match the return type of a gcc2
15770 builtin and then its argument prototype would still apply. */
15771 char FT_Render_Glyph();
15772
15773 int main() {
15774 FT_Render_Glyph()
15775 ; return 0; }
15776 EOF
15777 if { (eval echo configure:15778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15778 rm -rf conftest*
15779 eval "ac_cv_lib_$ac_lib_var=yes"
15780 else
15781 echo "configure: failed program was:" >&5
15782 cat conftest.$ac_ext >&5
15783 rm -rf conftest*
15784 eval "ac_cv_lib_$ac_lib_var=no"
15785 fi
15786 rm -f conftest*
15787 LIBS="$ac_save_LIBS"
15788
15789 fi
15790 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15791 echo "$ac_t""yes" 1>&6
15792 FREETYPE_LINK="-lfreetype"
15793 else
15794 echo "$ac_t""no" 1>&6
15795 fi
15796
15797
15798 else
15799 echo "$ac_t""no" 1>&6
15800 fi
15801
15802 if test "x$FREETYPE_LINK" = "x" ; then
15803 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15804 fi
15805 fi
15806 fi
15807
15808
15809 if test "$wxUSE_GUI" = "yes"; then
15810 cat >> confdefs.h <<\EOF
15811 #define wxUSE_GUI 1
15812 EOF
15813
15814
15815 else
15816 cat >> confdefs.h <<\EOF
15817 #define wxUSE_NOGUI 1
15818 EOF
15819
15820 fi
15821
15822
15823 if test "$wxUSE_UNIX" = "yes"; then
15824 cat >> confdefs.h <<\EOF
15825 #define wxUSE_UNIX 1
15826 EOF
15827
15828 fi
15829
15830
15831 if test "$wxUSE_APPLE_IEEE" = "yes"; then
15832 cat >> confdefs.h <<\EOF
15833 #define wxUSE_APPLE_IEEE 1
15834 EOF
15835
15836 fi
15837
15838 if test "$wxUSE_TIMER" = "yes"; then
15839 cat >> confdefs.h <<\EOF
15840 #define wxUSE_TIMER 1
15841 EOF
15842
15843 fi
15844
15845 if test "$wxUSE_WAVE" = "yes"; then
15846 cat >> confdefs.h <<\EOF
15847 #define wxUSE_WAVE 1
15848 EOF
15849
15850 fi
15851
15852 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15853 cat >> confdefs.h <<\EOF
15854 #define wxUSE_CMDLINE_PARSER 1
15855 EOF
15856
15857 fi
15858
15859 if test "$wxUSE_STOPWATCH" = "yes"; then
15860 cat >> confdefs.h <<\EOF
15861 #define wxUSE_STOPWATCH 1
15862 EOF
15863
15864 fi
15865
15866 if test "$wxUSE_DATETIME" = "yes"; then
15867 cat >> confdefs.h <<\EOF
15868 #define wxUSE_DATETIME 1
15869 EOF
15870
15871 fi
15872
15873 if test "$wxUSE_TIMEDATE" = "yes"; then
15874 cat >> confdefs.h <<\EOF
15875 #define wxUSE_TIMEDATE 1
15876 EOF
15877
15878 fi
15879
15880 if test "$wxUSE_FILE" = "yes"; then
15881 cat >> confdefs.h <<\EOF
15882 #define wxUSE_FILE 1
15883 EOF
15884
15885 fi
15886
15887 if test "$wxUSE_FFILE" = "yes"; then
15888 cat >> confdefs.h <<\EOF
15889 #define wxUSE_FFILE 1
15890 EOF
15891
15892 fi
15893
15894 if test "$wxUSE_FILESYSTEM" = "yes"; then
15895 cat >> confdefs.h <<\EOF
15896 #define wxUSE_FILESYSTEM 1
15897 EOF
15898
15899 fi
15900
15901 if test "$wxUSE_FS_INET" = "yes"; then
15902 cat >> confdefs.h <<\EOF
15903 #define wxUSE_FS_INET 1
15904 EOF
15905
15906 fi
15907
15908 if test "$wxUSE_FS_ZIP" = "yes"; then
15909 cat >> confdefs.h <<\EOF
15910 #define wxUSE_FS_ZIP 1
15911 EOF
15912
15913 fi
15914
15915 if test "$wxUSE_ZIPSTREAM" = "yes"; then
15916 cat >> confdefs.h <<\EOF
15917 #define wxUSE_ZIPSTREAM 1
15918 EOF
15919
15920 fi
15921
15922 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15923 cat >> confdefs.h <<\EOF
15924 #define wxUSE_ON_FATAL_EXCEPTION 1
15925 EOF
15926
15927 fi
15928
15929 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15930 cat >> confdefs.h <<\EOF
15931 #define wxUSE_SNGLINST_CHECKER 1
15932 EOF
15933
15934 fi
15935
15936 if test "$wxUSE_BUSYINFO" = "yes"; then
15937 cat >> confdefs.h <<\EOF
15938 #define wxUSE_BUSYINFO 1
15939 EOF
15940
15941 fi
15942
15943 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15944 cat >> confdefs.h <<\EOF
15945 #define wxUSE_STD_IOSTREAM 1
15946 EOF
15947
15948 fi
15949
15950 if test "$wxUSE_TEXTFILE" = "yes"; then
15951 if test "$wxUSE_FILE" != "yes"; then
15952 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15953 else
15954 cat >> confdefs.h <<\EOF
15955 #define wxUSE_TEXTFILE 1
15956 EOF
15957
15958 fi
15959 fi
15960
15961 if test "$wxUSE_CONFIG" = "yes" ; then
15962 if test "$wxUSE_TEXTFILE" != "yes"; then
15963 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15964 else
15965 cat >> confdefs.h <<\EOF
15966 #define wxUSE_CONFIG 1
15967 EOF
15968
15969 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15970 fi
15971 fi
15972
15973 if test "$wxUSE_INTL" = "yes" ; then
15974 if test "$wxUSE_FILE" != "yes"; then
15975 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
15976 else
15977 cat >> confdefs.h <<\EOF
15978 #define wxUSE_INTL 1
15979 EOF
15980
15981 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
15982 GUIDIST="$GUIDIST INTL_DIST"
15983 fi
15984 fi
15985
15986 if test "$wxUSE_LOG" = "yes"; then
15987 cat >> confdefs.h <<\EOF
15988 #define wxUSE_LOG 1
15989 EOF
15990
15991
15992 if test "$wxUSE_LOGGUI" = "yes"; then
15993 cat >> confdefs.h <<\EOF
15994 #define wxUSE_LOGGUI 1
15995 EOF
15996
15997 fi
15998
15999 if test "$wxUSE_LOGWINDOW" = "yes"; then
16000 cat >> confdefs.h <<\EOF
16001 #define wxUSE_LOGWINDOW 1
16002 EOF
16003
16004 fi
16005 fi
16006
16007 if test "$wxUSE_LONGLONG" = "yes"; then
16008 cat >> confdefs.h <<\EOF
16009 #define wxUSE_LONGLONG 1
16010 EOF
16011
16012 fi
16013
16014 if test "$wxUSE_GEOMETRY" = "yes"; then
16015 cat >> confdefs.h <<\EOF
16016 #define wxUSE_GEOMETRY 1
16017 EOF
16018
16019 fi
16020
16021 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
16022 cat >> confdefs.h <<\EOF
16023 #define wxUSE_DIALUP_MANAGER 1
16024 EOF
16025
16026 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
16027 fi
16028
16029 if test "$wxUSE_STREAMS" = "yes" ; then
16030 cat >> confdefs.h <<\EOF
16031 #define wxUSE_STREAMS 1
16032 EOF
16033
16034 fi
16035
16036
16037 if test "$wxUSE_DATETIME" = "yes"; then
16038 for ac_func in strptime
16039 do
16040 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16041 echo "configure:16042: checking for $ac_func" >&5
16042 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16043 echo $ac_n "(cached) $ac_c" 1>&6
16044 else
16045 cat > conftest.$ac_ext <<EOF
16046 #line 16047 "configure"
16047 #include "confdefs.h"
16048 /* System header to define __stub macros and hopefully few prototypes,
16049 which can conflict with char $ac_func(); below. */
16050 #include <assert.h>
16051 /* Override any gcc2 internal prototype to avoid an error. */
16052 /* We use char because int might match the return type of a gcc2
16053 builtin and then its argument prototype would still apply. */
16054 char $ac_func();
16055
16056 int main() {
16057
16058 /* The GNU C library defines this for functions which it implements
16059 to always fail with ENOSYS. Some functions are actually named
16060 something starting with __ and the normal name is an alias. */
16061 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16062 choke me
16063 #else
16064 $ac_func();
16065 #endif
16066
16067 ; return 0; }
16068 EOF
16069 if { (eval echo configure:16070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16070 rm -rf conftest*
16071 eval "ac_cv_func_$ac_func=yes"
16072 else
16073 echo "configure: failed program was:" >&5
16074 cat conftest.$ac_ext >&5
16075 rm -rf conftest*
16076 eval "ac_cv_func_$ac_func=no"
16077 fi
16078 rm -f conftest*
16079 fi
16080
16081 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16082 echo "$ac_t""yes" 1>&6
16083 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16084 cat >> confdefs.h <<EOF
16085 #define $ac_tr_func 1
16086 EOF
16087
16088 else
16089 echo "$ac_t""no" 1>&6
16090 fi
16091 done
16092
16093
16094 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
16095 echo "configure:16096: checking for timezone variable in <time.h>" >&5
16096 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16097 echo $ac_n "(cached) $ac_c" 1>&6
16098 else
16099
16100 cat > conftest.$ac_ext <<EOF
16101 #line 16102 "configure"
16102 #include "confdefs.h"
16103
16104 #include <time.h>
16105
16106 int main() {
16107
16108 int tz;
16109 tz = timezone;
16110
16111 ; return 0; }
16112 EOF
16113 if { (eval echo configure:16114: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16114 rm -rf conftest*
16115
16116 wx_cv_var_timezone=timezone
16117
16118 else
16119 echo "configure: failed program was:" >&5
16120 cat conftest.$ac_ext >&5
16121 rm -rf conftest*
16122
16123 cat > conftest.$ac_ext <<EOF
16124 #line 16125 "configure"
16125 #include "confdefs.h"
16126
16127 #include <time.h>
16128
16129 int main() {
16130
16131 int tz;
16132 tz = _timezone;
16133
16134 ; return 0; }
16135 EOF
16136 if { (eval echo configure:16137: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16137 rm -rf conftest*
16138
16139 wx_cv_var_timezone=_timezone
16140
16141 else
16142 echo "configure: failed program was:" >&5
16143 cat conftest.$ac_ext >&5
16144 rm -rf conftest*
16145
16146 cat > conftest.$ac_ext <<EOF
16147 #line 16148 "configure"
16148 #include "confdefs.h"
16149
16150 #include <time.h>
16151
16152 int main() {
16153
16154 int tz;
16155 tz = __timezone;
16156
16157 ; return 0; }
16158 EOF
16159 if { (eval echo configure:16160: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16160 rm -rf conftest*
16161
16162 wx_cv_var_timezone=__timezone
16163
16164 else
16165 echo "configure: failed program was:" >&5
16166 cat conftest.$ac_ext >&5
16167 rm -rf conftest*
16168 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16169
16170 fi
16171 rm -f conftest*
16172
16173
16174 fi
16175 rm -f conftest*
16176
16177
16178 fi
16179 rm -f conftest*
16180
16181
16182 fi
16183
16184 echo "$ac_t""$wx_cv_var_timezone" 1>&6
16185
16186 cat >> confdefs.h <<EOF
16187 #define WX_TIMEZONE $wx_cv_var_timezone
16188 EOF
16189
16190
16191 for ac_func in localtime
16192 do
16193 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16194 echo "configure:16195: checking for $ac_func" >&5
16195 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16196 echo $ac_n "(cached) $ac_c" 1>&6
16197 else
16198 cat > conftest.$ac_ext <<EOF
16199 #line 16200 "configure"
16200 #include "confdefs.h"
16201 /* System header to define __stub macros and hopefully few prototypes,
16202 which can conflict with char $ac_func(); below. */
16203 #include <assert.h>
16204 /* Override any gcc2 internal prototype to avoid an error. */
16205 /* We use char because int might match the return type of a gcc2
16206 builtin and then its argument prototype would still apply. */
16207 char $ac_func();
16208
16209 int main() {
16210
16211 /* The GNU C library defines this for functions which it implements
16212 to always fail with ENOSYS. Some functions are actually named
16213 something starting with __ and the normal name is an alias. */
16214 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16215 choke me
16216 #else
16217 $ac_func();
16218 #endif
16219
16220 ; return 0; }
16221 EOF
16222 if { (eval echo configure:16223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16223 rm -rf conftest*
16224 eval "ac_cv_func_$ac_func=yes"
16225 else
16226 echo "configure: failed program was:" >&5
16227 cat conftest.$ac_ext >&5
16228 rm -rf conftest*
16229 eval "ac_cv_func_$ac_func=no"
16230 fi
16231 rm -f conftest*
16232 fi
16233
16234 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16235 echo "$ac_t""yes" 1>&6
16236 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16237 cat >> confdefs.h <<EOF
16238 #define $ac_tr_func 1
16239 EOF
16240
16241 else
16242 echo "$ac_t""no" 1>&6
16243 fi
16244 done
16245
16246
16247 if test "$ac_cv_func_localtime" = "yes"; then
16248 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
16249 echo "configure:16250: checking for tm_gmtoff in struct tm" >&5
16250 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16251 echo $ac_n "(cached) $ac_c" 1>&6
16252 else
16253
16254 cat > conftest.$ac_ext <<EOF
16255 #line 16256 "configure"
16256 #include "confdefs.h"
16257
16258 #include <time.h>
16259
16260 int main() {
16261
16262 struct tm tm;
16263 tm.tm_gmtoff++;
16264
16265 ; return 0; }
16266 EOF
16267 if { (eval echo configure:16268: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16268 rm -rf conftest*
16269
16270 wx_cv_struct_tm_has_gmtoff=yes
16271
16272 else
16273 echo "configure: failed program was:" >&5
16274 cat conftest.$ac_ext >&5
16275 rm -rf conftest*
16276 wx_cv_struct_tm_has_gmtoff=no
16277
16278 fi
16279 rm -f conftest*
16280
16281 fi
16282
16283 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
16284 fi
16285
16286 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16287 cat >> confdefs.h <<\EOF
16288 #define WX_GMTOFF_IN_TM 1
16289 EOF
16290
16291 fi
16292
16293 for ac_func in gettimeofday ftime
16294 do
16295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16296 echo "configure:16297: checking for $ac_func" >&5
16297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16298 echo $ac_n "(cached) $ac_c" 1>&6
16299 else
16300 cat > conftest.$ac_ext <<EOF
16301 #line 16302 "configure"
16302 #include "confdefs.h"
16303 /* System header to define __stub macros and hopefully few prototypes,
16304 which can conflict with char $ac_func(); below. */
16305 #include <assert.h>
16306 /* Override any gcc2 internal prototype to avoid an error. */
16307 /* We use char because int might match the return type of a gcc2
16308 builtin and then its argument prototype would still apply. */
16309 char $ac_func();
16310
16311 int main() {
16312
16313 /* The GNU C library defines this for functions which it implements
16314 to always fail with ENOSYS. Some functions are actually named
16315 something starting with __ and the normal name is an alias. */
16316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16317 choke me
16318 #else
16319 $ac_func();
16320 #endif
16321
16322 ; return 0; }
16323 EOF
16324 if { (eval echo configure:16325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16325 rm -rf conftest*
16326 eval "ac_cv_func_$ac_func=yes"
16327 else
16328 echo "configure: failed program was:" >&5
16329 cat conftest.$ac_ext >&5
16330 rm -rf conftest*
16331 eval "ac_cv_func_$ac_func=no"
16332 fi
16333 rm -f conftest*
16334 fi
16335
16336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16337 echo "$ac_t""yes" 1>&6
16338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16339 cat >> confdefs.h <<EOF
16340 #define $ac_tr_func 1
16341 EOF
16342 break
16343 else
16344 echo "$ac_t""no" 1>&6
16345 fi
16346 done
16347
16348
16349 if test "$ac_cv_func_gettimeofday" = "yes"; then
16350 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16351 echo "configure:16352: checking whether gettimeofday takes two arguments" >&5
16352 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16353 echo $ac_n "(cached) $ac_c" 1>&6
16354 else
16355
16356
16357 ac_ext=C
16358 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16359 ac_cpp='$CXXCPP $CPPFLAGS'
16360 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16361 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16362 cross_compiling=$ac_cv_prog_cxx_cross
16363
16364
16365 cat > conftest.$ac_ext <<EOF
16366 #line 16367 "configure"
16367 #include "confdefs.h"
16368
16369 #include <sys/time.h>
16370 #include <unistd.h>
16371
16372 int main() {
16373
16374 struct timeval tv;
16375 gettimeofday(&tv, NULL);
16376
16377 ; return 0; }
16378 EOF
16379 if { (eval echo configure:16380: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16380 rm -rf conftest*
16381 wx_cv_func_gettimeofday_has_2_args=yes
16382 else
16383 echo "configure: failed program was:" >&5
16384 cat conftest.$ac_ext >&5
16385 rm -rf conftest*
16386 cat > conftest.$ac_ext <<EOF
16387 #line 16388 "configure"
16388 #include "confdefs.h"
16389
16390 #include <sys/time.h>
16391 #include <unistd.h>
16392
16393 int main() {
16394
16395 struct timeval tv;
16396 gettimeofday(&tv);
16397
16398 ; return 0; }
16399 EOF
16400 if { (eval echo configure:16401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16401 rm -rf conftest*
16402 wx_cv_func_gettimeofday_has_2_args=no
16403 else
16404 echo "configure: failed program was:" >&5
16405 cat conftest.$ac_ext >&5
16406 rm -rf conftest*
16407
16408 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16409 wx_cv_func_gettimeofday_has_2_args=unknown
16410
16411
16412 fi
16413 rm -f conftest*
16414
16415 fi
16416 rm -f conftest*
16417 ac_ext=c
16418 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16419 ac_cpp='$CPP $CPPFLAGS'
16420 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16421 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16422 cross_compiling=$ac_cv_prog_cc_cross
16423
16424
16425 fi
16426
16427 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16428
16429 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16430 cat >> confdefs.h <<\EOF
16431 #define WX_GETTIMEOFDAY_NO_TZ 1
16432 EOF
16433
16434 fi
16435 fi
16436
16437 cat >> confdefs.h <<\EOF
16438 #define wxUSE_TIMEDATE 1
16439 EOF
16440
16441 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16442 fi
16443
16444
16445 if test "$TOOLKIT" != "MSW"; then
16446
16447 if test "$wxUSE_SOCKETS" = "yes"; then
16448 echo $ac_n "checking for socket""... $ac_c" 1>&6
16449 echo "configure:16450: checking for socket" >&5
16450 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16451 echo $ac_n "(cached) $ac_c" 1>&6
16452 else
16453 cat > conftest.$ac_ext <<EOF
16454 #line 16455 "configure"
16455 #include "confdefs.h"
16456 /* System header to define __stub macros and hopefully few prototypes,
16457 which can conflict with char socket(); below. */
16458 #include <assert.h>
16459 /* Override any gcc2 internal prototype to avoid an error. */
16460 /* We use char because int might match the return type of a gcc2
16461 builtin and then its argument prototype would still apply. */
16462 char socket();
16463
16464 int main() {
16465
16466 /* The GNU C library defines this for functions which it implements
16467 to always fail with ENOSYS. Some functions are actually named
16468 something starting with __ and the normal name is an alias. */
16469 #if defined (__stub_socket) || defined (__stub___socket)
16470 choke me
16471 #else
16472 socket();
16473 #endif
16474
16475 ; return 0; }
16476 EOF
16477 if { (eval echo configure:16478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16478 rm -rf conftest*
16479 eval "ac_cv_func_socket=yes"
16480 else
16481 echo "configure: failed program was:" >&5
16482 cat conftest.$ac_ext >&5
16483 rm -rf conftest*
16484 eval "ac_cv_func_socket=no"
16485 fi
16486 rm -f conftest*
16487 fi
16488
16489 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16490 echo "$ac_t""yes" 1>&6
16491 :
16492 else
16493 echo "$ac_t""no" 1>&6
16494 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16495 echo "configure:16496: checking for socket in -lsocket" >&5
16496 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16498 echo $ac_n "(cached) $ac_c" 1>&6
16499 else
16500 ac_save_LIBS="$LIBS"
16501 LIBS="-lsocket $LIBS"
16502 cat > conftest.$ac_ext <<EOF
16503 #line 16504 "configure"
16504 #include "confdefs.h"
16505 /* Override any gcc2 internal prototype to avoid an error. */
16506 /* We use char because int might match the return type of a gcc2
16507 builtin and then its argument prototype would still apply. */
16508 char socket();
16509
16510 int main() {
16511 socket()
16512 ; return 0; }
16513 EOF
16514 if { (eval echo configure:16515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16515 rm -rf conftest*
16516 eval "ac_cv_lib_$ac_lib_var=yes"
16517 else
16518 echo "configure: failed program was:" >&5
16519 cat conftest.$ac_ext >&5
16520 rm -rf conftest*
16521 eval "ac_cv_lib_$ac_lib_var=no"
16522 fi
16523 rm -f conftest*
16524 LIBS="$ac_save_LIBS"
16525
16526 fi
16527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16528 echo "$ac_t""yes" 1>&6
16529 INET_LINK="$INET_LINK -lsocket"
16530 else
16531 echo "$ac_t""no" 1>&6
16532
16533 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16534 wxUSE_SOCKETS=no
16535
16536
16537 fi
16538
16539
16540 fi
16541
16542 fi
16543
16544
16545 if test "$wxUSE_SOCKETS" = "yes" ; then
16546 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16547 echo "configure:16548: checking what is the type of the third argument of getsockname" >&5
16548 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16549 echo $ac_n "(cached) $ac_c" 1>&6
16550 else
16551
16552
16553 ac_ext=C
16554 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16555 ac_cpp='$CXXCPP $CPPFLAGS'
16556 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16557 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16558 cross_compiling=$ac_cv_prog_cxx_cross
16559
16560
16561 cat > conftest.$ac_ext <<EOF
16562 #line 16563 "configure"
16563 #include "confdefs.h"
16564
16565 #include <sys/types.h>
16566 #include <sys/socket.h>
16567
16568 int main() {
16569
16570 socklen_t len;
16571 getsockname(0, 0, &len);
16572
16573 ; return 0; }
16574 EOF
16575 if { (eval echo configure:16576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16576 rm -rf conftest*
16577 wx_cv_type_getsockname3=socklen_t
16578 else
16579 echo "configure: failed program was:" >&5
16580 cat conftest.$ac_ext >&5
16581 rm -rf conftest*
16582 cat > conftest.$ac_ext <<EOF
16583 #line 16584 "configure"
16584 #include "confdefs.h"
16585
16586 #include <sys/types.h>
16587 #include <sys/socket.h>
16588
16589 int main() {
16590
16591 size_t len;
16592 getsockname(0, 0, &len);
16593
16594 ; return 0; }
16595 EOF
16596 if { (eval echo configure:16597: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16597 rm -rf conftest*
16598 wx_cv_type_getsockname3=size_t
16599 else
16600 echo "configure: failed program was:" >&5
16601 cat conftest.$ac_ext >&5
16602 rm -rf conftest*
16603 cat > conftest.$ac_ext <<EOF
16604 #line 16605 "configure"
16605 #include "confdefs.h"
16606
16607 #include <sys/types.h>
16608 #include <sys/socket.h>
16609
16610 int main() {
16611
16612 int len;
16613 getsockname(0, 0, &len);
16614
16615 ; return 0; }
16616 EOF
16617 if { (eval echo configure:16618: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16618 rm -rf conftest*
16619 wx_cv_type_getsockname3=int
16620 else
16621 echo "configure: failed program was:" >&5
16622 cat conftest.$ac_ext >&5
16623 rm -rf conftest*
16624 wx_cv_type_getsockname3=unknown
16625
16626 fi
16627 rm -f conftest*
16628
16629 fi
16630 rm -f conftest*
16631
16632 fi
16633 rm -f conftest*
16634
16635 ac_ext=c
16636 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16637 ac_cpp='$CPP $CPPFLAGS'
16638 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16639 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16640 cross_compiling=$ac_cv_prog_cc_cross
16641
16642
16643 fi
16644
16645 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
16646
16647 if test "$wx_cv_type_getsockname3" = "unknown"; then
16648 wxUSE_SOCKETS=no
16649 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16650 else
16651 cat >> confdefs.h <<EOF
16652 #define SOCKLEN_T $wx_cv_type_getsockname3
16653 EOF
16654
16655 fi
16656 fi
16657 fi
16658
16659 if test "$wxUSE_SOCKETS" = "yes" ; then
16660 cat >> confdefs.h <<\EOF
16661 #define wxUSE_SOCKETS 1
16662 EOF
16663
16664 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
16665 fi
16666
16667
16668 if test "$wxUSE_GUI" = "yes"; then
16669
16670 if test "$TOOLKIT" != "MSW"; then
16671 if test "$wxUSE_JOYSTICK" = "yes"; then
16672 for ac_hdr in linux/joystick.h
16673 do
16674 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16675 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16676 echo "configure:16677: checking for $ac_hdr" >&5
16677 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16678 echo $ac_n "(cached) $ac_c" 1>&6
16679 else
16680 cat > conftest.$ac_ext <<EOF
16681 #line 16682 "configure"
16682 #include "confdefs.h"
16683 #include <$ac_hdr>
16684 EOF
16685 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16686 { (eval echo configure:16687: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16687 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16688 if test -z "$ac_err"; then
16689 rm -rf conftest*
16690 eval "ac_cv_header_$ac_safe=yes"
16691 else
16692 echo "$ac_err" >&5
16693 echo "configure: failed program was:" >&5
16694 cat conftest.$ac_ext >&5
16695 rm -rf conftest*
16696 eval "ac_cv_header_$ac_safe=no"
16697 fi
16698 rm -f conftest*
16699 fi
16700 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16701 echo "$ac_t""yes" 1>&6
16702 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16703 cat >> confdefs.h <<EOF
16704 #define $ac_tr_hdr 1
16705 EOF
16706
16707 else
16708 echo "$ac_t""no" 1>&6
16709 fi
16710 done
16711
16712 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16713 wxUSE_JOYSTICK=no
16714 echo "configure: warning: Joystick not supported by this system" 1>&2
16715 fi
16716 fi
16717 fi
16718
16719 if test "$wxUSE_JOYSTICK" = "yes"; then
16720 cat >> confdefs.h <<\EOF
16721 #define wxUSE_JOYSTICK 1
16722 EOF
16723
16724 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16725 fi
16726 fi
16727
16728
16729 if test "$TOOLKIT" != "MSW"; then
16730
16731 HAVE_DL_FUNCS=0
16732 HAVE_SHL_FUNCS=0
16733 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16734 if test "$USE_DARWIN" = 1; then
16735 HAVE_DL_FUNCS=1
16736 else
16737 for ac_func in dlopen
16738 do
16739 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16740 echo "configure:16741: checking for $ac_func" >&5
16741 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16742 echo $ac_n "(cached) $ac_c" 1>&6
16743 else
16744 cat > conftest.$ac_ext <<EOF
16745 #line 16746 "configure"
16746 #include "confdefs.h"
16747 /* System header to define __stub macros and hopefully few prototypes,
16748 which can conflict with char $ac_func(); below. */
16749 #include <assert.h>
16750 /* Override any gcc2 internal prototype to avoid an error. */
16751 /* We use char because int might match the return type of a gcc2
16752 builtin and then its argument prototype would still apply. */
16753 char $ac_func();
16754
16755 int main() {
16756
16757 /* The GNU C library defines this for functions which it implements
16758 to always fail with ENOSYS. Some functions are actually named
16759 something starting with __ and the normal name is an alias. */
16760 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16761 choke me
16762 #else
16763 $ac_func();
16764 #endif
16765
16766 ; return 0; }
16767 EOF
16768 if { (eval echo configure:16769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16769 rm -rf conftest*
16770 eval "ac_cv_func_$ac_func=yes"
16771 else
16772 echo "configure: failed program was:" >&5
16773 cat conftest.$ac_ext >&5
16774 rm -rf conftest*
16775 eval "ac_cv_func_$ac_func=no"
16776 fi
16777 rm -f conftest*
16778 fi
16779
16780 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16781 echo "$ac_t""yes" 1>&6
16782 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16783 cat >> confdefs.h <<EOF
16784 #define $ac_tr_func 1
16785 EOF
16786
16787 cat >> confdefs.h <<\EOF
16788 #define HAVE_DLOPEN 1
16789 EOF
16790
16791 HAVE_DL_FUNCS=1
16792
16793 else
16794 echo "$ac_t""no" 1>&6
16795 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
16796 echo "configure:16797: checking for dlopen in -ldl" >&5
16797 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16798 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16799 echo $ac_n "(cached) $ac_c" 1>&6
16800 else
16801 ac_save_LIBS="$LIBS"
16802 LIBS="-ldl $LIBS"
16803 cat > conftest.$ac_ext <<EOF
16804 #line 16805 "configure"
16805 #include "confdefs.h"
16806 /* Override any gcc2 internal prototype to avoid an error. */
16807 /* We use char because int might match the return type of a gcc2
16808 builtin and then its argument prototype would still apply. */
16809 char dlopen();
16810
16811 int main() {
16812 dlopen()
16813 ; return 0; }
16814 EOF
16815 if { (eval echo configure:16816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16816 rm -rf conftest*
16817 eval "ac_cv_lib_$ac_lib_var=yes"
16818 else
16819 echo "configure: failed program was:" >&5
16820 cat conftest.$ac_ext >&5
16821 rm -rf conftest*
16822 eval "ac_cv_lib_$ac_lib_var=no"
16823 fi
16824 rm -f conftest*
16825 LIBS="$ac_save_LIBS"
16826
16827 fi
16828 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16829 echo "$ac_t""yes" 1>&6
16830
16831 cat >> confdefs.h <<\EOF
16832 #define HAVE_DLOPEN 1
16833 EOF
16834
16835 HAVE_DL_FUNCS=1
16836 LIBS="$LIBS -ldl"
16837
16838 else
16839 echo "$ac_t""no" 1>&6
16840
16841 for ac_func in shl_load
16842 do
16843 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16844 echo "configure:16845: checking for $ac_func" >&5
16845 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16846 echo $ac_n "(cached) $ac_c" 1>&6
16847 else
16848 cat > conftest.$ac_ext <<EOF
16849 #line 16850 "configure"
16850 #include "confdefs.h"
16851 /* System header to define __stub macros and hopefully few prototypes,
16852 which can conflict with char $ac_func(); below. */
16853 #include <assert.h>
16854 /* Override any gcc2 internal prototype to avoid an error. */
16855 /* We use char because int might match the return type of a gcc2
16856 builtin and then its argument prototype would still apply. */
16857 char $ac_func();
16858
16859 int main() {
16860
16861 /* The GNU C library defines this for functions which it implements
16862 to always fail with ENOSYS. Some functions are actually named
16863 something starting with __ and the normal name is an alias. */
16864 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16865 choke me
16866 #else
16867 $ac_func();
16868 #endif
16869
16870 ; return 0; }
16871 EOF
16872 if { (eval echo configure:16873: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16873 rm -rf conftest*
16874 eval "ac_cv_func_$ac_func=yes"
16875 else
16876 echo "configure: failed program was:" >&5
16877 cat conftest.$ac_ext >&5
16878 rm -rf conftest*
16879 eval "ac_cv_func_$ac_func=no"
16880 fi
16881 rm -f conftest*
16882 fi
16883
16884 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16885 echo "$ac_t""yes" 1>&6
16886 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16887 cat >> confdefs.h <<EOF
16888 #define $ac_tr_func 1
16889 EOF
16890
16891 cat >> confdefs.h <<\EOF
16892 #define HAVE_SHL_LOAD 1
16893 EOF
16894
16895 HAVE_SHL_FUNCS=1
16896
16897 else
16898 echo "$ac_t""no" 1>&6
16899 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16900 echo "configure:16901: checking for dld in -lshl_load" >&5
16901 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16902 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16903 echo $ac_n "(cached) $ac_c" 1>&6
16904 else
16905 ac_save_LIBS="$LIBS"
16906 LIBS="-lshl_load $LIBS"
16907 cat > conftest.$ac_ext <<EOF
16908 #line 16909 "configure"
16909 #include "confdefs.h"
16910 /* Override any gcc2 internal prototype to avoid an error. */
16911 /* We use char because int might match the return type of a gcc2
16912 builtin and then its argument prototype would still apply. */
16913 char dld();
16914
16915 int main() {
16916 dld()
16917 ; return 0; }
16918 EOF
16919 if { (eval echo configure:16920: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16920 rm -rf conftest*
16921 eval "ac_cv_lib_$ac_lib_var=yes"
16922 else
16923 echo "configure: failed program was:" >&5
16924 cat conftest.$ac_ext >&5
16925 rm -rf conftest*
16926 eval "ac_cv_lib_$ac_lib_var=no"
16927 fi
16928 rm -f conftest*
16929 LIBS="$ac_save_LIBS"
16930
16931 fi
16932 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16933 echo "$ac_t""yes" 1>&6
16934
16935 HAVE_SHL_FUNCS=1
16936 LIBS="$LIBS -ldld"
16937
16938 else
16939 echo "$ac_t""no" 1>&6
16940 fi
16941
16942
16943 fi
16944 done
16945
16946
16947 fi
16948
16949
16950 fi
16951 done
16952
16953
16954 if test "$HAVE_DL_FUNCS" = 1; then
16955 for ac_func in dlerror
16956 do
16957 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16958 echo "configure:16959: checking for $ac_func" >&5
16959 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16960 echo $ac_n "(cached) $ac_c" 1>&6
16961 else
16962 cat > conftest.$ac_ext <<EOF
16963 #line 16964 "configure"
16964 #include "confdefs.h"
16965 /* System header to define __stub macros and hopefully few prototypes,
16966 which can conflict with char $ac_func(); below. */
16967 #include <assert.h>
16968 /* Override any gcc2 internal prototype to avoid an error. */
16969 /* We use char because int might match the return type of a gcc2
16970 builtin and then its argument prototype would still apply. */
16971 char $ac_func();
16972
16973 int main() {
16974
16975 /* The GNU C library defines this for functions which it implements
16976 to always fail with ENOSYS. Some functions are actually named
16977 something starting with __ and the normal name is an alias. */
16978 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16979 choke me
16980 #else
16981 $ac_func();
16982 #endif
16983
16984 ; return 0; }
16985 EOF
16986 if { (eval echo configure:16987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16987 rm -rf conftest*
16988 eval "ac_cv_func_$ac_func=yes"
16989 else
16990 echo "configure: failed program was:" >&5
16991 cat conftest.$ac_ext >&5
16992 rm -rf conftest*
16993 eval "ac_cv_func_$ac_func=no"
16994 fi
16995 rm -f conftest*
16996 fi
16997
16998 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16999 echo "$ac_t""yes" 1>&6
17000 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17001 cat >> confdefs.h <<EOF
17002 #define $ac_tr_func 1
17003 EOF
17004 cat >> confdefs.h <<\EOF
17005 #define HAVE_DLERROR 1
17006 EOF
17007
17008 else
17009 echo "$ac_t""no" 1>&6
17010 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
17011 echo "configure:17012: checking for dlerror in -ldl" >&5
17012 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17013 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17014 echo $ac_n "(cached) $ac_c" 1>&6
17015 else
17016 ac_save_LIBS="$LIBS"
17017 LIBS="-ldl $LIBS"
17018 cat > conftest.$ac_ext <<EOF
17019 #line 17020 "configure"
17020 #include "confdefs.h"
17021 /* Override any gcc2 internal prototype to avoid an error. */
17022 /* We use char because int might match the return type of a gcc2
17023 builtin and then its argument prototype would still apply. */
17024 char dlerror();
17025
17026 int main() {
17027 dlerror()
17028 ; return 0; }
17029 EOF
17030 if { (eval echo configure:17031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17031 rm -rf conftest*
17032 eval "ac_cv_lib_$ac_lib_var=yes"
17033 else
17034 echo "configure: failed program was:" >&5
17035 cat conftest.$ac_ext >&5
17036 rm -rf conftest*
17037 eval "ac_cv_lib_$ac_lib_var=no"
17038 fi
17039 rm -f conftest*
17040 LIBS="$ac_save_LIBS"
17041
17042 fi
17043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17044 echo "$ac_t""yes" 1>&6
17045 cat >> confdefs.h <<\EOF
17046 #define HAVE_DLERROR 1
17047 EOF
17048
17049 else
17050 echo "$ac_t""no" 1>&6
17051 fi
17052
17053 fi
17054 done
17055
17056 fi
17057 fi
17058
17059 if test "$HAVE_DL_FUNCS" = 0; then
17060 if test "$HAVE_SHL_FUNCS" = 0; then
17061 if test "$USE_UNIX" = 1; then
17062 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17063 wxUSE_DYNLIB_CLASS=no
17064 else
17065 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17066 fi
17067 fi
17068 fi
17069 fi
17070 fi
17071
17072 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
17073 cat >> confdefs.h <<\EOF
17074 #define wxUSE_DYNLIB_CLASS 1
17075 EOF
17076
17077 else
17078 wxUSE_ODBC=no
17079 wxUSE_SERIAL=no
17080 fi
17081
17082
17083 if test "$wxUSE_FONTMAP" = "yes" ; then
17084 cat >> confdefs.h <<\EOF
17085 #define wxUSE_FONTMAP 1
17086 EOF
17087
17088 fi
17089
17090 if test "$wxUSE_UNICODE" = "yes" ; then
17091 cat >> confdefs.h <<\EOF
17092 #define wxUSE_UNICODE 1
17093 EOF
17094
17095 fi
17096
17097 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
17098 cat >> confdefs.h <<\EOF
17099 #define wxUSE_EXPERIMENTAL_PRINTF 1
17100 EOF
17101
17102 fi
17103
17104
17105 if test "$wxUSE_SERIAL" = "yes" ; then
17106 cat >> confdefs.h <<\EOF
17107 #define wxUSE_SERIAL 1
17108 EOF
17109
17110 fi
17111
17112
17113 IODBC_C_SRC=""
17114 if test "$wxUSE_ODBC" = "yes" ; then
17115 cat >> confdefs.h <<\EOF
17116 #define wxUSE_ODBC 1
17117 EOF
17118
17119 WXODBCFLAG="-D_IODBC_"
17120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
17121 fi
17122
17123
17124 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
17125 cat >> confdefs.h <<\EOF
17126 #define wxUSE_POSTSCRIPT 1
17127 EOF
17128
17129 fi
17130
17131 cat >> confdefs.h <<\EOF
17132 #define wxUSE_AFM_FOR_POSTSCRIPT 1
17133 EOF
17134
17135
17136 cat >> confdefs.h <<\EOF
17137 #define wxUSE_NORMALIZED_PS_FONTS 1
17138 EOF
17139
17140
17141
17142 if test "$wxUSE_CONSTRAINTS" = "yes"; then
17143 cat >> confdefs.h <<\EOF
17144 #define wxUSE_CONSTRAINTS 1
17145 EOF
17146
17147 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17148 fi
17149
17150 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17151 cat >> confdefs.h <<\EOF
17152 #define wxUSE_MDI_ARCHITECTURE 1
17153 EOF
17154
17155 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17156 fi
17157
17158 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
17159 cat >> confdefs.h <<\EOF
17160 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
17161 EOF
17162
17163 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17164 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17165 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17166 fi
17167 fi
17168
17169 if test "$wxUSE_HELP" = "yes"; then
17170 cat >> confdefs.h <<\EOF
17171 #define wxUSE_HELP 1
17172 EOF
17173
17174 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
17175
17176 if test "$USE_WIN32" = 1; then
17177 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
17178 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17179 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
17180 echo "configure:17181: checking for htmlhelp.h" >&5
17181 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17182 echo $ac_n "(cached) $ac_c" 1>&6
17183 else
17184 cat > conftest.$ac_ext <<EOF
17185 #line 17186 "configure"
17186 #include "confdefs.h"
17187 #include <htmlhelp.h>
17188 EOF
17189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17190 { (eval echo configure:17191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17192 if test -z "$ac_err"; then
17193 rm -rf conftest*
17194 eval "ac_cv_header_$ac_safe=yes"
17195 else
17196 echo "$ac_err" >&5
17197 echo "configure: failed program was:" >&5
17198 cat conftest.$ac_ext >&5
17199 rm -rf conftest*
17200 eval "ac_cv_header_$ac_safe=no"
17201 fi
17202 rm -f conftest*
17203 fi
17204 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17205 echo "$ac_t""yes" 1>&6
17206
17207 cat >> confdefs.h <<\EOF
17208 #define wxUSE_MS_HTML_HELP 1
17209 EOF
17210
17211
17212 else
17213 echo "$ac_t""no" 1>&6
17214
17215 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h, disabled" 1>&2
17216 wxUSE_MS_HTML_HELP=no
17217
17218 fi
17219
17220 fi
17221 fi
17222
17223 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17224 if test "$wxUSE_HTML" = "yes"; then
17225 cat >> confdefs.h <<\EOF
17226 #define wxUSE_WXHTML_HELP 1
17227 EOF
17228
17229 else
17230 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17231 wxUSE_WXHTML_HELP=no
17232 fi
17233 fi
17234 fi
17235
17236 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17237 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17238 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
17239 else
17240 cat >> confdefs.h <<\EOF
17241 #define wxUSE_PRINTING_ARCHITECTURE 1
17242 EOF
17243
17244 fi
17245 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17246 fi
17247
17248 if test "$wxUSE_PROLOGIO" = "yes" ; then
17249 cat >> confdefs.h <<\EOF
17250 #define wxUSE_PROLOGIO 1
17251 EOF
17252
17253 fi
17254
17255 if test "$wxUSE_RESOURCES" = "yes" ; then
17256 cat >> confdefs.h <<\EOF
17257 #define wxUSE_RESOURCES 1
17258 EOF
17259
17260 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
17261 fi
17262
17263 if test "$wxUSE_X_RESOURCES" = "yes"; then
17264 cat >> confdefs.h <<\EOF
17265 #define wxUSE_X_RESOURCES 1
17266 EOF
17267
17268 fi
17269
17270
17271 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17272 -o "$wxUSE_CLIPBOARD" = "yes" \
17273 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
17274 for ac_hdr in ole2.h
17275 do
17276 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17277 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17278 echo "configure:17279: checking for $ac_hdr" >&5
17279 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17280 echo $ac_n "(cached) $ac_c" 1>&6
17281 else
17282 cat > conftest.$ac_ext <<EOF
17283 #line 17284 "configure"
17284 #include "confdefs.h"
17285 #include <$ac_hdr>
17286 EOF
17287 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17288 { (eval echo configure:17289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17289 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17290 if test -z "$ac_err"; then
17291 rm -rf conftest*
17292 eval "ac_cv_header_$ac_safe=yes"
17293 else
17294 echo "$ac_err" >&5
17295 echo "configure: failed program was:" >&5
17296 cat conftest.$ac_ext >&5
17297 rm -rf conftest*
17298 eval "ac_cv_header_$ac_safe=no"
17299 fi
17300 rm -f conftest*
17301 fi
17302 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17303 echo "$ac_t""yes" 1>&6
17304 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17305 cat >> confdefs.h <<EOF
17306 #define $ac_tr_hdr 1
17307 EOF
17308
17309 else
17310 echo "$ac_t""no" 1>&6
17311 fi
17312 done
17313
17314
17315 if test "$ac_cv_header_ole2_h" = "yes" ; then
17316 if test "$GCC" = yes ; then
17317 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17318 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17319 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
17320 cat >> confdefs.h <<\EOF
17321 #define wxUSE_OLE 1
17322 EOF
17323
17324
17325 fi
17326
17327 cat >> confdefs.h <<\EOF
17328 #define wxUSE_DATAOBJ 1
17329 EOF
17330
17331 else
17332 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17333
17334 wxUSE_CLIPBOARD=no
17335 wxUSE_DRAG_AND_DROP=no
17336 wxUSE_DATAOBJ=no
17337 fi
17338
17339 if test "$wxUSE_METAFILE" = "yes"; then
17340 cat >> confdefs.h <<\EOF
17341 #define wxUSE_METAFILE 1
17342 EOF
17343
17344
17345 cat >> confdefs.h <<\EOF
17346 #define wxUSE_ENH_METAFILE 1
17347 EOF
17348
17349 fi
17350 fi
17351
17352 if test "$wxUSE_IPC" = "yes"; then
17353 if test "$wxUSE_SOCKETS" != "yes"; then
17354 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17355 fi
17356
17357 cat >> confdefs.h <<\EOF
17358 #define wxUSE_IPC 1
17359 EOF
17360
17361 fi
17362
17363 if test "$wxUSE_CLIPBOARD" = "yes"; then
17364 cat >> confdefs.h <<\EOF
17365 #define wxUSE_CLIPBOARD 1
17366 EOF
17367
17368
17369 cat >> confdefs.h <<\EOF
17370 #define wxUSE_DATAOBJ 1
17371 EOF
17372
17373 fi
17374
17375 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17376 if test "$wxUSE_GTK" = 1; then
17377 if test "$WXGTK12" != 1; then
17378 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
17379 wxUSE_DRAG_AND_DROP=no
17380 fi
17381 fi
17382
17383 if test "$wxUSE_MOTIF" = 1; then
17384 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17385 wxUSE_DRAG_AND_DROP=no
17386 fi
17387
17388 if test "$wxUSE_MAC" = 1; then
17389 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17390 wxUSE_DRAG_AND_DROP=no
17391 fi
17392
17393 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17394 cat >> confdefs.h <<\EOF
17395 #define wxUSE_DRAG_AND_DROP 1
17396 EOF
17397
17398 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17399 fi
17400
17401 fi
17402
17403 if test "$wxUSE_SPLINES" = "yes" ; then
17404 cat >> confdefs.h <<\EOF
17405 #define wxUSE_SPLINES 1
17406 EOF
17407
17408 fi
17409
17410
17411 USES_CONTROLS=0
17412 if test "$wxUSE_CONTROLS" = "yes"; then
17413 USES_CONTROLS=1
17414 fi
17415
17416 if test "$wxUSE_ACCEL" = "yes"; then
17417 cat >> confdefs.h <<\EOF
17418 #define wxUSE_ACCEL 1
17419 EOF
17420
17421 USES_CONTROLS=1
17422 fi
17423
17424 if test "$wxUSE_BUTTON" = "yes"; then
17425 cat >> confdefs.h <<\EOF
17426 #define wxUSE_BUTTON 1
17427 EOF
17428
17429 USES_CONTROLS=1
17430 fi
17431
17432 if test "$wxUSE_BMPBUTTON" = "yes"; then
17433 cat >> confdefs.h <<\EOF
17434 #define wxUSE_BMPBUTTON 1
17435 EOF
17436
17437 USES_CONTROLS=1
17438 fi
17439
17440 if test "$wxUSE_CALCTRL" = "yes"; then
17441 cat >> confdefs.h <<\EOF
17442 #define wxUSE_CALENDARCTRL 1
17443 EOF
17444
17445 USES_CONTROLS=1
17446 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17447 fi
17448
17449 if test "$wxUSE_CARET" = "yes"; then
17450 cat >> confdefs.h <<\EOF
17451 #define wxUSE_CARET 1
17452 EOF
17453
17454 USES_CONTROLS=1
17455 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17456 fi
17457
17458 if test "$wxUSE_COMBOBOX" = "yes"; then
17459 cat >> confdefs.h <<\EOF
17460 #define wxUSE_COMBOBOX 1
17461 EOF
17462
17463 USES_CONTROLS=1
17464 fi
17465
17466 if test "$wxUSE_CHOICE" = "yes"; then
17467 cat >> confdefs.h <<\EOF
17468 #define wxUSE_CHOICE 1
17469 EOF
17470
17471 USES_CONTROLS=1
17472 fi
17473
17474 if test "$wxUSE_CHECKBOX" = "yes"; then
17475 cat >> confdefs.h <<\EOF
17476 #define wxUSE_CHECKBOX 1
17477 EOF
17478
17479 USES_CONTROLS=1
17480 fi
17481
17482 if test "$wxUSE_CHECKLST" = "yes"; then
17483 cat >> confdefs.h <<\EOF
17484 #define wxUSE_CHECKLISTBOX 1
17485 EOF
17486
17487 USES_CONTROLS=1
17488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17489 fi
17490
17491 if test "$wxUSE_GAUGE" = "yes"; then
17492 cat >> confdefs.h <<\EOF
17493 #define wxUSE_GAUGE 1
17494 EOF
17495
17496 USES_CONTROLS=1
17497 fi
17498
17499 if test "$wxUSE_NEW_GRID" = "yes"; then
17500 wxUSE_GRID="yes"
17501 cat >> confdefs.h <<\EOF
17502 #define wxUSE_NEW_GRID 1
17503 EOF
17504
17505 USES_CONTROLS=1
17506 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17507 fi
17508
17509 if test "$wxUSE_GRID" = "yes"; then
17510 cat >> confdefs.h <<\EOF
17511 #define wxUSE_GRID 1
17512 EOF
17513
17514 USES_CONTROLS=1
17515 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17516 fi
17517
17518 if test "$wxUSE_IMAGLIST" = "yes"; then
17519 cat >> confdefs.h <<\EOF
17520 #define wxUSE_IMAGLIST 1
17521 EOF
17522
17523 fi
17524
17525 if test "$wxUSE_LISTBOX" = "yes"; then
17526 cat >> confdefs.h <<\EOF
17527 #define wxUSE_LISTBOX 1
17528 EOF
17529
17530 USES_CONTROLS=1
17531 fi
17532
17533 if test "$wxUSE_LISTCTRL" = "yes"; then
17534 if test "$wxUSE_IMAGLIST" = "yes"; then
17535 cat >> confdefs.h <<\EOF
17536 #define wxUSE_LISTCTRL 1
17537 EOF
17538
17539 USES_CONTROLS=1
17540 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17541 else
17542 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
17543 fi
17544 fi
17545
17546 if test "$wxUSE_NOTEBOOK" = "yes"; then
17547 cat >> confdefs.h <<\EOF
17548 #define wxUSE_NOTEBOOK 1
17549 EOF
17550
17551 USES_CONTROLS=1
17552 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17553 fi
17554
17555 if test "$wxUSE_PROPSHEET" = "yes"; then
17556 cat >> confdefs.h <<\EOF
17557 #define wxUSE_PROPSHEET 1
17558 EOF
17559
17560 USES_CONTROLS=1
17561 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17562 fi
17563
17564 if test "$wxUSE_RADIOBOX" = "yes"; then
17565 cat >> confdefs.h <<\EOF
17566 #define wxUSE_RADIOBOX 1
17567 EOF
17568
17569 USES_CONTROLS=1
17570 fi
17571
17572 if test "$wxUSE_RADIOBTN" = "yes"; then
17573 cat >> confdefs.h <<\EOF
17574 #define wxUSE_RADIOBTN 1
17575 EOF
17576
17577 USES_CONTROLS=1
17578 fi
17579
17580 if test "$wxUSE_SASH" = "yes"; then
17581 cat >> confdefs.h <<\EOF
17582 #define wxUSE_SASH 1
17583 EOF
17584
17585 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17586 fi
17587
17588 if test "$wxUSE_SCROLLBAR" = "yes"; then
17589 cat >> confdefs.h <<\EOF
17590 #define wxUSE_SCROLLBAR 1
17591 EOF
17592
17593 USES_CONTROLS=1
17594 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
17595 fi
17596
17597 if test "$wxUSE_SLIDER" = "yes"; then
17598 cat >> confdefs.h <<\EOF
17599 #define wxUSE_SLIDER 1
17600 EOF
17601
17602 USES_CONTROLS=1
17603 fi
17604
17605 if test "$wxUSE_SPINBTN" = "yes"; then
17606 cat >> confdefs.h <<\EOF
17607 #define wxUSE_SPINBTN 1
17608 EOF
17609
17610 USES_CONTROLS=1
17611 fi
17612
17613 if test "$wxUSE_SPINCTRL" = "yes"; then
17614 cat >> confdefs.h <<\EOF
17615 #define wxUSE_SPINCTRL 1
17616 EOF
17617
17618 USES_CONTROLS=1
17619 fi
17620
17621 if test "$wxUSE_SPLITTER" = "yes"; then
17622 cat >> confdefs.h <<\EOF
17623 #define wxUSE_SPLITTER 1
17624 EOF
17625
17626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17627 fi
17628
17629 if test "$wxUSE_STATBMP" = "yes"; then
17630 cat >> confdefs.h <<\EOF
17631 #define wxUSE_STATBMP 1
17632 EOF
17633
17634 USES_CONTROLS=1
17635 fi
17636
17637 if test "$wxUSE_STATBOX" = "yes"; then
17638 cat >> confdefs.h <<\EOF
17639 #define wxUSE_STATBOX 1
17640 EOF
17641
17642 USES_CONTROLS=1
17643 fi
17644
17645 if test "$wxUSE_STATTEXT" = "yes"; then
17646 cat >> confdefs.h <<\EOF
17647 #define wxUSE_STATTEXT 1
17648 EOF
17649
17650 USES_CONTROLS=1
17651 fi
17652
17653 if test "$wxUSE_STATLINE" = "yes"; then
17654 if test "$wxUSE_WINE" = 1 ; then
17655 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
17656 else
17657 cat >> confdefs.h <<\EOF
17658 #define wxUSE_STATLINE 1
17659 EOF
17660
17661 USES_CONTROLS=1
17662 fi
17663 fi
17664
17665 if test "$wxUSE_STATUSBAR" = "yes"; then
17666 cat >> confdefs.h <<\EOF
17667 #define wxUSE_STATUSBAR 1
17668 EOF
17669
17670 USES_CONTROLS=1
17671
17672 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
17673 fi
17674
17675 if test "$wxUSE_TABDIALOG" = "yes"; then
17676 cat >> confdefs.h <<\EOF
17677 #define wxUSE_TAB_DIALOG 1
17678 EOF
17679
17680 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17681 fi
17682
17683 if test "$wxUSE_TEXTCTRL" = "yes"; then
17684 cat >> confdefs.h <<\EOF
17685 #define wxUSE_TEXTCTRL 1
17686 EOF
17687
17688 USES_CONTROLS=1
17689 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17690 fi
17691
17692 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17693 if test "$wxUSE_MAC" = 1; then
17694 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17695 wxUSE_TOGGLEBTN=no
17696 fi
17697
17698 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17699 cat >> confdefs.h <<\EOF
17700 #define wxUSE_TOGGLEBTN 1
17701 EOF
17702
17703 USES_CONTROLS=1
17704 fi
17705 fi
17706
17707 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
17708 cat >> confdefs.h <<\EOF
17709 #define wxUSE_TOOLBAR_SIMPLE 1
17710 EOF
17711
17712 wxUSE_TOOLBAR="yes"
17713 USES_CONTROLS=1
17714 fi
17715
17716 if test "$wxUSE_TOOLBAR" = "yes"; then
17717 cat >> confdefs.h <<\EOF
17718 #define wxUSE_TOOLBAR 1
17719 EOF
17720
17721 USES_CONTROLS=1
17722
17723 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17724 wxUSE_TOOLBAR_NATIVE="yes"
17725 fi
17726
17727 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17728 cat >> confdefs.h <<\EOF
17729 #define wxUSE_TOOLBAR_NATIVE 1
17730 EOF
17731
17732 USES_CONTROLS=1
17733 fi
17734
17735 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
17736 fi
17737
17738 if test "$wxUSE_TOOLTIPS" = "yes"; then
17739 if test "$wxUSE_MOTIF" = 1; then
17740 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
17741 else
17742 if test "$wxUSE_WINE" = 1; then
17743 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
17744 else
17745 cat >> confdefs.h <<\EOF
17746 #define wxUSE_TOOLTIPS 1
17747 EOF
17748
17749 fi
17750 fi
17751 fi
17752
17753 if test "$wxUSE_TREECTRL" = "yes"; then
17754 if test "$wxUSE_IMAGLIST" = "yes"; then
17755 cat >> confdefs.h <<\EOF
17756 #define wxUSE_TREECTRL 1
17757 EOF
17758
17759 USES_CONTROLS=1
17760 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17761 else
17762 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
17763 fi
17764 fi
17765
17766 if test "$wxUSE_POPUPWIN" = "yes"; then
17767 if test "$wxUSE_MAC" = 1; then
17768 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17769 else
17770 cat >> confdefs.h <<\EOF
17771 #define wxUSE_POPUPWIN 1
17772 EOF
17773
17774 USES_CONTROLS=1
17775 fi
17776 fi
17777
17778 if test "$USES_CONTROLS" = 1; then
17779 cat >> confdefs.h <<\EOF
17780 #define wxUSE_CONTROLS 1
17781 EOF
17782
17783 fi
17784
17785
17786 if test "$wxUSE_TREELAYOUT" = "yes"; then
17787 cat >> confdefs.h <<\EOF
17788 #define wxUSE_TREELAYOUT 1
17789 EOF
17790
17791 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17792 fi
17793
17794 if test "$wxUSE_DRAGIMAGE" = "yes"; then
17795 cat >> confdefs.h <<\EOF
17796 #define wxUSE_DRAGIMAGE 1
17797 EOF
17798
17799 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17800 fi
17801
17802 if test "$wxUSE_MENUS" = "yes"; then
17803 cat >> confdefs.h <<\EOF
17804 #define wxUSE_MENUS 1
17805 EOF
17806
17807 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
17808 fi
17809
17810 if test "$wxUSE_METAFILE" = "yes"; then
17811 cat >> confdefs.h <<\EOF
17812 #define wxUSE_METAFILE 1
17813 EOF
17814
17815 fi
17816
17817 if test "$wxUSE_MIMETYPE" = "yes"; then
17818 cat >> confdefs.h <<\EOF
17819 #define wxUSE_MIMETYPE 1
17820 EOF
17821
17822 fi
17823
17824 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17825 cat >> confdefs.h <<\EOF
17826 #define wxUSE_SYSTEM_OPTIONS 1
17827 EOF
17828
17829 fi
17830
17831 if test "$wxUSE_MINIFRAME" = "yes"; then
17832 cat >> confdefs.h <<\EOF
17833 #define wxUSE_MINIFRAME 1
17834 EOF
17835
17836 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17837 fi
17838
17839 if test "$wxUSE_HTML" = "yes"; then
17840 cat >> confdefs.h <<\EOF
17841 #define wxUSE_HTML 1
17842 EOF
17843
17844 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17845 fi
17846
17847 if test "$wxUSE_VALIDATORS" = "yes"; then
17848 cat >> confdefs.h <<\EOF
17849 #define wxUSE_VALIDATORS 1
17850 EOF
17851
17852 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17853 fi
17854
17855 if test "$wxUSE_PALETTE" = "yes" ; then
17856 cat >> confdefs.h <<\EOF
17857 #define wxUSE_PALETTE 1
17858 EOF
17859
17860 fi
17861
17862 if test "$wxUSE_IMAGE" = "yes" ; then
17863 cat >> confdefs.h <<\EOF
17864 #define wxUSE_IMAGE 1
17865 EOF
17866
17867 fi
17868
17869 if test "$wxUSE_GIF" = "yes" ; then
17870 cat >> confdefs.h <<\EOF
17871 #define wxUSE_GIF 1
17872 EOF
17873
17874 fi
17875
17876 if test "$wxUSE_PCX" = "yes" ; then
17877 cat >> confdefs.h <<\EOF
17878 #define wxUSE_PCX 1
17879 EOF
17880
17881 fi
17882
17883 if test "$wxUSE_PNM" = "yes" ; then
17884 cat >> confdefs.h <<\EOF
17885 #define wxUSE_PNM 1
17886 EOF
17887
17888 fi
17889
17890 if test "$wxUSE_XPM" = "yes" ; then
17891 cat >> confdefs.h <<\EOF
17892 #define wxUSE_XPM 1
17893 EOF
17894
17895 fi
17896
17897
17898 if test "$wxUSE_CHOICEDLG" = "yes"; then
17899 cat >> confdefs.h <<\EOF
17900 #define wxUSE_CHOICEDLG 1
17901 EOF
17902
17903 fi
17904
17905 if test "$wxUSE_COLOURDLG" = "yes"; then
17906 cat >> confdefs.h <<\EOF
17907 #define wxUSE_COLOURDLG 1
17908 EOF
17909
17910 fi
17911
17912 if test "$wxUSE_FILEDLG" = "yes"; then
17913 cat >> confdefs.h <<\EOF
17914 #define wxUSE_FILEDLG 1
17915 EOF
17916
17917 fi
17918
17919 if test "$wxUSE_FINDREPLDLG" = "yes"; then
17920 cat >> confdefs.h <<\EOF
17921 #define wxUSE_FINDREPLDLG 1
17922 EOF
17923
17924 fi
17925
17926 if test "$wxUSE_FONTDLG" = "yes"; then
17927 cat >> confdefs.h <<\EOF
17928 #define wxUSE_FONTDLG 1
17929 EOF
17930
17931 fi
17932
17933 if test "$wxUSE_DIRDLG" = "yes"; then
17934 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17935 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17936 else
17937 if test "$wxUSE_TREECTRL" != "yes"; then
17938 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17939 else
17940 cat >> confdefs.h <<\EOF
17941 #define wxUSE_DIRDLG 1
17942 EOF
17943
17944 fi
17945 fi
17946 fi
17947
17948 if test "$wxUSE_MSGDLG" = "yes"; then
17949 cat >> confdefs.h <<\EOF
17950 #define wxUSE_MSGDLG 1
17951 EOF
17952
17953 fi
17954
17955 if test "$wxUSE_NUMBERDLG" = "yes"; then
17956 cat >> confdefs.h <<\EOF
17957 #define wxUSE_NUMBERDLG 1
17958 EOF
17959
17960 fi
17961
17962 if test "$wxUSE_PROGRESSDLG" = "yes"; then
17963 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17964 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17965 else
17966 cat >> confdefs.h <<\EOF
17967 #define wxUSE_PROGRESSDLG 1
17968 EOF
17969
17970 fi
17971 fi
17972
17973 if test "$wxUSE_SPLASH" = "yes"; then
17974 cat >> confdefs.h <<\EOF
17975 #define wxUSE_SPLASH 1
17976 EOF
17977
17978 fi
17979
17980 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17981 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17982 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17983 else
17984 cat >> confdefs.h <<\EOF
17985 #define wxUSE_STARTUP_TIPS 1
17986 EOF
17987
17988 fi
17989 fi
17990
17991 if test "$wxUSE_TEXTDLG" = "yes"; then
17992 cat >> confdefs.h <<\EOF
17993 #define wxUSE_TEXTDLG 1
17994 EOF
17995
17996 fi
17997
17998 if test "$wxUSE_WIZARDDLG" = "yes"; then
17999 cat >> confdefs.h <<\EOF
18000 #define wxUSE_WIZARDDLG 1
18001 EOF
18002
18003 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18004 fi
18005
18006
18007 if test "$cross_compiling" = "yes"; then
18008 OSINFO="\"$host\""
18009 else
18010 OSINFO=`uname -s -r -m`
18011 OSINFO="\"$OSINFO\""
18012 fi
18013
18014 cat >> confdefs.h <<EOF
18015 #define WXWIN_OS_DESCRIPTION $OSINFO
18016 EOF
18017
18018
18019
18020 if test "x$prefix" != "xNONE"; then
18021 wxPREFIX=$prefix
18022 else
18023 wxPREFIX=$ac_default_prefix
18024 fi
18025
18026 cat >> confdefs.h <<EOF
18027 #define wxINSTALL_PREFIX "$wxPREFIX"
18028 EOF
18029
18030
18031
18032 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
18033
18034 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
18035
18036 if test "$wxUSE_MAC" = 1 ; then
18037 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
18038 fi
18039
18040 if test "$wxUSE_GUI" = "yes"; then
18041 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
18042
18043
18044 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18045 drawing dynamic erase event exec font image \
18046 minimal richedit rotate widgets"
18047
18048 if test "$wxUSE_UNIVERSAL" = "yes" ; then
18049 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
18050 fi
18051
18052 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18053 else
18054 SAMPLES_SUBDIRS="console"
18055 fi
18056
18057 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
18058
18059 INCLUDES="-I. -I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
18060 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18061 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
18062
18063 if test "$wxUSE_GTK" = 1; then
18064 WXCONFIG_INCLUDE=""
18065 else
18066 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18067 fi
18068
18069 if test "$GXX" = yes ; then
18070 CXXWARNINGS="-Wall"
18071 fi
18072 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
18073
18074 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18075 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18076
18077 LDFLAGS="$LDFLAGS $PROFILE"
18078
18079 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
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
18112
18113
18114
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
18163 echo "configure:18164: checking whether ${MAKE-make} sets \${MAKE}" >&5
18164 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18165 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18166 echo $ac_n "(cached) $ac_c" 1>&6
18167 else
18168 cat > conftestmake <<\EOF
18169 all:
18170 @echo 'ac_maketemp="${MAKE}"'
18171 EOF
18172 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18173 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
18174 if test -n "$ac_maketemp"; then
18175 eval ac_cv_prog_make_${ac_make}_set=yes
18176 else
18177 eval ac_cv_prog_make_${ac_make}_set=no
18178 fi
18179 rm -f conftestmake
18180 fi
18181 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18182 echo "$ac_t""yes" 1>&6
18183 SET_MAKE=
18184 else
18185 echo "$ac_t""no" 1>&6
18186 SET_MAKE="MAKE=${MAKE-make}"
18187 fi
18188
18189
18190 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18191 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
18192 fi
18193
18194
18195
18196 if test "$wxUSE_GUI" = "yes"; then
18197 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
18198 wx_cv_path_ifs=$PATH_IFS
18199 wx_cv_program_ext=$PROGRAM_EXT
18200 wx_cv_target_library=$WX_TARGET_LIBRARY
18201 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
18202 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
18203 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
18204 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
18205 subdirs="demos samples utils contrib"
18206
18207 fi
18208
18209 trap '' 1 2 15
18210 cat > confcache <<\EOF
18211 # This file is a shell script that caches the results of configure
18212 # tests run on this system so they can be shared between configure
18213 # scripts and configure runs. It is not useful on other systems.
18214 # If it contains results you don't want to keep, you may remove or edit it.
18215 #
18216 # By default, configure uses ./config.cache as the cache file,
18217 # creating it if it does not exist already. You can give configure
18218 # the --cache-file=FILE option to use a different cache file; that is
18219 # what configure does when it calls configure scripts in
18220 # subdirectories, so they share the cache.
18221 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18222 # config.status only pays attention to the cache file if you give it the
18223 # --recheck option to rerun configure.
18224 #
18225 EOF
18226 # The following way of writing the cache mishandles newlines in values,
18227 # but we know of no workaround that is simple, portable, and efficient.
18228 # So, don't put newlines in cache variables' values.
18229 # Ultrix sh set writes to stderr and can't be redirected directly,
18230 # and sets the high bit in the cache file unless we assign to the vars.
18231 (set) 2>&1 |
18232 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18233 *ac_space=\ *)
18234 # `set' does not quote correctly, so add quotes (double-quote substitution
18235 # turns \\\\ into \\, and sed turns \\ into \).
18236 sed -n \
18237 -e "s/'/'\\\\''/g" \
18238 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18239 ;;
18240 *)
18241 # `set' quotes correctly as required by POSIX, so do not add quotes.
18242 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18243 ;;
18244 esac >> confcache
18245 if cmp -s $cache_file confcache; then
18246 :
18247 else
18248 if test -w $cache_file; then
18249 echo "updating cache $cache_file"
18250 cat confcache > $cache_file
18251 else
18252 echo "not updating unwritable cache $cache_file"
18253 fi
18254 fi
18255 rm -f confcache
18256
18257 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18258
18259 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18260 # Let make expand exec_prefix.
18261 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18262
18263 # Any assignment to VPATH causes Sun make to only execute
18264 # the first set of double-colon rules, so remove it if not needed.
18265 # If there is a colon in the path, we need to keep it.
18266 if test "x$srcdir" = x.; then
18267 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18268 fi
18269
18270 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18271
18272 DEFS=-DHAVE_CONFIG_H
18273
18274 # Without the "./", some shells look in PATH for config.status.
18275 : ${CONFIG_STATUS=./config.status}
18276
18277 echo creating $CONFIG_STATUS
18278 rm -f $CONFIG_STATUS
18279 cat > $CONFIG_STATUS <<EOF
18280 #! /bin/sh
18281 # Generated automatically by configure.
18282 # Run this file to recreate the current configuration.
18283 # This directory was configured as follows,
18284 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18285 #
18286 # $0 $ac_configure_args
18287 #
18288 # Compiler output produced by configure, useful for debugging
18289 # configure, is in ./config.log if it exists.
18290
18291 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18292 for ac_option
18293 do
18294 case "\$ac_option" in
18295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18296 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18297 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18298 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18299 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18300 exit 0 ;;
18301 -help | --help | --hel | --he | --h)
18302 echo "\$ac_cs_usage"; exit 0 ;;
18303 *) echo "\$ac_cs_usage"; exit 1 ;;
18304 esac
18305 done
18306
18307 ac_given_srcdir=$srcdir
18308 ac_given_INSTALL="$INSTALL"
18309
18310 trap 'rm -fr `echo "
18311 wx-config
18312 src/make.env
18313 src/makeprog.env
18314 src/makelib.env
18315 Makefile
18316 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18317 EOF
18318 cat >> $CONFIG_STATUS <<EOF
18319
18320 # Protect against being on the right side of a sed subst in config.status.
18321 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18322 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18323 $ac_vpsub
18324 $extrasub
18325 s%@SHELL@%$SHELL%g
18326 s%@CFLAGS@%$CFLAGS%g
18327 s%@CPPFLAGS@%$CPPFLAGS%g
18328 s%@CXXFLAGS@%$CXXFLAGS%g
18329 s%@FFLAGS@%$FFLAGS%g
18330 s%@DEFS@%$DEFS%g
18331 s%@LDFLAGS@%$LDFLAGS%g
18332 s%@LIBS@%$LIBS%g
18333 s%@exec_prefix@%$exec_prefix%g
18334 s%@prefix@%$prefix%g
18335 s%@program_transform_name@%$program_transform_name%g
18336 s%@bindir@%$bindir%g
18337 s%@sbindir@%$sbindir%g
18338 s%@libexecdir@%$libexecdir%g
18339 s%@datadir@%$datadir%g
18340 s%@sysconfdir@%$sysconfdir%g
18341 s%@sharedstatedir@%$sharedstatedir%g
18342 s%@localstatedir@%$localstatedir%g
18343 s%@libdir@%$libdir%g
18344 s%@includedir@%$includedir%g
18345 s%@oldincludedir@%$oldincludedir%g
18346 s%@infodir@%$infodir%g
18347 s%@mandir@%$mandir%g
18348 s%@host@%$host%g
18349 s%@host_alias@%$host_alias%g
18350 s%@host_cpu@%$host_cpu%g
18351 s%@host_vendor@%$host_vendor%g
18352 s%@host_os@%$host_os%g
18353 s%@target@%$target%g
18354 s%@target_alias@%$target_alias%g
18355 s%@target_cpu@%$target_cpu%g
18356 s%@target_vendor@%$target_vendor%g
18357 s%@target_os@%$target_os%g
18358 s%@build@%$build%g
18359 s%@build_alias@%$build_alias%g
18360 s%@build_cpu@%$build_cpu%g
18361 s%@build_vendor@%$build_vendor%g
18362 s%@build_os@%$build_os%g
18363 s%@CC@%$CC%g
18364 s%@CPP@%$CPP%g
18365 s%@CXX@%$CXX%g
18366 s%@RANLIB@%$RANLIB%g
18367 s%@AR@%$AR%g
18368 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18369 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18370 s%@INSTALL_DATA@%$INSTALL_DATA%g
18371 s%@STRIP@%$STRIP%g
18372 s%@YACC@%$YACC%g
18373 s%@LEX@%$LEX%g
18374 s%@LEXLIB@%$LEXLIB%g
18375 s%@LN_S@%$LN_S%g
18376 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18377 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18378 s%@GTK_LIBS@%$GTK_LIBS%g
18379 s%@GTK_CONFIG@%$GTK_CONFIG%g
18380 s%@X_CFLAGS@%$X_CFLAGS%g
18381 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18382 s%@X_LIBS@%$X_LIBS%g
18383 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18384 s%@RESCOMP@%$RESCOMP%g
18385 s%@DEREZ@%$DEREZ%g
18386 s%@CXXCPP@%$CXXCPP%g
18387 s%@LEX_STEM@%$LEX_STEM%g
18388 s%@PATH_IFS@%$PATH_IFS%g
18389 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18390 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18391 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18392 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18393 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18394 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18395 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18396 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18397 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18398 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18399 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18400 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18401 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18402 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18403 s%@WX_ALL@%$WX_ALL%g
18404 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18405 s%@SHARED_LD@%$SHARED_LD%g
18406 s%@PIC_FLAG@%$PIC_FLAG%g
18407 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18408 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18409 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18410 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
18411 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18412 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18413 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18414 s%@USE_GUI@%$USE_GUI%g
18415 s%@AFMINSTALL@%$AFMINSTALL%g
18416 s%@TOOLKIT@%$TOOLKIT%g
18417 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18418 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18419 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18420 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
18421 s%@cross_compiling@%$cross_compiling%g
18422 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18423 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
18424 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18425 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18426 s%@GUIDIST@%$GUIDIST%g
18427 s%@PORT_FILES@%$PORT_FILES%g
18428 s%@DISTDIR@%$DISTDIR%g
18429 s%@RPM_SPEC@%$RPM_SPEC%g
18430 s%@RPM_FILES@%$RPM_FILES%g
18431 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18432 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18433 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18434 s%@EXTRADEFS@%$EXTRADEFS%g
18435 s%@LD_LIBS@%$LD_LIBS%g
18436 s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
18437 s%@RESFLAGS@%$RESFLAGS%g
18438 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
18439 s%@WX_RESOURCES_DARWIN@%$WX_RESOURCES_DARWIN%g
18440 s%@LIBWXMACRES@%$LIBWXMACRES%g
18441 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18442 s%@DLLTOOL@%$DLLTOOL%g
18443 s%@AS@%$AS%g
18444 s%@NM@%$NM%g
18445 s%@LD@%$LD%g
18446 s%@MAKEINFO@%$MAKEINFO%g
18447 s%@SET_MAKE@%$SET_MAKE%g
18448 s%@subdirs@%$subdirs%g
18449
18450 CEOF
18451 EOF
18452
18453 cat >> $CONFIG_STATUS <<\EOF
18454
18455 # Split the substitutions into bite-sized pieces for seds with
18456 # small command number limits, like on Digital OSF/1 and HP-UX.
18457 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18458 ac_file=1 # Number of current file.
18459 ac_beg=1 # First line for current file.
18460 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18461 ac_more_lines=:
18462 ac_sed_cmds=""
18463 while $ac_more_lines; do
18464 if test $ac_beg -gt 1; then
18465 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18466 else
18467 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18468 fi
18469 if test ! -s conftest.s$ac_file; then
18470 ac_more_lines=false
18471 rm -f conftest.s$ac_file
18472 else
18473 if test -z "$ac_sed_cmds"; then
18474 ac_sed_cmds="sed -f conftest.s$ac_file"
18475 else
18476 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18477 fi
18478 ac_file=`expr $ac_file + 1`
18479 ac_beg=$ac_end
18480 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18481 fi
18482 done
18483 if test -z "$ac_sed_cmds"; then
18484 ac_sed_cmds=cat
18485 fi
18486 EOF
18487
18488 cat >> $CONFIG_STATUS <<EOF
18489
18490 CONFIG_FILES=\${CONFIG_FILES-"wx-config
18491 src/make.env
18492 src/makeprog.env
18493 src/makelib.env
18494 Makefile
18495 "}
18496 EOF
18497 cat >> $CONFIG_STATUS <<\EOF
18498 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18499 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18500 case "$ac_file" in
18501 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18502 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18503 *) ac_file_in="${ac_file}.in" ;;
18504 esac
18505
18506 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18507
18508 # Remove last slash and all that follows it. Not all systems have dirname.
18509 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18510 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18511 # The file is in a subdirectory.
18512 test ! -d "$ac_dir" && mkdir "$ac_dir"
18513 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18514 # A "../" for each directory in $ac_dir_suffix.
18515 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18516 else
18517 ac_dir_suffix= ac_dots=
18518 fi
18519
18520 case "$ac_given_srcdir" in
18521 .) srcdir=.
18522 if test -z "$ac_dots"; then top_srcdir=.
18523 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18524 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18525 *) # Relative path.
18526 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18527 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18528 esac
18529
18530 case "$ac_given_INSTALL" in
18531 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18532 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18533 esac
18534
18535 echo creating "$ac_file"
18536 rm -f "$ac_file"
18537 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18538 case "$ac_file" in
18539 *Makefile*) ac_comsub="1i\\
18540 # $configure_input" ;;
18541 *) ac_comsub= ;;
18542 esac
18543
18544 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18545 sed -e "$ac_comsub
18546 s%@configure_input@%$configure_input%g
18547 s%@srcdir@%$srcdir%g
18548 s%@top_srcdir@%$top_srcdir%g
18549 s%@INSTALL@%$INSTALL%g
18550 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18551 fi; done
18552 rm -f conftest.s*
18553
18554 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18555 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18556 #
18557 # ac_d sets the value in "#define NAME VALUE" lines.
18558 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18559 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18560 ac_dC='\3'
18561 ac_dD='%g'
18562 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18563 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18564 ac_uB='\([ ]\)%\1#\2define\3'
18565 ac_uC=' '
18566 ac_uD='\4%g'
18567 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18568 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18569 ac_eB='$%\1#\2define\3'
18570 ac_eC=' '
18571 ac_eD='%g'
18572
18573 if test "${CONFIG_HEADERS+set}" != set; then
18574 EOF
18575 cat >> $CONFIG_STATUS <<EOF
18576 CONFIG_HEADERS="setup.h:setup.h.in"
18577 EOF
18578 cat >> $CONFIG_STATUS <<\EOF
18579 fi
18580 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18581 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18582 case "$ac_file" in
18583 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18584 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18585 *) ac_file_in="${ac_file}.in" ;;
18586 esac
18587
18588 echo creating $ac_file
18589
18590 rm -f conftest.frag conftest.in conftest.out
18591 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18592 cat $ac_file_inputs > conftest.in
18593
18594 EOF
18595
18596 # Transform confdefs.h into a sed script conftest.vals that substitutes
18597 # the proper values into config.h.in to produce config.h. And first:
18598 # Protect against being on the right side of a sed subst in config.status.
18599 # Protect against being in an unquoted here document in config.status.
18600 rm -f conftest.vals
18601 cat > conftest.hdr <<\EOF
18602 s/[\\&%]/\\&/g
18603 s%[\\$`]%\\&%g
18604 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18605 s%ac_d%ac_u%gp
18606 s%ac_u%ac_e%gp
18607 EOF
18608 sed -n -f conftest.hdr confdefs.h > conftest.vals
18609 rm -f conftest.hdr
18610
18611 # This sed command replaces #undef with comments. This is necessary, for
18612 # example, in the case of _POSIX_SOURCE, which is predefined and required
18613 # on some systems where configure will not decide to define it.
18614 cat >> conftest.vals <<\EOF
18615 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18616 EOF
18617
18618 # Break up conftest.vals because some shells have a limit on
18619 # the size of here documents, and old seds have small limits too.
18620
18621 rm -f conftest.tail
18622 while :
18623 do
18624 ac_lines=`grep -c . conftest.vals`
18625 # grep -c gives empty output for an empty file on some AIX systems.
18626 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18627 # Write a limited-size here document to conftest.frag.
18628 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18629 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18630 echo 'CEOF
18631 sed -f conftest.frag conftest.in > conftest.out
18632 rm -f conftest.in
18633 mv conftest.out conftest.in
18634 ' >> $CONFIG_STATUS
18635 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18636 rm -f conftest.vals
18637 mv conftest.tail conftest.vals
18638 done
18639 rm -f conftest.vals
18640
18641 cat >> $CONFIG_STATUS <<\EOF
18642 rm -f conftest.frag conftest.h
18643 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18644 cat conftest.in >> conftest.h
18645 rm -f conftest.in
18646 if cmp -s $ac_file conftest.h 2>/dev/null; then
18647 echo "$ac_file is unchanged"
18648 rm -f conftest.h
18649 else
18650 # Remove last slash and all that follows it. Not all systems have dirname.
18651 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18652 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18653 # The file is in a subdirectory.
18654 test ! -d "$ac_dir" && mkdir "$ac_dir"
18655 fi
18656 rm -f $ac_file
18657 mv conftest.h $ac_file
18658 fi
18659 fi; done
18660
18661 EOF
18662 cat >> $CONFIG_STATUS <<EOF
18663
18664 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
18665 LN_S="${LN_S}"
18666
18667
18668 EOF
18669 cat >> $CONFIG_STATUS <<\EOF
18670
18671 if test ! -L wx-config; then
18672 chmod +x wx-config
18673 mv wx-config wx${TOOLCHAIN_NAME}-config
18674 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
18675 fi
18676
18677 if test ! -d lib; then
18678 mkdir lib
18679 fi
18680 if test ! -d lib/wx; then
18681 mkdir lib/wx
18682 fi
18683 if test ! -d lib/wx/include; then
18684 mkdir lib/wx/include
18685 fi
18686 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
18687 mkdir lib/wx/include/${TOOLCHAIN_NAME}
18688 fi
18689 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
18690 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
18691 fi
18692 if test -f setup.h; then
18693 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
18694 fi
18695
18696 exit 0
18697 EOF
18698 chmod +x $CONFIG_STATUS
18699 rm -fr confdefs* $ac_clean_files
18700 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18701
18702 if test "$no_recursion" != yes; then
18703
18704 # Remove --cache-file and --srcdir arguments so they do not pile up.
18705 ac_sub_configure_args=
18706 ac_prev=
18707 for ac_arg in $ac_configure_args; do
18708 if test -n "$ac_prev"; then
18709 ac_prev=
18710 continue
18711 fi
18712 case "$ac_arg" in
18713 -cache-file | --cache-file | --cache-fil | --cache-fi \
18714 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18715 ac_prev=cache_file ;;
18716 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18717 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
18718 ;;
18719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18720 ac_prev=srcdir ;;
18721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18722 ;;
18723 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18724 esac
18725 done
18726
18727 for ac_config_dir in demos samples utils contrib; do
18728
18729 # Do not complain, so a configure script can configure whichever
18730 # parts of a large source tree are present.
18731 if test ! -d $srcdir/$ac_config_dir; then
18732 continue
18733 fi
18734
18735 echo configuring in $ac_config_dir
18736
18737 case "$srcdir" in
18738 .) ;;
18739 *)
18740 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18741 else
18742 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18743 fi
18744 ;;
18745 esac
18746
18747 ac_popdir=`pwd`
18748 cd $ac_config_dir
18749
18750 # A "../" for each directory in /$ac_config_dir.
18751 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
18752
18753 case "$srcdir" in
18754 .) # No --srcdir option. We are building in place.
18755 ac_sub_srcdir=$srcdir ;;
18756 /*) # Absolute path.
18757 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
18758 *) # Relative path.
18759 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
18760 esac
18761
18762 # Check for guested configure; otherwise get Cygnus style configure.
18763 if test -f $ac_sub_srcdir/configure; then
18764 ac_sub_configure=$ac_sub_srcdir/configure
18765 elif test -f $ac_sub_srcdir/configure.in; then
18766 ac_sub_configure=$ac_configure
18767 else
18768 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
18769 ac_sub_configure=
18770 fi
18771
18772 # The recursion is here.
18773 if test -n "$ac_sub_configure"; then
18774
18775 # Make the cache file name correct relative to the subdirectory.
18776 case "$cache_file" in
18777 /*) ac_sub_cache_file=$cache_file ;;
18778 *) # Relative path.
18779 ac_sub_cache_file="$ac_dots$cache_file" ;;
18780 esac
18781 case "$ac_given_INSTALL" in
18782 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18783 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18784 esac
18785
18786 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
18787 # The eval makes quoting arguments work.
18788 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18789 then :
18790 else
18791 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18792 fi
18793 fi
18794
18795 cd $ac_popdir
18796 done
18797 fi
18798
18799