]> git.saurik.com Git - wxWidgets.git/blob - configure
regenerated
[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-msw use MS-Windows"
72 ac_help="$ac_help
73 --with-pm use OS/2 Presentation Manager"
74 ac_help="$ac_help
75 --with-mgl use SciTech MGL"
76 ac_help="$ac_help
77 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
78 ac_help="$ac_help
79 --with-libpng use libpng (PNG image format)"
80 ac_help="$ac_help
81 --with-libjpeg use libjpeg (JPEG file format)"
82 ac_help="$ac_help
83 --with-libtiff use libtiff (TIFF file format)"
84 ac_help="$ac_help
85 --with-freetype use freetype (font rasterizer)"
86 ac_help="$ac_help
87 --with-opengl use OpenGL (or Mesa)"
88 ac_help="$ac_help
89 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
90 ac_help="$ac_help
91 --with-regex enable support for wxRegEx class"
92 ac_help="$ac_help
93 --with-zlib use zlib for LZW compression"
94 ac_help="$ac_help
95 --with-odbc use the IODBC and wxODBC classes"
96 ac_help="$ac_help
97 --enable-shared create shared library code"
98 ac_help="$ac_help
99 --enable-soname set the DT_SONAME field in ELF shared libraries"
100 ac_help="$ac_help
101 --enable-optimise create optimised code"
102 ac_help="$ac_help
103 --enable-debug same as debug_flag and debug_info"
104 ac_help="$ac_help
105 --enable-precomp enable use of precompiled headers (Mac OS X)"
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-textbuf use wxTextBuffer class"
172 ac_help="$ac_help
173 --enable-textfile use wxTextFile class"
174 ac_help="$ac_help
175 --enable-fontmap use font encodings conversion classes"
176 ac_help="$ac_help
177 --enable-unicode compile wxString with Unicode support"
178 ac_help="$ac_help
179 --enable-wxprintfv use wxWindows implementation of vprintf()"
180 ac_help="$ac_help
181 --enable-std_iostreams use standard C++ stream classes"
182 ac_help="$ac_help
183 --enable-filesystem use virtual file systems classes"
184 ac_help="$ac_help
185 --enable-fs_inet use virtual HTTP/FTP filesystems"
186 ac_help="$ac_help
187 --enable-fs_zip use virtual ZIP filesystems"
188 ac_help="$ac_help
189 --enable-zipstream use wxZipInputStream"
190 ac_help="$ac_help
191 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
192 ac_help="$ac_help
193 --enable-snglinst use wxSingleInstanceChecker class"
194 ac_help="$ac_help
195 --enable-mimetype use wxMimeTypesManager"
196 ac_help="$ac_help
197 --enable-sysoptions use wxSystemOptions"
198 ac_help="$ac_help
199 --enable-threads use threads"
200 ac_help="$ac_help
201 --enable-serial use class serialization"
202 ac_help="$ac_help
203 --enable-docview use document view architecture"
204 ac_help="$ac_help
205 --enable-help use help subsystem"
206 ac_help="$ac_help
207 --enable-mshtmlhelp use MS HTML Help (win32)"
208 ac_help="$ac_help
209 --enable-html use wxHTML sub-library"
210 ac_help="$ac_help
211 --enable-htmlhelp use wxHTML-based help"
212 ac_help="$ac_help
213 --enable-constraints use layout-constraints system"
214 ac_help="$ac_help
215 --enable-printarch use printing architecture"
216 ac_help="$ac_help
217 --enable-mdi use multiple document interface architecture"
218 ac_help="$ac_help
219 --enable-loggui use standard GUI logger"
220 ac_help="$ac_help
221 --enable-logwin use wxLogWindow"
222 ac_help="$ac_help
223 --enable-logdialog use wxLogDialog"
224 ac_help="$ac_help
225 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
226 ac_help="$ac_help
227 --enable-prologio use Prolog IO library"
228 ac_help="$ac_help
229 --enable-resources use wxWindows resources"
230 ac_help="$ac_help
231 --enable-xresources use X resources for save (default for gtk+)"
232 ac_help="$ac_help
233 --enable-clipboard use wxClipboard classes"
234 ac_help="$ac_help
235 --enable-dnd use Drag'n'Drop classes"
236 ac_help="$ac_help
237 --enable-metafile use win32 metafiles"
238 ac_help="$ac_help
239 --enable-treelayout use wxTreeLayout classes"
240 ac_help="$ac_help
241 --enable-controls use all usual controls"
242 ac_help="$ac_help
243 --enable-accel use accelerators"
244 ac_help="$ac_help
245 --enable-button use wxButton class"
246 ac_help="$ac_help
247 --enable-bmpbutton use wxBitmapButton class"
248 ac_help="$ac_help
249 --enable-calendar use wxCalendarCtrl class"
250 ac_help="$ac_help
251 --enable-caret use wxCaret class"
252 ac_help="$ac_help
253 --enable-checkbox use wxCheckBox class"
254 ac_help="$ac_help
255 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
256 ac_help="$ac_help
257 --enable-choice use wxChoice class"
258 ac_help="$ac_help
259 --enable-combobox use wxComboBox classes"
260 ac_help="$ac_help
261 --enable-gauge use wxGauge class"
262 ac_help="$ac_help
263 --enable-grid use wxGrid class"
264 ac_help="$ac_help
265 --enable-newgrid use new wxGrid class"
266 ac_help="$ac_help
267 --enable-imaglist use wxImageList class"
268 ac_help="$ac_help
269 --enable-listbox use wxListBox class"
270 ac_help="$ac_help
271 --enable-listctrl use wxListCtrl class"
272 ac_help="$ac_help
273 --enable-notebook use wxNotebook class"
274 ac_help="$ac_help
275 --enable-propsheet use wxPropertySheet class"
276 ac_help="$ac_help
277 --enable-radiobox use wxRadioBox class"
278 ac_help="$ac_help
279 --enable-radiobtn use wxRadioButton class"
280 ac_help="$ac_help
281 --enable-sash use wxSashWindow class"
282 ac_help="$ac_help
283 --enable-scrollbar use wxScrollBar class and scrollable windows"
284 ac_help="$ac_help
285 --enable-slider use wxSlider class"
286 ac_help="$ac_help
287 --enable-spinbtn use wxSpinButton class"
288 ac_help="$ac_help
289 --enable-spinctrl use wxSpinCtrl class"
290 ac_help="$ac_help
291 --enable-splitter use wxSplitterWindow class"
292 ac_help="$ac_help
293 --enable-statbmp use wxStaticBitmap class"
294 ac_help="$ac_help
295 --enable-statbox use wxStaticBox class"
296 ac_help="$ac_help
297 --enable-statline use wxStaticLine class"
298 ac_help="$ac_help
299 --enable-stattext use wxStaticText class"
300 ac_help="$ac_help
301 --enable-statusbar use wxStatusBar class"
302 ac_help="$ac_help
303 --enable-tabdialog use wxTabControl class"
304 ac_help="$ac_help
305 --enable-textctrl use wxTextCtrl class"
306 ac_help="$ac_help
307 --enable-togglebtn use wxToggleButton class"
308 ac_help="$ac_help
309 --enable-toolbar use wxToolBar class"
310 ac_help="$ac_help
311 --enable-tbarnative use native wxToolBar class"
312 ac_help="$ac_help
313 --enable-tbarsmpl use wxToolBarSimple class"
314 ac_help="$ac_help
315 --enable-treectrl use wxTreeCtrl class"
316 ac_help="$ac_help
317 --enable-tipwindow use wxTipWindow class"
318 ac_help="$ac_help
319 --enable-popupwin use wxPopUpWindow class"
320 ac_help="$ac_help
321 --enable-commondlg use all common dialogs"
322 ac_help="$ac_help
323 --enable-choicedlg use wxChoiceDialog"
324 ac_help="$ac_help
325 --enable-coldlg use wxColourDialog"
326 ac_help="$ac_help
327 --enable-filedlg use wxFileDialog"
328 ac_help="$ac_help
329 --enable-finddlg use wxFindReplaceDialog"
330 ac_help="$ac_help
331 --enable-fontdlg use wxFontDialog"
332 ac_help="$ac_help
333 --enable-dirdlg use wxDirDialog"
334 ac_help="$ac_help
335 --enable-msgdlg use wxMessageDialog"
336 ac_help="$ac_help
337 --enable-numberdlg use wxNumberEntryDialog"
338 ac_help="$ac_help
339 --enable-splash use wxSplashScreen"
340 ac_help="$ac_help
341 --enable-textdlg use wxTextDialog"
342 ac_help="$ac_help
343 --enable-tipdlg use startup tips"
344 ac_help="$ac_help
345 --enable-progressdlg use wxProgressDialog"
346 ac_help="$ac_help
347 --enable-wizarddlg use wxWizard"
348 ac_help="$ac_help
349 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
350 ac_help="$ac_help
351 --enable-miniframe use wxMiniFrame class"
352 ac_help="$ac_help
353 --enable-tooltips use wxToolTip class"
354 ac_help="$ac_help
355 --enable-splines use spline drawing code"
356 ac_help="$ac_help
357 --enable-validators use wxValidator and derived classes"
358 ac_help="$ac_help
359 --enable-busyinfo use wxBusyInfo"
360 ac_help="$ac_help
361 --enable-joystick use wxJoystick (Linux only)"
362 ac_help="$ac_help
363 --enable-metafiles use wxMetaFile (Windows only)"
364 ac_help="$ac_help
365 --enable-dragimage use wxDragImage"
366 ac_help="$ac_help
367 --enable-palette use wxPalette class"
368 ac_help="$ac_help
369 --enable-image use wxImage class"
370 ac_help="$ac_help
371 --enable-gif use gif images (GIF file format)"
372 ac_help="$ac_help
373 --enable-pcx use pcx images (PCX file format)"
374 ac_help="$ac_help
375 --enable-pnm use pnm images (PNM file format)"
376 ac_help="$ac_help
377 --enable-xpm use xpm images (XPM file format)"
378 ac_help="$ac_help
379 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
380 ac_help="$ac_help
381 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
382 ac_help="$ac_help
383 --disable-gtktest Do not try to compile and run a test GTK program"
384 ac_help="$ac_help
385 --with-x use the X Window System"
386
387 # Initialize some variables set by options.
388 # The variables have the same names as the options, with
389 # dashes changed to underlines.
390 build=NONE
391 cache_file=./config.cache
392 exec_prefix=NONE
393 host=NONE
394 no_create=
395 nonopt=NONE
396 no_recursion=
397 prefix=NONE
398 program_prefix=NONE
399 program_suffix=NONE
400 program_transform_name=s,x,x,
401 silent=
402 site=
403 srcdir=
404 target=NONE
405 verbose=
406 x_includes=NONE
407 x_libraries=NONE
408 bindir='${exec_prefix}/bin'
409 sbindir='${exec_prefix}/sbin'
410 libexecdir='${exec_prefix}/libexec'
411 datadir='${prefix}/share'
412 sysconfdir='${prefix}/etc'
413 sharedstatedir='${prefix}/com'
414 localstatedir='${prefix}/var'
415 libdir='${exec_prefix}/lib'
416 includedir='${prefix}/include'
417 oldincludedir='/usr/include'
418 infodir='${prefix}/info'
419 mandir='${prefix}/man'
420
421 # Initialize some other variables.
422 subdirs=
423 MFLAGS= MAKEFLAGS=
424 SHELL=${CONFIG_SHELL-/bin/sh}
425 # Maximum number of lines to put in a shell here document.
426 ac_max_here_lines=12
427
428 ac_prev=
429 for ac_option
430 do
431
432 # If the previous option needs an argument, assign it.
433 if test -n "$ac_prev"; then
434 eval "$ac_prev=\$ac_option"
435 ac_prev=
436 continue
437 fi
438
439 case "$ac_option" in
440 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
441 *) ac_optarg= ;;
442 esac
443
444 # Accept the important Cygnus configure options, so we can diagnose typos.
445
446 case "$ac_option" in
447
448 -bindir | --bindir | --bindi | --bind | --bin | --bi)
449 ac_prev=bindir ;;
450 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
451 bindir="$ac_optarg" ;;
452
453 -build | --build | --buil | --bui | --bu)
454 ac_prev=build ;;
455 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
456 build="$ac_optarg" ;;
457
458 -cache-file | --cache-file | --cache-fil | --cache-fi \
459 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
460 ac_prev=cache_file ;;
461 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
462 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
463 cache_file="$ac_optarg" ;;
464
465 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
466 ac_prev=datadir ;;
467 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
468 | --da=*)
469 datadir="$ac_optarg" ;;
470
471 -disable-* | --disable-*)
472 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
473 # Reject names that are not valid shell variable names.
474 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
475 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
476 fi
477 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
478 eval "enable_${ac_feature}=no" ;;
479
480 -enable-* | --enable-*)
481 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
482 # Reject names that are not valid shell variable names.
483 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
484 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
485 fi
486 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
487 case "$ac_option" in
488 *=*) ;;
489 *) ac_optarg=yes ;;
490 esac
491 eval "enable_${ac_feature}='$ac_optarg'" ;;
492
493 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
494 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
495 | --exec | --exe | --ex)
496 ac_prev=exec_prefix ;;
497 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
498 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
499 | --exec=* | --exe=* | --ex=*)
500 exec_prefix="$ac_optarg" ;;
501
502 -gas | --gas | --ga | --g)
503 # Obsolete; use --with-gas.
504 with_gas=yes ;;
505
506 -help | --help | --hel | --he)
507 # Omit some internal or obsolete options to make the list less imposing.
508 # This message is too long to be a string in the A/UX 3.1 sh.
509 cat << EOF
510 Usage: configure [options] [host]
511 Options: [defaults in brackets after descriptions]
512 Configuration:
513 --cache-file=FILE cache test results in FILE
514 --help print this message
515 --no-create do not create output files
516 --quiet, --silent do not print \`checking...' messages
517 --version print the version of autoconf that created configure
518 Directory and file names:
519 --prefix=PREFIX install architecture-independent files in PREFIX
520 [$ac_default_prefix]
521 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
522 [same as prefix]
523 --bindir=DIR user executables in DIR [EPREFIX/bin]
524 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
525 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
526 --datadir=DIR read-only architecture-independent data in DIR
527 [PREFIX/share]
528 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
529 --sharedstatedir=DIR modifiable architecture-independent data in DIR
530 [PREFIX/com]
531 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
532 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
533 --includedir=DIR C header files in DIR [PREFIX/include]
534 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
535 --infodir=DIR info documentation in DIR [PREFIX/info]
536 --mandir=DIR man documentation in DIR [PREFIX/man]
537 --srcdir=DIR find the sources in DIR [configure dir or ..]
538 --program-prefix=PREFIX prepend PREFIX to installed program names
539 --program-suffix=SUFFIX append SUFFIX to installed program names
540 --program-transform-name=PROGRAM
541 run sed PROGRAM on installed program names
542 EOF
543 cat << EOF
544 Host type:
545 --build=BUILD configure for building on BUILD [BUILD=HOST]
546 --host=HOST configure for HOST [guessed]
547 --target=TARGET configure for TARGET [TARGET=HOST]
548 Features and packages:
549 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
550 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
551 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
552 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
553 --x-includes=DIR X include files are in DIR
554 --x-libraries=DIR X library files are in DIR
555 EOF
556 if test -n "$ac_help"; then
557 echo "--enable and --with options recognized:$ac_help"
558 fi
559 exit 0 ;;
560
561 -host | --host | --hos | --ho)
562 ac_prev=host ;;
563 -host=* | --host=* | --hos=* | --ho=*)
564 host="$ac_optarg" ;;
565
566 -includedir | --includedir | --includedi | --included | --include \
567 | --includ | --inclu | --incl | --inc)
568 ac_prev=includedir ;;
569 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
570 | --includ=* | --inclu=* | --incl=* | --inc=*)
571 includedir="$ac_optarg" ;;
572
573 -infodir | --infodir | --infodi | --infod | --info | --inf)
574 ac_prev=infodir ;;
575 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
576 infodir="$ac_optarg" ;;
577
578 -libdir | --libdir | --libdi | --libd)
579 ac_prev=libdir ;;
580 -libdir=* | --libdir=* | --libdi=* | --libd=*)
581 libdir="$ac_optarg" ;;
582
583 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
584 | --libexe | --libex | --libe)
585 ac_prev=libexecdir ;;
586 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
587 | --libexe=* | --libex=* | --libe=*)
588 libexecdir="$ac_optarg" ;;
589
590 -localstatedir | --localstatedir | --localstatedi | --localstated \
591 | --localstate | --localstat | --localsta | --localst \
592 | --locals | --local | --loca | --loc | --lo)
593 ac_prev=localstatedir ;;
594 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
595 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
596 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
597 localstatedir="$ac_optarg" ;;
598
599 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
600 ac_prev=mandir ;;
601 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
602 mandir="$ac_optarg" ;;
603
604 -nfp | --nfp | --nf)
605 # Obsolete; use --without-fp.
606 with_fp=no ;;
607
608 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
609 | --no-cr | --no-c)
610 no_create=yes ;;
611
612 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
613 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
614 no_recursion=yes ;;
615
616 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
617 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
618 | --oldin | --oldi | --old | --ol | --o)
619 ac_prev=oldincludedir ;;
620 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
621 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
622 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
623 oldincludedir="$ac_optarg" ;;
624
625 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
626 ac_prev=prefix ;;
627 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
628 prefix="$ac_optarg" ;;
629
630 -program-prefix | --program-prefix | --program-prefi | --program-pref \
631 | --program-pre | --program-pr | --program-p)
632 ac_prev=program_prefix ;;
633 -program-prefix=* | --program-prefix=* | --program-prefi=* \
634 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
635 program_prefix="$ac_optarg" ;;
636
637 -program-suffix | --program-suffix | --program-suffi | --program-suff \
638 | --program-suf | --program-su | --program-s)
639 ac_prev=program_suffix ;;
640 -program-suffix=* | --program-suffix=* | --program-suffi=* \
641 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
642 program_suffix="$ac_optarg" ;;
643
644 -program-transform-name | --program-transform-name \
645 | --program-transform-nam | --program-transform-na \
646 | --program-transform-n | --program-transform- \
647 | --program-transform | --program-transfor \
648 | --program-transfo | --program-transf \
649 | --program-trans | --program-tran \
650 | --progr-tra | --program-tr | --program-t)
651 ac_prev=program_transform_name ;;
652 -program-transform-name=* | --program-transform-name=* \
653 | --program-transform-nam=* | --program-transform-na=* \
654 | --program-transform-n=* | --program-transform-=* \
655 | --program-transform=* | --program-transfor=* \
656 | --program-transfo=* | --program-transf=* \
657 | --program-trans=* | --program-tran=* \
658 | --progr-tra=* | --program-tr=* | --program-t=*)
659 program_transform_name="$ac_optarg" ;;
660
661 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
662 | -silent | --silent | --silen | --sile | --sil)
663 silent=yes ;;
664
665 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
666 ac_prev=sbindir ;;
667 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
668 | --sbi=* | --sb=*)
669 sbindir="$ac_optarg" ;;
670
671 -sharedstatedir | --sharedstatedir | --sharedstatedi \
672 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
673 | --sharedst | --shareds | --shared | --share | --shar \
674 | --sha | --sh)
675 ac_prev=sharedstatedir ;;
676 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
677 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
678 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
679 | --sha=* | --sh=*)
680 sharedstatedir="$ac_optarg" ;;
681
682 -site | --site | --sit)
683 ac_prev=site ;;
684 -site=* | --site=* | --sit=*)
685 site="$ac_optarg" ;;
686
687 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
688 ac_prev=srcdir ;;
689 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
690 srcdir="$ac_optarg" ;;
691
692 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
693 | --syscon | --sysco | --sysc | --sys | --sy)
694 ac_prev=sysconfdir ;;
695 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
696 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
697 sysconfdir="$ac_optarg" ;;
698
699 -target | --target | --targe | --targ | --tar | --ta | --t)
700 ac_prev=target ;;
701 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
702 target="$ac_optarg" ;;
703
704 -v | -verbose | --verbose | --verbos | --verbo | --verb)
705 verbose=yes ;;
706
707 -version | --version | --versio | --versi | --vers)
708 echo "configure generated by autoconf version 2.13"
709 exit 0 ;;
710
711 -with-* | --with-*)
712 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
713 # Reject names that are not valid shell variable names.
714 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
715 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
716 fi
717 ac_package=`echo $ac_package| sed 's/-/_/g'`
718 case "$ac_option" in
719 *=*) ;;
720 *) ac_optarg=yes ;;
721 esac
722 eval "with_${ac_package}='$ac_optarg'" ;;
723
724 -without-* | --without-*)
725 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
726 # Reject names that are not valid shell variable names.
727 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
728 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
729 fi
730 ac_package=`echo $ac_package| sed 's/-/_/g'`
731 eval "with_${ac_package}=no" ;;
732
733 --x)
734 # Obsolete; use --with-x.
735 with_x=yes ;;
736
737 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
738 | --x-incl | --x-inc | --x-in | --x-i)
739 ac_prev=x_includes ;;
740 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
741 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
742 x_includes="$ac_optarg" ;;
743
744 -x-libraries | --x-libraries | --x-librarie | --x-librari \
745 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
746 ac_prev=x_libraries ;;
747 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
748 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
749 x_libraries="$ac_optarg" ;;
750
751 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
752 ;;
753
754 *)
755 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
756 echo "configure: warning: $ac_option: invalid host type" 1>&2
757 fi
758 if test "x$nonopt" != xNONE; then
759 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
760 fi
761 nonopt="$ac_option"
762 ;;
763
764 esac
765 done
766
767 if test -n "$ac_prev"; then
768 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
769 fi
770
771 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
772
773 # File descriptor usage:
774 # 0 standard input
775 # 1 file creation
776 # 2 errors and warnings
777 # 3 some systems may open it to /dev/tty
778 # 4 used on the Kubota Titan
779 # 6 checking for... messages and results
780 # 5 compiler messages saved in config.log
781 if test "$silent" = yes; then
782 exec 6>/dev/null
783 else
784 exec 6>&1
785 fi
786 exec 5>./config.log
787
788 echo "\
789 This file contains any messages produced by compilers while
790 running configure, to aid debugging if configure makes a mistake.
791 " 1>&5
792
793 # Strip out --no-create and --no-recursion so they do not pile up.
794 # Also quote any args containing shell metacharacters.
795 ac_configure_args=
796 for ac_arg
797 do
798 case "$ac_arg" in
799 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
800 | --no-cr | --no-c) ;;
801 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
802 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
803 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
804 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
805 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
806 esac
807 done
808
809 # NLS nuisances.
810 # Only set these to C if already set. These must not be set unconditionally
811 # because not all systems understand e.g. LANG=C (notably SCO).
812 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
813 # Non-C LC_CTYPE values break the ctype check.
814 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
815 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
816 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
817 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
818
819 # confdefs.h avoids OS command line length limits that DEFS can exceed.
820 rm -rf conftest* confdefs.h
821 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
822 echo > confdefs.h
823
824 # A filename unique to this package, relative to the directory that
825 # configure is in, which we can look for to find out if srcdir is correct.
826 ac_unique_file=wx-config.in
827
828 # Find the source files, if location was not specified.
829 if test -z "$srcdir"; then
830 ac_srcdir_defaulted=yes
831 # Try the directory containing this script, then its parent.
832 ac_prog=$0
833 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
834 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
835 srcdir=$ac_confdir
836 if test ! -r $srcdir/$ac_unique_file; then
837 srcdir=..
838 fi
839 else
840 ac_srcdir_defaulted=no
841 fi
842 if test ! -r $srcdir/$ac_unique_file; then
843 if test "$ac_srcdir_defaulted" = yes; then
844 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
845 else
846 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
847 fi
848 fi
849 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
850
851 # Prefer explicitly selected file to automatically selected ones.
852 if test -z "$CONFIG_SITE"; then
853 if test "x$prefix" != xNONE; then
854 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
855 else
856 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
857 fi
858 fi
859 for ac_site_file in $CONFIG_SITE; do
860 if test -r "$ac_site_file"; then
861 echo "loading site script $ac_site_file"
862 . "$ac_site_file"
863 fi
864 done
865
866 if test -r "$cache_file"; then
867 echo "loading cache $cache_file"
868 . $cache_file
869 else
870 echo "creating cache $cache_file"
871 > $cache_file
872 fi
873
874 ac_ext=c
875 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
876 ac_cpp='$CPP $CPPFLAGS'
877 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
878 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
879 cross_compiling=$ac_cv_prog_cc_cross
880
881 ac_exeext=
882 ac_objext=o
883 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
884 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
885 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
886 ac_n= ac_c='
887 ' ac_t=' '
888 else
889 ac_n=-n ac_c= ac_t=
890 fi
891 else
892 ac_n= ac_c='\c' ac_t=
893 fi
894
895
896
897 ac_aux_dir=
898 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
899 if test -f $ac_dir/install-sh; then
900 ac_aux_dir=$ac_dir
901 ac_install_sh="$ac_aux_dir/install-sh -c"
902 break
903 elif test -f $ac_dir/install.sh; then
904 ac_aux_dir=$ac_dir
905 ac_install_sh="$ac_aux_dir/install.sh -c"
906 break
907 fi
908 done
909 if test -z "$ac_aux_dir"; then
910 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
911 fi
912 ac_config_guess=$ac_aux_dir/config.guess
913 ac_config_sub=$ac_aux_dir/config.sub
914 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
915
916
917 # Do some error checking and defaulting for the host and target type.
918 # The inputs are:
919 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
920 #
921 # The rules are:
922 # 1. You are not allowed to specify --host, --target, and nonopt at the
923 # same time.
924 # 2. Host defaults to nonopt.
925 # 3. If nonopt is not specified, then host defaults to the current host,
926 # as determined by config.guess.
927 # 4. Target and build default to nonopt.
928 # 5. If nonopt is not specified, then target and build default to host.
929
930 # The aliases save the names the user supplied, while $host etc.
931 # will get canonicalized.
932 case $host---$target---$nonopt in
933 NONE---*---* | *---NONE---* | *---*---NONE) ;;
934 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
935 esac
936
937
938 # Make sure we can run config.sub.
939 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
940 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
941 fi
942
943 echo $ac_n "checking host system type""... $ac_c" 1>&6
944 echo "configure:945: checking host system type" >&5
945
946 host_alias=$host
947 case "$host_alias" in
948 NONE)
949 case $nonopt in
950 NONE)
951 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
952 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
953 fi ;;
954 *) host_alias=$nonopt ;;
955 esac ;;
956 esac
957
958 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
959 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
960 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
961 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
962 echo "$ac_t""$host" 1>&6
963
964 echo $ac_n "checking target system type""... $ac_c" 1>&6
965 echo "configure:966: checking target system type" >&5
966
967 target_alias=$target
968 case "$target_alias" in
969 NONE)
970 case $nonopt in
971 NONE) target_alias=$host_alias ;;
972 *) target_alias=$nonopt ;;
973 esac ;;
974 esac
975
976 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
977 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
978 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
979 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
980 echo "$ac_t""$target" 1>&6
981
982 echo $ac_n "checking build system type""... $ac_c" 1>&6
983 echo "configure:984: checking build system type" >&5
984
985 build_alias=$build
986 case "$build_alias" in
987 NONE)
988 case $nonopt in
989 NONE) build_alias=$host_alias ;;
990 *) build_alias=$nonopt ;;
991 esac ;;
992 esac
993
994 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
995 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
996 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
997 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
998 echo "$ac_t""$build" 1>&6
999
1000 test "$host_alias" != "$target_alias" &&
1001 test "$program_prefix$program_suffix$program_transform_name" = \
1002 NONENONEs,x,x, &&
1003 program_prefix=${target_alias}-
1004
1005
1006
1007 WX_MAJOR_VERSION_NUMBER=2
1008 WX_MINOR_VERSION_NUMBER=3
1009 WX_RELEASE_NUMBER=2
1010
1011 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1012 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1013
1014 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1015
1016 WX_CURRENT=1
1017 WX_REVISION=0
1018 WX_AGE=0
1019
1020
1021
1022 USE_UNIX=1
1023 USE_WIN32=0
1024 USE_BEOS=0
1025 USE_MAC=0
1026
1027 USE_LINUX=
1028 USE_SGI=
1029 USE_HPUX=
1030 USE_SYSV=
1031 USE_SVR4=
1032 USE_AIX=
1033 USE_SUN=
1034 USE_SOLARIS=
1035 USE_SUNOS=
1036 USE_ALPHA=
1037 USE_OSF=
1038 USE_BSD=
1039 USE_DARWIN=
1040 USE_FREEBSD=
1041 USE_OPENBSD=
1042 USE_NETBSD=
1043 USE_VMS=
1044 USE_ULTRIX=
1045 USE_DATA_GENERAL=
1046
1047 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1048
1049 ALL_TOOLKITS="GTK MAC MGL MOTIF MSW PM WINE"
1050
1051 DEFAULT_wxUSE_GTK=0
1052 DEFAULT_wxUSE_MAC=0
1053 DEFAULT_wxUSE_MGL=0
1054 DEFAULT_wxUSE_MOTIF=0
1055 DEFAULT_wxUSE_MSW=0
1056 DEFAULT_wxUSE_PM=0
1057 DEFAULT_wxUSE_WINE=0
1058
1059 DEFAULT_DEFAULT_wxUSE_GTK=0
1060 DEFAULT_DEFAULT_wxUSE_MAC=0
1061 DEFAULT_DEFAULT_wxUSE_MGL=0
1062 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1063 DEFAULT_DEFAULT_wxUSE_MSW=0
1064 DEFAULT_DEFAULT_wxUSE_PM=0
1065 DEFAULT_DEFAULT_wxUSE_WINE=0
1066
1067 PROGRAM_EXT=
1068 SO_SUFFIX=so
1069
1070 case "${host}" in
1071 *-hp-hpux* )
1072 USE_HPUX=1
1073 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1074 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1075 SO_SUFFIX=sl
1076 cat >> confdefs.h <<\EOF
1077 #define __HPUX__ 1
1078 EOF
1079
1080 ;;
1081 *-*-linux* )
1082 USE_LINUX=1
1083 cat >> confdefs.h <<\EOF
1084 #define __LINUX__ 1
1085 EOF
1086
1087 TMP=`uname -m`
1088 if test "x$TMP" = "xalpha"; then
1089 USE_ALPHA=1
1090 cat >> confdefs.h <<\EOF
1091 #define __ALPHA__ 1
1092 EOF
1093
1094 fi
1095 DEFAULT_DEFAULT_wxUSE_GTK=1
1096 ;;
1097 *-*-irix5* | *-*-irix6* )
1098 USE_SGI=1
1099 USE_SVR4=1
1100 cat >> confdefs.h <<\EOF
1101 #define __SGI__ 1
1102 EOF
1103
1104 cat >> confdefs.h <<\EOF
1105 #define __SVR4__ 1
1106 EOF
1107
1108 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1109 ;;
1110 *-*-solaris2* )
1111 USE_SUN=1
1112 USE_SOLARIS=1
1113 USE_SVR4=1
1114 cat >> confdefs.h <<\EOF
1115 #define __SUN__ 1
1116 EOF
1117
1118 cat >> confdefs.h <<\EOF
1119 #define __SOLARIS__ 1
1120 EOF
1121
1122 cat >> confdefs.h <<\EOF
1123 #define __SVR4__ 1
1124 EOF
1125
1126 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1127 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1128 ;;
1129 *-*-sunos4* )
1130 USE_SUN=1
1131 USE_SUNOS=1
1132 USE_BSD=1
1133 cat >> confdefs.h <<\EOF
1134 #define __SUN__ 1
1135 EOF
1136
1137 cat >> confdefs.h <<\EOF
1138 #define __SUNOS__ 1
1139 EOF
1140
1141 cat >> confdefs.h <<\EOF
1142 #define __BSD__ 1
1143 EOF
1144
1145 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1146 ;;
1147 *-*-freebsd*)
1148 USE_BSD=1
1149 USE_FREEBSD=1
1150 cat >> confdefs.h <<\EOF
1151 #define __FREEBSD__ 1
1152 EOF
1153
1154 cat >> confdefs.h <<\EOF
1155 #define __BSD__ 1
1156 EOF
1157
1158 DEFAULT_DEFAULT_wxUSE_GTK=1
1159 ;;
1160 *-*-openbsd*)
1161 USE_BSD=1
1162 USE_OPENBSD=1
1163 cat >> confdefs.h <<\EOF
1164 #define __FREEBSD__ 1
1165 EOF
1166
1167 cat >> confdefs.h <<\EOF
1168 #define __OPENBSD__ 1
1169 EOF
1170
1171 DEFAULT_DEFAULT_wxUSE_GTK=1
1172 ;;
1173 *-*-netbsd*)
1174 USE_BSD=1
1175 USE_NETBSD=1
1176 cat >> confdefs.h <<\EOF
1177 #define __FREEBSD__ 1
1178 EOF
1179
1180 cat >> confdefs.h <<\EOF
1181 #define __NETBSD__ 1
1182 EOF
1183
1184 DEFAULT_DEFAULT_wxUSE_GTK=1
1185 ;;
1186 *-*-osf* )
1187 USE_ALPHA=1
1188 USE_OSF=1
1189 cat >> confdefs.h <<\EOF
1190 #define __ALPHA__ 1
1191 EOF
1192
1193 cat >> confdefs.h <<\EOF
1194 #define __OSF__ 1
1195 EOF
1196
1197 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1198 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1199 ;;
1200 *-*-dgux5* )
1201 USE_ALPHA=1
1202 USE_SVR4=1
1203 cat >> confdefs.h <<\EOF
1204 #define __ALPHA__ 1
1205 EOF
1206
1207 cat >> confdefs.h <<\EOF
1208 #define __SVR4__ 1
1209 EOF
1210
1211 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1212 ;;
1213 *-*-sysv5* )
1214 USE_SYSV=1
1215 USE_SVR4=1
1216 cat >> confdefs.h <<\EOF
1217 #define __SYSV__ 1
1218 EOF
1219
1220 cat >> confdefs.h <<\EOF
1221 #define __SVR4__ 1
1222 EOF
1223
1224 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1225 ;;
1226 *-*-aix* )
1227 USE_AIX=1
1228 USE_SYSV=1
1229 USE_SVR4=1
1230 cat >> confdefs.h <<\EOF
1231 #define __AIX__ 1
1232 EOF
1233
1234 cat >> confdefs.h <<\EOF
1235 #define __SYSV__ 1
1236 EOF
1237
1238 cat >> confdefs.h <<\EOF
1239 #define __SVR4__ 1
1240 EOF
1241
1242 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1243 ;;
1244
1245 *-*-cygwin* | *-*-mingw32* )
1246 USE_UNIX=0
1247 USE_WIN32=1
1248 SO_SUFFIX=dll
1249 cat >> confdefs.h <<\EOF
1250 #define __WIN32__ 1
1251 EOF
1252
1253 cat >> confdefs.h <<\EOF
1254 #define __WIN95__ 1
1255 EOF
1256
1257 cat >> confdefs.h <<\EOF
1258 #define __WINDOWS__ 1
1259 EOF
1260
1261 cat >> confdefs.h <<\EOF
1262 #define __GNUWIN32__ 1
1263 EOF
1264
1265 cat >> confdefs.h <<\EOF
1266 #define STRICT 1
1267 EOF
1268
1269 cat >> confdefs.h <<\EOF
1270 #define WINVER 0x0400
1271 EOF
1272
1273 PROGRAM_EXT=".exe"
1274 RESCOMP=windres
1275 DEFAULT_DEFAULT_wxUSE_MSW=1
1276 ;;
1277
1278 *-pc-os2_emx | *-pc-os2-emx )
1279 cat >> confdefs.h <<\EOF
1280 #define __EMX__ 1
1281 EOF
1282
1283 PROGRAM_EXT=".exe"
1284 DEFAULT_DEFAULT_wxUSE_PM=1
1285 ;;
1286
1287 powerpc-*-darwin* )
1288 USE_BSD=1
1289 USE_DARWIN=1
1290 SO_SUFFIX=dylib
1291 cat >> confdefs.h <<\EOF
1292 #define __BSD__ 1
1293 EOF
1294
1295 cat >> confdefs.h <<\EOF
1296 #define __DARWIN__ 1
1297 EOF
1298
1299 cat >> confdefs.h <<\EOF
1300 #define __POWERPC__ 1
1301 EOF
1302
1303 DEFAULT_DEFAULT_wxUSE_MAC=1
1304 ;;
1305
1306 *-*-beos* )
1307 USE_BEOS=1
1308 cat >> confdefs.h <<\EOF
1309 #define __BEOS__ 1
1310 EOF
1311
1312 ;;
1313
1314 *)
1315 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1316 esac
1317
1318 if test "$USE_UNIX" = 1 ; then
1319 wxUSE_UNIX=yes
1320 cat >> confdefs.h <<\EOF
1321 #define __UNIX__ 1
1322 EOF
1323
1324 fi
1325
1326 if test "$USE_LINUX" = 1; then
1327 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1328 echo "configure:1329: checking for glibc 2.1 or later" >&5
1329 if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1330 echo $ac_n "(cached) $ac_c" 1>&6
1331 else
1332 cat > conftest.$ac_ext <<EOF
1333 #line 1334 "configure"
1334 #include "confdefs.h"
1335 #include <features.h>
1336 int main() {
1337
1338 #if !__GLIBC_PREREQ(2, 1)
1339 #error not glibc2.1
1340 #endif
1341
1342 ; return 0; }
1343 EOF
1344 if { (eval echo configure:1345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1345 rm -rf conftest*
1346
1347 wx_lib_glibc21=yes
1348
1349 else
1350 echo "configure: failed program was:" >&5
1351 cat conftest.$ac_ext >&5
1352 rm -rf conftest*
1353
1354 wx_lib_glibc21=no
1355
1356
1357 fi
1358 rm -f conftest*
1359
1360 fi
1361
1362 echo "$ac_t""$wx_lib_glibc21" 1>&6
1363 if test "$wx_lib_glibc21" = "yes"; then
1364 cat >> confdefs.h <<\EOF
1365 #define wxHAVE_GLIBC2 1
1366 EOF
1367
1368 fi
1369 fi
1370
1371
1372
1373
1374 wx_arg_cache_file="configarg.cache"
1375 echo "loading argument cache $wx_arg_cache_file"
1376 rm -f ${wx_arg_cache_file}.tmp
1377 touch ${wx_arg_cache_file}.tmp
1378 touch ${wx_arg_cache_file}
1379
1380
1381 DEBUG_CONFIGURE=0
1382 if test $DEBUG_CONFIGURE = 1; then
1383 DEFAULT_wxUSE_UNIVERSAL=no
1384
1385 DEFAULT_wxUSE_THREADS=yes
1386
1387 DEFAULT_wxUSE_SHARED=yes
1388 DEFAULT_wxUSE_SONAME=no
1389 DEFAULT_wxUSE_OPTIMISE=no
1390 DEFAULT_wxUSE_PROFILE=no
1391 DEFAULT_wxUSE_NO_DEPS=no
1392 DEFAULT_wxUSE_NO_RTTI=yes
1393 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1394 DEFAULT_wxUSE_PERMISSIVE=no
1395 DEFAULT_wxUSE_DEBUG_FLAG=yes
1396 DEFAULT_wxUSE_DEBUG_INFO=yes
1397 DEFAULT_wxUSE_DEBUG_GDB=yes
1398 DEFAULT_wxUSE_MEM_TRACING=no
1399 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1400 DEFAULT_wxUSE_DMALLOC=no
1401 DEFAULT_wxUSE_PRECOMP=yes
1402 DEFAULT_wxUSE_APPLE_IEEE=no
1403
1404 DEFAULT_wxUSE_LOG=yes
1405 DEFAULT_wxUSE_LOGWINDOW=no
1406 DEFAULT_wxUSE_LOGGUI=no
1407 DEFAULT_wxUSE_LOGDIALOG=no
1408
1409 DEFAULT_wxUSE_GUI=yes
1410 DEFAULT_wxUSE_CONTROLS=no
1411
1412 DEFAULT_wxUSE_REGEX=no
1413 DEFAULT_wxUSE_ZLIB=no
1414 DEFAULT_wxUSE_LIBPNG=no
1415 DEFAULT_wxUSE_LIBJPEG=no
1416 DEFAULT_wxUSE_LIBTIFF=no
1417 DEFAULT_wxUSE_ODBC=no
1418 DEFAULT_wxUSE_FREETYPE=no
1419 DEFAULT_wxUSE_OPENGL=no
1420
1421 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1422 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1423 DEFAULT_wxUSE_STD_IOSTREAM=no
1424 DEFAULT_wxUSE_CMDLINE_PARSER=no
1425 DEFAULT_wxUSE_DATETIME=no
1426 DEFAULT_wxUSE_TIMEDATE=no
1427 DEFAULT_wxUSE_TIMER=no
1428 DEFAULT_wxUSE_STOPWATCH=no
1429 DEFAULT_wxUSE_FILE=no
1430 DEFAULT_wxUSE_FFILE=no
1431 DEFAULT_wxUSE_TEXTBUFFER=no
1432 DEFAULT_wxUSE_TEXTFILE=no
1433 DEFAULT_wxUSE_WAVE=no
1434 DEFAULT_wxUSE_INTL=no
1435 DEFAULT_wxUSE_CONFIG=no
1436 DEFAULT_wxUSE_FONTMAP=no
1437 DEFAULT_wxUSE_STREAMS=no
1438 DEFAULT_wxUSE_SOCKETS=no
1439 DEFAULT_wxUSE_DIALUP_MANAGER=no
1440 DEFAULT_wxUSE_SERIAL=no
1441 DEFAULT_wxUSE_JOYSTICK=no
1442 DEFAULT_wxUSE_DYNLIB_CLASS=no
1443 DEFAULT_wxUSE_LONGLONG=no
1444 DEFAULT_wxUSE_GEOMETRY=no
1445
1446 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1447 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1448 DEFAULT_wxUSE_POSTSCRIPT=no
1449
1450 DEFAULT_wxUSE_X_RESOURCES=no
1451 DEFAULT_wxUSE_CLIPBOARD=no
1452 DEFAULT_wxUSE_TOOLTIPS=no
1453 DEFAULT_wxUSE_DRAG_AND_DROP=no
1454 DEFAULT_wxUSE_DRAGIMAGE=no
1455 DEFAULT_wxUSE_SPLINES=no
1456
1457 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1458 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1459 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1460
1461 DEFAULT_wxUSE_PROLOGIO=no
1462 DEFAULT_wxUSE_RESOURCES=no
1463 DEFAULT_wxUSE_CONSTRAINTS=no
1464 DEFAULT_wxUSE_IPC=no
1465 DEFAULT_wxUSE_HELP=no
1466 DEFAULT_wxUSE_MS_HTML_HELP=no
1467 DEFAULT_wxUSE_WXHTML_HELP=no
1468 DEFAULT_wxUSE_TREELAYOUT=no
1469 DEFAULT_wxUSE_METAFILE=no
1470 DEFAULT_wxUSE_MIMETYPE=no
1471 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1472
1473 DEFAULT_wxUSE_COMMONDLGS=no
1474 DEFAULT_wxUSE_CHOICEDLG=no
1475 DEFAULT_wxUSE_COLOURDLG=no
1476 DEFAULT_wxUSE_DIRDLG=no
1477 DEFAULT_wxUSE_FILEDLG=no
1478 DEFAULT_wxUSE_FINDREPLDLG=no
1479 DEFAULT_wxUSE_FONTDLG=no
1480 DEFAULT_wxUSE_MSGDLG=no
1481 DEFAULT_wxUSE_NUMBERDLG=no
1482 DEFAULT_wxUSE_TEXTDLG=no
1483 DEFAULT_wxUSE_SPLASH=no
1484 DEFAULT_wxUSE_STARTUP_TIPS=no
1485 DEFAULT_wxUSE_PROGRESSDLG=no
1486 DEFAULT_wxUSE_WIZARDDLG=no
1487
1488 DEFAULT_wxUSE_MENUS=no
1489 DEFAULT_wxUSE_MINIFRAME=no
1490 DEFAULT_wxUSE_HTML=no
1491 DEFAULT_wxUSE_FILESYSTEM=no
1492 DEFAULT_wxUSE_FS_INET=no
1493 DEFAULT_wxUSE_FS_ZIP=no
1494 DEFAULT_wxUSE_BUSYINFO=no
1495 DEFAULT_wxUSE_ZIPSTREAM=no
1496 DEFAULT_wxUSE_VALIDATORS=no
1497
1498 DEFAULT_wxUSE_ACCEL=no
1499 DEFAULT_wxUSE_BUTTON=no
1500 DEFAULT_wxUSE_BMPBUTTON=no
1501 DEFAULT_wxUSE_CALCTRL=no
1502 DEFAULT_wxUSE_CARET=no
1503 DEFAULT_wxUSE_CHECKBOX=no
1504 DEFAULT_wxUSE_CHECKLST=no
1505 DEFAULT_wxUSE_CHOICE=no
1506 DEFAULT_wxUSE_COMBOBOX=no
1507 DEFAULT_wxUSE_GAUGE=no
1508 DEFAULT_wxUSE_GRID=no
1509 DEFAULT_wxUSE_NEW_GRID=no
1510 DEFAULT_wxUSE_IMAGLIST=no
1511 DEFAULT_wxUSE_LISTBOX=no
1512 DEFAULT_wxUSE_LISTCTRL=no
1513 DEFAULT_wxUSE_NOTEBOOK=no
1514 DEFAULT_wxUSE_PROPSHEET=no
1515 DEFAULT_wxUSE_RADIOBOX=no
1516 DEFAULT_wxUSE_RADIOBTN=no
1517 DEFAULT_wxUSE_SASH=no
1518 DEFAULT_wxUSE_SCROLLBAR=no
1519 DEFAULT_wxUSE_SLIDER=no
1520 DEFAULT_wxUSE_SPINBTN=no
1521 DEFAULT_wxUSE_SPINCTRL=no
1522 DEFAULT_wxUSE_SPLITTER=no
1523 DEFAULT_wxUSE_STATBMP=no
1524 DEFAULT_wxUSE_STATBOX=no
1525 DEFAULT_wxUSE_STATLINE=no
1526 DEFAULT_wxUSE_STATTEXT=no
1527 DEFAULT_wxUSE_STATUSBAR=yes
1528 DEFAULT_wxUSE_TABDIALOG=no
1529 DEFAULT_wxUSE_TEXTCTRL=no
1530 DEFAULT_wxUSE_TOGGLEBTN=no
1531 DEFAULT_wxUSE_TOOLBAR=no
1532 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1533 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1534 DEFAULT_wxUSE_TREECTRL=no
1535 DEFAULT_wxUSE_POPUPWIN=no
1536 DEFAULT_wxUSE_TIPWINDOW=no
1537
1538 DEFAULT_wxUSE_UNICODE=no
1539 DEFAULT_wxUSE_WCSRTOMBS=no
1540
1541 DEFAULT_wxUSE_PALETTE=no
1542 DEFAULT_wxUSE_IMAGE=no
1543 DEFAULT_wxUSE_GIF=no
1544 DEFAULT_wxUSE_PCX=no
1545 DEFAULT_wxUSE_PNM=no
1546 DEFAULT_wxUSE_XPM=no
1547 else
1548 DEFAULT_wxUSE_UNIVERSAL=no
1549
1550 DEFAULT_wxUSE_THREADS=yes
1551
1552 DEFAULT_wxUSE_SHARED=yes
1553 DEFAULT_wxUSE_SONAME=no
1554 DEFAULT_wxUSE_OPTIMISE=yes
1555 DEFAULT_wxUSE_PROFILE=no
1556 DEFAULT_wxUSE_NO_DEPS=no
1557 DEFAULT_wxUSE_NO_RTTI=yes
1558 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1559 DEFAULT_wxUSE_PERMISSIVE=no
1560 DEFAULT_wxUSE_DEBUG_FLAG=no
1561 DEFAULT_wxUSE_DEBUG_INFO=no
1562 DEFAULT_wxUSE_DEBUG_GDB=no
1563 DEFAULT_wxUSE_MEM_TRACING=no
1564 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1565 DEFAULT_wxUSE_DMALLOC=no
1566 DEFAULT_wxUSE_PRECOMP=yes
1567 DEFAULT_wxUSE_APPLE_IEEE=yes
1568
1569 DEFAULT_wxUSE_LOG=yes
1570 DEFAULT_wxUSE_LOGWINDOW=yes
1571 DEFAULT_wxUSE_LOGGUI=yes
1572 DEFAULT_wxUSE_LOGDIALOG=yes
1573
1574 DEFAULT_wxUSE_GUI=yes
1575
1576 DEFAULT_wxUSE_REGEX=yes
1577 DEFAULT_wxUSE_ZLIB=yes
1578 DEFAULT_wxUSE_LIBPNG=yes
1579 DEFAULT_wxUSE_LIBJPEG=yes
1580 DEFAULT_wxUSE_LIBTIFF=yes
1581 DEFAULT_wxUSE_ODBC=no
1582 DEFAULT_wxUSE_FREETYPE=no
1583 DEFAULT_wxUSE_OPENGL=no
1584
1585 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1586 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1587 DEFAULT_wxUSE_STD_IOSTREAM=no
1588 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1589 DEFAULT_wxUSE_DATETIME=yes
1590 DEFAULT_wxUSE_TIMEDATE=no
1591 DEFAULT_wxUSE_TIMER=yes
1592 DEFAULT_wxUSE_STOPWATCH=yes
1593 DEFAULT_wxUSE_FILE=yes
1594 DEFAULT_wxUSE_FFILE=yes
1595 DEFAULT_wxUSE_TEXTBUFFER=yes
1596 DEFAULT_wxUSE_TEXTFILE=yes
1597 DEFAULT_wxUSE_WAVE=no
1598 DEFAULT_wxUSE_INTL=yes
1599 DEFAULT_wxUSE_CONFIG=yes
1600 DEFAULT_wxUSE_FONTMAP=yes
1601 DEFAULT_wxUSE_STREAMS=yes
1602 DEFAULT_wxUSE_SOCKETS=yes
1603 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1604 DEFAULT_wxUSE_SERIAL=yes
1605 DEFAULT_wxUSE_JOYSTICK=yes
1606 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1607 DEFAULT_wxUSE_LONGLONG=yes
1608 DEFAULT_wxUSE_GEOMETRY=yes
1609
1610 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1611 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1612 DEFAULT_wxUSE_POSTSCRIPT=yes
1613
1614 DEFAULT_wxUSE_X_RESOURCES=no
1615 DEFAULT_wxUSE_CLIPBOARD=yes
1616 DEFAULT_wxUSE_TOOLTIPS=yes
1617 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1618 DEFAULT_wxUSE_DRAGIMAGE=yes
1619 DEFAULT_wxUSE_SPLINES=yes
1620
1621 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1622 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1623 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1624
1625 DEFAULT_wxUSE_PROLOGIO=yes
1626 DEFAULT_wxUSE_RESOURCES=yes
1627 DEFAULT_wxUSE_CONSTRAINTS=yes
1628 DEFAULT_wxUSE_IPC=yes
1629 DEFAULT_wxUSE_HELP=yes
1630 DEFAULT_wxUSE_MS_HTML_HELP=yes
1631 DEFAULT_wxUSE_WXHTML_HELP=yes
1632 DEFAULT_wxUSE_TREELAYOUT=yes
1633 DEFAULT_wxUSE_METAFILE=yes
1634 DEFAULT_wxUSE_MIMETYPE=yes
1635 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1636
1637 DEFAULT_wxUSE_COMMONDLGS=yes
1638 DEFAULT_wxUSE_CHOICEDLG=yes
1639 DEFAULT_wxUSE_COLOURDLG=yes
1640 DEFAULT_wxUSE_DIRDLG=yes
1641 DEFAULT_wxUSE_FILEDLG=yes
1642 DEFAULT_wxUSE_FINDREPLDLG=yes
1643 DEFAULT_wxUSE_FONTDLG=yes
1644 DEFAULT_wxUSE_MSGDLG=yes
1645 DEFAULT_wxUSE_NUMBERDLG=yes
1646 DEFAULT_wxUSE_TEXTDLG=yes
1647 DEFAULT_wxUSE_SPLASH=yes
1648 DEFAULT_wxUSE_STARTUP_TIPS=yes
1649 DEFAULT_wxUSE_PROGRESSDLG=yes
1650 DEFAULT_wxUSE_WIZARDDLG=yes
1651
1652 DEFAULT_wxUSE_MENUS=yes
1653 DEFAULT_wxUSE_MINIFRAME=yes
1654 DEFAULT_wxUSE_HTML=yes
1655 DEFAULT_wxUSE_FILESYSTEM=yes
1656 DEFAULT_wxUSE_FS_INET=yes
1657 DEFAULT_wxUSE_FS_ZIP=yes
1658 DEFAULT_wxUSE_BUSYINFO=yes
1659 DEFAULT_wxUSE_ZIPSTREAM=yes
1660 DEFAULT_wxUSE_VALIDATORS=yes
1661
1662 DEFAULT_wxUSE_ACCEL=yes
1663 DEFAULT_wxUSE_BUTTON=yes
1664 DEFAULT_wxUSE_BMPBUTTON=yes
1665 DEFAULT_wxUSE_CALCTRL=yes
1666 DEFAULT_wxUSE_CARET=yes
1667 DEFAULT_wxUSE_CHECKBOX=yes
1668 DEFAULT_wxUSE_CHECKLST=yes
1669 DEFAULT_wxUSE_CHOICE=yes
1670 DEFAULT_wxUSE_COMBOBOX=yes
1671 DEFAULT_wxUSE_GAUGE=yes
1672 DEFAULT_wxUSE_GRID=yes
1673 DEFAULT_wxUSE_NEW_GRID=yes
1674 DEFAULT_wxUSE_IMAGLIST=yes
1675 DEFAULT_wxUSE_LISTBOX=yes
1676 DEFAULT_wxUSE_LISTCTRL=yes
1677 DEFAULT_wxUSE_NOTEBOOK=yes
1678 DEFAULT_wxUSE_PROPSHEET=yes
1679 DEFAULT_wxUSE_RADIOBOX=yes
1680 DEFAULT_wxUSE_RADIOBTN=yes
1681 DEFAULT_wxUSE_SASH=yes
1682 DEFAULT_wxUSE_SCROLLBAR=yes
1683 DEFAULT_wxUSE_SLIDER=yes
1684 DEFAULT_wxUSE_SPINBTN=yes
1685 DEFAULT_wxUSE_SPINCTRL=yes
1686 DEFAULT_wxUSE_SPLITTER=yes
1687 DEFAULT_wxUSE_STATBMP=yes
1688 DEFAULT_wxUSE_STATBOX=yes
1689 DEFAULT_wxUSE_STATLINE=yes
1690 DEFAULT_wxUSE_STATTEXT=yes
1691 DEFAULT_wxUSE_STATUSBAR=yes
1692 DEFAULT_wxUSE_TABDIALOG=no
1693 DEFAULT_wxUSE_TEXTCTRL=yes
1694 DEFAULT_wxUSE_TOGGLEBTN=yes
1695 DEFAULT_wxUSE_TOOLBAR=yes
1696 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1697 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1698 DEFAULT_wxUSE_TREECTRL=yes
1699 DEFAULT_wxUSE_POPUPWIN=yes
1700 DEFAULT_wxUSE_TIPWINDOW=yes
1701
1702 DEFAULT_wxUSE_UNICODE=no
1703 DEFAULT_wxUSE_WCSRTOMBS=no
1704
1705 DEFAULT_wxUSE_PALETTE=yes
1706 DEFAULT_wxUSE_IMAGE=yes
1707 DEFAULT_wxUSE_GIF=yes
1708 DEFAULT_wxUSE_PCX=yes
1709 DEFAULT_wxUSE_PNM=yes
1710 DEFAULT_wxUSE_XPM=yes
1711 fi
1712
1713
1714
1715 for toolkit in `echo $ALL_TOOLKITS`; do
1716 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1717 if test "x$LINE" != x ; then
1718 has_toolkit_in_cache=1
1719 eval "DEFAULT_$LINE"
1720 eval "CACHE_$toolkit=1"
1721 fi
1722 done
1723
1724
1725
1726 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1727 echo "configure:1728: checking for --enable-gui" >&5
1728 no_cache=0
1729 # Check whether --enable-gui or --disable-gui was given.
1730 if test "${enable_gui+set}" = set; then
1731 enableval="$enable_gui"
1732
1733 if test "$enableval" = yes; then
1734 ac_cv_use_gui='wxUSE_GUI=yes'
1735 else
1736 ac_cv_use_gui='wxUSE_GUI=no'
1737 fi
1738
1739 else
1740
1741 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1742 if test "x$LINE" != x ; then
1743 eval "DEFAULT_$LINE"
1744 else
1745 no_cache=1
1746 fi
1747
1748 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1749
1750 fi
1751
1752
1753 eval "$ac_cv_use_gui"
1754 if test "$no_cache" != 1; then
1755 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1756 fi
1757
1758 if test "$wxUSE_GUI" = yes; then
1759 echo "$ac_t""yes" 1>&6
1760 else
1761 echo "$ac_t""no" 1>&6
1762 fi
1763
1764
1765 if test "$wxUSE_GUI" = "yes"; then
1766
1767
1768 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1769 echo "configure:1770: checking for --enable-universal" >&5
1770 no_cache=0
1771 # Check whether --enable-universal or --disable-universal was given.
1772 if test "${enable_universal+set}" = set; then
1773 enableval="$enable_universal"
1774
1775 if test "$enableval" = yes; then
1776 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1777 else
1778 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1779 fi
1780
1781 else
1782
1783 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1784 if test "x$LINE" != x ; then
1785 eval "DEFAULT_$LINE"
1786 else
1787 no_cache=1
1788 fi
1789
1790 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1791
1792 fi
1793
1794
1795 eval "$ac_cv_use_universal"
1796 if test "$no_cache" != 1; then
1797 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1798 fi
1799
1800 if test "$wxUSE_UNIVERSAL" = yes; then
1801 echo "$ac_t""yes" 1>&6
1802 else
1803 echo "$ac_t""no" 1>&6
1804 fi
1805
1806 # Check whether --with-gtk or --without-gtk was given.
1807 if test "${with_gtk+set}" = set; then
1808 withval="$with_gtk"
1809 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1810 fi
1811
1812 # Check whether --with-motif or --without-motif was given.
1813 if test "${with_motif+set}" = set; then
1814 withval="$with_motif"
1815 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1816 fi
1817
1818 # Check whether --with-mac or --without-mac was given.
1819 if test "${with_mac+set}" = set; then
1820 withval="$with_mac"
1821 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1822 fi
1823
1824 # Check whether --with-wine or --without-wine was given.
1825 if test "${with_wine+set}" = set; then
1826 withval="$with_wine"
1827 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1828 fi
1829
1830 # Check whether --with-msw or --without-msw was given.
1831 if test "${with_msw+set}" = set; then
1832 withval="$with_msw"
1833 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1834 fi
1835
1836 # Check whether --with-pm or --without-pm was given.
1837 if test "${with_pm+set}" = set; then
1838 withval="$with_pm"
1839 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1840 fi
1841
1842 # Check whether --with-mgl or --without-mgl was given.
1843 if test "${with_mgl+set}" = set; then
1844 withval="$with_mgl"
1845 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1846 fi
1847
1848
1849 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1850 if test "${enable_gtk2+set}" = set; then
1851 enableval="$enable_gtk2"
1852 wxUSE_GTK2=1
1853 else
1854 wxUSE_GTK2=0
1855 fi
1856
1857
1858
1859 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1860 echo "configure:1861: checking for --with-libpng" >&5
1861 no_cache=0
1862 # Check whether --with-libpng or --without-libpng was given.
1863 if test "${with_libpng+set}" = set; then
1864 withval="$with_libpng"
1865
1866 if test "$withval" = yes; then
1867 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1868 elif test "$withval" = no; then
1869 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1870 elif test "$withval" = sys; then
1871 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1872 elif test "$withval" = builtin; then
1873 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1874 else
1875 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1876 fi
1877
1878 else
1879
1880 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1881 if test "x$LINE" != x ; then
1882 eval "DEFAULT_$LINE"
1883 else
1884 no_cache=1
1885 fi
1886
1887 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1888
1889 fi
1890
1891
1892 eval "$ac_cv_use_libpng"
1893 if test "$no_cache" != 1; then
1894 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1895 fi
1896
1897 if test "$wxUSE_LIBPNG" = yes; then
1898 echo "$ac_t""yes" 1>&6
1899 elif test "$wxUSE_LIBPNG" = no; then
1900 echo "$ac_t""no" 1>&6
1901 elif test "$wxUSE_LIBPNG" = sys; then
1902 echo "$ac_t""system version" 1>&6
1903 elif test "$wxUSE_LIBPNG" = builtin; then
1904 echo "$ac_t""builtin version" 1>&6
1905 else
1906 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1907 fi
1908
1909
1910 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1911 echo "configure:1912: checking for --with-libjpeg" >&5
1912 no_cache=0
1913 # Check whether --with-libjpeg or --without-libjpeg was given.
1914 if test "${with_libjpeg+set}" = set; then
1915 withval="$with_libjpeg"
1916
1917 if test "$withval" = yes; then
1918 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1919 elif test "$withval" = no; then
1920 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1921 elif test "$withval" = sys; then
1922 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1923 elif test "$withval" = builtin; then
1924 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
1925 else
1926 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1927 fi
1928
1929 else
1930
1931 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1932 if test "x$LINE" != x ; then
1933 eval "DEFAULT_$LINE"
1934 else
1935 no_cache=1
1936 fi
1937
1938 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1939
1940 fi
1941
1942
1943 eval "$ac_cv_use_libjpeg"
1944 if test "$no_cache" != 1; then
1945 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1946 fi
1947
1948 if test "$wxUSE_LIBJPEG" = yes; then
1949 echo "$ac_t""yes" 1>&6
1950 elif test "$wxUSE_LIBJPEG" = no; then
1951 echo "$ac_t""no" 1>&6
1952 elif test "$wxUSE_LIBJPEG" = sys; then
1953 echo "$ac_t""system version" 1>&6
1954 elif test "$wxUSE_LIBJPEG" = builtin; then
1955 echo "$ac_t""builtin version" 1>&6
1956 else
1957 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1958 fi
1959
1960
1961 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1962 echo "configure:1963: checking for --with-libtiff" >&5
1963 no_cache=0
1964 # Check whether --with-libtiff or --without-libtiff was given.
1965 if test "${with_libtiff+set}" = set; then
1966 withval="$with_libtiff"
1967
1968 if test "$withval" = yes; then
1969 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1970 elif test "$withval" = no; then
1971 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1972 elif test "$withval" = sys; then
1973 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1974 elif test "$withval" = builtin; then
1975 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
1976 else
1977 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1978 fi
1979
1980 else
1981
1982 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1983 if test "x$LINE" != x ; then
1984 eval "DEFAULT_$LINE"
1985 else
1986 no_cache=1
1987 fi
1988
1989 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1990
1991 fi
1992
1993
1994 eval "$ac_cv_use_libtiff"
1995 if test "$no_cache" != 1; then
1996 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1997 fi
1998
1999 if test "$wxUSE_LIBTIFF" = yes; then
2000 echo "$ac_t""yes" 1>&6
2001 elif test "$wxUSE_LIBTIFF" = no; then
2002 echo "$ac_t""no" 1>&6
2003 elif test "$wxUSE_LIBTIFF" = sys; then
2004 echo "$ac_t""system version" 1>&6
2005 elif test "$wxUSE_LIBTIFF" = builtin; then
2006 echo "$ac_t""builtin version" 1>&6
2007 else
2008 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2009 fi
2010
2011
2012 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
2013 echo "configure:2014: checking for --with-freetype" >&5
2014 no_cache=0
2015 # Check whether --with-freetype or --without-freetype was given.
2016 if test "${with_freetype+set}" = set; then
2017 withval="$with_freetype"
2018
2019 if test "$withval" = yes; then
2020 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2021 elif test "$withval" = no; then
2022 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2023 elif test "$withval" = sys; then
2024 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2025 elif test "$withval" = builtin; then
2026 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
2027 else
2028 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2029 fi
2030
2031 else
2032
2033 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2034 if test "x$LINE" != x ; then
2035 eval "DEFAULT_$LINE"
2036 else
2037 no_cache=1
2038 fi
2039
2040 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2041
2042 fi
2043
2044
2045 eval "$ac_cv_use_freetype"
2046 if test "$no_cache" != 1; then
2047 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2048 fi
2049
2050 if test "$wxUSE_FREETYPE" = yes; then
2051 echo "$ac_t""yes" 1>&6
2052 elif test "$wxUSE_FREETYPE" = no; then
2053 echo "$ac_t""no" 1>&6
2054 elif test "$wxUSE_FREETYPE" = sys; then
2055 echo "$ac_t""system version" 1>&6
2056 elif test "$wxUSE_FREETYPE" = builtin; then
2057 echo "$ac_t""builtin version" 1>&6
2058 else
2059 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2060 fi
2061
2062
2063 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2064 echo "configure:2065: checking for --with-opengl" >&5
2065 no_cache=0
2066 # Check whether --with-opengl or --without-opengl was given.
2067 if test "${with_opengl+set}" = set; then
2068 withval="$with_opengl"
2069
2070 if test "$withval" = yes; then
2071 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2072 else
2073 ac_cv_use_opengl='wxUSE_OPENGL=no'
2074 fi
2075
2076 else
2077
2078 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2079 if test "x$LINE" != x ; then
2080 eval "DEFAULT_$LINE"
2081 else
2082 no_cache=1
2083 fi
2084
2085 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2086
2087 fi
2088
2089
2090 eval "$ac_cv_use_opengl"
2091 if test "$no_cache" != 1; then
2092 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2093 fi
2094
2095 if test "$wxUSE_OPENGL" = yes; then
2096 echo "$ac_t""yes" 1>&6
2097 else
2098 echo "$ac_t""no" 1>&6
2099 fi
2100
2101
2102 fi
2103
2104
2105 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2106 echo "configure:2107: checking for --with-dmalloc" >&5
2107 no_cache=0
2108 # Check whether --with-dmalloc or --without-dmalloc was given.
2109 if test "${with_dmalloc+set}" = set; then
2110 withval="$with_dmalloc"
2111
2112 if test "$withval" = yes; then
2113 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2114 else
2115 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2116 fi
2117
2118 else
2119
2120 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2121 if test "x$LINE" != x ; then
2122 eval "DEFAULT_$LINE"
2123 else
2124 no_cache=1
2125 fi
2126
2127 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2128
2129 fi
2130
2131
2132 eval "$ac_cv_use_dmalloc"
2133 if test "$no_cache" != 1; then
2134 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2135 fi
2136
2137 if test "$wxUSE_DMALLOC" = yes; then
2138 echo "$ac_t""yes" 1>&6
2139 else
2140 echo "$ac_t""no" 1>&6
2141 fi
2142
2143
2144 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2145 echo "configure:2146: checking for --with-regex" >&5
2146 no_cache=0
2147 # Check whether --with-regex or --without-regex was given.
2148 if test "${with_regex+set}" = set; then
2149 withval="$with_regex"
2150
2151 if test "$withval" = yes; then
2152 ac_cv_use_regex='wxUSE_REGEX=yes'
2153 elif test "$withval" = no; then
2154 ac_cv_use_regex='wxUSE_REGEX=no'
2155 elif test "$withval" = sys; then
2156 ac_cv_use_regex='wxUSE_REGEX=sys'
2157 elif test "$withval" = builtin; then
2158 ac_cv_use_regex='wxUSE_REGEX=builtin'
2159 else
2160 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2161 fi
2162
2163 else
2164
2165 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2166 if test "x$LINE" != x ; then
2167 eval "DEFAULT_$LINE"
2168 else
2169 no_cache=1
2170 fi
2171
2172 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2173
2174 fi
2175
2176
2177 eval "$ac_cv_use_regex"
2178 if test "$no_cache" != 1; then
2179 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2180 fi
2181
2182 if test "$wxUSE_REGEX" = yes; then
2183 echo "$ac_t""yes" 1>&6
2184 elif test "$wxUSE_REGEX" = no; then
2185 echo "$ac_t""no" 1>&6
2186 elif test "$wxUSE_REGEX" = sys; then
2187 echo "$ac_t""system version" 1>&6
2188 elif test "$wxUSE_REGEX" = builtin; then
2189 echo "$ac_t""builtin version" 1>&6
2190 else
2191 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2192 fi
2193
2194
2195 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2196 echo "configure:2197: checking for --with-zlib" >&5
2197 no_cache=0
2198 # Check whether --with-zlib or --without-zlib was given.
2199 if test "${with_zlib+set}" = set; then
2200 withval="$with_zlib"
2201
2202 if test "$withval" = yes; then
2203 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2204 elif test "$withval" = no; then
2205 ac_cv_use_zlib='wxUSE_ZLIB=no'
2206 elif test "$withval" = sys; then
2207 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2208 elif test "$withval" = builtin; then
2209 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2210 else
2211 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2212 fi
2213
2214 else
2215
2216 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2217 if test "x$LINE" != x ; then
2218 eval "DEFAULT_$LINE"
2219 else
2220 no_cache=1
2221 fi
2222
2223 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2224
2225 fi
2226
2227
2228 eval "$ac_cv_use_zlib"
2229 if test "$no_cache" != 1; then
2230 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2231 fi
2232
2233 if test "$wxUSE_ZLIB" = yes; then
2234 echo "$ac_t""yes" 1>&6
2235 elif test "$wxUSE_ZLIB" = no; then
2236 echo "$ac_t""no" 1>&6
2237 elif test "$wxUSE_ZLIB" = sys; then
2238 echo "$ac_t""system version" 1>&6
2239 elif test "$wxUSE_ZLIB" = builtin; then
2240 echo "$ac_t""builtin version" 1>&6
2241 else
2242 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2243 fi
2244
2245
2246 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2247 echo "configure:2248: checking for --with-odbc" >&5
2248 no_cache=0
2249 # Check whether --with-odbc or --without-odbc was given.
2250 if test "${with_odbc+set}" = set; then
2251 withval="$with_odbc"
2252
2253 if test "$withval" = yes; then
2254 ac_cv_use_odbc='wxUSE_ODBC=yes'
2255 else
2256 ac_cv_use_odbc='wxUSE_ODBC=no'
2257 fi
2258
2259 else
2260
2261 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2262 if test "x$LINE" != x ; then
2263 eval "DEFAULT_$LINE"
2264 else
2265 no_cache=1
2266 fi
2267
2268 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2269
2270 fi
2271
2272
2273 eval "$ac_cv_use_odbc"
2274 if test "$no_cache" != 1; then
2275 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2276 fi
2277
2278 if test "$wxUSE_ODBC" = yes; then
2279 echo "$ac_t""yes" 1>&6
2280 else
2281 echo "$ac_t""no" 1>&6
2282 fi
2283
2284
2285
2286
2287 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2288 echo "configure:2289: checking for --enable-shared" >&5
2289 no_cache=0
2290 # Check whether --enable-shared or --disable-shared was given.
2291 if test "${enable_shared+set}" = set; then
2292 enableval="$enable_shared"
2293
2294 if test "$enableval" = yes; then
2295 ac_cv_use_shared='wxUSE_SHARED=yes'
2296 else
2297 ac_cv_use_shared='wxUSE_SHARED=no'
2298 fi
2299
2300 else
2301
2302 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2303 if test "x$LINE" != x ; then
2304 eval "DEFAULT_$LINE"
2305 else
2306 no_cache=1
2307 fi
2308
2309 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2310
2311 fi
2312
2313
2314 eval "$ac_cv_use_shared"
2315 if test "$no_cache" != 1; then
2316 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2317 fi
2318
2319 if test "$wxUSE_SHARED" = yes; then
2320 echo "$ac_t""yes" 1>&6
2321 else
2322 echo "$ac_t""no" 1>&6
2323 fi
2324
2325
2326 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2327 echo "configure:2328: checking for --enable-soname" >&5
2328 no_cache=0
2329 # Check whether --enable-soname or --disable-soname was given.
2330 if test "${enable_soname+set}" = set; then
2331 enableval="$enable_soname"
2332
2333 if test "$enableval" = yes; then
2334 ac_cv_use_soname='wxUSE_SONAME=yes'
2335 else
2336 ac_cv_use_soname='wxUSE_SONAME=no'
2337 fi
2338
2339 else
2340
2341 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2342 if test "x$LINE" != x ; then
2343 eval "DEFAULT_$LINE"
2344 else
2345 no_cache=1
2346 fi
2347
2348 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2349
2350 fi
2351
2352
2353 eval "$ac_cv_use_soname"
2354 if test "$no_cache" != 1; then
2355 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2356 fi
2357
2358 if test "$wxUSE_SONAME" = yes; then
2359 echo "$ac_t""yes" 1>&6
2360 else
2361 echo "$ac_t""no" 1>&6
2362 fi
2363
2364
2365 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2366 echo "configure:2367: checking for --enable-optimise" >&5
2367 no_cache=0
2368 # Check whether --enable-optimise or --disable-optimise was given.
2369 if test "${enable_optimise+set}" = set; then
2370 enableval="$enable_optimise"
2371
2372 if test "$enableval" = yes; then
2373 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2374 else
2375 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2376 fi
2377
2378 else
2379
2380 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2381 if test "x$LINE" != x ; then
2382 eval "DEFAULT_$LINE"
2383 else
2384 no_cache=1
2385 fi
2386
2387 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2388
2389 fi
2390
2391
2392 eval "$ac_cv_use_optimise"
2393 if test "$no_cache" != 1; then
2394 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2395 fi
2396
2397 if test "$wxUSE_OPTIMISE" = yes; then
2398 echo "$ac_t""yes" 1>&6
2399 else
2400 echo "$ac_t""no" 1>&6
2401 fi
2402
2403
2404 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2405 echo "configure:2406: checking for --enable-debug" >&5
2406 no_cache=0
2407 # Check whether --enable-debug or --disable-debug was given.
2408 if test "${enable_debug+set}" = set; then
2409 enableval="$enable_debug"
2410
2411 if test "$enableval" = yes; then
2412 ac_cv_use_debug='wxUSE_DEBUG=yes'
2413 else
2414 ac_cv_use_debug='wxUSE_DEBUG=no'
2415 fi
2416
2417 else
2418
2419 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2420 if test "x$LINE" != x ; then
2421 eval "DEFAULT_$LINE"
2422 else
2423 no_cache=1
2424 fi
2425
2426 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2427
2428 fi
2429
2430
2431 eval "$ac_cv_use_debug"
2432 if test "$no_cache" != 1; then
2433 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2434 fi
2435
2436 if test "$wxUSE_DEBUG" = yes; then
2437 echo "$ac_t""yes" 1>&6
2438 else
2439 echo "$ac_t""no" 1>&6
2440 fi
2441
2442
2443
2444 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2445 echo "configure:2446: checking for --enable-precomp" >&5
2446 no_cache=0
2447 # Check whether --enable-precomp or --disable-precomp was given.
2448 if test "${enable_precomp+set}" = set; then
2449 enableval="$enable_precomp"
2450
2451 if test "$enableval" = yes; then
2452 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2453 else
2454 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2455 fi
2456
2457 else
2458
2459 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2460 if test "x$LINE" != x ; then
2461 eval "DEFAULT_$LINE"
2462 else
2463 no_cache=1
2464 fi
2465
2466 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2467
2468 fi
2469
2470
2471 eval "$ac_cv_use_precomp"
2472 if test "$no_cache" != 1; then
2473 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2474 fi
2475
2476 if test "$wxUSE_PRECOMP" = yes; then
2477 echo "$ac_t""yes" 1>&6
2478 else
2479 echo "$ac_t""no" 1>&6
2480 fi
2481
2482
2483 if test "$wxUSE_DEBUG" = "yes"; then
2484 DEFAULT_wxUSE_DEBUG_FLAG=yes
2485 DEFAULT_wxUSE_DEBUG_INFO=yes
2486 elif test "$wxUSE_DEBUG" = "no"; then
2487 DEFAULT_wxUSE_DEBUG_FLAG=no
2488 DEFAULT_wxUSE_DEBUG_INFO=no
2489 fi
2490
2491
2492 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2493 echo "configure:2494: checking for --enable-debug_flag" >&5
2494 no_cache=0
2495 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2496 if test "${enable_debug_flag+set}" = set; then
2497 enableval="$enable_debug_flag"
2498
2499 if test "$enableval" = yes; then
2500 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2501 else
2502 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2503 fi
2504
2505 else
2506
2507 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2508 if test "x$LINE" != x ; then
2509 eval "DEFAULT_$LINE"
2510 else
2511 no_cache=1
2512 fi
2513
2514 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2515
2516 fi
2517
2518
2519 eval "$ac_cv_use_debug_flag"
2520 if test "$no_cache" != 1; then
2521 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2522 fi
2523
2524 if test "$wxUSE_DEBUG_FLAG" = yes; then
2525 echo "$ac_t""yes" 1>&6
2526 else
2527 echo "$ac_t""no" 1>&6
2528 fi
2529
2530
2531 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2532 echo "configure:2533: checking for --enable-debug_info" >&5
2533 no_cache=0
2534 # Check whether --enable-debug_info or --disable-debug_info was given.
2535 if test "${enable_debug_info+set}" = set; then
2536 enableval="$enable_debug_info"
2537
2538 if test "$enableval" = yes; then
2539 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2540 else
2541 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2542 fi
2543
2544 else
2545
2546 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2547 if test "x$LINE" != x ; then
2548 eval "DEFAULT_$LINE"
2549 else
2550 no_cache=1
2551 fi
2552
2553 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2554
2555 fi
2556
2557
2558 eval "$ac_cv_use_debug_info"
2559 if test "$no_cache" != 1; then
2560 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2561 fi
2562
2563 if test "$wxUSE_DEBUG_INFO" = yes; then
2564 echo "$ac_t""yes" 1>&6
2565 else
2566 echo "$ac_t""no" 1>&6
2567 fi
2568
2569
2570 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2571 echo "configure:2572: checking for --enable-debug_gdb" >&5
2572 no_cache=0
2573 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2574 if test "${enable_debug_gdb+set}" = set; then
2575 enableval="$enable_debug_gdb"
2576
2577 if test "$enableval" = yes; then
2578 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2579 else
2580 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2581 fi
2582
2583 else
2584
2585 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2586 if test "x$LINE" != x ; then
2587 eval "DEFAULT_$LINE"
2588 else
2589 no_cache=1
2590 fi
2591
2592 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2593
2594 fi
2595
2596
2597 eval "$ac_cv_use_debug_gdb"
2598 if test "$no_cache" != 1; then
2599 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2600 fi
2601
2602 if test "$wxUSE_DEBUG_GDB" = yes; then
2603 echo "$ac_t""yes" 1>&6
2604 else
2605 echo "$ac_t""no" 1>&6
2606 fi
2607
2608
2609 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2610 echo "configure:2611: checking for --enable-debug_cntxt" >&5
2611 no_cache=0
2612 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2613 if test "${enable_debug_cntxt+set}" = set; then
2614 enableval="$enable_debug_cntxt"
2615
2616 if test "$enableval" = yes; then
2617 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2618 else
2619 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2620 fi
2621
2622 else
2623
2624 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2625 if test "x$LINE" != x ; then
2626 eval "DEFAULT_$LINE"
2627 else
2628 no_cache=1
2629 fi
2630
2631 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2632
2633 fi
2634
2635
2636 eval "$ac_cv_use_debug_cntxt"
2637 if test "$no_cache" != 1; then
2638 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2639 fi
2640
2641 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2642 echo "$ac_t""yes" 1>&6
2643 else
2644 echo "$ac_t""no" 1>&6
2645 fi
2646
2647
2648 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2649 echo "configure:2650: checking for --enable-mem_tracing" >&5
2650 no_cache=0
2651 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2652 if test "${enable_mem_tracing+set}" = set; then
2653 enableval="$enable_mem_tracing"
2654
2655 if test "$enableval" = yes; then
2656 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2657 else
2658 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2659 fi
2660
2661 else
2662
2663 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2664 if test "x$LINE" != x ; then
2665 eval "DEFAULT_$LINE"
2666 else
2667 no_cache=1
2668 fi
2669
2670 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2671
2672 fi
2673
2674
2675 eval "$ac_cv_use_mem_tracing"
2676 if test "$no_cache" != 1; then
2677 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2678 fi
2679
2680 if test "$wxUSE_MEM_TRACING" = yes; then
2681 echo "$ac_t""yes" 1>&6
2682 else
2683 echo "$ac_t""no" 1>&6
2684 fi
2685
2686
2687 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2688 echo "configure:2689: checking for --enable-profile" >&5
2689 no_cache=0
2690 # Check whether --enable-profile or --disable-profile was given.
2691 if test "${enable_profile+set}" = set; then
2692 enableval="$enable_profile"
2693
2694 if test "$enableval" = yes; then
2695 ac_cv_use_profile='wxUSE_PROFILE=yes'
2696 else
2697 ac_cv_use_profile='wxUSE_PROFILE=no'
2698 fi
2699
2700 else
2701
2702 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2703 if test "x$LINE" != x ; then
2704 eval "DEFAULT_$LINE"
2705 else
2706 no_cache=1
2707 fi
2708
2709 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2710
2711 fi
2712
2713
2714 eval "$ac_cv_use_profile"
2715 if test "$no_cache" != 1; then
2716 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2717 fi
2718
2719 if test "$wxUSE_PROFILE" = yes; then
2720 echo "$ac_t""yes" 1>&6
2721 else
2722 echo "$ac_t""no" 1>&6
2723 fi
2724
2725
2726 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2727 echo "configure:2728: checking for --enable-no_rtti" >&5
2728 no_cache=0
2729 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2730 if test "${enable_no_rtti+set}" = set; then
2731 enableval="$enable_no_rtti"
2732
2733 if test "$enableval" = yes; then
2734 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2735 else
2736 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2737 fi
2738
2739 else
2740
2741 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2742 if test "x$LINE" != x ; then
2743 eval "DEFAULT_$LINE"
2744 else
2745 no_cache=1
2746 fi
2747
2748 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2749
2750 fi
2751
2752
2753 eval "$ac_cv_use_no_rtti"
2754 if test "$no_cache" != 1; then
2755 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2756 fi
2757
2758 if test "$wxUSE_NO_RTTI" = yes; then
2759 echo "$ac_t""yes" 1>&6
2760 else
2761 echo "$ac_t""no" 1>&6
2762 fi
2763
2764
2765 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2766 echo "configure:2767: checking for --enable-no_exceptions" >&5
2767 no_cache=0
2768 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2769 if test "${enable_no_exceptions+set}" = set; then
2770 enableval="$enable_no_exceptions"
2771
2772 if test "$enableval" = yes; then
2773 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2774 else
2775 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2776 fi
2777
2778 else
2779
2780 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2781 if test "x$LINE" != x ; then
2782 eval "DEFAULT_$LINE"
2783 else
2784 no_cache=1
2785 fi
2786
2787 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2788
2789 fi
2790
2791
2792 eval "$ac_cv_use_no_exceptions"
2793 if test "$no_cache" != 1; then
2794 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2795 fi
2796
2797 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2798 echo "$ac_t""yes" 1>&6
2799 else
2800 echo "$ac_t""no" 1>&6
2801 fi
2802
2803
2804 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2805 echo "configure:2806: checking for --enable-permissive" >&5
2806 no_cache=0
2807 # Check whether --enable-permissive or --disable-permissive was given.
2808 if test "${enable_permissive+set}" = set; then
2809 enableval="$enable_permissive"
2810
2811 if test "$enableval" = yes; then
2812 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2813 else
2814 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2815 fi
2816
2817 else
2818
2819 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2820 if test "x$LINE" != x ; then
2821 eval "DEFAULT_$LINE"
2822 else
2823 no_cache=1
2824 fi
2825
2826 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2827
2828 fi
2829
2830
2831 eval "$ac_cv_use_permissive"
2832 if test "$no_cache" != 1; then
2833 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2834 fi
2835
2836 if test "$wxUSE_PERMISSIVE" = yes; then
2837 echo "$ac_t""yes" 1>&6
2838 else
2839 echo "$ac_t""no" 1>&6
2840 fi
2841
2842
2843 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2844 echo "configure:2845: checking for --enable-no_deps" >&5
2845 no_cache=0
2846 # Check whether --enable-no_deps or --disable-no_deps was given.
2847 if test "${enable_no_deps+set}" = set; then
2848 enableval="$enable_no_deps"
2849
2850 if test "$enableval" = yes; then
2851 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2852 else
2853 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2854 fi
2855
2856 else
2857
2858 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2859 if test "x$LINE" != x ; then
2860 eval "DEFAULT_$LINE"
2861 else
2862 no_cache=1
2863 fi
2864
2865 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2866
2867 fi
2868
2869
2870 eval "$ac_cv_use_no_deps"
2871 if test "$no_cache" != 1; then
2872 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2873 fi
2874
2875 if test "$wxUSE_NO_DEPS" = yes; then
2876 echo "$ac_t""yes" 1>&6
2877 else
2878 echo "$ac_t""no" 1>&6
2879 fi
2880
2881
2882
2883 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2884 echo "configure:2885: checking for --enable-compat20" >&5
2885 no_cache=0
2886 # Check whether --enable-compat20 or --disable-compat20 was given.
2887 if test "${enable_compat20+set}" = set; then
2888 enableval="$enable_compat20"
2889
2890 if test "$enableval" = yes; then
2891 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2892 else
2893 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2894 fi
2895
2896 else
2897
2898 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2899 if test "x$LINE" != x ; then
2900 eval "DEFAULT_$LINE"
2901 else
2902 no_cache=1
2903 fi
2904
2905 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2906
2907 fi
2908
2909
2910 eval "$ac_cv_use_compat20"
2911 if test "$no_cache" != 1; then
2912 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2913 fi
2914
2915 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2916 echo "$ac_t""yes" 1>&6
2917 else
2918 echo "$ac_t""no" 1>&6
2919 fi
2920
2921
2922 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2923 echo "configure:2924: checking for --enable-compat22" >&5
2924 no_cache=0
2925 # Check whether --enable-compat22 or --disable-compat22 was given.
2926 if test "${enable_compat22+set}" = set; then
2927 enableval="$enable_compat22"
2928
2929 if test "$enableval" = yes; then
2930 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2931 else
2932 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2933 fi
2934
2935 else
2936
2937 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2938 if test "x$LINE" != x ; then
2939 eval "DEFAULT_$LINE"
2940 else
2941 no_cache=1
2942 fi
2943
2944 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2945
2946 fi
2947
2948
2949 eval "$ac_cv_use_compat22"
2950 if test "$no_cache" != 1; then
2951 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2952 fi
2953
2954 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2955 echo "$ac_t""yes" 1>&6
2956 else
2957 echo "$ac_t""no" 1>&6
2958 fi
2959
2960
2961
2962
2963 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2964 echo "configure:2965: checking for --enable-intl" >&5
2965 no_cache=0
2966 # Check whether --enable-intl or --disable-intl was given.
2967 if test "${enable_intl+set}" = set; then
2968 enableval="$enable_intl"
2969
2970 if test "$enableval" = yes; then
2971 ac_cv_use_intl='wxUSE_INTL=yes'
2972 else
2973 ac_cv_use_intl='wxUSE_INTL=no'
2974 fi
2975
2976 else
2977
2978 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2979 if test "x$LINE" != x ; then
2980 eval "DEFAULT_$LINE"
2981 else
2982 no_cache=1
2983 fi
2984
2985 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2986
2987 fi
2988
2989
2990 eval "$ac_cv_use_intl"
2991 if test "$no_cache" != 1; then
2992 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2993 fi
2994
2995 if test "$wxUSE_INTL" = yes; then
2996 echo "$ac_t""yes" 1>&6
2997 else
2998 echo "$ac_t""no" 1>&6
2999 fi
3000
3001
3002 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3003 echo "configure:3004: checking for --enable-config" >&5
3004 no_cache=0
3005 # Check whether --enable-config or --disable-config was given.
3006 if test "${enable_config+set}" = set; then
3007 enableval="$enable_config"
3008
3009 if test "$enableval" = yes; then
3010 ac_cv_use_config='wxUSE_CONFIG=yes'
3011 else
3012 ac_cv_use_config='wxUSE_CONFIG=no'
3013 fi
3014
3015 else
3016
3017 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3018 if test "x$LINE" != x ; then
3019 eval "DEFAULT_$LINE"
3020 else
3021 no_cache=1
3022 fi
3023
3024 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3025
3026 fi
3027
3028
3029 eval "$ac_cv_use_config"
3030 if test "$no_cache" != 1; then
3031 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3032 fi
3033
3034 if test "$wxUSE_CONFIG" = yes; then
3035 echo "$ac_t""yes" 1>&6
3036 else
3037 echo "$ac_t""no" 1>&6
3038 fi
3039
3040
3041
3042 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3043 echo "configure:3044: checking for --enable-sockets" >&5
3044 no_cache=0
3045 # Check whether --enable-sockets or --disable-sockets was given.
3046 if test "${enable_sockets+set}" = set; then
3047 enableval="$enable_sockets"
3048
3049 if test "$enableval" = yes; then
3050 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3051 else
3052 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3053 fi
3054
3055 else
3056
3057 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3058 if test "x$LINE" != x ; then
3059 eval "DEFAULT_$LINE"
3060 else
3061 no_cache=1
3062 fi
3063
3064 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3065
3066 fi
3067
3068
3069 eval "$ac_cv_use_sockets"
3070 if test "$no_cache" != 1; then
3071 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3072 fi
3073
3074 if test "$wxUSE_SOCKETS" = yes; then
3075 echo "$ac_t""yes" 1>&6
3076 else
3077 echo "$ac_t""no" 1>&6
3078 fi
3079
3080
3081
3082 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3083 echo "configure:3084: checking for --enable-ipc" >&5
3084 no_cache=0
3085 # Check whether --enable-ipc or --disable-ipc was given.
3086 if test "${enable_ipc+set}" = set; then
3087 enableval="$enable_ipc"
3088
3089 if test "$enableval" = yes; then
3090 ac_cv_use_ipc='wxUSE_IPC=yes'
3091 else
3092 ac_cv_use_ipc='wxUSE_IPC=no'
3093 fi
3094
3095 else
3096
3097 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3098 if test "x$LINE" != x ; then
3099 eval "DEFAULT_$LINE"
3100 else
3101 no_cache=1
3102 fi
3103
3104 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3105
3106 fi
3107
3108
3109 eval "$ac_cv_use_ipc"
3110 if test "$no_cache" != 1; then
3111 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3112 fi
3113
3114 if test "$wxUSE_IPC" = yes; then
3115 echo "$ac_t""yes" 1>&6
3116 else
3117 echo "$ac_t""no" 1>&6
3118 fi
3119
3120
3121
3122 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3123 echo "configure:3124: checking for --enable-cmdline" >&5
3124 no_cache=0
3125 # Check whether --enable-cmdline or --disable-cmdline was given.
3126 if test "${enable_cmdline+set}" = set; then
3127 enableval="$enable_cmdline"
3128
3129 if test "$enableval" = yes; then
3130 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3131 else
3132 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3133 fi
3134
3135 else
3136
3137 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3138 if test "x$LINE" != x ; then
3139 eval "DEFAULT_$LINE"
3140 else
3141 no_cache=1
3142 fi
3143
3144 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3145
3146 fi
3147
3148
3149 eval "$ac_cv_use_cmdline"
3150 if test "$no_cache" != 1; then
3151 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3152 fi
3153
3154 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3155 echo "$ac_t""yes" 1>&6
3156 else
3157 echo "$ac_t""no" 1>&6
3158 fi
3159
3160
3161 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3162 echo "configure:3163: checking for --enable-datetime" >&5
3163 no_cache=0
3164 # Check whether --enable-datetime or --disable-datetime was given.
3165 if test "${enable_datetime+set}" = set; then
3166 enableval="$enable_datetime"
3167
3168 if test "$enableval" = yes; then
3169 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3170 else
3171 ac_cv_use_datetime='wxUSE_DATETIME=no'
3172 fi
3173
3174 else
3175
3176 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3177 if test "x$LINE" != x ; then
3178 eval "DEFAULT_$LINE"
3179 else
3180 no_cache=1
3181 fi
3182
3183 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3184
3185 fi
3186
3187
3188 eval "$ac_cv_use_datetime"
3189 if test "$no_cache" != 1; then
3190 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3191 fi
3192
3193 if test "$wxUSE_DATETIME" = yes; then
3194 echo "$ac_t""yes" 1>&6
3195 else
3196 echo "$ac_t""no" 1>&6
3197 fi
3198
3199
3200 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3201 echo "configure:3202: checking for --enable-timedate" >&5
3202 no_cache=0
3203 # Check whether --enable-timedate or --disable-timedate was given.
3204 if test "${enable_timedate+set}" = set; then
3205 enableval="$enable_timedate"
3206
3207 if test "$enableval" = yes; then
3208 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3209 else
3210 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3211 fi
3212
3213 else
3214
3215 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3216 if test "x$LINE" != x ; then
3217 eval "DEFAULT_$LINE"
3218 else
3219 no_cache=1
3220 fi
3221
3222 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3223
3224 fi
3225
3226
3227 eval "$ac_cv_use_timedate"
3228 if test "$no_cache" != 1; then
3229 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3230 fi
3231
3232 if test "$wxUSE_TIMEDATE" = yes; then
3233 echo "$ac_t""yes" 1>&6
3234 else
3235 echo "$ac_t""no" 1>&6
3236 fi
3237
3238
3239 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3240 echo "configure:3241: checking for --enable-stopwatch" >&5
3241 no_cache=0
3242 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3243 if test "${enable_stopwatch+set}" = set; then
3244 enableval="$enable_stopwatch"
3245
3246 if test "$enableval" = yes; then
3247 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3248 else
3249 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3250 fi
3251
3252 else
3253
3254 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3255 if test "x$LINE" != x ; then
3256 eval "DEFAULT_$LINE"
3257 else
3258 no_cache=1
3259 fi
3260
3261 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3262
3263 fi
3264
3265
3266 eval "$ac_cv_use_stopwatch"
3267 if test "$no_cache" != 1; then
3268 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3269 fi
3270
3271 if test "$wxUSE_STOPWATCH" = yes; then
3272 echo "$ac_t""yes" 1>&6
3273 else
3274 echo "$ac_t""no" 1>&6
3275 fi
3276
3277
3278 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3279 echo "configure:3280: checking for --enable-dialupman" >&5
3280 no_cache=0
3281 # Check whether --enable-dialupman or --disable-dialupman was given.
3282 if test "${enable_dialupman+set}" = set; then
3283 enableval="$enable_dialupman"
3284
3285 if test "$enableval" = yes; then
3286 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3287 else
3288 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3289 fi
3290
3291 else
3292
3293 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3294 if test "x$LINE" != x ; then
3295 eval "DEFAULT_$LINE"
3296 else
3297 no_cache=1
3298 fi
3299
3300 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3301
3302 fi
3303
3304
3305 eval "$ac_cv_use_dialupman"
3306 if test "$no_cache" != 1; then
3307 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3308 fi
3309
3310 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3311 echo "$ac_t""yes" 1>&6
3312 else
3313 echo "$ac_t""no" 1>&6
3314 fi
3315
3316
3317 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3318 echo "configure:3319: checking for --enable-apple_ieee" >&5
3319 no_cache=0
3320 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3321 if test "${enable_apple_ieee+set}" = set; then
3322 enableval="$enable_apple_ieee"
3323
3324 if test "$enableval" = yes; then
3325 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3326 else
3327 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3328 fi
3329
3330 else
3331
3332 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3333 if test "x$LINE" != x ; then
3334 eval "DEFAULT_$LINE"
3335 else
3336 no_cache=1
3337 fi
3338
3339 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3340
3341 fi
3342
3343
3344 eval "$ac_cv_use_apple_ieee"
3345 if test "$no_cache" != 1; then
3346 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3347 fi
3348
3349 if test "$wxUSE_APPLE_IEEE" = yes; then
3350 echo "$ac_t""yes" 1>&6
3351 else
3352 echo "$ac_t""no" 1>&6
3353 fi
3354
3355
3356 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3357 echo "configure:3358: checking for --enable-timer" >&5
3358 no_cache=0
3359 # Check whether --enable-timer or --disable-timer was given.
3360 if test "${enable_timer+set}" = set; then
3361 enableval="$enable_timer"
3362
3363 if test "$enableval" = yes; then
3364 ac_cv_use_timer='wxUSE_TIMER=yes'
3365 else
3366 ac_cv_use_timer='wxUSE_TIMER=no'
3367 fi
3368
3369 else
3370
3371 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3372 if test "x$LINE" != x ; then
3373 eval "DEFAULT_$LINE"
3374 else
3375 no_cache=1
3376 fi
3377
3378 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3379
3380 fi
3381
3382
3383 eval "$ac_cv_use_timer"
3384 if test "$no_cache" != 1; then
3385 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3386 fi
3387
3388 if test "$wxUSE_TIMER" = yes; then
3389 echo "$ac_t""yes" 1>&6
3390 else
3391 echo "$ac_t""no" 1>&6
3392 fi
3393
3394
3395 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3396 echo "configure:3397: checking for --enable-wave" >&5
3397 no_cache=0
3398 # Check whether --enable-wave or --disable-wave was given.
3399 if test "${enable_wave+set}" = set; then
3400 enableval="$enable_wave"
3401
3402 if test "$enableval" = yes; then
3403 ac_cv_use_wave='wxUSE_WAVE=yes'
3404 else
3405 ac_cv_use_wave='wxUSE_WAVE=no'
3406 fi
3407
3408 else
3409
3410 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3411 if test "x$LINE" != x ; then
3412 eval "DEFAULT_$LINE"
3413 else
3414 no_cache=1
3415 fi
3416
3417 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3418
3419 fi
3420
3421
3422 eval "$ac_cv_use_wave"
3423 if test "$no_cache" != 1; then
3424 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3425 fi
3426
3427 if test "$wxUSE_WAVE" = yes; then
3428 echo "$ac_t""yes" 1>&6
3429 else
3430 echo "$ac_t""no" 1>&6
3431 fi
3432
3433
3434 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3435 echo "configure:3436: checking for --enable-fraction" >&5
3436 no_cache=0
3437 # Check whether --enable-fraction or --disable-fraction was given.
3438 if test "${enable_fraction+set}" = set; then
3439 enableval="$enable_fraction"
3440
3441 if test "$enableval" = yes; then
3442 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3443 else
3444 ac_cv_use_fraction='wxUSE_FRACTION=no'
3445 fi
3446
3447 else
3448
3449 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3450 if test "x$LINE" != x ; then
3451 eval "DEFAULT_$LINE"
3452 else
3453 no_cache=1
3454 fi
3455
3456 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3457
3458 fi
3459
3460
3461 eval "$ac_cv_use_fraction"
3462 if test "$no_cache" != 1; then
3463 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3464 fi
3465
3466 if test "$wxUSE_FRACTION" = yes; then
3467 echo "$ac_t""yes" 1>&6
3468 else
3469 echo "$ac_t""no" 1>&6
3470 fi
3471
3472
3473 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3474 echo "configure:3475: checking for --enable-dynlib" >&5
3475 no_cache=0
3476 # Check whether --enable-dynlib or --disable-dynlib was given.
3477 if test "${enable_dynlib+set}" = set; then
3478 enableval="$enable_dynlib"
3479
3480 if test "$enableval" = yes; then
3481 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3482 else
3483 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3484 fi
3485
3486 else
3487
3488 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3489 if test "x$LINE" != x ; then
3490 eval "DEFAULT_$LINE"
3491 else
3492 no_cache=1
3493 fi
3494
3495 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3496
3497 fi
3498
3499
3500 eval "$ac_cv_use_dynlib"
3501 if test "$no_cache" != 1; then
3502 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3503 fi
3504
3505 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3506 echo "$ac_t""yes" 1>&6
3507 else
3508 echo "$ac_t""no" 1>&6
3509 fi
3510
3511
3512 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3513 echo "configure:3514: checking for --enable-longlong" >&5
3514 no_cache=0
3515 # Check whether --enable-longlong or --disable-longlong was given.
3516 if test "${enable_longlong+set}" = set; then
3517 enableval="$enable_longlong"
3518
3519 if test "$enableval" = yes; then
3520 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3521 else
3522 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3523 fi
3524
3525 else
3526
3527 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3528 if test "x$LINE" != x ; then
3529 eval "DEFAULT_$LINE"
3530 else
3531 no_cache=1
3532 fi
3533
3534 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3535
3536 fi
3537
3538
3539 eval "$ac_cv_use_longlong"
3540 if test "$no_cache" != 1; then
3541 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3542 fi
3543
3544 if test "$wxUSE_LONGLONG" = yes; then
3545 echo "$ac_t""yes" 1>&6
3546 else
3547 echo "$ac_t""no" 1>&6
3548 fi
3549
3550
3551 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3552 echo "configure:3553: checking for --enable-geometry" >&5
3553 no_cache=0
3554 # Check whether --enable-geometry or --disable-geometry was given.
3555 if test "${enable_geometry+set}" = set; then
3556 enableval="$enable_geometry"
3557
3558 if test "$enableval" = yes; then
3559 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3560 else
3561 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3562 fi
3563
3564 else
3565
3566 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3567 if test "x$LINE" != x ; then
3568 eval "DEFAULT_$LINE"
3569 else
3570 no_cache=1
3571 fi
3572
3573 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3574
3575 fi
3576
3577
3578 eval "$ac_cv_use_geometry"
3579 if test "$no_cache" != 1; then
3580 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3581 fi
3582
3583 if test "$wxUSE_GEOMETRY" = yes; then
3584 echo "$ac_t""yes" 1>&6
3585 else
3586 echo "$ac_t""no" 1>&6
3587 fi
3588
3589
3590 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3591 echo "configure:3592: checking for --enable-log" >&5
3592 no_cache=0
3593 # Check whether --enable-log or --disable-log was given.
3594 if test "${enable_log+set}" = set; then
3595 enableval="$enable_log"
3596
3597 if test "$enableval" = yes; then
3598 ac_cv_use_log='wxUSE_LOG=yes'
3599 else
3600 ac_cv_use_log='wxUSE_LOG=no'
3601 fi
3602
3603 else
3604
3605 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3606 if test "x$LINE" != x ; then
3607 eval "DEFAULT_$LINE"
3608 else
3609 no_cache=1
3610 fi
3611
3612 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3613
3614 fi
3615
3616
3617 eval "$ac_cv_use_log"
3618 if test "$no_cache" != 1; then
3619 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3620 fi
3621
3622 if test "$wxUSE_LOG" = yes; then
3623 echo "$ac_t""yes" 1>&6
3624 else
3625 echo "$ac_t""no" 1>&6
3626 fi
3627
3628
3629 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3630 echo "configure:3631: checking for --enable-streams" >&5
3631 no_cache=0
3632 # Check whether --enable-streams or --disable-streams was given.
3633 if test "${enable_streams+set}" = set; then
3634 enableval="$enable_streams"
3635
3636 if test "$enableval" = yes; then
3637 ac_cv_use_streams='wxUSE_STREAMS=yes'
3638 else
3639 ac_cv_use_streams='wxUSE_STREAMS=no'
3640 fi
3641
3642 else
3643
3644 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3645 if test "x$LINE" != x ; then
3646 eval "DEFAULT_$LINE"
3647 else
3648 no_cache=1
3649 fi
3650
3651 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3652
3653 fi
3654
3655
3656 eval "$ac_cv_use_streams"
3657 if test "$no_cache" != 1; then
3658 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3659 fi
3660
3661 if test "$wxUSE_STREAMS" = yes; then
3662 echo "$ac_t""yes" 1>&6
3663 else
3664 echo "$ac_t""no" 1>&6
3665 fi
3666
3667
3668 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3669 echo "configure:3670: checking for --enable-file" >&5
3670 no_cache=0
3671 # Check whether --enable-file or --disable-file was given.
3672 if test "${enable_file+set}" = set; then
3673 enableval="$enable_file"
3674
3675 if test "$enableval" = yes; then
3676 ac_cv_use_file='wxUSE_FILE=yes'
3677 else
3678 ac_cv_use_file='wxUSE_FILE=no'
3679 fi
3680
3681 else
3682
3683 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3684 if test "x$LINE" != x ; then
3685 eval "DEFAULT_$LINE"
3686 else
3687 no_cache=1
3688 fi
3689
3690 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3691
3692 fi
3693
3694
3695 eval "$ac_cv_use_file"
3696 if test "$no_cache" != 1; then
3697 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3698 fi
3699
3700 if test "$wxUSE_FILE" = yes; then
3701 echo "$ac_t""yes" 1>&6
3702 else
3703 echo "$ac_t""no" 1>&6
3704 fi
3705
3706
3707 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3708 echo "configure:3709: checking for --enable-ffile" >&5
3709 no_cache=0
3710 # Check whether --enable-ffile or --disable-ffile was given.
3711 if test "${enable_ffile+set}" = set; then
3712 enableval="$enable_ffile"
3713
3714 if test "$enableval" = yes; then
3715 ac_cv_use_ffile='wxUSE_FFILE=yes'
3716 else
3717 ac_cv_use_ffile='wxUSE_FFILE=no'
3718 fi
3719
3720 else
3721
3722 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3723 if test "x$LINE" != x ; then
3724 eval "DEFAULT_$LINE"
3725 else
3726 no_cache=1
3727 fi
3728
3729 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3730
3731 fi
3732
3733
3734 eval "$ac_cv_use_ffile"
3735 if test "$no_cache" != 1; then
3736 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3737 fi
3738
3739 if test "$wxUSE_FFILE" = yes; then
3740 echo "$ac_t""yes" 1>&6
3741 else
3742 echo "$ac_t""no" 1>&6
3743 fi
3744
3745
3746 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3747 echo "configure:3748: checking for --enable-textbuf" >&5
3748 no_cache=0
3749 # Check whether --enable-textbuf or --disable-textbuf was given.
3750 if test "${enable_textbuf+set}" = set; then
3751 enableval="$enable_textbuf"
3752
3753 if test "$enableval" = yes; then
3754 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3755 else
3756 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3757 fi
3758
3759 else
3760
3761 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3762 if test "x$LINE" != x ; then
3763 eval "DEFAULT_$LINE"
3764 else
3765 no_cache=1
3766 fi
3767
3768 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
3769
3770 fi
3771
3772
3773 eval "$ac_cv_use_textbuf"
3774 if test "$no_cache" != 1; then
3775 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
3776 fi
3777
3778 if test "$wxUSE_TEXTBUFFER" = yes; then
3779 echo "$ac_t""yes" 1>&6
3780 else
3781 echo "$ac_t""no" 1>&6
3782 fi
3783
3784
3785 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3786 echo "configure:3787: checking for --enable-textfile" >&5
3787 no_cache=0
3788 # Check whether --enable-textfile or --disable-textfile was given.
3789 if test "${enable_textfile+set}" = set; then
3790 enableval="$enable_textfile"
3791
3792 if test "$enableval" = yes; then
3793 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3794 else
3795 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3796 fi
3797
3798 else
3799
3800 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3801 if test "x$LINE" != x ; then
3802 eval "DEFAULT_$LINE"
3803 else
3804 no_cache=1
3805 fi
3806
3807 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3808
3809 fi
3810
3811
3812 eval "$ac_cv_use_textfile"
3813 if test "$no_cache" != 1; then
3814 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3815 fi
3816
3817 if test "$wxUSE_TEXTFILE" = yes; then
3818 echo "$ac_t""yes" 1>&6
3819 else
3820 echo "$ac_t""no" 1>&6
3821 fi
3822
3823
3824 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3825 echo "configure:3826: checking for --enable-fontmap" >&5
3826 no_cache=0
3827 # Check whether --enable-fontmap or --disable-fontmap was given.
3828 if test "${enable_fontmap+set}" = set; then
3829 enableval="$enable_fontmap"
3830
3831 if test "$enableval" = yes; then
3832 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3833 else
3834 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3835 fi
3836
3837 else
3838
3839 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3840 if test "x$LINE" != x ; then
3841 eval "DEFAULT_$LINE"
3842 else
3843 no_cache=1
3844 fi
3845
3846 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3847
3848 fi
3849
3850
3851 eval "$ac_cv_use_fontmap"
3852 if test "$no_cache" != 1; then
3853 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3854 fi
3855
3856 if test "$wxUSE_FONTMAP" = yes; then
3857 echo "$ac_t""yes" 1>&6
3858 else
3859 echo "$ac_t""no" 1>&6
3860 fi
3861
3862
3863 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3864 echo "configure:3865: checking for --enable-unicode" >&5
3865 no_cache=0
3866 # Check whether --enable-unicode or --disable-unicode was given.
3867 if test "${enable_unicode+set}" = set; then
3868 enableval="$enable_unicode"
3869
3870 if test "$enableval" = yes; then
3871 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3872 else
3873 ac_cv_use_unicode='wxUSE_UNICODE=no'
3874 fi
3875
3876 else
3877
3878 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3879 if test "x$LINE" != x ; then
3880 eval "DEFAULT_$LINE"
3881 else
3882 no_cache=1
3883 fi
3884
3885 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3886
3887 fi
3888
3889
3890 eval "$ac_cv_use_unicode"
3891 if test "$no_cache" != 1; then
3892 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3893 fi
3894
3895 if test "$wxUSE_UNICODE" = yes; then
3896 echo "$ac_t""yes" 1>&6
3897 else
3898 echo "$ac_t""no" 1>&6
3899 fi
3900
3901
3902 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3903 echo "configure:3904: checking for --enable-wxprintfv" >&5
3904 no_cache=0
3905 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3906 if test "${enable_wxprintfv+set}" = set; then
3907 enableval="$enable_wxprintfv"
3908
3909 if test "$enableval" = yes; then
3910 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3911 else
3912 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3913 fi
3914
3915 else
3916
3917 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3918 if test "x$LINE" != x ; then
3919 eval "DEFAULT_$LINE"
3920 else
3921 no_cache=1
3922 fi
3923
3924 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3925
3926 fi
3927
3928
3929 eval "$ac_cv_use_wxprintfv"
3930 if test "$no_cache" != 1; then
3931 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3932 fi
3933
3934 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3935 echo "$ac_t""yes" 1>&6
3936 else
3937 echo "$ac_t""no" 1>&6
3938 fi
3939
3940
3941 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3942 echo "configure:3943: checking for --enable-std_iostreams" >&5
3943 no_cache=0
3944 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3945 if test "${enable_std_iostreams+set}" = set; then
3946 enableval="$enable_std_iostreams"
3947
3948 if test "$enableval" = yes; then
3949 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3950 else
3951 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3952 fi
3953
3954 else
3955
3956 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3957 if test "x$LINE" != x ; then
3958 eval "DEFAULT_$LINE"
3959 else
3960 no_cache=1
3961 fi
3962
3963 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3964
3965 fi
3966
3967
3968 eval "$ac_cv_use_std_iostreams"
3969 if test "$no_cache" != 1; then
3970 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3971 fi
3972
3973 if test "$wxUSE_STD_IOSTREAM" = yes; then
3974 echo "$ac_t""yes" 1>&6
3975 else
3976 echo "$ac_t""no" 1>&6
3977 fi
3978
3979
3980 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3981 echo "configure:3982: checking for --enable-filesystem" >&5
3982 no_cache=0
3983 # Check whether --enable-filesystem or --disable-filesystem was given.
3984 if test "${enable_filesystem+set}" = set; then
3985 enableval="$enable_filesystem"
3986
3987 if test "$enableval" = yes; then
3988 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3989 else
3990 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3991 fi
3992
3993 else
3994
3995 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3996 if test "x$LINE" != x ; then
3997 eval "DEFAULT_$LINE"
3998 else
3999 no_cache=1
4000 fi
4001
4002 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4003
4004 fi
4005
4006
4007 eval "$ac_cv_use_filesystem"
4008 if test "$no_cache" != 1; then
4009 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4010 fi
4011
4012 if test "$wxUSE_FILESYSTEM" = yes; then
4013 echo "$ac_t""yes" 1>&6
4014 else
4015 echo "$ac_t""no" 1>&6
4016 fi
4017
4018
4019 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4020 echo "configure:4021: checking for --enable-fs_inet" >&5
4021 no_cache=0
4022 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4023 if test "${enable_fs_inet+set}" = set; then
4024 enableval="$enable_fs_inet"
4025
4026 if test "$enableval" = yes; then
4027 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4028 else
4029 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4030 fi
4031
4032 else
4033
4034 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4035 if test "x$LINE" != x ; then
4036 eval "DEFAULT_$LINE"
4037 else
4038 no_cache=1
4039 fi
4040
4041 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4042
4043 fi
4044
4045
4046 eval "$ac_cv_use_fs_inet"
4047 if test "$no_cache" != 1; then
4048 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4049 fi
4050
4051 if test "$wxUSE_FS_INET" = yes; then
4052 echo "$ac_t""yes" 1>&6
4053 else
4054 echo "$ac_t""no" 1>&6
4055 fi
4056
4057
4058 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4059 echo "configure:4060: checking for --enable-fs_zip" >&5
4060 no_cache=0
4061 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4062 if test "${enable_fs_zip+set}" = set; then
4063 enableval="$enable_fs_zip"
4064
4065 if test "$enableval" = yes; then
4066 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4067 else
4068 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4069 fi
4070
4071 else
4072
4073 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4074 if test "x$LINE" != x ; then
4075 eval "DEFAULT_$LINE"
4076 else
4077 no_cache=1
4078 fi
4079
4080 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4081
4082 fi
4083
4084
4085 eval "$ac_cv_use_fs_zip"
4086 if test "$no_cache" != 1; then
4087 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4088 fi
4089
4090 if test "$wxUSE_FS_ZIP" = yes; then
4091 echo "$ac_t""yes" 1>&6
4092 else
4093 echo "$ac_t""no" 1>&6
4094 fi
4095
4096
4097 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4098 echo "configure:4099: checking for --enable-zipstream" >&5
4099 no_cache=0
4100 # Check whether --enable-zipstream or --disable-zipstream was given.
4101 if test "${enable_zipstream+set}" = set; then
4102 enableval="$enable_zipstream"
4103
4104 if test "$enableval" = yes; then
4105 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4106 else
4107 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4108 fi
4109
4110 else
4111
4112 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4113 if test "x$LINE" != x ; then
4114 eval "DEFAULT_$LINE"
4115 else
4116 no_cache=1
4117 fi
4118
4119 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4120
4121 fi
4122
4123
4124 eval "$ac_cv_use_zipstream"
4125 if test "$no_cache" != 1; then
4126 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4127 fi
4128
4129 if test "$wxUSE_ZIPSTREAM" = yes; then
4130 echo "$ac_t""yes" 1>&6
4131 else
4132 echo "$ac_t""no" 1>&6
4133 fi
4134
4135
4136
4137 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4138 echo "configure:4139: checking for --enable-catch_segvs" >&5
4139 no_cache=0
4140 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4141 if test "${enable_catch_segvs+set}" = set; then
4142 enableval="$enable_catch_segvs"
4143
4144 if test "$enableval" = yes; then
4145 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4146 else
4147 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4148 fi
4149
4150 else
4151
4152 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4153 if test "x$LINE" != x ; then
4154 eval "DEFAULT_$LINE"
4155 else
4156 no_cache=1
4157 fi
4158
4159 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4160
4161 fi
4162
4163
4164 eval "$ac_cv_use_catch_segvs"
4165 if test "$no_cache" != 1; then
4166 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4167 fi
4168
4169 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4170 echo "$ac_t""yes" 1>&6
4171 else
4172 echo "$ac_t""no" 1>&6
4173 fi
4174
4175
4176 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4177 echo "configure:4178: checking for --enable-snglinst" >&5
4178 no_cache=0
4179 # Check whether --enable-snglinst or --disable-snglinst was given.
4180 if test "${enable_snglinst+set}" = set; then
4181 enableval="$enable_snglinst"
4182
4183 if test "$enableval" = yes; then
4184 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4185 else
4186 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4187 fi
4188
4189 else
4190
4191 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4192 if test "x$LINE" != x ; then
4193 eval "DEFAULT_$LINE"
4194 else
4195 no_cache=1
4196 fi
4197
4198 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4199
4200 fi
4201
4202
4203 eval "$ac_cv_use_snglinst"
4204 if test "$no_cache" != 1; then
4205 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4206 fi
4207
4208 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4209 echo "$ac_t""yes" 1>&6
4210 else
4211 echo "$ac_t""no" 1>&6
4212 fi
4213
4214
4215
4216 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4217 echo "configure:4218: checking for --enable-mimetype" >&5
4218 no_cache=0
4219 # Check whether --enable-mimetype or --disable-mimetype was given.
4220 if test "${enable_mimetype+set}" = set; then
4221 enableval="$enable_mimetype"
4222
4223 if test "$enableval" = yes; then
4224 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4225 else
4226 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4227 fi
4228
4229 else
4230
4231 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4232 if test "x$LINE" != x ; then
4233 eval "DEFAULT_$LINE"
4234 else
4235 no_cache=1
4236 fi
4237
4238 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4239
4240 fi
4241
4242
4243 eval "$ac_cv_use_mimetype"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_MIMETYPE" = yes; then
4249 echo "$ac_t""yes" 1>&6
4250 else
4251 echo "$ac_t""no" 1>&6
4252 fi
4253
4254
4255 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4256 echo "configure:4257: checking for --enable-system_options" >&5
4257 no_cache=0
4258 # Check whether --enable-system_options or --disable-system_options was given.
4259 if test "${enable_system_options+set}" = set; then
4260 enableval="$enable_system_options"
4261
4262 if test "$enableval" = yes; then
4263 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4264 else
4265 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4266 fi
4267
4268 else
4269
4270 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4271 if test "x$LINE" != x ; then
4272 eval "DEFAULT_$LINE"
4273 else
4274 no_cache=1
4275 fi
4276
4277 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4278
4279 fi
4280
4281
4282 eval "$ac_cv_use_system_options"
4283 if test "$no_cache" != 1; then
4284 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4285 fi
4286
4287 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4288 echo "$ac_t""yes" 1>&6
4289 else
4290 echo "$ac_t""no" 1>&6
4291 fi
4292
4293
4294
4295
4296 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4297 echo "configure:4298: checking for --enable-threads" >&5
4298 no_cache=0
4299 # Check whether --enable-threads or --disable-threads was given.
4300 if test "${enable_threads+set}" = set; then
4301 enableval="$enable_threads"
4302
4303 if test "$enableval" = yes; then
4304 ac_cv_use_threads='wxUSE_THREADS=yes'
4305 else
4306 ac_cv_use_threads='wxUSE_THREADS=no'
4307 fi
4308
4309 else
4310
4311 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4312 if test "x$LINE" != x ; then
4313 eval "DEFAULT_$LINE"
4314 else
4315 no_cache=1
4316 fi
4317
4318 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4319
4320 fi
4321
4322
4323 eval "$ac_cv_use_threads"
4324 if test "$no_cache" != 1; then
4325 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4326 fi
4327
4328 if test "$wxUSE_THREADS" = yes; then
4329 echo "$ac_t""yes" 1>&6
4330 else
4331 echo "$ac_t""no" 1>&6
4332 fi
4333
4334
4335 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4336 echo "configure:4337: checking for --enable-serial" >&5
4337 no_cache=0
4338 # Check whether --enable-serial or --disable-serial was given.
4339 if test "${enable_serial+set}" = set; then
4340 enableval="$enable_serial"
4341
4342 if test "$enableval" = yes; then
4343 ac_cv_use_serial='wxUSE_SERIAL=yes'
4344 else
4345 ac_cv_use_serial='wxUSE_SERIAL=no'
4346 fi
4347
4348 else
4349
4350 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4351 if test "x$LINE" != x ; then
4352 eval "DEFAULT_$LINE"
4353 else
4354 no_cache=1
4355 fi
4356
4357 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4358
4359 fi
4360
4361
4362 eval "$ac_cv_use_serial"
4363 if test "$no_cache" != 1; then
4364 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4365 fi
4366
4367 if test "$wxUSE_SERIAL" = yes; then
4368 echo "$ac_t""yes" 1>&6
4369 else
4370 echo "$ac_t""no" 1>&6
4371 fi
4372
4373
4374 if test "$wxUSE_GUI" = "yes"; then
4375
4376
4377
4378 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4379 echo "configure:4380: checking for --enable-docview" >&5
4380 no_cache=0
4381 # Check whether --enable-docview or --disable-docview was given.
4382 if test "${enable_docview+set}" = set; then
4383 enableval="$enable_docview"
4384
4385 if test "$enableval" = yes; then
4386 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4387 else
4388 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4389 fi
4390
4391 else
4392
4393 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4394 if test "x$LINE" != x ; then
4395 eval "DEFAULT_$LINE"
4396 else
4397 no_cache=1
4398 fi
4399
4400 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4401
4402 fi
4403
4404
4405 eval "$ac_cv_use_docview"
4406 if test "$no_cache" != 1; then
4407 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4408 fi
4409
4410 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4411 echo "$ac_t""yes" 1>&6
4412 else
4413 echo "$ac_t""no" 1>&6
4414 fi
4415
4416
4417 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4418 echo "configure:4419: checking for --enable-help" >&5
4419 no_cache=0
4420 # Check whether --enable-help or --disable-help was given.
4421 if test "${enable_help+set}" = set; then
4422 enableval="$enable_help"
4423
4424 if test "$enableval" = yes; then
4425 ac_cv_use_help='wxUSE_HELP=yes'
4426 else
4427 ac_cv_use_help='wxUSE_HELP=no'
4428 fi
4429
4430 else
4431
4432 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4433 if test "x$LINE" != x ; then
4434 eval "DEFAULT_$LINE"
4435 else
4436 no_cache=1
4437 fi
4438
4439 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4440
4441 fi
4442
4443
4444 eval "$ac_cv_use_help"
4445 if test "$no_cache" != 1; then
4446 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4447 fi
4448
4449 if test "$wxUSE_HELP" = yes; then
4450 echo "$ac_t""yes" 1>&6
4451 else
4452 echo "$ac_t""no" 1>&6
4453 fi
4454
4455
4456 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4457 echo "configure:4458: checking for --enable-mshtmlhelp" >&5
4458 no_cache=0
4459 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4460 if test "${enable_mshtmlhelp+set}" = set; then
4461 enableval="$enable_mshtmlhelp"
4462
4463 if test "$enableval" = yes; then
4464 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4465 else
4466 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4467 fi
4468
4469 else
4470
4471 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4472 if test "x$LINE" != x ; then
4473 eval "DEFAULT_$LINE"
4474 else
4475 no_cache=1
4476 fi
4477
4478 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4479
4480 fi
4481
4482
4483 eval "$ac_cv_use_mshtmlhelp"
4484 if test "$no_cache" != 1; then
4485 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4486 fi
4487
4488 if test "$wxUSE_MS_HTML_HELP" = yes; then
4489 echo "$ac_t""yes" 1>&6
4490 else
4491 echo "$ac_t""no" 1>&6
4492 fi
4493
4494
4495 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4496 echo "configure:4497: checking for --enable-html" >&5
4497 no_cache=0
4498 # Check whether --enable-html or --disable-html was given.
4499 if test "${enable_html+set}" = set; then
4500 enableval="$enable_html"
4501
4502 if test "$enableval" = yes; then
4503 ac_cv_use_html='wxUSE_HTML=yes'
4504 else
4505 ac_cv_use_html='wxUSE_HTML=no'
4506 fi
4507
4508 else
4509
4510 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4511 if test "x$LINE" != x ; then
4512 eval "DEFAULT_$LINE"
4513 else
4514 no_cache=1
4515 fi
4516
4517 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4518
4519 fi
4520
4521
4522 eval "$ac_cv_use_html"
4523 if test "$no_cache" != 1; then
4524 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4525 fi
4526
4527 if test "$wxUSE_HTML" = yes; then
4528 echo "$ac_t""yes" 1>&6
4529 else
4530 echo "$ac_t""no" 1>&6
4531 fi
4532
4533
4534 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4535 echo "configure:4536: checking for --enable-htmlhelp" >&5
4536 no_cache=0
4537 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4538 if test "${enable_htmlhelp+set}" = set; then
4539 enableval="$enable_htmlhelp"
4540
4541 if test "$enableval" = yes; then
4542 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4543 else
4544 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4545 fi
4546
4547 else
4548
4549 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4550 if test "x$LINE" != x ; then
4551 eval "DEFAULT_$LINE"
4552 else
4553 no_cache=1
4554 fi
4555
4556 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4557
4558 fi
4559
4560
4561 eval "$ac_cv_use_htmlhelp"
4562 if test "$no_cache" != 1; then
4563 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4564 fi
4565
4566 if test "$wxUSE_WXHTML_HELP" = yes; then
4567 echo "$ac_t""yes" 1>&6
4568 else
4569 echo "$ac_t""no" 1>&6
4570 fi
4571
4572
4573 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4574 echo "configure:4575: checking for --enable-constraints" >&5
4575 no_cache=0
4576 # Check whether --enable-constraints or --disable-constraints was given.
4577 if test "${enable_constraints+set}" = set; then
4578 enableval="$enable_constraints"
4579
4580 if test "$enableval" = yes; then
4581 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4582 else
4583 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4584 fi
4585
4586 else
4587
4588 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4589 if test "x$LINE" != x ; then
4590 eval "DEFAULT_$LINE"
4591 else
4592 no_cache=1
4593 fi
4594
4595 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4596
4597 fi
4598
4599
4600 eval "$ac_cv_use_constraints"
4601 if test "$no_cache" != 1; then
4602 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4603 fi
4604
4605 if test "$wxUSE_CONSTRAINTS" = yes; then
4606 echo "$ac_t""yes" 1>&6
4607 else
4608 echo "$ac_t""no" 1>&6
4609 fi
4610
4611
4612 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4613 echo "configure:4614: checking for --enable-printarch" >&5
4614 no_cache=0
4615 # Check whether --enable-printarch or --disable-printarch was given.
4616 if test "${enable_printarch+set}" = set; then
4617 enableval="$enable_printarch"
4618
4619 if test "$enableval" = yes; then
4620 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4621 else
4622 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4623 fi
4624
4625 else
4626
4627 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4628 if test "x$LINE" != x ; then
4629 eval "DEFAULT_$LINE"
4630 else
4631 no_cache=1
4632 fi
4633
4634 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4635
4636 fi
4637
4638
4639 eval "$ac_cv_use_printarch"
4640 if test "$no_cache" != 1; then
4641 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4642 fi
4643
4644 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4645 echo "$ac_t""yes" 1>&6
4646 else
4647 echo "$ac_t""no" 1>&6
4648 fi
4649
4650
4651 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4652 echo "configure:4653: checking for --enable-mdi" >&5
4653 no_cache=0
4654 # Check whether --enable-mdi or --disable-mdi was given.
4655 if test "${enable_mdi+set}" = set; then
4656 enableval="$enable_mdi"
4657
4658 if test "$enableval" = yes; then
4659 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4660 else
4661 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4662 fi
4663
4664 else
4665
4666 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4667 if test "x$LINE" != x ; then
4668 eval "DEFAULT_$LINE"
4669 else
4670 no_cache=1
4671 fi
4672
4673 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4674
4675 fi
4676
4677
4678 eval "$ac_cv_use_mdi"
4679 if test "$no_cache" != 1; then
4680 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4681 fi
4682
4683 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4684 echo "$ac_t""yes" 1>&6
4685 else
4686 echo "$ac_t""no" 1>&6
4687 fi
4688
4689
4690 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4691 echo "configure:4692: checking for --enable-loggui" >&5
4692 no_cache=0
4693 # Check whether --enable-loggui or --disable-loggui was given.
4694 if test "${enable_loggui+set}" = set; then
4695 enableval="$enable_loggui"
4696
4697 if test "$enableval" = yes; then
4698 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4699 else
4700 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4701 fi
4702
4703 else
4704
4705 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4706 if test "x$LINE" != x ; then
4707 eval "DEFAULT_$LINE"
4708 else
4709 no_cache=1
4710 fi
4711
4712 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4713
4714 fi
4715
4716
4717 eval "$ac_cv_use_loggui"
4718 if test "$no_cache" != 1; then
4719 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4720 fi
4721
4722 if test "$wxUSE_LOGGUI" = yes; then
4723 echo "$ac_t""yes" 1>&6
4724 else
4725 echo "$ac_t""no" 1>&6
4726 fi
4727
4728
4729 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4730 echo "configure:4731: checking for --enable-logwin" >&5
4731 no_cache=0
4732 # Check whether --enable-logwin or --disable-logwin was given.
4733 if test "${enable_logwin+set}" = set; then
4734 enableval="$enable_logwin"
4735
4736 if test "$enableval" = yes; then
4737 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4738 else
4739 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4740 fi
4741
4742 else
4743
4744 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4745 if test "x$LINE" != x ; then
4746 eval "DEFAULT_$LINE"
4747 else
4748 no_cache=1
4749 fi
4750
4751 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4752
4753 fi
4754
4755
4756 eval "$ac_cv_use_logwin"
4757 if test "$no_cache" != 1; then
4758 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4759 fi
4760
4761 if test "$wxUSE_LOGWINDOW" = yes; then
4762 echo "$ac_t""yes" 1>&6
4763 else
4764 echo "$ac_t""no" 1>&6
4765 fi
4766
4767
4768 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
4769 echo "configure:4770: checking for --enable-logdialog" >&5
4770 no_cache=0
4771 # Check whether --enable-logdialog or --disable-logdialog was given.
4772 if test "${enable_logdialog+set}" = set; then
4773 enableval="$enable_logdialog"
4774
4775 if test "$enableval" = yes; then
4776 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
4777 else
4778 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
4779 fi
4780
4781 else
4782
4783 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
4784 if test "x$LINE" != x ; then
4785 eval "DEFAULT_$LINE"
4786 else
4787 no_cache=1
4788 fi
4789
4790 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
4791
4792 fi
4793
4794
4795 eval "$ac_cv_use_logdialog"
4796 if test "$no_cache" != 1; then
4797 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
4798 fi
4799
4800 if test "$wxUSE_LOGDIALOG" = yes; then
4801 echo "$ac_t""yes" 1>&6
4802 else
4803 echo "$ac_t""no" 1>&6
4804 fi
4805
4806
4807
4808 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4809 echo "configure:4810: checking for --enable-postscript" >&5
4810 no_cache=0
4811 # Check whether --enable-postscript or --disable-postscript was given.
4812 if test "${enable_postscript+set}" = set; then
4813 enableval="$enable_postscript"
4814
4815 if test "$enableval" = yes; then
4816 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4817 else
4818 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4819 fi
4820
4821 else
4822
4823 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4824 if test "x$LINE" != x ; then
4825 eval "DEFAULT_$LINE"
4826 else
4827 no_cache=1
4828 fi
4829
4830 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4831
4832 fi
4833
4834
4835 eval "$ac_cv_use_postscript"
4836 if test "$no_cache" != 1; then
4837 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4838 fi
4839
4840 if test "$wxUSE_POSTSCRIPT" = yes; then
4841 echo "$ac_t""yes" 1>&6
4842 else
4843 echo "$ac_t""no" 1>&6
4844 fi
4845
4846
4847
4848
4849
4850 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4851 echo "configure:4852: checking for --enable-prologio" >&5
4852 no_cache=0
4853 # Check whether --enable-prologio or --disable-prologio was given.
4854 if test "${enable_prologio+set}" = set; then
4855 enableval="$enable_prologio"
4856
4857 if test "$enableval" = yes; then
4858 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4859 else
4860 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4861 fi
4862
4863 else
4864
4865 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4866 if test "x$LINE" != x ; then
4867 eval "DEFAULT_$LINE"
4868 else
4869 no_cache=1
4870 fi
4871
4872 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4873
4874 fi
4875
4876
4877 eval "$ac_cv_use_prologio"
4878 if test "$no_cache" != 1; then
4879 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4880 fi
4881
4882 if test "$wxUSE_PROLOGIO" = yes; then
4883 echo "$ac_t""yes" 1>&6
4884 else
4885 echo "$ac_t""no" 1>&6
4886 fi
4887
4888
4889 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4890 echo "configure:4891: checking for --enable-resources" >&5
4891 no_cache=0
4892 # Check whether --enable-resources or --disable-resources was given.
4893 if test "${enable_resources+set}" = set; then
4894 enableval="$enable_resources"
4895
4896 if test "$enableval" = yes; then
4897 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4898 else
4899 ac_cv_use_resources='wxUSE_RESOURCES=no'
4900 fi
4901
4902 else
4903
4904 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4905 if test "x$LINE" != x ; then
4906 eval "DEFAULT_$LINE"
4907 else
4908 no_cache=1
4909 fi
4910
4911 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4912
4913 fi
4914
4915
4916 eval "$ac_cv_use_resources"
4917 if test "$no_cache" != 1; then
4918 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4919 fi
4920
4921 if test "$wxUSE_RESOURCES" = yes; then
4922 echo "$ac_t""yes" 1>&6
4923 else
4924 echo "$ac_t""no" 1>&6
4925 fi
4926
4927
4928
4929 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4930 echo "configure:4931: checking for --enable-xresources" >&5
4931 no_cache=0
4932 # Check whether --enable-xresources or --disable-xresources was given.
4933 if test "${enable_xresources+set}" = set; then
4934 enableval="$enable_xresources"
4935
4936 if test "$enableval" = yes; then
4937 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4938 else
4939 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4940 fi
4941
4942 else
4943
4944 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4945 if test "x$LINE" != x ; then
4946 eval "DEFAULT_$LINE"
4947 else
4948 no_cache=1
4949 fi
4950
4951 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4952
4953 fi
4954
4955
4956 eval "$ac_cv_use_xresources"
4957 if test "$no_cache" != 1; then
4958 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4959 fi
4960
4961 if test "$wxUSE_X_RESOURCES" = yes; then
4962 echo "$ac_t""yes" 1>&6
4963 else
4964 echo "$ac_t""no" 1>&6
4965 fi
4966
4967
4968
4969
4970 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4971 echo "configure:4972: checking for --enable-clipboard" >&5
4972 no_cache=0
4973 # Check whether --enable-clipboard or --disable-clipboard was given.
4974 if test "${enable_clipboard+set}" = set; then
4975 enableval="$enable_clipboard"
4976
4977 if test "$enableval" = yes; then
4978 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4979 else
4980 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4981 fi
4982
4983 else
4984
4985 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4986 if test "x$LINE" != x ; then
4987 eval "DEFAULT_$LINE"
4988 else
4989 no_cache=1
4990 fi
4991
4992 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4993
4994 fi
4995
4996
4997 eval "$ac_cv_use_clipboard"
4998 if test "$no_cache" != 1; then
4999 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5000 fi
5001
5002 if test "$wxUSE_CLIPBOARD" = yes; then
5003 echo "$ac_t""yes" 1>&6
5004 else
5005 echo "$ac_t""no" 1>&6
5006 fi
5007
5008
5009 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5010 echo "configure:5011: checking for --enable-dnd" >&5
5011 no_cache=0
5012 # Check whether --enable-dnd or --disable-dnd was given.
5013 if test "${enable_dnd+set}" = set; then
5014 enableval="$enable_dnd"
5015
5016 if test "$enableval" = yes; then
5017 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5018 else
5019 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5020 fi
5021
5022 else
5023
5024 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5025 if test "x$LINE" != x ; then
5026 eval "DEFAULT_$LINE"
5027 else
5028 no_cache=1
5029 fi
5030
5031 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5032
5033 fi
5034
5035
5036 eval "$ac_cv_use_dnd"
5037 if test "$no_cache" != 1; then
5038 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5039 fi
5040
5041 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5042 echo "$ac_t""yes" 1>&6
5043 else
5044 echo "$ac_t""no" 1>&6
5045 fi
5046
5047
5048 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5049 echo "configure:5050: checking for --enable-metafile" >&5
5050 no_cache=0
5051 # Check whether --enable-metafile or --disable-metafile was given.
5052 if test "${enable_metafile+set}" = set; then
5053 enableval="$enable_metafile"
5054
5055 if test "$enableval" = yes; then
5056 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5057 else
5058 ac_cv_use_metafile='wxUSE_METAFILE=no'
5059 fi
5060
5061 else
5062
5063 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5064 if test "x$LINE" != x ; then
5065 eval "DEFAULT_$LINE"
5066 else
5067 no_cache=1
5068 fi
5069
5070 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5071
5072 fi
5073
5074
5075 eval "$ac_cv_use_metafile"
5076 if test "$no_cache" != 1; then
5077 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5078 fi
5079
5080 if test "$wxUSE_METAFILE" = yes; then
5081 echo "$ac_t""yes" 1>&6
5082 else
5083 echo "$ac_t""no" 1>&6
5084 fi
5085
5086
5087
5088 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5089 echo "configure:5090: checking for --enable-treelayout" >&5
5090 no_cache=0
5091 # Check whether --enable-treelayout or --disable-treelayout was given.
5092 if test "${enable_treelayout+set}" = set; then
5093 enableval="$enable_treelayout"
5094
5095 if test "$enableval" = yes; then
5096 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5097 else
5098 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5099 fi
5100
5101 else
5102
5103 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5104 if test "x$LINE" != x ; then
5105 eval "DEFAULT_$LINE"
5106 else
5107 no_cache=1
5108 fi
5109
5110 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5111
5112 fi
5113
5114
5115 eval "$ac_cv_use_treelayout"
5116 if test "$no_cache" != 1; then
5117 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5118 fi
5119
5120 if test "$wxUSE_TREELAYOUT" = yes; then
5121 echo "$ac_t""yes" 1>&6
5122 else
5123 echo "$ac_t""no" 1>&6
5124 fi
5125
5126
5127
5128
5129 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5130 echo "configure:5131: checking for --enable-controls" >&5
5131 no_cache=0
5132 # Check whether --enable-controls or --disable-controls was given.
5133 if test "${enable_controls+set}" = set; then
5134 enableval="$enable_controls"
5135
5136 if test "$enableval" = yes; then
5137 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5138 else
5139 ac_cv_use_controls='wxUSE_CONTROLS=no'
5140 fi
5141
5142 else
5143
5144 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5145 if test "x$LINE" != x ; then
5146 eval "DEFAULT_$LINE"
5147 else
5148 no_cache=1
5149 fi
5150
5151 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5152
5153 fi
5154
5155
5156 eval "$ac_cv_use_controls"
5157 if test "$no_cache" != 1; then
5158 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5159 fi
5160
5161 if test "$wxUSE_CONTROLS" = yes; then
5162 echo "$ac_t""yes" 1>&6
5163 else
5164 echo "$ac_t""no" 1>&6
5165 fi
5166
5167
5168 if test "$wxUSE_CONTROLS" = "yes"; then
5169 DEFAULT_wxUSE_ACCEL=yes
5170 DEFAULT_wxUSE_BMPBUTTON=yes
5171 DEFAULT_wxUSE_BUTTON=yes
5172 DEFAULT_wxUSE_CALCTRL=no
5173 DEFAULT_wxUSE_CARET=yes
5174 DEFAULT_wxUSE_COMBOBOX=yes
5175 DEFAULT_wxUSE_CHECKBOX=yes
5176 DEFAULT_wxUSE_CHECKLISTBOX=yes
5177 DEFAULT_wxUSE_CHOICE=yes
5178 DEFAULT_wxUSE_GAUGE=yes
5179 DEFAULT_wxUSE_GRID=yes
5180 DEFAULT_wxUSE_NEW_GRID=yes
5181 DEFAULT_wxUSE_IMAGLIST=yes
5182 DEFAULT_wxUSE_LISTBOX=yes
5183 DEFAULT_wxUSE_LISTCTRL=yes
5184 DEFAULT_wxUSE_NOTEBOOK=yes
5185 DEFAULT_wxUSE_PROPSHEET=yes
5186 DEFAULT_wxUSE_RADIOBOX=yes
5187 DEFAULT_wxUSE_RADIOBTN=yes
5188 DEFAULT_wxUSE_SASH=yes
5189 DEFAULT_wxUSE_SCROLLBAR=yes
5190 DEFAULT_wxUSE_SLIDER=yes
5191 DEFAULT_wxUSE_SPINBTN=yes
5192 DEFAULT_wxUSE_SPINCTRL=yes
5193 DEFAULT_wxUSE_SPLITTER=yes
5194 DEFAULT_wxUSE_STATBMP=yes
5195 DEFAULT_wxUSE_STATBOX=yes
5196 DEFAULT_wxUSE_STATLINE=yes
5197 DEFAULT_wxUSE_STATUSBAR=yes
5198 DEFAULT_wxUSE_TAB_DIALOG=yes
5199 DEFAULT_wxUSE_TOGGLEBTN=yes
5200 DEFAULT_wxUSE_TOOLBAR=yes
5201 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5202 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5203 DEFAULT_wxUSE_TOOLTIPS=yes
5204 DEFAULT_wxUSE_TREECTRL=yes
5205 DEFAULT_wxUSE_POPUPWIN=yes
5206 DEFAULT_wxUSE_TIPWINDOW=yes
5207 elif test "$wxUSE_CONTROLS" = "no"; then
5208 DEFAULT_wxUSE_ACCEL=no
5209 DEFAULT_wxUSE_BMPBUTTON=no
5210 DEFAULT_wxUSE_BUTTON=no
5211 DEFAULT_wxUSE_CALCTRL=no
5212 DEFAULT_wxUSE_CARET=no
5213 DEFAULT_wxUSE_COMBOBOX=no
5214 DEFAULT_wxUSE_CHECKBOX=no
5215 DEFAULT_wxUSE_CHECKLISTBOX=no
5216 DEFAULT_wxUSE_CHOICE=no
5217 DEFAULT_wxUSE_GAUGE=no
5218 DEFAULT_wxUSE_GRID=no
5219 DEFAULT_wxUSE_NEW_GRID=no
5220 DEFAULT_wxUSE_IMAGLIST=no
5221 DEFAULT_wxUSE_LISTBOX=no
5222 DEFAULT_wxUSE_LISTCTRL=no
5223 DEFAULT_wxUSE_NOTEBOOK=no
5224 DEFAULT_wxUSE_PROPSHEET=no
5225 DEFAULT_wxUSE_RADIOBOX=no
5226 DEFAULT_wxUSE_RADIOBTN=no
5227 DEFAULT_wxUSE_SASH=no
5228 DEFAULT_wxUSE_SCROLLBAR=no
5229 DEFAULT_wxUSE_SLIDER=no
5230 DEFAULT_wxUSE_SPINBTN=no
5231 DEFAULT_wxUSE_SPINCTRL=no
5232 DEFAULT_wxUSE_SPLITTER=no
5233 DEFAULT_wxUSE_STATBMP=no
5234 DEFAULT_wxUSE_STATBOX=no
5235 DEFAULT_wxUSE_STATLINE=no
5236 DEFAULT_wxUSE_STATUSBAR=no
5237 DEFAULT_wxUSE_TAB_DIALOG=no
5238 DEFAULT_wxUSE_TOGGLEBTN=no
5239 DEFAULT_wxUSE_TOOLBAR=no
5240 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5241 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5242 DEFAULT_wxUSE_TOOLTIPS=no
5243 DEFAULT_wxUSE_TREECTRL=no
5244 DEFAULT_wxUSE_POPUPWIN=no
5245 DEFAULT_wxUSE_TIPWINDOW=no
5246 fi
5247
5248
5249 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5250 echo "configure:5251: checking for --enable-accel" >&5
5251 no_cache=0
5252 # Check whether --enable-accel or --disable-accel was given.
5253 if test "${enable_accel+set}" = set; then
5254 enableval="$enable_accel"
5255
5256 if test "$enableval" = yes; then
5257 ac_cv_use_accel='wxUSE_ACCEL=yes'
5258 else
5259 ac_cv_use_accel='wxUSE_ACCEL=no'
5260 fi
5261
5262 else
5263
5264 LINE=`grep "wxUSE_ACCEL" ${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_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5272
5273 fi
5274
5275
5276 eval "$ac_cv_use_accel"
5277 if test "$no_cache" != 1; then
5278 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5279 fi
5280
5281 if test "$wxUSE_ACCEL" = 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-button""... $ac_c" 1>&6
5289 echo "configure:5290: checking for --enable-button" >&5
5290 no_cache=0
5291 # Check whether --enable-button or --disable-button was given.
5292 if test "${enable_button+set}" = set; then
5293 enableval="$enable_button"
5294
5295 if test "$enableval" = yes; then
5296 ac_cv_use_button='wxUSE_BUTTON=yes'
5297 else
5298 ac_cv_use_button='wxUSE_BUTTON=no'
5299 fi
5300
5301 else
5302
5303 LINE=`grep "wxUSE_BUTTON" ${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_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5311
5312 fi
5313
5314
5315 eval "$ac_cv_use_button"
5316 if test "$no_cache" != 1; then
5317 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5318 fi
5319
5320 if test "$wxUSE_BUTTON" = 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-bmpbutton""... $ac_c" 1>&6
5328 echo "configure:5329: checking for --enable-bmpbutton" >&5
5329 no_cache=0
5330 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5331 if test "${enable_bmpbutton+set}" = set; then
5332 enableval="$enable_bmpbutton"
5333
5334 if test "$enableval" = yes; then
5335 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5336 else
5337 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5338 fi
5339
5340 else
5341
5342 LINE=`grep "wxUSE_BMPBUTTON" ${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_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5350
5351 fi
5352
5353
5354 eval "$ac_cv_use_bmpbutton"
5355 if test "$no_cache" != 1; then
5356 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5357 fi
5358
5359 if test "$wxUSE_BMPBUTTON" = 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-calendar""... $ac_c" 1>&6
5367 echo "configure:5368: checking for --enable-calendar" >&5
5368 no_cache=0
5369 # Check whether --enable-calendar or --disable-calendar was given.
5370 if test "${enable_calendar+set}" = set; then
5371 enableval="$enable_calendar"
5372
5373 if test "$enableval" = yes; then
5374 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5375 else
5376 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5377 fi
5378
5379 else
5380
5381 LINE=`grep "wxUSE_CALCTRL" ${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_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5389
5390 fi
5391
5392
5393 eval "$ac_cv_use_calendar"
5394 if test "$no_cache" != 1; then
5395 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5396 fi
5397
5398 if test "$wxUSE_CALCTRL" = 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-caret""... $ac_c" 1>&6
5406 echo "configure:5407: checking for --enable-caret" >&5
5407 no_cache=0
5408 # Check whether --enable-caret or --disable-caret was given.
5409 if test "${enable_caret+set}" = set; then
5410 enableval="$enable_caret"
5411
5412 if test "$enableval" = yes; then
5413 ac_cv_use_caret='wxUSE_CARET=yes'
5414 else
5415 ac_cv_use_caret='wxUSE_CARET=no'
5416 fi
5417
5418 else
5419
5420 LINE=`grep "wxUSE_CARET" ${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_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5428
5429 fi
5430
5431
5432 eval "$ac_cv_use_caret"
5433 if test "$no_cache" != 1; then
5434 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5435 fi
5436
5437 if test "$wxUSE_CARET" = 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-checkbox""... $ac_c" 1>&6
5445 echo "configure:5446: checking for --enable-checkbox" >&5
5446 no_cache=0
5447 # Check whether --enable-checkbox or --disable-checkbox was given.
5448 if test "${enable_checkbox+set}" = set; then
5449 enableval="$enable_checkbox"
5450
5451 if test "$enableval" = yes; then
5452 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5453 else
5454 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5455 fi
5456
5457 else
5458
5459 LINE=`grep "wxUSE_CHECKBOX" ${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_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5467
5468 fi
5469
5470
5471 eval "$ac_cv_use_checkbox"
5472 if test "$no_cache" != 1; then
5473 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5474 fi
5475
5476 if test "$wxUSE_CHECKBOX" = 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-checklst""... $ac_c" 1>&6
5484 echo "configure:5485: checking for --enable-checklst" >&5
5485 no_cache=0
5486 # Check whether --enable-checklst or --disable-checklst was given.
5487 if test "${enable_checklst+set}" = set; then
5488 enableval="$enable_checklst"
5489
5490 if test "$enableval" = yes; then
5491 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5492 else
5493 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5494 fi
5495
5496 else
5497
5498 LINE=`grep "wxUSE_CHECKLST" ${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_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5506
5507 fi
5508
5509
5510 eval "$ac_cv_use_checklst"
5511 if test "$no_cache" != 1; then
5512 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5513 fi
5514
5515 if test "$wxUSE_CHECKLST" = 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-choice""... $ac_c" 1>&6
5523 echo "configure:5524: checking for --enable-choice" >&5
5524 no_cache=0
5525 # Check whether --enable-choice or --disable-choice was given.
5526 if test "${enable_choice+set}" = set; then
5527 enableval="$enable_choice"
5528
5529 if test "$enableval" = yes; then
5530 ac_cv_use_choice='wxUSE_CHOICE=yes'
5531 else
5532 ac_cv_use_choice='wxUSE_CHOICE=no'
5533 fi
5534
5535 else
5536
5537 LINE=`grep "wxUSE_CHOICE" ${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_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5545
5546 fi
5547
5548
5549 eval "$ac_cv_use_choice"
5550 if test "$no_cache" != 1; then
5551 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5552 fi
5553
5554 if test "$wxUSE_CHOICE" = 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-combobox""... $ac_c" 1>&6
5562 echo "configure:5563: checking for --enable-combobox" >&5
5563 no_cache=0
5564 # Check whether --enable-combobox or --disable-combobox was given.
5565 if test "${enable_combobox+set}" = set; then
5566 enableval="$enable_combobox"
5567
5568 if test "$enableval" = yes; then
5569 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5570 else
5571 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5572 fi
5573
5574 else
5575
5576 LINE=`grep "wxUSE_COMBOBOX" ${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_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5584
5585 fi
5586
5587
5588 eval "$ac_cv_use_combobox"
5589 if test "$no_cache" != 1; then
5590 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5591 fi
5592
5593 if test "$wxUSE_COMBOBOX" = 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-gauge""... $ac_c" 1>&6
5601 echo "configure:5602: checking for --enable-gauge" >&5
5602 no_cache=0
5603 # Check whether --enable-gauge or --disable-gauge was given.
5604 if test "${enable_gauge+set}" = set; then
5605 enableval="$enable_gauge"
5606
5607 if test "$enableval" = yes; then
5608 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5609 else
5610 ac_cv_use_gauge='wxUSE_GAUGE=no'
5611 fi
5612
5613 else
5614
5615 LINE=`grep "wxUSE_GAUGE" ${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_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5623
5624 fi
5625
5626
5627 eval "$ac_cv_use_gauge"
5628 if test "$no_cache" != 1; then
5629 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5630 fi
5631
5632 if test "$wxUSE_GAUGE" = 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-grid""... $ac_c" 1>&6
5640 echo "configure:5641: checking for --enable-grid" >&5
5641 no_cache=0
5642 # Check whether --enable-grid or --disable-grid was given.
5643 if test "${enable_grid+set}" = set; then
5644 enableval="$enable_grid"
5645
5646 if test "$enableval" = yes; then
5647 ac_cv_use_grid='wxUSE_GRID=yes'
5648 else
5649 ac_cv_use_grid='wxUSE_GRID=no'
5650 fi
5651
5652 else
5653
5654 LINE=`grep "wxUSE_GRID" ${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_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5662
5663 fi
5664
5665
5666 eval "$ac_cv_use_grid"
5667 if test "$no_cache" != 1; then
5668 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5669 fi
5670
5671 if test "$wxUSE_GRID" = 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-newgrid""... $ac_c" 1>&6
5679 echo "configure:5680: checking for --enable-newgrid" >&5
5680 no_cache=0
5681 # Check whether --enable-newgrid or --disable-newgrid was given.
5682 if test "${enable_newgrid+set}" = set; then
5683 enableval="$enable_newgrid"
5684
5685 if test "$enableval" = yes; then
5686 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5687 else
5688 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5689 fi
5690
5691 else
5692
5693 LINE=`grep "wxUSE_NEW_GRID" ${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_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5701
5702 fi
5703
5704
5705 eval "$ac_cv_use_newgrid"
5706 if test "$no_cache" != 1; then
5707 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5708 fi
5709
5710 if test "$wxUSE_NEW_GRID" = 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-imaglist""... $ac_c" 1>&6
5718 echo "configure:5719: checking for --enable-imaglist" >&5
5719 no_cache=0
5720 # Check whether --enable-imaglist or --disable-imaglist was given.
5721 if test "${enable_imaglist+set}" = set; then
5722 enableval="$enable_imaglist"
5723
5724 if test "$enableval" = yes; then
5725 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5726 else
5727 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5728 fi
5729
5730 else
5731
5732 LINE=`grep "wxUSE_IMAGLIST" ${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_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5740
5741 fi
5742
5743
5744 eval "$ac_cv_use_imaglist"
5745 if test "$no_cache" != 1; then
5746 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5747 fi
5748
5749 if test "$wxUSE_IMAGLIST" = 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-listbox""... $ac_c" 1>&6
5757 echo "configure:5758: checking for --enable-listbox" >&5
5758 no_cache=0
5759 # Check whether --enable-listbox or --disable-listbox was given.
5760 if test "${enable_listbox+set}" = set; then
5761 enableval="$enable_listbox"
5762
5763 if test "$enableval" = yes; then
5764 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5765 else
5766 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5767 fi
5768
5769 else
5770
5771 LINE=`grep "wxUSE_LISTBOX" ${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_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5779
5780 fi
5781
5782
5783 eval "$ac_cv_use_listbox"
5784 if test "$no_cache" != 1; then
5785 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5786 fi
5787
5788 if test "$wxUSE_LISTBOX" = 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-listctrl""... $ac_c" 1>&6
5796 echo "configure:5797: checking for --enable-listctrl" >&5
5797 no_cache=0
5798 # Check whether --enable-listctrl or --disable-listctrl was given.
5799 if test "${enable_listctrl+set}" = set; then
5800 enableval="$enable_listctrl"
5801
5802 if test "$enableval" = yes; then
5803 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5804 else
5805 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5806 fi
5807
5808 else
5809
5810 LINE=`grep "wxUSE_LISTCTRL" ${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_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5818
5819 fi
5820
5821
5822 eval "$ac_cv_use_listctrl"
5823 if test "$no_cache" != 1; then
5824 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5825 fi
5826
5827 if test "$wxUSE_LISTCTRL" = 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-notebook""... $ac_c" 1>&6
5835 echo "configure:5836: checking for --enable-notebook" >&5
5836 no_cache=0
5837 # Check whether --enable-notebook or --disable-notebook was given.
5838 if test "${enable_notebook+set}" = set; then
5839 enableval="$enable_notebook"
5840
5841 if test "$enableval" = yes; then
5842 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5843 else
5844 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5845 fi
5846
5847 else
5848
5849 LINE=`grep "wxUSE_NOTEBOOK" ${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_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5857
5858 fi
5859
5860
5861 eval "$ac_cv_use_notebook"
5862 if test "$no_cache" != 1; then
5863 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5864 fi
5865
5866 if test "$wxUSE_NOTEBOOK" = 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-propsheet""... $ac_c" 1>&6
5874 echo "configure:5875: checking for --enable-propsheet" >&5
5875 no_cache=0
5876 # Check whether --enable-propsheet or --disable-propsheet was given.
5877 if test "${enable_propsheet+set}" = set; then
5878 enableval="$enable_propsheet"
5879
5880 if test "$enableval" = yes; then
5881 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5882 else
5883 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5884 fi
5885
5886 else
5887
5888 LINE=`grep "wxUSE_PROPSHEET" ${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_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5896
5897 fi
5898
5899
5900 eval "$ac_cv_use_propsheet"
5901 if test "$no_cache" != 1; then
5902 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5903 fi
5904
5905 if test "$wxUSE_PROPSHEET" = 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-radiobox""... $ac_c" 1>&6
5913 echo "configure:5914: checking for --enable-radiobox" >&5
5914 no_cache=0
5915 # Check whether --enable-radiobox or --disable-radiobox was given.
5916 if test "${enable_radiobox+set}" = set; then
5917 enableval="$enable_radiobox"
5918
5919 if test "$enableval" = yes; then
5920 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5921 else
5922 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5923 fi
5924
5925 else
5926
5927 LINE=`grep "wxUSE_RADIOBOX" ${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_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5935
5936 fi
5937
5938
5939 eval "$ac_cv_use_radiobox"
5940 if test "$no_cache" != 1; then
5941 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5942 fi
5943
5944 if test "$wxUSE_RADIOBOX" = 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-radiobtn""... $ac_c" 1>&6
5952 echo "configure:5953: checking for --enable-radiobtn" >&5
5953 no_cache=0
5954 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5955 if test "${enable_radiobtn+set}" = set; then
5956 enableval="$enable_radiobtn"
5957
5958 if test "$enableval" = yes; then
5959 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5960 else
5961 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5962 fi
5963
5964 else
5965
5966 LINE=`grep "wxUSE_RADIOBTN" ${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_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5974
5975 fi
5976
5977
5978 eval "$ac_cv_use_radiobtn"
5979 if test "$no_cache" != 1; then
5980 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5981 fi
5982
5983 if test "$wxUSE_RADIOBTN" = 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-sash""... $ac_c" 1>&6
5991 echo "configure:5992: checking for --enable-sash" >&5
5992 no_cache=0
5993 # Check whether --enable-sash or --disable-sash was given.
5994 if test "${enable_sash+set}" = set; then
5995 enableval="$enable_sash"
5996
5997 if test "$enableval" = yes; then
5998 ac_cv_use_sash='wxUSE_SASH=yes'
5999 else
6000 ac_cv_use_sash='wxUSE_SASH=no'
6001 fi
6002
6003 else
6004
6005 LINE=`grep "wxUSE_SASH" ${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_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6013
6014 fi
6015
6016
6017 eval "$ac_cv_use_sash"
6018 if test "$no_cache" != 1; then
6019 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6020 fi
6021
6022 if test "$wxUSE_SASH" = 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-scrollbar""... $ac_c" 1>&6
6030 echo "configure:6031: checking for --enable-scrollbar" >&5
6031 no_cache=0
6032 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6033 if test "${enable_scrollbar+set}" = set; then
6034 enableval="$enable_scrollbar"
6035
6036 if test "$enableval" = yes; then
6037 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6038 else
6039 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6040 fi
6041
6042 else
6043
6044 LINE=`grep "wxUSE_SCROLLBAR" ${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_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6052
6053 fi
6054
6055
6056 eval "$ac_cv_use_scrollbar"
6057 if test "$no_cache" != 1; then
6058 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6059 fi
6060
6061 if test "$wxUSE_SCROLLBAR" = 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-slider""... $ac_c" 1>&6
6069 echo "configure:6070: checking for --enable-slider" >&5
6070 no_cache=0
6071 # Check whether --enable-slider or --disable-slider was given.
6072 if test "${enable_slider+set}" = set; then
6073 enableval="$enable_slider"
6074
6075 if test "$enableval" = yes; then
6076 ac_cv_use_slider='wxUSE_SLIDER=yes'
6077 else
6078 ac_cv_use_slider='wxUSE_SLIDER=no'
6079 fi
6080
6081 else
6082
6083 LINE=`grep "wxUSE_SLIDER" ${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_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6091
6092 fi
6093
6094
6095 eval "$ac_cv_use_slider"
6096 if test "$no_cache" != 1; then
6097 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6098 fi
6099
6100 if test "$wxUSE_SLIDER" = 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-spinbtn""... $ac_c" 1>&6
6108 echo "configure:6109: checking for --enable-spinbtn" >&5
6109 no_cache=0
6110 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6111 if test "${enable_spinbtn+set}" = set; then
6112 enableval="$enable_spinbtn"
6113
6114 if test "$enableval" = yes; then
6115 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6116 else
6117 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6118 fi
6119
6120 else
6121
6122 LINE=`grep "wxUSE_SPINBTN" ${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_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6130
6131 fi
6132
6133
6134 eval "$ac_cv_use_spinbtn"
6135 if test "$no_cache" != 1; then
6136 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6137 fi
6138
6139 if test "$wxUSE_SPINBTN" = 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-spinctrl""... $ac_c" 1>&6
6147 echo "configure:6148: checking for --enable-spinctrl" >&5
6148 no_cache=0
6149 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6150 if test "${enable_spinctrl+set}" = set; then
6151 enableval="$enable_spinctrl"
6152
6153 if test "$enableval" = yes; then
6154 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6155 else
6156 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6157 fi
6158
6159 else
6160
6161 LINE=`grep "wxUSE_SPINCTRL" ${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_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6169
6170 fi
6171
6172
6173 eval "$ac_cv_use_spinctrl"
6174 if test "$no_cache" != 1; then
6175 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6176 fi
6177
6178 if test "$wxUSE_SPINCTRL" = 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-splitter""... $ac_c" 1>&6
6186 echo "configure:6187: checking for --enable-splitter" >&5
6187 no_cache=0
6188 # Check whether --enable-splitter or --disable-splitter was given.
6189 if test "${enable_splitter+set}" = set; then
6190 enableval="$enable_splitter"
6191
6192 if test "$enableval" = yes; then
6193 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6194 else
6195 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6196 fi
6197
6198 else
6199
6200 LINE=`grep "wxUSE_SPLITTER" ${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_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6208
6209 fi
6210
6211
6212 eval "$ac_cv_use_splitter"
6213 if test "$no_cache" != 1; then
6214 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6215 fi
6216
6217 if test "$wxUSE_SPLITTER" = 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-statbmp""... $ac_c" 1>&6
6225 echo "configure:6226: checking for --enable-statbmp" >&5
6226 no_cache=0
6227 # Check whether --enable-statbmp or --disable-statbmp was given.
6228 if test "${enable_statbmp+set}" = set; then
6229 enableval="$enable_statbmp"
6230
6231 if test "$enableval" = yes; then
6232 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6233 else
6234 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6235 fi
6236
6237 else
6238
6239 LINE=`grep "wxUSE_STATBMP" ${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_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6247
6248 fi
6249
6250
6251 eval "$ac_cv_use_statbmp"
6252 if test "$no_cache" != 1; then
6253 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6254 fi
6255
6256 if test "$wxUSE_STATBMP" = 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-statbox""... $ac_c" 1>&6
6264 echo "configure:6265: checking for --enable-statbox" >&5
6265 no_cache=0
6266 # Check whether --enable-statbox or --disable-statbox was given.
6267 if test "${enable_statbox+set}" = set; then
6268 enableval="$enable_statbox"
6269
6270 if test "$enableval" = yes; then
6271 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6272 else
6273 ac_cv_use_statbox='wxUSE_STATBOX=no'
6274 fi
6275
6276 else
6277
6278 LINE=`grep "wxUSE_STATBOX" ${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_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6286
6287 fi
6288
6289
6290 eval "$ac_cv_use_statbox"
6291 if test "$no_cache" != 1; then
6292 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6293 fi
6294
6295 if test "$wxUSE_STATBOX" = 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-statline""... $ac_c" 1>&6
6303 echo "configure:6304: checking for --enable-statline" >&5
6304 no_cache=0
6305 # Check whether --enable-statline or --disable-statline was given.
6306 if test "${enable_statline+set}" = set; then
6307 enableval="$enable_statline"
6308
6309 if test "$enableval" = yes; then
6310 ac_cv_use_statline='wxUSE_STATLINE=yes'
6311 else
6312 ac_cv_use_statline='wxUSE_STATLINE=no'
6313 fi
6314
6315 else
6316
6317 LINE=`grep "wxUSE_STATLINE" ${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_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6325
6326 fi
6327
6328
6329 eval "$ac_cv_use_statline"
6330 if test "$no_cache" != 1; then
6331 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6332 fi
6333
6334 if test "$wxUSE_STATLINE" = 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-stattext""... $ac_c" 1>&6
6342 echo "configure:6343: checking for --enable-stattext" >&5
6343 no_cache=0
6344 # Check whether --enable-stattext or --disable-stattext was given.
6345 if test "${enable_stattext+set}" = set; then
6346 enableval="$enable_stattext"
6347
6348 if test "$enableval" = yes; then
6349 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6350 else
6351 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6352 fi
6353
6354 else
6355
6356 LINE=`grep "wxUSE_STATTEXT" ${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_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6364
6365 fi
6366
6367
6368 eval "$ac_cv_use_stattext"
6369 if test "$no_cache" != 1; then
6370 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6371 fi
6372
6373 if test "$wxUSE_STATTEXT" = 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-statusbar""... $ac_c" 1>&6
6381 echo "configure:6382: checking for --enable-statusbar" >&5
6382 no_cache=0
6383 # Check whether --enable-statusbar or --disable-statusbar was given.
6384 if test "${enable_statusbar+set}" = set; then
6385 enableval="$enable_statusbar"
6386
6387 if test "$enableval" = yes; then
6388 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6389 else
6390 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6391 fi
6392
6393 else
6394
6395 LINE=`grep "wxUSE_STATUSBAR" ${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_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6403
6404 fi
6405
6406
6407 eval "$ac_cv_use_statusbar"
6408 if test "$no_cache" != 1; then
6409 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6410 fi
6411
6412 if test "$wxUSE_STATUSBAR" = 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-tabdialog""... $ac_c" 1>&6
6420 echo "configure:6421: checking for --enable-tabdialog" >&5
6421 no_cache=0
6422 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6423 if test "${enable_tabdialog+set}" = set; then
6424 enableval="$enable_tabdialog"
6425
6426 if test "$enableval" = yes; then
6427 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6428 else
6429 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6430 fi
6431
6432 else
6433
6434 LINE=`grep "wxUSE_TABDIALOG" ${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_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6442
6443 fi
6444
6445
6446 eval "$ac_cv_use_tabdialog"
6447 if test "$no_cache" != 1; then
6448 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6449 fi
6450
6451 if test "$wxUSE_TABDIALOG" = 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-textctrl""... $ac_c" 1>&6
6459 echo "configure:6460: checking for --enable-textctrl" >&5
6460 no_cache=0
6461 # Check whether --enable-textctrl or --disable-textctrl was given.
6462 if test "${enable_textctrl+set}" = set; then
6463 enableval="$enable_textctrl"
6464
6465 if test "$enableval" = yes; then
6466 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6467 else
6468 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6469 fi
6470
6471 else
6472
6473 LINE=`grep "wxUSE_TEXTCTRL" ${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_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6481
6482 fi
6483
6484
6485 eval "$ac_cv_use_textctrl"
6486 if test "$no_cache" != 1; then
6487 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6488 fi
6489
6490 if test "$wxUSE_TEXTCTRL" = 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-togglebtn""... $ac_c" 1>&6
6498 echo "configure:6499: checking for --enable-togglebtn" >&5
6499 no_cache=0
6500 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6501 if test "${enable_togglebtn+set}" = set; then
6502 enableval="$enable_togglebtn"
6503
6504 if test "$enableval" = yes; then
6505 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6506 else
6507 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6508 fi
6509
6510 else
6511
6512 LINE=`grep "wxUSE_TOGGLEBTN" ${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_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6520
6521 fi
6522
6523
6524 eval "$ac_cv_use_togglebtn"
6525 if test "$no_cache" != 1; then
6526 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6527 fi
6528
6529 if test "$wxUSE_TOGGLEBTN" = 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-toolbar""... $ac_c" 1>&6
6537 echo "configure:6538: checking for --enable-toolbar" >&5
6538 no_cache=0
6539 # Check whether --enable-toolbar or --disable-toolbar was given.
6540 if test "${enable_toolbar+set}" = set; then
6541 enableval="$enable_toolbar"
6542
6543 if test "$enableval" = yes; then
6544 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6545 else
6546 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6547 fi
6548
6549 else
6550
6551 LINE=`grep "wxUSE_TOOLBAR" ${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_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6559
6560 fi
6561
6562
6563 eval "$ac_cv_use_toolbar"
6564 if test "$no_cache" != 1; then
6565 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6566 fi
6567
6568 if test "$wxUSE_TOOLBAR" = yes; then
6569 echo "$ac_t""yes" 1>&6
6570 else
6571 echo "$ac_t""no" 1>&6
6572 fi
6573
6574
6575 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6576 echo "configure:6577: checking for --enable-tbarnative" >&5
6577 no_cache=0
6578 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6579 if test "${enable_tbarnative+set}" = set; then
6580 enableval="$enable_tbarnative"
6581
6582 if test "$enableval" = yes; then
6583 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6584 else
6585 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6586 fi
6587
6588 else
6589
6590 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6591 if test "x$LINE" != x ; then
6592 eval "DEFAULT_$LINE"
6593 else
6594 no_cache=1
6595 fi
6596
6597 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6598
6599 fi
6600
6601
6602 eval "$ac_cv_use_tbarnative"
6603 if test "$no_cache" != 1; then
6604 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6605 fi
6606
6607 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6608 echo "$ac_t""yes" 1>&6
6609 else
6610 echo "$ac_t""no" 1>&6
6611 fi
6612
6613
6614 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6615 echo "configure:6616: checking for --enable-tbarsmpl" >&5
6616 no_cache=0
6617 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6618 if test "${enable_tbarsmpl+set}" = set; then
6619 enableval="$enable_tbarsmpl"
6620
6621 if test "$enableval" = yes; then
6622 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6623 else
6624 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6625 fi
6626
6627 else
6628
6629 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6630 if test "x$LINE" != x ; then
6631 eval "DEFAULT_$LINE"
6632 else
6633 no_cache=1
6634 fi
6635
6636 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6637
6638 fi
6639
6640
6641 eval "$ac_cv_use_tbarsmpl"
6642 if test "$no_cache" != 1; then
6643 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6644 fi
6645
6646 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6647 echo "$ac_t""yes" 1>&6
6648 else
6649 echo "$ac_t""no" 1>&6
6650 fi
6651
6652
6653 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6654 echo "configure:6655: checking for --enable-treectrl" >&5
6655 no_cache=0
6656 # Check whether --enable-treectrl or --disable-treectrl was given.
6657 if test "${enable_treectrl+set}" = set; then
6658 enableval="$enable_treectrl"
6659
6660 if test "$enableval" = yes; then
6661 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6662 else
6663 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6664 fi
6665
6666 else
6667
6668 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6669 if test "x$LINE" != x ; then
6670 eval "DEFAULT_$LINE"
6671 else
6672 no_cache=1
6673 fi
6674
6675 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6676
6677 fi
6678
6679
6680 eval "$ac_cv_use_treectrl"
6681 if test "$no_cache" != 1; then
6682 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6683 fi
6684
6685 if test "$wxUSE_TREECTRL" = yes; then
6686 echo "$ac_t""yes" 1>&6
6687 else
6688 echo "$ac_t""no" 1>&6
6689 fi
6690
6691
6692 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
6693 echo "configure:6694: checking for --enable-tipwindow" >&5
6694 no_cache=0
6695 # Check whether --enable-tipwindow or --disable-tipwindow was given.
6696 if test "${enable_tipwindow+set}" = set; then
6697 enableval="$enable_tipwindow"
6698
6699 if test "$enableval" = yes; then
6700 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
6701 else
6702 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
6703 fi
6704
6705 else
6706
6707 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
6708 if test "x$LINE" != x ; then
6709 eval "DEFAULT_$LINE"
6710 else
6711 no_cache=1
6712 fi
6713
6714 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
6715
6716 fi
6717
6718
6719 eval "$ac_cv_use_tipwindow"
6720 if test "$no_cache" != 1; then
6721 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
6722 fi
6723
6724 if test "$wxUSE_TIPWINDOW" = yes; then
6725 echo "$ac_t""yes" 1>&6
6726 else
6727 echo "$ac_t""no" 1>&6
6728 fi
6729
6730
6731 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6732 echo "configure:6733: checking for --enable-popupwin" >&5
6733 no_cache=0
6734 # Check whether --enable-popupwin or --disable-popupwin was given.
6735 if test "${enable_popupwin+set}" = set; then
6736 enableval="$enable_popupwin"
6737
6738 if test "$enableval" = yes; then
6739 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6740 else
6741 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6742 fi
6743
6744 else
6745
6746 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6747 if test "x$LINE" != x ; then
6748 eval "DEFAULT_$LINE"
6749 else
6750 no_cache=1
6751 fi
6752
6753 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6754
6755 fi
6756
6757
6758 eval "$ac_cv_use_popupwin"
6759 if test "$no_cache" != 1; then
6760 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6761 fi
6762
6763 if test "$wxUSE_POPUPWIN" = yes; then
6764 echo "$ac_t""yes" 1>&6
6765 else
6766 echo "$ac_t""no" 1>&6
6767 fi
6768
6769
6770
6771
6772 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6773 echo "configure:6774: checking for --enable-commondlg" >&5
6774 no_cache=0
6775 # Check whether --enable-commondlg or --disable-commondlg was given.
6776 if test "${enable_commondlg+set}" = set; then
6777 enableval="$enable_commondlg"
6778
6779 if test "$enableval" = yes; then
6780 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6781 else
6782 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6783 fi
6784
6785 else
6786
6787 LINE=`grep "wxUSE_COMMONDLGS" ${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_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6795
6796 fi
6797
6798
6799 eval "$ac_cv_use_commondlg"
6800 if test "$no_cache" != 1; then
6801 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6802 fi
6803
6804 if test "$wxUSE_COMMONDLGS" = 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-choicedlg""... $ac_c" 1>&6
6812 echo "configure:6813: checking for --enable-choicedlg" >&5
6813 no_cache=0
6814 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6815 if test "${enable_choicedlg+set}" = set; then
6816 enableval="$enable_choicedlg"
6817
6818 if test "$enableval" = yes; then
6819 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6820 else
6821 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6822 fi
6823
6824 else
6825
6826 LINE=`grep "wxUSE_CHOICEDLG" ${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_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6834
6835 fi
6836
6837
6838 eval "$ac_cv_use_choicedlg"
6839 if test "$no_cache" != 1; then
6840 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6841 fi
6842
6843 if test "$wxUSE_CHOICEDLG" = 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-coldlg""... $ac_c" 1>&6
6851 echo "configure:6852: checking for --enable-coldlg" >&5
6852 no_cache=0
6853 # Check whether --enable-coldlg or --disable-coldlg was given.
6854 if test "${enable_coldlg+set}" = set; then
6855 enableval="$enable_coldlg"
6856
6857 if test "$enableval" = yes; then
6858 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6859 else
6860 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6861 fi
6862
6863 else
6864
6865 LINE=`grep "wxUSE_COLOURDLG" ${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_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6873
6874 fi
6875
6876
6877 eval "$ac_cv_use_coldlg"
6878 if test "$no_cache" != 1; then
6879 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6880 fi
6881
6882 if test "$wxUSE_COLOURDLG" = 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-filedlg""... $ac_c" 1>&6
6890 echo "configure:6891: checking for --enable-filedlg" >&5
6891 no_cache=0
6892 # Check whether --enable-filedlg or --disable-filedlg was given.
6893 if test "${enable_filedlg+set}" = set; then
6894 enableval="$enable_filedlg"
6895
6896 if test "$enableval" = yes; then
6897 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6898 else
6899 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6900 fi
6901
6902 else
6903
6904 LINE=`grep "wxUSE_FILEDLG" ${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_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6912
6913 fi
6914
6915
6916 eval "$ac_cv_use_filedlg"
6917 if test "$no_cache" != 1; then
6918 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6919 fi
6920
6921 if test "$wxUSE_FILEDLG" = 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-finddlg""... $ac_c" 1>&6
6929 echo "configure:6930: checking for --enable-finddlg" >&5
6930 no_cache=0
6931 # Check whether --enable-finddlg or --disable-finddlg was given.
6932 if test "${enable_finddlg+set}" = set; then
6933 enableval="$enable_finddlg"
6934
6935 if test "$enableval" = yes; then
6936 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
6937 else
6938 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
6939 fi
6940
6941 else
6942
6943 LINE=`grep "wxUSE_FINDREPLDLG" ${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_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6951
6952 fi
6953
6954
6955 eval "$ac_cv_use_finddlg"
6956 if test "$no_cache" != 1; then
6957 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
6958 fi
6959
6960 if test "$wxUSE_FINDREPLDLG" = 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-fontdlg""... $ac_c" 1>&6
6968 echo "configure:6969: checking for --enable-fontdlg" >&5
6969 no_cache=0
6970 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6971 if test "${enable_fontdlg+set}" = set; then
6972 enableval="$enable_fontdlg"
6973
6974 if test "$enableval" = yes; then
6975 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6976 else
6977 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6978 fi
6979
6980 else
6981
6982 LINE=`grep "wxUSE_FONTDLG" ${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_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6990
6991 fi
6992
6993
6994 eval "$ac_cv_use_fontdlg"
6995 if test "$no_cache" != 1; then
6996 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6997 fi
6998
6999 if test "$wxUSE_FONTDLG" = 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-dirdlg""... $ac_c" 1>&6
7007 echo "configure:7008: checking for --enable-dirdlg" >&5
7008 no_cache=0
7009 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7010 if test "${enable_dirdlg+set}" = set; then
7011 enableval="$enable_dirdlg"
7012
7013 if test "$enableval" = yes; then
7014 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7015 else
7016 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7017 fi
7018
7019 else
7020
7021 LINE=`grep "wxUSE_DIRDLG" ${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_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7029
7030 fi
7031
7032
7033 eval "$ac_cv_use_dirdlg"
7034 if test "$no_cache" != 1; then
7035 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7036 fi
7037
7038 if test "$wxUSE_DIRDLG" = 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-msgdlg""... $ac_c" 1>&6
7046 echo "configure:7047: checking for --enable-msgdlg" >&5
7047 no_cache=0
7048 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7049 if test "${enable_msgdlg+set}" = set; then
7050 enableval="$enable_msgdlg"
7051
7052 if test "$enableval" = yes; then
7053 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7054 else
7055 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7056 fi
7057
7058 else
7059
7060 LINE=`grep "wxUSE_MSGDLG" ${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_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7068
7069 fi
7070
7071
7072 eval "$ac_cv_use_msgdlg"
7073 if test "$no_cache" != 1; then
7074 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7075 fi
7076
7077 if test "$wxUSE_MSGDLG" = 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-numberdlg""... $ac_c" 1>&6
7085 echo "configure:7086: checking for --enable-numberdlg" >&5
7086 no_cache=0
7087 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7088 if test "${enable_numberdlg+set}" = set; then
7089 enableval="$enable_numberdlg"
7090
7091 if test "$enableval" = yes; then
7092 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7093 else
7094 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7095 fi
7096
7097 else
7098
7099 LINE=`grep "wxUSE_NUMBERDLG" ${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_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7107
7108 fi
7109
7110
7111 eval "$ac_cv_use_numberdlg"
7112 if test "$no_cache" != 1; then
7113 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7114 fi
7115
7116 if test "$wxUSE_NUMBERDLG" = yes; then
7117 echo "$ac_t""yes" 1>&6
7118 else
7119 echo "$ac_t""no" 1>&6
7120 fi
7121
7122
7123 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7124 echo "configure:7125: checking for --enable-splash" >&5
7125 no_cache=0
7126 # Check whether --enable-splash or --disable-splash was given.
7127 if test "${enable_splash+set}" = set; then
7128 enableval="$enable_splash"
7129
7130 if test "$enableval" = yes; then
7131 ac_cv_use_splash='wxUSE_SPLASH=yes'
7132 else
7133 ac_cv_use_splash='wxUSE_SPLASH=no'
7134 fi
7135
7136 else
7137
7138 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7139 if test "x$LINE" != x ; then
7140 eval "DEFAULT_$LINE"
7141 else
7142 no_cache=1
7143 fi
7144
7145 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7146
7147 fi
7148
7149
7150 eval "$ac_cv_use_splash"
7151 if test "$no_cache" != 1; then
7152 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7153 fi
7154
7155 if test "$wxUSE_SPLASH" = yes; then
7156 echo "$ac_t""yes" 1>&6
7157 else
7158 echo "$ac_t""no" 1>&6
7159 fi
7160
7161
7162 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7163 echo "configure:7164: checking for --enable-textdlg" >&5
7164 no_cache=0
7165 # Check whether --enable-textdlg or --disable-textdlg was given.
7166 if test "${enable_textdlg+set}" = set; then
7167 enableval="$enable_textdlg"
7168
7169 if test "$enableval" = yes; then
7170 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7171 else
7172 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7173 fi
7174
7175 else
7176
7177 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7178 if test "x$LINE" != x ; then
7179 eval "DEFAULT_$LINE"
7180 else
7181 no_cache=1
7182 fi
7183
7184 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7185
7186 fi
7187
7188
7189 eval "$ac_cv_use_textdlg"
7190 if test "$no_cache" != 1; then
7191 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7192 fi
7193
7194 if test "$wxUSE_TEXTDLG" = yes; then
7195 echo "$ac_t""yes" 1>&6
7196 else
7197 echo "$ac_t""no" 1>&6
7198 fi
7199
7200
7201 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7202 echo "configure:7203: checking for --enable-tipdlg" >&5
7203 no_cache=0
7204 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7205 if test "${enable_tipdlg+set}" = set; then
7206 enableval="$enable_tipdlg"
7207
7208 if test "$enableval" = yes; then
7209 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7210 else
7211 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7212 fi
7213
7214 else
7215
7216 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7217 if test "x$LINE" != x ; then
7218 eval "DEFAULT_$LINE"
7219 else
7220 no_cache=1
7221 fi
7222
7223 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7224
7225 fi
7226
7227
7228 eval "$ac_cv_use_tipdlg"
7229 if test "$no_cache" != 1; then
7230 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7231 fi
7232
7233 if test "$wxUSE_STARTUP_TIPS" = yes; then
7234 echo "$ac_t""yes" 1>&6
7235 else
7236 echo "$ac_t""no" 1>&6
7237 fi
7238
7239
7240 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7241 echo "configure:7242: checking for --enable-progressdlg" >&5
7242 no_cache=0
7243 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7244 if test "${enable_progressdlg+set}" = set; then
7245 enableval="$enable_progressdlg"
7246
7247 if test "$enableval" = yes; then
7248 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7249 else
7250 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7251 fi
7252
7253 else
7254
7255 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7256 if test "x$LINE" != x ; then
7257 eval "DEFAULT_$LINE"
7258 else
7259 no_cache=1
7260 fi
7261
7262 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7263
7264 fi
7265
7266
7267 eval "$ac_cv_use_progressdlg"
7268 if test "$no_cache" != 1; then
7269 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7270 fi
7271
7272 if test "$wxUSE_PROGRESSDLG" = yes; then
7273 echo "$ac_t""yes" 1>&6
7274 else
7275 echo "$ac_t""no" 1>&6
7276 fi
7277
7278
7279 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7280 echo "configure:7281: checking for --enable-wizarddlg" >&5
7281 no_cache=0
7282 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7283 if test "${enable_wizarddlg+set}" = set; then
7284 enableval="$enable_wizarddlg"
7285
7286 if test "$enableval" = yes; then
7287 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7288 else
7289 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7290 fi
7291
7292 else
7293
7294 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7295 if test "x$LINE" != x ; then
7296 eval "DEFAULT_$LINE"
7297 else
7298 no_cache=1
7299 fi
7300
7301 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7302
7303 fi
7304
7305
7306 eval "$ac_cv_use_wizarddlg"
7307 if test "$no_cache" != 1; then
7308 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7309 fi
7310
7311 if test "$wxUSE_WIZARDDLG" = yes; then
7312 echo "$ac_t""yes" 1>&6
7313 else
7314 echo "$ac_t""no" 1>&6
7315 fi
7316
7317
7318
7319
7320 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7321 echo "configure:7322: checking for --enable-menus" >&5
7322 no_cache=0
7323 # Check whether --enable-menus or --disable-menus was given.
7324 if test "${enable_menus+set}" = set; then
7325 enableval="$enable_menus"
7326
7327 if test "$enableval" = yes; then
7328 ac_cv_use_menus='wxUSE_MENUS=yes'
7329 else
7330 ac_cv_use_menus='wxUSE_MENUS=no'
7331 fi
7332
7333 else
7334
7335 LINE=`grep "wxUSE_MENUS" ${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_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7343
7344 fi
7345
7346
7347 eval "$ac_cv_use_menus"
7348 if test "$no_cache" != 1; then
7349 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7350 fi
7351
7352 if test "$wxUSE_MENUS" = 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-miniframe""... $ac_c" 1>&6
7360 echo "configure:7361: checking for --enable-miniframe" >&5
7361 no_cache=0
7362 # Check whether --enable-miniframe or --disable-miniframe was given.
7363 if test "${enable_miniframe+set}" = set; then
7364 enableval="$enable_miniframe"
7365
7366 if test "$enableval" = yes; then
7367 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7368 else
7369 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7370 fi
7371
7372 else
7373
7374 LINE=`grep "wxUSE_MINIFRAME" ${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_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7382
7383 fi
7384
7385
7386 eval "$ac_cv_use_miniframe"
7387 if test "$no_cache" != 1; then
7388 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7389 fi
7390
7391 if test "$wxUSE_MINIFRAME" = 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-tooltips""... $ac_c" 1>&6
7399 echo "configure:7400: checking for --enable-tooltips" >&5
7400 no_cache=0
7401 # Check whether --enable-tooltips or --disable-tooltips was given.
7402 if test "${enable_tooltips+set}" = set; then
7403 enableval="$enable_tooltips"
7404
7405 if test "$enableval" = yes; then
7406 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7407 else
7408 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7409 fi
7410
7411 else
7412
7413 LINE=`grep "wxUSE_TOOLTIPS" ${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_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7421
7422 fi
7423
7424
7425 eval "$ac_cv_use_tooltips"
7426 if test "$no_cache" != 1; then
7427 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7428 fi
7429
7430 if test "$wxUSE_TOOLTIPS" = 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-splines""... $ac_c" 1>&6
7438 echo "configure:7439: checking for --enable-splines" >&5
7439 no_cache=0
7440 # Check whether --enable-splines or --disable-splines was given.
7441 if test "${enable_splines+set}" = set; then
7442 enableval="$enable_splines"
7443
7444 if test "$enableval" = yes; then
7445 ac_cv_use_splines='wxUSE_SPLINES=yes'
7446 else
7447 ac_cv_use_splines='wxUSE_SPLINES=no'
7448 fi
7449
7450 else
7451
7452 LINE=`grep "wxUSE_SPLINES" ${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_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7460
7461 fi
7462
7463
7464 eval "$ac_cv_use_splines"
7465 if test "$no_cache" != 1; then
7466 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7467 fi
7468
7469 if test "$wxUSE_SPLINES" = yes; then
7470 echo "$ac_t""yes" 1>&6
7471 else
7472 echo "$ac_t""no" 1>&6
7473 fi
7474
7475
7476 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7477 echo "configure:7478: checking for --enable-validators" >&5
7478 no_cache=0
7479 # Check whether --enable-validators or --disable-validators was given.
7480 if test "${enable_validators+set}" = set; then
7481 enableval="$enable_validators"
7482
7483 if test "$enableval" = yes; then
7484 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7485 else
7486 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7487 fi
7488
7489 else
7490
7491 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7492 if test "x$LINE" != x ; then
7493 eval "DEFAULT_$LINE"
7494 else
7495 no_cache=1
7496 fi
7497
7498 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7499
7500 fi
7501
7502
7503 eval "$ac_cv_use_validators"
7504 if test "$no_cache" != 1; then
7505 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7506 fi
7507
7508 if test "$wxUSE_VALIDATORS" = yes; then
7509 echo "$ac_t""yes" 1>&6
7510 else
7511 echo "$ac_t""no" 1>&6
7512 fi
7513
7514
7515 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7516 echo "configure:7517: checking for --enable-busyinfo" >&5
7517 no_cache=0
7518 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7519 if test "${enable_busyinfo+set}" = set; then
7520 enableval="$enable_busyinfo"
7521
7522 if test "$enableval" = yes; then
7523 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7524 else
7525 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7526 fi
7527
7528 else
7529
7530 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7531 if test "x$LINE" != x ; then
7532 eval "DEFAULT_$LINE"
7533 else
7534 no_cache=1
7535 fi
7536
7537 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7538
7539 fi
7540
7541
7542 eval "$ac_cv_use_busyinfo"
7543 if test "$no_cache" != 1; then
7544 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7545 fi
7546
7547 if test "$wxUSE_BUSYINFO" = yes; then
7548 echo "$ac_t""yes" 1>&6
7549 else
7550 echo "$ac_t""no" 1>&6
7551 fi
7552
7553
7554 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7555 echo "configure:7556: checking for --enable-joystick" >&5
7556 no_cache=0
7557 # Check whether --enable-joystick or --disable-joystick was given.
7558 if test "${enable_joystick+set}" = set; then
7559 enableval="$enable_joystick"
7560
7561 if test "$enableval" = yes; then
7562 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7563 else
7564 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7565 fi
7566
7567 else
7568
7569 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7570 if test "x$LINE" != x ; then
7571 eval "DEFAULT_$LINE"
7572 else
7573 no_cache=1
7574 fi
7575
7576 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7577
7578 fi
7579
7580
7581 eval "$ac_cv_use_joystick"
7582 if test "$no_cache" != 1; then
7583 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7584 fi
7585
7586 if test "$wxUSE_JOYSTICK" = yes; then
7587 echo "$ac_t""yes" 1>&6
7588 else
7589 echo "$ac_t""no" 1>&6
7590 fi
7591
7592
7593 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7594 echo "configure:7595: checking for --enable-metafile" >&5
7595 no_cache=0
7596 # Check whether --enable-metafile or --disable-metafile was given.
7597 if test "${enable_metafile+set}" = set; then
7598 enableval="$enable_metafile"
7599
7600 if test "$enableval" = yes; then
7601 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7602 else
7603 ac_cv_use_metafile='wxUSE_METAFILE=no'
7604 fi
7605
7606 else
7607
7608 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7609 if test "x$LINE" != x ; then
7610 eval "DEFAULT_$LINE"
7611 else
7612 no_cache=1
7613 fi
7614
7615 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7616
7617 fi
7618
7619
7620 eval "$ac_cv_use_metafile"
7621 if test "$no_cache" != 1; then
7622 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7623 fi
7624
7625 if test "$wxUSE_METAFILE" = yes; then
7626 echo "$ac_t""yes" 1>&6
7627 else
7628 echo "$ac_t""no" 1>&6
7629 fi
7630
7631
7632 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7633 echo "configure:7634: checking for --enable-dragimage" >&5
7634 no_cache=0
7635 # Check whether --enable-dragimage or --disable-dragimage was given.
7636 if test "${enable_dragimage+set}" = set; then
7637 enableval="$enable_dragimage"
7638
7639 if test "$enableval" = yes; then
7640 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7641 else
7642 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7643 fi
7644
7645 else
7646
7647 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7648 if test "x$LINE" != x ; then
7649 eval "DEFAULT_$LINE"
7650 else
7651 no_cache=1
7652 fi
7653
7654 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7655
7656 fi
7657
7658
7659 eval "$ac_cv_use_dragimage"
7660 if test "$no_cache" != 1; then
7661 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7662 fi
7663
7664 if test "$wxUSE_DRAGIMAGE" = yes; then
7665 echo "$ac_t""yes" 1>&6
7666 else
7667 echo "$ac_t""no" 1>&6
7668 fi
7669
7670
7671
7672
7673 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
7674 echo "configure:7675: checking for --enable-palette" >&5
7675 no_cache=0
7676 # Check whether --enable-palette or --disable-palette was given.
7677 if test "${enable_palette+set}" = set; then
7678 enableval="$enable_palette"
7679
7680 if test "$enableval" = yes; then
7681 ac_cv_use_palette='wxUSE_PALETTE=yes'
7682 else
7683 ac_cv_use_palette='wxUSE_PALETTE=no'
7684 fi
7685
7686 else
7687
7688 LINE=`grep "wxUSE_PALETTE" ${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_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7696
7697 fi
7698
7699
7700 eval "$ac_cv_use_palette"
7701 if test "$no_cache" != 1; then
7702 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7703 fi
7704
7705 if test "$wxUSE_PALETTE" = yes; then
7706 echo "$ac_t""yes" 1>&6
7707 else
7708 echo "$ac_t""no" 1>&6
7709 fi
7710
7711
7712 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7713 echo "configure:7714: checking for --enable-image" >&5
7714 no_cache=0
7715 # Check whether --enable-image or --disable-image was given.
7716 if test "${enable_image+set}" = set; then
7717 enableval="$enable_image"
7718
7719 if test "$enableval" = yes; then
7720 ac_cv_use_image='wxUSE_IMAGE=yes'
7721 else
7722 ac_cv_use_image='wxUSE_IMAGE=no'
7723 fi
7724
7725 else
7726
7727 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7728 if test "x$LINE" != x ; then
7729 eval "DEFAULT_$LINE"
7730 else
7731 no_cache=1
7732 fi
7733
7734 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7735
7736 fi
7737
7738
7739 eval "$ac_cv_use_image"
7740 if test "$no_cache" != 1; then
7741 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7742 fi
7743
7744 if test "$wxUSE_IMAGE" = yes; then
7745 echo "$ac_t""yes" 1>&6
7746 else
7747 echo "$ac_t""no" 1>&6
7748 fi
7749
7750
7751 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7752 echo "configure:7753: checking for --enable-gif" >&5
7753 no_cache=0
7754 # Check whether --enable-gif or --disable-gif was given.
7755 if test "${enable_gif+set}" = set; then
7756 enableval="$enable_gif"
7757
7758 if test "$enableval" = yes; then
7759 ac_cv_use_gif='wxUSE_GIF=yes'
7760 else
7761 ac_cv_use_gif='wxUSE_GIF=no'
7762 fi
7763
7764 else
7765
7766 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7767 if test "x$LINE" != x ; then
7768 eval "DEFAULT_$LINE"
7769 else
7770 no_cache=1
7771 fi
7772
7773 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7774
7775 fi
7776
7777
7778 eval "$ac_cv_use_gif"
7779 if test "$no_cache" != 1; then
7780 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7781 fi
7782
7783 if test "$wxUSE_GIF" = yes; then
7784 echo "$ac_t""yes" 1>&6
7785 else
7786 echo "$ac_t""no" 1>&6
7787 fi
7788
7789
7790 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7791 echo "configure:7792: checking for --enable-pcx" >&5
7792 no_cache=0
7793 # Check whether --enable-pcx or --disable-pcx was given.
7794 if test "${enable_pcx+set}" = set; then
7795 enableval="$enable_pcx"
7796
7797 if test "$enableval" = yes; then
7798 ac_cv_use_pcx='wxUSE_PCX=yes'
7799 else
7800 ac_cv_use_pcx='wxUSE_PCX=no'
7801 fi
7802
7803 else
7804
7805 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7806 if test "x$LINE" != x ; then
7807 eval "DEFAULT_$LINE"
7808 else
7809 no_cache=1
7810 fi
7811
7812 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7813
7814 fi
7815
7816
7817 eval "$ac_cv_use_pcx"
7818 if test "$no_cache" != 1; then
7819 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7820 fi
7821
7822 if test "$wxUSE_PCX" = yes; then
7823 echo "$ac_t""yes" 1>&6
7824 else
7825 echo "$ac_t""no" 1>&6
7826 fi
7827
7828
7829 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7830 echo "configure:7831: checking for --enable-pnm" >&5
7831 no_cache=0
7832 # Check whether --enable-pnm or --disable-pnm was given.
7833 if test "${enable_pnm+set}" = set; then
7834 enableval="$enable_pnm"
7835
7836 if test "$enableval" = yes; then
7837 ac_cv_use_pnm='wxUSE_PNM=yes'
7838 else
7839 ac_cv_use_pnm='wxUSE_PNM=no'
7840 fi
7841
7842 else
7843
7844 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7845 if test "x$LINE" != x ; then
7846 eval "DEFAULT_$LINE"
7847 else
7848 no_cache=1
7849 fi
7850
7851 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7852
7853 fi
7854
7855
7856 eval "$ac_cv_use_pnm"
7857 if test "$no_cache" != 1; then
7858 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7859 fi
7860
7861 if test "$wxUSE_PNM" = yes; then
7862 echo "$ac_t""yes" 1>&6
7863 else
7864 echo "$ac_t""no" 1>&6
7865 fi
7866
7867
7868 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
7869 echo "configure:7870: checking for --enable-xpm" >&5
7870 no_cache=0
7871 # Check whether --enable-xpm or --disable-xpm was given.
7872 if test "${enable_xpm+set}" = set; then
7873 enableval="$enable_xpm"
7874
7875 if test "$enableval" = yes; then
7876 ac_cv_use_xpm='wxUSE_XPM=yes'
7877 else
7878 ac_cv_use_xpm='wxUSE_XPM=no'
7879 fi
7880
7881 else
7882
7883 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7884 if test "x$LINE" != x ; then
7885 eval "DEFAULT_$LINE"
7886 else
7887 no_cache=1
7888 fi
7889
7890 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7891
7892 fi
7893
7894
7895 eval "$ac_cv_use_xpm"
7896 if test "$no_cache" != 1; then
7897 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
7898 fi
7899
7900 if test "$wxUSE_XPM" = yes; then
7901 echo "$ac_t""yes" 1>&6
7902 else
7903 echo "$ac_t""no" 1>&6
7904 fi
7905
7906
7907 fi
7908
7909
7910 echo "saving argument cache $wx_arg_cache_file"
7911 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7912
7913
7914
7915 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7916 echo "configure:7917: checking for toolkit" >&5
7917
7918 if test "$wxUSE_GUI" = "yes"; then
7919
7920 if test "$USE_BEOS" = 1; then
7921 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7922 fi
7923
7924 if test "$TOOLKIT_GIVEN" = 1; then
7925 for toolkit in `echo $ALL_TOOLKITS`; do
7926 var=wxUSE_$toolkit
7927 eval "value=\$${var}"
7928 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7929 done
7930 else
7931 for toolkit in `echo $ALL_TOOLKITS`; do
7932 if test "$has_toolkit_in_cache" != 1; then
7933 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7934 else
7935 var=DEFAULT_wxUSE_$toolkit
7936 fi
7937 eval "wxUSE_$toolkit=\$${var}"
7938 done
7939 fi
7940
7941 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
7942 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0}`
7943
7944 case "${host}" in
7945 *-pc-os2_emx | *-pc-os2-emx )
7946 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7947 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7948 LEX_STEM="lexyy"
7949 ;;
7950 *)
7951 PATH_IFS=':'
7952 LEX_STEM="lex.yy"
7953 ;;
7954 esac
7955
7956 case "$NUM_TOOLKITS" in
7957 1)
7958 ;;
7959 0)
7960 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7961 ;;
7962 *)
7963 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7964 esac
7965
7966 for toolkit in `echo $ALL_TOOLKITS`; do
7967 var=wxUSE_$toolkit
7968 eval "value=\$${var}"
7969 if test "x$value" != x; then
7970 cache_var=CACHE_$toolkit
7971 eval "cache=\$${cache_var}"
7972 if test "$cache" = 1; then
7973 echo "$var=$value" >> ${wx_arg_cache_file}
7974 fi
7975 if test "$value" = 1; then
7976 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7977 echo "$ac_t""$toolkit_echo" 1>&6
7978 fi
7979 fi
7980 done
7981 else
7982 PATH_IFS=':'
7983 echo "$ac_t""base ($host_alias hosted) only" 1>&6
7984 fi
7985
7986
7987 cat > confcache <<\EOF
7988 # This file is a shell script that caches the results of configure
7989 # tests run on this system so they can be shared between configure
7990 # scripts and configure runs. It is not useful on other systems.
7991 # If it contains results you don't want to keep, you may remove or edit it.
7992 #
7993 # By default, configure uses ./config.cache as the cache file,
7994 # creating it if it does not exist already. You can give configure
7995 # the --cache-file=FILE option to use a different cache file; that is
7996 # what configure does when it calls configure scripts in
7997 # subdirectories, so they share the cache.
7998 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7999 # config.status only pays attention to the cache file if you give it the
8000 # --recheck option to rerun configure.
8001 #
8002 EOF
8003 # The following way of writing the cache mishandles newlines in values,
8004 # but we know of no workaround that is simple, portable, and efficient.
8005 # So, don't put newlines in cache variables' values.
8006 # Ultrix sh set writes to stderr and can't be redirected directly,
8007 # and sets the high bit in the cache file unless we assign to the vars.
8008 (set) 2>&1 |
8009 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8010 *ac_space=\ *)
8011 # `set' does not quote correctly, so add quotes (double-quote substitution
8012 # turns \\\\ into \\, and sed turns \\ into \).
8013 sed -n \
8014 -e "s/'/'\\\\''/g" \
8015 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8016 ;;
8017 *)
8018 # `set' quotes correctly as required by POSIX, so do not add quotes.
8019 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8020 ;;
8021 esac >> confcache
8022 if cmp -s $cache_file confcache; then
8023 :
8024 else
8025 if test -w $cache_file; then
8026 echo "updating cache $cache_file"
8027 cat confcache > $cache_file
8028 else
8029 echo "not updating unwritable cache $cache_file"
8030 fi
8031 fi
8032 rm -f confcache
8033
8034
8035 if test "$build" != "$host" ; then
8036 if test "$USE_WIN32" = 1 ; then
8037 CC=$host_alias-gcc
8038 CXX=$host_alias-c++
8039 AR=$host_alias-ar
8040 RANLIB=$host_alias-ranlib
8041 DLLTOOL=$host_alias-dlltool
8042 RESCOMP=$host_alias-windres
8043 LD=$host_alias-ld
8044 NM=$host_alias-nm
8045 STRIP=$host_alias-strip
8046 else
8047 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8048 fi
8049 fi
8050
8051 # Extract the first word of "gcc", so it can be a program name with args.
8052 set dummy gcc; ac_word=$2
8053 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8054 echo "configure:8055: checking for $ac_word" >&5
8055 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8056 echo $ac_n "(cached) $ac_c" 1>&6
8057 else
8058 if test -n "$CC"; then
8059 ac_cv_prog_CC="$CC" # Let the user override the test.
8060 else
8061 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8062 ac_dummy="$PATH"
8063 for ac_dir in $ac_dummy; do
8064 test -z "$ac_dir" && ac_dir=.
8065 if test -f $ac_dir/$ac_word; then
8066 ac_cv_prog_CC="gcc"
8067 break
8068 fi
8069 done
8070 IFS="$ac_save_ifs"
8071 fi
8072 fi
8073 CC="$ac_cv_prog_CC"
8074 if test -n "$CC"; then
8075 echo "$ac_t""$CC" 1>&6
8076 else
8077 echo "$ac_t""no" 1>&6
8078 fi
8079
8080 if test -z "$CC"; then
8081 # Extract the first word of "cc", so it can be a program name with args.
8082 set dummy cc; ac_word=$2
8083 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8084 echo "configure:8085: checking for $ac_word" >&5
8085 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8086 echo $ac_n "(cached) $ac_c" 1>&6
8087 else
8088 if test -n "$CC"; then
8089 ac_cv_prog_CC="$CC" # Let the user override the test.
8090 else
8091 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8092 ac_prog_rejected=no
8093 ac_dummy="$PATH"
8094 for ac_dir in $ac_dummy; do
8095 test -z "$ac_dir" && ac_dir=.
8096 if test -f $ac_dir/$ac_word; then
8097 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8098 ac_prog_rejected=yes
8099 continue
8100 fi
8101 ac_cv_prog_CC="cc"
8102 break
8103 fi
8104 done
8105 IFS="$ac_save_ifs"
8106 if test $ac_prog_rejected = yes; then
8107 # We found a bogon in the path, so make sure we never use it.
8108 set dummy $ac_cv_prog_CC
8109 shift
8110 if test $# -gt 0; then
8111 # We chose a different compiler from the bogus one.
8112 # However, it has the same basename, so the bogon will be chosen
8113 # first if we set CC to just the basename; use the full file name.
8114 shift
8115 set dummy "$ac_dir/$ac_word" "$@"
8116 shift
8117 ac_cv_prog_CC="$@"
8118 fi
8119 fi
8120 fi
8121 fi
8122 CC="$ac_cv_prog_CC"
8123 if test -n "$CC"; then
8124 echo "$ac_t""$CC" 1>&6
8125 else
8126 echo "$ac_t""no" 1>&6
8127 fi
8128
8129 if test -z "$CC"; then
8130 case "`uname -s`" in
8131 *win32* | *WIN32*)
8132 # Extract the first word of "cl", so it can be a program name with args.
8133 set dummy cl; ac_word=$2
8134 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8135 echo "configure:8136: checking for $ac_word" >&5
8136 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8137 echo $ac_n "(cached) $ac_c" 1>&6
8138 else
8139 if test -n "$CC"; then
8140 ac_cv_prog_CC="$CC" # Let the user override the test.
8141 else
8142 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8143 ac_dummy="$PATH"
8144 for ac_dir in $ac_dummy; do
8145 test -z "$ac_dir" && ac_dir=.
8146 if test -f $ac_dir/$ac_word; then
8147 ac_cv_prog_CC="cl"
8148 break
8149 fi
8150 done
8151 IFS="$ac_save_ifs"
8152 fi
8153 fi
8154 CC="$ac_cv_prog_CC"
8155 if test -n "$CC"; then
8156 echo "$ac_t""$CC" 1>&6
8157 else
8158 echo "$ac_t""no" 1>&6
8159 fi
8160 ;;
8161 esac
8162 fi
8163 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8164 fi
8165
8166 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8167 echo "configure:8168: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8168
8169 ac_ext=c
8170 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8171 ac_cpp='$CPP $CPPFLAGS'
8172 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8173 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8174 cross_compiling=$ac_cv_prog_cc_cross
8175
8176 cat > conftest.$ac_ext << EOF
8177
8178 #line 8179 "configure"
8179 #include "confdefs.h"
8180
8181 main(){return(0);}
8182 EOF
8183 if { (eval echo configure:8184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8184 ac_cv_prog_cc_works=yes
8185 # If we can't run a trivial program, we are probably using a cross compiler.
8186 if (./conftest; exit) 2>/dev/null; then
8187 ac_cv_prog_cc_cross=no
8188 else
8189 ac_cv_prog_cc_cross=yes
8190 fi
8191 else
8192 echo "configure: failed program was:" >&5
8193 cat conftest.$ac_ext >&5
8194 ac_cv_prog_cc_works=no
8195 fi
8196 rm -fr conftest*
8197 ac_ext=c
8198 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8199 ac_cpp='$CPP $CPPFLAGS'
8200 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8201 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8202 cross_compiling=$ac_cv_prog_cc_cross
8203
8204 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8205 if test $ac_cv_prog_cc_works = no; then
8206 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8207 fi
8208 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8209 echo "configure:8210: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8210 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8211 cross_compiling=$ac_cv_prog_cc_cross
8212
8213 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8214 echo "configure:8215: checking whether we are using GNU C" >&5
8215 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8216 echo $ac_n "(cached) $ac_c" 1>&6
8217 else
8218 cat > conftest.c <<EOF
8219 #ifdef __GNUC__
8220 yes;
8221 #endif
8222 EOF
8223 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8224 ac_cv_prog_gcc=yes
8225 else
8226 ac_cv_prog_gcc=no
8227 fi
8228 fi
8229
8230 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8231
8232 if test $ac_cv_prog_gcc = yes; then
8233 GCC=yes
8234 else
8235 GCC=
8236 fi
8237
8238 ac_test_CFLAGS="${CFLAGS+set}"
8239 ac_save_CFLAGS="$CFLAGS"
8240 CFLAGS=
8241 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8242 echo "configure:8243: checking whether ${CC-cc} accepts -g" >&5
8243 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8244 echo $ac_n "(cached) $ac_c" 1>&6
8245 else
8246 echo 'void f(){}' > conftest.c
8247 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8248 ac_cv_prog_cc_g=yes
8249 else
8250 ac_cv_prog_cc_g=no
8251 fi
8252 rm -f conftest*
8253
8254 fi
8255
8256 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8257 if test "$ac_test_CFLAGS" = set; then
8258 CFLAGS="$ac_save_CFLAGS"
8259 elif test $ac_cv_prog_cc_g = yes; then
8260 if test "$GCC" = yes; then
8261 CFLAGS="-g -O2"
8262 else
8263 CFLAGS="-g"
8264 fi
8265 else
8266 if test "$GCC" = yes; then
8267 CFLAGS="-O2"
8268 else
8269 CFLAGS=
8270 fi
8271 fi
8272
8273
8274 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8275
8276 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8277 echo "configure:8278: checking how to run the C preprocessor" >&5
8278 # On Suns, sometimes $CPP names a directory.
8279 if test -n "$CPP" && test -d "$CPP"; then
8280 CPP=
8281 fi
8282 if test -z "$CPP"; then
8283 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8284 echo $ac_n "(cached) $ac_c" 1>&6
8285 else
8286 # This must be in double quotes, not single quotes, because CPP may get
8287 # substituted into the Makefile and "${CC-cc}" will confuse make.
8288 CPP="${CC-cc} -E"
8289 # On the NeXT, cc -E runs the code through the compiler's parser,
8290 # not just through cpp.
8291 cat > conftest.$ac_ext <<EOF
8292 #line 8293 "configure"
8293 #include "confdefs.h"
8294 #include <assert.h>
8295 Syntax Error
8296 EOF
8297 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8298 { (eval echo configure:8299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8299 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8300 if test -z "$ac_err"; then
8301 :
8302 else
8303 echo "$ac_err" >&5
8304 echo "configure: failed program was:" >&5
8305 cat conftest.$ac_ext >&5
8306 rm -rf conftest*
8307 CPP="${CC-cc} -E -traditional-cpp"
8308 cat > conftest.$ac_ext <<EOF
8309 #line 8310 "configure"
8310 #include "confdefs.h"
8311 #include <assert.h>
8312 Syntax Error
8313 EOF
8314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8315 { (eval echo configure:8316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8317 if test -z "$ac_err"; then
8318 :
8319 else
8320 echo "$ac_err" >&5
8321 echo "configure: failed program was:" >&5
8322 cat conftest.$ac_ext >&5
8323 rm -rf conftest*
8324 CPP="${CC-cc} -nologo -E"
8325 cat > conftest.$ac_ext <<EOF
8326 #line 8327 "configure"
8327 #include "confdefs.h"
8328 #include <assert.h>
8329 Syntax Error
8330 EOF
8331 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8332 { (eval echo configure:8333: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8333 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8334 if test -z "$ac_err"; then
8335 :
8336 else
8337 echo "$ac_err" >&5
8338 echo "configure: failed program was:" >&5
8339 cat conftest.$ac_ext >&5
8340 rm -rf conftest*
8341 CPP=/lib/cpp
8342 fi
8343 rm -f conftest*
8344 fi
8345 rm -f conftest*
8346 fi
8347 rm -f conftest*
8348 ac_cv_prog_CPP="$CPP"
8349 fi
8350 CPP="$ac_cv_prog_CPP"
8351 else
8352 ac_cv_prog_CPP="$CPP"
8353 fi
8354 echo "$ac_t""$CPP" 1>&6
8355
8356 if test $ac_cv_prog_gcc = yes; then
8357 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8358 echo "configure:8359: checking whether ${CC-cc} needs -traditional" >&5
8359 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8360 echo $ac_n "(cached) $ac_c" 1>&6
8361 else
8362 ac_pattern="Autoconf.*'x'"
8363 cat > conftest.$ac_ext <<EOF
8364 #line 8365 "configure"
8365 #include "confdefs.h"
8366 #include <sgtty.h>
8367 Autoconf TIOCGETP
8368 EOF
8369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8370 egrep "$ac_pattern" >/dev/null 2>&1; then
8371 rm -rf conftest*
8372 ac_cv_prog_gcc_traditional=yes
8373 else
8374 rm -rf conftest*
8375 ac_cv_prog_gcc_traditional=no
8376 fi
8377 rm -f conftest*
8378
8379
8380 if test $ac_cv_prog_gcc_traditional = no; then
8381 cat > conftest.$ac_ext <<EOF
8382 #line 8383 "configure"
8383 #include "confdefs.h"
8384 #include <termio.h>
8385 Autoconf TCGETA
8386 EOF
8387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8388 egrep "$ac_pattern" >/dev/null 2>&1; then
8389 rm -rf conftest*
8390 ac_cv_prog_gcc_traditional=yes
8391 fi
8392 rm -f conftest*
8393
8394 fi
8395 fi
8396
8397 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8398 if test $ac_cv_prog_gcc_traditional = yes; then
8399 CC="$CC -traditional"
8400 fi
8401 fi
8402
8403
8404
8405 ac_ext=C
8406 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8407 ac_cpp='$CXXCPP $CPPFLAGS'
8408 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8409 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8410 cross_compiling=$ac_cv_prog_cxx_cross
8411
8412
8413 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8414 do
8415 # Extract the first word of "$ac_prog", so it can be a program name with args.
8416 set dummy $ac_prog; ac_word=$2
8417 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8418 echo "configure:8419: checking for $ac_word" >&5
8419 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8420 echo $ac_n "(cached) $ac_c" 1>&6
8421 else
8422 if test -n "$CXX"; then
8423 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8424 else
8425 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8426 ac_dummy="$PATH"
8427 for ac_dir in $ac_dummy; do
8428 test -z "$ac_dir" && ac_dir=.
8429 if test -f $ac_dir/$ac_word; then
8430 ac_cv_prog_CXX="$ac_prog"
8431 break
8432 fi
8433 done
8434 IFS="$ac_save_ifs"
8435 fi
8436 fi
8437 CXX="$ac_cv_prog_CXX"
8438 if test -n "$CXX"; then
8439 echo "$ac_t""$CXX" 1>&6
8440 else
8441 echo "$ac_t""no" 1>&6
8442 fi
8443
8444 test -n "$CXX" && break
8445 done
8446 test -n "$CXX" || CXX="gcc"
8447
8448
8449 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8450 echo "configure:8451: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8451
8452 ac_ext=C
8453 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8454 ac_cpp='$CXXCPP $CPPFLAGS'
8455 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8456 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8457 cross_compiling=$ac_cv_prog_cxx_cross
8458
8459 cat > conftest.$ac_ext << EOF
8460
8461 #line 8462 "configure"
8462 #include "confdefs.h"
8463
8464 int main(){return(0);}
8465 EOF
8466 if { (eval echo configure:8467: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8467 ac_cv_prog_cxx_works=yes
8468 # If we can't run a trivial program, we are probably using a cross compiler.
8469 if (./conftest; exit) 2>/dev/null; then
8470 ac_cv_prog_cxx_cross=no
8471 else
8472 ac_cv_prog_cxx_cross=yes
8473 fi
8474 else
8475 echo "configure: failed program was:" >&5
8476 cat conftest.$ac_ext >&5
8477 ac_cv_prog_cxx_works=no
8478 fi
8479 rm -fr conftest*
8480 ac_ext=C
8481 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8482 ac_cpp='$CXXCPP $CPPFLAGS'
8483 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8484 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8485 cross_compiling=$ac_cv_prog_cxx_cross
8486
8487 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8488 if test $ac_cv_prog_cxx_works = no; then
8489 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8490 fi
8491 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8492 echo "configure:8493: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8493 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8494 cross_compiling=$ac_cv_prog_cxx_cross
8495
8496 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8497 echo "configure:8498: checking whether we are using GNU C++" >&5
8498 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8499 echo $ac_n "(cached) $ac_c" 1>&6
8500 else
8501 cat > conftest.C <<EOF
8502 #ifdef __GNUC__
8503 yes;
8504 #endif
8505 EOF
8506 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8507: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8507 ac_cv_prog_gxx=yes
8508 else
8509 ac_cv_prog_gxx=no
8510 fi
8511 fi
8512
8513 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8514
8515 if test $ac_cv_prog_gxx = yes; then
8516 GXX=yes
8517 else
8518 GXX=
8519 fi
8520
8521 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8522 ac_save_CXXFLAGS="$CXXFLAGS"
8523 CXXFLAGS=
8524 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8525 echo "configure:8526: checking whether ${CXX-g++} accepts -g" >&5
8526 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8527 echo $ac_n "(cached) $ac_c" 1>&6
8528 else
8529 echo 'void f(){}' > conftest.cc
8530 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8531 ac_cv_prog_cxx_g=yes
8532 else
8533 ac_cv_prog_cxx_g=no
8534 fi
8535 rm -f conftest*
8536
8537 fi
8538
8539 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8540 if test "$ac_test_CXXFLAGS" = set; then
8541 CXXFLAGS="$ac_save_CXXFLAGS"
8542 elif test $ac_cv_prog_cxx_g = yes; then
8543 if test "$GXX" = yes; then
8544 CXXFLAGS="-g -O2"
8545 else
8546 CXXFLAGS="-g"
8547 fi
8548 else
8549 if test "$GXX" = yes; then
8550 CXXFLAGS="-O2"
8551 else
8552 CXXFLAGS=
8553 fi
8554 fi
8555
8556
8557 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8558
8559 ac_ext=c
8560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8561 ac_cpp='$CPP $CPPFLAGS'
8562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8564 cross_compiling=$ac_cv_prog_cc_cross
8565
8566
8567 # Extract the first word of "ranlib", so it can be a program name with args.
8568 set dummy ranlib; ac_word=$2
8569 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8570 echo "configure:8571: checking for $ac_word" >&5
8571 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8572 echo $ac_n "(cached) $ac_c" 1>&6
8573 else
8574 if test -n "$RANLIB"; then
8575 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8576 else
8577 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8578 ac_dummy="$PATH"
8579 for ac_dir in $ac_dummy; do
8580 test -z "$ac_dir" && ac_dir=.
8581 if test -f $ac_dir/$ac_word; then
8582 ac_cv_prog_RANLIB="ranlib"
8583 break
8584 fi
8585 done
8586 IFS="$ac_save_ifs"
8587 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8588 fi
8589 fi
8590 RANLIB="$ac_cv_prog_RANLIB"
8591 if test -n "$RANLIB"; then
8592 echo "$ac_t""$RANLIB" 1>&6
8593 else
8594 echo "$ac_t""no" 1>&6
8595 fi
8596
8597
8598 # Extract the first word of "ar", so it can be a program name with args.
8599 set dummy ar; ac_word=$2
8600 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8601 echo "configure:8602: checking for $ac_word" >&5
8602 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8603 echo $ac_n "(cached) $ac_c" 1>&6
8604 else
8605 if test -n "$AR"; then
8606 ac_cv_prog_AR="$AR" # Let the user override the test.
8607 else
8608 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8609 ac_dummy="$PATH"
8610 for ac_dir in $ac_dummy; do
8611 test -z "$ac_dir" && ac_dir=.
8612 if test -f $ac_dir/$ac_word; then
8613 ac_cv_prog_AR="ar"
8614 break
8615 fi
8616 done
8617 IFS="$ac_save_ifs"
8618 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8619 fi
8620 fi
8621 AR="$ac_cv_prog_AR"
8622 if test -n "$AR"; then
8623 echo "$ac_t""$AR" 1>&6
8624 else
8625 echo "$ac_t""no" 1>&6
8626 fi
8627
8628
8629 # Find a good install program. We prefer a C program (faster),
8630 # so one script is as good as another. But avoid the broken or
8631 # incompatible versions:
8632 # SysV /etc/install, /usr/sbin/install
8633 # SunOS /usr/etc/install
8634 # IRIX /sbin/install
8635 # AIX /bin/install
8636 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8637 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8638 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8639 # ./install, which can be erroneously created by make from ./install.sh.
8640 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8641 echo "configure:8642: checking for a BSD compatible install" >&5
8642 if test -z "$INSTALL"; then
8643 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8644 echo $ac_n "(cached) $ac_c" 1>&6
8645 else
8646 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8647 for ac_dir in $PATH; do
8648 # Account for people who put trailing slashes in PATH elements.
8649 case "$ac_dir/" in
8650 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8651 *)
8652 # OSF1 and SCO ODT 3.0 have their own names for install.
8653 # Don't use installbsd from OSF since it installs stuff as root
8654 # by default.
8655 for ac_prog in ginstall scoinst install; do
8656 if test -f $ac_dir/$ac_prog; then
8657 if test $ac_prog = install &&
8658 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8659 # AIX install. It has an incompatible calling convention.
8660 :
8661 else
8662 ac_cv_path_install="$ac_dir/$ac_prog -c"
8663 break 2
8664 fi
8665 fi
8666 done
8667 ;;
8668 esac
8669 done
8670 IFS="$ac_save_IFS"
8671
8672 fi
8673 if test "${ac_cv_path_install+set}" = set; then
8674 INSTALL="$ac_cv_path_install"
8675 else
8676 # As a last resort, use the slow shell script. We don't cache a
8677 # path for INSTALL within a source directory, because that will
8678 # break other packages using the cache if that directory is
8679 # removed, or if the path is relative.
8680 INSTALL="$ac_install_sh"
8681 fi
8682 fi
8683 echo "$ac_t""$INSTALL" 1>&6
8684
8685 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8686 # It thinks the first close brace ends the variable substitution.
8687 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8688
8689 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8690
8691 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8692
8693 case "${host}" in
8694
8695 powerpc-*-darwin* )
8696 INSTALL_PROGRAM="cp -fp"
8697 INSTALL_DATA="cp -fp"
8698 ;;
8699 *)
8700 ;;
8701 esac
8702
8703 # Extract the first word of "strip", so it can be a program name with args.
8704 set dummy strip; ac_word=$2
8705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8706 echo "configure:8707: checking for $ac_word" >&5
8707 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8708 echo $ac_n "(cached) $ac_c" 1>&6
8709 else
8710 if test -n "$STRIP"; then
8711 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8712 else
8713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8714 ac_dummy="$PATH"
8715 for ac_dir in $ac_dummy; do
8716 test -z "$ac_dir" && ac_dir=.
8717 if test -f $ac_dir/$ac_word; then
8718 ac_cv_prog_STRIP="strip"
8719 break
8720 fi
8721 done
8722 IFS="$ac_save_ifs"
8723 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8724 fi
8725 fi
8726 STRIP="$ac_cv_prog_STRIP"
8727 if test -n "$STRIP"; then
8728 echo "$ac_t""$STRIP" 1>&6
8729 else
8730 echo "$ac_t""no" 1>&6
8731 fi
8732
8733
8734 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8735 echo "configure:8736: checking make for VPATH support" >&5
8736 cat - << EOF > confMake
8737 check : file
8738 cp \$? \$@
8739 cp \$? final_file
8740 EOF
8741
8742 if test ! -d sub ; then
8743 mkdir sub
8744 fi
8745 echo dummy > sub/file
8746 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8747 RESULT=$?
8748 rm -f sub/file check final_file confMake
8749 rmdir sub
8750 if test "$RESULT" = 0; then
8751 echo "$ac_t""yes" 1>&6
8752 else
8753 echo "$ac_t""no" 1>&6
8754 { echo "configure: error:
8755 You need a make-utility that is able to use the variable
8756 VPATH correctly.
8757 If your version of make does not support VPATH correctly,
8758 please install GNU-make (possibly as gmake), and start
8759 configure with the following command:
8760 export MAKE=gmake; ./configure for sh-type shells
8761 setenv MAKE gmake; ./configure for csh-type shells
8762 Also please do remember to use gmake in this case every time
8763 you are trying to compile.
8764 " 1>&2; exit 1; }
8765 fi
8766
8767 for ac_prog in 'bison -y' byacc
8768 do
8769 # Extract the first word of "$ac_prog", so it can be a program name with args.
8770 set dummy $ac_prog; ac_word=$2
8771 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8772 echo "configure:8773: checking for $ac_word" >&5
8773 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8774 echo $ac_n "(cached) $ac_c" 1>&6
8775 else
8776 if test -n "$YACC"; then
8777 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8778 else
8779 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8780 ac_dummy="$PATH"
8781 for ac_dir in $ac_dummy; do
8782 test -z "$ac_dir" && ac_dir=.
8783 if test -f $ac_dir/$ac_word; then
8784 ac_cv_prog_YACC="$ac_prog"
8785 break
8786 fi
8787 done
8788 IFS="$ac_save_ifs"
8789 fi
8790 fi
8791 YACC="$ac_cv_prog_YACC"
8792 if test -n "$YACC"; then
8793 echo "$ac_t""$YACC" 1>&6
8794 else
8795 echo "$ac_t""no" 1>&6
8796 fi
8797
8798 test -n "$YACC" && break
8799 done
8800 test -n "$YACC" || YACC="yacc"
8801
8802
8803 # Extract the first word of "flex", so it can be a program name with args.
8804 set dummy flex; ac_word=$2
8805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8806 echo "configure:8807: checking for $ac_word" >&5
8807 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8808 echo $ac_n "(cached) $ac_c" 1>&6
8809 else
8810 if test -n "$LEX"; then
8811 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8812 else
8813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8814 ac_dummy="$PATH"
8815 for ac_dir in $ac_dummy; do
8816 test -z "$ac_dir" && ac_dir=.
8817 if test -f $ac_dir/$ac_word; then
8818 ac_cv_prog_LEX="flex"
8819 break
8820 fi
8821 done
8822 IFS="$ac_save_ifs"
8823 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8824 fi
8825 fi
8826 LEX="$ac_cv_prog_LEX"
8827 if test -n "$LEX"; then
8828 echo "$ac_t""$LEX" 1>&6
8829 else
8830 echo "$ac_t""no" 1>&6
8831 fi
8832
8833 if test -z "$LEXLIB"
8834 then
8835 case "$LEX" in
8836 flex*) ac_lib=fl ;;
8837 *) ac_lib=l ;;
8838 esac
8839 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8840 echo "configure:8841: checking for yywrap in -l$ac_lib" >&5
8841 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8842 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8843 echo $ac_n "(cached) $ac_c" 1>&6
8844 else
8845 ac_save_LIBS="$LIBS"
8846 LIBS="-l$ac_lib $LIBS"
8847 cat > conftest.$ac_ext <<EOF
8848 #line 8849 "configure"
8849 #include "confdefs.h"
8850 /* Override any gcc2 internal prototype to avoid an error. */
8851 /* We use char because int might match the return type of a gcc2
8852 builtin and then its argument prototype would still apply. */
8853 char yywrap();
8854
8855 int main() {
8856 yywrap()
8857 ; return 0; }
8858 EOF
8859 if { (eval echo configure:8860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8860 rm -rf conftest*
8861 eval "ac_cv_lib_$ac_lib_var=yes"
8862 else
8863 echo "configure: failed program was:" >&5
8864 cat conftest.$ac_ext >&5
8865 rm -rf conftest*
8866 eval "ac_cv_lib_$ac_lib_var=no"
8867 fi
8868 rm -f conftest*
8869 LIBS="$ac_save_LIBS"
8870
8871 fi
8872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8873 echo "$ac_t""yes" 1>&6
8874 LEXLIB="-l$ac_lib"
8875 else
8876 echo "$ac_t""no" 1>&6
8877 fi
8878
8879 fi
8880
8881
8882 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8883 echo "configure:8884: checking whether ln -s works" >&5
8884 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8885 echo $ac_n "(cached) $ac_c" 1>&6
8886 else
8887 rm -f conftestdata
8888 if ln -s X conftestdata 2>/dev/null
8889 then
8890 rm -f conftestdata
8891 ac_cv_prog_LN_S="ln -s"
8892 else
8893 ac_cv_prog_LN_S=ln
8894 fi
8895 fi
8896 LN_S="$ac_cv_prog_LN_S"
8897 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8898 echo "$ac_t""yes" 1>&6
8899 else
8900 echo "$ac_t""no" 1>&6
8901 fi
8902
8903
8904
8905 SEARCH_INCLUDE="\
8906 /usr/local/include \
8907 \
8908 /usr/Motif-1.2/include \
8909 /usr/Motif-2.1/include \
8910 \
8911 /usr/include/Motif1.2 \
8912 /opt/xpm/include/X11 \
8913 /opt/GBxpm/include/ \
8914 /opt/GBxpm/X11/include/ \
8915 \
8916 /usr/Motif1.2/include \
8917 /usr/dt/include \
8918 /usr/openwin/include \
8919 \
8920 /usr/include/Xm \
8921 \
8922 /usr/X11R6/include \
8923 /usr/X11R6.4/include \
8924 /usr/X11R5/include \
8925 /usr/X11R4/include \
8926 \
8927 /usr/include/X11R6 \
8928 /usr/include/X11R5 \
8929 /usr/include/X11R4 \
8930 \
8931 /usr/local/X11R6/include \
8932 /usr/local/X11R5/include \
8933 /usr/local/X11R4/include \
8934 \
8935 /usr/local/include/X11R6 \
8936 /usr/local/include/X11R5 \
8937 /usr/local/include/X11R4 \
8938 \
8939 /usr/X11/include \
8940 /usr/include/X11 \
8941 /usr/local/X11/include \
8942 /usr/local/include/X11 \
8943 \
8944 /usr/X386/include \
8945 /usr/x386/include \
8946 /usr/XFree86/include/X11 \
8947 \
8948 X:/XFree86/include \
8949 X:/XFree86/include/X11 \
8950 \
8951 /usr/include/gtk \
8952 /usr/local/include/gtk \
8953 /usr/include/glib \
8954 /usr/local/include/glib \
8955 \
8956 /usr/include/qt \
8957 /usr/local/include/qt \
8958 \
8959 /usr/include/windows \
8960 /usr/include/wine \
8961 /usr/local/include/wine \
8962 \
8963 /usr/unsupported/include \
8964 /usr/athena/include \
8965 /usr/local/x11r5/include \
8966 /usr/lpp/Xamples/include \
8967 \
8968 /usr/openwin/share/include \
8969 \
8970 /usr/include"
8971
8972 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8973
8974
8975 cat > confcache <<\EOF
8976 # This file is a shell script that caches the results of configure
8977 # tests run on this system so they can be shared between configure
8978 # scripts and configure runs. It is not useful on other systems.
8979 # If it contains results you don't want to keep, you may remove or edit it.
8980 #
8981 # By default, configure uses ./config.cache as the cache file,
8982 # creating it if it does not exist already. You can give configure
8983 # the --cache-file=FILE option to use a different cache file; that is
8984 # what configure does when it calls configure scripts in
8985 # subdirectories, so they share the cache.
8986 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8987 # config.status only pays attention to the cache file if you give it the
8988 # --recheck option to rerun configure.
8989 #
8990 EOF
8991 # The following way of writing the cache mishandles newlines in values,
8992 # but we know of no workaround that is simple, portable, and efficient.
8993 # So, don't put newlines in cache variables' values.
8994 # Ultrix sh set writes to stderr and can't be redirected directly,
8995 # and sets the high bit in the cache file unless we assign to the vars.
8996 (set) 2>&1 |
8997 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8998 *ac_space=\ *)
8999 # `set' does not quote correctly, so add quotes (double-quote substitution
9000 # turns \\\\ into \\, and sed turns \\ into \).
9001 sed -n \
9002 -e "s/'/'\\\\''/g" \
9003 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9004 ;;
9005 *)
9006 # `set' quotes correctly as required by POSIX, so do not add quotes.
9007 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9008 ;;
9009 esac >> confcache
9010 if cmp -s $cache_file confcache; then
9011 :
9012 else
9013 if test -w $cache_file; then
9014 echo "updating cache $cache_file"
9015 cat confcache > $cache_file
9016 else
9017 echo "not updating unwritable cache $cache_file"
9018 fi
9019 fi
9020 rm -f confcache
9021
9022
9023
9024
9025 REGEX_INCLUDE=
9026 if test "$wxUSE_REGEX" != "no"; then
9027 cat >> confdefs.h <<\EOF
9028 #define wxUSE_REGEX 1
9029 EOF
9030
9031
9032 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9033 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
9034 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
9035 echo "configure:9036: checking for regex.h" >&5
9036 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9037 echo $ac_n "(cached) $ac_c" 1>&6
9038 else
9039 cat > conftest.$ac_ext <<EOF
9040 #line 9041 "configure"
9041 #include "confdefs.h"
9042 #include <regex.h>
9043 EOF
9044 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9045 { (eval echo configure:9046: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9046 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9047 if test -z "$ac_err"; then
9048 rm -rf conftest*
9049 eval "ac_cv_header_$ac_safe=yes"
9050 else
9051 echo "$ac_err" >&5
9052 echo "configure: failed program was:" >&5
9053 cat conftest.$ac_ext >&5
9054 rm -rf conftest*
9055 eval "ac_cv_header_$ac_safe=no"
9056 fi
9057 rm -f conftest*
9058 fi
9059 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9060 echo "$ac_t""yes" 1>&6
9061 for ac_func in regcomp
9062 do
9063 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9064 echo "configure:9065: checking for $ac_func" >&5
9065 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9066 echo $ac_n "(cached) $ac_c" 1>&6
9067 else
9068 cat > conftest.$ac_ext <<EOF
9069 #line 9070 "configure"
9070 #include "confdefs.h"
9071 /* System header to define __stub macros and hopefully few prototypes,
9072 which can conflict with char $ac_func(); below. */
9073 #include <assert.h>
9074 /* Override any gcc2 internal prototype to avoid an error. */
9075 /* We use char because int might match the return type of a gcc2
9076 builtin and then its argument prototype would still apply. */
9077 char $ac_func();
9078
9079 int main() {
9080
9081 /* The GNU C library defines this for functions which it implements
9082 to always fail with ENOSYS. Some functions are actually named
9083 something starting with __ and the normal name is an alias. */
9084 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9085 choke me
9086 #else
9087 $ac_func();
9088 #endif
9089
9090 ; return 0; }
9091 EOF
9092 if { (eval echo configure:9093: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9093 rm -rf conftest*
9094 eval "ac_cv_func_$ac_func=yes"
9095 else
9096 echo "configure: failed program was:" >&5
9097 cat conftest.$ac_ext >&5
9098 rm -rf conftest*
9099 eval "ac_cv_func_$ac_func=no"
9100 fi
9101 rm -f conftest*
9102 fi
9103
9104 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9105 echo "$ac_t""yes" 1>&6
9106 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9107 cat >> confdefs.h <<EOF
9108 #define $ac_tr_func 1
9109 EOF
9110
9111 else
9112 echo "$ac_t""no" 1>&6
9113 fi
9114 done
9115
9116 else
9117 echo "$ac_t""no" 1>&6
9118 fi
9119
9120
9121 if test "x$ac_cv_func_regcomp" != "xyes"; then
9122 if test "$wxUSE_REGEX" = "sys" ; then
9123 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9124 else
9125 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9126 wxUSE_REGEX=builtin
9127 fi
9128 else
9129 wxUSE_REGEX=sys
9130 fi
9131 fi
9132
9133 if test "$wxUSE_REGEX" = "builtin" ; then
9134 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9135 fi
9136 fi
9137
9138
9139 ZLIB_INCLUDE=
9140 ZLIB_LINK=
9141 if test "$wxUSE_ZLIB" != "no" ; then
9142 cat >> confdefs.h <<\EOF
9143 #define wxUSE_ZLIB 1
9144 EOF
9145
9146
9147 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9148 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9149 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9150 echo "configure:9151: checking for zlib.h" >&5
9151 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9152 echo $ac_n "(cached) $ac_c" 1>&6
9153 else
9154 cat > conftest.$ac_ext <<EOF
9155 #line 9156 "configure"
9156 #include "confdefs.h"
9157 #include <zlib.h>
9158 EOF
9159 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9160 { (eval echo configure:9161: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9161 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9162 if test -z "$ac_err"; then
9163 rm -rf conftest*
9164 eval "ac_cv_header_$ac_safe=yes"
9165 else
9166 echo "$ac_err" >&5
9167 echo "configure: failed program was:" >&5
9168 cat conftest.$ac_ext >&5
9169 rm -rf conftest*
9170 eval "ac_cv_header_$ac_safe=no"
9171 fi
9172 rm -f conftest*
9173 fi
9174 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9175 echo "$ac_t""yes" 1>&6
9176 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9177 echo "configure:9178: checking for deflate in -lz" >&5
9178 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9179 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9180 echo $ac_n "(cached) $ac_c" 1>&6
9181 else
9182 ac_save_LIBS="$LIBS"
9183 LIBS="-lz $LIBS"
9184 cat > conftest.$ac_ext <<EOF
9185 #line 9186 "configure"
9186 #include "confdefs.h"
9187 /* Override any gcc2 internal prototype to avoid an error. */
9188 /* We use char because int might match the return type of a gcc2
9189 builtin and then its argument prototype would still apply. */
9190 char deflate();
9191
9192 int main() {
9193 deflate()
9194 ; return 0; }
9195 EOF
9196 if { (eval echo configure:9197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9197 rm -rf conftest*
9198 eval "ac_cv_lib_$ac_lib_var=yes"
9199 else
9200 echo "configure: failed program was:" >&5
9201 cat conftest.$ac_ext >&5
9202 rm -rf conftest*
9203 eval "ac_cv_lib_$ac_lib_var=no"
9204 fi
9205 rm -f conftest*
9206 LIBS="$ac_save_LIBS"
9207
9208 fi
9209 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9210 echo "$ac_t""yes" 1>&6
9211 ZLIB_LINK=" -lz"
9212 else
9213 echo "$ac_t""no" 1>&6
9214 fi
9215
9216 else
9217 echo "$ac_t""no" 1>&6
9218 fi
9219
9220
9221 if test "x$ZLIB_LINK" = "x" ; then
9222 if test "$wxUSE_ZLIB" = "sys" ; then
9223 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9224 else
9225 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9226 wxUSE_ZLIB=builtin
9227 fi
9228 else
9229 wxUSE_ZLIB=sys
9230 fi
9231 fi
9232
9233 if test "$wxUSE_ZLIB" = "builtin" ; then
9234 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9235 fi
9236 fi
9237
9238
9239 PNG_INCLUDE=
9240 PNG_LINK=
9241 if test "$wxUSE_LIBPNG" != "no" ; then
9242 cat >> confdefs.h <<\EOF
9243 #define wxUSE_LIBPNG 1
9244 EOF
9245
9246
9247 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9248 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9249 wxUSE_LIBPNG=builtin
9250 fi
9251
9252 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9253 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9254 echo $ac_n "checking for png.h""... $ac_c" 1>&6
9255 echo "configure:9256: checking for png.h" >&5
9256 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9257 echo $ac_n "(cached) $ac_c" 1>&6
9258 else
9259 cat > conftest.$ac_ext <<EOF
9260 #line 9261 "configure"
9261 #include "confdefs.h"
9262 #include <png.h>
9263 EOF
9264 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9265 { (eval echo configure:9266: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9266 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9267 if test -z "$ac_err"; then
9268 rm -rf conftest*
9269 eval "ac_cv_header_$ac_safe=yes"
9270 else
9271 echo "$ac_err" >&5
9272 echo "configure: failed program was:" >&5
9273 cat conftest.$ac_ext >&5
9274 rm -rf conftest*
9275 eval "ac_cv_header_$ac_safe=no"
9276 fi
9277 rm -f conftest*
9278 fi
9279 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9280 echo "$ac_t""yes" 1>&6
9281 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9282 echo "configure:9283: checking for png_check_sig in -lpng" >&5
9283 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9284 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9285 echo $ac_n "(cached) $ac_c" 1>&6
9286 else
9287 ac_save_LIBS="$LIBS"
9288 LIBS="-lpng -lz -lm $LIBS"
9289 cat > conftest.$ac_ext <<EOF
9290 #line 9291 "configure"
9291 #include "confdefs.h"
9292 /* Override any gcc2 internal prototype to avoid an error. */
9293 /* We use char because int might match the return type of a gcc2
9294 builtin and then its argument prototype would still apply. */
9295 char png_check_sig();
9296
9297 int main() {
9298 png_check_sig()
9299 ; return 0; }
9300 EOF
9301 if { (eval echo configure:9302: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9302 rm -rf conftest*
9303 eval "ac_cv_lib_$ac_lib_var=yes"
9304 else
9305 echo "configure: failed program was:" >&5
9306 cat conftest.$ac_ext >&5
9307 rm -rf conftest*
9308 eval "ac_cv_lib_$ac_lib_var=no"
9309 fi
9310 rm -f conftest*
9311 LIBS="$ac_save_LIBS"
9312
9313 fi
9314 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9315 echo "$ac_t""yes" 1>&6
9316 PNG_LINK=" -lpng"
9317 else
9318 echo "$ac_t""no" 1>&6
9319 fi
9320
9321
9322 else
9323 echo "$ac_t""no" 1>&6
9324 fi
9325
9326
9327 if test "x$PNG_LINK" = "x" ; then
9328 if test "$wxUSE_LIBPNG" = "sys" ; then
9329 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9330 else
9331 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9332 wxUSE_LIBPNG=builtin
9333 fi
9334 else
9335 wxUSE_LIBPNG=yes
9336 fi
9337 fi
9338
9339 if test "$wxUSE_LIBPNG" = "builtin" ; then
9340 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9341 fi
9342
9343 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9344 fi
9345
9346
9347 JPEG_INCLUDE=
9348 JPEG_LINK=
9349 if test "$wxUSE_LIBJPEG" != "no" ; then
9350 cat >> confdefs.h <<\EOF
9351 #define wxUSE_LIBJPEG 1
9352 EOF
9353
9354
9355 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9356 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9357 echo "configure:9358: checking for jpeglib.h" >&5
9358 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
9359 echo $ac_n "(cached) $ac_c" 1>&6
9360 else
9361 cat > conftest.$ac_ext <<EOF
9362 #line 9363 "configure"
9363 #include "confdefs.h"
9364
9365 #undef HAVE_STDLIB_H
9366 #include <stdio.h>
9367 #include <jpeglib.h>
9368
9369 int main() {
9370
9371
9372 ; return 0; }
9373 EOF
9374 if { (eval echo configure:9375: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9375 rm -rf conftest*
9376 ac_cv_header_jpeglib_h=yes
9377 else
9378 echo "configure: failed program was:" >&5
9379 cat conftest.$ac_ext >&5
9380 rm -rf conftest*
9381 ac_cv_header_jpeglib_h=no
9382
9383 fi
9384 rm -f conftest*
9385
9386 fi
9387
9388 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9389
9390 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9391 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
9392 echo "configure:9393: checking for jpeg_read_header in -ljpeg" >&5
9393 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9395 echo $ac_n "(cached) $ac_c" 1>&6
9396 else
9397 ac_save_LIBS="$LIBS"
9398 LIBS="-ljpeg $LIBS"
9399 cat > conftest.$ac_ext <<EOF
9400 #line 9401 "configure"
9401 #include "confdefs.h"
9402 /* Override any gcc2 internal prototype to avoid an error. */
9403 /* We use char because int might match the return type of a gcc2
9404 builtin and then its argument prototype would still apply. */
9405 char jpeg_read_header();
9406
9407 int main() {
9408 jpeg_read_header()
9409 ; return 0; }
9410 EOF
9411 if { (eval echo configure:9412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9412 rm -rf conftest*
9413 eval "ac_cv_lib_$ac_lib_var=yes"
9414 else
9415 echo "configure: failed program was:" >&5
9416 cat conftest.$ac_ext >&5
9417 rm -rf conftest*
9418 eval "ac_cv_lib_$ac_lib_var=no"
9419 fi
9420 rm -f conftest*
9421 LIBS="$ac_save_LIBS"
9422
9423 fi
9424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9425 echo "$ac_t""yes" 1>&6
9426 JPEG_LINK=" -ljpeg"
9427 else
9428 echo "$ac_t""no" 1>&6
9429 fi
9430
9431 fi
9432
9433 if test "x$JPEG_LINK" = "x" ; then
9434 if test "$wxUSE_LIBJPEG" = "sys" ; then
9435 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9436 else
9437 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
9438 wxUSE_LIBJPEG=builtin
9439 fi
9440 else
9441 wxUSE_LIBJPEG=sys
9442 fi
9443 fi
9444
9445 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9446 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9447 fi
9448 fi
9449
9450
9451 TIFF_INCLUDE=
9452 TIFF_LINK=
9453 if test "$wxUSE_LIBTIFF" != "no" ; then
9454 cat >> confdefs.h <<\EOF
9455 #define wxUSE_LIBTIFF 1
9456 EOF
9457
9458
9459 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9460 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9461 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
9462 echo "configure:9463: checking for tiffio.h" >&5
9463 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9464 echo $ac_n "(cached) $ac_c" 1>&6
9465 else
9466 cat > conftest.$ac_ext <<EOF
9467 #line 9468 "configure"
9468 #include "confdefs.h"
9469 #include <tiffio.h>
9470 EOF
9471 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9472 { (eval echo configure:9473: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9473 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9474 if test -z "$ac_err"; then
9475 rm -rf conftest*
9476 eval "ac_cv_header_$ac_safe=yes"
9477 else
9478 echo "$ac_err" >&5
9479 echo "configure: failed program was:" >&5
9480 cat conftest.$ac_ext >&5
9481 rm -rf conftest*
9482 eval "ac_cv_header_$ac_safe=no"
9483 fi
9484 rm -f conftest*
9485 fi
9486 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9487 echo "$ac_t""yes" 1>&6
9488 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
9489 echo "configure:9490: checking for TIFFError in -ltiff" >&5
9490 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9492 echo $ac_n "(cached) $ac_c" 1>&6
9493 else
9494 ac_save_LIBS="$LIBS"
9495 LIBS="-ltiff -lm $LIBS"
9496 cat > conftest.$ac_ext <<EOF
9497 #line 9498 "configure"
9498 #include "confdefs.h"
9499 /* Override any gcc2 internal prototype to avoid an error. */
9500 /* We use char because int might match the return type of a gcc2
9501 builtin and then its argument prototype would still apply. */
9502 char TIFFError();
9503
9504 int main() {
9505 TIFFError()
9506 ; return 0; }
9507 EOF
9508 if { (eval echo configure:9509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9509 rm -rf conftest*
9510 eval "ac_cv_lib_$ac_lib_var=yes"
9511 else
9512 echo "configure: failed program was:" >&5
9513 cat conftest.$ac_ext >&5
9514 rm -rf conftest*
9515 eval "ac_cv_lib_$ac_lib_var=no"
9516 fi
9517 rm -f conftest*
9518 LIBS="$ac_save_LIBS"
9519
9520 fi
9521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9522 echo "$ac_t""yes" 1>&6
9523 TIFF_LINK=" -ltiff"
9524 else
9525 echo "$ac_t""no" 1>&6
9526 fi
9527
9528
9529 else
9530 echo "$ac_t""no" 1>&6
9531 fi
9532
9533
9534 if test "x$TIFF_LINK" = "x" ; then
9535 if test "$wxUSE_LIBTIFF" = "sys" ; then
9536 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
9537 else
9538 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
9539 wxUSE_LIBTIFF=builtin
9540 fi
9541 else
9542 wxUSE_LIBTIFF=sys
9543 fi
9544 fi
9545
9546 if test "$wxUSE_LIBTIFF" = "builtin" ; then
9547 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
9548 fi
9549 fi
9550
9551
9552 FREETYPE_INCLUDE=
9553 FREETYPE_LINK=
9554 if test "$wxUSE_FREETYPE" != "no" ; then
9555 cat >> confdefs.h <<\EOF
9556 #define wxUSE_FREETYPE 1
9557 EOF
9558
9559
9560 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
9561 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
9562 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
9563 echo "configure:9564: checking for freetype.h" >&5
9564 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9565 echo $ac_n "(cached) $ac_c" 1>&6
9566 else
9567 cat > conftest.$ac_ext <<EOF
9568 #line 9569 "configure"
9569 #include "confdefs.h"
9570 #include <freetype.h>
9571 EOF
9572 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9573 { (eval echo configure:9574: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9574 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9575 if test -z "$ac_err"; then
9576 rm -rf conftest*
9577 eval "ac_cv_header_$ac_safe=yes"
9578 else
9579 echo "$ac_err" >&5
9580 echo "configure: failed program was:" >&5
9581 cat conftest.$ac_ext >&5
9582 rm -rf conftest*
9583 eval "ac_cv_header_$ac_safe=no"
9584 fi
9585 rm -f conftest*
9586 fi
9587 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9588 echo "$ac_t""yes" 1>&6
9589 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
9590 echo "configure:9591: checking for FT_Render_Glyph in -lfreetype" >&5
9591 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
9592 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9593 echo $ac_n "(cached) $ac_c" 1>&6
9594 else
9595 ac_save_LIBS="$LIBS"
9596 LIBS="-lfreetype -lm $LIBS"
9597 cat > conftest.$ac_ext <<EOF
9598 #line 9599 "configure"
9599 #include "confdefs.h"
9600 /* Override any gcc2 internal prototype to avoid an error. */
9601 /* We use char because int might match the return type of a gcc2
9602 builtin and then its argument prototype would still apply. */
9603 char FT_Render_Glyph();
9604
9605 int main() {
9606 FT_Render_Glyph()
9607 ; return 0; }
9608 EOF
9609 if { (eval echo configure:9610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9610 rm -rf conftest*
9611 eval "ac_cv_lib_$ac_lib_var=yes"
9612 else
9613 echo "configure: failed program was:" >&5
9614 cat conftest.$ac_ext >&5
9615 rm -rf conftest*
9616 eval "ac_cv_lib_$ac_lib_var=no"
9617 fi
9618 rm -f conftest*
9619 LIBS="$ac_save_LIBS"
9620
9621 fi
9622 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9623 echo "$ac_t""yes" 1>&6
9624 FREETYPE_LINK=" -lfreetype"
9625 else
9626 echo "$ac_t""no" 1>&6
9627 fi
9628
9629
9630 else
9631 echo "$ac_t""no" 1>&6
9632 fi
9633
9634
9635 if test "x$FREETYPE_LINK" = "x" ; then
9636 if test "$wxUSE_FREETYPE" = "sys" ; then
9637 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
9638 else
9639 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
9640 wxUSE_FREETYPE=builtin
9641 fi
9642 else
9643 wxUSE_FREETYPE=sys
9644 fi
9645 fi
9646
9647 if test "$wxUSE_FREETYPE" = "builtin" ; then
9648 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
9649 fi
9650 fi
9651
9652
9653 AFMINSTALL=
9654
9655 TOOLKIT=
9656 TOOLKIT_INCLUDE=
9657 WIDGET_SET=
9658
9659 if test "$USE_WIN32" = 1 ; then
9660 for ac_hdr in w32api.h
9661 do
9662 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9663 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9664 echo "configure:9665: checking for $ac_hdr" >&5
9665 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9666 echo $ac_n "(cached) $ac_c" 1>&6
9667 else
9668 cat > conftest.$ac_ext <<EOF
9669 #line 9670 "configure"
9670 #include "confdefs.h"
9671 #include <$ac_hdr>
9672 EOF
9673 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9674 { (eval echo configure:9675: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9675 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9676 if test -z "$ac_err"; then
9677 rm -rf conftest*
9678 eval "ac_cv_header_$ac_safe=yes"
9679 else
9680 echo "$ac_err" >&5
9681 echo "configure: failed program was:" >&5
9682 cat conftest.$ac_ext >&5
9683 rm -rf conftest*
9684 eval "ac_cv_header_$ac_safe=no"
9685 fi
9686 rm -f conftest*
9687 fi
9688 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9689 echo "$ac_t""yes" 1>&6
9690 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9691 cat >> confdefs.h <<EOF
9692 #define $ac_tr_hdr 1
9693 EOF
9694
9695 else
9696 echo "$ac_t""no" 1>&6
9697 fi
9698 done
9699
9700 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9701 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
9702 echo "configure:9703: checking for windows.h" >&5
9703 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9704 echo $ac_n "(cached) $ac_c" 1>&6
9705 else
9706 cat > conftest.$ac_ext <<EOF
9707 #line 9708 "configure"
9708 #include "confdefs.h"
9709 #include <windows.h>
9710 EOF
9711 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9712 { (eval echo configure:9713: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9713 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9714 if test -z "$ac_err"; then
9715 rm -rf conftest*
9716 eval "ac_cv_header_$ac_safe=yes"
9717 else
9718 echo "$ac_err" >&5
9719 echo "configure: failed program was:" >&5
9720 cat conftest.$ac_ext >&5
9721 rm -rf conftest*
9722 eval "ac_cv_header_$ac_safe=no"
9723 fi
9724 rm -f conftest*
9725 fi
9726 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9727 echo "$ac_t""yes" 1>&6
9728 :
9729 else
9730 echo "$ac_t""no" 1>&6
9731
9732 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9733
9734 fi
9735
9736
9737 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
9738 echo "configure:9739: checking if w32api has good enough MSIE support" >&5
9739 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
9740 echo $ac_n "(cached) $ac_c" 1>&6
9741 else
9742
9743 cat > conftest.$ac_ext <<EOF
9744 #line 9745 "configure"
9745 #include "confdefs.h"
9746 #include <w32api.h>
9747 int main() {
9748
9749 #define wxCHECK_W32API_VERSION( major, minor ) \
9750 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9751 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9752 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9753
9754 #if !wxCHECK_W32API_VERSION(1,1)
9755 #error You need w32api 1.1 or newer
9756 #endif
9757
9758 ; return 0; }
9759 EOF
9760 if { (eval echo configure:9761: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9761 rm -rf conftest*
9762
9763 wx_cv_w32api_win32_ie=yes
9764
9765 else
9766 echo "configure: failed program was:" >&5
9767 cat conftest.$ac_ext >&5
9768 rm -rf conftest*
9769
9770 wx_cv_w32api_win32_ie=no
9771
9772 fi
9773 rm -f conftest*
9774
9775 fi
9776
9777 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
9778 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
9779 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
9780 fi
9781
9782 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9783
9784 case "${host}" in
9785 *-*-cygwin* )
9786 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9787 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
9788 esac
9789
9790 if test "$wxUSE_ODBC" = "yes" ; then
9791 LIBS=" -lodbc32 -lole32 -loleaut32$LIBS"
9792 fi
9793
9794 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9795 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9796 fi
9797
9798 if test "$wxUSE_GUI" = "yes"; then
9799 USE_GUI=1
9800
9801 GUI_TK_LIBRARY=
9802
9803 WXGTK12=
9804 WXGTK127=
9805 WXGTK20=
9806
9807 if test "$wxUSE_MSW" = 1 ; then
9808 TOOLKIT=MSW
9809 GUIDIST=MSW_DIST
9810
9811 case "${host}" in
9812 *-*-mingw32* )
9813 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
9814 esac
9815 fi
9816
9817 if test "$wxUSE_GTK" = 1; then
9818 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9819 echo "configure:9820: checking for GTK+ version" >&5
9820
9821 gtk_version_cached=1
9822 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9823 echo $ac_n "(cached) $ac_c" 1>&6
9824 else
9825
9826 gtk_version_cached=0
9827 echo "$ac_t""" 1>&6
9828
9829 wx_cv_lib_gtk=
9830 if test "x$wxUSE_GTK2" = "xyes"; then
9831 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9832 if test "${with_gtk_prefix+set}" = set; then
9833 withval="$with_gtk_prefix"
9834 gtk_config_prefix="$withval"
9835 else
9836 gtk_config_prefix=""
9837 fi
9838
9839 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9840 if test "${with_gtk_exec_prefix+set}" = set; then
9841 withval="$with_gtk_exec_prefix"
9842 gtk_config_exec_prefix="$withval"
9843 else
9844 gtk_config_exec_prefix=""
9845 fi
9846
9847 # Check whether --enable-gtktest or --disable-gtktest was given.
9848 if test "${enable_gtktest+set}" = set; then
9849 enableval="$enable_gtktest"
9850 :
9851 else
9852 enable_gtktest=yes
9853 fi
9854
9855
9856 for module in .
9857 do
9858 case "$module" in
9859 gthread)
9860 gtk_config_args="$gtk_config_args gthread"
9861 ;;
9862 esac
9863 done
9864
9865 if test x$gtk_config_exec_prefix != x ; then
9866 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9867 if test x${GTK_CONFIG_2_0+set} != xset ; then
9868 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9869 fi
9870 fi
9871 if test x$gtk_config_prefix != x ; then
9872 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9873 if test x${GTK_CONFIG_2_0+set} != xset ; then
9874 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9875 fi
9876 fi
9877
9878 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9879 set dummy gtk-config-2.0; ac_word=$2
9880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9881 echo "configure:9882: checking for $ac_word" >&5
9882 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9883 echo $ac_n "(cached) $ac_c" 1>&6
9884 else
9885 case "$GTK_CONFIG_2_0" in
9886 /*)
9887 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9888 ;;
9889 ?:/*)
9890 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9891 ;;
9892 *)
9893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9894 ac_dummy="$PATH"
9895 for ac_dir in $ac_dummy; do
9896 test -z "$ac_dir" && ac_dir=.
9897 if test -f $ac_dir/$ac_word; then
9898 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9899 break
9900 fi
9901 done
9902 IFS="$ac_save_ifs"
9903 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9904 ;;
9905 esac
9906 fi
9907 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
9908 if test -n "$GTK_CONFIG_2_0"; then
9909 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
9910 else
9911 echo "$ac_t""no" 1>&6
9912 fi
9913
9914 min_gtk_version=1.3.1
9915 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9916 echo "configure:9917: checking for GTK - version >= $min_gtk_version" >&5
9917 no_gtk=""
9918 if test "$GTK_CONFIG_2_0" = "no" ; then
9919 no_gtk=yes
9920 else
9921 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9922 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9923 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9924 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9925 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9926 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9927 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9928 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9929 if test "x$enable_gtktest" = "xyes" ; then
9930 ac_save_CFLAGS="$CFLAGS"
9931 ac_save_LIBS="$LIBS"
9932 CFLAGS="$CFLAGS $GTK_CFLAGS"
9933 LIBS="$GTK_LIBS $LIBS"
9934 rm -f conf.gtktest
9935 if test "$cross_compiling" = yes; then
9936 echo $ac_n "cross compiling; assumed OK... $ac_c"
9937 else
9938 cat > conftest.$ac_ext <<EOF
9939 #line 9940 "configure"
9940 #include "confdefs.h"
9941
9942 #include <gtk/gtk.h>
9943 #include <stdio.h>
9944 #include <stdlib.h>
9945
9946 int
9947 main ()
9948 {
9949 int major, minor, micro;
9950 char *tmp_version;
9951
9952 system ("touch conf.gtktest");
9953
9954 /* HP/UX 9 (%@#!) writes to sscanf strings */
9955 tmp_version = g_strdup("$min_gtk_version");
9956 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9957 printf("%s, bad version string\n", "$min_gtk_version");
9958 exit(1);
9959 }
9960
9961 if ((gtk_major_version != $gtk_config_major_version) ||
9962 (gtk_minor_version != $gtk_config_minor_version) ||
9963 (gtk_micro_version != $gtk_config_micro_version))
9964 {
9965 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
9966 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9967 gtk_major_version, gtk_minor_version, gtk_micro_version);
9968 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9969 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9970 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9971 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9972 printf("*** required on your system.\n");
9973 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9974 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9975 printf("*** before re-running configure\n");
9976 }
9977 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9978 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9979 (gtk_minor_version != GTK_MINOR_VERSION) ||
9980 (gtk_micro_version != GTK_MICRO_VERSION))
9981 {
9982 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9983 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9984 printf("*** library (version %d.%d.%d)\n",
9985 gtk_major_version, gtk_minor_version, gtk_micro_version);
9986 }
9987 #endif /* defined (GTK_MAJOR_VERSION) ... */
9988 else
9989 {
9990 if ((gtk_major_version > major) ||
9991 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9992 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9993 {
9994 return 0;
9995 }
9996 else
9997 {
9998 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9999 gtk_major_version, gtk_minor_version, gtk_micro_version);
10000 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10001 major, minor, micro);
10002 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10003 printf("***\n");
10004 printf("*** If you have already installed a sufficiently new version, this error\n");
10005 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10006 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10007 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10008 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10009 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10010 printf("*** so that the correct libraries are found at run-time))\n");
10011 }
10012 }
10013 return 1;
10014 }
10015
10016 EOF
10017 if { (eval echo configure:10018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10018 then
10019 :
10020 else
10021 echo "configure: failed program was:" >&5
10022 cat conftest.$ac_ext >&5
10023 rm -fr conftest*
10024 no_gtk=yes
10025 fi
10026 rm -fr conftest*
10027 fi
10028
10029 CFLAGS="$ac_save_CFLAGS"
10030 LIBS="$ac_save_LIBS"
10031 fi
10032 fi
10033 if test "x$no_gtk" = x ; then
10034 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
10035 wx_cv_lib_gtk=2.0
10036 else
10037 echo "$ac_t""no" 1>&6
10038 if test "$GTK_CONFIG_2_0" = "no" ; then
10039 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10040 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10041 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10042 echo "*** full path to gtk-config-2.0."
10043 else
10044 if test -f conf.gtktest ; then
10045 :
10046 else
10047 echo "*** Could not run GTK test program, checking why..."
10048 CFLAGS="$CFLAGS $GTK_CFLAGS"
10049 LIBS="$LIBS $GTK_LIBS"
10050 cat > conftest.$ac_ext <<EOF
10051 #line 10052 "configure"
10052 #include "confdefs.h"
10053
10054 #include <gtk/gtk.h>
10055 #include <stdio.h>
10056
10057 int main() {
10058 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10059 ; return 0; }
10060 EOF
10061 if { (eval echo configure:10062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10062 rm -rf conftest*
10063 echo "*** The test program compiled, but did not run. This usually means"
10064 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10065 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10066 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10067 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10068 echo "*** is required on your system"
10069 echo "***"
10070 echo "*** If you have an old version installed, it is best to remove it, although"
10071 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10072 echo "***"
10073 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10074 echo "*** came with the system with the command"
10075 echo "***"
10076 echo "*** rpm --erase --nodeps gtk gtk-devel"
10077 else
10078 echo "configure: failed program was:" >&5
10079 cat conftest.$ac_ext >&5
10080 rm -rf conftest*
10081 echo "*** The test program failed to compile or link. See the file config.log for the"
10082 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10083 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10084 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
10085 fi
10086 rm -f conftest*
10087 CFLAGS="$ac_save_CFLAGS"
10088 LIBS="$ac_save_LIBS"
10089 fi
10090 fi
10091 GTK_CFLAGS=""
10092 GTK_LIBS=""
10093 gthread
10094 fi
10095
10096
10097 rm -f conf.gtktest
10098
10099 fi
10100
10101 if test -z "$wx_cv_lib_gtk"; then
10102
10103 if test x$gtk_config_exec_prefix != x ; then
10104 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10105 if test x${GTK_CONFIG+set} != xset ; then
10106 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10107 fi
10108 fi
10109 if test x$gtk_config_prefix != x ; then
10110 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10111 if test x${GTK_CONFIG+set} != xset ; then
10112 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10113 fi
10114 fi
10115
10116 # Extract the first word of "gtk-config", so it can be a program name with args.
10117 set dummy gtk-config; ac_word=$2
10118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10119 echo "configure:10120: checking for $ac_word" >&5
10120 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10121 echo $ac_n "(cached) $ac_c" 1>&6
10122 else
10123 case "$GTK_CONFIG" in
10124 /*)
10125 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10126 ;;
10127 ?:/*)
10128 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10129 ;;
10130 *)
10131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10132 ac_dummy="$PATH"
10133 for ac_dir in $ac_dummy; do
10134 test -z "$ac_dir" && ac_dir=.
10135 if test -f $ac_dir/$ac_word; then
10136 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10137 break
10138 fi
10139 done
10140 IFS="$ac_save_ifs"
10141 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10142 ;;
10143 esac
10144 fi
10145 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10146 if test -n "$GTK_CONFIG"; then
10147 echo "$ac_t""$GTK_CONFIG" 1>&6
10148 else
10149 echo "$ac_t""no" 1>&6
10150 fi
10151
10152 min_gtk_version=1.2.7
10153 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10154 echo "configure:10155: checking for GTK - version >= $min_gtk_version" >&5
10155 no_gtk=""
10156 if test "$GTK_CONFIG" != "no" ; then
10157 GTK_CFLAGS=`$GTK_CONFIG --cflags`
10158 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10159 ac_save_CFLAGS="$CFLAGS"
10160 ac_save_LIBS="$LIBS"
10161 CFLAGS="$CFLAGS $GTK_CFLAGS"
10162 LIBS="$LIBS $GTK_LIBS"
10163 if test "$cross_compiling" = yes; then
10164 echo $ac_n "cross compiling; assumed OK... $ac_c"
10165 else
10166 cat > conftest.$ac_ext <<EOF
10167 #line 10168 "configure"
10168 #include "confdefs.h"
10169
10170 #include <gtk/gtk.h>
10171 #include <gtk/gtkfeatures.h>
10172 #include <stdio.h>
10173 #include <stdlib.h>
10174
10175 int
10176 main ()
10177 {
10178 int major, minor, micro;
10179
10180 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10181 printf("%s, bad version string\n", "$min_gtk_version");
10182 exit(1);
10183 }
10184
10185 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10186 (GTK_MINOR_VERSION != gtk_minor_version) ||
10187 (GTK_MICRO_VERSION != gtk_micro_version)) {
10188 printf("Headers vs. library version mismatch!\n");
10189 exit(1);
10190 }
10191
10192 if (gtk_minor_version == 1) return FALSE;
10193
10194 return !((gtk_major_version > major) ||
10195 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10196 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10197 }
10198
10199 EOF
10200 if { (eval echo configure:10201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10201 then
10202 :
10203 else
10204 echo "configure: failed program was:" >&5
10205 cat conftest.$ac_ext >&5
10206 rm -fr conftest*
10207 no_gtk=yes
10208 fi
10209 rm -fr conftest*
10210 fi
10211
10212 CFLAGS="$ac_save_CFLAGS"
10213 LIBS="$ac_save_LIBS"
10214 else
10215 no_gtk=yes
10216 fi
10217 if test "x$no_gtk" = x ; then
10218 echo "$ac_t""yes" 1>&6
10219 wx_cv_lib_gtk=1.2.7
10220 else
10221 echo "$ac_t""no" 1>&6
10222 GTK_CFLAGS=""
10223 GTK_LIBS=""
10224 :
10225 fi
10226
10227
10228
10229 fi
10230
10231 if test -z "$wx_cv_lib_gtk"; then
10232
10233 if test x$gtk_config_exec_prefix != x ; then
10234 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10235 if test x${GTK_CONFIG+set} != xset ; then
10236 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10237 fi
10238 fi
10239 if test x$gtk_config_prefix != x ; then
10240 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10241 if test x${GTK_CONFIG+set} != xset ; then
10242 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10243 fi
10244 fi
10245
10246 # Extract the first word of "gtk-config", so it can be a program name with args.
10247 set dummy gtk-config; ac_word=$2
10248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10249 echo "configure:10250: checking for $ac_word" >&5
10250 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10251 echo $ac_n "(cached) $ac_c" 1>&6
10252 else
10253 case "$GTK_CONFIG" in
10254 /*)
10255 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10256 ;;
10257 ?:/*)
10258 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10259 ;;
10260 *)
10261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10262 ac_dummy="$PATH"
10263 for ac_dir in $ac_dummy; do
10264 test -z "$ac_dir" && ac_dir=.
10265 if test -f $ac_dir/$ac_word; then
10266 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10267 break
10268 fi
10269 done
10270 IFS="$ac_save_ifs"
10271 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10272 ;;
10273 esac
10274 fi
10275 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10276 if test -n "$GTK_CONFIG"; then
10277 echo "$ac_t""$GTK_CONFIG" 1>&6
10278 else
10279 echo "$ac_t""no" 1>&6
10280 fi
10281
10282 min_gtk_version=1.2.3
10283 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10284 echo "configure:10285: checking for GTK - version >= $min_gtk_version" >&5
10285 no_gtk=""
10286 if test "$GTK_CONFIG" != "no" ; then
10287 GTK_CFLAGS=`$GTK_CONFIG --cflags`
10288 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10289 ac_save_CFLAGS="$CFLAGS"
10290 ac_save_LIBS="$LIBS"
10291 CFLAGS="$CFLAGS $GTK_CFLAGS"
10292 LIBS="$LIBS $GTK_LIBS"
10293 if test "$cross_compiling" = yes; then
10294 echo $ac_n "cross compiling; assumed OK... $ac_c"
10295 else
10296 cat > conftest.$ac_ext <<EOF
10297 #line 10298 "configure"
10298 #include "confdefs.h"
10299
10300 #include <gtk/gtk.h>
10301 #include <gtk/gtkfeatures.h>
10302 #include <stdio.h>
10303 #include <stdlib.h>
10304
10305 int
10306 main ()
10307 {
10308 int major, minor, micro;
10309
10310 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10311 printf("%s, bad version string\n", "$min_gtk_version");
10312 exit(1);
10313 }
10314
10315 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10316 (GTK_MINOR_VERSION != gtk_minor_version) ||
10317 (GTK_MICRO_VERSION != gtk_micro_version)) {
10318 printf("Headers vs. library version mismatch!\n");
10319 exit(1);
10320 }
10321
10322 if (gtk_minor_version == 1) return FALSE;
10323
10324 return !((gtk_major_version > major) ||
10325 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10326 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10327 }
10328
10329 EOF
10330 if { (eval echo configure:10331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10331 then
10332 :
10333 else
10334 echo "configure: failed program was:" >&5
10335 cat conftest.$ac_ext >&5
10336 rm -fr conftest*
10337 no_gtk=yes
10338 fi
10339 rm -fr conftest*
10340 fi
10341
10342 CFLAGS="$ac_save_CFLAGS"
10343 LIBS="$ac_save_LIBS"
10344 else
10345 no_gtk=yes
10346 fi
10347 if test "x$no_gtk" = x ; then
10348 echo "$ac_t""yes" 1>&6
10349 wx_cv_lib_gtk=1.2.3
10350 else
10351 echo "$ac_t""no" 1>&6
10352 GTK_CFLAGS=""
10353 GTK_LIBS=""
10354 :
10355 fi
10356
10357
10358
10359 fi
10360
10361 if test -z "$wx_cv_lib_gtk"; then
10362 wx_cv_lib_gtk=none
10363 else
10364 wx_cv_cflags_gtk=$GTK_CFLAGS
10365 wx_cv_libs_gtk=$GTK_LIBS
10366 fi
10367
10368
10369 fi
10370
10371
10372 if test "$gtk_version_cached" = 1; then
10373 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
10374 fi
10375
10376 case "$wx_cv_lib_gtk" in
10377 2.0) WXGTK20=1
10378 ;;
10379 1.2.7) WXGTK127=1
10380 WXGTK12=1
10381 ;;
10382 1.2.3) WXGTK12=1
10383 ;;
10384 *) { echo "configure: error:
10385 Please check that gtk-config is in path, the directory
10386 where GTK+ libraries are installed (returned by
10387 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
10388 equivalent variable and GTK+ is version 1.2.3 or above.
10389 " 1>&2; exit 1; }
10390 ;;
10391 esac
10392
10393 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
10394 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
10395
10396 AFMINSTALL=afminstall
10397 TOOLKIT=GTK
10398 GUIDIST=GTK_DIST
10399
10400 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
10401 echo "configure:10402: checking for gdk_im_open in -lgdk" >&5
10402 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
10403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10404 echo $ac_n "(cached) $ac_c" 1>&6
10405 else
10406 ac_save_LIBS="$LIBS"
10407 LIBS="-lgdk $LIBS"
10408 cat > conftest.$ac_ext <<EOF
10409 #line 10410 "configure"
10410 #include "confdefs.h"
10411 /* Override any gcc2 internal prototype to avoid an error. */
10412 /* We use char because int might match the return type of a gcc2
10413 builtin and then its argument prototype would still apply. */
10414 char gdk_im_open();
10415
10416 int main() {
10417 gdk_im_open()
10418 ; return 0; }
10419 EOF
10420 if { (eval echo configure:10421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10421 rm -rf conftest*
10422 eval "ac_cv_lib_$ac_lib_var=yes"
10423 else
10424 echo "configure: failed program was:" >&5
10425 cat conftest.$ac_ext >&5
10426 rm -rf conftest*
10427 eval "ac_cv_lib_$ac_lib_var=no"
10428 fi
10429 rm -f conftest*
10430 LIBS="$ac_save_LIBS"
10431
10432 fi
10433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10434 echo "$ac_t""yes" 1>&6
10435 cat >> confdefs.h <<\EOF
10436 #define HAVE_XIM 1
10437 EOF
10438
10439 else
10440 echo "$ac_t""no" 1>&6
10441 fi
10442
10443 fi
10444
10445 if test "$wxUSE_MGL" = 1; then
10446
10447 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
10448 echo "configure:10449: checking for SciTech MGL library" >&5
10449 if test "x$MGL_ROOT" = x ; then
10450 echo "$ac_t""not found" 1>&6
10451 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
10452 else
10453 echo "$ac_t""$MGL_ROOT" 1>&6
10454 fi
10455
10456 mgl_os=linux/gcc/glibc
10457 mgl_lib_type=""
10458
10459 if test "$wxUSE_DEBUG_FLAG" = yes ; then
10460 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
10461 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
10462 mgl_lib_type=debug
10463 fi
10464 fi
10465 if test "x$mgl_lib_type" = x ; then
10466 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
10467 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
10468 mgl_lib_type=release
10469 else
10470 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
10471 fi
10472 fi
10473
10474 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
10475 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
10476
10477 AFMINSTALL=afminstall
10478 TOOLKIT=MGL
10479 GUIDIST=MGL_DIST
10480 fi
10481
10482 if test "$wxUSE_WINE" = 1; then
10483 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10484 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10485 echo "configure:10486: checking for windows.h" >&5
10486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10487 echo $ac_n "(cached) $ac_c" 1>&6
10488 else
10489 cat > conftest.$ac_ext <<EOF
10490 #line 10491 "configure"
10491 #include "confdefs.h"
10492 #include <windows.h>
10493 EOF
10494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10495 { (eval echo configure:10496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10497 if test -z "$ac_err"; then
10498 rm -rf conftest*
10499 eval "ac_cv_header_$ac_safe=yes"
10500 else
10501 echo "$ac_err" >&5
10502 echo "configure: failed program was:" >&5
10503 cat conftest.$ac_ext >&5
10504 rm -rf conftest*
10505 eval "ac_cv_header_$ac_safe=no"
10506 fi
10507 rm -f conftest*
10508 fi
10509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10510 echo "$ac_t""yes" 1>&6
10511 :
10512 else
10513 echo "$ac_t""no" 1>&6
10514
10515 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10516
10517 fi
10518
10519
10520 xpm_link=
10521 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10522 echo "configure:10523: checking for Xpm library" >&5
10523
10524 ac_find_libraries=
10525 for ac_dir in $SEARCH_LIB;
10526 do
10527 for ac_extension in a so sl dylib; do
10528 if test -f "$ac_dir/libXpm.$ac_extension"; then
10529 ac_find_libraries=$ac_dir
10530 break 2
10531 fi
10532 done
10533 done
10534
10535 if test "$ac_find_libraries" != "" ; then
10536 GUI_TK_LIBRARY="-L$ac_find_libraries"
10537 xpm_link=" -lXpm"
10538 cat >> confdefs.h <<\EOF
10539 #define wxHAVE_LIB_XPM 1
10540 EOF
10541
10542 echo "$ac_t""found at $ac_find_libraries" 1>&6
10543 else
10544 echo "$ac_t""no" 1>&6
10545 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10546 fi
10547
10548 mesa_link=
10549 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
10550 echo "configure:10551: checking for Mesa library" >&5
10551
10552 ac_find_libraries=
10553 for ac_dir in $SEARCH_LIB;
10554 do
10555 for ac_extension in a so sl dylib; do
10556 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
10557 ac_find_libraries=$ac_dir
10558 break 2
10559 fi
10560 done
10561 done
10562
10563 if test "$ac_find_libraries" != "" ; then
10564 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
10565 mesa_link=" -lMesaGL"
10566 echo "$ac_t""found at $ac_find_libraries" 1>&6
10567 else
10568 { echo "configure: error: no" 1>&2; exit 1; }
10569 fi
10570
10571 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10572 TOOLKIT=MSW
10573 GUIDIST=MSW_DIST
10574 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
10575 fi
10576
10577 if test "$wxUSE_MOTIF" = 1; then
10578 # If we find X, set shell vars x_includes and x_libraries to the
10579 # paths, otherwise set no_x=yes.
10580 # Uses ac_ vars as temps to allow command line to override cache and checks.
10581 # --without-x overrides everything else, but does not touch the cache.
10582 echo $ac_n "checking for X""... $ac_c" 1>&6
10583 echo "configure:10584: checking for X" >&5
10584
10585 # Check whether --with-x or --without-x was given.
10586 if test "${with_x+set}" = set; then
10587 withval="$with_x"
10588 :
10589 fi
10590
10591 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10592 if test "x$with_x" = xno; then
10593 # The user explicitly disabled X.
10594 have_x=disabled
10595 else
10596 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10597 # Both variables are already set.
10598 have_x=yes
10599 else
10600 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10601 echo $ac_n "(cached) $ac_c" 1>&6
10602 else
10603 # One or both of the vars are not set, and there is no cached value.
10604 ac_x_includes=NO ac_x_libraries=NO
10605 rm -fr conftestdir
10606 if mkdir conftestdir; then
10607 cd conftestdir
10608 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10609 cat > Imakefile <<'EOF'
10610 acfindx:
10611 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10612 EOF
10613 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10614 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10615 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10616 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10617 for ac_extension in a so sl; do
10618 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
10619 test -f $ac_im_libdir/libX11.$ac_extension; then
10620 ac_im_usrlibdir=$ac_im_libdir; break
10621 fi
10622 done
10623 # Screen out bogus values from the imake configuration. They are
10624 # bogus both because they are the default anyway, and because
10625 # using them would break gcc on systems where it needs fixed includes.
10626 case "$ac_im_incroot" in
10627 /usr/include) ;;
10628 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
10629 esac
10630 case "$ac_im_usrlibdir" in
10631 /usr/lib | /lib) ;;
10632 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
10633 esac
10634 fi
10635 cd ..
10636 rm -fr conftestdir
10637 fi
10638
10639 if test "$ac_x_includes" = NO; then
10640 # Guess where to find include files, by looking for this one X11 .h file.
10641 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
10642
10643 # First, try using that file with no special directory specified.
10644 cat > conftest.$ac_ext <<EOF
10645 #line 10646 "configure"
10646 #include "confdefs.h"
10647 #include <$x_direct_test_include>
10648 EOF
10649 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10650 { (eval echo configure:10651: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10651 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10652 if test -z "$ac_err"; then
10653 rm -rf conftest*
10654 # We can compile using X headers with no special include directory.
10655 ac_x_includes=
10656 else
10657 echo "$ac_err" >&5
10658 echo "configure: failed program was:" >&5
10659 cat conftest.$ac_ext >&5
10660 rm -rf conftest*
10661 # Look for the header file in a standard set of common directories.
10662 # Check X11 before X11Rn because it is often a symlink to the current release.
10663 for ac_dir in \
10664 /usr/X11/include \
10665 /usr/X11R6/include \
10666 /usr/X11R5/include \
10667 /usr/X11R4/include \
10668 \
10669 /usr/include/X11 \
10670 /usr/include/X11R6 \
10671 /usr/include/X11R5 \
10672 /usr/include/X11R4 \
10673 \
10674 /usr/local/X11/include \
10675 /usr/local/X11R6/include \
10676 /usr/local/X11R5/include \
10677 /usr/local/X11R4/include \
10678 \
10679 /usr/local/include/X11 \
10680 /usr/local/include/X11R6 \
10681 /usr/local/include/X11R5 \
10682 /usr/local/include/X11R4 \
10683 \
10684 /usr/X386/include \
10685 /usr/x386/include \
10686 /usr/XFree86/include/X11 \
10687 \
10688 /usr/include \
10689 /usr/local/include \
10690 /usr/unsupported/include \
10691 /usr/athena/include \
10692 /usr/local/x11r5/include \
10693 /usr/lpp/Xamples/include \
10694 \
10695 /usr/openwin/include \
10696 /usr/openwin/share/include \
10697 ; \
10698 do
10699 if test -r "$ac_dir/$x_direct_test_include"; then
10700 ac_x_includes=$ac_dir
10701 break
10702 fi
10703 done
10704 fi
10705 rm -f conftest*
10706 fi # $ac_x_includes = NO
10707
10708 if test "$ac_x_libraries" = NO; then
10709 # Check for the libraries.
10710
10711 test -z "$x_direct_test_library" && x_direct_test_library=Xt
10712 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10713
10714 # See if we find them without any special options.
10715 # Don't add to $LIBS permanently.
10716 ac_save_LIBS="$LIBS"
10717 LIBS="-l$x_direct_test_library $LIBS"
10718 cat > conftest.$ac_ext <<EOF
10719 #line 10720 "configure"
10720 #include "confdefs.h"
10721
10722 int main() {
10723 ${x_direct_test_function}()
10724 ; return 0; }
10725 EOF
10726 if { (eval echo configure:10727: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10727 rm -rf conftest*
10728 LIBS="$ac_save_LIBS"
10729 # We can link X programs with no special library path.
10730 ac_x_libraries=
10731 else
10732 echo "configure: failed program was:" >&5
10733 cat conftest.$ac_ext >&5
10734 rm -rf conftest*
10735 LIBS="$ac_save_LIBS"
10736 # First see if replacing the include by lib works.
10737 # Check X11 before X11Rn because it is often a symlink to the current release.
10738 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10739 /usr/X11/lib \
10740 /usr/X11R6/lib \
10741 /usr/X11R5/lib \
10742 /usr/X11R4/lib \
10743 \
10744 /usr/lib/X11 \
10745 /usr/lib/X11R6 \
10746 /usr/lib/X11R5 \
10747 /usr/lib/X11R4 \
10748 \
10749 /usr/local/X11/lib \
10750 /usr/local/X11R6/lib \
10751 /usr/local/X11R5/lib \
10752 /usr/local/X11R4/lib \
10753 \
10754 /usr/local/lib/X11 \
10755 /usr/local/lib/X11R6 \
10756 /usr/local/lib/X11R5 \
10757 /usr/local/lib/X11R4 \
10758 \
10759 /usr/X386/lib \
10760 /usr/x386/lib \
10761 /usr/XFree86/lib/X11 \
10762 \
10763 /usr/lib \
10764 /usr/local/lib \
10765 /usr/unsupported/lib \
10766 /usr/athena/lib \
10767 /usr/local/x11r5/lib \
10768 /usr/lpp/Xamples/lib \
10769 /lib/usr/lib/X11 \
10770 \
10771 /usr/openwin/lib \
10772 /usr/openwin/share/lib \
10773 ; \
10774 do
10775 for ac_extension in a so sl; do
10776 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
10777 ac_x_libraries=$ac_dir
10778 break 2
10779 fi
10780 done
10781 done
10782 fi
10783 rm -f conftest*
10784 fi # $ac_x_libraries = NO
10785
10786 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
10787 # Didn't find X anywhere. Cache the known absence of X.
10788 ac_cv_have_x="have_x=no"
10789 else
10790 # Record where we found X for the cache.
10791 ac_cv_have_x="have_x=yes \
10792 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10793 fi
10794 fi
10795 fi
10796 eval "$ac_cv_have_x"
10797 fi # $with_x != no
10798
10799 if test "$have_x" != yes; then
10800 echo "$ac_t""$have_x" 1>&6
10801 no_x=yes
10802 else
10803 # If each of the values was on the command line, it overrides each guess.
10804 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10805 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10806 # Update the cache value to reflect the command line values.
10807 ac_cv_have_x="have_x=yes \
10808 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10809 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10810 fi
10811
10812 if test "$no_x" = yes; then
10813 # Not all programs may use this symbol, but it does not hurt to define it.
10814 cat >> confdefs.h <<\EOF
10815 #define X_DISPLAY_MISSING 1
10816 EOF
10817
10818 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10819 else
10820 if test -n "$x_includes"; then
10821 X_CFLAGS="$X_CFLAGS -I$x_includes"
10822 fi
10823
10824 # It would also be nice to do this for all -L options, not just this one.
10825 if test -n "$x_libraries"; then
10826 X_LIBS="$X_LIBS -L$x_libraries"
10827 # For Solaris; some versions of Sun CC require a space after -R and
10828 # others require no space. Words are not sufficient . . . .
10829 case "`(uname -sr) 2>/dev/null`" in
10830 "SunOS 5"*)
10831 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
10832 echo "configure:10833: checking whether -R must be followed by a space" >&5
10833 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10834 cat > conftest.$ac_ext <<EOF
10835 #line 10836 "configure"
10836 #include "confdefs.h"
10837
10838 int main() {
10839
10840 ; return 0; }
10841 EOF
10842 if { (eval echo configure:10843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10843 rm -rf conftest*
10844 ac_R_nospace=yes
10845 else
10846 echo "configure: failed program was:" >&5
10847 cat conftest.$ac_ext >&5
10848 rm -rf conftest*
10849 ac_R_nospace=no
10850 fi
10851 rm -f conftest*
10852 if test $ac_R_nospace = yes; then
10853 echo "$ac_t""no" 1>&6
10854 X_LIBS="$X_LIBS -R$x_libraries"
10855 else
10856 LIBS="$ac_xsave_LIBS -R $x_libraries"
10857 cat > conftest.$ac_ext <<EOF
10858 #line 10859 "configure"
10859 #include "confdefs.h"
10860
10861 int main() {
10862
10863 ; return 0; }
10864 EOF
10865 if { (eval echo configure:10866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10866 rm -rf conftest*
10867 ac_R_space=yes
10868 else
10869 echo "configure: failed program was:" >&5
10870 cat conftest.$ac_ext >&5
10871 rm -rf conftest*
10872 ac_R_space=no
10873 fi
10874 rm -f conftest*
10875 if test $ac_R_space = yes; then
10876 echo "$ac_t""yes" 1>&6
10877 X_LIBS="$X_LIBS -R $x_libraries"
10878 else
10879 echo "$ac_t""neither works" 1>&6
10880 fi
10881 fi
10882 LIBS="$ac_xsave_LIBS"
10883 esac
10884 fi
10885
10886 # Check for system-dependent libraries X programs must link with.
10887 # Do this before checking for the system-independent R6 libraries
10888 # (-lICE), since we may need -lsocket or whatever for X linking.
10889
10890 if test "$ISC" = yes; then
10891 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10892 else
10893 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10894 # libraries were built with DECnet support. And karl@cs.umb.edu says
10895 # the Alpha needs dnet_stub (dnet does not exist).
10896 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
10897 echo "configure:10898: checking for dnet_ntoa in -ldnet" >&5
10898 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10900 echo $ac_n "(cached) $ac_c" 1>&6
10901 else
10902 ac_save_LIBS="$LIBS"
10903 LIBS="-ldnet $LIBS"
10904 cat > conftest.$ac_ext <<EOF
10905 #line 10906 "configure"
10906 #include "confdefs.h"
10907 /* Override any gcc2 internal prototype to avoid an error. */
10908 /* We use char because int might match the return type of a gcc2
10909 builtin and then its argument prototype would still apply. */
10910 char dnet_ntoa();
10911
10912 int main() {
10913 dnet_ntoa()
10914 ; return 0; }
10915 EOF
10916 if { (eval echo configure:10917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10917 rm -rf conftest*
10918 eval "ac_cv_lib_$ac_lib_var=yes"
10919 else
10920 echo "configure: failed program was:" >&5
10921 cat conftest.$ac_ext >&5
10922 rm -rf conftest*
10923 eval "ac_cv_lib_$ac_lib_var=no"
10924 fi
10925 rm -f conftest*
10926 LIBS="$ac_save_LIBS"
10927
10928 fi
10929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10930 echo "$ac_t""yes" 1>&6
10931 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10932 else
10933 echo "$ac_t""no" 1>&6
10934 fi
10935
10936 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10937 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
10938 echo "configure:10939: checking for dnet_ntoa in -ldnet_stub" >&5
10939 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10941 echo $ac_n "(cached) $ac_c" 1>&6
10942 else
10943 ac_save_LIBS="$LIBS"
10944 LIBS="-ldnet_stub $LIBS"
10945 cat > conftest.$ac_ext <<EOF
10946 #line 10947 "configure"
10947 #include "confdefs.h"
10948 /* Override any gcc2 internal prototype to avoid an error. */
10949 /* We use char because int might match the return type of a gcc2
10950 builtin and then its argument prototype would still apply. */
10951 char dnet_ntoa();
10952
10953 int main() {
10954 dnet_ntoa()
10955 ; return 0; }
10956 EOF
10957 if { (eval echo configure:10958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10958 rm -rf conftest*
10959 eval "ac_cv_lib_$ac_lib_var=yes"
10960 else
10961 echo "configure: failed program was:" >&5
10962 cat conftest.$ac_ext >&5
10963 rm -rf conftest*
10964 eval "ac_cv_lib_$ac_lib_var=no"
10965 fi
10966 rm -f conftest*
10967 LIBS="$ac_save_LIBS"
10968
10969 fi
10970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10971 echo "$ac_t""yes" 1>&6
10972 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10973 else
10974 echo "$ac_t""no" 1>&6
10975 fi
10976
10977 fi
10978
10979 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10980 # to get the SysV transport functions.
10981 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10982 # needs -lnsl.
10983 # The nsl library prevents programs from opening the X display
10984 # on Irix 5.2, according to dickey@clark.net.
10985 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
10986 echo "configure:10987: checking for gethostbyname" >&5
10987 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10988 echo $ac_n "(cached) $ac_c" 1>&6
10989 else
10990 cat > conftest.$ac_ext <<EOF
10991 #line 10992 "configure"
10992 #include "confdefs.h"
10993 /* System header to define __stub macros and hopefully few prototypes,
10994 which can conflict with char gethostbyname(); below. */
10995 #include <assert.h>
10996 /* Override any gcc2 internal prototype to avoid an error. */
10997 /* We use char because int might match the return type of a gcc2
10998 builtin and then its argument prototype would still apply. */
10999 char gethostbyname();
11000
11001 int main() {
11002
11003 /* The GNU C library defines this for functions which it implements
11004 to always fail with ENOSYS. Some functions are actually named
11005 something starting with __ and the normal name is an alias. */
11006 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11007 choke me
11008 #else
11009 gethostbyname();
11010 #endif
11011
11012 ; return 0; }
11013 EOF
11014 if { (eval echo configure:11015: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11015 rm -rf conftest*
11016 eval "ac_cv_func_gethostbyname=yes"
11017 else
11018 echo "configure: failed program was:" >&5
11019 cat conftest.$ac_ext >&5
11020 rm -rf conftest*
11021 eval "ac_cv_func_gethostbyname=no"
11022 fi
11023 rm -f conftest*
11024 fi
11025
11026 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11027 echo "$ac_t""yes" 1>&6
11028 :
11029 else
11030 echo "$ac_t""no" 1>&6
11031 fi
11032
11033 if test $ac_cv_func_gethostbyname = no; then
11034 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
11035 echo "configure:11036: checking for gethostbyname in -lnsl" >&5
11036 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11037 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11038 echo $ac_n "(cached) $ac_c" 1>&6
11039 else
11040 ac_save_LIBS="$LIBS"
11041 LIBS="-lnsl $LIBS"
11042 cat > conftest.$ac_ext <<EOF
11043 #line 11044 "configure"
11044 #include "confdefs.h"
11045 /* Override any gcc2 internal prototype to avoid an error. */
11046 /* We use char because int might match the return type of a gcc2
11047 builtin and then its argument prototype would still apply. */
11048 char gethostbyname();
11049
11050 int main() {
11051 gethostbyname()
11052 ; return 0; }
11053 EOF
11054 if { (eval echo configure:11055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11055 rm -rf conftest*
11056 eval "ac_cv_lib_$ac_lib_var=yes"
11057 else
11058 echo "configure: failed program was:" >&5
11059 cat conftest.$ac_ext >&5
11060 rm -rf conftest*
11061 eval "ac_cv_lib_$ac_lib_var=no"
11062 fi
11063 rm -f conftest*
11064 LIBS="$ac_save_LIBS"
11065
11066 fi
11067 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11068 echo "$ac_t""yes" 1>&6
11069 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11070 else
11071 echo "$ac_t""no" 1>&6
11072 fi
11073
11074 fi
11075
11076 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11077 # socket/setsockopt and other routines are undefined under SCO ODT
11078 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11079 # on later versions), says simon@lia.di.epfl.ch: it contains
11080 # gethostby* variants that don't use the nameserver (or something).
11081 # -lsocket must be given before -lnsl if both are needed.
11082 # We assume that if connect needs -lnsl, so does gethostbyname.
11083 echo $ac_n "checking for connect""... $ac_c" 1>&6
11084 echo "configure:11085: checking for connect" >&5
11085 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11086 echo $ac_n "(cached) $ac_c" 1>&6
11087 else
11088 cat > conftest.$ac_ext <<EOF
11089 #line 11090 "configure"
11090 #include "confdefs.h"
11091 /* System header to define __stub macros and hopefully few prototypes,
11092 which can conflict with char connect(); below. */
11093 #include <assert.h>
11094 /* Override any gcc2 internal prototype to avoid an error. */
11095 /* We use char because int might match the return type of a gcc2
11096 builtin and then its argument prototype would still apply. */
11097 char connect();
11098
11099 int main() {
11100
11101 /* The GNU C library defines this for functions which it implements
11102 to always fail with ENOSYS. Some functions are actually named
11103 something starting with __ and the normal name is an alias. */
11104 #if defined (__stub_connect) || defined (__stub___connect)
11105 choke me
11106 #else
11107 connect();
11108 #endif
11109
11110 ; return 0; }
11111 EOF
11112 if { (eval echo configure:11113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11113 rm -rf conftest*
11114 eval "ac_cv_func_connect=yes"
11115 else
11116 echo "configure: failed program was:" >&5
11117 cat conftest.$ac_ext >&5
11118 rm -rf conftest*
11119 eval "ac_cv_func_connect=no"
11120 fi
11121 rm -f conftest*
11122 fi
11123
11124 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11125 echo "$ac_t""yes" 1>&6
11126 :
11127 else
11128 echo "$ac_t""no" 1>&6
11129 fi
11130
11131 if test $ac_cv_func_connect = no; then
11132 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
11133 echo "configure:11134: checking for connect in -lsocket" >&5
11134 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11136 echo $ac_n "(cached) $ac_c" 1>&6
11137 else
11138 ac_save_LIBS="$LIBS"
11139 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11140 cat > conftest.$ac_ext <<EOF
11141 #line 11142 "configure"
11142 #include "confdefs.h"
11143 /* Override any gcc2 internal prototype to avoid an error. */
11144 /* We use char because int might match the return type of a gcc2
11145 builtin and then its argument prototype would still apply. */
11146 char connect();
11147
11148 int main() {
11149 connect()
11150 ; return 0; }
11151 EOF
11152 if { (eval echo configure:11153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11153 rm -rf conftest*
11154 eval "ac_cv_lib_$ac_lib_var=yes"
11155 else
11156 echo "configure: failed program was:" >&5
11157 cat conftest.$ac_ext >&5
11158 rm -rf conftest*
11159 eval "ac_cv_lib_$ac_lib_var=no"
11160 fi
11161 rm -f conftest*
11162 LIBS="$ac_save_LIBS"
11163
11164 fi
11165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11166 echo "$ac_t""yes" 1>&6
11167 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11168 else
11169 echo "$ac_t""no" 1>&6
11170 fi
11171
11172 fi
11173
11174 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11175 echo $ac_n "checking for remove""... $ac_c" 1>&6
11176 echo "configure:11177: checking for remove" >&5
11177 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11178 echo $ac_n "(cached) $ac_c" 1>&6
11179 else
11180 cat > conftest.$ac_ext <<EOF
11181 #line 11182 "configure"
11182 #include "confdefs.h"
11183 /* System header to define __stub macros and hopefully few prototypes,
11184 which can conflict with char remove(); below. */
11185 #include <assert.h>
11186 /* Override any gcc2 internal prototype to avoid an error. */
11187 /* We use char because int might match the return type of a gcc2
11188 builtin and then its argument prototype would still apply. */
11189 char remove();
11190
11191 int main() {
11192
11193 /* The GNU C library defines this for functions which it implements
11194 to always fail with ENOSYS. Some functions are actually named
11195 something starting with __ and the normal name is an alias. */
11196 #if defined (__stub_remove) || defined (__stub___remove)
11197 choke me
11198 #else
11199 remove();
11200 #endif
11201
11202 ; return 0; }
11203 EOF
11204 if { (eval echo configure:11205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11205 rm -rf conftest*
11206 eval "ac_cv_func_remove=yes"
11207 else
11208 echo "configure: failed program was:" >&5
11209 cat conftest.$ac_ext >&5
11210 rm -rf conftest*
11211 eval "ac_cv_func_remove=no"
11212 fi
11213 rm -f conftest*
11214 fi
11215
11216 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11217 echo "$ac_t""yes" 1>&6
11218 :
11219 else
11220 echo "$ac_t""no" 1>&6
11221 fi
11222
11223 if test $ac_cv_func_remove = no; then
11224 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
11225 echo "configure:11226: checking for remove in -lposix" >&5
11226 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11227 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11228 echo $ac_n "(cached) $ac_c" 1>&6
11229 else
11230 ac_save_LIBS="$LIBS"
11231 LIBS="-lposix $LIBS"
11232 cat > conftest.$ac_ext <<EOF
11233 #line 11234 "configure"
11234 #include "confdefs.h"
11235 /* Override any gcc2 internal prototype to avoid an error. */
11236 /* We use char because int might match the return type of a gcc2
11237 builtin and then its argument prototype would still apply. */
11238 char remove();
11239
11240 int main() {
11241 remove()
11242 ; return 0; }
11243 EOF
11244 if { (eval echo configure:11245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11245 rm -rf conftest*
11246 eval "ac_cv_lib_$ac_lib_var=yes"
11247 else
11248 echo "configure: failed program was:" >&5
11249 cat conftest.$ac_ext >&5
11250 rm -rf conftest*
11251 eval "ac_cv_lib_$ac_lib_var=no"
11252 fi
11253 rm -f conftest*
11254 LIBS="$ac_save_LIBS"
11255
11256 fi
11257 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11258 echo "$ac_t""yes" 1>&6
11259 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11260 else
11261 echo "$ac_t""no" 1>&6
11262 fi
11263
11264 fi
11265
11266 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11267 echo $ac_n "checking for shmat""... $ac_c" 1>&6
11268 echo "configure:11269: checking for shmat" >&5
11269 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11270 echo $ac_n "(cached) $ac_c" 1>&6
11271 else
11272 cat > conftest.$ac_ext <<EOF
11273 #line 11274 "configure"
11274 #include "confdefs.h"
11275 /* System header to define __stub macros and hopefully few prototypes,
11276 which can conflict with char shmat(); below. */
11277 #include <assert.h>
11278 /* Override any gcc2 internal prototype to avoid an error. */
11279 /* We use char because int might match the return type of a gcc2
11280 builtin and then its argument prototype would still apply. */
11281 char shmat();
11282
11283 int main() {
11284
11285 /* The GNU C library defines this for functions which it implements
11286 to always fail with ENOSYS. Some functions are actually named
11287 something starting with __ and the normal name is an alias. */
11288 #if defined (__stub_shmat) || defined (__stub___shmat)
11289 choke me
11290 #else
11291 shmat();
11292 #endif
11293
11294 ; return 0; }
11295 EOF
11296 if { (eval echo configure:11297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11297 rm -rf conftest*
11298 eval "ac_cv_func_shmat=yes"
11299 else
11300 echo "configure: failed program was:" >&5
11301 cat conftest.$ac_ext >&5
11302 rm -rf conftest*
11303 eval "ac_cv_func_shmat=no"
11304 fi
11305 rm -f conftest*
11306 fi
11307
11308 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
11309 echo "$ac_t""yes" 1>&6
11310 :
11311 else
11312 echo "$ac_t""no" 1>&6
11313 fi
11314
11315 if test $ac_cv_func_shmat = no; then
11316 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
11317 echo "configure:11318: checking for shmat in -lipc" >&5
11318 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
11319 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11320 echo $ac_n "(cached) $ac_c" 1>&6
11321 else
11322 ac_save_LIBS="$LIBS"
11323 LIBS="-lipc $LIBS"
11324 cat > conftest.$ac_ext <<EOF
11325 #line 11326 "configure"
11326 #include "confdefs.h"
11327 /* Override any gcc2 internal prototype to avoid an error. */
11328 /* We use char because int might match the return type of a gcc2
11329 builtin and then its argument prototype would still apply. */
11330 char shmat();
11331
11332 int main() {
11333 shmat()
11334 ; return 0; }
11335 EOF
11336 if { (eval echo configure:11337: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11337 rm -rf conftest*
11338 eval "ac_cv_lib_$ac_lib_var=yes"
11339 else
11340 echo "configure: failed program was:" >&5
11341 cat conftest.$ac_ext >&5
11342 rm -rf conftest*
11343 eval "ac_cv_lib_$ac_lib_var=no"
11344 fi
11345 rm -f conftest*
11346 LIBS="$ac_save_LIBS"
11347
11348 fi
11349 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11350 echo "$ac_t""yes" 1>&6
11351 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11352 else
11353 echo "$ac_t""no" 1>&6
11354 fi
11355
11356 fi
11357 fi
11358
11359 # Check for libraries that X11R6 Xt/Xaw programs need.
11360 ac_save_LDFLAGS="$LDFLAGS"
11361 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11362 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11363 # check for ICE first), but we must link in the order -lSM -lICE or
11364 # we get undefined symbols. So assume we have SM if we have ICE.
11365 # These have to be linked with before -lX11, unlike the other
11366 # libraries we check for below, so use a different variable.
11367 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
11368 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
11369 echo "configure:11370: checking for IceConnectionNumber in -lICE" >&5
11370 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
11371 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11372 echo $ac_n "(cached) $ac_c" 1>&6
11373 else
11374 ac_save_LIBS="$LIBS"
11375 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11376 cat > conftest.$ac_ext <<EOF
11377 #line 11378 "configure"
11378 #include "confdefs.h"
11379 /* Override any gcc2 internal prototype to avoid an error. */
11380 /* We use char because int might match the return type of a gcc2
11381 builtin and then its argument prototype would still apply. */
11382 char IceConnectionNumber();
11383
11384 int main() {
11385 IceConnectionNumber()
11386 ; return 0; }
11387 EOF
11388 if { (eval echo configure:11389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11389 rm -rf conftest*
11390 eval "ac_cv_lib_$ac_lib_var=yes"
11391 else
11392 echo "configure: failed program was:" >&5
11393 cat conftest.$ac_ext >&5
11394 rm -rf conftest*
11395 eval "ac_cv_lib_$ac_lib_var=no"
11396 fi
11397 rm -f conftest*
11398 LIBS="$ac_save_LIBS"
11399
11400 fi
11401 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11402 echo "$ac_t""yes" 1>&6
11403 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11404 else
11405 echo "$ac_t""no" 1>&6
11406 fi
11407
11408 LDFLAGS="$ac_save_LDFLAGS"
11409
11410 fi
11411
11412
11413 if test "$no_x" = "yes"; then
11414 { echo "configure: error: X11 not found" 1>&2; exit 1; }
11415 fi
11416
11417 GUI_TK_LIBRARY="$X_LIBS"
11418 TOOLKIT_INCLUDE="$X_CFLAGS"
11419 AFMINSTALL=afminstall
11420 COMPILED_X_PROGRAM=0
11421
11422 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
11423 echo "configure:11424: checking for Motif/Lesstif headers" >&5
11424
11425 ac_find_includes=
11426 for ac_dir in $SEARCH_INCLUDE;
11427 do
11428 if test -f "$ac_dir/Xm/Xm.h"; then
11429 ac_find_includes=$ac_dir
11430 break
11431 fi
11432 done
11433
11434 if test "$ac_find_includes" != "" ; then
11435 echo "$ac_t""found $ac_find_includes" 1>&6
11436 else
11437 cat > conftest.$ac_ext <<EOF
11438 #line 11439 "configure"
11439 #include "confdefs.h"
11440
11441 #include <Xm/Xm.h>
11442
11443 int main() {
11444
11445 int version;
11446 version = xmUseVersion;
11447
11448 ; return 0; }
11449 EOF
11450 if { (eval echo configure:11451: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11451 rm -rf conftest*
11452
11453 echo "$ac_t""found in default search path" 1>&6
11454 COMPILED_X_PROGRAM=1
11455
11456 else
11457 echo "configure: failed program was:" >&5
11458 cat conftest.$ac_ext >&5
11459 rm -rf conftest*
11460
11461 echo "$ac_t""no" 1>&6
11462 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
11463
11464
11465 fi
11466 rm -f conftest*
11467 fi
11468
11469 if test "$COMPILED_X_PROGRAM" = 0; then
11470 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
11471 echo "configure:11472: checking for Motif/Lesstif library" >&5
11472
11473 ac_find_libraries=
11474 for ac_dir in $SEARCH_LIB;
11475 do
11476 for ac_extension in a so sl dylib; do
11477 if test -f "$ac_dir/libXm.$ac_extension"; then
11478 ac_find_libraries=$ac_dir
11479 break 2
11480 fi
11481 done
11482 done
11483
11484 if test "$ac_find_libraries" != "" ; then
11485
11486 ac_path_to_include=$ac_find_includes
11487 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
11488 result=$?
11489 if test $result = 0; then
11490 ac_path_to_include=""
11491 else
11492 ac_path_to_include=" -I$ac_find_includes"
11493 fi
11494
11495
11496 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11497 result=$?
11498 if test $result = 0; then
11499 ac_path_to_link=""
11500 else
11501 ac_path_to_link=" -L$ac_find_libraries"
11502 fi
11503
11504
11505 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
11506 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
11507 echo "$ac_t""found at $ac_find_libraries" 1>&6
11508 else
11509 cat > conftest.$ac_ext <<EOF
11510 #line 11511 "configure"
11511 #include "confdefs.h"
11512
11513 #include <Xm/Xm.h>
11514
11515 int main() {
11516
11517 int version;
11518 version = xmUseVersion;
11519
11520 ; return 0; }
11521 EOF
11522 if { (eval echo configure:11523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11523 rm -rf conftest*
11524
11525 echo "$ac_t""found in default search path" 1>&6
11526 COMPILED_X_PROGRAM=1
11527
11528 else
11529 echo "configure: failed program was:" >&5
11530 cat conftest.$ac_ext >&5
11531 rm -rf conftest*
11532
11533 echo "$ac_t""no" 1>&6
11534 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
11535
11536
11537 fi
11538 rm -f conftest*
11539 fi
11540 fi
11541
11542 xpm_link=
11543 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
11544 echo "configure:11545: checking for Xpm library" >&5
11545
11546 ac_find_libraries=
11547 for ac_dir in $SEARCH_LIB;
11548 do
11549 for ac_extension in a so sl dylib; do
11550 if test -f "$ac_dir/libXpm.$ac_extension"; then
11551 ac_find_libraries=$ac_dir
11552 break 2
11553 fi
11554 done
11555 done
11556
11557 if test "$ac_find_libraries" != "" ; then
11558
11559 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11560 result=$?
11561 if test $result = 0; then
11562 ac_path_to_link=""
11563 else
11564 ac_path_to_link=" -L$ac_find_libraries"
11565 fi
11566
11567 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
11568 xpm_link=" -lXpm"
11569 cat >> confdefs.h <<\EOF
11570 #define wxHAVE_LIB_XPM 1
11571 EOF
11572
11573 echo "$ac_t""found at $ac_find_libraries" 1>&6
11574 else
11575 cat > conftest.$ac_ext <<EOF
11576 #line 11577 "configure"
11577 #include "confdefs.h"
11578
11579 #include <X11/xpm.h>
11580
11581 int main() {
11582
11583 int version;
11584 version = XpmLibraryVersion();
11585
11586 ; return 0; }
11587 EOF
11588 if { (eval echo configure:11589: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11589 rm -rf conftest*
11590
11591 xpm_link=" -lXpm"
11592 cat >> confdefs.h <<\EOF
11593 #define wxHAVE_LIB_XPM 1
11594 EOF
11595
11596 echo "$ac_t""found in default search path" 1>&6
11597 COMPILED_X_PROGRAM=0
11598
11599 else
11600 echo "configure: failed program was:" >&5
11601 cat conftest.$ac_ext >&5
11602 rm -rf conftest*
11603
11604 echo "$ac_t""no" 1>&6
11605 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11606
11607
11608 fi
11609 rm -f conftest*
11610 fi
11611
11612 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
11613 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
11614 TOOLKIT=MOTIF
11615 GUIDIST=MOTIF_DIST
11616 fi
11617
11618 if test "$wxUSE_MAC" = 1; then
11619 if test "$wxUSE_PRECOMP" = "yes"; then
11620 CPPFLAGS="$CPPFLAGS -cpp-precomp"
11621 fi
11622 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
11623 CFLAGS="$CFLAGS -fpascal-strings"
11624 CXXFLAGS="$CXXFLAGS -fpascal-strings"
11625 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON"
11626
11627 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
11628 TOOLKIT=MAC
11629 GUIDIST=MACX_DIST
11630 fi
11631
11632 if test "$wxUSE_PM" = 1; then
11633 TOOLKIT=PM
11634 GUIDIST=GTK_DIST
11635 fi
11636
11637 if test "$TOOLKIT" = "PM" ; then
11638 TOOLKIT_DIR="os2"
11639 else
11640 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
11641 fi
11642
11643 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
11644
11645 if test "$wxUSE_UNIVERSAL" = "yes"; then
11646 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
11647 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
11648 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
11649 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
11650 WIDGET_SET=univ
11651 else
11652 ALL_OBJECTS="\$(GUIOBJS)"
11653 fi
11654
11655 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
11656
11657 if test "$TOOLKIT" != "MSW"; then
11658 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
11659 fi
11660
11661 if test "$wxUSE_HTML" = "yes"; then
11662 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
11663 fi
11664
11665 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
11666 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
11667 fi
11668 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11669 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
11670 fi
11671 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11672 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
11673 fi
11674 if test "$wxUSE_LIBPNG" = "builtin" ; then
11675 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
11676 fi
11677 if test "$wxUSE_FREETYPE" = "builtin" ; then
11678 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
11679 fi
11680
11681 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
11682 DISTDIR="wx\$(TOOLKIT)"
11683 else
11684 USE_GUI=0
11685
11686 TOOLKIT_DIR="base"
11687
11688 if test "$USE_WIN32" = 1 ; then
11689 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
11690 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
11691
11692 TOOLKIT="MSW"
11693 else
11694 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
11695 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
11696 fi
11697
11698 PORT_FILES="\${top_srcdir}/src/files.lst"
11699
11700 GUIDIST="BASE_DIST"
11701 DISTDIR="wxBase"
11702 fi
11703
11704 if test "$wxUSE_REGEX" = "builtin" ; then
11705 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
11706 fi
11707 if test "$wxUSE_ZLIB" = "builtin" ; then
11708 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
11709 fi
11710
11711 if test "$wxUSE_OPENGL" = "yes"; then
11712 if test "$wxUSE_MAC" = 1; then
11713 OPENGL_LIBS="-framework OpenGL -framework AGL"
11714 else
11715
11716 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11717 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
11718 echo "configure:11719: checking for GL/gl.h" >&5
11719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11720 echo $ac_n "(cached) $ac_c" 1>&6
11721 else
11722 cat > conftest.$ac_ext <<EOF
11723 #line 11724 "configure"
11724 #include "confdefs.h"
11725 #include <GL/gl.h>
11726 EOF
11727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11728 { (eval echo configure:11729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11729 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11730 if test -z "$ac_err"; then
11731 rm -rf conftest*
11732 eval "ac_cv_header_$ac_safe=yes"
11733 else
11734 echo "$ac_err" >&5
11735 echo "configure: failed program was:" >&5
11736 cat conftest.$ac_ext >&5
11737 rm -rf conftest*
11738 eval "ac_cv_header_$ac_safe=no"
11739 fi
11740 rm -f conftest*
11741 fi
11742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11743 echo "$ac_t""yes" 1>&6
11744
11745 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
11746 echo "configure:11747: checking for -lGL" >&5
11747
11748 ac_find_libraries=
11749 for ac_dir in $SEARCH_LIB;
11750 do
11751 for ac_extension in a so sl dylib; do
11752 if test -f "$ac_dir/libGL.$ac_extension"; then
11753 ac_find_libraries=$ac_dir
11754 break 2
11755 fi
11756 done
11757 done
11758
11759 if test "$ac_find_libraries" != "" ; then
11760
11761 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
11762 result=$?
11763 if test $result = 0; then
11764 ac_path_to_link=""
11765 else
11766 ac_path_to_link=" -L$ac_find_libraries"
11767 fi
11768
11769 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
11770 OPENGL_LIBS="-lGL -lGLU"
11771 echo "$ac_t""yes" 1>&6
11772 else
11773 echo "$ac_t""no" 1>&6
11774 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
11775 echo "configure:11776: checking for -lMesaGL" >&5
11776
11777 ac_find_libraries=
11778 for ac_dir in $SEARCH_LIB;
11779 do
11780 for ac_extension in a so sl dylib; do
11781 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
11782 ac_find_libraries=$ac_dir
11783 break 2
11784 fi
11785 done
11786 done
11787
11788 if test "$ac_find_libraries" != "" ; then
11789
11790 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
11791 result=$?
11792 if test $result = 0; then
11793 ac_path_to_link=""
11794 else
11795 ac_path_to_link=" -L$ac_find_libraries"
11796 fi
11797
11798 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
11799 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11800 echo "$ac_t""yes" 1>&6
11801 else
11802 echo "$ac_t""no" 1>&6
11803 fi
11804 fi
11805
11806 else
11807 echo "$ac_t""no" 1>&6
11808 fi
11809
11810
11811
11812 # AC_CHECK_HEADER(GL/gl.h,
11813 # [
11814 # AC_CHECK_LIB(GL, glFlush,
11815 # [
11816 # OPENGL_LIBS="-lGL -lGLU"
11817 # ],
11818 # [
11819 # AC_CHECK_LIB(MesaGL, glFlush,
11820 # [
11821 # OPENGL_LIBS="-lMesaGL -lMesaGLU"
11822 # ],
11823 # [],
11824 # [-lm])
11825 # ],
11826 # [-lm])
11827 # ])
11828
11829 if test "x$OPENGL_LIBS" = "x"; then
11830 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
11831 fi
11832 fi
11833
11834 if test "$wxUSE_OPENGL" = "yes"; then
11835 cat >> confdefs.h <<\EOF
11836 #define wxUSE_OPENGL 1
11837 EOF
11838
11839 cat >> confdefs.h <<\EOF
11840 #define wxUSE_GLCANVAS 1
11841 EOF
11842
11843 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11844 fi
11845 fi
11846
11847 if test -z "$TOOLKIT_VPATH" ; then
11848 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11849 fi
11850
11851 if test -n "$TOOLKIT" ; then
11852 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11853 fi
11854
11855 lib_unicode_suffix=
11856 if test "$wxUSE_UNICODE" = "yes"; then
11857 lib_unicode_suffix=u
11858 fi
11859
11860 lib_debug_suffix=
11861 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11862 lib_debug_suffix=d
11863 fi
11864
11865 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
11866 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
11867
11868 if test "$cross_compiling" = "yes"; then
11869 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11870 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11871 fi
11872
11873 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11874 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11875
11876 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11877 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11878
11879 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11880 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11881 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11882 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11883
11884 WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
11885 WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
11886
11887 case "${host}" in
11888 *-*-cygwin* | *-*-mingw32* )
11889
11890
11891
11892 if test "$cross_compiling" != "yes"; then
11893 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
11894 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
11895 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
11896 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
11897 else
11898 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
11899 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11900 fi
11901
11902 esac
11903
11904 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11905 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11906
11907 WXCONFIG_LIBS="-l${WX_LIBRARY}"
11908 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
11909
11910 if test "$wxUSE_OPENGL" = "yes"; then
11911 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
11912 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
11913 fi
11914
11915
11916
11917 if test "$wxUSE_SHARED" = "yes"; then
11918
11919 if test "$wxUSE_OPENGL" = "yes"; then
11920 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11921 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
11922 else
11923 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11924 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
11925 fi
11926
11927 if test "$GCC" = "yes"; then
11928 PIC_FLAG="-fPIC"
11929 fi
11930
11931 SHARED_LD="${CXX} -shared -o"
11932
11933 case "${host}" in
11934 *-hp-hpux* )
11935 if test "$GCC" != "yes"; then
11936 LDFLAGS="$LDFLAGS -L/usr/lib"
11937
11938 SHARED_LD="${CXX} -b -o"
11939 PIC_FLAG="+Z"
11940 fi
11941
11942 if test "$wxUSE_OPENGL" = "yes"; then
11943 WX_ALL_INSTALLED="preinstall_gl"
11944 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11945 else
11946 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11947 fi
11948 ;;
11949
11950 *-*-linux* )
11951 if test "$GCC" != "yes"; then
11952 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
11953 echo "configure:11954: checking for Intel compiler" >&5
11954 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11955 echo $ac_n "(cached) $ac_c" 1>&6
11956 else
11957
11958 cat > conftest.$ac_ext <<EOF
11959 #line 11960 "configure"
11960 #include "confdefs.h"
11961
11962 int main() {
11963
11964 #ifndef __INTEL_COMPILER
11965 #error Not icc
11966 #endif
11967
11968 ; return 0; }
11969 EOF
11970 if { (eval echo configure:11971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11971 rm -rf conftest*
11972 wx_cv_prog_icc=yes
11973 else
11974 echo "configure: failed program was:" >&5
11975 cat conftest.$ac_ext >&5
11976 rm -rf conftest*
11977 wx_cv_prog_icc=no
11978
11979 fi
11980 rm -f conftest*
11981
11982 fi
11983
11984 echo "$ac_t""$wx_cv_prog_icc" 1>&6
11985 if test "$wx_cv_prog_icc" = "yes"; then
11986 PIC_FLAG="-KPIC"
11987 fi
11988 fi
11989
11990 if test "$wxUSE_SONAME" = "yes" ; then
11991 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11992 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
11993 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
11994 fi
11995 ;;
11996
11997 *-*-solaris2* )
11998 if test "$GCC" = yes ; then
11999 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
12000 else
12001 SHARED_LD="${CXX} -G -o"
12002 PIC_FLAG="-KPIC"
12003 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
12004 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
12005 fi
12006 ;;
12007
12008 *-*-darwin* )
12009 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
12010 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
12011 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
12012 PIC_FLAG="-dynamic -fPIC"
12013 ;;
12014
12015 *-*-aix* )
12016 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
12017 ;;
12018
12019 *-*-cygwin* | *-*-mingw32* )
12020
12021 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
12022
12023 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
12024 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
12025
12026 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
12027
12028 if test "$wxUSE_OPENGL" = "yes"; then
12029 WX_ALL_INSTALLED="preinstall_gl"
12030 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12031 else
12032 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12033 fi
12034 ;;
12035
12036 *-pc-os2_emx | *-pc-os2-emx )
12037 wxUSE_SHARED=no
12038 ;;
12039
12040 *-*-beos* )
12041 SHARED_LD="${LD} -shared -o"
12042 ;;
12043
12044 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
12045 *-*-sunos4* | \
12046 *-*-irix5* | *-*-irix6* | \
12047 *-*-osf* | \
12048 *-*-dgux5* | \
12049 *-*-sysv5* )
12050 ;;
12051
12052 *)
12053 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
12054 esac
12055
12056 if test "x$WX_TARGET_LIBRARY" = "x"; then
12057 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
12058 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
12059 fi
12060
12061 WX_TARGET_LIBRARY_TYPE="so"
12062 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
12063 fi
12064
12065 if test "$wxUSE_SHARED" = "no"; then
12066
12067 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
12068 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12069 fi
12070
12071 if test "$wxUSE_MAC" = 1; then
12072 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12073 fi
12074
12075 if test "$wxUSE_OPENGL" = "yes"; then
12076 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
12077 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
12078 else
12079 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
12080 fi
12081
12082 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
12083 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
12084
12085 WX_TARGET_LIBRARY_TYPE="a"
12086 INSTALL_LIBRARY='$(INSTALL_DATA)'
12087 fi
12088
12089 if test "$wxUSE_MAC" = 1; then
12090 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
12091 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
12092 # Extract the first word of "Rez", so it can be a program name with args.
12093 set dummy Rez; ac_word=$2
12094 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12095 echo "configure:12096: checking for $ac_word" >&5
12096 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12097 echo $ac_n "(cached) $ac_c" 1>&6
12098 else
12099 if test -n "$RESCOMP"; then
12100 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12101 else
12102 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12103 ac_dummy="$PATH"
12104 for ac_dir in $ac_dummy; do
12105 test -z "$ac_dir" && ac_dir=.
12106 if test -f $ac_dir/$ac_word; then
12107 ac_cv_prog_RESCOMP="Rez"
12108 break
12109 fi
12110 done
12111 IFS="$ac_save_ifs"
12112 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
12113 fi
12114 fi
12115 RESCOMP="$ac_cv_prog_RESCOMP"
12116 if test -n "$RESCOMP"; then
12117 echo "$ac_t""$RESCOMP" 1>&6
12118 else
12119 echo "$ac_t""no" 1>&6
12120 fi
12121
12122 # Extract the first word of "DeRez", so it can be a program name with args.
12123 set dummy DeRez; ac_word=$2
12124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12125 echo "configure:12126: checking for $ac_word" >&5
12126 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
12127 echo $ac_n "(cached) $ac_c" 1>&6
12128 else
12129 if test -n "$DEREZ"; then
12130 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12131 else
12132 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12133 ac_dummy="$PATH"
12134 for ac_dir in $ac_dummy; do
12135 test -z "$ac_dir" && ac_dir=.
12136 if test -f $ac_dir/$ac_word; then
12137 ac_cv_prog_DEREZ="DeRez"
12138 break
12139 fi
12140 done
12141 IFS="$ac_save_ifs"
12142 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
12143 fi
12144 fi
12145 DEREZ="$ac_cv_prog_DEREZ"
12146 if test -n "$DEREZ"; then
12147 echo "$ac_t""$DEREZ" 1>&6
12148 else
12149 echo "$ac_t""no" 1>&6
12150 fi
12151
12152 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12153 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
12154 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
12155 fi
12156
12157
12158 if test "$wxUSE_MAC" != 1; then
12159 for ac_hdr in strings.h
12160 do
12161 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12162 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12163 echo "configure:12164: checking for $ac_hdr" >&5
12164 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12165 echo $ac_n "(cached) $ac_c" 1>&6
12166 else
12167 cat > conftest.$ac_ext <<EOF
12168 #line 12169 "configure"
12169 #include "confdefs.h"
12170 #include <$ac_hdr>
12171 EOF
12172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12173 { (eval echo configure:12174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12175 if test -z "$ac_err"; then
12176 rm -rf conftest*
12177 eval "ac_cv_header_$ac_safe=yes"
12178 else
12179 echo "$ac_err" >&5
12180 echo "configure: failed program was:" >&5
12181 cat conftest.$ac_ext >&5
12182 rm -rf conftest*
12183 eval "ac_cv_header_$ac_safe=no"
12184 fi
12185 rm -f conftest*
12186 fi
12187 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12188 echo "$ac_t""yes" 1>&6
12189 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12190 cat >> confdefs.h <<EOF
12191 #define $ac_tr_hdr 1
12192 EOF
12193
12194 else
12195 echo "$ac_t""no" 1>&6
12196 fi
12197 done
12198
12199 fi
12200
12201 for ac_hdr in stdlib.h
12202 do
12203 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12204 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12205 echo "configure:12206: checking for $ac_hdr" >&5
12206 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12207 echo $ac_n "(cached) $ac_c" 1>&6
12208 else
12209 cat > conftest.$ac_ext <<EOF
12210 #line 12211 "configure"
12211 #include "confdefs.h"
12212 #include <$ac_hdr>
12213 EOF
12214 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12215 { (eval echo configure:12216: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12216 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12217 if test -z "$ac_err"; then
12218 rm -rf conftest*
12219 eval "ac_cv_header_$ac_safe=yes"
12220 else
12221 echo "$ac_err" >&5
12222 echo "configure: failed program was:" >&5
12223 cat conftest.$ac_ext >&5
12224 rm -rf conftest*
12225 eval "ac_cv_header_$ac_safe=no"
12226 fi
12227 rm -f conftest*
12228 fi
12229 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12230 echo "$ac_t""yes" 1>&6
12231 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12232 cat >> confdefs.h <<EOF
12233 #define $ac_tr_hdr 1
12234 EOF
12235
12236 else
12237 echo "$ac_t""no" 1>&6
12238 fi
12239 done
12240
12241 for ac_hdr in malloc.h
12242 do
12243 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12244 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12245 echo "configure:12246: checking for $ac_hdr" >&5
12246 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12247 echo $ac_n "(cached) $ac_c" 1>&6
12248 else
12249 cat > conftest.$ac_ext <<EOF
12250 #line 12251 "configure"
12251 #include "confdefs.h"
12252 #include <$ac_hdr>
12253 EOF
12254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12255 { (eval echo configure:12256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12257 if test -z "$ac_err"; then
12258 rm -rf conftest*
12259 eval "ac_cv_header_$ac_safe=yes"
12260 else
12261 echo "$ac_err" >&5
12262 echo "configure: failed program was:" >&5
12263 cat conftest.$ac_ext >&5
12264 rm -rf conftest*
12265 eval "ac_cv_header_$ac_safe=no"
12266 fi
12267 rm -f conftest*
12268 fi
12269 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12270 echo "$ac_t""yes" 1>&6
12271 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12272 cat >> confdefs.h <<EOF
12273 #define $ac_tr_hdr 1
12274 EOF
12275
12276 else
12277 echo "$ac_t""no" 1>&6
12278 fi
12279 done
12280
12281 for ac_hdr in unistd.h
12282 do
12283 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12284 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12285 echo "configure:12286: checking for $ac_hdr" >&5
12286 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12287 echo $ac_n "(cached) $ac_c" 1>&6
12288 else
12289 cat > conftest.$ac_ext <<EOF
12290 #line 12291 "configure"
12291 #include "confdefs.h"
12292 #include <$ac_hdr>
12293 EOF
12294 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12295 { (eval echo configure:12296: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12296 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12297 if test -z "$ac_err"; then
12298 rm -rf conftest*
12299 eval "ac_cv_header_$ac_safe=yes"
12300 else
12301 echo "$ac_err" >&5
12302 echo "configure: failed program was:" >&5
12303 cat conftest.$ac_ext >&5
12304 rm -rf conftest*
12305 eval "ac_cv_header_$ac_safe=no"
12306 fi
12307 rm -f conftest*
12308 fi
12309 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12310 echo "$ac_t""yes" 1>&6
12311 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12312 cat >> confdefs.h <<EOF
12313 #define $ac_tr_hdr 1
12314 EOF
12315
12316 else
12317 echo "$ac_t""no" 1>&6
12318 fi
12319 done
12320
12321 for ac_hdr in wchar.h
12322 do
12323 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12324 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12325 echo "configure:12326: checking for $ac_hdr" >&5
12326 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12327 echo $ac_n "(cached) $ac_c" 1>&6
12328 else
12329 cat > conftest.$ac_ext <<EOF
12330 #line 12331 "configure"
12331 #include "confdefs.h"
12332 #include <$ac_hdr>
12333 EOF
12334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12335 { (eval echo configure:12336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12337 if test -z "$ac_err"; then
12338 rm -rf conftest*
12339 eval "ac_cv_header_$ac_safe=yes"
12340 else
12341 echo "$ac_err" >&5
12342 echo "configure: failed program was:" >&5
12343 cat conftest.$ac_ext >&5
12344 rm -rf conftest*
12345 eval "ac_cv_header_$ac_safe=no"
12346 fi
12347 rm -f conftest*
12348 fi
12349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12350 echo "$ac_t""yes" 1>&6
12351 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12352 cat >> confdefs.h <<EOF
12353 #define $ac_tr_hdr 1
12354 EOF
12355
12356 else
12357 echo "$ac_t""no" 1>&6
12358 fi
12359 done
12360
12361 for ac_hdr in wcstr.h
12362 do
12363 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12364 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12365 echo "configure:12366: checking for $ac_hdr" >&5
12366 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12367 echo $ac_n "(cached) $ac_c" 1>&6
12368 else
12369 cat > conftest.$ac_ext <<EOF
12370 #line 12371 "configure"
12371 #include "confdefs.h"
12372 #include <$ac_hdr>
12373 EOF
12374 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12375 { (eval echo configure:12376: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12376 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12377 if test -z "$ac_err"; then
12378 rm -rf conftest*
12379 eval "ac_cv_header_$ac_safe=yes"
12380 else
12381 echo "$ac_err" >&5
12382 echo "configure: failed program was:" >&5
12383 cat conftest.$ac_ext >&5
12384 rm -rf conftest*
12385 eval "ac_cv_header_$ac_safe=no"
12386 fi
12387 rm -f conftest*
12388 fi
12389 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12390 echo "$ac_t""yes" 1>&6
12391 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12392 cat >> confdefs.h <<EOF
12393 #define $ac_tr_hdr 1
12394 EOF
12395
12396 else
12397 echo "$ac_t""no" 1>&6
12398 fi
12399 done
12400
12401 for ac_hdr in wctype.h
12402 do
12403 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12404 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12405 echo "configure:12406: checking for $ac_hdr" >&5
12406 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12407 echo $ac_n "(cached) $ac_c" 1>&6
12408 else
12409 cat > conftest.$ac_ext <<EOF
12410 #line 12411 "configure"
12411 #include "confdefs.h"
12412 #include <$ac_hdr>
12413 EOF
12414 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12415 { (eval echo configure:12416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12416 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12417 if test -z "$ac_err"; then
12418 rm -rf conftest*
12419 eval "ac_cv_header_$ac_safe=yes"
12420 else
12421 echo "$ac_err" >&5
12422 echo "configure: failed program was:" >&5
12423 cat conftest.$ac_ext >&5
12424 rm -rf conftest*
12425 eval "ac_cv_header_$ac_safe=no"
12426 fi
12427 rm -f conftest*
12428 fi
12429 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12430 echo "$ac_t""yes" 1>&6
12431 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12432 cat >> confdefs.h <<EOF
12433 #define $ac_tr_hdr 1
12434 EOF
12435
12436 else
12437 echo "$ac_t""no" 1>&6
12438 fi
12439 done
12440
12441 for ac_hdr in fnmatch.h
12442 do
12443 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12444 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12445 echo "configure:12446: checking for $ac_hdr" >&5
12446 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12447 echo $ac_n "(cached) $ac_c" 1>&6
12448 else
12449 cat > conftest.$ac_ext <<EOF
12450 #line 12451 "configure"
12451 #include "confdefs.h"
12452 #include <$ac_hdr>
12453 EOF
12454 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12455 { (eval echo configure:12456: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12456 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12457 if test -z "$ac_err"; then
12458 rm -rf conftest*
12459 eval "ac_cv_header_$ac_safe=yes"
12460 else
12461 echo "$ac_err" >&5
12462 echo "configure: failed program was:" >&5
12463 cat conftest.$ac_ext >&5
12464 rm -rf conftest*
12465 eval "ac_cv_header_$ac_safe=no"
12466 fi
12467 rm -f conftest*
12468 fi
12469 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12470 echo "$ac_t""yes" 1>&6
12471 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12472 cat >> confdefs.h <<EOF
12473 #define $ac_tr_hdr 1
12474 EOF
12475
12476 else
12477 echo "$ac_t""no" 1>&6
12478 fi
12479 done
12480
12481 for ac_hdr in iconv.h
12482 do
12483 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12484 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12485 echo "configure:12486: checking for $ac_hdr" >&5
12486 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12487 echo $ac_n "(cached) $ac_c" 1>&6
12488 else
12489 cat > conftest.$ac_ext <<EOF
12490 #line 12491 "configure"
12491 #include "confdefs.h"
12492 #include <$ac_hdr>
12493 EOF
12494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12495 { (eval echo configure:12496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12496 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12497 if test -z "$ac_err"; then
12498 rm -rf conftest*
12499 eval "ac_cv_header_$ac_safe=yes"
12500 else
12501 echo "$ac_err" >&5
12502 echo "configure: failed program was:" >&5
12503 cat conftest.$ac_ext >&5
12504 rm -rf conftest*
12505 eval "ac_cv_header_$ac_safe=no"
12506 fi
12507 rm -f conftest*
12508 fi
12509 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12510 echo "$ac_t""yes" 1>&6
12511 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12512 cat >> confdefs.h <<EOF
12513 #define $ac_tr_hdr 1
12514 EOF
12515
12516 else
12517 echo "$ac_t""no" 1>&6
12518 fi
12519 done
12520
12521 for ac_hdr in langinfo.h
12522 do
12523 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12524 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12525 echo "configure:12526: checking for $ac_hdr" >&5
12526 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12527 echo $ac_n "(cached) $ac_c" 1>&6
12528 else
12529 cat > conftest.$ac_ext <<EOF
12530 #line 12531 "configure"
12531 #include "confdefs.h"
12532 #include <$ac_hdr>
12533 EOF
12534 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12535 { (eval echo configure:12536: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12536 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12537 if test -z "$ac_err"; then
12538 rm -rf conftest*
12539 eval "ac_cv_header_$ac_safe=yes"
12540 else
12541 echo "$ac_err" >&5
12542 echo "configure: failed program was:" >&5
12543 cat conftest.$ac_ext >&5
12544 rm -rf conftest*
12545 eval "ac_cv_header_$ac_safe=no"
12546 fi
12547 rm -f conftest*
12548 fi
12549 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12550 echo "$ac_t""yes" 1>&6
12551 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12552 cat >> confdefs.h <<EOF
12553 #define $ac_tr_hdr 1
12554 EOF
12555
12556 else
12557 echo "$ac_t""no" 1>&6
12558 fi
12559 done
12560
12561
12562 if test "$wxUSE_GUI" = "yes"; then
12563 if test "$wxUSE_UNIX" = "yes"; then
12564 for ac_hdr in X11/XKBlib.h
12565 do
12566 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12567 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12568 echo "configure:12569: checking for $ac_hdr" >&5
12569 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12570 echo $ac_n "(cached) $ac_c" 1>&6
12571 else
12572 cat > conftest.$ac_ext <<EOF
12573 #line 12574 "configure"
12574 #include "confdefs.h"
12575 #include <$ac_hdr>
12576 EOF
12577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12578 { (eval echo configure:12579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12579 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12580 if test -z "$ac_err"; then
12581 rm -rf conftest*
12582 eval "ac_cv_header_$ac_safe=yes"
12583 else
12584 echo "$ac_err" >&5
12585 echo "configure: failed program was:" >&5
12586 cat conftest.$ac_ext >&5
12587 rm -rf conftest*
12588 eval "ac_cv_header_$ac_safe=no"
12589 fi
12590 rm -f conftest*
12591 fi
12592 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12593 echo "$ac_t""yes" 1>&6
12594 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12595 cat >> confdefs.h <<EOF
12596 #define $ac_tr_hdr 1
12597 EOF
12598
12599 else
12600 echo "$ac_t""no" 1>&6
12601 fi
12602 done
12603
12604 fi
12605 fi
12606
12607
12608 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
12609 echo "configure:12610: checking for ANSI C header files" >&5
12610 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
12611 echo $ac_n "(cached) $ac_c" 1>&6
12612 else
12613 cat > conftest.$ac_ext <<EOF
12614 #line 12615 "configure"
12615 #include "confdefs.h"
12616 #include <stdlib.h>
12617 #include <stdarg.h>
12618 #include <string.h>
12619 #include <float.h>
12620 EOF
12621 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12622 { (eval echo configure:12623: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12623 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12624 if test -z "$ac_err"; then
12625 rm -rf conftest*
12626 ac_cv_header_stdc=yes
12627 else
12628 echo "$ac_err" >&5
12629 echo "configure: failed program was:" >&5
12630 cat conftest.$ac_ext >&5
12631 rm -rf conftest*
12632 ac_cv_header_stdc=no
12633 fi
12634 rm -f conftest*
12635
12636 if test $ac_cv_header_stdc = yes; then
12637 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12638 cat > conftest.$ac_ext <<EOF
12639 #line 12640 "configure"
12640 #include "confdefs.h"
12641 #include <string.h>
12642 EOF
12643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12644 egrep "memchr" >/dev/null 2>&1; then
12645 :
12646 else
12647 rm -rf conftest*
12648 ac_cv_header_stdc=no
12649 fi
12650 rm -f conftest*
12651
12652 fi
12653
12654 if test $ac_cv_header_stdc = yes; then
12655 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12656 cat > conftest.$ac_ext <<EOF
12657 #line 12658 "configure"
12658 #include "confdefs.h"
12659 #include <stdlib.h>
12660 EOF
12661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12662 egrep "free" >/dev/null 2>&1; then
12663 :
12664 else
12665 rm -rf conftest*
12666 ac_cv_header_stdc=no
12667 fi
12668 rm -f conftest*
12669
12670 fi
12671
12672 if test $ac_cv_header_stdc = yes; then
12673 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12674 if test "$cross_compiling" = yes; then
12675 :
12676 else
12677 cat > conftest.$ac_ext <<EOF
12678 #line 12679 "configure"
12679 #include "confdefs.h"
12680 #include <ctype.h>
12681 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12682 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12683 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12684 int main () { int i; for (i = 0; i < 256; i++)
12685 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
12686 exit (0); }
12687
12688 EOF
12689 if { (eval echo configure:12690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12690 then
12691 :
12692 else
12693 echo "configure: failed program was:" >&5
12694 cat conftest.$ac_ext >&5
12695 rm -fr conftest*
12696 ac_cv_header_stdc=no
12697 fi
12698 rm -fr conftest*
12699 fi
12700
12701 fi
12702 fi
12703
12704 echo "$ac_t""$ac_cv_header_stdc" 1>&6
12705 if test $ac_cv_header_stdc = yes; then
12706 cat >> confdefs.h <<\EOF
12707 #define STDC_HEADERS 1
12708 EOF
12709
12710 fi
12711
12712 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
12713 echo "configure:12714: checking for mode_t" >&5
12714 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
12715 echo $ac_n "(cached) $ac_c" 1>&6
12716 else
12717 cat > conftest.$ac_ext <<EOF
12718 #line 12719 "configure"
12719 #include "confdefs.h"
12720 #include <sys/types.h>
12721 #if STDC_HEADERS
12722 #include <stdlib.h>
12723 #include <stddef.h>
12724 #endif
12725 EOF
12726 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12727 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12728 rm -rf conftest*
12729 ac_cv_type_mode_t=yes
12730 else
12731 rm -rf conftest*
12732 ac_cv_type_mode_t=no
12733 fi
12734 rm -f conftest*
12735
12736 fi
12737 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
12738 if test $ac_cv_type_mode_t = no; then
12739 cat >> confdefs.h <<\EOF
12740 #define mode_t int
12741 EOF
12742
12743 fi
12744
12745 echo $ac_n "checking for off_t""... $ac_c" 1>&6
12746 echo "configure:12747: checking for off_t" >&5
12747 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
12748 echo $ac_n "(cached) $ac_c" 1>&6
12749 else
12750 cat > conftest.$ac_ext <<EOF
12751 #line 12752 "configure"
12752 #include "confdefs.h"
12753 #include <sys/types.h>
12754 #if STDC_HEADERS
12755 #include <stdlib.h>
12756 #include <stddef.h>
12757 #endif
12758 EOF
12759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12760 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12761 rm -rf conftest*
12762 ac_cv_type_off_t=yes
12763 else
12764 rm -rf conftest*
12765 ac_cv_type_off_t=no
12766 fi
12767 rm -f conftest*
12768
12769 fi
12770 echo "$ac_t""$ac_cv_type_off_t" 1>&6
12771 if test $ac_cv_type_off_t = no; then
12772 cat >> confdefs.h <<\EOF
12773 #define off_t long
12774 EOF
12775
12776 fi
12777
12778 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
12779 echo "configure:12780: checking for pid_t" >&5
12780 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
12781 echo $ac_n "(cached) $ac_c" 1>&6
12782 else
12783 cat > conftest.$ac_ext <<EOF
12784 #line 12785 "configure"
12785 #include "confdefs.h"
12786 #include <sys/types.h>
12787 #if STDC_HEADERS
12788 #include <stdlib.h>
12789 #include <stddef.h>
12790 #endif
12791 EOF
12792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12793 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12794 rm -rf conftest*
12795 ac_cv_type_pid_t=yes
12796 else
12797 rm -rf conftest*
12798 ac_cv_type_pid_t=no
12799 fi
12800 rm -f conftest*
12801
12802 fi
12803 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
12804 if test $ac_cv_type_pid_t = no; then
12805 cat >> confdefs.h <<\EOF
12806 #define pid_t int
12807 EOF
12808
12809 fi
12810
12811 echo $ac_n "checking for size_t""... $ac_c" 1>&6
12812 echo "configure:12813: checking for size_t" >&5
12813 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
12814 echo $ac_n "(cached) $ac_c" 1>&6
12815 else
12816 cat > conftest.$ac_ext <<EOF
12817 #line 12818 "configure"
12818 #include "confdefs.h"
12819 #include <sys/types.h>
12820 #if STDC_HEADERS
12821 #include <stdlib.h>
12822 #include <stddef.h>
12823 #endif
12824 EOF
12825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12826 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12827 rm -rf conftest*
12828 ac_cv_type_size_t=yes
12829 else
12830 rm -rf conftest*
12831 ac_cv_type_size_t=no
12832 fi
12833 rm -f conftest*
12834
12835 fi
12836 echo "$ac_t""$ac_cv_type_size_t" 1>&6
12837 if test $ac_cv_type_size_t = no; then
12838 cat >> confdefs.h <<\EOF
12839 #define size_t unsigned
12840 EOF
12841
12842 fi
12843
12844 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12845 echo "configure:12846: checking for uid_t in sys/types.h" >&5
12846 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12847 echo $ac_n "(cached) $ac_c" 1>&6
12848 else
12849 cat > conftest.$ac_ext <<EOF
12850 #line 12851 "configure"
12851 #include "confdefs.h"
12852 #include <sys/types.h>
12853 EOF
12854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12855 egrep "uid_t" >/dev/null 2>&1; then
12856 rm -rf conftest*
12857 ac_cv_type_uid_t=yes
12858 else
12859 rm -rf conftest*
12860 ac_cv_type_uid_t=no
12861 fi
12862 rm -f conftest*
12863
12864 fi
12865
12866 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12867 if test $ac_cv_type_uid_t = no; then
12868 cat >> confdefs.h <<\EOF
12869 #define uid_t int
12870 EOF
12871
12872 cat >> confdefs.h <<\EOF
12873 #define gid_t int
12874 EOF
12875
12876 fi
12877
12878
12879 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
12880 echo "configure:12881: checking for wchar_t" >&5
12881 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12882 echo $ac_n "(cached) $ac_c" 1>&6
12883 else
12884
12885 cat > conftest.$ac_ext <<EOF
12886 #line 12887 "configure"
12887 #include "confdefs.h"
12888
12889 #ifdef HAVE_WCHAR_H
12890 # ifdef __CYGWIN__
12891 # include <stddef.h>
12892 # endif
12893 # include <wchar.h>
12894 #endif
12895 #ifdef HAVE_STDLIB_H
12896 # include <stdlib.h>
12897 #endif
12898
12899 int main() {
12900
12901 wchar_t wc, *ws;
12902 wc = L'a';
12903 ws = L"Hello, world!";
12904
12905 ; return 0; }
12906 EOF
12907 if { (eval echo configure:12908: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12908 rm -rf conftest*
12909 wx_cv_type_wchar_t=yes
12910 else
12911 echo "configure: failed program was:" >&5
12912 cat conftest.$ac_ext >&5
12913 rm -rf conftest*
12914 wx_cv_type_wchar_t=no
12915
12916 fi
12917 rm -f conftest*
12918
12919 fi
12920
12921 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
12922
12923 if test "$wx_cv_type_wchar_t" = "yes"; then
12924 cat >> confdefs.h <<\EOF
12925 #define wxUSE_WCHAR_T 1
12926 EOF
12927
12928 fi
12929
12930
12931 ac_ext=C
12932 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12933 ac_cpp='$CXXCPP $CPPFLAGS'
12934 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12935 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12936 cross_compiling=$ac_cv_prog_cxx_cross
12937
12938 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
12939 echo "configure:12940: checking if size_t is unsigned int" >&5
12940 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12941 echo $ac_n "(cached) $ac_c" 1>&6
12942 else
12943 cat > conftest.$ac_ext <<EOF
12944 #line 12945 "configure"
12945 #include "confdefs.h"
12946 #include <stddef.h>
12947 int main() {
12948
12949 return 0; }
12950
12951 struct Foo { void foo(size_t); void foo(unsigned int); };
12952
12953 int bar() {
12954
12955 ; return 0; }
12956 EOF
12957 if { (eval echo configure:12958: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12958 rm -rf conftest*
12959 wx_cv_size_t_is_uint=no
12960 else
12961 echo "configure: failed program was:" >&5
12962 cat conftest.$ac_ext >&5
12963 rm -rf conftest*
12964 wx_cv_size_t_is_uint=yes
12965
12966 fi
12967 rm -f conftest*
12968
12969 fi
12970
12971 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12972
12973 if test "$wx_cv_size_t_is_uint" = "yes"; then
12974 cat >> confdefs.h <<\EOF
12975 #define wxSIZE_T_IS_UINT 1
12976 EOF
12977
12978 else
12979 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
12980 echo "configure:12981: checking if size_t is unsigned long" >&5
12981 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12982 echo $ac_n "(cached) $ac_c" 1>&6
12983 else
12984 cat > conftest.$ac_ext <<EOF
12985 #line 12986 "configure"
12986 #include "confdefs.h"
12987 #include <stddef.h>
12988 int main() {
12989
12990 return 0; }
12991
12992 struct Foo { void foo(size_t); void foo(unsigned long); };
12993
12994 int bar() {
12995
12996 ; return 0; }
12997 EOF
12998 if { (eval echo configure:12999: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12999 rm -rf conftest*
13000 wx_cv_size_t_is_ulong=no
13001 else
13002 echo "configure: failed program was:" >&5
13003 cat conftest.$ac_ext >&5
13004 rm -rf conftest*
13005 wx_cv_size_t_is_ulong=yes
13006
13007 fi
13008 rm -f conftest*
13009
13010 fi
13011
13012 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
13013
13014 if test "$wx_cv_size_t_is_ulong" = "yes"; then
13015 cat >> confdefs.h <<\EOF
13016 #define wxSIZE_T_IS_ULONG 1
13017 EOF
13018
13019 fi
13020 fi
13021
13022 ac_ext=c
13023 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13024 ac_cpp='$CPP $CPPFLAGS'
13025 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13026 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13027 cross_compiling=$ac_cv_prog_cc_cross
13028
13029
13030
13031 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
13032 echo "configure:13033: checking for pw_gecos in struct passwd" >&5
13033 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
13034 echo $ac_n "(cached) $ac_c" 1>&6
13035 else
13036
13037 cat > conftest.$ac_ext <<EOF
13038 #line 13039 "configure"
13039 #include "confdefs.h"
13040 #include <pwd.h>
13041 int main() {
13042
13043 char *p;
13044 struct passwd *pw;
13045 p = pw->pw_gecos;
13046
13047 ; return 0; }
13048 EOF
13049 if { (eval echo configure:13050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13050 rm -rf conftest*
13051
13052 wx_cv_struct_pw_gecos=yes
13053
13054 else
13055 echo "configure: failed program was:" >&5
13056 cat conftest.$ac_ext >&5
13057 rm -rf conftest*
13058
13059 wx_cv_struct_pw_gecos=no
13060
13061
13062 fi
13063 rm -f conftest*
13064
13065
13066 fi
13067
13068 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
13069
13070 if test "$wx_cv_struct_pw_gecos" = "yes"; then
13071 cat >> confdefs.h <<\EOF
13072 #define HAVE_PW_GECOS 1
13073 EOF
13074
13075 fi
13076
13077
13078 echo $ac_n "checking for working const""... $ac_c" 1>&6
13079 echo "configure:13080: checking for working const" >&5
13080 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13081 echo $ac_n "(cached) $ac_c" 1>&6
13082 else
13083 cat > conftest.$ac_ext <<EOF
13084 #line 13085 "configure"
13085 #include "confdefs.h"
13086
13087 int main() {
13088
13089 /* Ultrix mips cc rejects this. */
13090 typedef int charset[2]; const charset x;
13091 /* SunOS 4.1.1 cc rejects this. */
13092 char const *const *ccp;
13093 char **p;
13094 /* NEC SVR4.0.2 mips cc rejects this. */
13095 struct point {int x, y;};
13096 static struct point const zero = {0,0};
13097 /* AIX XL C 1.02.0.0 rejects this.
13098 It does not let you subtract one const X* pointer from another in an arm
13099 of an if-expression whose if-part is not a constant expression */
13100 const char *g = "string";
13101 ccp = &g + (g ? g-g : 0);
13102 /* HPUX 7.0 cc rejects these. */
13103 ++ccp;
13104 p = (char**) ccp;
13105 ccp = (char const *const *) p;
13106 { /* SCO 3.2v4 cc rejects this. */
13107 char *t;
13108 char const *s = 0 ? (char *) 0 : (char const *) 0;
13109
13110 *t++ = 0;
13111 }
13112 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13113 int x[] = {25, 17};
13114 const int *foo = &x[0];
13115 ++foo;
13116 }
13117 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13118 typedef const int *iptr;
13119 iptr p = 0;
13120 ++p;
13121 }
13122 { /* AIX XL C 1.02.0.0 rejects this saying
13123 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13124 struct s { int j; const int *ap[3]; };
13125 struct s *b; b->j = 5;
13126 }
13127 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13128 const int foo = 10;
13129 }
13130
13131 ; return 0; }
13132 EOF
13133 if { (eval echo configure:13134: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13134 rm -rf conftest*
13135 ac_cv_c_const=yes
13136 else
13137 echo "configure: failed program was:" >&5
13138 cat conftest.$ac_ext >&5
13139 rm -rf conftest*
13140 ac_cv_c_const=no
13141 fi
13142 rm -f conftest*
13143 fi
13144
13145 echo "$ac_t""$ac_cv_c_const" 1>&6
13146 if test $ac_cv_c_const = no; then
13147 cat >> confdefs.h <<\EOF
13148 #define const
13149 EOF
13150
13151 fi
13152
13153 echo $ac_n "checking for inline""... $ac_c" 1>&6
13154 echo "configure:13155: checking for inline" >&5
13155 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
13156 echo $ac_n "(cached) $ac_c" 1>&6
13157 else
13158 ac_cv_c_inline=no
13159 for ac_kw in inline __inline__ __inline; do
13160 cat > conftest.$ac_ext <<EOF
13161 #line 13162 "configure"
13162 #include "confdefs.h"
13163
13164 int main() {
13165 } $ac_kw foo() {
13166 ; return 0; }
13167 EOF
13168 if { (eval echo configure:13169: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13169 rm -rf conftest*
13170 ac_cv_c_inline=$ac_kw; break
13171 else
13172 echo "configure: failed program was:" >&5
13173 cat conftest.$ac_ext >&5
13174 fi
13175 rm -f conftest*
13176 done
13177
13178 fi
13179
13180 echo "$ac_t""$ac_cv_c_inline" 1>&6
13181 case "$ac_cv_c_inline" in
13182 inline | yes) ;;
13183 no) cat >> confdefs.h <<\EOF
13184 #define inline
13185 EOF
13186 ;;
13187 *) cat >> confdefs.h <<EOF
13188 #define inline $ac_cv_c_inline
13189 EOF
13190 ;;
13191 esac
13192
13193
13194 echo $ac_n "checking size of char""... $ac_c" 1>&6
13195 echo "configure:13196: checking size of char" >&5
13196 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
13197 echo $ac_n "(cached) $ac_c" 1>&6
13198 else
13199 if test "$cross_compiling" = yes; then
13200 ac_cv_sizeof_char=1
13201 else
13202 cat > conftest.$ac_ext <<EOF
13203 #line 13204 "configure"
13204 #include "confdefs.h"
13205 #include <stdio.h>
13206 main()
13207 {
13208 FILE *f=fopen("conftestval", "w");
13209 if (!f) exit(1);
13210 fprintf(f, "%d\n", sizeof(char));
13211 exit(0);
13212 }
13213 EOF
13214 if { (eval echo configure:13215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13215 then
13216 ac_cv_sizeof_char=`cat conftestval`
13217 else
13218 echo "configure: failed program was:" >&5
13219 cat conftest.$ac_ext >&5
13220 rm -fr conftest*
13221 ac_cv_sizeof_char=0
13222 fi
13223 rm -fr conftest*
13224 fi
13225
13226 fi
13227 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
13228 cat >> confdefs.h <<EOF
13229 #define SIZEOF_CHAR $ac_cv_sizeof_char
13230 EOF
13231
13232
13233 echo $ac_n "checking size of short""... $ac_c" 1>&6
13234 echo "configure:13235: checking size of short" >&5
13235 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
13236 echo $ac_n "(cached) $ac_c" 1>&6
13237 else
13238 if test "$cross_compiling" = yes; then
13239 ac_cv_sizeof_short=2
13240 else
13241 cat > conftest.$ac_ext <<EOF
13242 #line 13243 "configure"
13243 #include "confdefs.h"
13244 #include <stdio.h>
13245 main()
13246 {
13247 FILE *f=fopen("conftestval", "w");
13248 if (!f) exit(1);
13249 fprintf(f, "%d\n", sizeof(short));
13250 exit(0);
13251 }
13252 EOF
13253 if { (eval echo configure:13254: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13254 then
13255 ac_cv_sizeof_short=`cat conftestval`
13256 else
13257 echo "configure: failed program was:" >&5
13258 cat conftest.$ac_ext >&5
13259 rm -fr conftest*
13260 ac_cv_sizeof_short=0
13261 fi
13262 rm -fr conftest*
13263 fi
13264
13265 fi
13266 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13267 cat >> confdefs.h <<EOF
13268 #define SIZEOF_SHORT $ac_cv_sizeof_short
13269 EOF
13270
13271
13272 echo $ac_n "checking size of int *""... $ac_c" 1>&6
13273 echo "configure:13274: checking size of int *" >&5
13274 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
13275 echo $ac_n "(cached) $ac_c" 1>&6
13276 else
13277 if test "$cross_compiling" = yes; then
13278 ac_cv_sizeof_int_p=4
13279 else
13280 cat > conftest.$ac_ext <<EOF
13281 #line 13282 "configure"
13282 #include "confdefs.h"
13283 #include <stdio.h>
13284 main()
13285 {
13286 FILE *f=fopen("conftestval", "w");
13287 if (!f) exit(1);
13288 fprintf(f, "%d\n", sizeof(int *));
13289 exit(0);
13290 }
13291 EOF
13292 if { (eval echo configure:13293: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13293 then
13294 ac_cv_sizeof_int_p=`cat conftestval`
13295 else
13296 echo "configure: failed program was:" >&5
13297 cat conftest.$ac_ext >&5
13298 rm -fr conftest*
13299 ac_cv_sizeof_int_p=0
13300 fi
13301 rm -fr conftest*
13302 fi
13303
13304 fi
13305 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
13306 cat >> confdefs.h <<EOF
13307 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13308 EOF
13309
13310
13311 echo $ac_n "checking size of int""... $ac_c" 1>&6
13312 echo "configure:13313: checking size of int" >&5
13313 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
13314 echo $ac_n "(cached) $ac_c" 1>&6
13315 else
13316 if test "$cross_compiling" = yes; then
13317 ac_cv_sizeof_int=4
13318 else
13319 cat > conftest.$ac_ext <<EOF
13320 #line 13321 "configure"
13321 #include "confdefs.h"
13322 #include <stdio.h>
13323 main()
13324 {
13325 FILE *f=fopen("conftestval", "w");
13326 if (!f) exit(1);
13327 fprintf(f, "%d\n", sizeof(int));
13328 exit(0);
13329 }
13330 EOF
13331 if { (eval echo configure:13332: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13332 then
13333 ac_cv_sizeof_int=`cat conftestval`
13334 else
13335 echo "configure: failed program was:" >&5
13336 cat conftest.$ac_ext >&5
13337 rm -fr conftest*
13338 ac_cv_sizeof_int=0
13339 fi
13340 rm -fr conftest*
13341 fi
13342
13343 fi
13344 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13345 cat >> confdefs.h <<EOF
13346 #define SIZEOF_INT $ac_cv_sizeof_int
13347 EOF
13348
13349
13350 echo $ac_n "checking size of long""... $ac_c" 1>&6
13351 echo "configure:13352: checking size of long" >&5
13352 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
13353 echo $ac_n "(cached) $ac_c" 1>&6
13354 else
13355 if test "$cross_compiling" = yes; then
13356 ac_cv_sizeof_long=4
13357 else
13358 cat > conftest.$ac_ext <<EOF
13359 #line 13360 "configure"
13360 #include "confdefs.h"
13361 #include <stdio.h>
13362 main()
13363 {
13364 FILE *f=fopen("conftestval", "w");
13365 if (!f) exit(1);
13366 fprintf(f, "%d\n", sizeof(long));
13367 exit(0);
13368 }
13369 EOF
13370 if { (eval echo configure:13371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13371 then
13372 ac_cv_sizeof_long=`cat conftestval`
13373 else
13374 echo "configure: failed program was:" >&5
13375 cat conftest.$ac_ext >&5
13376 rm -fr conftest*
13377 ac_cv_sizeof_long=0
13378 fi
13379 rm -fr conftest*
13380 fi
13381
13382 fi
13383 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13384 cat >> confdefs.h <<EOF
13385 #define SIZEOF_LONG $ac_cv_sizeof_long
13386 EOF
13387
13388
13389 echo $ac_n "checking size of long long""... $ac_c" 1>&6
13390 echo "configure:13391: checking size of long long" >&5
13391 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
13392 echo $ac_n "(cached) $ac_c" 1>&6
13393 else
13394 if test "$cross_compiling" = yes; then
13395 ac_cv_sizeof_long_long=0
13396 else
13397 cat > conftest.$ac_ext <<EOF
13398 #line 13399 "configure"
13399 #include "confdefs.h"
13400 #include <stdio.h>
13401 main()
13402 {
13403 FILE *f=fopen("conftestval", "w");
13404 if (!f) exit(1);
13405 fprintf(f, "%d\n", sizeof(long long));
13406 exit(0);
13407 }
13408 EOF
13409 if { (eval echo configure:13410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13410 then
13411 ac_cv_sizeof_long_long=`cat conftestval`
13412 else
13413 echo "configure: failed program was:" >&5
13414 cat conftest.$ac_ext >&5
13415 rm -fr conftest*
13416 ac_cv_sizeof_long_long=0
13417 fi
13418 rm -fr conftest*
13419 fi
13420
13421 fi
13422 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
13423 cat >> confdefs.h <<EOF
13424 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13425 EOF
13426
13427
13428
13429 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
13430 echo "configure:13431: checking size of wchar_t" >&5
13431 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
13432 echo $ac_n "(cached) $ac_c" 1>&6
13433 else
13434
13435 if test "$cross_compiling" = yes; then
13436 wx_cv_sizeof_wchar_t=4
13437
13438 else
13439 cat > conftest.$ac_ext <<EOF
13440 #line 13441 "configure"
13441 #include "confdefs.h"
13442
13443 #ifdef HAVE_WCHAR_H
13444 # ifdef __CYGWIN__
13445 # include <stddef.h>
13446 # endif
13447 # include <wchar.h>
13448 #endif
13449 #ifdef HAVE_STDLIB_H
13450 # include <stdlib.h>
13451 #endif
13452 #include <stdio.h>
13453 int main()
13454 {
13455 FILE *f=fopen("conftestval", "w");
13456 if (!f) exit(1);
13457 fprintf(f, "%i", sizeof(wchar_t));
13458 exit(0);
13459 }
13460
13461 EOF
13462 if { (eval echo configure:13463: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13463 then
13464 wx_cv_sizeof_wchar_t=`cat conftestval`
13465 else
13466 echo "configure: failed program was:" >&5
13467 cat conftest.$ac_ext >&5
13468 rm -fr conftest*
13469 wx_cv_sizeof_wchar_t=0
13470 fi
13471 rm -fr conftest*
13472 fi
13473
13474
13475 fi
13476
13477 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
13478
13479 cat >> confdefs.h <<EOF
13480 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
13481 EOF
13482
13483
13484 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
13485 echo "configure:13486: checking whether byte ordering is bigendian" >&5
13486 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
13487 echo $ac_n "(cached) $ac_c" 1>&6
13488 else
13489 ac_cv_c_bigendian=unknown
13490 # See if sys/param.h defines the BYTE_ORDER macro.
13491 cat > conftest.$ac_ext <<EOF
13492 #line 13493 "configure"
13493 #include "confdefs.h"
13494 #include <sys/types.h>
13495 #include <sys/param.h>
13496 int main() {
13497
13498 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13499 bogus endian macros
13500 #endif
13501 ; return 0; }
13502 EOF
13503 if { (eval echo configure:13504: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13504 rm -rf conftest*
13505 # It does; now see whether it defined to BIG_ENDIAN or not.
13506 cat > conftest.$ac_ext <<EOF
13507 #line 13508 "configure"
13508 #include "confdefs.h"
13509 #include <sys/types.h>
13510 #include <sys/param.h>
13511 int main() {
13512
13513 #if BYTE_ORDER != BIG_ENDIAN
13514 not big endian
13515 #endif
13516 ; return 0; }
13517 EOF
13518 if { (eval echo configure:13519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13519 rm -rf conftest*
13520 ac_cv_c_bigendian=yes
13521 else
13522 echo "configure: failed program was:" >&5
13523 cat conftest.$ac_ext >&5
13524 rm -rf conftest*
13525 ac_cv_c_bigendian=no
13526 fi
13527 rm -f conftest*
13528 else
13529 echo "configure: failed program was:" >&5
13530 cat conftest.$ac_ext >&5
13531 fi
13532 rm -f conftest*
13533 if test $ac_cv_c_bigendian = unknown; then
13534 if test "$cross_compiling" = yes; then
13535 ac_cv_c_bigendian=unknown
13536 else
13537 cat > conftest.$ac_ext <<EOF
13538 #line 13539 "configure"
13539 #include "confdefs.h"
13540 main () {
13541 /* Are we little or big endian? From Harbison&Steele. */
13542 union
13543 {
13544 long l;
13545 char c[sizeof (long)];
13546 } u;
13547 u.l = 1;
13548 exit (u.c[sizeof (long) - 1] == 1);
13549 }
13550 EOF
13551 if { (eval echo configure:13552: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13552 then
13553 ac_cv_c_bigendian=no
13554 else
13555 echo "configure: failed program was:" >&5
13556 cat conftest.$ac_ext >&5
13557 rm -fr conftest*
13558 ac_cv_c_bigendian=yes
13559 fi
13560 rm -fr conftest*
13561 fi
13562
13563 fi
13564 fi
13565
13566 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13567 if test $ac_cv_c_bigendian = unknown; then
13568 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
13569 fi
13570 if test $ac_cv_c_bigendian = yes; then
13571 cat >> confdefs.h <<\EOF
13572 #define WORDS_BIGENDIAN 1
13573 EOF
13574
13575 fi
13576
13577
13578 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
13579 echo "configure:13580: checking how to run the C++ preprocessor" >&5
13580 if test -z "$CXXCPP"; then
13581 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
13582 echo $ac_n "(cached) $ac_c" 1>&6
13583 else
13584 ac_ext=C
13585 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13586 ac_cpp='$CXXCPP $CPPFLAGS'
13587 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13588 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13589 cross_compiling=$ac_cv_prog_cxx_cross
13590 CXXCPP="${CXX-g++} -E"
13591 cat > conftest.$ac_ext <<EOF
13592 #line 13593 "configure"
13593 #include "confdefs.h"
13594 #include <stdlib.h>
13595 EOF
13596 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13597 { (eval echo configure:13598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13598 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13599 if test -z "$ac_err"; then
13600 :
13601 else
13602 echo "$ac_err" >&5
13603 echo "configure: failed program was:" >&5
13604 cat conftest.$ac_ext >&5
13605 rm -rf conftest*
13606 CXXCPP=/lib/cpp
13607 fi
13608 rm -f conftest*
13609 ac_cv_prog_CXXCPP="$CXXCPP"
13610 ac_ext=C
13611 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13612 ac_cpp='$CXXCPP $CPPFLAGS'
13613 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13614 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13615 cross_compiling=$ac_cv_prog_cxx_cross
13616 fi
13617 fi
13618 CXXCPP="$ac_cv_prog_CXXCPP"
13619 echo "$ac_t""$CXXCPP" 1>&6
13620
13621
13622 if test "$cross_compiling" = "yes"; then
13623 cat >> confdefs.h <<\EOF
13624 #define wxUSE_IOSTREAMH 1
13625 EOF
13626
13627 else
13628
13629 ac_ext=C
13630 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13631 ac_cpp='$CXXCPP $CPPFLAGS'
13632 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13633 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13634 cross_compiling=$ac_cv_prog_cxx_cross
13635
13636
13637 for ac_hdr in iostream
13638 do
13639 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13640 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13641 echo "configure:13642: checking for $ac_hdr" >&5
13642 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13643 echo $ac_n "(cached) $ac_c" 1>&6
13644 else
13645 cat > conftest.$ac_ext <<EOF
13646 #line 13647 "configure"
13647 #include "confdefs.h"
13648 #include <$ac_hdr>
13649 EOF
13650 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13651 { (eval echo configure:13652: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13652 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13653 if test -z "$ac_err"; then
13654 rm -rf conftest*
13655 eval "ac_cv_header_$ac_safe=yes"
13656 else
13657 echo "$ac_err" >&5
13658 echo "configure: failed program was:" >&5
13659 cat conftest.$ac_ext >&5
13660 rm -rf conftest*
13661 eval "ac_cv_header_$ac_safe=no"
13662 fi
13663 rm -f conftest*
13664 fi
13665 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13666 echo "$ac_t""yes" 1>&6
13667 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13668 cat >> confdefs.h <<EOF
13669 #define $ac_tr_hdr 1
13670 EOF
13671
13672 else
13673 echo "$ac_t""no" 1>&6
13674 fi
13675 done
13676
13677
13678 if test "$ac_cv_header_iostream" = "yes" ; then
13679 :
13680 else
13681 cat >> confdefs.h <<\EOF
13682 #define wxUSE_IOSTREAMH 1
13683 EOF
13684
13685 fi
13686
13687 ac_ext=c
13688 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13689 ac_cpp='$CPP $CPPFLAGS'
13690 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13691 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13692 cross_compiling=$ac_cv_prog_cc_cross
13693
13694 fi
13695
13696
13697
13698 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
13699 echo "configure:13700: checking if C++ compiler supports bool" >&5
13700 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
13701 echo $ac_n "(cached) $ac_c" 1>&6
13702 else
13703
13704
13705 ac_ext=C
13706 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13707 ac_cpp='$CXXCPP $CPPFLAGS'
13708 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13709 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13710 cross_compiling=$ac_cv_prog_cxx_cross
13711
13712
13713 cat > conftest.$ac_ext <<EOF
13714 #line 13715 "configure"
13715 #include "confdefs.h"
13716
13717
13718 int main() {
13719
13720 bool b = true;
13721
13722 return 0;
13723
13724 ; return 0; }
13725 EOF
13726 if { (eval echo configure:13727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13727 rm -rf conftest*
13728
13729 wx_cv_cpp_bool=yes
13730
13731 else
13732 echo "configure: failed program was:" >&5
13733 cat conftest.$ac_ext >&5
13734 rm -rf conftest*
13735
13736 wx_cv_cpp_bool=no
13737
13738
13739 fi
13740 rm -f conftest*
13741
13742 ac_ext=c
13743 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13744 ac_cpp='$CPP $CPPFLAGS'
13745 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13746 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13747 cross_compiling=$ac_cv_prog_cc_cross
13748
13749
13750 fi
13751
13752 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
13753
13754 if test "$wx_cv_cpp_bool" = "yes"; then
13755 cat >> confdefs.h <<\EOF
13756 #define HAVE_BOOL 1
13757 EOF
13758
13759 fi
13760
13761
13762
13763 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
13764 echo "configure:13765: checking for wcslen in -lc" >&5
13765 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
13766 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13767 echo $ac_n "(cached) $ac_c" 1>&6
13768 else
13769 ac_save_LIBS="$LIBS"
13770 LIBS="-lc $LIBS"
13771 cat > conftest.$ac_ext <<EOF
13772 #line 13773 "configure"
13773 #include "confdefs.h"
13774 /* Override any gcc2 internal prototype to avoid an error. */
13775 /* We use char because int might match the return type of a gcc2
13776 builtin and then its argument prototype would still apply. */
13777 char wcslen();
13778
13779 int main() {
13780 wcslen()
13781 ; return 0; }
13782 EOF
13783 if { (eval echo configure:13784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13784 rm -rf conftest*
13785 eval "ac_cv_lib_$ac_lib_var=yes"
13786 else
13787 echo "configure: failed program was:" >&5
13788 cat conftest.$ac_ext >&5
13789 rm -rf conftest*
13790 eval "ac_cv_lib_$ac_lib_var=no"
13791 fi
13792 rm -f conftest*
13793 LIBS="$ac_save_LIBS"
13794
13795 fi
13796 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13797 echo "$ac_t""yes" 1>&6
13798
13799 cat >> confdefs.h <<\EOF
13800 #define HAVE_WCSLEN 1
13801 EOF
13802
13803 WCHAR_LINK=
13804
13805 else
13806 echo "$ac_t""no" 1>&6
13807
13808 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
13809 echo "configure:13810: checking for wcslen in -lw" >&5
13810 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
13811 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13812 echo $ac_n "(cached) $ac_c" 1>&6
13813 else
13814 ac_save_LIBS="$LIBS"
13815 LIBS="-lw $LIBS"
13816 cat > conftest.$ac_ext <<EOF
13817 #line 13818 "configure"
13818 #include "confdefs.h"
13819 /* Override any gcc2 internal prototype to avoid an error. */
13820 /* We use char because int might match the return type of a gcc2
13821 builtin and then its argument prototype would still apply. */
13822 char wcslen();
13823
13824 int main() {
13825 wcslen()
13826 ; return 0; }
13827 EOF
13828 if { (eval echo configure:13829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13829 rm -rf conftest*
13830 eval "ac_cv_lib_$ac_lib_var=yes"
13831 else
13832 echo "configure: failed program was:" >&5
13833 cat conftest.$ac_ext >&5
13834 rm -rf conftest*
13835 eval "ac_cv_lib_$ac_lib_var=no"
13836 fi
13837 rm -f conftest*
13838 LIBS="$ac_save_LIBS"
13839
13840 fi
13841 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13842 echo "$ac_t""yes" 1>&6
13843
13844 cat >> confdefs.h <<\EOF
13845 #define HAVE_WCSLEN 1
13846 EOF
13847
13848 WCHAR_LINK=" -lw"
13849
13850 else
13851 echo "$ac_t""no" 1>&6
13852
13853 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
13854 echo "configure:13855: checking for wcslen in -lmsvcrt" >&5
13855 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13856 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13857 echo $ac_n "(cached) $ac_c" 1>&6
13858 else
13859 ac_save_LIBS="$LIBS"
13860 LIBS="-lmsvcrt $LIBS"
13861 cat > conftest.$ac_ext <<EOF
13862 #line 13863 "configure"
13863 #include "confdefs.h"
13864 /* Override any gcc2 internal prototype to avoid an error. */
13865 /* We use char because int might match the return type of a gcc2
13866 builtin and then its argument prototype would still apply. */
13867 char wcslen();
13868
13869 int main() {
13870 wcslen()
13871 ; return 0; }
13872 EOF
13873 if { (eval echo configure:13874: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13874 rm -rf conftest*
13875 eval "ac_cv_lib_$ac_lib_var=yes"
13876 else
13877 echo "configure: failed program was:" >&5
13878 cat conftest.$ac_ext >&5
13879 rm -rf conftest*
13880 eval "ac_cv_lib_$ac_lib_var=no"
13881 fi
13882 rm -f conftest*
13883 LIBS="$ac_save_LIBS"
13884
13885 fi
13886 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13887 echo "$ac_t""yes" 1>&6
13888
13889 cat >> confdefs.h <<\EOF
13890 #define HAVE_WCSLEN 1
13891 EOF
13892
13893 WCHAR_LINK=
13894
13895 else
13896 echo "$ac_t""no" 1>&6
13897 fi
13898
13899
13900 fi
13901
13902
13903 fi
13904
13905
13906 for ac_func in wcsrtombs
13907 do
13908 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13909 echo "configure:13910: checking for $ac_func" >&5
13910 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13911 echo $ac_n "(cached) $ac_c" 1>&6
13912 else
13913 cat > conftest.$ac_ext <<EOF
13914 #line 13915 "configure"
13915 #include "confdefs.h"
13916 /* System header to define __stub macros and hopefully few prototypes,
13917 which can conflict with char $ac_func(); below. */
13918 #include <assert.h>
13919 /* Override any gcc2 internal prototype to avoid an error. */
13920 /* We use char because int might match the return type of a gcc2
13921 builtin and then its argument prototype would still apply. */
13922 char $ac_func();
13923
13924 int main() {
13925
13926 /* The GNU C library defines this for functions which it implements
13927 to always fail with ENOSYS. Some functions are actually named
13928 something starting with __ and the normal name is an alias. */
13929 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13930 choke me
13931 #else
13932 $ac_func();
13933 #endif
13934
13935 ; return 0; }
13936 EOF
13937 if { (eval echo configure:13938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13938 rm -rf conftest*
13939 eval "ac_cv_func_$ac_func=yes"
13940 else
13941 echo "configure: failed program was:" >&5
13942 cat conftest.$ac_ext >&5
13943 rm -rf conftest*
13944 eval "ac_cv_func_$ac_func=no"
13945 fi
13946 rm -f conftest*
13947 fi
13948
13949 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13950 echo "$ac_t""yes" 1>&6
13951 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13952 cat >> confdefs.h <<EOF
13953 #define $ac_tr_func 1
13954 EOF
13955
13956 else
13957 echo "$ac_t""no" 1>&6
13958 fi
13959 done
13960
13961
13962 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13963 echo "configure:13964: checking for vprintf" >&5
13964 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
13965 echo $ac_n "(cached) $ac_c" 1>&6
13966 else
13967 cat > conftest.$ac_ext <<EOF
13968 #line 13969 "configure"
13969 #include "confdefs.h"
13970 /* System header to define __stub macros and hopefully few prototypes,
13971 which can conflict with char vprintf(); below. */
13972 #include <assert.h>
13973 /* Override any gcc2 internal prototype to avoid an error. */
13974 /* We use char because int might match the return type of a gcc2
13975 builtin and then its argument prototype would still apply. */
13976 char vprintf();
13977
13978 int main() {
13979
13980 /* The GNU C library defines this for functions which it implements
13981 to always fail with ENOSYS. Some functions are actually named
13982 something starting with __ and the normal name is an alias. */
13983 #if defined (__stub_vprintf) || defined (__stub___vprintf)
13984 choke me
13985 #else
13986 vprintf();
13987 #endif
13988
13989 ; return 0; }
13990 EOF
13991 if { (eval echo configure:13992: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13992 rm -rf conftest*
13993 eval "ac_cv_func_vprintf=yes"
13994 else
13995 echo "configure: failed program was:" >&5
13996 cat conftest.$ac_ext >&5
13997 rm -rf conftest*
13998 eval "ac_cv_func_vprintf=no"
13999 fi
14000 rm -f conftest*
14001 fi
14002
14003 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14004 echo "$ac_t""yes" 1>&6
14005 cat >> confdefs.h <<\EOF
14006 #define HAVE_VPRINTF 1
14007 EOF
14008
14009 else
14010 echo "$ac_t""no" 1>&6
14011 fi
14012
14013 if test "$ac_cv_func_vprintf" != yes; then
14014 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
14015 echo "configure:14016: checking for _doprnt" >&5
14016 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
14017 echo $ac_n "(cached) $ac_c" 1>&6
14018 else
14019 cat > conftest.$ac_ext <<EOF
14020 #line 14021 "configure"
14021 #include "confdefs.h"
14022 /* System header to define __stub macros and hopefully few prototypes,
14023 which can conflict with char _doprnt(); below. */
14024 #include <assert.h>
14025 /* Override any gcc2 internal prototype to avoid an error. */
14026 /* We use char because int might match the return type of a gcc2
14027 builtin and then its argument prototype would still apply. */
14028 char _doprnt();
14029
14030 int main() {
14031
14032 /* The GNU C library defines this for functions which it implements
14033 to always fail with ENOSYS. Some functions are actually named
14034 something starting with __ and the normal name is an alias. */
14035 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14036 choke me
14037 #else
14038 _doprnt();
14039 #endif
14040
14041 ; return 0; }
14042 EOF
14043 if { (eval echo configure:14044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14044 rm -rf conftest*
14045 eval "ac_cv_func__doprnt=yes"
14046 else
14047 echo "configure: failed program was:" >&5
14048 cat conftest.$ac_ext >&5
14049 rm -rf conftest*
14050 eval "ac_cv_func__doprnt=no"
14051 fi
14052 rm -f conftest*
14053 fi
14054
14055 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
14056 echo "$ac_t""yes" 1>&6
14057 cat >> confdefs.h <<\EOF
14058 #define HAVE_DOPRNT 1
14059 EOF
14060
14061 else
14062 echo "$ac_t""no" 1>&6
14063 fi
14064
14065 fi
14066
14067
14068
14069
14070
14071
14072 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
14073 echo "configure:14074: checking for vsnprintf" >&5
14074 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
14075 echo $ac_n "(cached) $ac_c" 1>&6
14076 else
14077
14078 cat > conftest.$ac_ext <<EOF
14079 #line 14080 "configure"
14080 #include "confdefs.h"
14081
14082 #include <stdio.h>
14083 #include <stdarg.h>
14084
14085 int main() {
14086
14087 int wx_test_vsnprintf(const char *, ...);
14088
14089 wx_test_vsnprintf("%s");
14090 return 0;
14091 }
14092
14093 int wx_test_vsnprintf(const char *fmt, ...)
14094 {
14095 char *s;
14096
14097 va_list argp;
14098 va_start(argp, fmt);
14099 vsnprintf(s, 42, fmt, argp);
14100 va_end(argp);
14101
14102 ; return 0; }
14103 EOF
14104 if { (eval echo configure:14105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14105 rm -rf conftest*
14106
14107 wx_cv_func_vsnprintf=yes
14108
14109 else
14110 echo "configure: failed program was:" >&5
14111 cat conftest.$ac_ext >&5
14112 rm -rf conftest*
14113
14114 cat > conftest.$ac_ext <<EOF
14115 #line 14116 "configure"
14116 #include "confdefs.h"
14117
14118 #include <stdio.h>
14119 #include <stdarg.h>
14120
14121 int main() {
14122
14123 int wx_test_vsnprintf(const char *, ...);
14124
14125 wx_test_vsnprintf("%s");
14126 return 0;
14127 }
14128
14129 int wx_test_vsnprintf(const char *fmt, ...)
14130 {
14131 char *s;
14132
14133 va_list argp;
14134 va_start(argp, fmt);
14135 _vsnprintf(s, 42, fmt, argp);
14136 va_end(argp);
14137
14138 ; return 0; }
14139 EOF
14140 if { (eval echo configure:14141: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14141 rm -rf conftest*
14142
14143 wx_cv_func_vsnprintf=yes
14144
14145 else
14146 echo "configure: failed program was:" >&5
14147 cat conftest.$ac_ext >&5
14148 rm -rf conftest*
14149
14150 wx_cv_func_vsnprintf=no
14151
14152 fi
14153 rm -f conftest*
14154
14155 fi
14156 rm -f conftest*
14157
14158 fi
14159
14160 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
14161
14162 if test "$wx_cv_func_vsnprintf" = yes; then
14163 cat >> confdefs.h <<\EOF
14164 #define HAVE_VSNPRINTF 1
14165 EOF
14166
14167 else
14168 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
14169 fi
14170
14171 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
14172 echo "configure:14173: checking for vsscanf" >&5
14173 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
14174 echo $ac_n "(cached) $ac_c" 1>&6
14175 else
14176
14177 cat > conftest.$ac_ext <<EOF
14178 #line 14179 "configure"
14179 #include "confdefs.h"
14180
14181 #include <stdio.h>
14182 #include <stdarg.h>
14183
14184 int main() {
14185
14186 int wx_test_vsscanf(const char *, ...);
14187
14188 wx_test_vsscanf("%d");
14189 return 0;
14190 }
14191
14192 int wx_test_vsscanf(const char *fmt, ...)
14193 {
14194 va_list argp;
14195 va_start(argp, fmt);
14196 vsscanf("42", fmt, argp);
14197 va_end(argp);
14198
14199 ; return 0; }
14200 EOF
14201 if { (eval echo configure:14202: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14202 rm -rf conftest*
14203
14204 wx_cv_func_vsscanf=yes
14205
14206 else
14207 echo "configure: failed program was:" >&5
14208 cat conftest.$ac_ext >&5
14209 rm -rf conftest*
14210
14211 wx_cv_func_vsscanf=no
14212
14213 fi
14214 rm -f conftest*
14215
14216 fi
14217
14218 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
14219
14220 if test "$wx_cv_func_vsscanf" = yes; then
14221 cat >> confdefs.h <<\EOF
14222 #define HAVE_VSSCANF 1
14223 EOF
14224
14225 fi
14226
14227 if test "$TOOLKIT" != "MSW"; then
14228
14229
14230
14231 ac_ext=C
14232 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14233 ac_cpp='$CXXCPP $CPPFLAGS'
14234 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14235 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14236 cross_compiling=$ac_cv_prog_cxx_cross
14237
14238 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
14239 echo "configure:14240: checking if iconv() takes char**" >&5
14240 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
14241 echo $ac_n "(cached) $ac_c" 1>&6
14242 else
14243
14244 cat > conftest.$ac_ext <<EOF
14245 #line 14246 "configure"
14246 #include "confdefs.h"
14247 #include <iconv.h>
14248 int main() {
14249
14250 char **inbuf, **outbuf;
14251 iconv_t cd;
14252 size_t insz, outsz;
14253 iconv(cd, inbuf, &insz, outbuf, &outsz);
14254
14255 ; return 0; }
14256 EOF
14257 if { (eval echo configure:14258: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14258 rm -rf conftest*
14259 wx_cv_iconv_takes_char=yes
14260 else
14261 echo "configure: failed program was:" >&5
14262 cat conftest.$ac_ext >&5
14263 rm -rf conftest*
14264 wx_cv_iconv_takes_char=no
14265 fi
14266 rm -f conftest*
14267
14268 fi
14269
14270 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
14271 ac_ext=c
14272 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14273 ac_cpp='$CPP $CPPFLAGS'
14274 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14275 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14276 cross_compiling=$ac_cv_prog_cc_cross
14277
14278 if test "$wx_cv_iconv_takes_char" = yes ; then
14279 cat >> confdefs.h <<\EOF
14280 #define WX_ICONV_TAKES_CHAR 1
14281 EOF
14282
14283 fi
14284
14285
14286 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
14287 for ac_func in sigaction
14288 do
14289 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14290 echo "configure:14291: checking for $ac_func" >&5
14291 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14292 echo $ac_n "(cached) $ac_c" 1>&6
14293 else
14294 cat > conftest.$ac_ext <<EOF
14295 #line 14296 "configure"
14296 #include "confdefs.h"
14297 /* System header to define __stub macros and hopefully few prototypes,
14298 which can conflict with char $ac_func(); below. */
14299 #include <assert.h>
14300 /* Override any gcc2 internal prototype to avoid an error. */
14301 /* We use char because int might match the return type of a gcc2
14302 builtin and then its argument prototype would still apply. */
14303 char $ac_func();
14304
14305 int main() {
14306
14307 /* The GNU C library defines this for functions which it implements
14308 to always fail with ENOSYS. Some functions are actually named
14309 something starting with __ and the normal name is an alias. */
14310 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14311 choke me
14312 #else
14313 $ac_func();
14314 #endif
14315
14316 ; return 0; }
14317 EOF
14318 if { (eval echo configure:14319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14319 rm -rf conftest*
14320 eval "ac_cv_func_$ac_func=yes"
14321 else
14322 echo "configure: failed program was:" >&5
14323 cat conftest.$ac_ext >&5
14324 rm -rf conftest*
14325 eval "ac_cv_func_$ac_func=no"
14326 fi
14327 rm -f conftest*
14328 fi
14329
14330 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14331 echo "$ac_t""yes" 1>&6
14332 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14333 cat >> confdefs.h <<EOF
14334 #define $ac_tr_func 1
14335 EOF
14336
14337 else
14338 echo "$ac_t""no" 1>&6
14339 fi
14340 done
14341
14342
14343 if test "$ac_cv_func_sigaction" = "no"; then
14344 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
14345 wxUSE_ON_FATAL_EXCEPTION=no
14346 fi
14347
14348 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
14349
14350 ac_ext=C
14351 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14352 ac_cpp='$CXXCPP $CPPFLAGS'
14353 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14354 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14355 cross_compiling=$ac_cv_prog_cxx_cross
14356
14357
14358 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
14359 echo "configure:14360: checking for sa_handler type" >&5
14360 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
14361 echo $ac_n "(cached) $ac_c" 1>&6
14362 else
14363
14364 cat > conftest.$ac_ext <<EOF
14365 #line 14366 "configure"
14366 #include "confdefs.h"
14367 #include <signal.h>
14368 int main() {
14369
14370 extern void testSigHandler(int);
14371
14372 struct sigaction sa;
14373 sa.sa_handler = testSigHandler;
14374
14375 ; return 0; }
14376 EOF
14377 if { (eval echo configure:14378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14378 rm -rf conftest*
14379
14380 wx_cv_type_sa_handler=int
14381
14382 else
14383 echo "configure: failed program was:" >&5
14384 cat conftest.$ac_ext >&5
14385 rm -rf conftest*
14386
14387 wx_cv_type_sa_handler=void
14388
14389 fi
14390 rm -f conftest*
14391
14392 fi
14393
14394 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
14395
14396 ac_ext=c
14397 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14398 ac_cpp='$CPP $CPPFLAGS'
14399 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14400 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14401 cross_compiling=$ac_cv_prog_cc_cross
14402
14403
14404 cat >> confdefs.h <<EOF
14405 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
14406 EOF
14407
14408 fi
14409 fi
14410
14411 for ac_func in vfork
14412 do
14413 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14414 echo "configure:14415: checking for $ac_func" >&5
14415 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14416 echo $ac_n "(cached) $ac_c" 1>&6
14417 else
14418 cat > conftest.$ac_ext <<EOF
14419 #line 14420 "configure"
14420 #include "confdefs.h"
14421 /* System header to define __stub macros and hopefully few prototypes,
14422 which can conflict with char $ac_func(); below. */
14423 #include <assert.h>
14424 /* Override any gcc2 internal prototype to avoid an error. */
14425 /* We use char because int might match the return type of a gcc2
14426 builtin and then its argument prototype would still apply. */
14427 char $ac_func();
14428
14429 int main() {
14430
14431 /* The GNU C library defines this for functions which it implements
14432 to always fail with ENOSYS. Some functions are actually named
14433 something starting with __ and the normal name is an alias. */
14434 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14435 choke me
14436 #else
14437 $ac_func();
14438 #endif
14439
14440 ; return 0; }
14441 EOF
14442 if { (eval echo configure:14443: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14443 rm -rf conftest*
14444 eval "ac_cv_func_$ac_func=yes"
14445 else
14446 echo "configure: failed program was:" >&5
14447 cat conftest.$ac_ext >&5
14448 rm -rf conftest*
14449 eval "ac_cv_func_$ac_func=no"
14450 fi
14451 rm -f conftest*
14452 fi
14453
14454 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14455 echo "$ac_t""yes" 1>&6
14456 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14457 cat >> confdefs.h <<EOF
14458 #define $ac_tr_func 1
14459 EOF
14460
14461 else
14462 echo "$ac_t""no" 1>&6
14463 fi
14464 done
14465
14466
14467 echo $ac_n "checking for statfs""... $ac_c" 1>&6
14468 echo "configure:14469: checking for statfs" >&5
14469 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
14470 echo $ac_n "(cached) $ac_c" 1>&6
14471 else
14472 cat > conftest.$ac_ext <<EOF
14473 #line 14474 "configure"
14474 #include "confdefs.h"
14475
14476 #if defined(__BSD__)
14477 #include <sys/param.h>
14478 #include <sys/mount.h>
14479 #else
14480 #include <sys/vfs.h>
14481 #endif
14482
14483 int main() {
14484
14485 long l;
14486 struct statfs fs;
14487 statfs("/", &fs);
14488 l = fs.f_bsize;
14489 l += fs.f_blocks;
14490 l += fs.f_bavail;
14491
14492 ; return 0; }
14493 EOF
14494 if { (eval echo configure:14495: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14495 rm -rf conftest*
14496
14497 wx_cv_func_statfs=yes
14498
14499 else
14500 echo "configure: failed program was:" >&5
14501 cat conftest.$ac_ext >&5
14502 rm -rf conftest*
14503
14504 wx_cv_func_statfs=no
14505
14506
14507 fi
14508 rm -f conftest*
14509
14510 fi
14511
14512 echo "$ac_t""$wx_cv_func_statfs" 1>&6
14513
14514 if test "$wx_cv_func_statfs" = "yes"; then
14515 cat >> confdefs.h <<\EOF
14516 #define HAVE_STATFS 1
14517 EOF
14518
14519 else
14520 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
14521 echo "configure:14522: checking for statvfs" >&5
14522 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
14523 echo $ac_n "(cached) $ac_c" 1>&6
14524 else
14525 cat > conftest.$ac_ext <<EOF
14526 #line 14527 "configure"
14527 #include "confdefs.h"
14528
14529 #include <sys/statvfs.h>
14530
14531 int main() {
14532
14533 long l;
14534 struct statvfs fs;
14535 statvfs("/", &fs);
14536 l = fs.f_bsize;
14537 l += fs.f_blocks;
14538 l += fs.f_bavail;
14539
14540 ; return 0; }
14541 EOF
14542 if { (eval echo configure:14543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14543 rm -rf conftest*
14544
14545 wx_cv_func_statvfs=yes
14546
14547 else
14548 echo "configure: failed program was:" >&5
14549 cat conftest.$ac_ext >&5
14550 rm -rf conftest*
14551
14552 wx_cv_func_statvfs=no
14553
14554
14555 fi
14556 rm -f conftest*
14557
14558 fi
14559
14560 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
14561
14562 if test "$wx_cv_func_statvfs" = "yes"; then
14563 cat >> confdefs.h <<\EOF
14564 #define HAVE_STATVFS 1
14565 EOF
14566
14567 else
14568 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
14569 fi
14570 fi
14571
14572 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
14573 for ac_func in fcntl flock
14574 do
14575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14576 echo "configure:14577: checking for $ac_func" >&5
14577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14578 echo $ac_n "(cached) $ac_c" 1>&6
14579 else
14580 cat > conftest.$ac_ext <<EOF
14581 #line 14582 "configure"
14582 #include "confdefs.h"
14583 /* System header to define __stub macros and hopefully few prototypes,
14584 which can conflict with char $ac_func(); below. */
14585 #include <assert.h>
14586 /* Override any gcc2 internal prototype to avoid an error. */
14587 /* We use char because int might match the return type of a gcc2
14588 builtin and then its argument prototype would still apply. */
14589 char $ac_func();
14590
14591 int main() {
14592
14593 /* The GNU C library defines this for functions which it implements
14594 to always fail with ENOSYS. Some functions are actually named
14595 something starting with __ and the normal name is an alias. */
14596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14597 choke me
14598 #else
14599 $ac_func();
14600 #endif
14601
14602 ; return 0; }
14603 EOF
14604 if { (eval echo configure:14605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14605 rm -rf conftest*
14606 eval "ac_cv_func_$ac_func=yes"
14607 else
14608 echo "configure: failed program was:" >&5
14609 cat conftest.$ac_ext >&5
14610 rm -rf conftest*
14611 eval "ac_cv_func_$ac_func=no"
14612 fi
14613 rm -f conftest*
14614 fi
14615
14616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14617 echo "$ac_t""yes" 1>&6
14618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14619 cat >> confdefs.h <<EOF
14620 #define $ac_tr_func 1
14621 EOF
14622 break
14623 else
14624 echo "$ac_t""no" 1>&6
14625 fi
14626 done
14627
14628
14629 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
14630 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
14631 wxUSE_SNGLINST_CHECKER=no
14632 fi
14633 fi
14634
14635 for ac_func in timegm
14636 do
14637 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14638 echo "configure:14639: checking for $ac_func" >&5
14639 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14640 echo $ac_n "(cached) $ac_c" 1>&6
14641 else
14642 cat > conftest.$ac_ext <<EOF
14643 #line 14644 "configure"
14644 #include "confdefs.h"
14645 /* System header to define __stub macros and hopefully few prototypes,
14646 which can conflict with char $ac_func(); below. */
14647 #include <assert.h>
14648 /* Override any gcc2 internal prototype to avoid an error. */
14649 /* We use char because int might match the return type of a gcc2
14650 builtin and then its argument prototype would still apply. */
14651 char $ac_func();
14652
14653 int main() {
14654
14655 /* The GNU C library defines this for functions which it implements
14656 to always fail with ENOSYS. Some functions are actually named
14657 something starting with __ and the normal name is an alias. */
14658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14659 choke me
14660 #else
14661 $ac_func();
14662 #endif
14663
14664 ; return 0; }
14665 EOF
14666 if { (eval echo configure:14667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14667 rm -rf conftest*
14668 eval "ac_cv_func_$ac_func=yes"
14669 else
14670 echo "configure: failed program was:" >&5
14671 cat conftest.$ac_ext >&5
14672 rm -rf conftest*
14673 eval "ac_cv_func_$ac_func=no"
14674 fi
14675 rm -f conftest*
14676 fi
14677
14678 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14679 echo "$ac_t""yes" 1>&6
14680 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14681 cat >> confdefs.h <<EOF
14682 #define $ac_tr_func 1
14683 EOF
14684
14685 else
14686 echo "$ac_t""no" 1>&6
14687 fi
14688 done
14689
14690
14691 for ac_func in putenv setenv
14692 do
14693 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14694 echo "configure:14695: checking for $ac_func" >&5
14695 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14696 echo $ac_n "(cached) $ac_c" 1>&6
14697 else
14698 cat > conftest.$ac_ext <<EOF
14699 #line 14700 "configure"
14700 #include "confdefs.h"
14701 /* System header to define __stub macros and hopefully few prototypes,
14702 which can conflict with char $ac_func(); below. */
14703 #include <assert.h>
14704 /* Override any gcc2 internal prototype to avoid an error. */
14705 /* We use char because int might match the return type of a gcc2
14706 builtin and then its argument prototype would still apply. */
14707 char $ac_func();
14708
14709 int main() {
14710
14711 /* The GNU C library defines this for functions which it implements
14712 to always fail with ENOSYS. Some functions are actually named
14713 something starting with __ and the normal name is an alias. */
14714 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14715 choke me
14716 #else
14717 $ac_func();
14718 #endif
14719
14720 ; return 0; }
14721 EOF
14722 if { (eval echo configure:14723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14723 rm -rf conftest*
14724 eval "ac_cv_func_$ac_func=yes"
14725 else
14726 echo "configure: failed program was:" >&5
14727 cat conftest.$ac_ext >&5
14728 rm -rf conftest*
14729 eval "ac_cv_func_$ac_func=no"
14730 fi
14731 rm -f conftest*
14732 fi
14733
14734 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14735 echo "$ac_t""yes" 1>&6
14736 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14737 cat >> confdefs.h <<EOF
14738 #define $ac_tr_func 1
14739 EOF
14740 break
14741 else
14742 echo "$ac_t""no" 1>&6
14743 fi
14744 done
14745
14746
14747 HAVE_SOME_SLEEP_FUNC=0
14748 if test "$USE_BEOS" = 1; then
14749 cat >> confdefs.h <<\EOF
14750 #define HAVE_SLEEP 1
14751 EOF
14752
14753 HAVE_SOME_SLEEP_FUNC=1
14754 fi
14755
14756 if test "$USE_DARWIN" = 1; then
14757 cat >> confdefs.h <<\EOF
14758 #define HAVE_USLEEP 1
14759 EOF
14760
14761 HAVE_SOME_SLEEP_FUNC=1
14762 fi
14763
14764 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
14765 POSIX4_LINK=
14766 for ac_func in nanosleep
14767 do
14768 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14769 echo "configure:14770: checking for $ac_func" >&5
14770 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14771 echo $ac_n "(cached) $ac_c" 1>&6
14772 else
14773 cat > conftest.$ac_ext <<EOF
14774 #line 14775 "configure"
14775 #include "confdefs.h"
14776 /* System header to define __stub macros and hopefully few prototypes,
14777 which can conflict with char $ac_func(); below. */
14778 #include <assert.h>
14779 /* Override any gcc2 internal prototype to avoid an error. */
14780 /* We use char because int might match the return type of a gcc2
14781 builtin and then its argument prototype would still apply. */
14782 char $ac_func();
14783
14784 int main() {
14785
14786 /* The GNU C library defines this for functions which it implements
14787 to always fail with ENOSYS. Some functions are actually named
14788 something starting with __ and the normal name is an alias. */
14789 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14790 choke me
14791 #else
14792 $ac_func();
14793 #endif
14794
14795 ; return 0; }
14796 EOF
14797 if { (eval echo configure:14798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14798 rm -rf conftest*
14799 eval "ac_cv_func_$ac_func=yes"
14800 else
14801 echo "configure: failed program was:" >&5
14802 cat conftest.$ac_ext >&5
14803 rm -rf conftest*
14804 eval "ac_cv_func_$ac_func=no"
14805 fi
14806 rm -f conftest*
14807 fi
14808
14809 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14810 echo "$ac_t""yes" 1>&6
14811 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14812 cat >> confdefs.h <<EOF
14813 #define $ac_tr_func 1
14814 EOF
14815 cat >> confdefs.h <<\EOF
14816 #define HAVE_NANOSLEEP 1
14817 EOF
14818
14819 else
14820 echo "$ac_t""no" 1>&6
14821 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
14822 echo "configure:14823: checking for nanosleep in -lposix4" >&5
14823 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
14824 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14825 echo $ac_n "(cached) $ac_c" 1>&6
14826 else
14827 ac_save_LIBS="$LIBS"
14828 LIBS="-lposix4 $LIBS"
14829 cat > conftest.$ac_ext <<EOF
14830 #line 14831 "configure"
14831 #include "confdefs.h"
14832 /* Override any gcc2 internal prototype to avoid an error. */
14833 /* We use char because int might match the return type of a gcc2
14834 builtin and then its argument prototype would still apply. */
14835 char nanosleep();
14836
14837 int main() {
14838 nanosleep()
14839 ; return 0; }
14840 EOF
14841 if { (eval echo configure:14842: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14842 rm -rf conftest*
14843 eval "ac_cv_lib_$ac_lib_var=yes"
14844 else
14845 echo "configure: failed program was:" >&5
14846 cat conftest.$ac_ext >&5
14847 rm -rf conftest*
14848 eval "ac_cv_lib_$ac_lib_var=no"
14849 fi
14850 rm -f conftest*
14851 LIBS="$ac_save_LIBS"
14852
14853 fi
14854 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14855 echo "$ac_t""yes" 1>&6
14856
14857 cat >> confdefs.h <<\EOF
14858 #define HAVE_NANOSLEEP 1
14859 EOF
14860
14861 POSIX4_LINK=" -lposix4"
14862
14863 else
14864 echo "$ac_t""no" 1>&6
14865
14866 for ac_func in usleep
14867 do
14868 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14869 echo "configure:14870: checking for $ac_func" >&5
14870 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14871 echo $ac_n "(cached) $ac_c" 1>&6
14872 else
14873 cat > conftest.$ac_ext <<EOF
14874 #line 14875 "configure"
14875 #include "confdefs.h"
14876 /* System header to define __stub macros and hopefully few prototypes,
14877 which can conflict with char $ac_func(); below. */
14878 #include <assert.h>
14879 /* Override any gcc2 internal prototype to avoid an error. */
14880 /* We use char because int might match the return type of a gcc2
14881 builtin and then its argument prototype would still apply. */
14882 char $ac_func();
14883
14884 int main() {
14885
14886 /* The GNU C library defines this for functions which it implements
14887 to always fail with ENOSYS. Some functions are actually named
14888 something starting with __ and the normal name is an alias. */
14889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14890 choke me
14891 #else
14892 $ac_func();
14893 #endif
14894
14895 ; return 0; }
14896 EOF
14897 if { (eval echo configure:14898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14898 rm -rf conftest*
14899 eval "ac_cv_func_$ac_func=yes"
14900 else
14901 echo "configure: failed program was:" >&5
14902 cat conftest.$ac_ext >&5
14903 rm -rf conftest*
14904 eval "ac_cv_func_$ac_func=no"
14905 fi
14906 rm -f conftest*
14907 fi
14908
14909 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14910 echo "$ac_t""yes" 1>&6
14911 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14912 cat >> confdefs.h <<EOF
14913 #define $ac_tr_func 1
14914 EOF
14915 cat >> confdefs.h <<\EOF
14916 #define HAVE_USLEEP 1
14917 EOF
14918
14919 else
14920 echo "$ac_t""no" 1>&6
14921 echo "configure: warning: wxSleep() function will not work" 1>&2
14922
14923 fi
14924 done
14925
14926
14927
14928 fi
14929
14930
14931
14932 fi
14933 done
14934
14935 fi
14936
14937 for ac_func in uname gethostname
14938 do
14939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14940 echo "configure:14941: checking for $ac_func" >&5
14941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14942 echo $ac_n "(cached) $ac_c" 1>&6
14943 else
14944 cat > conftest.$ac_ext <<EOF
14945 #line 14946 "configure"
14946 #include "confdefs.h"
14947 /* System header to define __stub macros and hopefully few prototypes,
14948 which can conflict with char $ac_func(); below. */
14949 #include <assert.h>
14950 /* Override any gcc2 internal prototype to avoid an error. */
14951 /* We use char because int might match the return type of a gcc2
14952 builtin and then its argument prototype would still apply. */
14953 char $ac_func();
14954
14955 int main() {
14956
14957 /* The GNU C library defines this for functions which it implements
14958 to always fail with ENOSYS. Some functions are actually named
14959 something starting with __ and the normal name is an alias. */
14960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14961 choke me
14962 #else
14963 $ac_func();
14964 #endif
14965
14966 ; return 0; }
14967 EOF
14968 if { (eval echo configure:14969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14969 rm -rf conftest*
14970 eval "ac_cv_func_$ac_func=yes"
14971 else
14972 echo "configure: failed program was:" >&5
14973 cat conftest.$ac_ext >&5
14974 rm -rf conftest*
14975 eval "ac_cv_func_$ac_func=no"
14976 fi
14977 rm -f conftest*
14978 fi
14979
14980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14981 echo "$ac_t""yes" 1>&6
14982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14983 cat >> confdefs.h <<EOF
14984 #define $ac_tr_func 1
14985 EOF
14986 break
14987 else
14988 echo "$ac_t""no" 1>&6
14989 fi
14990 done
14991
14992
14993
14994 ac_ext=C
14995 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14996 ac_cpp='$CXXCPP $CPPFLAGS'
14997 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14998 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14999 cross_compiling=$ac_cv_prog_cxx_cross
15000
15001
15002 for ac_func in strtok_r
15003 do
15004 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15005 echo "configure:15006: checking for $ac_func" >&5
15006 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15007 echo $ac_n "(cached) $ac_c" 1>&6
15008 else
15009 cat > conftest.$ac_ext <<EOF
15010 #line 15011 "configure"
15011 #include "confdefs.h"
15012 /* System header to define __stub macros and hopefully few prototypes,
15013 which can conflict with char $ac_func(); below. */
15014 #include <assert.h>
15015 /* Override any gcc2 internal prototype to avoid an error. */
15016 #ifdef __cplusplus
15017 extern "C"
15018 #endif
15019 /* We use char because int might match the return type of a gcc2
15020 builtin and then its argument prototype would still apply. */
15021 char $ac_func();
15022
15023 int main() {
15024
15025 /* The GNU C library defines this for functions which it implements
15026 to always fail with ENOSYS. Some functions are actually named
15027 something starting with __ and the normal name is an alias. */
15028 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15029 choke me
15030 #else
15031 $ac_func();
15032 #endif
15033
15034 ; return 0; }
15035 EOF
15036 if { (eval echo configure:15037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15037 rm -rf conftest*
15038 eval "ac_cv_func_$ac_func=yes"
15039 else
15040 echo "configure: failed program was:" >&5
15041 cat conftest.$ac_ext >&5
15042 rm -rf conftest*
15043 eval "ac_cv_func_$ac_func=no"
15044 fi
15045 rm -f conftest*
15046 fi
15047
15048 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15049 echo "$ac_t""yes" 1>&6
15050 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15051 cat >> confdefs.h <<EOF
15052 #define $ac_tr_func 1
15053 EOF
15054
15055 else
15056 echo "$ac_t""no" 1>&6
15057 fi
15058 done
15059
15060
15061 ac_ext=c
15062 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15063 ac_cpp='$CPP $CPPFLAGS'
15064 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15065 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15066 cross_compiling=$ac_cv_prog_cc_cross
15067
15068
15069 INET_LINK=
15070 for ac_func in inet_addr
15071 do
15072 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15073 echo "configure:15074: checking for $ac_func" >&5
15074 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15075 echo $ac_n "(cached) $ac_c" 1>&6
15076 else
15077 cat > conftest.$ac_ext <<EOF
15078 #line 15079 "configure"
15079 #include "confdefs.h"
15080 /* System header to define __stub macros and hopefully few prototypes,
15081 which can conflict with char $ac_func(); below. */
15082 #include <assert.h>
15083 /* Override any gcc2 internal prototype to avoid an error. */
15084 /* We use char because int might match the return type of a gcc2
15085 builtin and then its argument prototype would still apply. */
15086 char $ac_func();
15087
15088 int main() {
15089
15090 /* The GNU C library defines this for functions which it implements
15091 to always fail with ENOSYS. Some functions are actually named
15092 something starting with __ and the normal name is an alias. */
15093 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15094 choke me
15095 #else
15096 $ac_func();
15097 #endif
15098
15099 ; return 0; }
15100 EOF
15101 if { (eval echo configure:15102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15102 rm -rf conftest*
15103 eval "ac_cv_func_$ac_func=yes"
15104 else
15105 echo "configure: failed program was:" >&5
15106 cat conftest.$ac_ext >&5
15107 rm -rf conftest*
15108 eval "ac_cv_func_$ac_func=no"
15109 fi
15110 rm -f conftest*
15111 fi
15112
15113 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15114 echo "$ac_t""yes" 1>&6
15115 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15116 cat >> confdefs.h <<EOF
15117 #define $ac_tr_func 1
15118 EOF
15119 cat >> confdefs.h <<\EOF
15120 #define HAVE_INET_ADDR 1
15121 EOF
15122
15123 else
15124 echo "$ac_t""no" 1>&6
15125 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
15126 echo "configure:15127: checking for inet_addr in -lnsl" >&5
15127 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
15128 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15129 echo $ac_n "(cached) $ac_c" 1>&6
15130 else
15131 ac_save_LIBS="$LIBS"
15132 LIBS="-lnsl $LIBS"
15133 cat > conftest.$ac_ext <<EOF
15134 #line 15135 "configure"
15135 #include "confdefs.h"
15136 /* Override any gcc2 internal prototype to avoid an error. */
15137 /* We use char because int might match the return type of a gcc2
15138 builtin and then its argument prototype would still apply. */
15139 char inet_addr();
15140
15141 int main() {
15142 inet_addr()
15143 ; return 0; }
15144 EOF
15145 if { (eval echo configure:15146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15146 rm -rf conftest*
15147 eval "ac_cv_lib_$ac_lib_var=yes"
15148 else
15149 echo "configure: failed program was:" >&5
15150 cat conftest.$ac_ext >&5
15151 rm -rf conftest*
15152 eval "ac_cv_lib_$ac_lib_var=no"
15153 fi
15154 rm -f conftest*
15155 LIBS="$ac_save_LIBS"
15156
15157 fi
15158 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15159 echo "$ac_t""yes" 1>&6
15160 INET_LINK="nsl"
15161 else
15162 echo "$ac_t""no" 1>&6
15163 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
15164 echo "configure:15165: checking for inet_addr in -lresolv" >&5
15165 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
15166 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15167 echo $ac_n "(cached) $ac_c" 1>&6
15168 else
15169 ac_save_LIBS="$LIBS"
15170 LIBS="-lresolv $LIBS"
15171 cat > conftest.$ac_ext <<EOF
15172 #line 15173 "configure"
15173 #include "confdefs.h"
15174 /* Override any gcc2 internal prototype to avoid an error. */
15175 /* We use char because int might match the return type of a gcc2
15176 builtin and then its argument prototype would still apply. */
15177 char inet_addr();
15178
15179 int main() {
15180 inet_addr()
15181 ; return 0; }
15182 EOF
15183 if { (eval echo configure:15184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15184 rm -rf conftest*
15185 eval "ac_cv_lib_$ac_lib_var=yes"
15186 else
15187 echo "configure: failed program was:" >&5
15188 cat conftest.$ac_ext >&5
15189 rm -rf conftest*
15190 eval "ac_cv_lib_$ac_lib_var=no"
15191 fi
15192 rm -f conftest*
15193 LIBS="$ac_save_LIBS"
15194
15195 fi
15196 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15197 echo "$ac_t""yes" 1>&6
15198 INET_LINK="resolv"
15199
15200 else
15201 echo "$ac_t""no" 1>&6
15202 fi
15203
15204
15205 fi
15206
15207
15208
15209 fi
15210 done
15211
15212
15213 for ac_func in inet_aton
15214 do
15215 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15216 echo "configure:15217: checking for $ac_func" >&5
15217 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15218 echo $ac_n "(cached) $ac_c" 1>&6
15219 else
15220 cat > conftest.$ac_ext <<EOF
15221 #line 15222 "configure"
15222 #include "confdefs.h"
15223 /* System header to define __stub macros and hopefully few prototypes,
15224 which can conflict with char $ac_func(); below. */
15225 #include <assert.h>
15226 /* Override any gcc2 internal prototype to avoid an error. */
15227 /* We use char because int might match the return type of a gcc2
15228 builtin and then its argument prototype would still apply. */
15229 char $ac_func();
15230
15231 int main() {
15232
15233 /* The GNU C library defines this for functions which it implements
15234 to always fail with ENOSYS. Some functions are actually named
15235 something starting with __ and the normal name is an alias. */
15236 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15237 choke me
15238 #else
15239 $ac_func();
15240 #endif
15241
15242 ; return 0; }
15243 EOF
15244 if { (eval echo configure:15245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15245 rm -rf conftest*
15246 eval "ac_cv_func_$ac_func=yes"
15247 else
15248 echo "configure: failed program was:" >&5
15249 cat conftest.$ac_ext >&5
15250 rm -rf conftest*
15251 eval "ac_cv_func_$ac_func=no"
15252 fi
15253 rm -f conftest*
15254 fi
15255
15256 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15257 echo "$ac_t""yes" 1>&6
15258 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15259 cat >> confdefs.h <<EOF
15260 #define $ac_tr_func 1
15261 EOF
15262 cat >> confdefs.h <<\EOF
15263 #define HAVE_INET_ATON 1
15264 EOF
15265
15266 else
15267 echo "$ac_t""no" 1>&6
15268 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
15269 echo "configure:15270: checking for inet_aton in -l$INET_LINK" >&5
15270 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
15271 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15272 echo $ac_n "(cached) $ac_c" 1>&6
15273 else
15274 ac_save_LIBS="$LIBS"
15275 LIBS="-l$INET_LINK $LIBS"
15276 cat > conftest.$ac_ext <<EOF
15277 #line 15278 "configure"
15278 #include "confdefs.h"
15279 /* Override any gcc2 internal prototype to avoid an error. */
15280 /* We use char because int might match the return type of a gcc2
15281 builtin and then its argument prototype would still apply. */
15282 char inet_aton();
15283
15284 int main() {
15285 inet_aton()
15286 ; return 0; }
15287 EOF
15288 if { (eval echo configure:15289: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15289 rm -rf conftest*
15290 eval "ac_cv_lib_$ac_lib_var=yes"
15291 else
15292 echo "configure: failed program was:" >&5
15293 cat conftest.$ac_ext >&5
15294 rm -rf conftest*
15295 eval "ac_cv_lib_$ac_lib_var=no"
15296 fi
15297 rm -f conftest*
15298 LIBS="$ac_save_LIBS"
15299
15300 fi
15301 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15302 echo "$ac_t""yes" 1>&6
15303 cat >> confdefs.h <<\EOF
15304 #define HAVE_INET_ATON 1
15305 EOF
15306
15307 else
15308 echo "$ac_t""no" 1>&6
15309 fi
15310
15311
15312 fi
15313 done
15314
15315
15316 if test "x$INET_LINK" != "x"; then
15317 cat >> confdefs.h <<\EOF
15318 #define HAVE_INET_ADDR 1
15319 EOF
15320
15321 INET_LINK=" -l$INET_LINK"
15322 fi
15323
15324 fi
15325
15326
15327 cat > confcache <<\EOF
15328 # This file is a shell script that caches the results of configure
15329 # tests run on this system so they can be shared between configure
15330 # scripts and configure runs. It is not useful on other systems.
15331 # If it contains results you don't want to keep, you may remove or edit it.
15332 #
15333 # By default, configure uses ./config.cache as the cache file,
15334 # creating it if it does not exist already. You can give configure
15335 # the --cache-file=FILE option to use a different cache file; that is
15336 # what configure does when it calls configure scripts in
15337 # subdirectories, so they share the cache.
15338 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15339 # config.status only pays attention to the cache file if you give it the
15340 # --recheck option to rerun configure.
15341 #
15342 EOF
15343 # The following way of writing the cache mishandles newlines in values,
15344 # but we know of no workaround that is simple, portable, and efficient.
15345 # So, don't put newlines in cache variables' values.
15346 # Ultrix sh set writes to stderr and can't be redirected directly,
15347 # and sets the high bit in the cache file unless we assign to the vars.
15348 (set) 2>&1 |
15349 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15350 *ac_space=\ *)
15351 # `set' does not quote correctly, so add quotes (double-quote substitution
15352 # turns \\\\ into \\, and sed turns \\ into \).
15353 sed -n \
15354 -e "s/'/'\\\\''/g" \
15355 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15356 ;;
15357 *)
15358 # `set' quotes correctly as required by POSIX, so do not add quotes.
15359 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15360 ;;
15361 esac >> confcache
15362 if cmp -s $cache_file confcache; then
15363 :
15364 else
15365 if test -w $cache_file; then
15366 echo "updating cache $cache_file"
15367 cat confcache > $cache_file
15368 else
15369 echo "not updating unwritable cache $cache_file"
15370 fi
15371 fi
15372 rm -f confcache
15373
15374
15375
15376 if test "$TOOLKIT" != "MSW"; then
15377
15378
15379 THREADS_LINK=
15380 THREADS_OBJ=
15381 CODE_GEN_FLAGS=
15382 CODE_GEN_FLAGS_CXX=
15383
15384 if test "$wxUSE_THREADS" = "yes" ; then
15385 if test "$wxUSE_WINE" = 1 ; then
15386 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
15387 wxUSE_THREADS="no"
15388 elif test "$USE_BEOS" = 1; then
15389 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
15390 wxUSE_THREADS="no"
15391 fi
15392 fi
15393
15394 if test "$wxUSE_THREADS" = "yes" ; then
15395
15396 if test "$USE_AIX" = 1; then
15397 THREADS_LIB=pthreads
15398 else
15399 THREADS_LIB=pthread
15400 fi
15401
15402 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
15403 echo "configure:15404: checking for pthread_create in -l$THREADS_LIB" >&5
15404 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
15405 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15406 echo $ac_n "(cached) $ac_c" 1>&6
15407 else
15408 ac_save_LIBS="$LIBS"
15409 LIBS="-l$THREADS_LIB $LIBS"
15410 cat > conftest.$ac_ext <<EOF
15411 #line 15412 "configure"
15412 #include "confdefs.h"
15413 /* Override any gcc2 internal prototype to avoid an error. */
15414 /* We use char because int might match the return type of a gcc2
15415 builtin and then its argument prototype would still apply. */
15416 char pthread_create();
15417
15418 int main() {
15419 pthread_create()
15420 ; return 0; }
15421 EOF
15422 if { (eval echo configure:15423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15423 rm -rf conftest*
15424 eval "ac_cv_lib_$ac_lib_var=yes"
15425 else
15426 echo "configure: failed program was:" >&5
15427 cat conftest.$ac_ext >&5
15428 rm -rf conftest*
15429 eval "ac_cv_lib_$ac_lib_var=no"
15430 fi
15431 rm -f conftest*
15432 LIBS="$ac_save_LIBS"
15433
15434 fi
15435 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15436 echo "$ac_t""yes" 1>&6
15437
15438 THREADS_OBJ="threadpsx.lo"
15439 THREADS_LINK=$THREADS_LIB
15440
15441 else
15442 echo "$ac_t""no" 1>&6
15443
15444 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
15445 echo "configure:15446: checking for pthread_create in -lc_r" >&5
15446 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
15447 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15448 echo $ac_n "(cached) $ac_c" 1>&6
15449 else
15450 ac_save_LIBS="$LIBS"
15451 LIBS="-lc_r $LIBS"
15452 cat > conftest.$ac_ext <<EOF
15453 #line 15454 "configure"
15454 #include "confdefs.h"
15455 /* Override any gcc2 internal prototype to avoid an error. */
15456 /* We use char because int might match the return type of a gcc2
15457 builtin and then its argument prototype would still apply. */
15458 char pthread_create();
15459
15460 int main() {
15461 pthread_create()
15462 ; return 0; }
15463 EOF
15464 if { (eval echo configure:15465: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15465 rm -rf conftest*
15466 eval "ac_cv_lib_$ac_lib_var=yes"
15467 else
15468 echo "configure: failed program was:" >&5
15469 cat conftest.$ac_ext >&5
15470 rm -rf conftest*
15471 eval "ac_cv_lib_$ac_lib_var=no"
15472 fi
15473 rm -f conftest*
15474 LIBS="$ac_save_LIBS"
15475
15476 fi
15477 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15478 echo "$ac_t""yes" 1>&6
15479
15480 THREADS_OBJ="threadpsx.lo"
15481 THREADS_LINK="c_r"
15482
15483 else
15484 echo "$ac_t""no" 1>&6
15485
15486 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
15487 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
15488 echo "configure:15489: checking for sys/prctl.h" >&5
15489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15490 echo $ac_n "(cached) $ac_c" 1>&6
15491 else
15492 cat > conftest.$ac_ext <<EOF
15493 #line 15494 "configure"
15494 #include "confdefs.h"
15495 #include <sys/prctl.h>
15496 EOF
15497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15498 { (eval echo configure:15499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15500 if test -z "$ac_err"; then
15501 rm -rf conftest*
15502 eval "ac_cv_header_$ac_safe=yes"
15503 else
15504 echo "$ac_err" >&5
15505 echo "configure: failed program was:" >&5
15506 cat conftest.$ac_ext >&5
15507 rm -rf conftest*
15508 eval "ac_cv_header_$ac_safe=no"
15509 fi
15510 rm -f conftest*
15511 fi
15512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15513 echo "$ac_t""yes" 1>&6
15514
15515 THREADS_OBJ="threadsgi.lo"
15516
15517 else
15518 echo "$ac_t""no" 1>&6
15519 fi
15520
15521
15522 fi
15523
15524
15525 fi
15526
15527
15528 if test -z "$THREADS_OBJ" ; then
15529 wxUSE_THREADS=no
15530 echo "configure: warning: No thread support on this system... disabled" 1>&2
15531 fi
15532 fi
15533
15534 if test "$wxUSE_THREADS" = "yes" ; then
15535 for ac_func in thr_setconcurrency
15536 do
15537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15538 echo "configure:15539: checking for $ac_func" >&5
15539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15540 echo $ac_n "(cached) $ac_c" 1>&6
15541 else
15542 cat > conftest.$ac_ext <<EOF
15543 #line 15544 "configure"
15544 #include "confdefs.h"
15545 /* System header to define __stub macros and hopefully few prototypes,
15546 which can conflict with char $ac_func(); below. */
15547 #include <assert.h>
15548 /* Override any gcc2 internal prototype to avoid an error. */
15549 /* We use char because int might match the return type of a gcc2
15550 builtin and then its argument prototype would still apply. */
15551 char $ac_func();
15552
15553 int main() {
15554
15555 /* The GNU C library defines this for functions which it implements
15556 to always fail with ENOSYS. Some functions are actually named
15557 something starting with __ and the normal name is an alias. */
15558 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15559 choke me
15560 #else
15561 $ac_func();
15562 #endif
15563
15564 ; return 0; }
15565 EOF
15566 if { (eval echo configure:15567: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15567 rm -rf conftest*
15568 eval "ac_cv_func_$ac_func=yes"
15569 else
15570 echo "configure: failed program was:" >&5
15571 cat conftest.$ac_ext >&5
15572 rm -rf conftest*
15573 eval "ac_cv_func_$ac_func=no"
15574 fi
15575 rm -f conftest*
15576 fi
15577
15578 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15579 echo "$ac_t""yes" 1>&6
15580 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15581 cat >> confdefs.h <<EOF
15582 #define $ac_tr_func 1
15583 EOF
15584
15585 else
15586 echo "$ac_t""no" 1>&6
15587 fi
15588 done
15589
15590
15591
15592 for ac_hdr in sched.h
15593 do
15594 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15595 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15596 echo "configure:15597: checking for $ac_hdr" >&5
15597 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15598 echo $ac_n "(cached) $ac_c" 1>&6
15599 else
15600 cat > conftest.$ac_ext <<EOF
15601 #line 15602 "configure"
15602 #include "confdefs.h"
15603 #include <$ac_hdr>
15604 EOF
15605 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15606 { (eval echo configure:15607: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15607 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15608 if test -z "$ac_err"; then
15609 rm -rf conftest*
15610 eval "ac_cv_header_$ac_safe=yes"
15611 else
15612 echo "$ac_err" >&5
15613 echo "configure: failed program was:" >&5
15614 cat conftest.$ac_ext >&5
15615 rm -rf conftest*
15616 eval "ac_cv_header_$ac_safe=no"
15617 fi
15618 rm -f conftest*
15619 fi
15620 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15621 echo "$ac_t""yes" 1>&6
15622 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15623 cat >> confdefs.h <<EOF
15624 #define $ac_tr_hdr 1
15625 EOF
15626
15627 else
15628 echo "$ac_t""no" 1>&6
15629 fi
15630 done
15631
15632
15633 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
15634 echo "configure:15635: checking for sched_yield in -l$THREADS_LINK" >&5
15635 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
15636 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15637 echo $ac_n "(cached) $ac_c" 1>&6
15638 else
15639 ac_save_LIBS="$LIBS"
15640 LIBS="-l$THREADS_LINK $LIBS"
15641 cat > conftest.$ac_ext <<EOF
15642 #line 15643 "configure"
15643 #include "confdefs.h"
15644 /* Override any gcc2 internal prototype to avoid an error. */
15645 /* We use char because int might match the return type of a gcc2
15646 builtin and then its argument prototype would still apply. */
15647 char sched_yield();
15648
15649 int main() {
15650 sched_yield()
15651 ; return 0; }
15652 EOF
15653 if { (eval echo configure:15654: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15654 rm -rf conftest*
15655 eval "ac_cv_lib_$ac_lib_var=yes"
15656 else
15657 echo "configure: failed program was:" >&5
15658 cat conftest.$ac_ext >&5
15659 rm -rf conftest*
15660 eval "ac_cv_lib_$ac_lib_var=no"
15661 fi
15662 rm -f conftest*
15663 LIBS="$ac_save_LIBS"
15664
15665 fi
15666 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15667 echo "$ac_t""yes" 1>&6
15668 cat >> confdefs.h <<\EOF
15669 #define HAVE_SCHED_YIELD 1
15670 EOF
15671
15672 else
15673 echo "$ac_t""no" 1>&6
15674 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
15675 echo "configure:15676: checking for sched_yield in -lposix4" >&5
15676 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
15677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15678 echo $ac_n "(cached) $ac_c" 1>&6
15679 else
15680 ac_save_LIBS="$LIBS"
15681 LIBS="-lposix4 $LIBS"
15682 cat > conftest.$ac_ext <<EOF
15683 #line 15684 "configure"
15684 #include "confdefs.h"
15685 /* Override any gcc2 internal prototype to avoid an error. */
15686 /* We use char because int might match the return type of a gcc2
15687 builtin and then its argument prototype would still apply. */
15688 char sched_yield();
15689
15690 int main() {
15691 sched_yield()
15692 ; return 0; }
15693 EOF
15694 if { (eval echo configure:15695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15695 rm -rf conftest*
15696 eval "ac_cv_lib_$ac_lib_var=yes"
15697 else
15698 echo "configure: failed program was:" >&5
15699 cat conftest.$ac_ext >&5
15700 rm -rf conftest*
15701 eval "ac_cv_lib_$ac_lib_var=no"
15702 fi
15703 rm -f conftest*
15704 LIBS="$ac_save_LIBS"
15705
15706 fi
15707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15708 echo "$ac_t""yes" 1>&6
15709 cat >> confdefs.h <<\EOF
15710 #define HAVE_SCHED_YIELD 1
15711 EOF
15712 POSIX4_LINK=" -lposix4"
15713 else
15714 echo "$ac_t""no" 1>&6
15715 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
15716
15717 fi
15718
15719
15720 fi
15721
15722
15723 HAVE_PRIOR_FUNCS=0
15724 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
15725 echo "configure:15726: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
15726 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
15727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15728 echo $ac_n "(cached) $ac_c" 1>&6
15729 else
15730 ac_save_LIBS="$LIBS"
15731 LIBS="-l$THREADS_LINK $LIBS"
15732 cat > conftest.$ac_ext <<EOF
15733 #line 15734 "configure"
15734 #include "confdefs.h"
15735 /* Override any gcc2 internal prototype to avoid an error. */
15736 /* We use char because int might match the return type of a gcc2
15737 builtin and then its argument prototype would still apply. */
15738 char pthread_attr_getschedpolicy();
15739
15740 int main() {
15741 pthread_attr_getschedpolicy()
15742 ; return 0; }
15743 EOF
15744 if { (eval echo configure:15745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15745 rm -rf conftest*
15746 eval "ac_cv_lib_$ac_lib_var=yes"
15747 else
15748 echo "configure: failed program was:" >&5
15749 cat conftest.$ac_ext >&5
15750 rm -rf conftest*
15751 eval "ac_cv_lib_$ac_lib_var=no"
15752 fi
15753 rm -f conftest*
15754 LIBS="$ac_save_LIBS"
15755
15756 fi
15757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15758 echo "$ac_t""yes" 1>&6
15759 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
15760 echo "configure:15761: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
15761 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
15762 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15763 echo $ac_n "(cached) $ac_c" 1>&6
15764 else
15765 ac_save_LIBS="$LIBS"
15766 LIBS="-l$THREADS_LINK $LIBS"
15767 cat > conftest.$ac_ext <<EOF
15768 #line 15769 "configure"
15769 #include "confdefs.h"
15770 /* Override any gcc2 internal prototype to avoid an error. */
15771 /* We use char because int might match the return type of a gcc2
15772 builtin and then its argument prototype would still apply. */
15773 char pthread_attr_setschedparam();
15774
15775 int main() {
15776 pthread_attr_setschedparam()
15777 ; return 0; }
15778 EOF
15779 if { (eval echo configure:15780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15780 rm -rf conftest*
15781 eval "ac_cv_lib_$ac_lib_var=yes"
15782 else
15783 echo "configure: failed program was:" >&5
15784 cat conftest.$ac_ext >&5
15785 rm -rf conftest*
15786 eval "ac_cv_lib_$ac_lib_var=no"
15787 fi
15788 rm -f conftest*
15789 LIBS="$ac_save_LIBS"
15790
15791 fi
15792 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15793 echo "$ac_t""yes" 1>&6
15794 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
15795 echo "configure:15796: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
15796 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15797 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15798 echo $ac_n "(cached) $ac_c" 1>&6
15799 else
15800 ac_save_LIBS="$LIBS"
15801 LIBS="-l$THREADS_LINK $LIBS"
15802 cat > conftest.$ac_ext <<EOF
15803 #line 15804 "configure"
15804 #include "confdefs.h"
15805 /* Override any gcc2 internal prototype to avoid an error. */
15806 /* We use char because int might match the return type of a gcc2
15807 builtin and then its argument prototype would still apply. */
15808 char sched_get_priority_max();
15809
15810 int main() {
15811 sched_get_priority_max()
15812 ; return 0; }
15813 EOF
15814 if { (eval echo configure:15815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15815 rm -rf conftest*
15816 eval "ac_cv_lib_$ac_lib_var=yes"
15817 else
15818 echo "configure: failed program was:" >&5
15819 cat conftest.$ac_ext >&5
15820 rm -rf conftest*
15821 eval "ac_cv_lib_$ac_lib_var=no"
15822 fi
15823 rm -f conftest*
15824 LIBS="$ac_save_LIBS"
15825
15826 fi
15827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15828 echo "$ac_t""yes" 1>&6
15829 HAVE_PRIOR_FUNCS=1
15830 else
15831 echo "$ac_t""no" 1>&6
15832 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
15833 echo "configure:15834: checking for sched_get_priority_max in -lposix4" >&5
15834 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15836 echo $ac_n "(cached) $ac_c" 1>&6
15837 else
15838 ac_save_LIBS="$LIBS"
15839 LIBS="-lposix4 $LIBS"
15840 cat > conftest.$ac_ext <<EOF
15841 #line 15842 "configure"
15842 #include "confdefs.h"
15843 /* Override any gcc2 internal prototype to avoid an error. */
15844 /* We use char because int might match the return type of a gcc2
15845 builtin and then its argument prototype would still apply. */
15846 char sched_get_priority_max();
15847
15848 int main() {
15849 sched_get_priority_max()
15850 ; return 0; }
15851 EOF
15852 if { (eval echo configure:15853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15853 rm -rf conftest*
15854 eval "ac_cv_lib_$ac_lib_var=yes"
15855 else
15856 echo "configure: failed program was:" >&5
15857 cat conftest.$ac_ext >&5
15858 rm -rf conftest*
15859 eval "ac_cv_lib_$ac_lib_var=no"
15860 fi
15861 rm -f conftest*
15862 LIBS="$ac_save_LIBS"
15863
15864 fi
15865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15866 echo "$ac_t""yes" 1>&6
15867
15868 HAVE_PRIOR_FUNCS=1
15869 POSIX4_LINK=" -lposix4"
15870
15871 else
15872 echo "$ac_t""no" 1>&6
15873 fi
15874
15875
15876 fi
15877
15878
15879 else
15880 echo "$ac_t""no" 1>&6
15881 fi
15882
15883
15884 else
15885 echo "$ac_t""no" 1>&6
15886 fi
15887
15888
15889 if test "$HAVE_PRIOR_FUNCS" = 1; then
15890 cat >> confdefs.h <<\EOF
15891 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
15892 EOF
15893
15894 else
15895 echo "configure: warning: Setting thread priority will not work" 1>&2
15896 fi
15897
15898 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
15899 echo "configure:15900: checking for pthread_cancel in -l$THREADS_LINK" >&5
15900 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
15901 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15902 echo $ac_n "(cached) $ac_c" 1>&6
15903 else
15904 ac_save_LIBS="$LIBS"
15905 LIBS="-l$THREADS_LINK $LIBS"
15906 cat > conftest.$ac_ext <<EOF
15907 #line 15908 "configure"
15908 #include "confdefs.h"
15909 /* Override any gcc2 internal prototype to avoid an error. */
15910 /* We use char because int might match the return type of a gcc2
15911 builtin and then its argument prototype would still apply. */
15912 char pthread_cancel();
15913
15914 int main() {
15915 pthread_cancel()
15916 ; return 0; }
15917 EOF
15918 if { (eval echo configure:15919: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15919 rm -rf conftest*
15920 eval "ac_cv_lib_$ac_lib_var=yes"
15921 else
15922 echo "configure: failed program was:" >&5
15923 cat conftest.$ac_ext >&5
15924 rm -rf conftest*
15925 eval "ac_cv_lib_$ac_lib_var=no"
15926 fi
15927 rm -f conftest*
15928 LIBS="$ac_save_LIBS"
15929
15930 fi
15931 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15932 echo "$ac_t""yes" 1>&6
15933 cat >> confdefs.h <<\EOF
15934 #define HAVE_PTHREAD_CANCEL 1
15935 EOF
15936
15937 else
15938 echo "$ac_t""no" 1>&6
15939 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
15940 fi
15941
15942
15943 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
15944 echo "configure:15945: checking for pthread_cleanup_push/pop" >&5
15945 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15946 echo $ac_n "(cached) $ac_c" 1>&6
15947 else
15948
15949 cat > conftest.$ac_ext <<EOF
15950 #line 15951 "configure"
15951 #include "confdefs.h"
15952 #include <pthread.h>
15953 int main() {
15954
15955 pthread_cleanup_push(NULL, NULL);
15956 pthread_cleanup_pop(0);
15957
15958 ; return 0; }
15959 EOF
15960 if { (eval echo configure:15961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15961 rm -rf conftest*
15962
15963 wx_cv_func_pthread_cleanup_push=yes
15964
15965 else
15966 echo "configure: failed program was:" >&5
15967 cat conftest.$ac_ext >&5
15968 rm -rf conftest*
15969
15970 wx_cv_func_pthread_cleanup_push=no
15971
15972 fi
15973 rm -f conftest*
15974
15975 fi
15976
15977 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
15978
15979 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
15980 cat >> confdefs.h <<\EOF
15981 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
15982 EOF
15983
15984 fi
15985
15986
15987 if test "x$wx_lib_glibc21" = "xyes"; then
15988 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
15989 fi
15990
15991 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
15992 echo "configure:15993: checking for pthread_mutexattr_t" >&5
15993 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
15994 echo $ac_n "(cached) $ac_c" 1>&6
15995 else
15996
15997 cat > conftest.$ac_ext <<EOF
15998 #line 15999 "configure"
15999 #include "confdefs.h"
16000 #include <pthread.h>
16001 int main() {
16002
16003 pthread_mutexattr_t attr;
16004 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
16005
16006 ; return 0; }
16007 EOF
16008 if { (eval echo configure:16009: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16009 rm -rf conftest*
16010
16011 wx_cv_type_pthread_mutexattr_t=yes
16012
16013 else
16014 echo "configure: failed program was:" >&5
16015 cat conftest.$ac_ext >&5
16016 rm -rf conftest*
16017
16018 wx_cv_type_pthread_mutexattr_t=no
16019
16020
16021 fi
16022 rm -f conftest*
16023
16024 fi
16025
16026 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
16027
16028 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
16029 cat >> confdefs.h <<\EOF
16030 #define HAVE_PTHREAD_MUTEXATTR_T 1
16031 EOF
16032
16033 else
16034 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
16035 echo "configure:16036: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
16036 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
16037 echo $ac_n "(cached) $ac_c" 1>&6
16038 else
16039
16040 cat > conftest.$ac_ext <<EOF
16041 #line 16042 "configure"
16042 #include "confdefs.h"
16043 #include <pthread.h>
16044 int main() {
16045
16046 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
16047
16048 ; return 0; }
16049 EOF
16050 if { (eval echo configure:16051: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16051 rm -rf conftest*
16052
16053 wx_cv_type_pthread_rec_mutex_init=yes
16054
16055 else
16056 echo "configure: failed program was:" >&5
16057 cat conftest.$ac_ext >&5
16058 rm -rf conftest*
16059
16060 wx_cv_type_pthread_rec_mutex_init=no
16061
16062
16063 fi
16064 rm -f conftest*
16065
16066 fi
16067
16068 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
16069 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
16070 cat >> confdefs.h <<\EOF
16071 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
16072 EOF
16073
16074 else
16075 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
16076 fi
16077 fi
16078
16079 THREADS_LINK=" -l$THREADS_LINK"
16080
16081 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
16082 CPPFLAGS="$CFLAGS -mt"
16083 CXXFLAGS="$CXXFLAGS -mt"
16084 LDFLAGS="$LDFLAGS -mt"
16085 fi
16086 fi
16087
16088 fi
16089
16090 if test "$wxUSE_THREADS" = "yes"; then
16091 cat >> confdefs.h <<\EOF
16092 #define wxUSE_THREADS 1
16093 EOF
16094
16095
16096 if test "$USE_DARWIN" != 1; then
16097 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -D_REENTRANT"
16098 fi
16099
16100 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
16101 else
16102 if test "$ac_cv_func_strtok_r" = "yes"; then
16103 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
16104 echo "configure:16105: checking if -D_REENTRANT is needed" >&5
16105 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
16106 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
16107 echo "$ac_t""yes" 1>&6
16108 else
16109 echo "$ac_t""no" 1>&6
16110 fi
16111 fi
16112 fi
16113
16114 if test "$WXGTK20" = 1 ; then
16115 cat >> confdefs.h <<EOF
16116 #define __WXGTK20__ $WXGTK20
16117 EOF
16118
16119 WXGTK12=1
16120 fi
16121
16122 if test "$WXGTK12" = 1 ; then
16123 cat >> confdefs.h <<EOF
16124 #define __WXGTK12__ $WXGTK12
16125 EOF
16126
16127 fi
16128
16129 if test "$WXGTK127" = 1 ; then
16130 cat >> confdefs.h <<EOF
16131 #define __WXGTK127__ $WXGTK127
16132 EOF
16133
16134 fi
16135
16136 WXDEBUG=
16137
16138 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
16139 WXDEBUG="-g"
16140 wxUSE_OPTIMISE=no
16141 fi
16142
16143 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
16144 wxUSE_DEBUG_INFO=yes
16145 WXDEBUG="-ggdb"
16146 fi
16147
16148 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
16149 cat >> confdefs.h <<\EOF
16150 #define WXDEBUG 1
16151 EOF
16152
16153 WXDEBUG_DEFINE="-D__WXDEBUG__"
16154 else
16155 if test "$wxUSE_GTK" = 1 ; then
16156 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
16157 fi
16158 fi
16159
16160 if test "$wxUSE_MEM_TRACING" = "yes" ; then
16161 cat >> confdefs.h <<\EOF
16162 #define wxUSE_MEMORY_TRACING 1
16163 EOF
16164
16165 cat >> confdefs.h <<\EOF
16166 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
16167 EOF
16168
16169 cat >> confdefs.h <<\EOF
16170 #define wxUSE_DEBUG_NEW_ALWAYS 1
16171 EOF
16172
16173 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
16174 fi
16175
16176 if test "$wxUSE_DMALLOC" = "yes" ; then
16177 DMALLOC_LIBS="-ldmalloc"
16178 fi
16179
16180 PROFILE=
16181 if test "$wxUSE_PROFILE" = "yes" ; then
16182 PROFILE=" -pg"
16183 fi
16184
16185 if test "$GCC" = "yes" ; then
16186 if test "$wxUSE_NO_RTTI" = "yes" ; then
16187 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
16188 fi
16189 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
16190 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
16191 fi
16192 if test "$wxUSE_PERMISSIVE" = "yes" ; then
16193 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
16194 fi
16195 if test "$USE_WIN32" = 1 ; then
16196 # I'm not even really sure what this was ever added to solve,
16197 # but someone added it for mingw native builds, so I guess
16198 # they had a reason, right??
16199 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
16200 fi
16201 fi
16202
16203
16204 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
16205 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
16206 if test "$wxUSE_OPTIMISE" = "no" ; then
16207 OPTIMISE=
16208 else
16209 if test "$GCC" = yes ; then
16210 OPTIMISE="-O2"
16211 case "${host}" in
16212 i586-*-*|i686-*-* )
16213 OPTIMISE="${OPTIMISE} "
16214 ;;
16215 esac
16216 else
16217 OPTIMISE="-O"
16218 fi
16219 fi
16220
16221 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
16222 cat >> confdefs.h <<\EOF
16223 #define WXWIN_COMPATIBILITY_2 1
16224 EOF
16225
16226
16227 WXWIN_COMPATIBILITY_2_2="yes"
16228 fi
16229
16230 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
16231 cat >> confdefs.h <<\EOF
16232 #define WXWIN_COMPATIBILITY_2_2 1
16233 EOF
16234
16235 fi
16236
16237
16238 if test "$wxUSE_GUI" = "yes"; then
16239 cat >> confdefs.h <<\EOF
16240 #define wxUSE_GUI 1
16241 EOF
16242
16243
16244 else
16245 cat >> confdefs.h <<\EOF
16246 #define wxUSE_NOGUI 1
16247 EOF
16248
16249 fi
16250
16251
16252 if test "$wxUSE_UNIX" = "yes"; then
16253 cat >> confdefs.h <<\EOF
16254 #define wxUSE_UNIX 1
16255 EOF
16256
16257 fi
16258
16259
16260 if test "$wxUSE_APPLE_IEEE" = "yes"; then
16261 cat >> confdefs.h <<\EOF
16262 #define wxUSE_APPLE_IEEE 1
16263 EOF
16264
16265 fi
16266
16267 if test "$wxUSE_TIMER" = "yes"; then
16268 cat >> confdefs.h <<\EOF
16269 #define wxUSE_TIMER 1
16270 EOF
16271
16272 fi
16273
16274 if test "$wxUSE_WAVE" = "yes"; then
16275 cat >> confdefs.h <<\EOF
16276 #define wxUSE_WAVE 1
16277 EOF
16278
16279 fi
16280
16281 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
16282 cat >> confdefs.h <<\EOF
16283 #define wxUSE_CMDLINE_PARSER 1
16284 EOF
16285
16286 fi
16287
16288 if test "$wxUSE_STOPWATCH" = "yes"; then
16289 cat >> confdefs.h <<\EOF
16290 #define wxUSE_STOPWATCH 1
16291 EOF
16292
16293 fi
16294
16295 if test "$wxUSE_DATETIME" = "yes"; then
16296 cat >> confdefs.h <<\EOF
16297 #define wxUSE_DATETIME 1
16298 EOF
16299
16300 fi
16301
16302 if test "$wxUSE_TIMEDATE" = "yes"; then
16303 cat >> confdefs.h <<\EOF
16304 #define wxUSE_TIMEDATE 1
16305 EOF
16306
16307 fi
16308
16309 if test "$wxUSE_FILE" = "yes"; then
16310 cat >> confdefs.h <<\EOF
16311 #define wxUSE_FILE 1
16312 EOF
16313
16314 fi
16315
16316 if test "$wxUSE_FFILE" = "yes"; then
16317 cat >> confdefs.h <<\EOF
16318 #define wxUSE_FFILE 1
16319 EOF
16320
16321 fi
16322
16323 if test "$wxUSE_FILESYSTEM" = "yes"; then
16324 cat >> confdefs.h <<\EOF
16325 #define wxUSE_FILESYSTEM 1
16326 EOF
16327
16328 fi
16329
16330 if test "$wxUSE_FS_INET" = "yes"; then
16331 cat >> confdefs.h <<\EOF
16332 #define wxUSE_FS_INET 1
16333 EOF
16334
16335 fi
16336
16337 if test "$wxUSE_FS_ZIP" = "yes"; then
16338 cat >> confdefs.h <<\EOF
16339 #define wxUSE_FS_ZIP 1
16340 EOF
16341
16342 fi
16343
16344 if test "$wxUSE_ZIPSTREAM" = "yes"; then
16345 cat >> confdefs.h <<\EOF
16346 #define wxUSE_ZIPSTREAM 1
16347 EOF
16348
16349 fi
16350
16351 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16352 cat >> confdefs.h <<\EOF
16353 #define wxUSE_ON_FATAL_EXCEPTION 1
16354 EOF
16355
16356 fi
16357
16358 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16359 cat >> confdefs.h <<\EOF
16360 #define wxUSE_SNGLINST_CHECKER 1
16361 EOF
16362
16363 fi
16364
16365 if test "$wxUSE_BUSYINFO" = "yes"; then
16366 cat >> confdefs.h <<\EOF
16367 #define wxUSE_BUSYINFO 1
16368 EOF
16369
16370 fi
16371
16372 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
16373 cat >> confdefs.h <<\EOF
16374 #define wxUSE_STD_IOSTREAM 1
16375 EOF
16376
16377 fi
16378
16379 if test "$wxUSE_TEXTBUFFER" = "yes"; then
16380 cat >> confdefs.h <<\EOF
16381 #define wxUSE_TEXTBUFFER 1
16382 EOF
16383
16384 fi
16385
16386 if test "$wxUSE_TEXTFILE" = "yes"; then
16387 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
16388 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
16389 else
16390 cat >> confdefs.h <<\EOF
16391 #define wxUSE_TEXTFILE 1
16392 EOF
16393
16394 fi
16395 fi
16396
16397 if test "$wxUSE_CONFIG" = "yes" ; then
16398 if test "$wxUSE_TEXTFILE" != "yes"; then
16399 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
16400 else
16401 cat >> confdefs.h <<\EOF
16402 #define wxUSE_CONFIG 1
16403 EOF
16404
16405 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
16406 fi
16407 fi
16408
16409 if test "$wxUSE_INTL" = "yes" ; then
16410 if test "$wxUSE_FILE" != "yes"; then
16411 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
16412 else
16413 cat >> confdefs.h <<\EOF
16414 #define wxUSE_INTL 1
16415 EOF
16416
16417 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
16418 GUIDIST="$GUIDIST INTL_DIST"
16419 fi
16420 fi
16421
16422 if test "$wxUSE_LOG" = "yes"; then
16423 cat >> confdefs.h <<\EOF
16424 #define wxUSE_LOG 1
16425 EOF
16426
16427
16428 if test "$wxUSE_LOGGUI" = "yes"; then
16429 cat >> confdefs.h <<\EOF
16430 #define wxUSE_LOGGUI 1
16431 EOF
16432
16433 fi
16434
16435 if test "$wxUSE_LOGWINDOW" = "yes"; then
16436 cat >> confdefs.h <<\EOF
16437 #define wxUSE_LOGWINDOW 1
16438 EOF
16439
16440 fi
16441
16442 if test "$wxUSE_LOGDIALOG" = "yes"; then
16443 cat >> confdefs.h <<\EOF
16444 #define wxUSE_LOG_DIALOG 1
16445 EOF
16446
16447 fi
16448 fi
16449
16450 if test "$wxUSE_LONGLONG" = "yes"; then
16451 cat >> confdefs.h <<\EOF
16452 #define wxUSE_LONGLONG 1
16453 EOF
16454
16455 fi
16456
16457 if test "$wxUSE_GEOMETRY" = "yes"; then
16458 cat >> confdefs.h <<\EOF
16459 #define wxUSE_GEOMETRY 1
16460 EOF
16461
16462 fi
16463
16464 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
16465 cat >> confdefs.h <<\EOF
16466 #define wxUSE_DIALUP_MANAGER 1
16467 EOF
16468
16469 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
16470 fi
16471
16472 if test "$wxUSE_STREAMS" = "yes" ; then
16473 cat >> confdefs.h <<\EOF
16474 #define wxUSE_STREAMS 1
16475 EOF
16476
16477 fi
16478
16479
16480 if test "$wxUSE_DATETIME" = "yes"; then
16481 for ac_func in strptime
16482 do
16483 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16484 echo "configure:16485: checking for $ac_func" >&5
16485 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16486 echo $ac_n "(cached) $ac_c" 1>&6
16487 else
16488 cat > conftest.$ac_ext <<EOF
16489 #line 16490 "configure"
16490 #include "confdefs.h"
16491 /* System header to define __stub macros and hopefully few prototypes,
16492 which can conflict with char $ac_func(); below. */
16493 #include <assert.h>
16494 /* Override any gcc2 internal prototype to avoid an error. */
16495 /* We use char because int might match the return type of a gcc2
16496 builtin and then its argument prototype would still apply. */
16497 char $ac_func();
16498
16499 int main() {
16500
16501 /* The GNU C library defines this for functions which it implements
16502 to always fail with ENOSYS. Some functions are actually named
16503 something starting with __ and the normal name is an alias. */
16504 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16505 choke me
16506 #else
16507 $ac_func();
16508 #endif
16509
16510 ; return 0; }
16511 EOF
16512 if { (eval echo configure:16513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16513 rm -rf conftest*
16514 eval "ac_cv_func_$ac_func=yes"
16515 else
16516 echo "configure: failed program was:" >&5
16517 cat conftest.$ac_ext >&5
16518 rm -rf conftest*
16519 eval "ac_cv_func_$ac_func=no"
16520 fi
16521 rm -f conftest*
16522 fi
16523
16524 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16525 echo "$ac_t""yes" 1>&6
16526 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16527 cat >> confdefs.h <<EOF
16528 #define $ac_tr_func 1
16529 EOF
16530
16531 else
16532 echo "$ac_t""no" 1>&6
16533 fi
16534 done
16535
16536
16537 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
16538 echo "configure:16539: checking for timezone variable in <time.h>" >&5
16539 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16540 echo $ac_n "(cached) $ac_c" 1>&6
16541 else
16542
16543 cat > conftest.$ac_ext <<EOF
16544 #line 16545 "configure"
16545 #include "confdefs.h"
16546
16547 #include <time.h>
16548
16549 int main() {
16550
16551 int tz;
16552 tz = timezone;
16553
16554 ; return 0; }
16555 EOF
16556 if { (eval echo configure:16557: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16557 rm -rf conftest*
16558
16559 wx_cv_var_timezone=timezone
16560
16561 else
16562 echo "configure: failed program was:" >&5
16563 cat conftest.$ac_ext >&5
16564 rm -rf conftest*
16565
16566 cat > conftest.$ac_ext <<EOF
16567 #line 16568 "configure"
16568 #include "confdefs.h"
16569
16570 #include <time.h>
16571
16572 int main() {
16573
16574 int tz;
16575 tz = _timezone;
16576
16577 ; return 0; }
16578 EOF
16579 if { (eval echo configure:16580: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16580 rm -rf conftest*
16581
16582 wx_cv_var_timezone=_timezone
16583
16584 else
16585 echo "configure: failed program was:" >&5
16586 cat conftest.$ac_ext >&5
16587 rm -rf conftest*
16588
16589 cat > conftest.$ac_ext <<EOF
16590 #line 16591 "configure"
16591 #include "confdefs.h"
16592
16593 #include <time.h>
16594
16595 int main() {
16596
16597 int tz;
16598 tz = __timezone;
16599
16600 ; return 0; }
16601 EOF
16602 if { (eval echo configure:16603: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16603 rm -rf conftest*
16604
16605 wx_cv_var_timezone=__timezone
16606
16607 else
16608 echo "configure: failed program was:" >&5
16609 cat conftest.$ac_ext >&5
16610 rm -rf conftest*
16611 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16612
16613 fi
16614 rm -f conftest*
16615
16616
16617 fi
16618 rm -f conftest*
16619
16620
16621 fi
16622 rm -f conftest*
16623
16624
16625 fi
16626
16627 echo "$ac_t""$wx_cv_var_timezone" 1>&6
16628
16629 cat >> confdefs.h <<EOF
16630 #define WX_TIMEZONE $wx_cv_var_timezone
16631 EOF
16632
16633
16634 for ac_func in localtime
16635 do
16636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16637 echo "configure:16638: checking for $ac_func" >&5
16638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16639 echo $ac_n "(cached) $ac_c" 1>&6
16640 else
16641 cat > conftest.$ac_ext <<EOF
16642 #line 16643 "configure"
16643 #include "confdefs.h"
16644 /* System header to define __stub macros and hopefully few prototypes,
16645 which can conflict with char $ac_func(); below. */
16646 #include <assert.h>
16647 /* Override any gcc2 internal prototype to avoid an error. */
16648 /* We use char because int might match the return type of a gcc2
16649 builtin and then its argument prototype would still apply. */
16650 char $ac_func();
16651
16652 int main() {
16653
16654 /* The GNU C library defines this for functions which it implements
16655 to always fail with ENOSYS. Some functions are actually named
16656 something starting with __ and the normal name is an alias. */
16657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16658 choke me
16659 #else
16660 $ac_func();
16661 #endif
16662
16663 ; return 0; }
16664 EOF
16665 if { (eval echo configure:16666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16666 rm -rf conftest*
16667 eval "ac_cv_func_$ac_func=yes"
16668 else
16669 echo "configure: failed program was:" >&5
16670 cat conftest.$ac_ext >&5
16671 rm -rf conftest*
16672 eval "ac_cv_func_$ac_func=no"
16673 fi
16674 rm -f conftest*
16675 fi
16676
16677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16678 echo "$ac_t""yes" 1>&6
16679 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16680 cat >> confdefs.h <<EOF
16681 #define $ac_tr_func 1
16682 EOF
16683
16684 else
16685 echo "$ac_t""no" 1>&6
16686 fi
16687 done
16688
16689
16690 if test "$ac_cv_func_localtime" = "yes"; then
16691 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
16692 echo "configure:16693: checking for tm_gmtoff in struct tm" >&5
16693 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16694 echo $ac_n "(cached) $ac_c" 1>&6
16695 else
16696
16697 cat > conftest.$ac_ext <<EOF
16698 #line 16699 "configure"
16699 #include "confdefs.h"
16700
16701 #include <time.h>
16702
16703 int main() {
16704
16705 struct tm tm;
16706 tm.tm_gmtoff++;
16707
16708 ; return 0; }
16709 EOF
16710 if { (eval echo configure:16711: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16711 rm -rf conftest*
16712
16713 wx_cv_struct_tm_has_gmtoff=yes
16714
16715 else
16716 echo "configure: failed program was:" >&5
16717 cat conftest.$ac_ext >&5
16718 rm -rf conftest*
16719 wx_cv_struct_tm_has_gmtoff=no
16720
16721 fi
16722 rm -f conftest*
16723
16724 fi
16725
16726 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
16727 fi
16728
16729 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16730 cat >> confdefs.h <<\EOF
16731 #define WX_GMTOFF_IN_TM 1
16732 EOF
16733
16734 fi
16735
16736 for ac_func in gettimeofday ftime
16737 do
16738 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16739 echo "configure:16740: checking for $ac_func" >&5
16740 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16741 echo $ac_n "(cached) $ac_c" 1>&6
16742 else
16743 cat > conftest.$ac_ext <<EOF
16744 #line 16745 "configure"
16745 #include "confdefs.h"
16746 /* System header to define __stub macros and hopefully few prototypes,
16747 which can conflict with char $ac_func(); below. */
16748 #include <assert.h>
16749 /* Override any gcc2 internal prototype to avoid an error. */
16750 /* We use char because int might match the return type of a gcc2
16751 builtin and then its argument prototype would still apply. */
16752 char $ac_func();
16753
16754 int main() {
16755
16756 /* The GNU C library defines this for functions which it implements
16757 to always fail with ENOSYS. Some functions are actually named
16758 something starting with __ and the normal name is an alias. */
16759 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16760 choke me
16761 #else
16762 $ac_func();
16763 #endif
16764
16765 ; return 0; }
16766 EOF
16767 if { (eval echo configure:16768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16768 rm -rf conftest*
16769 eval "ac_cv_func_$ac_func=yes"
16770 else
16771 echo "configure: failed program was:" >&5
16772 cat conftest.$ac_ext >&5
16773 rm -rf conftest*
16774 eval "ac_cv_func_$ac_func=no"
16775 fi
16776 rm -f conftest*
16777 fi
16778
16779 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16780 echo "$ac_t""yes" 1>&6
16781 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16782 cat >> confdefs.h <<EOF
16783 #define $ac_tr_func 1
16784 EOF
16785 break
16786 else
16787 echo "$ac_t""no" 1>&6
16788 fi
16789 done
16790
16791
16792 if test "$ac_cv_func_gettimeofday" = "yes"; then
16793 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16794 echo "configure:16795: checking whether gettimeofday takes two arguments" >&5
16795 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16796 echo $ac_n "(cached) $ac_c" 1>&6
16797 else
16798
16799
16800 ac_ext=C
16801 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16802 ac_cpp='$CXXCPP $CPPFLAGS'
16803 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16804 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16805 cross_compiling=$ac_cv_prog_cxx_cross
16806
16807
16808 cat > conftest.$ac_ext <<EOF
16809 #line 16810 "configure"
16810 #include "confdefs.h"
16811
16812 #include <sys/time.h>
16813 #include <unistd.h>
16814
16815 int main() {
16816
16817 struct timeval tv;
16818 gettimeofday(&tv, NULL);
16819
16820 ; return 0; }
16821 EOF
16822 if { (eval echo configure:16823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16823 rm -rf conftest*
16824 wx_cv_func_gettimeofday_has_2_args=yes
16825 else
16826 echo "configure: failed program was:" >&5
16827 cat conftest.$ac_ext >&5
16828 rm -rf conftest*
16829 cat > conftest.$ac_ext <<EOF
16830 #line 16831 "configure"
16831 #include "confdefs.h"
16832
16833 #include <sys/time.h>
16834 #include <unistd.h>
16835
16836 int main() {
16837
16838 struct timeval tv;
16839 gettimeofday(&tv);
16840
16841 ; return 0; }
16842 EOF
16843 if { (eval echo configure:16844: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16844 rm -rf conftest*
16845 wx_cv_func_gettimeofday_has_2_args=no
16846 else
16847 echo "configure: failed program was:" >&5
16848 cat conftest.$ac_ext >&5
16849 rm -rf conftest*
16850
16851 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16852 wx_cv_func_gettimeofday_has_2_args=unknown
16853
16854
16855 fi
16856 rm -f conftest*
16857
16858 fi
16859 rm -f conftest*
16860 ac_ext=c
16861 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16862 ac_cpp='$CPP $CPPFLAGS'
16863 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16864 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16865 cross_compiling=$ac_cv_prog_cc_cross
16866
16867
16868 fi
16869
16870 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16871
16872 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16873 cat >> confdefs.h <<\EOF
16874 #define WX_GETTIMEOFDAY_NO_TZ 1
16875 EOF
16876
16877 fi
16878 fi
16879
16880 cat >> confdefs.h <<\EOF
16881 #define wxUSE_TIMEDATE 1
16882 EOF
16883
16884 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16885 fi
16886
16887
16888 if test "$TOOLKIT" != "MSW"; then
16889
16890 if test "$wxUSE_SOCKETS" = "yes"; then
16891 echo $ac_n "checking for socket""... $ac_c" 1>&6
16892 echo "configure:16893: checking for socket" >&5
16893 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16894 echo $ac_n "(cached) $ac_c" 1>&6
16895 else
16896 cat > conftest.$ac_ext <<EOF
16897 #line 16898 "configure"
16898 #include "confdefs.h"
16899 /* System header to define __stub macros and hopefully few prototypes,
16900 which can conflict with char socket(); below. */
16901 #include <assert.h>
16902 /* Override any gcc2 internal prototype to avoid an error. */
16903 /* We use char because int might match the return type of a gcc2
16904 builtin and then its argument prototype would still apply. */
16905 char socket();
16906
16907 int main() {
16908
16909 /* The GNU C library defines this for functions which it implements
16910 to always fail with ENOSYS. Some functions are actually named
16911 something starting with __ and the normal name is an alias. */
16912 #if defined (__stub_socket) || defined (__stub___socket)
16913 choke me
16914 #else
16915 socket();
16916 #endif
16917
16918 ; return 0; }
16919 EOF
16920 if { (eval echo configure:16921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16921 rm -rf conftest*
16922 eval "ac_cv_func_socket=yes"
16923 else
16924 echo "configure: failed program was:" >&5
16925 cat conftest.$ac_ext >&5
16926 rm -rf conftest*
16927 eval "ac_cv_func_socket=no"
16928 fi
16929 rm -f conftest*
16930 fi
16931
16932 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16933 echo "$ac_t""yes" 1>&6
16934 :
16935 else
16936 echo "$ac_t""no" 1>&6
16937 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16938 echo "configure:16939: checking for socket in -lsocket" >&5
16939 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16940 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16941 echo $ac_n "(cached) $ac_c" 1>&6
16942 else
16943 ac_save_LIBS="$LIBS"
16944 LIBS="-lsocket $LIBS"
16945 cat > conftest.$ac_ext <<EOF
16946 #line 16947 "configure"
16947 #include "confdefs.h"
16948 /* Override any gcc2 internal prototype to avoid an error. */
16949 /* We use char because int might match the return type of a gcc2
16950 builtin and then its argument prototype would still apply. */
16951 char socket();
16952
16953 int main() {
16954 socket()
16955 ; return 0; }
16956 EOF
16957 if { (eval echo configure:16958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16958 rm -rf conftest*
16959 eval "ac_cv_lib_$ac_lib_var=yes"
16960 else
16961 echo "configure: failed program was:" >&5
16962 cat conftest.$ac_ext >&5
16963 rm -rf conftest*
16964 eval "ac_cv_lib_$ac_lib_var=no"
16965 fi
16966 rm -f conftest*
16967 LIBS="$ac_save_LIBS"
16968
16969 fi
16970 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16971 echo "$ac_t""yes" 1>&6
16972 INET_LINK="$INET_LINK -lsocket"
16973 else
16974 echo "$ac_t""no" 1>&6
16975
16976 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16977 wxUSE_SOCKETS=no
16978
16979
16980 fi
16981
16982
16983 fi
16984
16985 fi
16986
16987
16988 if test "$wxUSE_SOCKETS" = "yes" ; then
16989 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16990 echo "configure:16991: checking what is the type of the third argument of getsockname" >&5
16991 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16992 echo $ac_n "(cached) $ac_c" 1>&6
16993 else
16994
16995
16996 ac_ext=C
16997 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16998 ac_cpp='$CXXCPP $CPPFLAGS'
16999 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17000 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17001 cross_compiling=$ac_cv_prog_cxx_cross
17002
17003
17004 cat > conftest.$ac_ext <<EOF
17005 #line 17006 "configure"
17006 #include "confdefs.h"
17007
17008 #include <sys/types.h>
17009 #include <sys/socket.h>
17010
17011 int main() {
17012
17013 socklen_t len;
17014 getsockname(0, 0, &len);
17015
17016 ; return 0; }
17017 EOF
17018 if { (eval echo configure:17019: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17019 rm -rf conftest*
17020 wx_cv_type_getsockname3=socklen_t
17021 else
17022 echo "configure: failed program was:" >&5
17023 cat conftest.$ac_ext >&5
17024 rm -rf conftest*
17025 cat > conftest.$ac_ext <<EOF
17026 #line 17027 "configure"
17027 #include "confdefs.h"
17028
17029 #include <sys/types.h>
17030 #include <sys/socket.h>
17031
17032 int main() {
17033
17034 size_t len;
17035 getsockname(0, 0, &len);
17036
17037 ; return 0; }
17038 EOF
17039 if { (eval echo configure:17040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17040 rm -rf conftest*
17041 wx_cv_type_getsockname3=size_t
17042 else
17043 echo "configure: failed program was:" >&5
17044 cat conftest.$ac_ext >&5
17045 rm -rf conftest*
17046 cat > conftest.$ac_ext <<EOF
17047 #line 17048 "configure"
17048 #include "confdefs.h"
17049
17050 #include <sys/types.h>
17051 #include <sys/socket.h>
17052
17053 int main() {
17054
17055 int len;
17056 getsockname(0, 0, &len);
17057
17058 ; return 0; }
17059 EOF
17060 if { (eval echo configure:17061: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17061 rm -rf conftest*
17062 wx_cv_type_getsockname3=int
17063 else
17064 echo "configure: failed program was:" >&5
17065 cat conftest.$ac_ext >&5
17066 rm -rf conftest*
17067 wx_cv_type_getsockname3=unknown
17068
17069 fi
17070 rm -f conftest*
17071
17072 fi
17073 rm -f conftest*
17074
17075 fi
17076 rm -f conftest*
17077
17078 ac_ext=c
17079 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17080 ac_cpp='$CPP $CPPFLAGS'
17081 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17082 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17083 cross_compiling=$ac_cv_prog_cc_cross
17084
17085
17086 fi
17087
17088 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
17089
17090 if test "$wx_cv_type_getsockname3" = "unknown"; then
17091 wxUSE_SOCKETS=no
17092 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
17093 else
17094 cat >> confdefs.h <<EOF
17095 #define SOCKLEN_T $wx_cv_type_getsockname3
17096 EOF
17097
17098 fi
17099 fi
17100 fi
17101
17102 if test "$wxUSE_SOCKETS" = "yes" ; then
17103 cat >> confdefs.h <<\EOF
17104 #define wxUSE_SOCKETS 1
17105 EOF
17106
17107 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
17108 fi
17109
17110
17111 if test "$wxUSE_GUI" = "yes"; then
17112
17113 if test "$TOOLKIT" = "MAC"; then
17114 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
17115 wxUSE_JOYSTICK=no
17116 fi
17117 if test "$TOOLKIT" = "MOTIF"; then
17118 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
17119 wxUSE_JOYSTICK=no
17120 fi
17121
17122 if test "$TOOLKIT" != "MSW"; then
17123 if test "$wxUSE_JOYSTICK" = "yes"; then
17124 for ac_hdr in linux/joystick.h
17125 do
17126 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17127 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17128 echo "configure:17129: checking for $ac_hdr" >&5
17129 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17130 echo $ac_n "(cached) $ac_c" 1>&6
17131 else
17132 cat > conftest.$ac_ext <<EOF
17133 #line 17134 "configure"
17134 #include "confdefs.h"
17135 #include <$ac_hdr>
17136 EOF
17137 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17138 { (eval echo configure:17139: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17139 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17140 if test -z "$ac_err"; then
17141 rm -rf conftest*
17142 eval "ac_cv_header_$ac_safe=yes"
17143 else
17144 echo "$ac_err" >&5
17145 echo "configure: failed program was:" >&5
17146 cat conftest.$ac_ext >&5
17147 rm -rf conftest*
17148 eval "ac_cv_header_$ac_safe=no"
17149 fi
17150 rm -f conftest*
17151 fi
17152 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17153 echo "$ac_t""yes" 1>&6
17154 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17155 cat >> confdefs.h <<EOF
17156 #define $ac_tr_hdr 1
17157 EOF
17158
17159 else
17160 echo "$ac_t""no" 1>&6
17161 fi
17162 done
17163
17164 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
17165 wxUSE_JOYSTICK=no
17166 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
17167 fi
17168 fi
17169 fi
17170
17171 if test "$wxUSE_JOYSTICK" = "yes"; then
17172 cat >> confdefs.h <<\EOF
17173 #define wxUSE_JOYSTICK 1
17174 EOF
17175
17176 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
17177 fi
17178 fi
17179
17180
17181 if test "$TOOLKIT" != "MSW"; then
17182
17183 HAVE_DL_FUNCS=0
17184 HAVE_SHL_FUNCS=0
17185 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
17186 if test "$USE_DARWIN" = 1; then
17187 HAVE_DL_FUNCS=1
17188 else
17189 for ac_func in dlopen
17190 do
17191 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17192 echo "configure:17193: checking for $ac_func" >&5
17193 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17194 echo $ac_n "(cached) $ac_c" 1>&6
17195 else
17196 cat > conftest.$ac_ext <<EOF
17197 #line 17198 "configure"
17198 #include "confdefs.h"
17199 /* System header to define __stub macros and hopefully few prototypes,
17200 which can conflict with char $ac_func(); below. */
17201 #include <assert.h>
17202 /* Override any gcc2 internal prototype to avoid an error. */
17203 /* We use char because int might match the return type of a gcc2
17204 builtin and then its argument prototype would still apply. */
17205 char $ac_func();
17206
17207 int main() {
17208
17209 /* The GNU C library defines this for functions which it implements
17210 to always fail with ENOSYS. Some functions are actually named
17211 something starting with __ and the normal name is an alias. */
17212 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17213 choke me
17214 #else
17215 $ac_func();
17216 #endif
17217
17218 ; return 0; }
17219 EOF
17220 if { (eval echo configure:17221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17221 rm -rf conftest*
17222 eval "ac_cv_func_$ac_func=yes"
17223 else
17224 echo "configure: failed program was:" >&5
17225 cat conftest.$ac_ext >&5
17226 rm -rf conftest*
17227 eval "ac_cv_func_$ac_func=no"
17228 fi
17229 rm -f conftest*
17230 fi
17231
17232 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17233 echo "$ac_t""yes" 1>&6
17234 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17235 cat >> confdefs.h <<EOF
17236 #define $ac_tr_func 1
17237 EOF
17238
17239 cat >> confdefs.h <<\EOF
17240 #define HAVE_DLOPEN 1
17241 EOF
17242
17243 HAVE_DL_FUNCS=1
17244
17245 else
17246 echo "$ac_t""no" 1>&6
17247 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
17248 echo "configure:17249: checking for dlopen in -ldl" >&5
17249 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
17250 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17251 echo $ac_n "(cached) $ac_c" 1>&6
17252 else
17253 ac_save_LIBS="$LIBS"
17254 LIBS="-ldl $LIBS"
17255 cat > conftest.$ac_ext <<EOF
17256 #line 17257 "configure"
17257 #include "confdefs.h"
17258 /* Override any gcc2 internal prototype to avoid an error. */
17259 /* We use char because int might match the return type of a gcc2
17260 builtin and then its argument prototype would still apply. */
17261 char dlopen();
17262
17263 int main() {
17264 dlopen()
17265 ; return 0; }
17266 EOF
17267 if { (eval echo configure:17268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17268 rm -rf conftest*
17269 eval "ac_cv_lib_$ac_lib_var=yes"
17270 else
17271 echo "configure: failed program was:" >&5
17272 cat conftest.$ac_ext >&5
17273 rm -rf conftest*
17274 eval "ac_cv_lib_$ac_lib_var=no"
17275 fi
17276 rm -f conftest*
17277 LIBS="$ac_save_LIBS"
17278
17279 fi
17280 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17281 echo "$ac_t""yes" 1>&6
17282
17283 cat >> confdefs.h <<\EOF
17284 #define HAVE_DLOPEN 1
17285 EOF
17286
17287 HAVE_DL_FUNCS=1
17288 DL_LINK=" -ldl$DL_LINK"
17289
17290 else
17291 echo "$ac_t""no" 1>&6
17292
17293 for ac_func in shl_load
17294 do
17295 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17296 echo "configure:17297: checking for $ac_func" >&5
17297 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17298 echo $ac_n "(cached) $ac_c" 1>&6
17299 else
17300 cat > conftest.$ac_ext <<EOF
17301 #line 17302 "configure"
17302 #include "confdefs.h"
17303 /* System header to define __stub macros and hopefully few prototypes,
17304 which can conflict with char $ac_func(); below. */
17305 #include <assert.h>
17306 /* Override any gcc2 internal prototype to avoid an error. */
17307 /* We use char because int might match the return type of a gcc2
17308 builtin and then its argument prototype would still apply. */
17309 char $ac_func();
17310
17311 int main() {
17312
17313 /* The GNU C library defines this for functions which it implements
17314 to always fail with ENOSYS. Some functions are actually named
17315 something starting with __ and the normal name is an alias. */
17316 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17317 choke me
17318 #else
17319 $ac_func();
17320 #endif
17321
17322 ; return 0; }
17323 EOF
17324 if { (eval echo configure:17325: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17325 rm -rf conftest*
17326 eval "ac_cv_func_$ac_func=yes"
17327 else
17328 echo "configure: failed program was:" >&5
17329 cat conftest.$ac_ext >&5
17330 rm -rf conftest*
17331 eval "ac_cv_func_$ac_func=no"
17332 fi
17333 rm -f conftest*
17334 fi
17335
17336 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17337 echo "$ac_t""yes" 1>&6
17338 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17339 cat >> confdefs.h <<EOF
17340 #define $ac_tr_func 1
17341 EOF
17342
17343 cat >> confdefs.h <<\EOF
17344 #define HAVE_SHL_LOAD 1
17345 EOF
17346
17347 HAVE_SHL_FUNCS=1
17348
17349 else
17350 echo "$ac_t""no" 1>&6
17351 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
17352 echo "configure:17353: checking for dld in -lshl_load" >&5
17353 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
17354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17355 echo $ac_n "(cached) $ac_c" 1>&6
17356 else
17357 ac_save_LIBS="$LIBS"
17358 LIBS="-lshl_load $LIBS"
17359 cat > conftest.$ac_ext <<EOF
17360 #line 17361 "configure"
17361 #include "confdefs.h"
17362 /* Override any gcc2 internal prototype to avoid an error. */
17363 /* We use char because int might match the return type of a gcc2
17364 builtin and then its argument prototype would still apply. */
17365 char dld();
17366
17367 int main() {
17368 dld()
17369 ; return 0; }
17370 EOF
17371 if { (eval echo configure:17372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17372 rm -rf conftest*
17373 eval "ac_cv_lib_$ac_lib_var=yes"
17374 else
17375 echo "configure: failed program was:" >&5
17376 cat conftest.$ac_ext >&5
17377 rm -rf conftest*
17378 eval "ac_cv_lib_$ac_lib_var=no"
17379 fi
17380 rm -f conftest*
17381 LIBS="$ac_save_LIBS"
17382
17383 fi
17384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17385 echo "$ac_t""yes" 1>&6
17386
17387 HAVE_SHL_FUNCS=1
17388 DL_LINK=" -ldld$DL_LINK"
17389
17390 else
17391 echo "$ac_t""no" 1>&6
17392 fi
17393
17394
17395 fi
17396 done
17397
17398
17399 fi
17400
17401
17402 fi
17403 done
17404
17405
17406 if test "$HAVE_DL_FUNCS" = 1; then
17407 for ac_func in dlerror
17408 do
17409 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17410 echo "configure:17411: checking for $ac_func" >&5
17411 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17412 echo $ac_n "(cached) $ac_c" 1>&6
17413 else
17414 cat > conftest.$ac_ext <<EOF
17415 #line 17416 "configure"
17416 #include "confdefs.h"
17417 /* System header to define __stub macros and hopefully few prototypes,
17418 which can conflict with char $ac_func(); below. */
17419 #include <assert.h>
17420 /* Override any gcc2 internal prototype to avoid an error. */
17421 /* We use char because int might match the return type of a gcc2
17422 builtin and then its argument prototype would still apply. */
17423 char $ac_func();
17424
17425 int main() {
17426
17427 /* The GNU C library defines this for functions which it implements
17428 to always fail with ENOSYS. Some functions are actually named
17429 something starting with __ and the normal name is an alias. */
17430 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17431 choke me
17432 #else
17433 $ac_func();
17434 #endif
17435
17436 ; return 0; }
17437 EOF
17438 if { (eval echo configure:17439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17439 rm -rf conftest*
17440 eval "ac_cv_func_$ac_func=yes"
17441 else
17442 echo "configure: failed program was:" >&5
17443 cat conftest.$ac_ext >&5
17444 rm -rf conftest*
17445 eval "ac_cv_func_$ac_func=no"
17446 fi
17447 rm -f conftest*
17448 fi
17449
17450 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17451 echo "$ac_t""yes" 1>&6
17452 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17453 cat >> confdefs.h <<EOF
17454 #define $ac_tr_func 1
17455 EOF
17456 cat >> confdefs.h <<\EOF
17457 #define HAVE_DLERROR 1
17458 EOF
17459
17460 else
17461 echo "$ac_t""no" 1>&6
17462 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
17463 echo "configure:17464: checking for dlerror in -ldl" >&5
17464 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17466 echo $ac_n "(cached) $ac_c" 1>&6
17467 else
17468 ac_save_LIBS="$LIBS"
17469 LIBS="-ldl $LIBS"
17470 cat > conftest.$ac_ext <<EOF
17471 #line 17472 "configure"
17472 #include "confdefs.h"
17473 /* Override any gcc2 internal prototype to avoid an error. */
17474 /* We use char because int might match the return type of a gcc2
17475 builtin and then its argument prototype would still apply. */
17476 char dlerror();
17477
17478 int main() {
17479 dlerror()
17480 ; return 0; }
17481 EOF
17482 if { (eval echo configure:17483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17483 rm -rf conftest*
17484 eval "ac_cv_lib_$ac_lib_var=yes"
17485 else
17486 echo "configure: failed program was:" >&5
17487 cat conftest.$ac_ext >&5
17488 rm -rf conftest*
17489 eval "ac_cv_lib_$ac_lib_var=no"
17490 fi
17491 rm -f conftest*
17492 LIBS="$ac_save_LIBS"
17493
17494 fi
17495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17496 echo "$ac_t""yes" 1>&6
17497 cat >> confdefs.h <<\EOF
17498 #define HAVE_DLERROR 1
17499 EOF
17500
17501 else
17502 echo "$ac_t""no" 1>&6
17503 fi
17504
17505 fi
17506 done
17507
17508 fi
17509 fi
17510
17511 if test "$HAVE_DL_FUNCS" = 0; then
17512 if test "$HAVE_SHL_FUNCS" = 0; then
17513 if test "$USE_UNIX" = 1; then
17514 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17515 wxUSE_DYNLIB_CLASS=no
17516 else
17517 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17518 fi
17519 fi
17520 fi
17521 fi
17522 fi
17523
17524 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
17525 cat >> confdefs.h <<\EOF
17526 #define wxUSE_DYNLIB_CLASS 1
17527 EOF
17528
17529 else
17530 wxUSE_ODBC=no
17531 wxUSE_SERIAL=no
17532 fi
17533
17534
17535 if test "$wxUSE_FONTMAP" = "yes" ; then
17536 cat >> confdefs.h <<\EOF
17537 #define wxUSE_FONTMAP 1
17538 EOF
17539
17540 fi
17541
17542 if test "$wxUSE_UNICODE" = "yes" ; then
17543 cat >> confdefs.h <<\EOF
17544 #define wxUSE_UNICODE 1
17545 EOF
17546
17547 fi
17548
17549 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
17550 cat >> confdefs.h <<\EOF
17551 #define wxUSE_EXPERIMENTAL_PRINTF 1
17552 EOF
17553
17554 fi
17555
17556
17557 if test "$wxUSE_SERIAL" = "yes" ; then
17558 cat >> confdefs.h <<\EOF
17559 #define wxUSE_SERIAL 1
17560 EOF
17561
17562 fi
17563
17564
17565 IODBC_C_SRC=""
17566 if test "$wxUSE_ODBC" = "yes" ; then
17567 cat >> confdefs.h <<\EOF
17568 #define wxUSE_ODBC 1
17569 EOF
17570
17571 WXODBCFLAG="-D_IODBC_"
17572 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
17573 fi
17574
17575
17576 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
17577 cat >> confdefs.h <<\EOF
17578 #define wxUSE_POSTSCRIPT 1
17579 EOF
17580
17581 fi
17582
17583 cat >> confdefs.h <<\EOF
17584 #define wxUSE_AFM_FOR_POSTSCRIPT 1
17585 EOF
17586
17587
17588 cat >> confdefs.h <<\EOF
17589 #define wxUSE_NORMALIZED_PS_FONTS 1
17590 EOF
17591
17592
17593
17594 if test "$wxUSE_CONSTRAINTS" = "yes"; then
17595 cat >> confdefs.h <<\EOF
17596 #define wxUSE_CONSTRAINTS 1
17597 EOF
17598
17599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17600 fi
17601
17602 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17603 if test "$wxUSE_UNIVERSAL" = "yes"; then
17604 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
17605 wxUSE_MDI_ARCHITECTURE=no
17606 fi
17607
17608 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17609 cat >> confdefs.h <<\EOF
17610 #define wxUSE_MDI_ARCHITECTURE 1
17611 EOF
17612
17613 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17614 fi
17615 fi
17616
17617 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
17618 cat >> confdefs.h <<\EOF
17619 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
17620 EOF
17621
17622 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17623 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17624 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17625 fi
17626 fi
17627
17628 if test "$wxUSE_HELP" = "yes"; then
17629 cat >> confdefs.h <<\EOF
17630 #define wxUSE_HELP 1
17631 EOF
17632
17633 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
17634
17635 if test "$wxUSE_MSW" = 1; then
17636 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
17637 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17638 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
17639 echo "configure:17640: checking for htmlhelp.h" >&5
17640 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17641 echo $ac_n "(cached) $ac_c" 1>&6
17642 else
17643 cat > conftest.$ac_ext <<EOF
17644 #line 17645 "configure"
17645 #include "confdefs.h"
17646 #include <htmlhelp.h>
17647 EOF
17648 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17649 { (eval echo configure:17650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17650 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17651 if test -z "$ac_err"; then
17652 rm -rf conftest*
17653 eval "ac_cv_header_$ac_safe=yes"
17654 else
17655 echo "$ac_err" >&5
17656 echo "configure: failed program was:" >&5
17657 cat conftest.$ac_ext >&5
17658 rm -rf conftest*
17659 eval "ac_cv_header_$ac_safe=no"
17660 fi
17661 rm -f conftest*
17662 fi
17663 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17664 echo "$ac_t""yes" 1>&6
17665
17666 cat >> confdefs.h <<\EOF
17667 #define wxUSE_MS_HTML_HELP 1
17668 EOF
17669
17670
17671 else
17672 echo "$ac_t""no" 1>&6
17673
17674 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
17675 wxUSE_MS_HTML_HELP=no
17676
17677 fi
17678
17679 fi
17680 fi
17681
17682 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17683 if test "$wxUSE_HTML" = "yes"; then
17684 cat >> confdefs.h <<\EOF
17685 #define wxUSE_WXHTML_HELP 1
17686 EOF
17687
17688 else
17689 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17690 wxUSE_WXHTML_HELP=no
17691 fi
17692 fi
17693 fi
17694
17695 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17696 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17697 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
17698 else
17699 cat >> confdefs.h <<\EOF
17700 #define wxUSE_PRINTING_ARCHITECTURE 1
17701 EOF
17702
17703 fi
17704 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17705 fi
17706
17707 if test "$wxUSE_PROLOGIO" = "yes" ; then
17708 cat >> confdefs.h <<\EOF
17709 #define wxUSE_PROLOGIO 1
17710 EOF
17711
17712 fi
17713
17714 if test "$wxUSE_RESOURCES" = "yes" ; then
17715 cat >> confdefs.h <<\EOF
17716 #define wxUSE_RESOURCES 1
17717 EOF
17718
17719 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
17720 fi
17721
17722 if test "$wxUSE_X_RESOURCES" = "yes"; then
17723 cat >> confdefs.h <<\EOF
17724 #define wxUSE_X_RESOURCES 1
17725 EOF
17726
17727 fi
17728
17729
17730 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17731 -o "$wxUSE_CLIPBOARD" = "yes" \
17732 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
17733 for ac_hdr in ole2.h
17734 do
17735 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17736 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17737 echo "configure:17738: checking for $ac_hdr" >&5
17738 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17739 echo $ac_n "(cached) $ac_c" 1>&6
17740 else
17741 cat > conftest.$ac_ext <<EOF
17742 #line 17743 "configure"
17743 #include "confdefs.h"
17744 #include <$ac_hdr>
17745 EOF
17746 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17747 { (eval echo configure:17748: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17748 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17749 if test -z "$ac_err"; then
17750 rm -rf conftest*
17751 eval "ac_cv_header_$ac_safe=yes"
17752 else
17753 echo "$ac_err" >&5
17754 echo "configure: failed program was:" >&5
17755 cat conftest.$ac_ext >&5
17756 rm -rf conftest*
17757 eval "ac_cv_header_$ac_safe=no"
17758 fi
17759 rm -f conftest*
17760 fi
17761 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17762 echo "$ac_t""yes" 1>&6
17763 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17764 cat >> confdefs.h <<EOF
17765 #define $ac_tr_hdr 1
17766 EOF
17767
17768 else
17769 echo "$ac_t""no" 1>&6
17770 fi
17771 done
17772
17773
17774 if test "$ac_cv_header_ole2_h" = "yes" ; then
17775 if test "$GCC" = yes ; then
17776 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17777 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17778 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
17779 cat >> confdefs.h <<\EOF
17780 #define wxUSE_OLE 1
17781 EOF
17782
17783
17784 fi
17785
17786 cat >> confdefs.h <<\EOF
17787 #define wxUSE_DATAOBJ 1
17788 EOF
17789
17790 else
17791 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17792
17793 wxUSE_CLIPBOARD=no
17794 wxUSE_DRAG_AND_DROP=no
17795 wxUSE_DATAOBJ=no
17796 fi
17797
17798 if test "$wxUSE_METAFILE" = "yes"; then
17799 cat >> confdefs.h <<\EOF
17800 #define wxUSE_METAFILE 1
17801 EOF
17802
17803
17804 cat >> confdefs.h <<\EOF
17805 #define wxUSE_ENH_METAFILE 1
17806 EOF
17807
17808 fi
17809 fi
17810
17811 if test "$wxUSE_IPC" = "yes"; then
17812 if test "$wxUSE_SOCKETS" != "yes"; then
17813 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
17814 fi
17815
17816 cat >> confdefs.h <<\EOF
17817 #define wxUSE_IPC 1
17818 EOF
17819
17820 fi
17821
17822 if test "$wxUSE_CLIPBOARD" = "yes"; then
17823 cat >> confdefs.h <<\EOF
17824 #define wxUSE_CLIPBOARD 1
17825 EOF
17826
17827
17828 cat >> confdefs.h <<\EOF
17829 #define wxUSE_DATAOBJ 1
17830 EOF
17831
17832 fi
17833
17834 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17835 if test "$wxUSE_GTK" = 1; then
17836 if test "$WXGTK12" != 1; then
17837 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
17838 wxUSE_DRAG_AND_DROP=no
17839 fi
17840 fi
17841
17842 if test "$wxUSE_MOTIF" = 1; then
17843 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
17844 wxUSE_DRAG_AND_DROP=no
17845 fi
17846
17847 if test "$wxUSE_MAC" = 1; then
17848 echo "configure: warning: Drag and drop not yet supported under Mac OS X... disabled" 1>&2
17849 wxUSE_DRAG_AND_DROP=no
17850 fi
17851
17852 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17853 cat >> confdefs.h <<\EOF
17854 #define wxUSE_DRAG_AND_DROP 1
17855 EOF
17856
17857 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17858 fi
17859
17860 fi
17861
17862 if test "$wxUSE_SPLINES" = "yes" ; then
17863 cat >> confdefs.h <<\EOF
17864 #define wxUSE_SPLINES 1
17865 EOF
17866
17867 fi
17868
17869
17870 USES_CONTROLS=0
17871 if test "$wxUSE_CONTROLS" = "yes"; then
17872 USES_CONTROLS=1
17873 fi
17874
17875 if test "$wxUSE_ACCEL" = "yes"; then
17876 cat >> confdefs.h <<\EOF
17877 #define wxUSE_ACCEL 1
17878 EOF
17879
17880 USES_CONTROLS=1
17881 fi
17882
17883 if test "$wxUSE_BUTTON" = "yes"; then
17884 cat >> confdefs.h <<\EOF
17885 #define wxUSE_BUTTON 1
17886 EOF
17887
17888 USES_CONTROLS=1
17889 fi
17890
17891 if test "$wxUSE_BMPBUTTON" = "yes"; then
17892 cat >> confdefs.h <<\EOF
17893 #define wxUSE_BMPBUTTON 1
17894 EOF
17895
17896 USES_CONTROLS=1
17897 fi
17898
17899 if test "$wxUSE_CALCTRL" = "yes"; then
17900 cat >> confdefs.h <<\EOF
17901 #define wxUSE_CALENDARCTRL 1
17902 EOF
17903
17904 USES_CONTROLS=1
17905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17906 fi
17907
17908 if test "$wxUSE_CARET" = "yes"; then
17909 cat >> confdefs.h <<\EOF
17910 #define wxUSE_CARET 1
17911 EOF
17912
17913 USES_CONTROLS=1
17914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17915 fi
17916
17917 if test "$wxUSE_COMBOBOX" = "yes"; then
17918 cat >> confdefs.h <<\EOF
17919 #define wxUSE_COMBOBOX 1
17920 EOF
17921
17922 USES_CONTROLS=1
17923 fi
17924
17925 if test "$wxUSE_CHOICE" = "yes"; then
17926 cat >> confdefs.h <<\EOF
17927 #define wxUSE_CHOICE 1
17928 EOF
17929
17930 USES_CONTROLS=1
17931 fi
17932
17933 if test "$wxUSE_CHECKBOX" = "yes"; then
17934 cat >> confdefs.h <<\EOF
17935 #define wxUSE_CHECKBOX 1
17936 EOF
17937
17938 USES_CONTROLS=1
17939 fi
17940
17941 if test "$wxUSE_CHECKLST" = "yes"; then
17942 cat >> confdefs.h <<\EOF
17943 #define wxUSE_CHECKLISTBOX 1
17944 EOF
17945
17946 USES_CONTROLS=1
17947 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17948 fi
17949
17950 if test "$wxUSE_GAUGE" = "yes"; then
17951 cat >> confdefs.h <<\EOF
17952 #define wxUSE_GAUGE 1
17953 EOF
17954
17955 USES_CONTROLS=1
17956 fi
17957
17958 if test "$wxUSE_NEW_GRID" = "yes"; then
17959 wxUSE_GRID="yes"
17960 cat >> confdefs.h <<\EOF
17961 #define wxUSE_NEW_GRID 1
17962 EOF
17963
17964 USES_CONTROLS=1
17965 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17966 fi
17967
17968 if test "$wxUSE_GRID" = "yes"; then
17969 cat >> confdefs.h <<\EOF
17970 #define wxUSE_GRID 1
17971 EOF
17972
17973 USES_CONTROLS=1
17974 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17975 fi
17976
17977 if test "$wxUSE_IMAGLIST" = "yes"; then
17978 cat >> confdefs.h <<\EOF
17979 #define wxUSE_IMAGLIST 1
17980 EOF
17981
17982 fi
17983
17984 if test "$wxUSE_LISTBOX" = "yes"; then
17985 cat >> confdefs.h <<\EOF
17986 #define wxUSE_LISTBOX 1
17987 EOF
17988
17989 USES_CONTROLS=1
17990 fi
17991
17992 if test "$wxUSE_LISTCTRL" = "yes"; then
17993 if test "$wxUSE_IMAGLIST" = "yes"; then
17994 cat >> confdefs.h <<\EOF
17995 #define wxUSE_LISTCTRL 1
17996 EOF
17997
17998 USES_CONTROLS=1
17999 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
18000 else
18001 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
18002 fi
18003 fi
18004
18005 if test "$wxUSE_NOTEBOOK" = "yes"; then
18006 cat >> confdefs.h <<\EOF
18007 #define wxUSE_NOTEBOOK 1
18008 EOF
18009
18010 USES_CONTROLS=1
18011 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
18012 fi
18013
18014 if test "$wxUSE_PROPSHEET" = "yes"; then
18015 cat >> confdefs.h <<\EOF
18016 #define wxUSE_PROPSHEET 1
18017 EOF
18018
18019 USES_CONTROLS=1
18020 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
18021 fi
18022
18023 if test "$wxUSE_RADIOBOX" = "yes"; then
18024 cat >> confdefs.h <<\EOF
18025 #define wxUSE_RADIOBOX 1
18026 EOF
18027
18028 USES_CONTROLS=1
18029 fi
18030
18031 if test "$wxUSE_RADIOBTN" = "yes"; then
18032 cat >> confdefs.h <<\EOF
18033 #define wxUSE_RADIOBTN 1
18034 EOF
18035
18036 USES_CONTROLS=1
18037 fi
18038
18039 if test "$wxUSE_SASH" = "yes"; then
18040 cat >> confdefs.h <<\EOF
18041 #define wxUSE_SASH 1
18042 EOF
18043
18044 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
18045 fi
18046
18047 if test "$wxUSE_SCROLLBAR" = "yes"; then
18048 cat >> confdefs.h <<\EOF
18049 #define wxUSE_SCROLLBAR 1
18050 EOF
18051
18052 USES_CONTROLS=1
18053 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
18054 fi
18055
18056 if test "$wxUSE_SLIDER" = "yes"; then
18057 cat >> confdefs.h <<\EOF
18058 #define wxUSE_SLIDER 1
18059 EOF
18060
18061 USES_CONTROLS=1
18062 fi
18063
18064 if test "$wxUSE_SPINBTN" = "yes"; then
18065 cat >> confdefs.h <<\EOF
18066 #define wxUSE_SPINBTN 1
18067 EOF
18068
18069 USES_CONTROLS=1
18070 fi
18071
18072 if test "$wxUSE_SPINCTRL" = "yes"; then
18073 cat >> confdefs.h <<\EOF
18074 #define wxUSE_SPINCTRL 1
18075 EOF
18076
18077 USES_CONTROLS=1
18078 fi
18079
18080 if test "$wxUSE_SPLITTER" = "yes"; then
18081 cat >> confdefs.h <<\EOF
18082 #define wxUSE_SPLITTER 1
18083 EOF
18084
18085 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
18086 fi
18087
18088 if test "$wxUSE_STATBMP" = "yes"; then
18089 cat >> confdefs.h <<\EOF
18090 #define wxUSE_STATBMP 1
18091 EOF
18092
18093 USES_CONTROLS=1
18094 fi
18095
18096 if test "$wxUSE_STATBOX" = "yes"; then
18097 cat >> confdefs.h <<\EOF
18098 #define wxUSE_STATBOX 1
18099 EOF
18100
18101 USES_CONTROLS=1
18102 fi
18103
18104 if test "$wxUSE_STATTEXT" = "yes"; then
18105 cat >> confdefs.h <<\EOF
18106 #define wxUSE_STATTEXT 1
18107 EOF
18108
18109 USES_CONTROLS=1
18110 fi
18111
18112 if test "$wxUSE_STATLINE" = "yes"; then
18113 if test "$wxUSE_WINE" = 1 ; then
18114 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
18115 else
18116 cat >> confdefs.h <<\EOF
18117 #define wxUSE_STATLINE 1
18118 EOF
18119
18120 USES_CONTROLS=1
18121 fi
18122 fi
18123
18124 if test "$wxUSE_STATUSBAR" = "yes"; then
18125 cat >> confdefs.h <<\EOF
18126 #define wxUSE_STATUSBAR 1
18127 EOF
18128
18129 USES_CONTROLS=1
18130
18131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
18132 fi
18133
18134 if test "$wxUSE_TABDIALOG" = "yes"; then
18135 cat >> confdefs.h <<\EOF
18136 #define wxUSE_TAB_DIALOG 1
18137 EOF
18138
18139 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
18140 fi
18141
18142 if test "$wxUSE_TEXTCTRL" = "yes"; then
18143 cat >> confdefs.h <<\EOF
18144 #define wxUSE_TEXTCTRL 1
18145 EOF
18146
18147 USES_CONTROLS=1
18148 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
18149 fi
18150
18151 if test "$wxUSE_TOGGLEBTN" = "yes"; then
18152 if test "$wxUSE_MAC" = 1; then
18153 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
18154 wxUSE_TOGGLEBTN=no
18155 fi
18156 if test "$wxUSE_UNIVERSAL" = "yes"; then
18157 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
18158 wxUSE_TOGGLEBTN=no
18159 fi
18160
18161 if test "$wxUSE_TOGGLEBTN" = "yes"; then
18162 cat >> confdefs.h <<\EOF
18163 #define wxUSE_TOGGLEBTN 1
18164 EOF
18165
18166 USES_CONTROLS=1
18167 fi
18168 fi
18169
18170 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
18171 cat >> confdefs.h <<\EOF
18172 #define wxUSE_TOOLBAR_SIMPLE 1
18173 EOF
18174
18175 wxUSE_TOOLBAR="yes"
18176 USES_CONTROLS=1
18177 fi
18178
18179 if test "$wxUSE_TOOLBAR" = "yes"; then
18180 cat >> confdefs.h <<\EOF
18181 #define wxUSE_TOOLBAR 1
18182 EOF
18183
18184 USES_CONTROLS=1
18185
18186 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
18187 wxUSE_TOOLBAR_NATIVE="yes"
18188 fi
18189
18190 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
18191 cat >> confdefs.h <<\EOF
18192 #define wxUSE_TOOLBAR_NATIVE 1
18193 EOF
18194
18195 USES_CONTROLS=1
18196 fi
18197
18198 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
18199 fi
18200
18201 if test "$wxUSE_TOOLTIPS" = "yes"; then
18202 if test "$wxUSE_MOTIF" = 1; then
18203 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
18204 else
18205 if test "$wxUSE_WINE" = 1; then
18206 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
18207 else
18208 if test "$wxUSE_UNIVERSAL" = "yes"; then
18209 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
18210 else
18211 cat >> confdefs.h <<\EOF
18212 #define wxUSE_TOOLTIPS 1
18213 EOF
18214
18215 fi
18216 fi
18217 fi
18218 fi
18219
18220 if test "$wxUSE_TREECTRL" = "yes"; then
18221 if test "$wxUSE_IMAGLIST" = "yes"; then
18222 cat >> confdefs.h <<\EOF
18223 #define wxUSE_TREECTRL 1
18224 EOF
18225
18226 USES_CONTROLS=1
18227 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
18228 else
18229 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
18230 fi
18231 fi
18232
18233 if test "$wxUSE_POPUPWIN" = "yes"; then
18234 if test "$wxUSE_MAC" = 1; then
18235 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
18236 else
18237 cat >> confdefs.h <<\EOF
18238 #define wxUSE_POPUPWIN 1
18239 EOF
18240
18241
18242 if test "$wxUSE_TIPWINDOW" = "yes"; then
18243 cat >> confdefs.h <<\EOF
18244 #define wxUSE_TIPWINDOW 1
18245 EOF
18246
18247 fi
18248
18249 USES_CONTROLS=1
18250 fi
18251 fi
18252
18253 if test "$USES_CONTROLS" = 1; then
18254 cat >> confdefs.h <<\EOF
18255 #define wxUSE_CONTROLS 1
18256 EOF
18257
18258 fi
18259
18260
18261 if test "$wxUSE_TREELAYOUT" = "yes"; then
18262 cat >> confdefs.h <<\EOF
18263 #define wxUSE_TREELAYOUT 1
18264 EOF
18265
18266 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
18267 fi
18268
18269 if test "$wxUSE_DRAGIMAGE" = "yes"; then
18270 cat >> confdefs.h <<\EOF
18271 #define wxUSE_DRAGIMAGE 1
18272 EOF
18273
18274 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
18275 fi
18276
18277 if test "$wxUSE_MENUS" = "yes"; then
18278 cat >> confdefs.h <<\EOF
18279 #define wxUSE_MENUS 1
18280 EOF
18281
18282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
18283 fi
18284
18285 if test "$wxUSE_METAFILE" = "yes"; then
18286 cat >> confdefs.h <<\EOF
18287 #define wxUSE_METAFILE 1
18288 EOF
18289
18290 fi
18291
18292 if test "$wxUSE_MIMETYPE" = "yes"; then
18293 cat >> confdefs.h <<\EOF
18294 #define wxUSE_MIMETYPE 1
18295 EOF
18296
18297 fi
18298
18299 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
18300 cat >> confdefs.h <<\EOF
18301 #define wxUSE_SYSTEM_OPTIONS 1
18302 EOF
18303
18304 fi
18305
18306 if test "$wxUSE_MINIFRAME" = "yes"; then
18307 cat >> confdefs.h <<\EOF
18308 #define wxUSE_MINIFRAME 1
18309 EOF
18310
18311 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
18312 fi
18313
18314 if test "$wxUSE_HTML" = "yes"; then
18315 cat >> confdefs.h <<\EOF
18316 #define wxUSE_HTML 1
18317 EOF
18318
18319 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
18320 fi
18321
18322 if test "$wxUSE_VALIDATORS" = "yes"; then
18323 cat >> confdefs.h <<\EOF
18324 #define wxUSE_VALIDATORS 1
18325 EOF
18326
18327 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
18328 fi
18329
18330 if test "$wxUSE_PALETTE" = "yes" ; then
18331 cat >> confdefs.h <<\EOF
18332 #define wxUSE_PALETTE 1
18333 EOF
18334
18335 fi
18336
18337 if test "$wxUSE_IMAGE" = "yes" ; then
18338 cat >> confdefs.h <<\EOF
18339 #define wxUSE_IMAGE 1
18340 EOF
18341
18342 fi
18343
18344 if test "$wxUSE_GIF" = "yes" ; then
18345 cat >> confdefs.h <<\EOF
18346 #define wxUSE_GIF 1
18347 EOF
18348
18349 fi
18350
18351 if test "$wxUSE_PCX" = "yes" ; then
18352 cat >> confdefs.h <<\EOF
18353 #define wxUSE_PCX 1
18354 EOF
18355
18356 fi
18357
18358 if test "$wxUSE_PNM" = "yes" ; then
18359 cat >> confdefs.h <<\EOF
18360 #define wxUSE_PNM 1
18361 EOF
18362
18363 fi
18364
18365 if test "$wxUSE_XPM" = "yes" ; then
18366 cat >> confdefs.h <<\EOF
18367 #define wxUSE_XPM 1
18368 EOF
18369
18370 fi
18371
18372
18373 if test "$wxUSE_CHOICEDLG" = "yes"; then
18374 cat >> confdefs.h <<\EOF
18375 #define wxUSE_CHOICEDLG 1
18376 EOF
18377
18378 fi
18379
18380 if test "$wxUSE_COLOURDLG" = "yes"; then
18381 cat >> confdefs.h <<\EOF
18382 #define wxUSE_COLOURDLG 1
18383 EOF
18384
18385 fi
18386
18387 if test "$wxUSE_FILEDLG" = "yes"; then
18388 cat >> confdefs.h <<\EOF
18389 #define wxUSE_FILEDLG 1
18390 EOF
18391
18392 fi
18393
18394 if test "$wxUSE_FINDREPLDLG" = "yes"; then
18395 cat >> confdefs.h <<\EOF
18396 #define wxUSE_FINDREPLDLG 1
18397 EOF
18398
18399 fi
18400
18401 if test "$wxUSE_FONTDLG" = "yes"; then
18402 cat >> confdefs.h <<\EOF
18403 #define wxUSE_FONTDLG 1
18404 EOF
18405
18406 fi
18407
18408 if test "$wxUSE_DIRDLG" = "yes"; then
18409 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18410 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
18411 else
18412 if test "$wxUSE_TREECTRL" != "yes"; then
18413 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
18414 else
18415 cat >> confdefs.h <<\EOF
18416 #define wxUSE_DIRDLG 1
18417 EOF
18418
18419 fi
18420 fi
18421 fi
18422
18423 if test "$wxUSE_MSGDLG" = "yes"; then
18424 cat >> confdefs.h <<\EOF
18425 #define wxUSE_MSGDLG 1
18426 EOF
18427
18428 fi
18429
18430 if test "$wxUSE_NUMBERDLG" = "yes"; then
18431 cat >> confdefs.h <<\EOF
18432 #define wxUSE_NUMBERDLG 1
18433 EOF
18434
18435 fi
18436
18437 if test "$wxUSE_PROGRESSDLG" = "yes"; then
18438 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18439 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
18440 else
18441 cat >> confdefs.h <<\EOF
18442 #define wxUSE_PROGRESSDLG 1
18443 EOF
18444
18445 fi
18446 fi
18447
18448 if test "$wxUSE_SPLASH" = "yes"; then
18449 cat >> confdefs.h <<\EOF
18450 #define wxUSE_SPLASH 1
18451 EOF
18452
18453 fi
18454
18455 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18456 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18457 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18458 else
18459 cat >> confdefs.h <<\EOF
18460 #define wxUSE_STARTUP_TIPS 1
18461 EOF
18462
18463 fi
18464 fi
18465
18466 if test "$wxUSE_TEXTDLG" = "yes"; then
18467 cat >> confdefs.h <<\EOF
18468 #define wxUSE_TEXTDLG 1
18469 EOF
18470
18471 fi
18472
18473 if test "$wxUSE_WIZARDDLG" = "yes"; then
18474 cat >> confdefs.h <<\EOF
18475 #define wxUSE_WIZARDDLG 1
18476 EOF
18477
18478 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18479 fi
18480
18481
18482 if test "$cross_compiling" = "yes"; then
18483 OSINFO="\"$host\""
18484 else
18485 OSINFO=`uname -s -r -m`
18486 OSINFO="\"$OSINFO\""
18487 fi
18488
18489 cat >> confdefs.h <<EOF
18490 #define WXWIN_OS_DESCRIPTION $OSINFO
18491 EOF
18492
18493
18494
18495 if test "x$prefix" != "xNONE"; then
18496 wxPREFIX=$prefix
18497 else
18498 wxPREFIX=$ac_default_prefix
18499 fi
18500
18501 cat >> confdefs.h <<EOF
18502 #define wxINSTALL_PREFIX "$wxPREFIX"
18503 EOF
18504
18505
18506
18507
18508
18509 if test "$wxUSE_MAC" = 1 ; then
18510 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
18511 fi
18512
18513
18514 LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
18515
18516 if test "$wxUSE_GUI" = "yes"; then
18517
18518 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
18519
18520
18521 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18522 drawing dynamic erase event exec font image \
18523 minimal richedit rotate widgets"
18524
18525 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18526 else
18527 SAMPLES_SUBDIRS="console"
18528 fi
18529
18530
18531 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
18532 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18533 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
18534
18535 if test "$wxUSE_GTK" = 1; then
18536 WXCONFIG_INCLUDE=
18537 else
18538 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18539 fi
18540
18541 if test "$GXX" = yes ; then
18542 CXXWARNINGS="-Wall"
18543
18544 if test "$wxUSE_NO_DEPS" = "no" ; then
18545 CFLAGS="-MMD $CFLAGS"
18546 CXXFLAGS="-MMD $CXXFLAGS"
18547 fi
18548 fi
18549
18550 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG$PROFILE $OPTIMISE $INCLUDES"
18551
18552 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18553 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18554
18555 LDFLAGS="$LDFLAGS$PROFILE"
18556
18557 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18558
18559
18560
18561
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626
18627
18628
18629
18630
18631
18632
18633
18634
18635
18636
18637
18638
18639
18640
18641
18642
18643 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
18644 echo "configure:18645: checking whether ${MAKE-make} sets \${MAKE}" >&5
18645 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18646 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18647 echo $ac_n "(cached) $ac_c" 1>&6
18648 else
18649 cat > conftestmake <<\EOF
18650 all:
18651 @echo 'ac_maketemp="${MAKE}"'
18652 EOF
18653 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18654 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
18655 if test -n "$ac_maketemp"; then
18656 eval ac_cv_prog_make_${ac_make}_set=yes
18657 else
18658 eval ac_cv_prog_make_${ac_make}_set=no
18659 fi
18660 rm -f conftestmake
18661 fi
18662 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18663 echo "$ac_t""yes" 1>&6
18664 SET_MAKE=
18665 else
18666 echo "$ac_t""no" 1>&6
18667 SET_MAKE="MAKE=${MAKE-make}"
18668 fi
18669
18670
18671 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18672 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
18673 fi
18674
18675
18676
18677 if test "$wxUSE_GUI" = "yes"; then
18678 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
18679 wx_cv_path_ifs=$PATH_IFS
18680 wx_cv_program_ext=$PROGRAM_EXT
18681 wx_cv_target_library=$WX_TARGET_LIBRARY
18682 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
18683 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
18684 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
18685 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
18686 subdirs="demos samples utils contrib"
18687
18688 fi
18689
18690 trap '' 1 2 15
18691 cat > confcache <<\EOF
18692 # This file is a shell script that caches the results of configure
18693 # tests run on this system so they can be shared between configure
18694 # scripts and configure runs. It is not useful on other systems.
18695 # If it contains results you don't want to keep, you may remove or edit it.
18696 #
18697 # By default, configure uses ./config.cache as the cache file,
18698 # creating it if it does not exist already. You can give configure
18699 # the --cache-file=FILE option to use a different cache file; that is
18700 # what configure does when it calls configure scripts in
18701 # subdirectories, so they share the cache.
18702 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18703 # config.status only pays attention to the cache file if you give it the
18704 # --recheck option to rerun configure.
18705 #
18706 EOF
18707 # The following way of writing the cache mishandles newlines in values,
18708 # but we know of no workaround that is simple, portable, and efficient.
18709 # So, don't put newlines in cache variables' values.
18710 # Ultrix sh set writes to stderr and can't be redirected directly,
18711 # and sets the high bit in the cache file unless we assign to the vars.
18712 (set) 2>&1 |
18713 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18714 *ac_space=\ *)
18715 # `set' does not quote correctly, so add quotes (double-quote substitution
18716 # turns \\\\ into \\, and sed turns \\ into \).
18717 sed -n \
18718 -e "s/'/'\\\\''/g" \
18719 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18720 ;;
18721 *)
18722 # `set' quotes correctly as required by POSIX, so do not add quotes.
18723 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18724 ;;
18725 esac >> confcache
18726 if cmp -s $cache_file confcache; then
18727 :
18728 else
18729 if test -w $cache_file; then
18730 echo "updating cache $cache_file"
18731 cat confcache > $cache_file
18732 else
18733 echo "not updating unwritable cache $cache_file"
18734 fi
18735 fi
18736 rm -f confcache
18737
18738 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18739
18740 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18741 # Let make expand exec_prefix.
18742 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18743
18744 # Any assignment to VPATH causes Sun make to only execute
18745 # the first set of double-colon rules, so remove it if not needed.
18746 # If there is a colon in the path, we need to keep it.
18747 if test "x$srcdir" = x.; then
18748 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18749 fi
18750
18751 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18752
18753 DEFS=-DHAVE_CONFIG_H
18754
18755 # Without the "./", some shells look in PATH for config.status.
18756 : ${CONFIG_STATUS=./config.status}
18757
18758 echo creating $CONFIG_STATUS
18759 rm -f $CONFIG_STATUS
18760 cat > $CONFIG_STATUS <<EOF
18761 #! /bin/sh
18762 # Generated automatically by configure.
18763 # Run this file to recreate the current configuration.
18764 # This directory was configured as follows,
18765 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18766 #
18767 # $0 $ac_configure_args
18768 #
18769 # Compiler output produced by configure, useful for debugging
18770 # configure, is in ./config.log if it exists.
18771
18772 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18773 for ac_option
18774 do
18775 case "\$ac_option" in
18776 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18777 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18778 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18779 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18780 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18781 exit 0 ;;
18782 -help | --help | --hel | --he | --h)
18783 echo "\$ac_cs_usage"; exit 0 ;;
18784 *) echo "\$ac_cs_usage"; exit 1 ;;
18785 esac
18786 done
18787
18788 ac_given_srcdir=$srcdir
18789 ac_given_INSTALL="$INSTALL"
18790
18791 trap 'rm -fr `echo "
18792 wx-config
18793 src/make.env
18794 src/makeprog.env
18795 src/makelib.env
18796 Makefile
18797 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18798 EOF
18799 cat >> $CONFIG_STATUS <<EOF
18800
18801 # Protect against being on the right side of a sed subst in config.status.
18802 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18803 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18804 $ac_vpsub
18805 $extrasub
18806 s%@SHELL@%$SHELL%g
18807 s%@CFLAGS@%$CFLAGS%g
18808 s%@CPPFLAGS@%$CPPFLAGS%g
18809 s%@CXXFLAGS@%$CXXFLAGS%g
18810 s%@FFLAGS@%$FFLAGS%g
18811 s%@DEFS@%$DEFS%g
18812 s%@LDFLAGS@%$LDFLAGS%g
18813 s%@LIBS@%$LIBS%g
18814 s%@exec_prefix@%$exec_prefix%g
18815 s%@prefix@%$prefix%g
18816 s%@program_transform_name@%$program_transform_name%g
18817 s%@bindir@%$bindir%g
18818 s%@sbindir@%$sbindir%g
18819 s%@libexecdir@%$libexecdir%g
18820 s%@datadir@%$datadir%g
18821 s%@sysconfdir@%$sysconfdir%g
18822 s%@sharedstatedir@%$sharedstatedir%g
18823 s%@localstatedir@%$localstatedir%g
18824 s%@libdir@%$libdir%g
18825 s%@includedir@%$includedir%g
18826 s%@oldincludedir@%$oldincludedir%g
18827 s%@infodir@%$infodir%g
18828 s%@mandir@%$mandir%g
18829 s%@host@%$host%g
18830 s%@host_alias@%$host_alias%g
18831 s%@host_cpu@%$host_cpu%g
18832 s%@host_vendor@%$host_vendor%g
18833 s%@host_os@%$host_os%g
18834 s%@target@%$target%g
18835 s%@target_alias@%$target_alias%g
18836 s%@target_cpu@%$target_cpu%g
18837 s%@target_vendor@%$target_vendor%g
18838 s%@target_os@%$target_os%g
18839 s%@build@%$build%g
18840 s%@build_alias@%$build_alias%g
18841 s%@build_cpu@%$build_cpu%g
18842 s%@build_vendor@%$build_vendor%g
18843 s%@build_os@%$build_os%g
18844 s%@CC@%$CC%g
18845 s%@CPP@%$CPP%g
18846 s%@CXX@%$CXX%g
18847 s%@RANLIB@%$RANLIB%g
18848 s%@AR@%$AR%g
18849 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18850 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18851 s%@INSTALL_DATA@%$INSTALL_DATA%g
18852 s%@STRIP@%$STRIP%g
18853 s%@YACC@%$YACC%g
18854 s%@LEX@%$LEX%g
18855 s%@LEXLIB@%$LEXLIB%g
18856 s%@LN_S@%$LN_S%g
18857 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18858 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18859 s%@GTK_LIBS@%$GTK_LIBS%g
18860 s%@GTK_CONFIG@%$GTK_CONFIG%g
18861 s%@X_CFLAGS@%$X_CFLAGS%g
18862 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18863 s%@X_LIBS@%$X_LIBS%g
18864 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18865 s%@RESCOMP@%$RESCOMP%g
18866 s%@DEREZ@%$DEREZ%g
18867 s%@CXXCPP@%$CXXCPP%g
18868 s%@LEX_STEM@%$LEX_STEM%g
18869 s%@PATH_IFS@%$PATH_IFS%g
18870 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18871 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18872 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18873 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18874 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18875 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
18876 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18877 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18878 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18879 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18880 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18881 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18882 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18883 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18884 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18885 s%@WX_ALL@%$WX_ALL%g
18886 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18887 s%@SHARED_LD@%$SHARED_LD%g
18888 s%@PIC_FLAG@%$PIC_FLAG%g
18889 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18890 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18891 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18892 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
18893 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18894 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18895 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18896 s%@USE_GUI@%$USE_GUI%g
18897 s%@AFMINSTALL@%$AFMINSTALL%g
18898 s%@TOOLKIT@%$TOOLKIT%g
18899 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18900 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18901 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18902 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
18903 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
18904 s%@cross_compiling@%$cross_compiling%g
18905 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18906 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
18907 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
18908 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
18909 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18910 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18911 s%@GUIDIST@%$GUIDIST%g
18912 s%@PORT_FILES@%$PORT_FILES%g
18913 s%@DISTDIR@%$DISTDIR%g
18914 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18915 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
18916 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18917 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
18918 s%@EXTRADEFS@%$EXTRADEFS%g
18919 s%@RESFLAGS@%$RESFLAGS%g
18920 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
18921 s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
18922 s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
18923 s%@LIBWXMACRES@%$LIBWXMACRES%g
18924 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18925 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
18926 s%@DLLTOOL@%$DLLTOOL%g
18927 s%@AS@%$AS%g
18928 s%@NM@%$NM%g
18929 s%@LD@%$LD%g
18930 s%@MAKEINFO@%$MAKEINFO%g
18931 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
18932 s%@SET_MAKE@%$SET_MAKE%g
18933 s%@subdirs@%$subdirs%g
18934
18935 CEOF
18936 EOF
18937
18938 cat >> $CONFIG_STATUS <<\EOF
18939
18940 # Split the substitutions into bite-sized pieces for seds with
18941 # small command number limits, like on Digital OSF/1 and HP-UX.
18942 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18943 ac_file=1 # Number of current file.
18944 ac_beg=1 # First line for current file.
18945 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18946 ac_more_lines=:
18947 ac_sed_cmds=""
18948 while $ac_more_lines; do
18949 if test $ac_beg -gt 1; then
18950 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18951 else
18952 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18953 fi
18954 if test ! -s conftest.s$ac_file; then
18955 ac_more_lines=false
18956 rm -f conftest.s$ac_file
18957 else
18958 if test -z "$ac_sed_cmds"; then
18959 ac_sed_cmds="sed -f conftest.s$ac_file"
18960 else
18961 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18962 fi
18963 ac_file=`expr $ac_file + 1`
18964 ac_beg=$ac_end
18965 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18966 fi
18967 done
18968 if test -z "$ac_sed_cmds"; then
18969 ac_sed_cmds=cat
18970 fi
18971 EOF
18972
18973 cat >> $CONFIG_STATUS <<EOF
18974
18975 CONFIG_FILES=\${CONFIG_FILES-"wx-config
18976 src/make.env
18977 src/makeprog.env
18978 src/makelib.env
18979 Makefile
18980 "}
18981 EOF
18982 cat >> $CONFIG_STATUS <<\EOF
18983 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18984 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18985 case "$ac_file" in
18986 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18987 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18988 *) ac_file_in="${ac_file}.in" ;;
18989 esac
18990
18991 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18992
18993 # Remove last slash and all that follows it. Not all systems have dirname.
18994 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18995 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18996 # The file is in a subdirectory.
18997 test ! -d "$ac_dir" && mkdir "$ac_dir"
18998 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18999 # A "../" for each directory in $ac_dir_suffix.
19000 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
19001 else
19002 ac_dir_suffix= ac_dots=
19003 fi
19004
19005 case "$ac_given_srcdir" in
19006 .) srcdir=.
19007 if test -z "$ac_dots"; then top_srcdir=.
19008 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
19009 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
19010 *) # Relative path.
19011 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
19012 top_srcdir="$ac_dots$ac_given_srcdir" ;;
19013 esac
19014
19015 case "$ac_given_INSTALL" in
19016 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19017 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19018 esac
19019
19020 echo creating "$ac_file"
19021 rm -f "$ac_file"
19022 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
19023 case "$ac_file" in
19024 *Makefile*) ac_comsub="1i\\
19025 # $configure_input" ;;
19026 *) ac_comsub= ;;
19027 esac
19028
19029 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19030 sed -e "$ac_comsub
19031 s%@configure_input@%$configure_input%g
19032 s%@srcdir@%$srcdir%g
19033 s%@top_srcdir@%$top_srcdir%g
19034 s%@INSTALL@%$INSTALL%g
19035 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
19036 fi; done
19037 rm -f conftest.s*
19038
19039 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19040 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19041 #
19042 # ac_d sets the value in "#define NAME VALUE" lines.
19043 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19044 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
19045 ac_dC='\3'
19046 ac_dD='%g'
19047 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19048 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19049 ac_uB='\([ ]\)%\1#\2define\3'
19050 ac_uC=' '
19051 ac_uD='\4%g'
19052 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19053 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19054 ac_eB='$%\1#\2define\3'
19055 ac_eC=' '
19056 ac_eD='%g'
19057
19058 if test "${CONFIG_HEADERS+set}" != set; then
19059 EOF
19060 cat >> $CONFIG_STATUS <<EOF
19061 CONFIG_HEADERS="setup.h:setup.h.in"
19062 EOF
19063 cat >> $CONFIG_STATUS <<\EOF
19064 fi
19065 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
19066 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19067 case "$ac_file" in
19068 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19069 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19070 *) ac_file_in="${ac_file}.in" ;;
19071 esac
19072
19073 echo creating $ac_file
19074
19075 rm -f conftest.frag conftest.in conftest.out
19076 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19077 cat $ac_file_inputs > conftest.in
19078
19079 EOF
19080
19081 # Transform confdefs.h into a sed script conftest.vals that substitutes
19082 # the proper values into config.h.in to produce config.h. And first:
19083 # Protect against being on the right side of a sed subst in config.status.
19084 # Protect against being in an unquoted here document in config.status.
19085 rm -f conftest.vals
19086 cat > conftest.hdr <<\EOF
19087 s/[\\&%]/\\&/g
19088 s%[\\$`]%\\&%g
19089 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
19090 s%ac_d%ac_u%gp
19091 s%ac_u%ac_e%gp
19092 EOF
19093 sed -n -f conftest.hdr confdefs.h > conftest.vals
19094 rm -f conftest.hdr
19095
19096 # This sed command replaces #undef with comments. This is necessary, for
19097 # example, in the case of _POSIX_SOURCE, which is predefined and required
19098 # on some systems where configure will not decide to define it.
19099 cat >> conftest.vals <<\EOF
19100 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
19101 EOF
19102
19103 # Break up conftest.vals because some shells have a limit on
19104 # the size of here documents, and old seds have small limits too.
19105
19106 rm -f conftest.tail
19107 while :
19108 do
19109 ac_lines=`grep -c . conftest.vals`
19110 # grep -c gives empty output for an empty file on some AIX systems.
19111 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
19112 # Write a limited-size here document to conftest.frag.
19113 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
19114 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
19115 echo 'CEOF
19116 sed -f conftest.frag conftest.in > conftest.out
19117 rm -f conftest.in
19118 mv conftest.out conftest.in
19119 ' >> $CONFIG_STATUS
19120 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19121 rm -f conftest.vals
19122 mv conftest.tail conftest.vals
19123 done
19124 rm -f conftest.vals
19125
19126 cat >> $CONFIG_STATUS <<\EOF
19127 rm -f conftest.frag conftest.h
19128 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
19129 cat conftest.in >> conftest.h
19130 rm -f conftest.in
19131 if cmp -s $ac_file conftest.h 2>/dev/null; then
19132 echo "$ac_file is unchanged"
19133 rm -f conftest.h
19134 else
19135 # Remove last slash and all that follows it. Not all systems have dirname.
19136 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19137 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19138 # The file is in a subdirectory.
19139 test ! -d "$ac_dir" && mkdir "$ac_dir"
19140 fi
19141 rm -f $ac_file
19142 mv conftest.h $ac_file
19143 fi
19144 fi; done
19145
19146 EOF
19147 cat >> $CONFIG_STATUS <<EOF
19148
19149 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
19150 LN_S="${LN_S}"
19151
19152
19153 EOF
19154 cat >> $CONFIG_STATUS <<\EOF
19155
19156 if test ! -h wx-config; then
19157 chmod +x wx-config
19158 mv wx-config wx${TOOLCHAIN_NAME}-config
19159 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
19160 fi
19161
19162 if test ! -d lib; then
19163 mkdir lib
19164 fi
19165 if test ! -d lib/wx; then
19166 mkdir lib/wx
19167 fi
19168 if test ! -d lib/wx/include; then
19169 mkdir lib/wx/include
19170 fi
19171 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
19172 mkdir lib/wx/include/${TOOLCHAIN_NAME}
19173 fi
19174 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
19175 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
19176 fi
19177 if test -f setup.h; then
19178 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
19179 fi
19180
19181 exit 0
19182 EOF
19183 chmod +x $CONFIG_STATUS
19184 rm -fr confdefs* $ac_clean_files
19185 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
19186
19187 if test "$no_recursion" != yes; then
19188
19189 # Remove --cache-file and --srcdir arguments so they do not pile up.
19190 ac_sub_configure_args=
19191 ac_prev=
19192 for ac_arg in $ac_configure_args; do
19193 if test -n "$ac_prev"; then
19194 ac_prev=
19195 continue
19196 fi
19197 case "$ac_arg" in
19198 -cache-file | --cache-file | --cache-fil | --cache-fi \
19199 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19200 ac_prev=cache_file ;;
19201 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19202 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
19203 ;;
19204 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19205 ac_prev=srcdir ;;
19206 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19207 ;;
19208 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
19209 esac
19210 done
19211
19212 for ac_config_dir in demos samples utils contrib; do
19213
19214 # Do not complain, so a configure script can configure whichever
19215 # parts of a large source tree are present.
19216 if test ! -d $srcdir/$ac_config_dir; then
19217 continue
19218 fi
19219
19220 echo configuring in $ac_config_dir
19221
19222 case "$srcdir" in
19223 .) ;;
19224 *)
19225 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
19226 else
19227 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
19228 fi
19229 ;;
19230 esac
19231
19232 ac_popdir=`pwd`
19233 cd $ac_config_dir
19234
19235 # A "../" for each directory in /$ac_config_dir.
19236 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
19237
19238 case "$srcdir" in
19239 .) # No --srcdir option. We are building in place.
19240 ac_sub_srcdir=$srcdir ;;
19241 /*) # Absolute path.
19242 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
19243 *) # Relative path.
19244 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
19245 esac
19246
19247 # Check for guested configure; otherwise get Cygnus style configure.
19248 if test -f $ac_sub_srcdir/configure; then
19249 ac_sub_configure=$ac_sub_srcdir/configure
19250 elif test -f $ac_sub_srcdir/configure.in; then
19251 ac_sub_configure=$ac_configure
19252 else
19253 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
19254 ac_sub_configure=
19255 fi
19256
19257 # The recursion is here.
19258 if test -n "$ac_sub_configure"; then
19259
19260 # Make the cache file name correct relative to the subdirectory.
19261 case "$cache_file" in
19262 /*) ac_sub_cache_file=$cache_file ;;
19263 *) # Relative path.
19264 ac_sub_cache_file="$ac_dots$cache_file" ;;
19265 esac
19266 case "$ac_given_INSTALL" in
19267 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19268 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19269 esac
19270
19271 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
19272 # The eval makes quoting arguments work.
19273 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
19274 then :
19275 else
19276 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
19277 fi
19278 fi
19279
19280 cd $ac_popdir
19281 done
19282 fi
19283
19284