]> git.saurik.com Git - wxWidgets.git/blob - configure
oops, configure defined _WIN_IE instead of _WIN32_IE for cross-compilation
[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-textfile use wxTextFile classes"
172 ac_help="$ac_help
173 --enable-fontmap use font encodings conversion classes"
174 ac_help="$ac_help
175 --enable-unicode compile wxString with Unicode support"
176 ac_help="$ac_help
177 --enable-wxprintfv use wxWindows implementation of vprintf()"
178 ac_help="$ac_help
179 --enable-std_iostreams use standard C++ stream classes"
180 ac_help="$ac_help
181 --enable-filesystem use virtual file systems classes"
182 ac_help="$ac_help
183 --enable-fs_inet use virtual HTTP/FTP filesystems"
184 ac_help="$ac_help
185 --enable-fs_zip use virtual ZIP filesystems"
186 ac_help="$ac_help
187 --enable-zipstream use wxZipInputStream"
188 ac_help="$ac_help
189 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
190 ac_help="$ac_help
191 --enable-snglinst use wxSingleInstanceChecker class"
192 ac_help="$ac_help
193 --enable-mimetypes use wxMimeTypesManager"
194 ac_help="$ac_help
195 --enable-sysoptions use wxSystemOptions"
196 ac_help="$ac_help
197 --enable-threads use threads"
198 ac_help="$ac_help
199 --enable-serial use class serialization"
200 ac_help="$ac_help
201 --enable-docview use document view architecture"
202 ac_help="$ac_help
203 --enable-help use help subsystem"
204 ac_help="$ac_help
205 --enable-mshtmlhelp use MS HTML Help (win32)"
206 ac_help="$ac_help
207 --enable-html use wxHTML sub-library"
208 ac_help="$ac_help
209 --enable-htmlhelp use wxHTML-based help"
210 ac_help="$ac_help
211 --enable-constraints use layout-constraints system"
212 ac_help="$ac_help
213 --enable-printarch use printing architecture"
214 ac_help="$ac_help
215 --enable-mdi use multiple document interface architecture"
216 ac_help="$ac_help
217 --enable-loggui use standard GUI logger"
218 ac_help="$ac_help
219 --enable-logwin use wxLogWindow"
220 ac_help="$ac_help
221 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
222 ac_help="$ac_help
223 --enable-prologio use Prolog IO library"
224 ac_help="$ac_help
225 --enable-resources use wxWindows resources"
226 ac_help="$ac_help
227 --enable-xresources use X resources for save (default for gtk+)"
228 ac_help="$ac_help
229 --enable-clipboard use wxClipboard classes"
230 ac_help="$ac_help
231 --enable-dnd use Drag'n'Drop classes"
232 ac_help="$ac_help
233 --enable-metafile use win32 metafiles"
234 ac_help="$ac_help
235 --enable-treelayout use wxTreeLayout classes"
236 ac_help="$ac_help
237 --enable-controls use all usual controls"
238 ac_help="$ac_help
239 --enable-accel use accelerators"
240 ac_help="$ac_help
241 --enable-button use wxButton class"
242 ac_help="$ac_help
243 --enable-bmpbutton use wxBitmapButton class"
244 ac_help="$ac_help
245 --enable-calendar use wxCalendarCtrl class"
246 ac_help="$ac_help
247 --enable-caret use wxCaret class"
248 ac_help="$ac_help
249 --enable-checkbox use wxCheckBox class"
250 ac_help="$ac_help
251 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
252 ac_help="$ac_help
253 --enable-choice use wxChoice class"
254 ac_help="$ac_help
255 --enable-combobox use wxComboBox classes"
256 ac_help="$ac_help
257 --enable-gauge use wxGauge class"
258 ac_help="$ac_help
259 --enable-grid use wxGrid class"
260 ac_help="$ac_help
261 --enable-newgrid use new wxGrid class"
262 ac_help="$ac_help
263 --enable-imaglist use wxImageList class"
264 ac_help="$ac_help
265 --enable-listbox use wxListBox class"
266 ac_help="$ac_help
267 --enable-listctrl use wxListCtrl class"
268 ac_help="$ac_help
269 --enable-notebook use wxNotebook class"
270 ac_help="$ac_help
271 --enable-propsheet use wxPropertySheet class"
272 ac_help="$ac_help
273 --enable-radiobox use wxRadioBox class"
274 ac_help="$ac_help
275 --enable-radiobtn use wxRadioButton class"
276 ac_help="$ac_help
277 --enable-sash use wxSashWindow class"
278 ac_help="$ac_help
279 --enable-scrollbar use wxScrollBar class and scrollable windows"
280 ac_help="$ac_help
281 --enable-slider use wxSlider class"
282 ac_help="$ac_help
283 --enable-spinbtn use wxSpinButton class"
284 ac_help="$ac_help
285 --enable-spinctrl use wxSpinCtrl class"
286 ac_help="$ac_help
287 --enable-splitter use wxSplitterWindow class"
288 ac_help="$ac_help
289 --enable-statbmp use wxStaticBitmap class"
290 ac_help="$ac_help
291 --enable-statbox use wxStaticBox class"
292 ac_help="$ac_help
293 --enable-statline use wxStaticLine class"
294 ac_help="$ac_help
295 --enable-stattext use wxStaticText class"
296 ac_help="$ac_help
297 --enable-statusbar use wxStatusBar class"
298 ac_help="$ac_help
299 --enable-tabdialog use wxTabControl class"
300 ac_help="$ac_help
301 --enable-textctrl use wxTextCtrl class"
302 ac_help="$ac_help
303 --enable-togglebtn use wxToggleButton class"
304 ac_help="$ac_help
305 --enable-toolbar use wxToolBar class"
306 ac_help="$ac_help
307 --enable-tbarnative use native wxToolBar class"
308 ac_help="$ac_help
309 --enable-tbarsmpl use wxToolBarSimple class"
310 ac_help="$ac_help
311 --enable-treectrl use wxTreeCtrl class"
312 ac_help="$ac_help
313 --enable-popupwin use wxPopUpWindow class"
314 ac_help="$ac_help
315 --enable-commondlg use all common dialogs"
316 ac_help="$ac_help
317 --enable-choicedlg use wxChoiceDialog"
318 ac_help="$ac_help
319 --enable-coldlg use wxColourDialog"
320 ac_help="$ac_help
321 --enable-filedlg use wxFileDialog"
322 ac_help="$ac_help
323 --enable-finddlg use wxFindReplaceDialog"
324 ac_help="$ac_help
325 --enable-fontdlg use wxFontDialog"
326 ac_help="$ac_help
327 --enable-dirdlg use wxDirDialog"
328 ac_help="$ac_help
329 --enable-msgdlg use wxMessageDialog"
330 ac_help="$ac_help
331 --enable-numberdlg use wxNumberEntryDialog"
332 ac_help="$ac_help
333 --enable-splash use wxSplashScreen"
334 ac_help="$ac_help
335 --enable-textdlg use wxTextDialog"
336 ac_help="$ac_help
337 --enable-tipdlg use startup tips"
338 ac_help="$ac_help
339 --enable-progressdlg use wxProgressDialog"
340 ac_help="$ac_help
341 --enable-wizarddlg use wxWizard"
342 ac_help="$ac_help
343 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
344 ac_help="$ac_help
345 --enable-miniframe use wxMiniFrame class"
346 ac_help="$ac_help
347 --enable-tooltips use wxToolTip class"
348 ac_help="$ac_help
349 --enable-splines use spline drawing code"
350 ac_help="$ac_help
351 --enable-validators use wxValidator and derived classes"
352 ac_help="$ac_help
353 --enable-busyinfo use wxBusyInfo"
354 ac_help="$ac_help
355 --enable-joystick use wxJoystick (Linux only)"
356 ac_help="$ac_help
357 --enable-metafiles use wxMetaFile (Windows only)"
358 ac_help="$ac_help
359 --enable-dragimage use wxDragImage"
360 ac_help="$ac_help
361 --enable-palette use wxPalette class"
362 ac_help="$ac_help
363 --enable-image use wxImage class"
364 ac_help="$ac_help
365 --enable-gif use gif images (GIF file format)"
366 ac_help="$ac_help
367 --enable-pcx use pcx images (PCX file format)"
368 ac_help="$ac_help
369 --enable-pnm use pnm images (PNM file format)"
370 ac_help="$ac_help
371 --enable-xpm use xpm images (XPM file format)"
372 ac_help="$ac_help
373 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
374 ac_help="$ac_help
375 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
376 ac_help="$ac_help
377 --disable-gtktest Do not try to compile and run a test GTK program"
378 ac_help="$ac_help
379 --with-x use the X Window System"
380
381 # Initialize some variables set by options.
382 # The variables have the same names as the options, with
383 # dashes changed to underlines.
384 build=NONE
385 cache_file=./config.cache
386 exec_prefix=NONE
387 host=NONE
388 no_create=
389 nonopt=NONE
390 no_recursion=
391 prefix=NONE
392 program_prefix=NONE
393 program_suffix=NONE
394 program_transform_name=s,x,x,
395 silent=
396 site=
397 srcdir=
398 target=NONE
399 verbose=
400 x_includes=NONE
401 x_libraries=NONE
402 bindir='${exec_prefix}/bin'
403 sbindir='${exec_prefix}/sbin'
404 libexecdir='${exec_prefix}/libexec'
405 datadir='${prefix}/share'
406 sysconfdir='${prefix}/etc'
407 sharedstatedir='${prefix}/com'
408 localstatedir='${prefix}/var'
409 libdir='${exec_prefix}/lib'
410 includedir='${prefix}/include'
411 oldincludedir='/usr/include'
412 infodir='${prefix}/info'
413 mandir='${prefix}/man'
414
415 # Initialize some other variables.
416 subdirs=
417 MFLAGS= MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419 # Maximum number of lines to put in a shell here document.
420 ac_max_here_lines=12
421
422 ac_prev=
423 for ac_option
424 do
425
426 # If the previous option needs an argument, assign it.
427 if test -n "$ac_prev"; then
428 eval "$ac_prev=\$ac_option"
429 ac_prev=
430 continue
431 fi
432
433 case "$ac_option" in
434 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
435 *) ac_optarg= ;;
436 esac
437
438 # Accept the important Cygnus configure options, so we can diagnose typos.
439
440 case "$ac_option" in
441
442 -bindir | --bindir | --bindi | --bind | --bin | --bi)
443 ac_prev=bindir ;;
444 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
445 bindir="$ac_optarg" ;;
446
447 -build | --build | --buil | --bui | --bu)
448 ac_prev=build ;;
449 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
450 build="$ac_optarg" ;;
451
452 -cache-file | --cache-file | --cache-fil | --cache-fi \
453 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
454 ac_prev=cache_file ;;
455 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
456 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
457 cache_file="$ac_optarg" ;;
458
459 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
460 ac_prev=datadir ;;
461 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
462 | --da=*)
463 datadir="$ac_optarg" ;;
464
465 -disable-* | --disable-*)
466 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
467 # Reject names that are not valid shell variable names.
468 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
469 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
470 fi
471 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
472 eval "enable_${ac_feature}=no" ;;
473
474 -enable-* | --enable-*)
475 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
476 # Reject names that are not valid shell variable names.
477 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
478 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
479 fi
480 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
481 case "$ac_option" in
482 *=*) ;;
483 *) ac_optarg=yes ;;
484 esac
485 eval "enable_${ac_feature}='$ac_optarg'" ;;
486
487 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
488 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
489 | --exec | --exe | --ex)
490 ac_prev=exec_prefix ;;
491 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
492 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
493 | --exec=* | --exe=* | --ex=*)
494 exec_prefix="$ac_optarg" ;;
495
496 -gas | --gas | --ga | --g)
497 # Obsolete; use --with-gas.
498 with_gas=yes ;;
499
500 -help | --help | --hel | --he)
501 # Omit some internal or obsolete options to make the list less imposing.
502 # This message is too long to be a string in the A/UX 3.1 sh.
503 cat << EOF
504 Usage: configure [options] [host]
505 Options: [defaults in brackets after descriptions]
506 Configuration:
507 --cache-file=FILE cache test results in FILE
508 --help print this message
509 --no-create do not create output files
510 --quiet, --silent do not print \`checking...' messages
511 --version print the version of autoconf that created configure
512 Directory and file names:
513 --prefix=PREFIX install architecture-independent files in PREFIX
514 [$ac_default_prefix]
515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
516 [same as prefix]
517 --bindir=DIR user executables in DIR [EPREFIX/bin]
518 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
519 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
520 --datadir=DIR read-only architecture-independent data in DIR
521 [PREFIX/share]
522 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
523 --sharedstatedir=DIR modifiable architecture-independent data in DIR
524 [PREFIX/com]
525 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
526 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
527 --includedir=DIR C header files in DIR [PREFIX/include]
528 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
529 --infodir=DIR info documentation in DIR [PREFIX/info]
530 --mandir=DIR man documentation in DIR [PREFIX/man]
531 --srcdir=DIR find the sources in DIR [configure dir or ..]
532 --program-prefix=PREFIX prepend PREFIX to installed program names
533 --program-suffix=SUFFIX append SUFFIX to installed program names
534 --program-transform-name=PROGRAM
535 run sed PROGRAM on installed program names
536 EOF
537 cat << EOF
538 Host type:
539 --build=BUILD configure for building on BUILD [BUILD=HOST]
540 --host=HOST configure for HOST [guessed]
541 --target=TARGET configure for TARGET [TARGET=HOST]
542 Features and packages:
543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
547 --x-includes=DIR X include files are in DIR
548 --x-libraries=DIR X library files are in DIR
549 EOF
550 if test -n "$ac_help"; then
551 echo "--enable and --with options recognized:$ac_help"
552 fi
553 exit 0 ;;
554
555 -host | --host | --hos | --ho)
556 ac_prev=host ;;
557 -host=* | --host=* | --hos=* | --ho=*)
558 host="$ac_optarg" ;;
559
560 -includedir | --includedir | --includedi | --included | --include \
561 | --includ | --inclu | --incl | --inc)
562 ac_prev=includedir ;;
563 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
564 | --includ=* | --inclu=* | --incl=* | --inc=*)
565 includedir="$ac_optarg" ;;
566
567 -infodir | --infodir | --infodi | --infod | --info | --inf)
568 ac_prev=infodir ;;
569 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
570 infodir="$ac_optarg" ;;
571
572 -libdir | --libdir | --libdi | --libd)
573 ac_prev=libdir ;;
574 -libdir=* | --libdir=* | --libdi=* | --libd=*)
575 libdir="$ac_optarg" ;;
576
577 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
578 | --libexe | --libex | --libe)
579 ac_prev=libexecdir ;;
580 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
581 | --libexe=* | --libex=* | --libe=*)
582 libexecdir="$ac_optarg" ;;
583
584 -localstatedir | --localstatedir | --localstatedi | --localstated \
585 | --localstate | --localstat | --localsta | --localst \
586 | --locals | --local | --loca | --loc | --lo)
587 ac_prev=localstatedir ;;
588 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
589 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
590 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
591 localstatedir="$ac_optarg" ;;
592
593 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
594 ac_prev=mandir ;;
595 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
596 mandir="$ac_optarg" ;;
597
598 -nfp | --nfp | --nf)
599 # Obsolete; use --without-fp.
600 with_fp=no ;;
601
602 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
603 | --no-cr | --no-c)
604 no_create=yes ;;
605
606 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
607 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
608 no_recursion=yes ;;
609
610 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
611 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
612 | --oldin | --oldi | --old | --ol | --o)
613 ac_prev=oldincludedir ;;
614 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
615 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
616 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
617 oldincludedir="$ac_optarg" ;;
618
619 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
620 ac_prev=prefix ;;
621 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
622 prefix="$ac_optarg" ;;
623
624 -program-prefix | --program-prefix | --program-prefi | --program-pref \
625 | --program-pre | --program-pr | --program-p)
626 ac_prev=program_prefix ;;
627 -program-prefix=* | --program-prefix=* | --program-prefi=* \
628 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
629 program_prefix="$ac_optarg" ;;
630
631 -program-suffix | --program-suffix | --program-suffi | --program-suff \
632 | --program-suf | --program-su | --program-s)
633 ac_prev=program_suffix ;;
634 -program-suffix=* | --program-suffix=* | --program-suffi=* \
635 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
636 program_suffix="$ac_optarg" ;;
637
638 -program-transform-name | --program-transform-name \
639 | --program-transform-nam | --program-transform-na \
640 | --program-transform-n | --program-transform- \
641 | --program-transform | --program-transfor \
642 | --program-transfo | --program-transf \
643 | --program-trans | --program-tran \
644 | --progr-tra | --program-tr | --program-t)
645 ac_prev=program_transform_name ;;
646 -program-transform-name=* | --program-transform-name=* \
647 | --program-transform-nam=* | --program-transform-na=* \
648 | --program-transform-n=* | --program-transform-=* \
649 | --program-transform=* | --program-transfor=* \
650 | --program-transfo=* | --program-transf=* \
651 | --program-trans=* | --program-tran=* \
652 | --progr-tra=* | --program-tr=* | --program-t=*)
653 program_transform_name="$ac_optarg" ;;
654
655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
656 | -silent | --silent | --silen | --sile | --sil)
657 silent=yes ;;
658
659 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
660 ac_prev=sbindir ;;
661 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
662 | --sbi=* | --sb=*)
663 sbindir="$ac_optarg" ;;
664
665 -sharedstatedir | --sharedstatedir | --sharedstatedi \
666 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
667 | --sharedst | --shareds | --shared | --share | --shar \
668 | --sha | --sh)
669 ac_prev=sharedstatedir ;;
670 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
671 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
672 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
673 | --sha=* | --sh=*)
674 sharedstatedir="$ac_optarg" ;;
675
676 -site | --site | --sit)
677 ac_prev=site ;;
678 -site=* | --site=* | --sit=*)
679 site="$ac_optarg" ;;
680
681 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
682 ac_prev=srcdir ;;
683 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
684 srcdir="$ac_optarg" ;;
685
686 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
687 | --syscon | --sysco | --sysc | --sys | --sy)
688 ac_prev=sysconfdir ;;
689 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
690 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
691 sysconfdir="$ac_optarg" ;;
692
693 -target | --target | --targe | --targ | --tar | --ta | --t)
694 ac_prev=target ;;
695 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
696 target="$ac_optarg" ;;
697
698 -v | -verbose | --verbose | --verbos | --verbo | --verb)
699 verbose=yes ;;
700
701 -version | --version | --versio | --versi | --vers)
702 echo "configure generated by autoconf version 2.13"
703 exit 0 ;;
704
705 -with-* | --with-*)
706 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
707 # Reject names that are not valid shell variable names.
708 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
709 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
710 fi
711 ac_package=`echo $ac_package| sed 's/-/_/g'`
712 case "$ac_option" in
713 *=*) ;;
714 *) ac_optarg=yes ;;
715 esac
716 eval "with_${ac_package}='$ac_optarg'" ;;
717
718 -without-* | --without-*)
719 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
720 # Reject names that are not valid shell variable names.
721 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
722 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
723 fi
724 ac_package=`echo $ac_package| sed 's/-/_/g'`
725 eval "with_${ac_package}=no" ;;
726
727 --x)
728 # Obsolete; use --with-x.
729 with_x=yes ;;
730
731 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
732 | --x-incl | --x-inc | --x-in | --x-i)
733 ac_prev=x_includes ;;
734 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
735 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
736 x_includes="$ac_optarg" ;;
737
738 -x-libraries | --x-libraries | --x-librarie | --x-librari \
739 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
740 ac_prev=x_libraries ;;
741 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
742 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
743 x_libraries="$ac_optarg" ;;
744
745 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
746 ;;
747
748 *)
749 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
750 echo "configure: warning: $ac_option: invalid host type" 1>&2
751 fi
752 if test "x$nonopt" != xNONE; then
753 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
754 fi
755 nonopt="$ac_option"
756 ;;
757
758 esac
759 done
760
761 if test -n "$ac_prev"; then
762 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
763 fi
764
765 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
766
767 # File descriptor usage:
768 # 0 standard input
769 # 1 file creation
770 # 2 errors and warnings
771 # 3 some systems may open it to /dev/tty
772 # 4 used on the Kubota Titan
773 # 6 checking for... messages and results
774 # 5 compiler messages saved in config.log
775 if test "$silent" = yes; then
776 exec 6>/dev/null
777 else
778 exec 6>&1
779 fi
780 exec 5>./config.log
781
782 echo "\
783 This file contains any messages produced by compilers while
784 running configure, to aid debugging if configure makes a mistake.
785 " 1>&5
786
787 # Strip out --no-create and --no-recursion so they do not pile up.
788 # Also quote any args containing shell metacharacters.
789 ac_configure_args=
790 for ac_arg
791 do
792 case "$ac_arg" in
793 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
794 | --no-cr | --no-c) ;;
795 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
796 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
797 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
798 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
799 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
800 esac
801 done
802
803 # NLS nuisances.
804 # Only set these to C if already set. These must not be set unconditionally
805 # because not all systems understand e.g. LANG=C (notably SCO).
806 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
807 # Non-C LC_CTYPE values break the ctype check.
808 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
809 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
810 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
811 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
812
813 # confdefs.h avoids OS command line length limits that DEFS can exceed.
814 rm -rf conftest* confdefs.h
815 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
816 echo > confdefs.h
817
818 # A filename unique to this package, relative to the directory that
819 # configure is in, which we can look for to find out if srcdir is correct.
820 ac_unique_file=wx-config.in
821
822 # Find the source files, if location was not specified.
823 if test -z "$srcdir"; then
824 ac_srcdir_defaulted=yes
825 # Try the directory containing this script, then its parent.
826 ac_prog=$0
827 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
828 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
829 srcdir=$ac_confdir
830 if test ! -r $srcdir/$ac_unique_file; then
831 srcdir=..
832 fi
833 else
834 ac_srcdir_defaulted=no
835 fi
836 if test ! -r $srcdir/$ac_unique_file; then
837 if test "$ac_srcdir_defaulted" = yes; then
838 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
839 else
840 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
841 fi
842 fi
843 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
844
845 # Prefer explicitly selected file to automatically selected ones.
846 if test -z "$CONFIG_SITE"; then
847 if test "x$prefix" != xNONE; then
848 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
849 else
850 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
851 fi
852 fi
853 for ac_site_file in $CONFIG_SITE; do
854 if test -r "$ac_site_file"; then
855 echo "loading site script $ac_site_file"
856 . "$ac_site_file"
857 fi
858 done
859
860 if test -r "$cache_file"; then
861 echo "loading cache $cache_file"
862 . $cache_file
863 else
864 echo "creating cache $cache_file"
865 > $cache_file
866 fi
867
868 ac_ext=c
869 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
870 ac_cpp='$CPP $CPPFLAGS'
871 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
872 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
873 cross_compiling=$ac_cv_prog_cc_cross
874
875 ac_exeext=
876 ac_objext=o
877 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
878 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
879 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
880 ac_n= ac_c='
881 ' ac_t=' '
882 else
883 ac_n=-n ac_c= ac_t=
884 fi
885 else
886 ac_n= ac_c='\c' ac_t=
887 fi
888
889
890
891 ac_aux_dir=
892 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
893 if test -f $ac_dir/install-sh; then
894 ac_aux_dir=$ac_dir
895 ac_install_sh="$ac_aux_dir/install-sh -c"
896 break
897 elif test -f $ac_dir/install.sh; then
898 ac_aux_dir=$ac_dir
899 ac_install_sh="$ac_aux_dir/install.sh -c"
900 break
901 fi
902 done
903 if test -z "$ac_aux_dir"; then
904 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
905 fi
906 ac_config_guess=$ac_aux_dir/config.guess
907 ac_config_sub=$ac_aux_dir/config.sub
908 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
909
910
911 # Do some error checking and defaulting for the host and target type.
912 # The inputs are:
913 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
914 #
915 # The rules are:
916 # 1. You are not allowed to specify --host, --target, and nonopt at the
917 # same time.
918 # 2. Host defaults to nonopt.
919 # 3. If nonopt is not specified, then host defaults to the current host,
920 # as determined by config.guess.
921 # 4. Target and build default to nonopt.
922 # 5. If nonopt is not specified, then target and build default to host.
923
924 # The aliases save the names the user supplied, while $host etc.
925 # will get canonicalized.
926 case $host---$target---$nonopt in
927 NONE---*---* | *---NONE---* | *---*---NONE) ;;
928 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
929 esac
930
931
932 # Make sure we can run config.sub.
933 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
934 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
935 fi
936
937 echo $ac_n "checking host system type""... $ac_c" 1>&6
938 echo "configure:939: checking host system type" >&5
939
940 host_alias=$host
941 case "$host_alias" in
942 NONE)
943 case $nonopt in
944 NONE)
945 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
946 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
947 fi ;;
948 *) host_alias=$nonopt ;;
949 esac ;;
950 esac
951
952 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
953 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
954 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
955 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
956 echo "$ac_t""$host" 1>&6
957
958 echo $ac_n "checking target system type""... $ac_c" 1>&6
959 echo "configure:960: checking target system type" >&5
960
961 target_alias=$target
962 case "$target_alias" in
963 NONE)
964 case $nonopt in
965 NONE) target_alias=$host_alias ;;
966 *) target_alias=$nonopt ;;
967 esac ;;
968 esac
969
970 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
971 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
972 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
973 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
974 echo "$ac_t""$target" 1>&6
975
976 echo $ac_n "checking build system type""... $ac_c" 1>&6
977 echo "configure:978: checking build system type" >&5
978
979 build_alias=$build
980 case "$build_alias" in
981 NONE)
982 case $nonopt in
983 NONE) build_alias=$host_alias ;;
984 *) build_alias=$nonopt ;;
985 esac ;;
986 esac
987
988 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
989 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
990 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
991 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
992 echo "$ac_t""$build" 1>&6
993
994 test "$host_alias" != "$target_alias" &&
995 test "$program_prefix$program_suffix$program_transform_name" = \
996 NONENONEs,x,x, &&
997 program_prefix=${target_alias}-
998
999
1000
1001 WX_MAJOR_VERSION_NUMBER=2
1002 WX_MINOR_VERSION_NUMBER=3
1003 WX_RELEASE_NUMBER=2
1004
1005 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1006 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1007
1008 WX_CURRENT=1
1009 WX_REVISION=0
1010 WX_AGE=0
1011
1012
1013
1014 USE_UNIX=1
1015 USE_WIN32=0
1016 USE_BEOS=0
1017 USE_MAC=0
1018
1019 USE_LINUX=
1020 USE_SGI=
1021 USE_HPUX=
1022 USE_SYSV=
1023 USE_SVR4=
1024 USE_AIX=
1025 USE_SUN=
1026 USE_SOLARIS=
1027 USE_SUNOS=
1028 USE_ALPHA=
1029 USE_IA64=
1030 USE_OSF=
1031 USE_BSD=
1032 USE_DARWIN=
1033 USE_FREEBSD=
1034 USE_OPENBSD=
1035 USE_NETBSD=
1036 USE_VMS=
1037 USE_ULTRIX=
1038 USE_DATA_GENERAL=
1039
1040 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1041
1042 ALL_TOOLKITS="GTK MAC MGL MOTIF MSW PM WINE"
1043
1044 DEFAULT_wxUSE_GTK=0
1045 DEFAULT_wxUSE_MAC=0
1046 DEFAULT_wxUSE_MGL=0
1047 DEFAULT_wxUSE_MOTIF=0
1048 DEFAULT_wxUSE_MSW=0
1049 DEFAULT_wxUSE_PM=0
1050 DEFAULT_wxUSE_WINE=0
1051
1052 DEFAULT_DEFAULT_wxUSE_GTK=0
1053 DEFAULT_DEFAULT_wxUSE_MAC=0
1054 DEFAULT_DEFAULT_wxUSE_MGL=0
1055 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1056 DEFAULT_DEFAULT_wxUSE_MSW=0
1057 DEFAULT_DEFAULT_wxUSE_PM=0
1058 DEFAULT_DEFAULT_wxUSE_WINE=0
1059
1060 PROGRAM_EXT=
1061 SO_SUFFIX=so
1062
1063 case "${host}" in
1064 *-hp-hpux* )
1065 USE_HPUX=1
1066 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1067 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1068 SO_SUFFIX=sl
1069 cat >> confdefs.h <<\EOF
1070 #define __HPUX__ 1
1071 EOF
1072
1073 ;;
1074 *-*-linux* )
1075 USE_LINUX=1
1076 cat >> confdefs.h <<\EOF
1077 #define __LINUX__ 1
1078 EOF
1079
1080 TMP=`uname -m`
1081 if test "x$TMP" = "xalpha"; then
1082 USE_ALPHA=1
1083 cat >> confdefs.h <<\EOF
1084 #define __ALPHA__ 1
1085 EOF
1086
1087 fi
1088 if test "x$TMP" = "xia64"; then
1089 USE_IA64=1
1090 cat >> confdefs.h <<\EOF
1091 #define __IA64__ 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
1408 DEFAULT_wxUSE_GUI=yes
1409 DEFAULT_wxUSE_CONTROLS=no
1410
1411 DEFAULT_wxUSE_REGEX=no
1412 DEFAULT_wxUSE_ZLIB=no
1413 DEFAULT_wxUSE_LIBPNG=no
1414 DEFAULT_wxUSE_LIBJPEG=no
1415 DEFAULT_wxUSE_LIBTIFF=no
1416 DEFAULT_wxUSE_ODBC=no
1417 DEFAULT_wxUSE_FREETYPE=no
1418 DEFAULT_wxUSE_OPENGL=no
1419
1420 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1421 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1422 DEFAULT_wxUSE_STD_IOSTREAM=no
1423 DEFAULT_wxUSE_CMDLINE_PARSER=no
1424 DEFAULT_wxUSE_DATETIME=no
1425 DEFAULT_wxUSE_TIMEDATE=no
1426 DEFAULT_wxUSE_TIMER=no
1427 DEFAULT_wxUSE_STOPWATCH=no
1428 DEFAULT_wxUSE_FILE=no
1429 DEFAULT_wxUSE_FFILE=no
1430 DEFAULT_wxUSE_TEXTFILE=no
1431 DEFAULT_wxUSE_WAVE=no
1432 DEFAULT_wxUSE_INTL=no
1433 DEFAULT_wxUSE_CONFIG=no
1434 DEFAULT_wxUSE_FONTMAP=no
1435 DEFAULT_wxUSE_STREAMS=no
1436 DEFAULT_wxUSE_SOCKETS=no
1437 DEFAULT_wxUSE_DIALUP_MANAGER=no
1438 DEFAULT_wxUSE_SERIAL=no
1439 DEFAULT_wxUSE_JOYSTICK=no
1440 DEFAULT_wxUSE_DYNLIB_CLASS=no
1441 DEFAULT_wxUSE_LONGLONG=no
1442 DEFAULT_wxUSE_GEOMETRY=no
1443
1444 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1445 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1446 DEFAULT_wxUSE_POSTSCRIPT=no
1447
1448 DEFAULT_wxUSE_X_RESOURCES=no
1449 DEFAULT_wxUSE_CLIPBOARD=no
1450 DEFAULT_wxUSE_TOOLTIPS=no
1451 DEFAULT_wxUSE_DRAG_AND_DROP=no
1452 DEFAULT_wxUSE_DRAGIMAGE=no
1453 DEFAULT_wxUSE_SPLINES=no
1454
1455 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1456 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1457 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1458
1459 DEFAULT_wxUSE_PROLOGIO=no
1460 DEFAULT_wxUSE_RESOURCES=no
1461 DEFAULT_wxUSE_CONSTRAINTS=no
1462 DEFAULT_wxUSE_IPC=no
1463 DEFAULT_wxUSE_HELP=no
1464 DEFAULT_wxUSE_MS_HTML_HELP=no
1465 DEFAULT_wxUSE_WXHTML_HELP=no
1466 DEFAULT_wxUSE_TREELAYOUT=no
1467 DEFAULT_wxUSE_METAFILE=no
1468 DEFAULT_wxUSE_MIMETYPE=no
1469 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1470
1471 DEFAULT_wxUSE_COMMONDLGS=no
1472 DEFAULT_wxUSE_CHOICEDLG=no
1473 DEFAULT_wxUSE_COLOURDLG=no
1474 DEFAULT_wxUSE_DIRDLG=no
1475 DEFAULT_wxUSE_FILEDLG=no
1476 DEFAULT_wxUSE_FINDREPLDLG=no
1477 DEFAULT_wxUSE_FONTDLG=no
1478 DEFAULT_wxUSE_MSGDLG=no
1479 DEFAULT_wxUSE_NUMBERDLG=no
1480 DEFAULT_wxUSE_TEXTDLG=no
1481 DEFAULT_wxUSE_SPLASH=no
1482 DEFAULT_wxUSE_STARTUP_TIPS=no
1483 DEFAULT_wxUSE_PROGRESSDLG=no
1484 DEFAULT_wxUSE_WIZARDDLG=no
1485
1486 DEFAULT_wxUSE_MENUS=no
1487 DEFAULT_wxUSE_MINIFRAME=no
1488 DEFAULT_wxUSE_HTML=no
1489 DEFAULT_wxUSE_FILESYSTEM=no
1490 DEFAULT_wxUSE_FS_INET=no
1491 DEFAULT_wxUSE_FS_ZIP=no
1492 DEFAULT_wxUSE_BUSYINFO=no
1493 DEFAULT_wxUSE_ZIPSTREAM=no
1494 DEFAULT_wxUSE_VALIDATORS=no
1495
1496 DEFAULT_wxUSE_ACCEL=no
1497 DEFAULT_wxUSE_BUTTON=no
1498 DEFAULT_wxUSE_BMPBUTTON=no
1499 DEFAULT_wxUSE_CALCTRL=no
1500 DEFAULT_wxUSE_CARET=no
1501 DEFAULT_wxUSE_CHECKBOX=no
1502 DEFAULT_wxUSE_CHECKLST=no
1503 DEFAULT_wxUSE_CHOICE=no
1504 DEFAULT_wxUSE_COMBOBOX=no
1505 DEFAULT_wxUSE_GAUGE=no
1506 DEFAULT_wxUSE_GRID=no
1507 DEFAULT_wxUSE_NEW_GRID=no
1508 DEFAULT_wxUSE_IMAGLIST=no
1509 DEFAULT_wxUSE_LISTBOX=no
1510 DEFAULT_wxUSE_LISTCTRL=no
1511 DEFAULT_wxUSE_NOTEBOOK=no
1512 DEFAULT_wxUSE_PROPSHEET=no
1513 DEFAULT_wxUSE_RADIOBOX=no
1514 DEFAULT_wxUSE_RADIOBTN=no
1515 DEFAULT_wxUSE_SASH=no
1516 DEFAULT_wxUSE_SCROLLBAR=no
1517 DEFAULT_wxUSE_SLIDER=no
1518 DEFAULT_wxUSE_SPINBTN=no
1519 DEFAULT_wxUSE_SPINCTRL=no
1520 DEFAULT_wxUSE_SPLITTER=no
1521 DEFAULT_wxUSE_STATBMP=no
1522 DEFAULT_wxUSE_STATBOX=no
1523 DEFAULT_wxUSE_STATLINE=no
1524 DEFAULT_wxUSE_STATTEXT=no
1525 DEFAULT_wxUSE_STATUSBAR=yes
1526 DEFAULT_wxUSE_TABDIALOG=no
1527 DEFAULT_wxUSE_TEXTCTRL=no
1528 DEFAULT_wxUSE_TOGGLEBTN=no
1529 DEFAULT_wxUSE_TOOLBAR=no
1530 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1531 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1532 DEFAULT_wxUSE_TREECTRL=no
1533 DEFAULT_wxUSE_POPUPWIN=no
1534
1535 DEFAULT_wxUSE_UNICODE=no
1536 DEFAULT_wxUSE_WCSRTOMBS=no
1537
1538 DEFAULT_wxUSE_PALETTE=no
1539 DEFAULT_wxUSE_IMAGE=no
1540 DEFAULT_wxUSE_GIF=no
1541 DEFAULT_wxUSE_PCX=no
1542 DEFAULT_wxUSE_PNM=no
1543 DEFAULT_wxUSE_XPM=no
1544 else
1545 DEFAULT_wxUSE_UNIVERSAL=no
1546
1547 DEFAULT_wxUSE_THREADS=yes
1548
1549 DEFAULT_wxUSE_SHARED=yes
1550 DEFAULT_wxUSE_SONAME=no
1551 DEFAULT_wxUSE_OPTIMISE=yes
1552 DEFAULT_wxUSE_PROFILE=no
1553 DEFAULT_wxUSE_NO_DEPS=no
1554 DEFAULT_wxUSE_NO_RTTI=yes
1555 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1556 DEFAULT_wxUSE_PERMISSIVE=no
1557 DEFAULT_wxUSE_DEBUG_FLAG=no
1558 DEFAULT_wxUSE_DEBUG_INFO=no
1559 DEFAULT_wxUSE_DEBUG_GDB=no
1560 DEFAULT_wxUSE_MEM_TRACING=no
1561 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1562 DEFAULT_wxUSE_DMALLOC=no
1563 DEFAULT_wxUSE_PRECOMP=yes
1564 DEFAULT_wxUSE_APPLE_IEEE=yes
1565
1566 DEFAULT_wxUSE_LOG=yes
1567 DEFAULT_wxUSE_LOGWINDOW=yes
1568 DEFAULT_wxUSE_LOGGUI=yes
1569
1570 DEFAULT_wxUSE_GUI=yes
1571
1572 DEFAULT_wxUSE_REGEX=yes
1573 DEFAULT_wxUSE_ZLIB=yes
1574 DEFAULT_wxUSE_LIBPNG=yes
1575 DEFAULT_wxUSE_LIBJPEG=yes
1576 DEFAULT_wxUSE_LIBTIFF=yes
1577 DEFAULT_wxUSE_ODBC=no
1578 DEFAULT_wxUSE_FREETYPE=no
1579 DEFAULT_wxUSE_OPENGL=no
1580
1581 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1582 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1583 DEFAULT_wxUSE_STD_IOSTREAM=no
1584 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1585 DEFAULT_wxUSE_DATETIME=yes
1586 DEFAULT_wxUSE_TIMEDATE=no
1587 DEFAULT_wxUSE_TIMER=yes
1588 DEFAULT_wxUSE_STOPWATCH=yes
1589 DEFAULT_wxUSE_FILE=yes
1590 DEFAULT_wxUSE_FFILE=yes
1591 DEFAULT_wxUSE_TEXTFILE=yes
1592 DEFAULT_wxUSE_WAVE=no
1593 DEFAULT_wxUSE_INTL=yes
1594 DEFAULT_wxUSE_CONFIG=yes
1595 DEFAULT_wxUSE_FONTMAP=yes
1596 DEFAULT_wxUSE_STREAMS=yes
1597 DEFAULT_wxUSE_SOCKETS=yes
1598 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1599 DEFAULT_wxUSE_SERIAL=yes
1600 DEFAULT_wxUSE_JOYSTICK=yes
1601 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1602 DEFAULT_wxUSE_LONGLONG=yes
1603 DEFAULT_wxUSE_GEOMETRY=yes
1604
1605 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1606 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1607 DEFAULT_wxUSE_POSTSCRIPT=yes
1608
1609 DEFAULT_wxUSE_X_RESOURCES=no
1610 DEFAULT_wxUSE_CLIPBOARD=yes
1611 DEFAULT_wxUSE_TOOLTIPS=yes
1612 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1613 DEFAULT_wxUSE_DRAGIMAGE=yes
1614 DEFAULT_wxUSE_SPLINES=yes
1615
1616 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1617 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1618 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1619
1620 DEFAULT_wxUSE_PROLOGIO=yes
1621 DEFAULT_wxUSE_RESOURCES=yes
1622 DEFAULT_wxUSE_CONSTRAINTS=yes
1623 DEFAULT_wxUSE_IPC=yes
1624 DEFAULT_wxUSE_HELP=yes
1625 DEFAULT_wxUSE_MS_HTML_HELP=yes
1626 DEFAULT_wxUSE_WXHTML_HELP=yes
1627 DEFAULT_wxUSE_TREELAYOUT=yes
1628 DEFAULT_wxUSE_METAFILE=yes
1629 DEFAULT_wxUSE_MIMETYPE=yes
1630 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1631
1632 DEFAULT_wxUSE_COMMONDLGS=yes
1633 DEFAULT_wxUSE_CHOICEDLG=yes
1634 DEFAULT_wxUSE_COLOURDLG=yes
1635 DEFAULT_wxUSE_DIRDLG=yes
1636 DEFAULT_wxUSE_FILEDLG=yes
1637 DEFAULT_wxUSE_FINDREPLDLG=yes
1638 DEFAULT_wxUSE_FONTDLG=yes
1639 DEFAULT_wxUSE_MSGDLG=yes
1640 DEFAULT_wxUSE_NUMBERDLG=yes
1641 DEFAULT_wxUSE_TEXTDLG=yes
1642 DEFAULT_wxUSE_SPLASH=yes
1643 DEFAULT_wxUSE_STARTUP_TIPS=yes
1644 DEFAULT_wxUSE_PROGRESSDLG=yes
1645 DEFAULT_wxUSE_WIZARDDLG=yes
1646
1647 DEFAULT_wxUSE_MENUS=yes
1648 DEFAULT_wxUSE_MINIFRAME=yes
1649 DEFAULT_wxUSE_HTML=yes
1650 DEFAULT_wxUSE_FILESYSTEM=yes
1651 DEFAULT_wxUSE_FS_INET=yes
1652 DEFAULT_wxUSE_FS_ZIP=yes
1653 DEFAULT_wxUSE_BUSYINFO=yes
1654 DEFAULT_wxUSE_ZIPSTREAM=yes
1655 DEFAULT_wxUSE_VALIDATORS=yes
1656
1657 DEFAULT_wxUSE_ACCEL=yes
1658 DEFAULT_wxUSE_BUTTON=yes
1659 DEFAULT_wxUSE_BMPBUTTON=yes
1660 DEFAULT_wxUSE_CALCTRL=yes
1661 DEFAULT_wxUSE_CARET=yes
1662 DEFAULT_wxUSE_CHECKBOX=yes
1663 DEFAULT_wxUSE_CHECKLST=yes
1664 DEFAULT_wxUSE_CHOICE=yes
1665 DEFAULT_wxUSE_COMBOBOX=yes
1666 DEFAULT_wxUSE_GAUGE=yes
1667 DEFAULT_wxUSE_GRID=yes
1668 DEFAULT_wxUSE_NEW_GRID=yes
1669 DEFAULT_wxUSE_IMAGLIST=yes
1670 DEFAULT_wxUSE_LISTBOX=yes
1671 DEFAULT_wxUSE_LISTCTRL=yes
1672 DEFAULT_wxUSE_NOTEBOOK=yes
1673 DEFAULT_wxUSE_PROPSHEET=yes
1674 DEFAULT_wxUSE_RADIOBOX=yes
1675 DEFAULT_wxUSE_RADIOBTN=yes
1676 DEFAULT_wxUSE_SASH=yes
1677 DEFAULT_wxUSE_SCROLLBAR=yes
1678 DEFAULT_wxUSE_SLIDER=yes
1679 DEFAULT_wxUSE_SPINBTN=yes
1680 DEFAULT_wxUSE_SPINCTRL=yes
1681 DEFAULT_wxUSE_SPLITTER=yes
1682 DEFAULT_wxUSE_STATBMP=yes
1683 DEFAULT_wxUSE_STATBOX=yes
1684 DEFAULT_wxUSE_STATLINE=yes
1685 DEFAULT_wxUSE_STATTEXT=yes
1686 DEFAULT_wxUSE_STATUSBAR=yes
1687 DEFAULT_wxUSE_TABDIALOG=no
1688 DEFAULT_wxUSE_TEXTCTRL=yes
1689 DEFAULT_wxUSE_TOGGLEBTN=yes
1690 DEFAULT_wxUSE_TOOLBAR=yes
1691 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1692 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1693 DEFAULT_wxUSE_TREECTRL=yes
1694 DEFAULT_wxUSE_POPUPWIN=yes
1695
1696 DEFAULT_wxUSE_UNICODE=no
1697 DEFAULT_wxUSE_WCSRTOMBS=no
1698
1699 DEFAULT_wxUSE_PALETTE=yes
1700 DEFAULT_wxUSE_IMAGE=yes
1701 DEFAULT_wxUSE_GIF=yes
1702 DEFAULT_wxUSE_PCX=yes
1703 DEFAULT_wxUSE_PNM=yes
1704 DEFAULT_wxUSE_XPM=yes
1705 fi
1706
1707
1708
1709 for toolkit in `echo $ALL_TOOLKITS`; do
1710 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1711 if test "x$LINE" != x ; then
1712 has_toolkit_in_cache=1
1713 eval "DEFAULT_$LINE"
1714 eval "CACHE_$toolkit=1"
1715 fi
1716 done
1717
1718
1719
1720 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1721 echo "configure:1722: checking for --enable-gui" >&5
1722 no_cache=0
1723 # Check whether --enable-gui or --disable-gui was given.
1724 if test "${enable_gui+set}" = set; then
1725 enableval="$enable_gui"
1726
1727 if test "$enableval" = yes; then
1728 ac_cv_use_gui='wxUSE_GUI=yes'
1729 else
1730 ac_cv_use_gui='wxUSE_GUI=no'
1731 fi
1732
1733 else
1734
1735 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1736 if test "x$LINE" != x ; then
1737 eval "DEFAULT_$LINE"
1738 else
1739 no_cache=1
1740 fi
1741
1742 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1743
1744 fi
1745
1746
1747 eval "$ac_cv_use_gui"
1748 if test "$no_cache" != 1; then
1749 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1750 fi
1751
1752 if test "$wxUSE_GUI" = yes; then
1753 echo "$ac_t""yes" 1>&6
1754 else
1755 echo "$ac_t""no" 1>&6
1756 fi
1757
1758
1759 if test "$wxUSE_GUI" = "yes"; then
1760
1761
1762 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1763 echo "configure:1764: checking for --enable-universal" >&5
1764 no_cache=0
1765 # Check whether --enable-universal or --disable-universal was given.
1766 if test "${enable_universal+set}" = set; then
1767 enableval="$enable_universal"
1768
1769 if test "$enableval" = yes; then
1770 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1771 else
1772 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1773 fi
1774
1775 else
1776
1777 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1778 if test "x$LINE" != x ; then
1779 eval "DEFAULT_$LINE"
1780 else
1781 no_cache=1
1782 fi
1783
1784 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1785
1786 fi
1787
1788
1789 eval "$ac_cv_use_universal"
1790 if test "$no_cache" != 1; then
1791 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1792 fi
1793
1794 if test "$wxUSE_UNIVERSAL" = yes; then
1795 echo "$ac_t""yes" 1>&6
1796 else
1797 echo "$ac_t""no" 1>&6
1798 fi
1799
1800 # Check whether --with-gtk or --without-gtk was given.
1801 if test "${with_gtk+set}" = set; then
1802 withval="$with_gtk"
1803 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1804 fi
1805
1806 # Check whether --with-motif or --without-motif was given.
1807 if test "${with_motif+set}" = set; then
1808 withval="$with_motif"
1809 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1810 fi
1811
1812 # Check whether --with-mac or --without-mac was given.
1813 if test "${with_mac+set}" = set; then
1814 withval="$with_mac"
1815 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1816 fi
1817
1818 # Check whether --with-wine or --without-wine was given.
1819 if test "${with_wine+set}" = set; then
1820 withval="$with_wine"
1821 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1822 fi
1823
1824 # Check whether --with-msw or --without-msw was given.
1825 if test "${with_msw+set}" = set; then
1826 withval="$with_msw"
1827 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1828 fi
1829
1830 # Check whether --with-pm or --without-pm was given.
1831 if test "${with_pm+set}" = set; then
1832 withval="$with_pm"
1833 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1834 fi
1835
1836 # Check whether --with-mgl or --without-mgl was given.
1837 if test "${with_mgl+set}" = set; then
1838 withval="$with_mgl"
1839 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1840 fi
1841
1842
1843 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1844 if test "${enable_gtk2+set}" = set; then
1845 enableval="$enable_gtk2"
1846 wxUSE_GTK2=1
1847 else
1848 wxUSE_GTK2=0
1849 fi
1850
1851
1852
1853 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1854 echo "configure:1855: checking for --with-libpng" >&5
1855 no_cache=0
1856 # Check whether --with-libpng or --without-libpng was given.
1857 if test "${with_libpng+set}" = set; then
1858 withval="$with_libpng"
1859
1860 if test "$withval" = yes; then
1861 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1862 elif test "$withval" = no; then
1863 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1864 elif test "$withval" = sys; then
1865 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1866 elif test "$withval" = builtin; then
1867 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1868 else
1869 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1870 fi
1871
1872 else
1873
1874 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1875 if test "x$LINE" != x ; then
1876 eval "DEFAULT_$LINE"
1877 else
1878 no_cache=1
1879 fi
1880
1881 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1882
1883 fi
1884
1885
1886 eval "$ac_cv_use_libpng"
1887 if test "$no_cache" != 1; then
1888 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1889 fi
1890
1891 if test "$wxUSE_LIBPNG" = yes; then
1892 echo "$ac_t""yes" 1>&6
1893 elif test "$wxUSE_LIBPNG" = no; then
1894 echo "$ac_t""no" 1>&6
1895 elif test "$wxUSE_LIBPNG" = sys; then
1896 echo "$ac_t""system version" 1>&6
1897 elif test "$wxUSE_LIBPNG" = builtin; then
1898 echo "$ac_t""builtin version" 1>&6
1899 else
1900 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1901 fi
1902
1903
1904 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1905 echo "configure:1906: checking for --with-libjpeg" >&5
1906 no_cache=0
1907 # Check whether --with-libjpeg or --without-libjpeg was given.
1908 if test "${with_libjpeg+set}" = set; then
1909 withval="$with_libjpeg"
1910
1911 if test "$withval" = yes; then
1912 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1913 elif test "$withval" = no; then
1914 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1915 elif test "$withval" = sys; then
1916 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1917 elif test "$withval" = builtin; then
1918 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
1919 else
1920 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1921 fi
1922
1923 else
1924
1925 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1926 if test "x$LINE" != x ; then
1927 eval "DEFAULT_$LINE"
1928 else
1929 no_cache=1
1930 fi
1931
1932 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1933
1934 fi
1935
1936
1937 eval "$ac_cv_use_libjpeg"
1938 if test "$no_cache" != 1; then
1939 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1940 fi
1941
1942 if test "$wxUSE_LIBJPEG" = yes; then
1943 echo "$ac_t""yes" 1>&6
1944 elif test "$wxUSE_LIBJPEG" = no; then
1945 echo "$ac_t""no" 1>&6
1946 elif test "$wxUSE_LIBJPEG" = sys; then
1947 echo "$ac_t""system version" 1>&6
1948 elif test "$wxUSE_LIBJPEG" = builtin; then
1949 echo "$ac_t""builtin version" 1>&6
1950 else
1951 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1952 fi
1953
1954
1955 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1956 echo "configure:1957: checking for --with-libtiff" >&5
1957 no_cache=0
1958 # Check whether --with-libtiff or --without-libtiff was given.
1959 if test "${with_libtiff+set}" = set; then
1960 withval="$with_libtiff"
1961
1962 if test "$withval" = yes; then
1963 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1964 elif test "$withval" = no; then
1965 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1966 elif test "$withval" = sys; then
1967 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1968 elif test "$withval" = builtin; then
1969 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
1970 else
1971 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1972 fi
1973
1974 else
1975
1976 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1977 if test "x$LINE" != x ; then
1978 eval "DEFAULT_$LINE"
1979 else
1980 no_cache=1
1981 fi
1982
1983 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1984
1985 fi
1986
1987
1988 eval "$ac_cv_use_libtiff"
1989 if test "$no_cache" != 1; then
1990 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1991 fi
1992
1993 if test "$wxUSE_LIBTIFF" = yes; then
1994 echo "$ac_t""yes" 1>&6
1995 elif test "$wxUSE_LIBTIFF" = no; then
1996 echo "$ac_t""no" 1>&6
1997 elif test "$wxUSE_LIBTIFF" = sys; then
1998 echo "$ac_t""system version" 1>&6
1999 elif test "$wxUSE_LIBTIFF" = builtin; then
2000 echo "$ac_t""builtin version" 1>&6
2001 else
2002 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2003 fi
2004
2005
2006 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
2007 echo "configure:2008: checking for --with-freetype" >&5
2008 no_cache=0
2009 # Check whether --with-freetype or --without-freetype was given.
2010 if test "${with_freetype+set}" = set; then
2011 withval="$with_freetype"
2012
2013 if test "$withval" = yes; then
2014 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2015 elif test "$withval" = no; then
2016 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2017 elif test "$withval" = sys; then
2018 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2019 elif test "$withval" = builtin; then
2020 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
2021 else
2022 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2023 fi
2024
2025 else
2026
2027 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2028 if test "x$LINE" != x ; then
2029 eval "DEFAULT_$LINE"
2030 else
2031 no_cache=1
2032 fi
2033
2034 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2035
2036 fi
2037
2038
2039 eval "$ac_cv_use_freetype"
2040 if test "$no_cache" != 1; then
2041 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2042 fi
2043
2044 if test "$wxUSE_FREETYPE" = yes; then
2045 echo "$ac_t""yes" 1>&6
2046 elif test "$wxUSE_FREETYPE" = no; then
2047 echo "$ac_t""no" 1>&6
2048 elif test "$wxUSE_FREETYPE" = sys; then
2049 echo "$ac_t""system version" 1>&6
2050 elif test "$wxUSE_FREETYPE" = builtin; then
2051 echo "$ac_t""builtin version" 1>&6
2052 else
2053 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2054 fi
2055
2056
2057 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2058 echo "configure:2059: checking for --with-opengl" >&5
2059 no_cache=0
2060 # Check whether --with-opengl or --without-opengl was given.
2061 if test "${with_opengl+set}" = set; then
2062 withval="$with_opengl"
2063
2064 if test "$withval" = yes; then
2065 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2066 else
2067 ac_cv_use_opengl='wxUSE_OPENGL=no'
2068 fi
2069
2070 else
2071
2072 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2073 if test "x$LINE" != x ; then
2074 eval "DEFAULT_$LINE"
2075 else
2076 no_cache=1
2077 fi
2078
2079 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2080
2081 fi
2082
2083
2084 eval "$ac_cv_use_opengl"
2085 if test "$no_cache" != 1; then
2086 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2087 fi
2088
2089 if test "$wxUSE_OPENGL" = yes; then
2090 echo "$ac_t""yes" 1>&6
2091 else
2092 echo "$ac_t""no" 1>&6
2093 fi
2094
2095
2096 fi
2097
2098
2099 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2100 echo "configure:2101: checking for --with-dmalloc" >&5
2101 no_cache=0
2102 # Check whether --with-dmalloc or --without-dmalloc was given.
2103 if test "${with_dmalloc+set}" = set; then
2104 withval="$with_dmalloc"
2105
2106 if test "$withval" = yes; then
2107 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2108 else
2109 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2110 fi
2111
2112 else
2113
2114 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2115 if test "x$LINE" != x ; then
2116 eval "DEFAULT_$LINE"
2117 else
2118 no_cache=1
2119 fi
2120
2121 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2122
2123 fi
2124
2125
2126 eval "$ac_cv_use_dmalloc"
2127 if test "$no_cache" != 1; then
2128 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2129 fi
2130
2131 if test "$wxUSE_DMALLOC" = yes; then
2132 echo "$ac_t""yes" 1>&6
2133 else
2134 echo "$ac_t""no" 1>&6
2135 fi
2136
2137
2138 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2139 echo "configure:2140: checking for --with-regex" >&5
2140 no_cache=0
2141 # Check whether --with-regex or --without-regex was given.
2142 if test "${with_regex+set}" = set; then
2143 withval="$with_regex"
2144
2145 if test "$withval" = yes; then
2146 ac_cv_use_regex='wxUSE_REGEX=yes'
2147 elif test "$withval" = no; then
2148 ac_cv_use_regex='wxUSE_REGEX=no'
2149 elif test "$withval" = sys; then
2150 ac_cv_use_regex='wxUSE_REGEX=sys'
2151 elif test "$withval" = builtin; then
2152 ac_cv_use_regex='wxUSE_REGEX=builtin'
2153 else
2154 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2155 fi
2156
2157 else
2158
2159 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2160 if test "x$LINE" != x ; then
2161 eval "DEFAULT_$LINE"
2162 else
2163 no_cache=1
2164 fi
2165
2166 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2167
2168 fi
2169
2170
2171 eval "$ac_cv_use_regex"
2172 if test "$no_cache" != 1; then
2173 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2174 fi
2175
2176 if test "$wxUSE_REGEX" = yes; then
2177 echo "$ac_t""yes" 1>&6
2178 elif test "$wxUSE_REGEX" = no; then
2179 echo "$ac_t""no" 1>&6
2180 elif test "$wxUSE_REGEX" = sys; then
2181 echo "$ac_t""system version" 1>&6
2182 elif test "$wxUSE_REGEX" = builtin; then
2183 echo "$ac_t""builtin version" 1>&6
2184 else
2185 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2186 fi
2187
2188
2189 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2190 echo "configure:2191: checking for --with-zlib" >&5
2191 no_cache=0
2192 # Check whether --with-zlib or --without-zlib was given.
2193 if test "${with_zlib+set}" = set; then
2194 withval="$with_zlib"
2195
2196 if test "$withval" = yes; then
2197 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2198 elif test "$withval" = no; then
2199 ac_cv_use_zlib='wxUSE_ZLIB=no'
2200 elif test "$withval" = sys; then
2201 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2202 elif test "$withval" = builtin; then
2203 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2204 else
2205 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2206 fi
2207
2208 else
2209
2210 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2211 if test "x$LINE" != x ; then
2212 eval "DEFAULT_$LINE"
2213 else
2214 no_cache=1
2215 fi
2216
2217 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2218
2219 fi
2220
2221
2222 eval "$ac_cv_use_zlib"
2223 if test "$no_cache" != 1; then
2224 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2225 fi
2226
2227 if test "$wxUSE_ZLIB" = yes; then
2228 echo "$ac_t""yes" 1>&6
2229 elif test "$wxUSE_ZLIB" = no; then
2230 echo "$ac_t""no" 1>&6
2231 elif test "$wxUSE_ZLIB" = sys; then
2232 echo "$ac_t""system version" 1>&6
2233 elif test "$wxUSE_ZLIB" = builtin; then
2234 echo "$ac_t""builtin version" 1>&6
2235 else
2236 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2237 fi
2238
2239
2240 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2241 echo "configure:2242: checking for --with-odbc" >&5
2242 no_cache=0
2243 # Check whether --with-odbc or --without-odbc was given.
2244 if test "${with_odbc+set}" = set; then
2245 withval="$with_odbc"
2246
2247 if test "$withval" = yes; then
2248 ac_cv_use_odbc='wxUSE_ODBC=yes'
2249 else
2250 ac_cv_use_odbc='wxUSE_ODBC=no'
2251 fi
2252
2253 else
2254
2255 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2256 if test "x$LINE" != x ; then
2257 eval "DEFAULT_$LINE"
2258 else
2259 no_cache=1
2260 fi
2261
2262 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2263
2264 fi
2265
2266
2267 eval "$ac_cv_use_odbc"
2268 if test "$no_cache" != 1; then
2269 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2270 fi
2271
2272 if test "$wxUSE_ODBC" = yes; then
2273 echo "$ac_t""yes" 1>&6
2274 else
2275 echo "$ac_t""no" 1>&6
2276 fi
2277
2278
2279
2280
2281 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2282 echo "configure:2283: checking for --enable-shared" >&5
2283 no_cache=0
2284 # Check whether --enable-shared or --disable-shared was given.
2285 if test "${enable_shared+set}" = set; then
2286 enableval="$enable_shared"
2287
2288 if test "$enableval" = yes; then
2289 ac_cv_use_shared='wxUSE_SHARED=yes'
2290 else
2291 ac_cv_use_shared='wxUSE_SHARED=no'
2292 fi
2293
2294 else
2295
2296 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2297 if test "x$LINE" != x ; then
2298 eval "DEFAULT_$LINE"
2299 else
2300 no_cache=1
2301 fi
2302
2303 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2304
2305 fi
2306
2307
2308 eval "$ac_cv_use_shared"
2309 if test "$no_cache" != 1; then
2310 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2311 fi
2312
2313 if test "$wxUSE_SHARED" = yes; then
2314 echo "$ac_t""yes" 1>&6
2315 else
2316 echo "$ac_t""no" 1>&6
2317 fi
2318
2319
2320 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2321 echo "configure:2322: checking for --enable-soname" >&5
2322 no_cache=0
2323 # Check whether --enable-soname or --disable-soname was given.
2324 if test "${enable_soname+set}" = set; then
2325 enableval="$enable_soname"
2326
2327 if test "$enableval" = yes; then
2328 ac_cv_use_soname='wxUSE_SONAME=yes'
2329 else
2330 ac_cv_use_soname='wxUSE_SONAME=no'
2331 fi
2332
2333 else
2334
2335 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2336 if test "x$LINE" != x ; then
2337 eval "DEFAULT_$LINE"
2338 else
2339 no_cache=1
2340 fi
2341
2342 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2343
2344 fi
2345
2346
2347 eval "$ac_cv_use_soname"
2348 if test "$no_cache" != 1; then
2349 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2350 fi
2351
2352 if test "$wxUSE_SONAME" = yes; then
2353 echo "$ac_t""yes" 1>&6
2354 else
2355 echo "$ac_t""no" 1>&6
2356 fi
2357
2358
2359 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2360 echo "configure:2361: checking for --enable-optimise" >&5
2361 no_cache=0
2362 # Check whether --enable-optimise or --disable-optimise was given.
2363 if test "${enable_optimise+set}" = set; then
2364 enableval="$enable_optimise"
2365
2366 if test "$enableval" = yes; then
2367 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2368 else
2369 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2370 fi
2371
2372 else
2373
2374 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2375 if test "x$LINE" != x ; then
2376 eval "DEFAULT_$LINE"
2377 else
2378 no_cache=1
2379 fi
2380
2381 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2382
2383 fi
2384
2385
2386 eval "$ac_cv_use_optimise"
2387 if test "$no_cache" != 1; then
2388 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2389 fi
2390
2391 if test "$wxUSE_OPTIMISE" = yes; then
2392 echo "$ac_t""yes" 1>&6
2393 else
2394 echo "$ac_t""no" 1>&6
2395 fi
2396
2397
2398 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2399 echo "configure:2400: checking for --enable-debug" >&5
2400 no_cache=0
2401 # Check whether --enable-debug or --disable-debug was given.
2402 if test "${enable_debug+set}" = set; then
2403 enableval="$enable_debug"
2404
2405 if test "$enableval" = yes; then
2406 ac_cv_use_debug='wxUSE_DEBUG=yes'
2407 else
2408 ac_cv_use_debug='wxUSE_DEBUG=no'
2409 fi
2410
2411 else
2412
2413 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2414 if test "x$LINE" != x ; then
2415 eval "DEFAULT_$LINE"
2416 else
2417 no_cache=1
2418 fi
2419
2420 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2421
2422 fi
2423
2424
2425 eval "$ac_cv_use_debug"
2426 if test "$no_cache" != 1; then
2427 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2428 fi
2429
2430 if test "$wxUSE_DEBUG" = yes; then
2431 echo "$ac_t""yes" 1>&6
2432 else
2433 echo "$ac_t""no" 1>&6
2434 fi
2435
2436
2437
2438 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2439 echo "configure:2440: checking for --enable-precomp" >&5
2440 no_cache=0
2441 # Check whether --enable-precomp or --disable-precomp was given.
2442 if test "${enable_precomp+set}" = set; then
2443 enableval="$enable_precomp"
2444
2445 if test "$enableval" = yes; then
2446 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2447 else
2448 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2449 fi
2450
2451 else
2452
2453 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2454 if test "x$LINE" != x ; then
2455 eval "DEFAULT_$LINE"
2456 else
2457 no_cache=1
2458 fi
2459
2460 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2461
2462 fi
2463
2464
2465 eval "$ac_cv_use_precomp"
2466 if test "$no_cache" != 1; then
2467 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2468 fi
2469
2470 if test "$wxUSE_PRECOMP" = yes; then
2471 echo "$ac_t""yes" 1>&6
2472 else
2473 echo "$ac_t""no" 1>&6
2474 fi
2475
2476
2477 if test "$wxUSE_DEBUG" = "yes"; then
2478 DEFAULT_wxUSE_DEBUG_FLAG=yes
2479 DEFAULT_wxUSE_DEBUG_INFO=yes
2480 elif test "$wxUSE_DEBUG" = "no"; then
2481 DEFAULT_wxUSE_DEBUG_FLAG=no
2482 DEFAULT_wxUSE_DEBUG_INFO=no
2483 fi
2484
2485
2486 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2487 echo "configure:2488: checking for --enable-debug_flag" >&5
2488 no_cache=0
2489 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2490 if test "${enable_debug_flag+set}" = set; then
2491 enableval="$enable_debug_flag"
2492
2493 if test "$enableval" = yes; then
2494 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2495 else
2496 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2497 fi
2498
2499 else
2500
2501 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2502 if test "x$LINE" != x ; then
2503 eval "DEFAULT_$LINE"
2504 else
2505 no_cache=1
2506 fi
2507
2508 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2509
2510 fi
2511
2512
2513 eval "$ac_cv_use_debug_flag"
2514 if test "$no_cache" != 1; then
2515 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2516 fi
2517
2518 if test "$wxUSE_DEBUG_FLAG" = yes; then
2519 echo "$ac_t""yes" 1>&6
2520 else
2521 echo "$ac_t""no" 1>&6
2522 fi
2523
2524
2525 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2526 echo "configure:2527: checking for --enable-debug_info" >&5
2527 no_cache=0
2528 # Check whether --enable-debug_info or --disable-debug_info was given.
2529 if test "${enable_debug_info+set}" = set; then
2530 enableval="$enable_debug_info"
2531
2532 if test "$enableval" = yes; then
2533 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2534 else
2535 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2536 fi
2537
2538 else
2539
2540 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2541 if test "x$LINE" != x ; then
2542 eval "DEFAULT_$LINE"
2543 else
2544 no_cache=1
2545 fi
2546
2547 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2548
2549 fi
2550
2551
2552 eval "$ac_cv_use_debug_info"
2553 if test "$no_cache" != 1; then
2554 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2555 fi
2556
2557 if test "$wxUSE_DEBUG_INFO" = yes; then
2558 echo "$ac_t""yes" 1>&6
2559 else
2560 echo "$ac_t""no" 1>&6
2561 fi
2562
2563
2564 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2565 echo "configure:2566: checking for --enable-debug_gdb" >&5
2566 no_cache=0
2567 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2568 if test "${enable_debug_gdb+set}" = set; then
2569 enableval="$enable_debug_gdb"
2570
2571 if test "$enableval" = yes; then
2572 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2573 else
2574 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2575 fi
2576
2577 else
2578
2579 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2580 if test "x$LINE" != x ; then
2581 eval "DEFAULT_$LINE"
2582 else
2583 no_cache=1
2584 fi
2585
2586 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2587
2588 fi
2589
2590
2591 eval "$ac_cv_use_debug_gdb"
2592 if test "$no_cache" != 1; then
2593 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2594 fi
2595
2596 if test "$wxUSE_DEBUG_GDB" = yes; then
2597 echo "$ac_t""yes" 1>&6
2598 else
2599 echo "$ac_t""no" 1>&6
2600 fi
2601
2602
2603 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2604 echo "configure:2605: checking for --enable-debug_cntxt" >&5
2605 no_cache=0
2606 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2607 if test "${enable_debug_cntxt+set}" = set; then
2608 enableval="$enable_debug_cntxt"
2609
2610 if test "$enableval" = yes; then
2611 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2612 else
2613 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2614 fi
2615
2616 else
2617
2618 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2619 if test "x$LINE" != x ; then
2620 eval "DEFAULT_$LINE"
2621 else
2622 no_cache=1
2623 fi
2624
2625 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2626
2627 fi
2628
2629
2630 eval "$ac_cv_use_debug_cntxt"
2631 if test "$no_cache" != 1; then
2632 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2633 fi
2634
2635 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2636 echo "$ac_t""yes" 1>&6
2637 else
2638 echo "$ac_t""no" 1>&6
2639 fi
2640
2641
2642 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2643 echo "configure:2644: checking for --enable-mem_tracing" >&5
2644 no_cache=0
2645 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2646 if test "${enable_mem_tracing+set}" = set; then
2647 enableval="$enable_mem_tracing"
2648
2649 if test "$enableval" = yes; then
2650 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2651 else
2652 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2653 fi
2654
2655 else
2656
2657 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2658 if test "x$LINE" != x ; then
2659 eval "DEFAULT_$LINE"
2660 else
2661 no_cache=1
2662 fi
2663
2664 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2665
2666 fi
2667
2668
2669 eval "$ac_cv_use_mem_tracing"
2670 if test "$no_cache" != 1; then
2671 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2672 fi
2673
2674 if test "$wxUSE_MEM_TRACING" = yes; then
2675 echo "$ac_t""yes" 1>&6
2676 else
2677 echo "$ac_t""no" 1>&6
2678 fi
2679
2680
2681 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2682 echo "configure:2683: checking for --enable-profile" >&5
2683 no_cache=0
2684 # Check whether --enable-profile or --disable-profile was given.
2685 if test "${enable_profile+set}" = set; then
2686 enableval="$enable_profile"
2687
2688 if test "$enableval" = yes; then
2689 ac_cv_use_profile='wxUSE_PROFILE=yes'
2690 else
2691 ac_cv_use_profile='wxUSE_PROFILE=no'
2692 fi
2693
2694 else
2695
2696 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2697 if test "x$LINE" != x ; then
2698 eval "DEFAULT_$LINE"
2699 else
2700 no_cache=1
2701 fi
2702
2703 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2704
2705 fi
2706
2707
2708 eval "$ac_cv_use_profile"
2709 if test "$no_cache" != 1; then
2710 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2711 fi
2712
2713 if test "$wxUSE_PROFILE" = yes; then
2714 echo "$ac_t""yes" 1>&6
2715 else
2716 echo "$ac_t""no" 1>&6
2717 fi
2718
2719
2720 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2721 echo "configure:2722: checking for --enable-no_rtti" >&5
2722 no_cache=0
2723 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2724 if test "${enable_no_rtti+set}" = set; then
2725 enableval="$enable_no_rtti"
2726
2727 if test "$enableval" = yes; then
2728 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2729 else
2730 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2731 fi
2732
2733 else
2734
2735 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2736 if test "x$LINE" != x ; then
2737 eval "DEFAULT_$LINE"
2738 else
2739 no_cache=1
2740 fi
2741
2742 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2743
2744 fi
2745
2746
2747 eval "$ac_cv_use_no_rtti"
2748 if test "$no_cache" != 1; then
2749 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2750 fi
2751
2752 if test "$wxUSE_NO_RTTI" = yes; then
2753 echo "$ac_t""yes" 1>&6
2754 else
2755 echo "$ac_t""no" 1>&6
2756 fi
2757
2758
2759 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2760 echo "configure:2761: checking for --enable-no_exceptions" >&5
2761 no_cache=0
2762 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2763 if test "${enable_no_exceptions+set}" = set; then
2764 enableval="$enable_no_exceptions"
2765
2766 if test "$enableval" = yes; then
2767 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2768 else
2769 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2770 fi
2771
2772 else
2773
2774 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2775 if test "x$LINE" != x ; then
2776 eval "DEFAULT_$LINE"
2777 else
2778 no_cache=1
2779 fi
2780
2781 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2782
2783 fi
2784
2785
2786 eval "$ac_cv_use_no_exceptions"
2787 if test "$no_cache" != 1; then
2788 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2789 fi
2790
2791 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2792 echo "$ac_t""yes" 1>&6
2793 else
2794 echo "$ac_t""no" 1>&6
2795 fi
2796
2797
2798 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2799 echo "configure:2800: checking for --enable-permissive" >&5
2800 no_cache=0
2801 # Check whether --enable-permissive or --disable-permissive was given.
2802 if test "${enable_permissive+set}" = set; then
2803 enableval="$enable_permissive"
2804
2805 if test "$enableval" = yes; then
2806 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2807 else
2808 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2809 fi
2810
2811 else
2812
2813 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2814 if test "x$LINE" != x ; then
2815 eval "DEFAULT_$LINE"
2816 else
2817 no_cache=1
2818 fi
2819
2820 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2821
2822 fi
2823
2824
2825 eval "$ac_cv_use_permissive"
2826 if test "$no_cache" != 1; then
2827 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2828 fi
2829
2830 if test "$wxUSE_PERMISSIVE" = yes; then
2831 echo "$ac_t""yes" 1>&6
2832 else
2833 echo "$ac_t""no" 1>&6
2834 fi
2835
2836
2837 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2838 echo "configure:2839: checking for --enable-no_deps" >&5
2839 no_cache=0
2840 # Check whether --enable-no_deps or --disable-no_deps was given.
2841 if test "${enable_no_deps+set}" = set; then
2842 enableval="$enable_no_deps"
2843
2844 if test "$enableval" = yes; then
2845 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2846 else
2847 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2848 fi
2849
2850 else
2851
2852 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2853 if test "x$LINE" != x ; then
2854 eval "DEFAULT_$LINE"
2855 else
2856 no_cache=1
2857 fi
2858
2859 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2860
2861 fi
2862
2863
2864 eval "$ac_cv_use_no_deps"
2865 if test "$no_cache" != 1; then
2866 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2867 fi
2868
2869 if test "$wxUSE_NO_DEPS" = yes; then
2870 echo "$ac_t""yes" 1>&6
2871 else
2872 echo "$ac_t""no" 1>&6
2873 fi
2874
2875
2876
2877 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2878 echo "configure:2879: checking for --enable-compat20" >&5
2879 no_cache=0
2880 # Check whether --enable-compat20 or --disable-compat20 was given.
2881 if test "${enable_compat20+set}" = set; then
2882 enableval="$enable_compat20"
2883
2884 if test "$enableval" = yes; then
2885 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2886 else
2887 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2888 fi
2889
2890 else
2891
2892 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2893 if test "x$LINE" != x ; then
2894 eval "DEFAULT_$LINE"
2895 else
2896 no_cache=1
2897 fi
2898
2899 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2900
2901 fi
2902
2903
2904 eval "$ac_cv_use_compat20"
2905 if test "$no_cache" != 1; then
2906 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2907 fi
2908
2909 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2910 echo "$ac_t""yes" 1>&6
2911 else
2912 echo "$ac_t""no" 1>&6
2913 fi
2914
2915
2916 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2917 echo "configure:2918: checking for --enable-compat22" >&5
2918 no_cache=0
2919 # Check whether --enable-compat22 or --disable-compat22 was given.
2920 if test "${enable_compat22+set}" = set; then
2921 enableval="$enable_compat22"
2922
2923 if test "$enableval" = yes; then
2924 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2925 else
2926 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2927 fi
2928
2929 else
2930
2931 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2932 if test "x$LINE" != x ; then
2933 eval "DEFAULT_$LINE"
2934 else
2935 no_cache=1
2936 fi
2937
2938 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2939
2940 fi
2941
2942
2943 eval "$ac_cv_use_compat22"
2944 if test "$no_cache" != 1; then
2945 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2946 fi
2947
2948 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2949 echo "$ac_t""yes" 1>&6
2950 else
2951 echo "$ac_t""no" 1>&6
2952 fi
2953
2954
2955
2956
2957 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2958 echo "configure:2959: checking for --enable-intl" >&5
2959 no_cache=0
2960 # Check whether --enable-intl or --disable-intl was given.
2961 if test "${enable_intl+set}" = set; then
2962 enableval="$enable_intl"
2963
2964 if test "$enableval" = yes; then
2965 ac_cv_use_intl='wxUSE_INTL=yes'
2966 else
2967 ac_cv_use_intl='wxUSE_INTL=no'
2968 fi
2969
2970 else
2971
2972 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2973 if test "x$LINE" != x ; then
2974 eval "DEFAULT_$LINE"
2975 else
2976 no_cache=1
2977 fi
2978
2979 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2980
2981 fi
2982
2983
2984 eval "$ac_cv_use_intl"
2985 if test "$no_cache" != 1; then
2986 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2987 fi
2988
2989 if test "$wxUSE_INTL" = yes; then
2990 echo "$ac_t""yes" 1>&6
2991 else
2992 echo "$ac_t""no" 1>&6
2993 fi
2994
2995
2996 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2997 echo "configure:2998: checking for --enable-config" >&5
2998 no_cache=0
2999 # Check whether --enable-config or --disable-config was given.
3000 if test "${enable_config+set}" = set; then
3001 enableval="$enable_config"
3002
3003 if test "$enableval" = yes; then
3004 ac_cv_use_config='wxUSE_CONFIG=yes'
3005 else
3006 ac_cv_use_config='wxUSE_CONFIG=no'
3007 fi
3008
3009 else
3010
3011 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3012 if test "x$LINE" != x ; then
3013 eval "DEFAULT_$LINE"
3014 else
3015 no_cache=1
3016 fi
3017
3018 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3019
3020 fi
3021
3022
3023 eval "$ac_cv_use_config"
3024 if test "$no_cache" != 1; then
3025 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3026 fi
3027
3028 if test "$wxUSE_CONFIG" = yes; then
3029 echo "$ac_t""yes" 1>&6
3030 else
3031 echo "$ac_t""no" 1>&6
3032 fi
3033
3034
3035
3036 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3037 echo "configure:3038: checking for --enable-sockets" >&5
3038 no_cache=0
3039 # Check whether --enable-sockets or --disable-sockets was given.
3040 if test "${enable_sockets+set}" = set; then
3041 enableval="$enable_sockets"
3042
3043 if test "$enableval" = yes; then
3044 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3045 else
3046 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3047 fi
3048
3049 else
3050
3051 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3052 if test "x$LINE" != x ; then
3053 eval "DEFAULT_$LINE"
3054 else
3055 no_cache=1
3056 fi
3057
3058 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3059
3060 fi
3061
3062
3063 eval "$ac_cv_use_sockets"
3064 if test "$no_cache" != 1; then
3065 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3066 fi
3067
3068 if test "$wxUSE_SOCKETS" = yes; then
3069 echo "$ac_t""yes" 1>&6
3070 else
3071 echo "$ac_t""no" 1>&6
3072 fi
3073
3074
3075
3076 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3077 echo "configure:3078: checking for --enable-ipc" >&5
3078 no_cache=0
3079 # Check whether --enable-ipc or --disable-ipc was given.
3080 if test "${enable_ipc+set}" = set; then
3081 enableval="$enable_ipc"
3082
3083 if test "$enableval" = yes; then
3084 ac_cv_use_ipc='wxUSE_IPC=yes'
3085 else
3086 ac_cv_use_ipc='wxUSE_IPC=no'
3087 fi
3088
3089 else
3090
3091 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3092 if test "x$LINE" != x ; then
3093 eval "DEFAULT_$LINE"
3094 else
3095 no_cache=1
3096 fi
3097
3098 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3099
3100 fi
3101
3102
3103 eval "$ac_cv_use_ipc"
3104 if test "$no_cache" != 1; then
3105 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3106 fi
3107
3108 if test "$wxUSE_IPC" = yes; then
3109 echo "$ac_t""yes" 1>&6
3110 else
3111 echo "$ac_t""no" 1>&6
3112 fi
3113
3114
3115
3116 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3117 echo "configure:3118: checking for --enable-cmdline" >&5
3118 no_cache=0
3119 # Check whether --enable-cmdline or --disable-cmdline was given.
3120 if test "${enable_cmdline+set}" = set; then
3121 enableval="$enable_cmdline"
3122
3123 if test "$enableval" = yes; then
3124 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3125 else
3126 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3127 fi
3128
3129 else
3130
3131 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3132 if test "x$LINE" != x ; then
3133 eval "DEFAULT_$LINE"
3134 else
3135 no_cache=1
3136 fi
3137
3138 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3139
3140 fi
3141
3142
3143 eval "$ac_cv_use_cmdline"
3144 if test "$no_cache" != 1; then
3145 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3146 fi
3147
3148 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3149 echo "$ac_t""yes" 1>&6
3150 else
3151 echo "$ac_t""no" 1>&6
3152 fi
3153
3154
3155 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3156 echo "configure:3157: checking for --enable-datetime" >&5
3157 no_cache=0
3158 # Check whether --enable-datetime or --disable-datetime was given.
3159 if test "${enable_datetime+set}" = set; then
3160 enableval="$enable_datetime"
3161
3162 if test "$enableval" = yes; then
3163 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3164 else
3165 ac_cv_use_datetime='wxUSE_DATETIME=no'
3166 fi
3167
3168 else
3169
3170 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3171 if test "x$LINE" != x ; then
3172 eval "DEFAULT_$LINE"
3173 else
3174 no_cache=1
3175 fi
3176
3177 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3178
3179 fi
3180
3181
3182 eval "$ac_cv_use_datetime"
3183 if test "$no_cache" != 1; then
3184 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3185 fi
3186
3187 if test "$wxUSE_DATETIME" = yes; then
3188 echo "$ac_t""yes" 1>&6
3189 else
3190 echo "$ac_t""no" 1>&6
3191 fi
3192
3193
3194 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3195 echo "configure:3196: checking for --enable-timedate" >&5
3196 no_cache=0
3197 # Check whether --enable-timedate or --disable-timedate was given.
3198 if test "${enable_timedate+set}" = set; then
3199 enableval="$enable_timedate"
3200
3201 if test "$enableval" = yes; then
3202 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3203 else
3204 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3205 fi
3206
3207 else
3208
3209 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3210 if test "x$LINE" != x ; then
3211 eval "DEFAULT_$LINE"
3212 else
3213 no_cache=1
3214 fi
3215
3216 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3217
3218 fi
3219
3220
3221 eval "$ac_cv_use_timedate"
3222 if test "$no_cache" != 1; then
3223 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3224 fi
3225
3226 if test "$wxUSE_TIMEDATE" = yes; then
3227 echo "$ac_t""yes" 1>&6
3228 else
3229 echo "$ac_t""no" 1>&6
3230 fi
3231
3232
3233 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3234 echo "configure:3235: checking for --enable-stopwatch" >&5
3235 no_cache=0
3236 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3237 if test "${enable_stopwatch+set}" = set; then
3238 enableval="$enable_stopwatch"
3239
3240 if test "$enableval" = yes; then
3241 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3242 else
3243 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3244 fi
3245
3246 else
3247
3248 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3249 if test "x$LINE" != x ; then
3250 eval "DEFAULT_$LINE"
3251 else
3252 no_cache=1
3253 fi
3254
3255 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3256
3257 fi
3258
3259
3260 eval "$ac_cv_use_stopwatch"
3261 if test "$no_cache" != 1; then
3262 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3263 fi
3264
3265 if test "$wxUSE_STOPWATCH" = yes; then
3266 echo "$ac_t""yes" 1>&6
3267 else
3268 echo "$ac_t""no" 1>&6
3269 fi
3270
3271
3272 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3273 echo "configure:3274: checking for --enable-dialupman" >&5
3274 no_cache=0
3275 # Check whether --enable-dialupman or --disable-dialupman was given.
3276 if test "${enable_dialupman+set}" = set; then
3277 enableval="$enable_dialupman"
3278
3279 if test "$enableval" = yes; then
3280 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3281 else
3282 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3283 fi
3284
3285 else
3286
3287 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3288 if test "x$LINE" != x ; then
3289 eval "DEFAULT_$LINE"
3290 else
3291 no_cache=1
3292 fi
3293
3294 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3295
3296 fi
3297
3298
3299 eval "$ac_cv_use_dialupman"
3300 if test "$no_cache" != 1; then
3301 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3302 fi
3303
3304 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3305 echo "$ac_t""yes" 1>&6
3306 else
3307 echo "$ac_t""no" 1>&6
3308 fi
3309
3310
3311 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3312 echo "configure:3313: checking for --enable-apple_ieee" >&5
3313 no_cache=0
3314 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3315 if test "${enable_apple_ieee+set}" = set; then
3316 enableval="$enable_apple_ieee"
3317
3318 if test "$enableval" = yes; then
3319 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3320 else
3321 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3322 fi
3323
3324 else
3325
3326 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3327 if test "x$LINE" != x ; then
3328 eval "DEFAULT_$LINE"
3329 else
3330 no_cache=1
3331 fi
3332
3333 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3334
3335 fi
3336
3337
3338 eval "$ac_cv_use_apple_ieee"
3339 if test "$no_cache" != 1; then
3340 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3341 fi
3342
3343 if test "$wxUSE_APPLE_IEEE" = yes; then
3344 echo "$ac_t""yes" 1>&6
3345 else
3346 echo "$ac_t""no" 1>&6
3347 fi
3348
3349
3350 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3351 echo "configure:3352: checking for --enable-timer" >&5
3352 no_cache=0
3353 # Check whether --enable-timer or --disable-timer was given.
3354 if test "${enable_timer+set}" = set; then
3355 enableval="$enable_timer"
3356
3357 if test "$enableval" = yes; then
3358 ac_cv_use_timer='wxUSE_TIMER=yes'
3359 else
3360 ac_cv_use_timer='wxUSE_TIMER=no'
3361 fi
3362
3363 else
3364
3365 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3366 if test "x$LINE" != x ; then
3367 eval "DEFAULT_$LINE"
3368 else
3369 no_cache=1
3370 fi
3371
3372 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3373
3374 fi
3375
3376
3377 eval "$ac_cv_use_timer"
3378 if test "$no_cache" != 1; then
3379 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3380 fi
3381
3382 if test "$wxUSE_TIMER" = yes; then
3383 echo "$ac_t""yes" 1>&6
3384 else
3385 echo "$ac_t""no" 1>&6
3386 fi
3387
3388
3389 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3390 echo "configure:3391: checking for --enable-wave" >&5
3391 no_cache=0
3392 # Check whether --enable-wave or --disable-wave was given.
3393 if test "${enable_wave+set}" = set; then
3394 enableval="$enable_wave"
3395
3396 if test "$enableval" = yes; then
3397 ac_cv_use_wave='wxUSE_WAVE=yes'
3398 else
3399 ac_cv_use_wave='wxUSE_WAVE=no'
3400 fi
3401
3402 else
3403
3404 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3405 if test "x$LINE" != x ; then
3406 eval "DEFAULT_$LINE"
3407 else
3408 no_cache=1
3409 fi
3410
3411 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3412
3413 fi
3414
3415
3416 eval "$ac_cv_use_wave"
3417 if test "$no_cache" != 1; then
3418 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3419 fi
3420
3421 if test "$wxUSE_WAVE" = yes; then
3422 echo "$ac_t""yes" 1>&6
3423 else
3424 echo "$ac_t""no" 1>&6
3425 fi
3426
3427
3428 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3429 echo "configure:3430: checking for --enable-fraction" >&5
3430 no_cache=0
3431 # Check whether --enable-fraction or --disable-fraction was given.
3432 if test "${enable_fraction+set}" = set; then
3433 enableval="$enable_fraction"
3434
3435 if test "$enableval" = yes; then
3436 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3437 else
3438 ac_cv_use_fraction='wxUSE_FRACTION=no'
3439 fi
3440
3441 else
3442
3443 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3444 if test "x$LINE" != x ; then
3445 eval "DEFAULT_$LINE"
3446 else
3447 no_cache=1
3448 fi
3449
3450 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3451
3452 fi
3453
3454
3455 eval "$ac_cv_use_fraction"
3456 if test "$no_cache" != 1; then
3457 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3458 fi
3459
3460 if test "$wxUSE_FRACTION" = yes; then
3461 echo "$ac_t""yes" 1>&6
3462 else
3463 echo "$ac_t""no" 1>&6
3464 fi
3465
3466
3467 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3468 echo "configure:3469: checking for --enable-dynlib" >&5
3469 no_cache=0
3470 # Check whether --enable-dynlib or --disable-dynlib was given.
3471 if test "${enable_dynlib+set}" = set; then
3472 enableval="$enable_dynlib"
3473
3474 if test "$enableval" = yes; then
3475 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3476 else
3477 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3478 fi
3479
3480 else
3481
3482 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3483 if test "x$LINE" != x ; then
3484 eval "DEFAULT_$LINE"
3485 else
3486 no_cache=1
3487 fi
3488
3489 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3490
3491 fi
3492
3493
3494 eval "$ac_cv_use_dynlib"
3495 if test "$no_cache" != 1; then
3496 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3497 fi
3498
3499 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3500 echo "$ac_t""yes" 1>&6
3501 else
3502 echo "$ac_t""no" 1>&6
3503 fi
3504
3505
3506 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3507 echo "configure:3508: checking for --enable-longlong" >&5
3508 no_cache=0
3509 # Check whether --enable-longlong or --disable-longlong was given.
3510 if test "${enable_longlong+set}" = set; then
3511 enableval="$enable_longlong"
3512
3513 if test "$enableval" = yes; then
3514 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3515 else
3516 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3517 fi
3518
3519 else
3520
3521 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3522 if test "x$LINE" != x ; then
3523 eval "DEFAULT_$LINE"
3524 else
3525 no_cache=1
3526 fi
3527
3528 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3529
3530 fi
3531
3532
3533 eval "$ac_cv_use_longlong"
3534 if test "$no_cache" != 1; then
3535 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3536 fi
3537
3538 if test "$wxUSE_LONGLONG" = yes; then
3539 echo "$ac_t""yes" 1>&6
3540 else
3541 echo "$ac_t""no" 1>&6
3542 fi
3543
3544
3545 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3546 echo "configure:3547: checking for --enable-geometry" >&5
3547 no_cache=0
3548 # Check whether --enable-geometry or --disable-geometry was given.
3549 if test "${enable_geometry+set}" = set; then
3550 enableval="$enable_geometry"
3551
3552 if test "$enableval" = yes; then
3553 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3554 else
3555 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3556 fi
3557
3558 else
3559
3560 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3561 if test "x$LINE" != x ; then
3562 eval "DEFAULT_$LINE"
3563 else
3564 no_cache=1
3565 fi
3566
3567 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3568
3569 fi
3570
3571
3572 eval "$ac_cv_use_geometry"
3573 if test "$no_cache" != 1; then
3574 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3575 fi
3576
3577 if test "$wxUSE_GEOMETRY" = yes; then
3578 echo "$ac_t""yes" 1>&6
3579 else
3580 echo "$ac_t""no" 1>&6
3581 fi
3582
3583
3584 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3585 echo "configure:3586: checking for --enable-log" >&5
3586 no_cache=0
3587 # Check whether --enable-log or --disable-log was given.
3588 if test "${enable_log+set}" = set; then
3589 enableval="$enable_log"
3590
3591 if test "$enableval" = yes; then
3592 ac_cv_use_log='wxUSE_LOG=yes'
3593 else
3594 ac_cv_use_log='wxUSE_LOG=no'
3595 fi
3596
3597 else
3598
3599 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3600 if test "x$LINE" != x ; then
3601 eval "DEFAULT_$LINE"
3602 else
3603 no_cache=1
3604 fi
3605
3606 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3607
3608 fi
3609
3610
3611 eval "$ac_cv_use_log"
3612 if test "$no_cache" != 1; then
3613 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3614 fi
3615
3616 if test "$wxUSE_LOG" = yes; then
3617 echo "$ac_t""yes" 1>&6
3618 else
3619 echo "$ac_t""no" 1>&6
3620 fi
3621
3622
3623 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3624 echo "configure:3625: checking for --enable-streams" >&5
3625 no_cache=0
3626 # Check whether --enable-streams or --disable-streams was given.
3627 if test "${enable_streams+set}" = set; then
3628 enableval="$enable_streams"
3629
3630 if test "$enableval" = yes; then
3631 ac_cv_use_streams='wxUSE_STREAMS=yes'
3632 else
3633 ac_cv_use_streams='wxUSE_STREAMS=no'
3634 fi
3635
3636 else
3637
3638 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3639 if test "x$LINE" != x ; then
3640 eval "DEFAULT_$LINE"
3641 else
3642 no_cache=1
3643 fi
3644
3645 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3646
3647 fi
3648
3649
3650 eval "$ac_cv_use_streams"
3651 if test "$no_cache" != 1; then
3652 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3653 fi
3654
3655 if test "$wxUSE_STREAMS" = yes; then
3656 echo "$ac_t""yes" 1>&6
3657 else
3658 echo "$ac_t""no" 1>&6
3659 fi
3660
3661
3662 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3663 echo "configure:3664: checking for --enable-file" >&5
3664 no_cache=0
3665 # Check whether --enable-file or --disable-file was given.
3666 if test "${enable_file+set}" = set; then
3667 enableval="$enable_file"
3668
3669 if test "$enableval" = yes; then
3670 ac_cv_use_file='wxUSE_FILE=yes'
3671 else
3672 ac_cv_use_file='wxUSE_FILE=no'
3673 fi
3674
3675 else
3676
3677 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3678 if test "x$LINE" != x ; then
3679 eval "DEFAULT_$LINE"
3680 else
3681 no_cache=1
3682 fi
3683
3684 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3685
3686 fi
3687
3688
3689 eval "$ac_cv_use_file"
3690 if test "$no_cache" != 1; then
3691 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3692 fi
3693
3694 if test "$wxUSE_FILE" = yes; then
3695 echo "$ac_t""yes" 1>&6
3696 else
3697 echo "$ac_t""no" 1>&6
3698 fi
3699
3700
3701 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3702 echo "configure:3703: checking for --enable-ffile" >&5
3703 no_cache=0
3704 # Check whether --enable-ffile or --disable-ffile was given.
3705 if test "${enable_ffile+set}" = set; then
3706 enableval="$enable_ffile"
3707
3708 if test "$enableval" = yes; then
3709 ac_cv_use_ffile='wxUSE_FFILE=yes'
3710 else
3711 ac_cv_use_ffile='wxUSE_FFILE=no'
3712 fi
3713
3714 else
3715
3716 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3717 if test "x$LINE" != x ; then
3718 eval "DEFAULT_$LINE"
3719 else
3720 no_cache=1
3721 fi
3722
3723 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3724
3725 fi
3726
3727
3728 eval "$ac_cv_use_ffile"
3729 if test "$no_cache" != 1; then
3730 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3731 fi
3732
3733 if test "$wxUSE_FFILE" = yes; then
3734 echo "$ac_t""yes" 1>&6
3735 else
3736 echo "$ac_t""no" 1>&6
3737 fi
3738
3739
3740 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3741 echo "configure:3742: checking for --enable-textfile" >&5
3742 no_cache=0
3743 # Check whether --enable-textfile or --disable-textfile was given.
3744 if test "${enable_textfile+set}" = set; then
3745 enableval="$enable_textfile"
3746
3747 if test "$enableval" = yes; then
3748 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3749 else
3750 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3751 fi
3752
3753 else
3754
3755 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3756 if test "x$LINE" != x ; then
3757 eval "DEFAULT_$LINE"
3758 else
3759 no_cache=1
3760 fi
3761
3762 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3763
3764 fi
3765
3766
3767 eval "$ac_cv_use_textfile"
3768 if test "$no_cache" != 1; then
3769 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3770 fi
3771
3772 if test "$wxUSE_TEXTFILE" = yes; then
3773 echo "$ac_t""yes" 1>&6
3774 else
3775 echo "$ac_t""no" 1>&6
3776 fi
3777
3778
3779 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3780 echo "configure:3781: checking for --enable-fontmap" >&5
3781 no_cache=0
3782 # Check whether --enable-fontmap or --disable-fontmap was given.
3783 if test "${enable_fontmap+set}" = set; then
3784 enableval="$enable_fontmap"
3785
3786 if test "$enableval" = yes; then
3787 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3788 else
3789 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3790 fi
3791
3792 else
3793
3794 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3795 if test "x$LINE" != x ; then
3796 eval "DEFAULT_$LINE"
3797 else
3798 no_cache=1
3799 fi
3800
3801 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3802
3803 fi
3804
3805
3806 eval "$ac_cv_use_fontmap"
3807 if test "$no_cache" != 1; then
3808 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3809 fi
3810
3811 if test "$wxUSE_FONTMAP" = yes; then
3812 echo "$ac_t""yes" 1>&6
3813 else
3814 echo "$ac_t""no" 1>&6
3815 fi
3816
3817
3818 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3819 echo "configure:3820: checking for --enable-unicode" >&5
3820 no_cache=0
3821 # Check whether --enable-unicode or --disable-unicode was given.
3822 if test "${enable_unicode+set}" = set; then
3823 enableval="$enable_unicode"
3824
3825 if test "$enableval" = yes; then
3826 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3827 else
3828 ac_cv_use_unicode='wxUSE_UNICODE=no'
3829 fi
3830
3831 else
3832
3833 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3834 if test "x$LINE" != x ; then
3835 eval "DEFAULT_$LINE"
3836 else
3837 no_cache=1
3838 fi
3839
3840 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3841
3842 fi
3843
3844
3845 eval "$ac_cv_use_unicode"
3846 if test "$no_cache" != 1; then
3847 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3848 fi
3849
3850 if test "$wxUSE_UNICODE" = yes; then
3851 echo "$ac_t""yes" 1>&6
3852 else
3853 echo "$ac_t""no" 1>&6
3854 fi
3855
3856
3857 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3858 echo "configure:3859: checking for --enable-wxprintfv" >&5
3859 no_cache=0
3860 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3861 if test "${enable_wxprintfv+set}" = set; then
3862 enableval="$enable_wxprintfv"
3863
3864 if test "$enableval" = yes; then
3865 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3866 else
3867 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3868 fi
3869
3870 else
3871
3872 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3873 if test "x$LINE" != x ; then
3874 eval "DEFAULT_$LINE"
3875 else
3876 no_cache=1
3877 fi
3878
3879 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3880
3881 fi
3882
3883
3884 eval "$ac_cv_use_wxprintfv"
3885 if test "$no_cache" != 1; then
3886 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3887 fi
3888
3889 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3890 echo "$ac_t""yes" 1>&6
3891 else
3892 echo "$ac_t""no" 1>&6
3893 fi
3894
3895
3896 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3897 echo "configure:3898: checking for --enable-std_iostreams" >&5
3898 no_cache=0
3899 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3900 if test "${enable_std_iostreams+set}" = set; then
3901 enableval="$enable_std_iostreams"
3902
3903 if test "$enableval" = yes; then
3904 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3905 else
3906 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3907 fi
3908
3909 else
3910
3911 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3912 if test "x$LINE" != x ; then
3913 eval "DEFAULT_$LINE"
3914 else
3915 no_cache=1
3916 fi
3917
3918 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3919
3920 fi
3921
3922
3923 eval "$ac_cv_use_std_iostreams"
3924 if test "$no_cache" != 1; then
3925 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3926 fi
3927
3928 if test "$wxUSE_STD_IOSTREAM" = yes; then
3929 echo "$ac_t""yes" 1>&6
3930 else
3931 echo "$ac_t""no" 1>&6
3932 fi
3933
3934
3935 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3936 echo "configure:3937: checking for --enable-filesystem" >&5
3937 no_cache=0
3938 # Check whether --enable-filesystem or --disable-filesystem was given.
3939 if test "${enable_filesystem+set}" = set; then
3940 enableval="$enable_filesystem"
3941
3942 if test "$enableval" = yes; then
3943 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3944 else
3945 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3946 fi
3947
3948 else
3949
3950 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3951 if test "x$LINE" != x ; then
3952 eval "DEFAULT_$LINE"
3953 else
3954 no_cache=1
3955 fi
3956
3957 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3958
3959 fi
3960
3961
3962 eval "$ac_cv_use_filesystem"
3963 if test "$no_cache" != 1; then
3964 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3965 fi
3966
3967 if test "$wxUSE_FILESYSTEM" = yes; then
3968 echo "$ac_t""yes" 1>&6
3969 else
3970 echo "$ac_t""no" 1>&6
3971 fi
3972
3973
3974 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3975 echo "configure:3976: checking for --enable-fs_inet" >&5
3976 no_cache=0
3977 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3978 if test "${enable_fs_inet+set}" = set; then
3979 enableval="$enable_fs_inet"
3980
3981 if test "$enableval" = yes; then
3982 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3983 else
3984 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3985 fi
3986
3987 else
3988
3989 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3990 if test "x$LINE" != x ; then
3991 eval "DEFAULT_$LINE"
3992 else
3993 no_cache=1
3994 fi
3995
3996 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3997
3998 fi
3999
4000
4001 eval "$ac_cv_use_fs_inet"
4002 if test "$no_cache" != 1; then
4003 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4004 fi
4005
4006 if test "$wxUSE_FS_INET" = yes; then
4007 echo "$ac_t""yes" 1>&6
4008 else
4009 echo "$ac_t""no" 1>&6
4010 fi
4011
4012
4013 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4014 echo "configure:4015: checking for --enable-fs_zip" >&5
4015 no_cache=0
4016 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4017 if test "${enable_fs_zip+set}" = set; then
4018 enableval="$enable_fs_zip"
4019
4020 if test "$enableval" = yes; then
4021 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4022 else
4023 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4024 fi
4025
4026 else
4027
4028 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4029 if test "x$LINE" != x ; then
4030 eval "DEFAULT_$LINE"
4031 else
4032 no_cache=1
4033 fi
4034
4035 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4036
4037 fi
4038
4039
4040 eval "$ac_cv_use_fs_zip"
4041 if test "$no_cache" != 1; then
4042 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4043 fi
4044
4045 if test "$wxUSE_FS_ZIP" = yes; then
4046 echo "$ac_t""yes" 1>&6
4047 else
4048 echo "$ac_t""no" 1>&6
4049 fi
4050
4051
4052 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4053 echo "configure:4054: checking for --enable-zipstream" >&5
4054 no_cache=0
4055 # Check whether --enable-zipstream or --disable-zipstream was given.
4056 if test "${enable_zipstream+set}" = set; then
4057 enableval="$enable_zipstream"
4058
4059 if test "$enableval" = yes; then
4060 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4061 else
4062 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4063 fi
4064
4065 else
4066
4067 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4068 if test "x$LINE" != x ; then
4069 eval "DEFAULT_$LINE"
4070 else
4071 no_cache=1
4072 fi
4073
4074 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4075
4076 fi
4077
4078
4079 eval "$ac_cv_use_zipstream"
4080 if test "$no_cache" != 1; then
4081 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4082 fi
4083
4084 if test "$wxUSE_ZIPSTREAM" = yes; then
4085 echo "$ac_t""yes" 1>&6
4086 else
4087 echo "$ac_t""no" 1>&6
4088 fi
4089
4090
4091
4092 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4093 echo "configure:4094: checking for --enable-catch_segvs" >&5
4094 no_cache=0
4095 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4096 if test "${enable_catch_segvs+set}" = set; then
4097 enableval="$enable_catch_segvs"
4098
4099 if test "$enableval" = yes; then
4100 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4101 else
4102 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4103 fi
4104
4105 else
4106
4107 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4108 if test "x$LINE" != x ; then
4109 eval "DEFAULT_$LINE"
4110 else
4111 no_cache=1
4112 fi
4113
4114 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4115
4116 fi
4117
4118
4119 eval "$ac_cv_use_catch_segvs"
4120 if test "$no_cache" != 1; then
4121 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4122 fi
4123
4124 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4125 echo "$ac_t""yes" 1>&6
4126 else
4127 echo "$ac_t""no" 1>&6
4128 fi
4129
4130
4131 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4132 echo "configure:4133: checking for --enable-snglinst" >&5
4133 no_cache=0
4134 # Check whether --enable-snglinst or --disable-snglinst was given.
4135 if test "${enable_snglinst+set}" = set; then
4136 enableval="$enable_snglinst"
4137
4138 if test "$enableval" = yes; then
4139 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4140 else
4141 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4142 fi
4143
4144 else
4145
4146 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4147 if test "x$LINE" != x ; then
4148 eval "DEFAULT_$LINE"
4149 else
4150 no_cache=1
4151 fi
4152
4153 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4154
4155 fi
4156
4157
4158 eval "$ac_cv_use_snglinst"
4159 if test "$no_cache" != 1; then
4160 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4161 fi
4162
4163 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4164 echo "$ac_t""yes" 1>&6
4165 else
4166 echo "$ac_t""no" 1>&6
4167 fi
4168
4169
4170
4171 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4172 echo "configure:4173: checking for --enable-mimetype" >&5
4173 no_cache=0
4174 # Check whether --enable-mimetype or --disable-mimetype was given.
4175 if test "${enable_mimetype+set}" = set; then
4176 enableval="$enable_mimetype"
4177
4178 if test "$enableval" = yes; then
4179 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4180 else
4181 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4182 fi
4183
4184 else
4185
4186 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4187 if test "x$LINE" != x ; then
4188 eval "DEFAULT_$LINE"
4189 else
4190 no_cache=1
4191 fi
4192
4193 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4194
4195 fi
4196
4197
4198 eval "$ac_cv_use_mimetype"
4199 if test "$no_cache" != 1; then
4200 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4201 fi
4202
4203 if test "$wxUSE_MIMETYPE" = yes; then
4204 echo "$ac_t""yes" 1>&6
4205 else
4206 echo "$ac_t""no" 1>&6
4207 fi
4208
4209
4210 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4211 echo "configure:4212: checking for --enable-system_options" >&5
4212 no_cache=0
4213 # Check whether --enable-system_options or --disable-system_options was given.
4214 if test "${enable_system_options+set}" = set; then
4215 enableval="$enable_system_options"
4216
4217 if test "$enableval" = yes; then
4218 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4219 else
4220 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4221 fi
4222
4223 else
4224
4225 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4226 if test "x$LINE" != x ; then
4227 eval "DEFAULT_$LINE"
4228 else
4229 no_cache=1
4230 fi
4231
4232 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4233
4234 fi
4235
4236
4237 eval "$ac_cv_use_system_options"
4238 if test "$no_cache" != 1; then
4239 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4240 fi
4241
4242 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4243 echo "$ac_t""yes" 1>&6
4244 else
4245 echo "$ac_t""no" 1>&6
4246 fi
4247
4248
4249
4250
4251 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4252 echo "configure:4253: checking for --enable-threads" >&5
4253 no_cache=0
4254 # Check whether --enable-threads or --disable-threads was given.
4255 if test "${enable_threads+set}" = set; then
4256 enableval="$enable_threads"
4257
4258 if test "$enableval" = yes; then
4259 ac_cv_use_threads='wxUSE_THREADS=yes'
4260 else
4261 ac_cv_use_threads='wxUSE_THREADS=no'
4262 fi
4263
4264 else
4265
4266 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4267 if test "x$LINE" != x ; then
4268 eval "DEFAULT_$LINE"
4269 else
4270 no_cache=1
4271 fi
4272
4273 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4274
4275 fi
4276
4277
4278 eval "$ac_cv_use_threads"
4279 if test "$no_cache" != 1; then
4280 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4281 fi
4282
4283 if test "$wxUSE_THREADS" = yes; then
4284 echo "$ac_t""yes" 1>&6
4285 else
4286 echo "$ac_t""no" 1>&6
4287 fi
4288
4289
4290 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4291 echo "configure:4292: checking for --enable-serial" >&5
4292 no_cache=0
4293 # Check whether --enable-serial or --disable-serial was given.
4294 if test "${enable_serial+set}" = set; then
4295 enableval="$enable_serial"
4296
4297 if test "$enableval" = yes; then
4298 ac_cv_use_serial='wxUSE_SERIAL=yes'
4299 else
4300 ac_cv_use_serial='wxUSE_SERIAL=no'
4301 fi
4302
4303 else
4304
4305 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4306 if test "x$LINE" != x ; then
4307 eval "DEFAULT_$LINE"
4308 else
4309 no_cache=1
4310 fi
4311
4312 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4313
4314 fi
4315
4316
4317 eval "$ac_cv_use_serial"
4318 if test "$no_cache" != 1; then
4319 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4320 fi
4321
4322 if test "$wxUSE_SERIAL" = yes; then
4323 echo "$ac_t""yes" 1>&6
4324 else
4325 echo "$ac_t""no" 1>&6
4326 fi
4327
4328
4329 if test "$wxUSE_GUI" = "yes"; then
4330
4331
4332
4333 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4334 echo "configure:4335: checking for --enable-docview" >&5
4335 no_cache=0
4336 # Check whether --enable-docview or --disable-docview was given.
4337 if test "${enable_docview+set}" = set; then
4338 enableval="$enable_docview"
4339
4340 if test "$enableval" = yes; then
4341 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4342 else
4343 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4344 fi
4345
4346 else
4347
4348 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4349 if test "x$LINE" != x ; then
4350 eval "DEFAULT_$LINE"
4351 else
4352 no_cache=1
4353 fi
4354
4355 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4356
4357 fi
4358
4359
4360 eval "$ac_cv_use_docview"
4361 if test "$no_cache" != 1; then
4362 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4363 fi
4364
4365 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4366 echo "$ac_t""yes" 1>&6
4367 else
4368 echo "$ac_t""no" 1>&6
4369 fi
4370
4371
4372 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4373 echo "configure:4374: checking for --enable-help" >&5
4374 no_cache=0
4375 # Check whether --enable-help or --disable-help was given.
4376 if test "${enable_help+set}" = set; then
4377 enableval="$enable_help"
4378
4379 if test "$enableval" = yes; then
4380 ac_cv_use_help='wxUSE_HELP=yes'
4381 else
4382 ac_cv_use_help='wxUSE_HELP=no'
4383 fi
4384
4385 else
4386
4387 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4388 if test "x$LINE" != x ; then
4389 eval "DEFAULT_$LINE"
4390 else
4391 no_cache=1
4392 fi
4393
4394 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4395
4396 fi
4397
4398
4399 eval "$ac_cv_use_help"
4400 if test "$no_cache" != 1; then
4401 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4402 fi
4403
4404 if test "$wxUSE_HELP" = yes; then
4405 echo "$ac_t""yes" 1>&6
4406 else
4407 echo "$ac_t""no" 1>&6
4408 fi
4409
4410
4411 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4412 echo "configure:4413: checking for --enable-mshtmlhelp" >&5
4413 no_cache=0
4414 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4415 if test "${enable_mshtmlhelp+set}" = set; then
4416 enableval="$enable_mshtmlhelp"
4417
4418 if test "$enableval" = yes; then
4419 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4420 else
4421 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4422 fi
4423
4424 else
4425
4426 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4427 if test "x$LINE" != x ; then
4428 eval "DEFAULT_$LINE"
4429 else
4430 no_cache=1
4431 fi
4432
4433 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4434
4435 fi
4436
4437
4438 eval "$ac_cv_use_mshtmlhelp"
4439 if test "$no_cache" != 1; then
4440 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4441 fi
4442
4443 if test "$wxUSE_MS_HTML_HELP" = yes; then
4444 echo "$ac_t""yes" 1>&6
4445 else
4446 echo "$ac_t""no" 1>&6
4447 fi
4448
4449
4450 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4451 echo "configure:4452: checking for --enable-html" >&5
4452 no_cache=0
4453 # Check whether --enable-html or --disable-html was given.
4454 if test "${enable_html+set}" = set; then
4455 enableval="$enable_html"
4456
4457 if test "$enableval" = yes; then
4458 ac_cv_use_html='wxUSE_HTML=yes'
4459 else
4460 ac_cv_use_html='wxUSE_HTML=no'
4461 fi
4462
4463 else
4464
4465 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4466 if test "x$LINE" != x ; then
4467 eval "DEFAULT_$LINE"
4468 else
4469 no_cache=1
4470 fi
4471
4472 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4473
4474 fi
4475
4476
4477 eval "$ac_cv_use_html"
4478 if test "$no_cache" != 1; then
4479 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4480 fi
4481
4482 if test "$wxUSE_HTML" = yes; then
4483 echo "$ac_t""yes" 1>&6
4484 else
4485 echo "$ac_t""no" 1>&6
4486 fi
4487
4488
4489 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4490 echo "configure:4491: checking for --enable-htmlhelp" >&5
4491 no_cache=0
4492 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4493 if test "${enable_htmlhelp+set}" = set; then
4494 enableval="$enable_htmlhelp"
4495
4496 if test "$enableval" = yes; then
4497 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4498 else
4499 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4500 fi
4501
4502 else
4503
4504 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4505 if test "x$LINE" != x ; then
4506 eval "DEFAULT_$LINE"
4507 else
4508 no_cache=1
4509 fi
4510
4511 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4512
4513 fi
4514
4515
4516 eval "$ac_cv_use_htmlhelp"
4517 if test "$no_cache" != 1; then
4518 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4519 fi
4520
4521 if test "$wxUSE_WXHTML_HELP" = yes; then
4522 echo "$ac_t""yes" 1>&6
4523 else
4524 echo "$ac_t""no" 1>&6
4525 fi
4526
4527
4528 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4529 echo "configure:4530: checking for --enable-constraints" >&5
4530 no_cache=0
4531 # Check whether --enable-constraints or --disable-constraints was given.
4532 if test "${enable_constraints+set}" = set; then
4533 enableval="$enable_constraints"
4534
4535 if test "$enableval" = yes; then
4536 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4537 else
4538 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4539 fi
4540
4541 else
4542
4543 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4544 if test "x$LINE" != x ; then
4545 eval "DEFAULT_$LINE"
4546 else
4547 no_cache=1
4548 fi
4549
4550 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4551
4552 fi
4553
4554
4555 eval "$ac_cv_use_constraints"
4556 if test "$no_cache" != 1; then
4557 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4558 fi
4559
4560 if test "$wxUSE_CONSTRAINTS" = yes; then
4561 echo "$ac_t""yes" 1>&6
4562 else
4563 echo "$ac_t""no" 1>&6
4564 fi
4565
4566
4567 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4568 echo "configure:4569: checking for --enable-printarch" >&5
4569 no_cache=0
4570 # Check whether --enable-printarch or --disable-printarch was given.
4571 if test "${enable_printarch+set}" = set; then
4572 enableval="$enable_printarch"
4573
4574 if test "$enableval" = yes; then
4575 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4576 else
4577 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4578 fi
4579
4580 else
4581
4582 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4583 if test "x$LINE" != x ; then
4584 eval "DEFAULT_$LINE"
4585 else
4586 no_cache=1
4587 fi
4588
4589 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4590
4591 fi
4592
4593
4594 eval "$ac_cv_use_printarch"
4595 if test "$no_cache" != 1; then
4596 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4597 fi
4598
4599 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4600 echo "$ac_t""yes" 1>&6
4601 else
4602 echo "$ac_t""no" 1>&6
4603 fi
4604
4605
4606 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4607 echo "configure:4608: checking for --enable-mdi" >&5
4608 no_cache=0
4609 # Check whether --enable-mdi or --disable-mdi was given.
4610 if test "${enable_mdi+set}" = set; then
4611 enableval="$enable_mdi"
4612
4613 if test "$enableval" = yes; then
4614 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4615 else
4616 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4617 fi
4618
4619 else
4620
4621 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4622 if test "x$LINE" != x ; then
4623 eval "DEFAULT_$LINE"
4624 else
4625 no_cache=1
4626 fi
4627
4628 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4629
4630 fi
4631
4632
4633 eval "$ac_cv_use_mdi"
4634 if test "$no_cache" != 1; then
4635 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4636 fi
4637
4638 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4639 echo "$ac_t""yes" 1>&6
4640 else
4641 echo "$ac_t""no" 1>&6
4642 fi
4643
4644
4645 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4646 echo "configure:4647: checking for --enable-loggui" >&5
4647 no_cache=0
4648 # Check whether --enable-loggui or --disable-loggui was given.
4649 if test "${enable_loggui+set}" = set; then
4650 enableval="$enable_loggui"
4651
4652 if test "$enableval" = yes; then
4653 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4654 else
4655 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4656 fi
4657
4658 else
4659
4660 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4661 if test "x$LINE" != x ; then
4662 eval "DEFAULT_$LINE"
4663 else
4664 no_cache=1
4665 fi
4666
4667 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4668
4669 fi
4670
4671
4672 eval "$ac_cv_use_loggui"
4673 if test "$no_cache" != 1; then
4674 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4675 fi
4676
4677 if test "$wxUSE_LOGGUI" = yes; then
4678 echo "$ac_t""yes" 1>&6
4679 else
4680 echo "$ac_t""no" 1>&6
4681 fi
4682
4683
4684 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4685 echo "configure:4686: checking for --enable-logwin" >&5
4686 no_cache=0
4687 # Check whether --enable-logwin or --disable-logwin was given.
4688 if test "${enable_logwin+set}" = set; then
4689 enableval="$enable_logwin"
4690
4691 if test "$enableval" = yes; then
4692 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4693 else
4694 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4695 fi
4696
4697 else
4698
4699 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4700 if test "x$LINE" != x ; then
4701 eval "DEFAULT_$LINE"
4702 else
4703 no_cache=1
4704 fi
4705
4706 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4707
4708 fi
4709
4710
4711 eval "$ac_cv_use_logwin"
4712 if test "$no_cache" != 1; then
4713 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4714 fi
4715
4716 if test "$wxUSE_LOGWINDOW" = yes; then
4717 echo "$ac_t""yes" 1>&6
4718 else
4719 echo "$ac_t""no" 1>&6
4720 fi
4721
4722
4723
4724 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4725 echo "configure:4726: checking for --enable-postscript" >&5
4726 no_cache=0
4727 # Check whether --enable-postscript or --disable-postscript was given.
4728 if test "${enable_postscript+set}" = set; then
4729 enableval="$enable_postscript"
4730
4731 if test "$enableval" = yes; then
4732 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4733 else
4734 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4735 fi
4736
4737 else
4738
4739 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4740 if test "x$LINE" != x ; then
4741 eval "DEFAULT_$LINE"
4742 else
4743 no_cache=1
4744 fi
4745
4746 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4747
4748 fi
4749
4750
4751 eval "$ac_cv_use_postscript"
4752 if test "$no_cache" != 1; then
4753 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4754 fi
4755
4756 if test "$wxUSE_POSTSCRIPT" = yes; then
4757 echo "$ac_t""yes" 1>&6
4758 else
4759 echo "$ac_t""no" 1>&6
4760 fi
4761
4762
4763
4764
4765
4766 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4767 echo "configure:4768: checking for --enable-prologio" >&5
4768 no_cache=0
4769 # Check whether --enable-prologio or --disable-prologio was given.
4770 if test "${enable_prologio+set}" = set; then
4771 enableval="$enable_prologio"
4772
4773 if test "$enableval" = yes; then
4774 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4775 else
4776 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4777 fi
4778
4779 else
4780
4781 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4782 if test "x$LINE" != x ; then
4783 eval "DEFAULT_$LINE"
4784 else
4785 no_cache=1
4786 fi
4787
4788 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4789
4790 fi
4791
4792
4793 eval "$ac_cv_use_prologio"
4794 if test "$no_cache" != 1; then
4795 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4796 fi
4797
4798 if test "$wxUSE_PROLOGIO" = yes; then
4799 echo "$ac_t""yes" 1>&6
4800 else
4801 echo "$ac_t""no" 1>&6
4802 fi
4803
4804
4805 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4806 echo "configure:4807: checking for --enable-resources" >&5
4807 no_cache=0
4808 # Check whether --enable-resources or --disable-resources was given.
4809 if test "${enable_resources+set}" = set; then
4810 enableval="$enable_resources"
4811
4812 if test "$enableval" = yes; then
4813 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4814 else
4815 ac_cv_use_resources='wxUSE_RESOURCES=no'
4816 fi
4817
4818 else
4819
4820 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4821 if test "x$LINE" != x ; then
4822 eval "DEFAULT_$LINE"
4823 else
4824 no_cache=1
4825 fi
4826
4827 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4828
4829 fi
4830
4831
4832 eval "$ac_cv_use_resources"
4833 if test "$no_cache" != 1; then
4834 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4835 fi
4836
4837 if test "$wxUSE_RESOURCES" = yes; then
4838 echo "$ac_t""yes" 1>&6
4839 else
4840 echo "$ac_t""no" 1>&6
4841 fi
4842
4843
4844
4845 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4846 echo "configure:4847: checking for --enable-xresources" >&5
4847 no_cache=0
4848 # Check whether --enable-xresources or --disable-xresources was given.
4849 if test "${enable_xresources+set}" = set; then
4850 enableval="$enable_xresources"
4851
4852 if test "$enableval" = yes; then
4853 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4854 else
4855 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4856 fi
4857
4858 else
4859
4860 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4861 if test "x$LINE" != x ; then
4862 eval "DEFAULT_$LINE"
4863 else
4864 no_cache=1
4865 fi
4866
4867 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4868
4869 fi
4870
4871
4872 eval "$ac_cv_use_xresources"
4873 if test "$no_cache" != 1; then
4874 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4875 fi
4876
4877 if test "$wxUSE_X_RESOURCES" = yes; then
4878 echo "$ac_t""yes" 1>&6
4879 else
4880 echo "$ac_t""no" 1>&6
4881 fi
4882
4883
4884
4885
4886 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4887 echo "configure:4888: checking for --enable-clipboard" >&5
4888 no_cache=0
4889 # Check whether --enable-clipboard or --disable-clipboard was given.
4890 if test "${enable_clipboard+set}" = set; then
4891 enableval="$enable_clipboard"
4892
4893 if test "$enableval" = yes; then
4894 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4895 else
4896 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4897 fi
4898
4899 else
4900
4901 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4902 if test "x$LINE" != x ; then
4903 eval "DEFAULT_$LINE"
4904 else
4905 no_cache=1
4906 fi
4907
4908 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4909
4910 fi
4911
4912
4913 eval "$ac_cv_use_clipboard"
4914 if test "$no_cache" != 1; then
4915 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4916 fi
4917
4918 if test "$wxUSE_CLIPBOARD" = yes; then
4919 echo "$ac_t""yes" 1>&6
4920 else
4921 echo "$ac_t""no" 1>&6
4922 fi
4923
4924
4925 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4926 echo "configure:4927: checking for --enable-dnd" >&5
4927 no_cache=0
4928 # Check whether --enable-dnd or --disable-dnd was given.
4929 if test "${enable_dnd+set}" = set; then
4930 enableval="$enable_dnd"
4931
4932 if test "$enableval" = yes; then
4933 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4934 else
4935 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4936 fi
4937
4938 else
4939
4940 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4941 if test "x$LINE" != x ; then
4942 eval "DEFAULT_$LINE"
4943 else
4944 no_cache=1
4945 fi
4946
4947 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4948
4949 fi
4950
4951
4952 eval "$ac_cv_use_dnd"
4953 if test "$no_cache" != 1; then
4954 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4955 fi
4956
4957 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4958 echo "$ac_t""yes" 1>&6
4959 else
4960 echo "$ac_t""no" 1>&6
4961 fi
4962
4963
4964 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4965 echo "configure:4966: checking for --enable-metafile" >&5
4966 no_cache=0
4967 # Check whether --enable-metafile or --disable-metafile was given.
4968 if test "${enable_metafile+set}" = set; then
4969 enableval="$enable_metafile"
4970
4971 if test "$enableval" = yes; then
4972 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4973 else
4974 ac_cv_use_metafile='wxUSE_METAFILE=no'
4975 fi
4976
4977 else
4978
4979 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4980 if test "x$LINE" != x ; then
4981 eval "DEFAULT_$LINE"
4982 else
4983 no_cache=1
4984 fi
4985
4986 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4987
4988 fi
4989
4990
4991 eval "$ac_cv_use_metafile"
4992 if test "$no_cache" != 1; then
4993 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4994 fi
4995
4996 if test "$wxUSE_METAFILE" = yes; then
4997 echo "$ac_t""yes" 1>&6
4998 else
4999 echo "$ac_t""no" 1>&6
5000 fi
5001
5002
5003
5004 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5005 echo "configure:5006: checking for --enable-treelayout" >&5
5006 no_cache=0
5007 # Check whether --enable-treelayout or --disable-treelayout was given.
5008 if test "${enable_treelayout+set}" = set; then
5009 enableval="$enable_treelayout"
5010
5011 if test "$enableval" = yes; then
5012 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5013 else
5014 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5015 fi
5016
5017 else
5018
5019 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5020 if test "x$LINE" != x ; then
5021 eval "DEFAULT_$LINE"
5022 else
5023 no_cache=1
5024 fi
5025
5026 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5027
5028 fi
5029
5030
5031 eval "$ac_cv_use_treelayout"
5032 if test "$no_cache" != 1; then
5033 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5034 fi
5035
5036 if test "$wxUSE_TREELAYOUT" = yes; then
5037 echo "$ac_t""yes" 1>&6
5038 else
5039 echo "$ac_t""no" 1>&6
5040 fi
5041
5042
5043
5044
5045 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5046 echo "configure:5047: checking for --enable-controls" >&5
5047 no_cache=0
5048 # Check whether --enable-controls or --disable-controls was given.
5049 if test "${enable_controls+set}" = set; then
5050 enableval="$enable_controls"
5051
5052 if test "$enableval" = yes; then
5053 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5054 else
5055 ac_cv_use_controls='wxUSE_CONTROLS=no'
5056 fi
5057
5058 else
5059
5060 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5061 if test "x$LINE" != x ; then
5062 eval "DEFAULT_$LINE"
5063 else
5064 no_cache=1
5065 fi
5066
5067 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5068
5069 fi
5070
5071
5072 eval "$ac_cv_use_controls"
5073 if test "$no_cache" != 1; then
5074 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5075 fi
5076
5077 if test "$wxUSE_CONTROLS" = yes; then
5078 echo "$ac_t""yes" 1>&6
5079 else
5080 echo "$ac_t""no" 1>&6
5081 fi
5082
5083
5084 if test "$wxUSE_CONTROLS" = "yes"; then
5085 DEFAULT_wxUSE_ACCEL=yes
5086 DEFAULT_wxUSE_BMPBUTTON=yes
5087 DEFAULT_wxUSE_BUTTON=yes
5088 DEFAULT_wxUSE_CALCTRL=no
5089 DEFAULT_wxUSE_CARET=yes
5090 DEFAULT_wxUSE_COMBOBOX=yes
5091 DEFAULT_wxUSE_CHECKBOX=yes
5092 DEFAULT_wxUSE_CHECKLISTBOX=yes
5093 DEFAULT_wxUSE_CHOICE=yes
5094 DEFAULT_wxUSE_GAUGE=yes
5095 DEFAULT_wxUSE_GRID=yes
5096 DEFAULT_wxUSE_NEW_GRID=yes
5097 DEFAULT_wxUSE_IMAGLIST=yes
5098 DEFAULT_wxUSE_LISTBOX=yes
5099 DEFAULT_wxUSE_LISTCTRL=yes
5100 DEFAULT_wxUSE_NOTEBOOK=yes
5101 DEFAULT_wxUSE_PROPSHEET=yes
5102 DEFAULT_wxUSE_RADIOBOX=yes
5103 DEFAULT_wxUSE_RADIOBTN=yes
5104 DEFAULT_wxUSE_SASH=yes
5105 DEFAULT_wxUSE_SCROLLBAR=yes
5106 DEFAULT_wxUSE_SLIDER=yes
5107 DEFAULT_wxUSE_SPINBTN=yes
5108 DEFAULT_wxUSE_SPINCTRL=yes
5109 DEFAULT_wxUSE_SPLITTER=yes
5110 DEFAULT_wxUSE_STATBMP=yes
5111 DEFAULT_wxUSE_STATBOX=yes
5112 DEFAULT_wxUSE_STATLINE=yes
5113 DEFAULT_wxUSE_STATUSBAR=yes
5114 DEFAULT_wxUSE_TAB_DIALOG=yes
5115 DEFAULT_wxUSE_TOGGLEBTN=yes
5116 DEFAULT_wxUSE_TOOLBAR=yes
5117 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5118 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5119 DEFAULT_wxUSE_TOOLTIPS=yes
5120 DEFAULT_wxUSE_TREECTRL=yes
5121 DEFAULT_wxUSE_POPUPWIN=yes
5122 elif test "$wxUSE_CONTROLS" = "no"; then
5123 DEFAULT_wxUSE_ACCEL=no
5124 DEFAULT_wxUSE_BMPBUTTON=no
5125 DEFAULT_wxUSE_BUTTON=no
5126 DEFAULT_wxUSE_CALCTRL=no
5127 DEFAULT_wxUSE_CARET=no
5128 DEFAULT_wxUSE_COMBOBOX=no
5129 DEFAULT_wxUSE_CHECKBOX=no
5130 DEFAULT_wxUSE_CHECKLISTBOX=no
5131 DEFAULT_wxUSE_CHOICE=no
5132 DEFAULT_wxUSE_GAUGE=no
5133 DEFAULT_wxUSE_GRID=no
5134 DEFAULT_wxUSE_NEW_GRID=no
5135 DEFAULT_wxUSE_IMAGLIST=no
5136 DEFAULT_wxUSE_LISTBOX=no
5137 DEFAULT_wxUSE_LISTCTRL=no
5138 DEFAULT_wxUSE_NOTEBOOK=no
5139 DEFAULT_wxUSE_PROPSHEET=no
5140 DEFAULT_wxUSE_RADIOBOX=no
5141 DEFAULT_wxUSE_RADIOBTN=no
5142 DEFAULT_wxUSE_SASH=no
5143 DEFAULT_wxUSE_SCROLLBAR=no
5144 DEFAULT_wxUSE_SLIDER=no
5145 DEFAULT_wxUSE_SPINBTN=no
5146 DEFAULT_wxUSE_SPINCTRL=no
5147 DEFAULT_wxUSE_SPLITTER=no
5148 DEFAULT_wxUSE_STATBMP=no
5149 DEFAULT_wxUSE_STATBOX=no
5150 DEFAULT_wxUSE_STATLINE=no
5151 DEFAULT_wxUSE_STATUSBAR=no
5152 DEFAULT_wxUSE_TAB_DIALOG=no
5153 DEFAULT_wxUSE_TOGGLEBTN=no
5154 DEFAULT_wxUSE_TOOLBAR=no
5155 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5156 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5157 DEFAULT_wxUSE_TOOLTIPS=no
5158 DEFAULT_wxUSE_TREECTRL=no
5159 DEFAULT_wxUSE_POPUPWIN=no
5160 fi
5161
5162
5163 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5164 echo "configure:5165: checking for --enable-accel" >&5
5165 no_cache=0
5166 # Check whether --enable-accel or --disable-accel was given.
5167 if test "${enable_accel+set}" = set; then
5168 enableval="$enable_accel"
5169
5170 if test "$enableval" = yes; then
5171 ac_cv_use_accel='wxUSE_ACCEL=yes'
5172 else
5173 ac_cv_use_accel='wxUSE_ACCEL=no'
5174 fi
5175
5176 else
5177
5178 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5179 if test "x$LINE" != x ; then
5180 eval "DEFAULT_$LINE"
5181 else
5182 no_cache=1
5183 fi
5184
5185 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5186
5187 fi
5188
5189
5190 eval "$ac_cv_use_accel"
5191 if test "$no_cache" != 1; then
5192 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5193 fi
5194
5195 if test "$wxUSE_ACCEL" = yes; then
5196 echo "$ac_t""yes" 1>&6
5197 else
5198 echo "$ac_t""no" 1>&6
5199 fi
5200
5201
5202 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5203 echo "configure:5204: checking for --enable-button" >&5
5204 no_cache=0
5205 # Check whether --enable-button or --disable-button was given.
5206 if test "${enable_button+set}" = set; then
5207 enableval="$enable_button"
5208
5209 if test "$enableval" = yes; then
5210 ac_cv_use_button='wxUSE_BUTTON=yes'
5211 else
5212 ac_cv_use_button='wxUSE_BUTTON=no'
5213 fi
5214
5215 else
5216
5217 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5218 if test "x$LINE" != x ; then
5219 eval "DEFAULT_$LINE"
5220 else
5221 no_cache=1
5222 fi
5223
5224 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5225
5226 fi
5227
5228
5229 eval "$ac_cv_use_button"
5230 if test "$no_cache" != 1; then
5231 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5232 fi
5233
5234 if test "$wxUSE_BUTTON" = yes; then
5235 echo "$ac_t""yes" 1>&6
5236 else
5237 echo "$ac_t""no" 1>&6
5238 fi
5239
5240
5241 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5242 echo "configure:5243: checking for --enable-bmpbutton" >&5
5243 no_cache=0
5244 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5245 if test "${enable_bmpbutton+set}" = set; then
5246 enableval="$enable_bmpbutton"
5247
5248 if test "$enableval" = yes; then
5249 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5250 else
5251 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5252 fi
5253
5254 else
5255
5256 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5257 if test "x$LINE" != x ; then
5258 eval "DEFAULT_$LINE"
5259 else
5260 no_cache=1
5261 fi
5262
5263 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5264
5265 fi
5266
5267
5268 eval "$ac_cv_use_bmpbutton"
5269 if test "$no_cache" != 1; then
5270 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5271 fi
5272
5273 if test "$wxUSE_BMPBUTTON" = yes; then
5274 echo "$ac_t""yes" 1>&6
5275 else
5276 echo "$ac_t""no" 1>&6
5277 fi
5278
5279
5280 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5281 echo "configure:5282: checking for --enable-calendar" >&5
5282 no_cache=0
5283 # Check whether --enable-calendar or --disable-calendar was given.
5284 if test "${enable_calendar+set}" = set; then
5285 enableval="$enable_calendar"
5286
5287 if test "$enableval" = yes; then
5288 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5289 else
5290 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5291 fi
5292
5293 else
5294
5295 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5296 if test "x$LINE" != x ; then
5297 eval "DEFAULT_$LINE"
5298 else
5299 no_cache=1
5300 fi
5301
5302 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5303
5304 fi
5305
5306
5307 eval "$ac_cv_use_calendar"
5308 if test "$no_cache" != 1; then
5309 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5310 fi
5311
5312 if test "$wxUSE_CALCTRL" = yes; then
5313 echo "$ac_t""yes" 1>&6
5314 else
5315 echo "$ac_t""no" 1>&6
5316 fi
5317
5318
5319 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5320 echo "configure:5321: checking for --enable-caret" >&5
5321 no_cache=0
5322 # Check whether --enable-caret or --disable-caret was given.
5323 if test "${enable_caret+set}" = set; then
5324 enableval="$enable_caret"
5325
5326 if test "$enableval" = yes; then
5327 ac_cv_use_caret='wxUSE_CARET=yes'
5328 else
5329 ac_cv_use_caret='wxUSE_CARET=no'
5330 fi
5331
5332 else
5333
5334 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5335 if test "x$LINE" != x ; then
5336 eval "DEFAULT_$LINE"
5337 else
5338 no_cache=1
5339 fi
5340
5341 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5342
5343 fi
5344
5345
5346 eval "$ac_cv_use_caret"
5347 if test "$no_cache" != 1; then
5348 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5349 fi
5350
5351 if test "$wxUSE_CARET" = yes; then
5352 echo "$ac_t""yes" 1>&6
5353 else
5354 echo "$ac_t""no" 1>&6
5355 fi
5356
5357
5358 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5359 echo "configure:5360: checking for --enable-checkbox" >&5
5360 no_cache=0
5361 # Check whether --enable-checkbox or --disable-checkbox was given.
5362 if test "${enable_checkbox+set}" = set; then
5363 enableval="$enable_checkbox"
5364
5365 if test "$enableval" = yes; then
5366 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5367 else
5368 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5369 fi
5370
5371 else
5372
5373 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5374 if test "x$LINE" != x ; then
5375 eval "DEFAULT_$LINE"
5376 else
5377 no_cache=1
5378 fi
5379
5380 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5381
5382 fi
5383
5384
5385 eval "$ac_cv_use_checkbox"
5386 if test "$no_cache" != 1; then
5387 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5388 fi
5389
5390 if test "$wxUSE_CHECKBOX" = yes; then
5391 echo "$ac_t""yes" 1>&6
5392 else
5393 echo "$ac_t""no" 1>&6
5394 fi
5395
5396
5397 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5398 echo "configure:5399: checking for --enable-checklst" >&5
5399 no_cache=0
5400 # Check whether --enable-checklst or --disable-checklst was given.
5401 if test "${enable_checklst+set}" = set; then
5402 enableval="$enable_checklst"
5403
5404 if test "$enableval" = yes; then
5405 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5406 else
5407 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5408 fi
5409
5410 else
5411
5412 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5413 if test "x$LINE" != x ; then
5414 eval "DEFAULT_$LINE"
5415 else
5416 no_cache=1
5417 fi
5418
5419 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5420
5421 fi
5422
5423
5424 eval "$ac_cv_use_checklst"
5425 if test "$no_cache" != 1; then
5426 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5427 fi
5428
5429 if test "$wxUSE_CHECKLST" = yes; then
5430 echo "$ac_t""yes" 1>&6
5431 else
5432 echo "$ac_t""no" 1>&6
5433 fi
5434
5435
5436 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5437 echo "configure:5438: checking for --enable-choice" >&5
5438 no_cache=0
5439 # Check whether --enable-choice or --disable-choice was given.
5440 if test "${enable_choice+set}" = set; then
5441 enableval="$enable_choice"
5442
5443 if test "$enableval" = yes; then
5444 ac_cv_use_choice='wxUSE_CHOICE=yes'
5445 else
5446 ac_cv_use_choice='wxUSE_CHOICE=no'
5447 fi
5448
5449 else
5450
5451 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5452 if test "x$LINE" != x ; then
5453 eval "DEFAULT_$LINE"
5454 else
5455 no_cache=1
5456 fi
5457
5458 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5459
5460 fi
5461
5462
5463 eval "$ac_cv_use_choice"
5464 if test "$no_cache" != 1; then
5465 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5466 fi
5467
5468 if test "$wxUSE_CHOICE" = yes; then
5469 echo "$ac_t""yes" 1>&6
5470 else
5471 echo "$ac_t""no" 1>&6
5472 fi
5473
5474
5475 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5476 echo "configure:5477: checking for --enable-combobox" >&5
5477 no_cache=0
5478 # Check whether --enable-combobox or --disable-combobox was given.
5479 if test "${enable_combobox+set}" = set; then
5480 enableval="$enable_combobox"
5481
5482 if test "$enableval" = yes; then
5483 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5484 else
5485 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5486 fi
5487
5488 else
5489
5490 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5491 if test "x$LINE" != x ; then
5492 eval "DEFAULT_$LINE"
5493 else
5494 no_cache=1
5495 fi
5496
5497 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5498
5499 fi
5500
5501
5502 eval "$ac_cv_use_combobox"
5503 if test "$no_cache" != 1; then
5504 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5505 fi
5506
5507 if test "$wxUSE_COMBOBOX" = yes; then
5508 echo "$ac_t""yes" 1>&6
5509 else
5510 echo "$ac_t""no" 1>&6
5511 fi
5512
5513
5514 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5515 echo "configure:5516: checking for --enable-gauge" >&5
5516 no_cache=0
5517 # Check whether --enable-gauge or --disable-gauge was given.
5518 if test "${enable_gauge+set}" = set; then
5519 enableval="$enable_gauge"
5520
5521 if test "$enableval" = yes; then
5522 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5523 else
5524 ac_cv_use_gauge='wxUSE_GAUGE=no'
5525 fi
5526
5527 else
5528
5529 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5530 if test "x$LINE" != x ; then
5531 eval "DEFAULT_$LINE"
5532 else
5533 no_cache=1
5534 fi
5535
5536 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5537
5538 fi
5539
5540
5541 eval "$ac_cv_use_gauge"
5542 if test "$no_cache" != 1; then
5543 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5544 fi
5545
5546 if test "$wxUSE_GAUGE" = yes; then
5547 echo "$ac_t""yes" 1>&6
5548 else
5549 echo "$ac_t""no" 1>&6
5550 fi
5551
5552
5553 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5554 echo "configure:5555: checking for --enable-grid" >&5
5555 no_cache=0
5556 # Check whether --enable-grid or --disable-grid was given.
5557 if test "${enable_grid+set}" = set; then
5558 enableval="$enable_grid"
5559
5560 if test "$enableval" = yes; then
5561 ac_cv_use_grid='wxUSE_GRID=yes'
5562 else
5563 ac_cv_use_grid='wxUSE_GRID=no'
5564 fi
5565
5566 else
5567
5568 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5569 if test "x$LINE" != x ; then
5570 eval "DEFAULT_$LINE"
5571 else
5572 no_cache=1
5573 fi
5574
5575 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5576
5577 fi
5578
5579
5580 eval "$ac_cv_use_grid"
5581 if test "$no_cache" != 1; then
5582 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5583 fi
5584
5585 if test "$wxUSE_GRID" = yes; then
5586 echo "$ac_t""yes" 1>&6
5587 else
5588 echo "$ac_t""no" 1>&6
5589 fi
5590
5591
5592 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5593 echo "configure:5594: checking for --enable-newgrid" >&5
5594 no_cache=0
5595 # Check whether --enable-newgrid or --disable-newgrid was given.
5596 if test "${enable_newgrid+set}" = set; then
5597 enableval="$enable_newgrid"
5598
5599 if test "$enableval" = yes; then
5600 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5601 else
5602 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5603 fi
5604
5605 else
5606
5607 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5608 if test "x$LINE" != x ; then
5609 eval "DEFAULT_$LINE"
5610 else
5611 no_cache=1
5612 fi
5613
5614 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5615
5616 fi
5617
5618
5619 eval "$ac_cv_use_newgrid"
5620 if test "$no_cache" != 1; then
5621 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5622 fi
5623
5624 if test "$wxUSE_NEW_GRID" = yes; then
5625 echo "$ac_t""yes" 1>&6
5626 else
5627 echo "$ac_t""no" 1>&6
5628 fi
5629
5630
5631 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5632 echo "configure:5633: checking for --enable-imaglist" >&5
5633 no_cache=0
5634 # Check whether --enable-imaglist or --disable-imaglist was given.
5635 if test "${enable_imaglist+set}" = set; then
5636 enableval="$enable_imaglist"
5637
5638 if test "$enableval" = yes; then
5639 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5640 else
5641 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5642 fi
5643
5644 else
5645
5646 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5647 if test "x$LINE" != x ; then
5648 eval "DEFAULT_$LINE"
5649 else
5650 no_cache=1
5651 fi
5652
5653 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5654
5655 fi
5656
5657
5658 eval "$ac_cv_use_imaglist"
5659 if test "$no_cache" != 1; then
5660 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5661 fi
5662
5663 if test "$wxUSE_IMAGLIST" = yes; then
5664 echo "$ac_t""yes" 1>&6
5665 else
5666 echo "$ac_t""no" 1>&6
5667 fi
5668
5669
5670 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5671 echo "configure:5672: checking for --enable-listbox" >&5
5672 no_cache=0
5673 # Check whether --enable-listbox or --disable-listbox was given.
5674 if test "${enable_listbox+set}" = set; then
5675 enableval="$enable_listbox"
5676
5677 if test "$enableval" = yes; then
5678 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5679 else
5680 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5681 fi
5682
5683 else
5684
5685 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5686 if test "x$LINE" != x ; then
5687 eval "DEFAULT_$LINE"
5688 else
5689 no_cache=1
5690 fi
5691
5692 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5693
5694 fi
5695
5696
5697 eval "$ac_cv_use_listbox"
5698 if test "$no_cache" != 1; then
5699 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5700 fi
5701
5702 if test "$wxUSE_LISTBOX" = yes; then
5703 echo "$ac_t""yes" 1>&6
5704 else
5705 echo "$ac_t""no" 1>&6
5706 fi
5707
5708
5709 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5710 echo "configure:5711: checking for --enable-listctrl" >&5
5711 no_cache=0
5712 # Check whether --enable-listctrl or --disable-listctrl was given.
5713 if test "${enable_listctrl+set}" = set; then
5714 enableval="$enable_listctrl"
5715
5716 if test "$enableval" = yes; then
5717 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5718 else
5719 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5720 fi
5721
5722 else
5723
5724 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5725 if test "x$LINE" != x ; then
5726 eval "DEFAULT_$LINE"
5727 else
5728 no_cache=1
5729 fi
5730
5731 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5732
5733 fi
5734
5735
5736 eval "$ac_cv_use_listctrl"
5737 if test "$no_cache" != 1; then
5738 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5739 fi
5740
5741 if test "$wxUSE_LISTCTRL" = yes; then
5742 echo "$ac_t""yes" 1>&6
5743 else
5744 echo "$ac_t""no" 1>&6
5745 fi
5746
5747
5748 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5749 echo "configure:5750: checking for --enable-notebook" >&5
5750 no_cache=0
5751 # Check whether --enable-notebook or --disable-notebook was given.
5752 if test "${enable_notebook+set}" = set; then
5753 enableval="$enable_notebook"
5754
5755 if test "$enableval" = yes; then
5756 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5757 else
5758 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5759 fi
5760
5761 else
5762
5763 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5764 if test "x$LINE" != x ; then
5765 eval "DEFAULT_$LINE"
5766 else
5767 no_cache=1
5768 fi
5769
5770 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5771
5772 fi
5773
5774
5775 eval "$ac_cv_use_notebook"
5776 if test "$no_cache" != 1; then
5777 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5778 fi
5779
5780 if test "$wxUSE_NOTEBOOK" = yes; then
5781 echo "$ac_t""yes" 1>&6
5782 else
5783 echo "$ac_t""no" 1>&6
5784 fi
5785
5786
5787 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5788 echo "configure:5789: checking for --enable-propsheet" >&5
5789 no_cache=0
5790 # Check whether --enable-propsheet or --disable-propsheet was given.
5791 if test "${enable_propsheet+set}" = set; then
5792 enableval="$enable_propsheet"
5793
5794 if test "$enableval" = yes; then
5795 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5796 else
5797 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5798 fi
5799
5800 else
5801
5802 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5803 if test "x$LINE" != x ; then
5804 eval "DEFAULT_$LINE"
5805 else
5806 no_cache=1
5807 fi
5808
5809 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5810
5811 fi
5812
5813
5814 eval "$ac_cv_use_propsheet"
5815 if test "$no_cache" != 1; then
5816 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5817 fi
5818
5819 if test "$wxUSE_PROPSHEET" = yes; then
5820 echo "$ac_t""yes" 1>&6
5821 else
5822 echo "$ac_t""no" 1>&6
5823 fi
5824
5825
5826 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5827 echo "configure:5828: checking for --enable-radiobox" >&5
5828 no_cache=0
5829 # Check whether --enable-radiobox or --disable-radiobox was given.
5830 if test "${enable_radiobox+set}" = set; then
5831 enableval="$enable_radiobox"
5832
5833 if test "$enableval" = yes; then
5834 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5835 else
5836 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5837 fi
5838
5839 else
5840
5841 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5842 if test "x$LINE" != x ; then
5843 eval "DEFAULT_$LINE"
5844 else
5845 no_cache=1
5846 fi
5847
5848 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5849
5850 fi
5851
5852
5853 eval "$ac_cv_use_radiobox"
5854 if test "$no_cache" != 1; then
5855 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5856 fi
5857
5858 if test "$wxUSE_RADIOBOX" = yes; then
5859 echo "$ac_t""yes" 1>&6
5860 else
5861 echo "$ac_t""no" 1>&6
5862 fi
5863
5864
5865 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5866 echo "configure:5867: checking for --enable-radiobtn" >&5
5867 no_cache=0
5868 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5869 if test "${enable_radiobtn+set}" = set; then
5870 enableval="$enable_radiobtn"
5871
5872 if test "$enableval" = yes; then
5873 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5874 else
5875 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5876 fi
5877
5878 else
5879
5880 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5881 if test "x$LINE" != x ; then
5882 eval "DEFAULT_$LINE"
5883 else
5884 no_cache=1
5885 fi
5886
5887 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5888
5889 fi
5890
5891
5892 eval "$ac_cv_use_radiobtn"
5893 if test "$no_cache" != 1; then
5894 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5895 fi
5896
5897 if test "$wxUSE_RADIOBTN" = yes; then
5898 echo "$ac_t""yes" 1>&6
5899 else
5900 echo "$ac_t""no" 1>&6
5901 fi
5902
5903
5904 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5905 echo "configure:5906: checking for --enable-sash" >&5
5906 no_cache=0
5907 # Check whether --enable-sash or --disable-sash was given.
5908 if test "${enable_sash+set}" = set; then
5909 enableval="$enable_sash"
5910
5911 if test "$enableval" = yes; then
5912 ac_cv_use_sash='wxUSE_SASH=yes'
5913 else
5914 ac_cv_use_sash='wxUSE_SASH=no'
5915 fi
5916
5917 else
5918
5919 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5920 if test "x$LINE" != x ; then
5921 eval "DEFAULT_$LINE"
5922 else
5923 no_cache=1
5924 fi
5925
5926 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5927
5928 fi
5929
5930
5931 eval "$ac_cv_use_sash"
5932 if test "$no_cache" != 1; then
5933 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5934 fi
5935
5936 if test "$wxUSE_SASH" = yes; then
5937 echo "$ac_t""yes" 1>&6
5938 else
5939 echo "$ac_t""no" 1>&6
5940 fi
5941
5942
5943 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5944 echo "configure:5945: checking for --enable-scrollbar" >&5
5945 no_cache=0
5946 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5947 if test "${enable_scrollbar+set}" = set; then
5948 enableval="$enable_scrollbar"
5949
5950 if test "$enableval" = yes; then
5951 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5952 else
5953 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5954 fi
5955
5956 else
5957
5958 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5959 if test "x$LINE" != x ; then
5960 eval "DEFAULT_$LINE"
5961 else
5962 no_cache=1
5963 fi
5964
5965 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5966
5967 fi
5968
5969
5970 eval "$ac_cv_use_scrollbar"
5971 if test "$no_cache" != 1; then
5972 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5973 fi
5974
5975 if test "$wxUSE_SCROLLBAR" = yes; then
5976 echo "$ac_t""yes" 1>&6
5977 else
5978 echo "$ac_t""no" 1>&6
5979 fi
5980
5981
5982 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5983 echo "configure:5984: checking for --enable-slider" >&5
5984 no_cache=0
5985 # Check whether --enable-slider or --disable-slider was given.
5986 if test "${enable_slider+set}" = set; then
5987 enableval="$enable_slider"
5988
5989 if test "$enableval" = yes; then
5990 ac_cv_use_slider='wxUSE_SLIDER=yes'
5991 else
5992 ac_cv_use_slider='wxUSE_SLIDER=no'
5993 fi
5994
5995 else
5996
5997 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5998 if test "x$LINE" != x ; then
5999 eval "DEFAULT_$LINE"
6000 else
6001 no_cache=1
6002 fi
6003
6004 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6005
6006 fi
6007
6008
6009 eval "$ac_cv_use_slider"
6010 if test "$no_cache" != 1; then
6011 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6012 fi
6013
6014 if test "$wxUSE_SLIDER" = yes; then
6015 echo "$ac_t""yes" 1>&6
6016 else
6017 echo "$ac_t""no" 1>&6
6018 fi
6019
6020
6021 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6022 echo "configure:6023: checking for --enable-spinbtn" >&5
6023 no_cache=0
6024 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6025 if test "${enable_spinbtn+set}" = set; then
6026 enableval="$enable_spinbtn"
6027
6028 if test "$enableval" = yes; then
6029 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6030 else
6031 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6032 fi
6033
6034 else
6035
6036 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6037 if test "x$LINE" != x ; then
6038 eval "DEFAULT_$LINE"
6039 else
6040 no_cache=1
6041 fi
6042
6043 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6044
6045 fi
6046
6047
6048 eval "$ac_cv_use_spinbtn"
6049 if test "$no_cache" != 1; then
6050 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6051 fi
6052
6053 if test "$wxUSE_SPINBTN" = yes; then
6054 echo "$ac_t""yes" 1>&6
6055 else
6056 echo "$ac_t""no" 1>&6
6057 fi
6058
6059
6060 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6061 echo "configure:6062: checking for --enable-spinctrl" >&5
6062 no_cache=0
6063 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6064 if test "${enable_spinctrl+set}" = set; then
6065 enableval="$enable_spinctrl"
6066
6067 if test "$enableval" = yes; then
6068 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6069 else
6070 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6071 fi
6072
6073 else
6074
6075 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6076 if test "x$LINE" != x ; then
6077 eval "DEFAULT_$LINE"
6078 else
6079 no_cache=1
6080 fi
6081
6082 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6083
6084 fi
6085
6086
6087 eval "$ac_cv_use_spinctrl"
6088 if test "$no_cache" != 1; then
6089 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6090 fi
6091
6092 if test "$wxUSE_SPINCTRL" = yes; then
6093 echo "$ac_t""yes" 1>&6
6094 else
6095 echo "$ac_t""no" 1>&6
6096 fi
6097
6098
6099 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6100 echo "configure:6101: checking for --enable-splitter" >&5
6101 no_cache=0
6102 # Check whether --enable-splitter or --disable-splitter was given.
6103 if test "${enable_splitter+set}" = set; then
6104 enableval="$enable_splitter"
6105
6106 if test "$enableval" = yes; then
6107 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6108 else
6109 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6110 fi
6111
6112 else
6113
6114 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6115 if test "x$LINE" != x ; then
6116 eval "DEFAULT_$LINE"
6117 else
6118 no_cache=1
6119 fi
6120
6121 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6122
6123 fi
6124
6125
6126 eval "$ac_cv_use_splitter"
6127 if test "$no_cache" != 1; then
6128 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6129 fi
6130
6131 if test "$wxUSE_SPLITTER" = yes; then
6132 echo "$ac_t""yes" 1>&6
6133 else
6134 echo "$ac_t""no" 1>&6
6135 fi
6136
6137
6138 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6139 echo "configure:6140: checking for --enable-statbmp" >&5
6140 no_cache=0
6141 # Check whether --enable-statbmp or --disable-statbmp was given.
6142 if test "${enable_statbmp+set}" = set; then
6143 enableval="$enable_statbmp"
6144
6145 if test "$enableval" = yes; then
6146 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6147 else
6148 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6149 fi
6150
6151 else
6152
6153 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6154 if test "x$LINE" != x ; then
6155 eval "DEFAULT_$LINE"
6156 else
6157 no_cache=1
6158 fi
6159
6160 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6161
6162 fi
6163
6164
6165 eval "$ac_cv_use_statbmp"
6166 if test "$no_cache" != 1; then
6167 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6168 fi
6169
6170 if test "$wxUSE_STATBMP" = yes; then
6171 echo "$ac_t""yes" 1>&6
6172 else
6173 echo "$ac_t""no" 1>&6
6174 fi
6175
6176
6177 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6178 echo "configure:6179: checking for --enable-statbox" >&5
6179 no_cache=0
6180 # Check whether --enable-statbox or --disable-statbox was given.
6181 if test "${enable_statbox+set}" = set; then
6182 enableval="$enable_statbox"
6183
6184 if test "$enableval" = yes; then
6185 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6186 else
6187 ac_cv_use_statbox='wxUSE_STATBOX=no'
6188 fi
6189
6190 else
6191
6192 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6193 if test "x$LINE" != x ; then
6194 eval "DEFAULT_$LINE"
6195 else
6196 no_cache=1
6197 fi
6198
6199 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6200
6201 fi
6202
6203
6204 eval "$ac_cv_use_statbox"
6205 if test "$no_cache" != 1; then
6206 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6207 fi
6208
6209 if test "$wxUSE_STATBOX" = yes; then
6210 echo "$ac_t""yes" 1>&6
6211 else
6212 echo "$ac_t""no" 1>&6
6213 fi
6214
6215
6216 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6217 echo "configure:6218: checking for --enable-statline" >&5
6218 no_cache=0
6219 # Check whether --enable-statline or --disable-statline was given.
6220 if test "${enable_statline+set}" = set; then
6221 enableval="$enable_statline"
6222
6223 if test "$enableval" = yes; then
6224 ac_cv_use_statline='wxUSE_STATLINE=yes'
6225 else
6226 ac_cv_use_statline='wxUSE_STATLINE=no'
6227 fi
6228
6229 else
6230
6231 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6232 if test "x$LINE" != x ; then
6233 eval "DEFAULT_$LINE"
6234 else
6235 no_cache=1
6236 fi
6237
6238 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6239
6240 fi
6241
6242
6243 eval "$ac_cv_use_statline"
6244 if test "$no_cache" != 1; then
6245 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6246 fi
6247
6248 if test "$wxUSE_STATLINE" = yes; then
6249 echo "$ac_t""yes" 1>&6
6250 else
6251 echo "$ac_t""no" 1>&6
6252 fi
6253
6254
6255 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6256 echo "configure:6257: checking for --enable-stattext" >&5
6257 no_cache=0
6258 # Check whether --enable-stattext or --disable-stattext was given.
6259 if test "${enable_stattext+set}" = set; then
6260 enableval="$enable_stattext"
6261
6262 if test "$enableval" = yes; then
6263 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6264 else
6265 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6266 fi
6267
6268 else
6269
6270 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6271 if test "x$LINE" != x ; then
6272 eval "DEFAULT_$LINE"
6273 else
6274 no_cache=1
6275 fi
6276
6277 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6278
6279 fi
6280
6281
6282 eval "$ac_cv_use_stattext"
6283 if test "$no_cache" != 1; then
6284 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6285 fi
6286
6287 if test "$wxUSE_STATTEXT" = yes; then
6288 echo "$ac_t""yes" 1>&6
6289 else
6290 echo "$ac_t""no" 1>&6
6291 fi
6292
6293
6294 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6295 echo "configure:6296: checking for --enable-statusbar" >&5
6296 no_cache=0
6297 # Check whether --enable-statusbar or --disable-statusbar was given.
6298 if test "${enable_statusbar+set}" = set; then
6299 enableval="$enable_statusbar"
6300
6301 if test "$enableval" = yes; then
6302 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6303 else
6304 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6305 fi
6306
6307 else
6308
6309 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6310 if test "x$LINE" != x ; then
6311 eval "DEFAULT_$LINE"
6312 else
6313 no_cache=1
6314 fi
6315
6316 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6317
6318 fi
6319
6320
6321 eval "$ac_cv_use_statusbar"
6322 if test "$no_cache" != 1; then
6323 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6324 fi
6325
6326 if test "$wxUSE_STATUSBAR" = yes; then
6327 echo "$ac_t""yes" 1>&6
6328 else
6329 echo "$ac_t""no" 1>&6
6330 fi
6331
6332
6333 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6334 echo "configure:6335: checking for --enable-tabdialog" >&5
6335 no_cache=0
6336 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6337 if test "${enable_tabdialog+set}" = set; then
6338 enableval="$enable_tabdialog"
6339
6340 if test "$enableval" = yes; then
6341 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6342 else
6343 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6344 fi
6345
6346 else
6347
6348 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6349 if test "x$LINE" != x ; then
6350 eval "DEFAULT_$LINE"
6351 else
6352 no_cache=1
6353 fi
6354
6355 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6356
6357 fi
6358
6359
6360 eval "$ac_cv_use_tabdialog"
6361 if test "$no_cache" != 1; then
6362 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6363 fi
6364
6365 if test "$wxUSE_TABDIALOG" = yes; then
6366 echo "$ac_t""yes" 1>&6
6367 else
6368 echo "$ac_t""no" 1>&6
6369 fi
6370
6371
6372 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6373 echo "configure:6374: checking for --enable-textctrl" >&5
6374 no_cache=0
6375 # Check whether --enable-textctrl or --disable-textctrl was given.
6376 if test "${enable_textctrl+set}" = set; then
6377 enableval="$enable_textctrl"
6378
6379 if test "$enableval" = yes; then
6380 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6381 else
6382 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6383 fi
6384
6385 else
6386
6387 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6388 if test "x$LINE" != x ; then
6389 eval "DEFAULT_$LINE"
6390 else
6391 no_cache=1
6392 fi
6393
6394 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6395
6396 fi
6397
6398
6399 eval "$ac_cv_use_textctrl"
6400 if test "$no_cache" != 1; then
6401 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6402 fi
6403
6404 if test "$wxUSE_TEXTCTRL" = yes; then
6405 echo "$ac_t""yes" 1>&6
6406 else
6407 echo "$ac_t""no" 1>&6
6408 fi
6409
6410
6411 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6412 echo "configure:6413: checking for --enable-togglebtn" >&5
6413 no_cache=0
6414 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6415 if test "${enable_togglebtn+set}" = set; then
6416 enableval="$enable_togglebtn"
6417
6418 if test "$enableval" = yes; then
6419 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6420 else
6421 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6422 fi
6423
6424 else
6425
6426 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6427 if test "x$LINE" != x ; then
6428 eval "DEFAULT_$LINE"
6429 else
6430 no_cache=1
6431 fi
6432
6433 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6434
6435 fi
6436
6437
6438 eval "$ac_cv_use_togglebtn"
6439 if test "$no_cache" != 1; then
6440 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6441 fi
6442
6443 if test "$wxUSE_TOGGLEBTN" = yes; then
6444 echo "$ac_t""yes" 1>&6
6445 else
6446 echo "$ac_t""no" 1>&6
6447 fi
6448
6449
6450 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6451 echo "configure:6452: checking for --enable-toolbar" >&5
6452 no_cache=0
6453 # Check whether --enable-toolbar or --disable-toolbar was given.
6454 if test "${enable_toolbar+set}" = set; then
6455 enableval="$enable_toolbar"
6456
6457 if test "$enableval" = yes; then
6458 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6459 else
6460 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6461 fi
6462
6463 else
6464
6465 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6466 if test "x$LINE" != x ; then
6467 eval "DEFAULT_$LINE"
6468 else
6469 no_cache=1
6470 fi
6471
6472 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6473
6474 fi
6475
6476
6477 eval "$ac_cv_use_toolbar"
6478 if test "$no_cache" != 1; then
6479 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6480 fi
6481
6482 if test "$wxUSE_TOOLBAR" = yes; then
6483 echo "$ac_t""yes" 1>&6
6484 else
6485 echo "$ac_t""no" 1>&6
6486 fi
6487
6488
6489 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6490 echo "configure:6491: checking for --enable-tbarnative" >&5
6491 no_cache=0
6492 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6493 if test "${enable_tbarnative+set}" = set; then
6494 enableval="$enable_tbarnative"
6495
6496 if test "$enableval" = yes; then
6497 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6498 else
6499 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6500 fi
6501
6502 else
6503
6504 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6505 if test "x$LINE" != x ; then
6506 eval "DEFAULT_$LINE"
6507 else
6508 no_cache=1
6509 fi
6510
6511 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6512
6513 fi
6514
6515
6516 eval "$ac_cv_use_tbarnative"
6517 if test "$no_cache" != 1; then
6518 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6519 fi
6520
6521 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6522 echo "$ac_t""yes" 1>&6
6523 else
6524 echo "$ac_t""no" 1>&6
6525 fi
6526
6527
6528 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6529 echo "configure:6530: checking for --enable-tbarsmpl" >&5
6530 no_cache=0
6531 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6532 if test "${enable_tbarsmpl+set}" = set; then
6533 enableval="$enable_tbarsmpl"
6534
6535 if test "$enableval" = yes; then
6536 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6537 else
6538 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6539 fi
6540
6541 else
6542
6543 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6544 if test "x$LINE" != x ; then
6545 eval "DEFAULT_$LINE"
6546 else
6547 no_cache=1
6548 fi
6549
6550 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6551
6552 fi
6553
6554
6555 eval "$ac_cv_use_tbarsmpl"
6556 if test "$no_cache" != 1; then
6557 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6558 fi
6559
6560 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6561 echo "$ac_t""yes" 1>&6
6562 else
6563 echo "$ac_t""no" 1>&6
6564 fi
6565
6566
6567 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6568 echo "configure:6569: checking for --enable-treectrl" >&5
6569 no_cache=0
6570 # Check whether --enable-treectrl or --disable-treectrl was given.
6571 if test "${enable_treectrl+set}" = set; then
6572 enableval="$enable_treectrl"
6573
6574 if test "$enableval" = yes; then
6575 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6576 else
6577 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6578 fi
6579
6580 else
6581
6582 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6583 if test "x$LINE" != x ; then
6584 eval "DEFAULT_$LINE"
6585 else
6586 no_cache=1
6587 fi
6588
6589 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6590
6591 fi
6592
6593
6594 eval "$ac_cv_use_treectrl"
6595 if test "$no_cache" != 1; then
6596 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6597 fi
6598
6599 if test "$wxUSE_TREECTRL" = yes; then
6600 echo "$ac_t""yes" 1>&6
6601 else
6602 echo "$ac_t""no" 1>&6
6603 fi
6604
6605
6606 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6607 echo "configure:6608: checking for --enable-popupwin" >&5
6608 no_cache=0
6609 # Check whether --enable-popupwin or --disable-popupwin was given.
6610 if test "${enable_popupwin+set}" = set; then
6611 enableval="$enable_popupwin"
6612
6613 if test "$enableval" = yes; then
6614 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6615 else
6616 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6617 fi
6618
6619 else
6620
6621 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6622 if test "x$LINE" != x ; then
6623 eval "DEFAULT_$LINE"
6624 else
6625 no_cache=1
6626 fi
6627
6628 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6629
6630 fi
6631
6632
6633 eval "$ac_cv_use_popupwin"
6634 if test "$no_cache" != 1; then
6635 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6636 fi
6637
6638 if test "$wxUSE_POPUPWIN" = yes; then
6639 echo "$ac_t""yes" 1>&6
6640 else
6641 echo "$ac_t""no" 1>&6
6642 fi
6643
6644
6645
6646
6647 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6648 echo "configure:6649: checking for --enable-commondlg" >&5
6649 no_cache=0
6650 # Check whether --enable-commondlg or --disable-commondlg was given.
6651 if test "${enable_commondlg+set}" = set; then
6652 enableval="$enable_commondlg"
6653
6654 if test "$enableval" = yes; then
6655 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6656 else
6657 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6658 fi
6659
6660 else
6661
6662 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6663 if test "x$LINE" != x ; then
6664 eval "DEFAULT_$LINE"
6665 else
6666 no_cache=1
6667 fi
6668
6669 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6670
6671 fi
6672
6673
6674 eval "$ac_cv_use_commondlg"
6675 if test "$no_cache" != 1; then
6676 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6677 fi
6678
6679 if test "$wxUSE_COMMONDLGS" = yes; then
6680 echo "$ac_t""yes" 1>&6
6681 else
6682 echo "$ac_t""no" 1>&6
6683 fi
6684
6685
6686 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6687 echo "configure:6688: checking for --enable-choicedlg" >&5
6688 no_cache=0
6689 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6690 if test "${enable_choicedlg+set}" = set; then
6691 enableval="$enable_choicedlg"
6692
6693 if test "$enableval" = yes; then
6694 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6695 else
6696 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6697 fi
6698
6699 else
6700
6701 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6702 if test "x$LINE" != x ; then
6703 eval "DEFAULT_$LINE"
6704 else
6705 no_cache=1
6706 fi
6707
6708 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6709
6710 fi
6711
6712
6713 eval "$ac_cv_use_choicedlg"
6714 if test "$no_cache" != 1; then
6715 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6716 fi
6717
6718 if test "$wxUSE_CHOICEDLG" = yes; then
6719 echo "$ac_t""yes" 1>&6
6720 else
6721 echo "$ac_t""no" 1>&6
6722 fi
6723
6724
6725 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6726 echo "configure:6727: checking for --enable-coldlg" >&5
6727 no_cache=0
6728 # Check whether --enable-coldlg or --disable-coldlg was given.
6729 if test "${enable_coldlg+set}" = set; then
6730 enableval="$enable_coldlg"
6731
6732 if test "$enableval" = yes; then
6733 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6734 else
6735 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6736 fi
6737
6738 else
6739
6740 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6741 if test "x$LINE" != x ; then
6742 eval "DEFAULT_$LINE"
6743 else
6744 no_cache=1
6745 fi
6746
6747 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6748
6749 fi
6750
6751
6752 eval "$ac_cv_use_coldlg"
6753 if test "$no_cache" != 1; then
6754 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6755 fi
6756
6757 if test "$wxUSE_COLOURDLG" = yes; then
6758 echo "$ac_t""yes" 1>&6
6759 else
6760 echo "$ac_t""no" 1>&6
6761 fi
6762
6763
6764 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6765 echo "configure:6766: checking for --enable-filedlg" >&5
6766 no_cache=0
6767 # Check whether --enable-filedlg or --disable-filedlg was given.
6768 if test "${enable_filedlg+set}" = set; then
6769 enableval="$enable_filedlg"
6770
6771 if test "$enableval" = yes; then
6772 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6773 else
6774 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6775 fi
6776
6777 else
6778
6779 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6780 if test "x$LINE" != x ; then
6781 eval "DEFAULT_$LINE"
6782 else
6783 no_cache=1
6784 fi
6785
6786 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6787
6788 fi
6789
6790
6791 eval "$ac_cv_use_filedlg"
6792 if test "$no_cache" != 1; then
6793 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6794 fi
6795
6796 if test "$wxUSE_FILEDLG" = yes; then
6797 echo "$ac_t""yes" 1>&6
6798 else
6799 echo "$ac_t""no" 1>&6
6800 fi
6801
6802
6803 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6804 echo "configure:6805: checking for --enable-filedlg" >&5
6805 no_cache=0
6806 # Check whether --enable-filedlg or --disable-filedlg was given.
6807 if test "${enable_filedlg+set}" = set; then
6808 enableval="$enable_filedlg"
6809
6810 if test "$enableval" = yes; then
6811 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6812 else
6813 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6814 fi
6815
6816 else
6817
6818 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6819 if test "x$LINE" != x ; then
6820 eval "DEFAULT_$LINE"
6821 else
6822 no_cache=1
6823 fi
6824
6825 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6826
6827 fi
6828
6829
6830 eval "$ac_cv_use_filedlg"
6831 if test "$no_cache" != 1; then
6832 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6833 fi
6834
6835 if test "$wxUSE_FINDREPLDLG" = yes; then
6836 echo "$ac_t""yes" 1>&6
6837 else
6838 echo "$ac_t""no" 1>&6
6839 fi
6840
6841
6842 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6843 echo "configure:6844: checking for --enable-fontdlg" >&5
6844 no_cache=0
6845 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6846 if test "${enable_fontdlg+set}" = set; then
6847 enableval="$enable_fontdlg"
6848
6849 if test "$enableval" = yes; then
6850 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6851 else
6852 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6853 fi
6854
6855 else
6856
6857 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6858 if test "x$LINE" != x ; then
6859 eval "DEFAULT_$LINE"
6860 else
6861 no_cache=1
6862 fi
6863
6864 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6865
6866 fi
6867
6868
6869 eval "$ac_cv_use_fontdlg"
6870 if test "$no_cache" != 1; then
6871 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6872 fi
6873
6874 if test "$wxUSE_FONTDLG" = yes; then
6875 echo "$ac_t""yes" 1>&6
6876 else
6877 echo "$ac_t""no" 1>&6
6878 fi
6879
6880
6881 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6882 echo "configure:6883: checking for --enable-dirdlg" >&5
6883 no_cache=0
6884 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6885 if test "${enable_dirdlg+set}" = set; then
6886 enableval="$enable_dirdlg"
6887
6888 if test "$enableval" = yes; then
6889 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6890 else
6891 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6892 fi
6893
6894 else
6895
6896 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6897 if test "x$LINE" != x ; then
6898 eval "DEFAULT_$LINE"
6899 else
6900 no_cache=1
6901 fi
6902
6903 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6904
6905 fi
6906
6907
6908 eval "$ac_cv_use_dirdlg"
6909 if test "$no_cache" != 1; then
6910 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6911 fi
6912
6913 if test "$wxUSE_DIRDLG" = yes; then
6914 echo "$ac_t""yes" 1>&6
6915 else
6916 echo "$ac_t""no" 1>&6
6917 fi
6918
6919
6920 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6921 echo "configure:6922: checking for --enable-msgdlg" >&5
6922 no_cache=0
6923 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6924 if test "${enable_msgdlg+set}" = set; then
6925 enableval="$enable_msgdlg"
6926
6927 if test "$enableval" = yes; then
6928 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6929 else
6930 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6931 fi
6932
6933 else
6934
6935 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6936 if test "x$LINE" != x ; then
6937 eval "DEFAULT_$LINE"
6938 else
6939 no_cache=1
6940 fi
6941
6942 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6943
6944 fi
6945
6946
6947 eval "$ac_cv_use_msgdlg"
6948 if test "$no_cache" != 1; then
6949 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6950 fi
6951
6952 if test "$wxUSE_MSGDLG" = yes; then
6953 echo "$ac_t""yes" 1>&6
6954 else
6955 echo "$ac_t""no" 1>&6
6956 fi
6957
6958
6959 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6960 echo "configure:6961: checking for --enable-numberdlg" >&5
6961 no_cache=0
6962 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6963 if test "${enable_numberdlg+set}" = set; then
6964 enableval="$enable_numberdlg"
6965
6966 if test "$enableval" = yes; then
6967 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6968 else
6969 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6970 fi
6971
6972 else
6973
6974 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6975 if test "x$LINE" != x ; then
6976 eval "DEFAULT_$LINE"
6977 else
6978 no_cache=1
6979 fi
6980
6981 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6982
6983 fi
6984
6985
6986 eval "$ac_cv_use_numberdlg"
6987 if test "$no_cache" != 1; then
6988 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6989 fi
6990
6991 if test "$wxUSE_NUMBERDLG" = yes; then
6992 echo "$ac_t""yes" 1>&6
6993 else
6994 echo "$ac_t""no" 1>&6
6995 fi
6996
6997
6998 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
6999 echo "configure:7000: checking for --enable-splash" >&5
7000 no_cache=0
7001 # Check whether --enable-splash or --disable-splash was given.
7002 if test "${enable_splash+set}" = set; then
7003 enableval="$enable_splash"
7004
7005 if test "$enableval" = yes; then
7006 ac_cv_use_splash='wxUSE_SPLASH=yes'
7007 else
7008 ac_cv_use_splash='wxUSE_SPLASH=no'
7009 fi
7010
7011 else
7012
7013 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7014 if test "x$LINE" != x ; then
7015 eval "DEFAULT_$LINE"
7016 else
7017 no_cache=1
7018 fi
7019
7020 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7021
7022 fi
7023
7024
7025 eval "$ac_cv_use_splash"
7026 if test "$no_cache" != 1; then
7027 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7028 fi
7029
7030 if test "$wxUSE_SPLASH" = yes; then
7031 echo "$ac_t""yes" 1>&6
7032 else
7033 echo "$ac_t""no" 1>&6
7034 fi
7035
7036
7037 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7038 echo "configure:7039: checking for --enable-textdlg" >&5
7039 no_cache=0
7040 # Check whether --enable-textdlg or --disable-textdlg was given.
7041 if test "${enable_textdlg+set}" = set; then
7042 enableval="$enable_textdlg"
7043
7044 if test "$enableval" = yes; then
7045 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7046 else
7047 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7048 fi
7049
7050 else
7051
7052 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7053 if test "x$LINE" != x ; then
7054 eval "DEFAULT_$LINE"
7055 else
7056 no_cache=1
7057 fi
7058
7059 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7060
7061 fi
7062
7063
7064 eval "$ac_cv_use_textdlg"
7065 if test "$no_cache" != 1; then
7066 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7067 fi
7068
7069 if test "$wxUSE_TEXTDLG" = yes; then
7070 echo "$ac_t""yes" 1>&6
7071 else
7072 echo "$ac_t""no" 1>&6
7073 fi
7074
7075
7076 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7077 echo "configure:7078: checking for --enable-tipdlg" >&5
7078 no_cache=0
7079 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7080 if test "${enable_tipdlg+set}" = set; then
7081 enableval="$enable_tipdlg"
7082
7083 if test "$enableval" = yes; then
7084 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7085 else
7086 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7087 fi
7088
7089 else
7090
7091 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7092 if test "x$LINE" != x ; then
7093 eval "DEFAULT_$LINE"
7094 else
7095 no_cache=1
7096 fi
7097
7098 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7099
7100 fi
7101
7102
7103 eval "$ac_cv_use_tipdlg"
7104 if test "$no_cache" != 1; then
7105 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7106 fi
7107
7108 if test "$wxUSE_STARTUP_TIPS" = yes; then
7109 echo "$ac_t""yes" 1>&6
7110 else
7111 echo "$ac_t""no" 1>&6
7112 fi
7113
7114
7115 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7116 echo "configure:7117: checking for --enable-progressdlg" >&5
7117 no_cache=0
7118 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7119 if test "${enable_progressdlg+set}" = set; then
7120 enableval="$enable_progressdlg"
7121
7122 if test "$enableval" = yes; then
7123 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7124 else
7125 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7126 fi
7127
7128 else
7129
7130 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7131 if test "x$LINE" != x ; then
7132 eval "DEFAULT_$LINE"
7133 else
7134 no_cache=1
7135 fi
7136
7137 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7138
7139 fi
7140
7141
7142 eval "$ac_cv_use_progressdlg"
7143 if test "$no_cache" != 1; then
7144 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7145 fi
7146
7147 if test "$wxUSE_PROGRESSDLG" = yes; then
7148 echo "$ac_t""yes" 1>&6
7149 else
7150 echo "$ac_t""no" 1>&6
7151 fi
7152
7153
7154 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7155 echo "configure:7156: checking for --enable-wizarddlg" >&5
7156 no_cache=0
7157 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7158 if test "${enable_wizarddlg+set}" = set; then
7159 enableval="$enable_wizarddlg"
7160
7161 if test "$enableval" = yes; then
7162 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7163 else
7164 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7165 fi
7166
7167 else
7168
7169 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7170 if test "x$LINE" != x ; then
7171 eval "DEFAULT_$LINE"
7172 else
7173 no_cache=1
7174 fi
7175
7176 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7177
7178 fi
7179
7180
7181 eval "$ac_cv_use_wizarddlg"
7182 if test "$no_cache" != 1; then
7183 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7184 fi
7185
7186 if test "$wxUSE_WIZARDDLG" = yes; then
7187 echo "$ac_t""yes" 1>&6
7188 else
7189 echo "$ac_t""no" 1>&6
7190 fi
7191
7192
7193
7194
7195 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7196 echo "configure:7197: checking for --enable-menus" >&5
7197 no_cache=0
7198 # Check whether --enable-menus or --disable-menus was given.
7199 if test "${enable_menus+set}" = set; then
7200 enableval="$enable_menus"
7201
7202 if test "$enableval" = yes; then
7203 ac_cv_use_menus='wxUSE_MENUS=yes'
7204 else
7205 ac_cv_use_menus='wxUSE_MENUS=no'
7206 fi
7207
7208 else
7209
7210 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7211 if test "x$LINE" != x ; then
7212 eval "DEFAULT_$LINE"
7213 else
7214 no_cache=1
7215 fi
7216
7217 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7218
7219 fi
7220
7221
7222 eval "$ac_cv_use_menus"
7223 if test "$no_cache" != 1; then
7224 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7225 fi
7226
7227 if test "$wxUSE_MENUS" = yes; then
7228 echo "$ac_t""yes" 1>&6
7229 else
7230 echo "$ac_t""no" 1>&6
7231 fi
7232
7233
7234 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7235 echo "configure:7236: checking for --enable-miniframe" >&5
7236 no_cache=0
7237 # Check whether --enable-miniframe or --disable-miniframe was given.
7238 if test "${enable_miniframe+set}" = set; then
7239 enableval="$enable_miniframe"
7240
7241 if test "$enableval" = yes; then
7242 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7243 else
7244 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7245 fi
7246
7247 else
7248
7249 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7250 if test "x$LINE" != x ; then
7251 eval "DEFAULT_$LINE"
7252 else
7253 no_cache=1
7254 fi
7255
7256 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7257
7258 fi
7259
7260
7261 eval "$ac_cv_use_miniframe"
7262 if test "$no_cache" != 1; then
7263 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7264 fi
7265
7266 if test "$wxUSE_MINIFRAME" = yes; then
7267 echo "$ac_t""yes" 1>&6
7268 else
7269 echo "$ac_t""no" 1>&6
7270 fi
7271
7272
7273 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7274 echo "configure:7275: checking for --enable-tooltips" >&5
7275 no_cache=0
7276 # Check whether --enable-tooltips or --disable-tooltips was given.
7277 if test "${enable_tooltips+set}" = set; then
7278 enableval="$enable_tooltips"
7279
7280 if test "$enableval" = yes; then
7281 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7282 else
7283 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7284 fi
7285
7286 else
7287
7288 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7289 if test "x$LINE" != x ; then
7290 eval "DEFAULT_$LINE"
7291 else
7292 no_cache=1
7293 fi
7294
7295 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7296
7297 fi
7298
7299
7300 eval "$ac_cv_use_tooltips"
7301 if test "$no_cache" != 1; then
7302 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7303 fi
7304
7305 if test "$wxUSE_TOOLTIPS" = yes; then
7306 echo "$ac_t""yes" 1>&6
7307 else
7308 echo "$ac_t""no" 1>&6
7309 fi
7310
7311
7312 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7313 echo "configure:7314: checking for --enable-splines" >&5
7314 no_cache=0
7315 # Check whether --enable-splines or --disable-splines was given.
7316 if test "${enable_splines+set}" = set; then
7317 enableval="$enable_splines"
7318
7319 if test "$enableval" = yes; then
7320 ac_cv_use_splines='wxUSE_SPLINES=yes'
7321 else
7322 ac_cv_use_splines='wxUSE_SPLINES=no'
7323 fi
7324
7325 else
7326
7327 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7328 if test "x$LINE" != x ; then
7329 eval "DEFAULT_$LINE"
7330 else
7331 no_cache=1
7332 fi
7333
7334 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7335
7336 fi
7337
7338
7339 eval "$ac_cv_use_splines"
7340 if test "$no_cache" != 1; then
7341 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7342 fi
7343
7344 if test "$wxUSE_SPLINES" = yes; then
7345 echo "$ac_t""yes" 1>&6
7346 else
7347 echo "$ac_t""no" 1>&6
7348 fi
7349
7350
7351 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7352 echo "configure:7353: checking for --enable-validators" >&5
7353 no_cache=0
7354 # Check whether --enable-validators or --disable-validators was given.
7355 if test "${enable_validators+set}" = set; then
7356 enableval="$enable_validators"
7357
7358 if test "$enableval" = yes; then
7359 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7360 else
7361 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7362 fi
7363
7364 else
7365
7366 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7367 if test "x$LINE" != x ; then
7368 eval "DEFAULT_$LINE"
7369 else
7370 no_cache=1
7371 fi
7372
7373 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7374
7375 fi
7376
7377
7378 eval "$ac_cv_use_validators"
7379 if test "$no_cache" != 1; then
7380 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7381 fi
7382
7383 if test "$wxUSE_VALIDATORS" = yes; then
7384 echo "$ac_t""yes" 1>&6
7385 else
7386 echo "$ac_t""no" 1>&6
7387 fi
7388
7389
7390 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7391 echo "configure:7392: checking for --enable-busyinfo" >&5
7392 no_cache=0
7393 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7394 if test "${enable_busyinfo+set}" = set; then
7395 enableval="$enable_busyinfo"
7396
7397 if test "$enableval" = yes; then
7398 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7399 else
7400 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7401 fi
7402
7403 else
7404
7405 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7406 if test "x$LINE" != x ; then
7407 eval "DEFAULT_$LINE"
7408 else
7409 no_cache=1
7410 fi
7411
7412 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7413
7414 fi
7415
7416
7417 eval "$ac_cv_use_busyinfo"
7418 if test "$no_cache" != 1; then
7419 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7420 fi
7421
7422 if test "$wxUSE_BUSYINFO" = yes; then
7423 echo "$ac_t""yes" 1>&6
7424 else
7425 echo "$ac_t""no" 1>&6
7426 fi
7427
7428
7429 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7430 echo "configure:7431: checking for --enable-joystick" >&5
7431 no_cache=0
7432 # Check whether --enable-joystick or --disable-joystick was given.
7433 if test "${enable_joystick+set}" = set; then
7434 enableval="$enable_joystick"
7435
7436 if test "$enableval" = yes; then
7437 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7438 else
7439 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7440 fi
7441
7442 else
7443
7444 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7445 if test "x$LINE" != x ; then
7446 eval "DEFAULT_$LINE"
7447 else
7448 no_cache=1
7449 fi
7450
7451 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7452
7453 fi
7454
7455
7456 eval "$ac_cv_use_joystick"
7457 if test "$no_cache" != 1; then
7458 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7459 fi
7460
7461 if test "$wxUSE_JOYSTICK" = yes; then
7462 echo "$ac_t""yes" 1>&6
7463 else
7464 echo "$ac_t""no" 1>&6
7465 fi
7466
7467
7468 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7469 echo "configure:7470: checking for --enable-metafile" >&5
7470 no_cache=0
7471 # Check whether --enable-metafile or --disable-metafile was given.
7472 if test "${enable_metafile+set}" = set; then
7473 enableval="$enable_metafile"
7474
7475 if test "$enableval" = yes; then
7476 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7477 else
7478 ac_cv_use_metafile='wxUSE_METAFILE=no'
7479 fi
7480
7481 else
7482
7483 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7484 if test "x$LINE" != x ; then
7485 eval "DEFAULT_$LINE"
7486 else
7487 no_cache=1
7488 fi
7489
7490 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7491
7492 fi
7493
7494
7495 eval "$ac_cv_use_metafile"
7496 if test "$no_cache" != 1; then
7497 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7498 fi
7499
7500 if test "$wxUSE_METAFILE" = yes; then
7501 echo "$ac_t""yes" 1>&6
7502 else
7503 echo "$ac_t""no" 1>&6
7504 fi
7505
7506
7507 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7508 echo "configure:7509: checking for --enable-dragimage" >&5
7509 no_cache=0
7510 # Check whether --enable-dragimage or --disable-dragimage was given.
7511 if test "${enable_dragimage+set}" = set; then
7512 enableval="$enable_dragimage"
7513
7514 if test "$enableval" = yes; then
7515 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7516 else
7517 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7518 fi
7519
7520 else
7521
7522 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7523 if test "x$LINE" != x ; then
7524 eval "DEFAULT_$LINE"
7525 else
7526 no_cache=1
7527 fi
7528
7529 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7530
7531 fi
7532
7533
7534 eval "$ac_cv_use_dragimage"
7535 if test "$no_cache" != 1; then
7536 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7537 fi
7538
7539 if test "$wxUSE_DRAGIMAGE" = yes; then
7540 echo "$ac_t""yes" 1>&6
7541 else
7542 echo "$ac_t""no" 1>&6
7543 fi
7544
7545
7546
7547
7548 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
7549 echo "configure:7550: checking for --enable-palette" >&5
7550 no_cache=0
7551 # Check whether --enable-palette or --disable-palette was given.
7552 if test "${enable_palette+set}" = set; then
7553 enableval="$enable_palette"
7554
7555 if test "$enableval" = yes; then
7556 ac_cv_use_palette='wxUSE_PALETTE=yes'
7557 else
7558 ac_cv_use_palette='wxUSE_PALETTE=no'
7559 fi
7560
7561 else
7562
7563 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7564 if test "x$LINE" != x ; then
7565 eval "DEFAULT_$LINE"
7566 else
7567 no_cache=1
7568 fi
7569
7570 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7571
7572 fi
7573
7574
7575 eval "$ac_cv_use_palette"
7576 if test "$no_cache" != 1; then
7577 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7578 fi
7579
7580 if test "$wxUSE_PALETTE" = yes; then
7581 echo "$ac_t""yes" 1>&6
7582 else
7583 echo "$ac_t""no" 1>&6
7584 fi
7585
7586
7587 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7588 echo "configure:7589: checking for --enable-image" >&5
7589 no_cache=0
7590 # Check whether --enable-image or --disable-image was given.
7591 if test "${enable_image+set}" = set; then
7592 enableval="$enable_image"
7593
7594 if test "$enableval" = yes; then
7595 ac_cv_use_image='wxUSE_IMAGE=yes'
7596 else
7597 ac_cv_use_image='wxUSE_IMAGE=no'
7598 fi
7599
7600 else
7601
7602 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7603 if test "x$LINE" != x ; then
7604 eval "DEFAULT_$LINE"
7605 else
7606 no_cache=1
7607 fi
7608
7609 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7610
7611 fi
7612
7613
7614 eval "$ac_cv_use_image"
7615 if test "$no_cache" != 1; then
7616 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7617 fi
7618
7619 if test "$wxUSE_IMAGE" = yes; then
7620 echo "$ac_t""yes" 1>&6
7621 else
7622 echo "$ac_t""no" 1>&6
7623 fi
7624
7625
7626 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7627 echo "configure:7628: checking for --enable-gif" >&5
7628 no_cache=0
7629 # Check whether --enable-gif or --disable-gif was given.
7630 if test "${enable_gif+set}" = set; then
7631 enableval="$enable_gif"
7632
7633 if test "$enableval" = yes; then
7634 ac_cv_use_gif='wxUSE_GIF=yes'
7635 else
7636 ac_cv_use_gif='wxUSE_GIF=no'
7637 fi
7638
7639 else
7640
7641 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7642 if test "x$LINE" != x ; then
7643 eval "DEFAULT_$LINE"
7644 else
7645 no_cache=1
7646 fi
7647
7648 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7649
7650 fi
7651
7652
7653 eval "$ac_cv_use_gif"
7654 if test "$no_cache" != 1; then
7655 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7656 fi
7657
7658 if test "$wxUSE_GIF" = yes; then
7659 echo "$ac_t""yes" 1>&6
7660 else
7661 echo "$ac_t""no" 1>&6
7662 fi
7663
7664
7665 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7666 echo "configure:7667: checking for --enable-pcx" >&5
7667 no_cache=0
7668 # Check whether --enable-pcx or --disable-pcx was given.
7669 if test "${enable_pcx+set}" = set; then
7670 enableval="$enable_pcx"
7671
7672 if test "$enableval" = yes; then
7673 ac_cv_use_pcx='wxUSE_PCX=yes'
7674 else
7675 ac_cv_use_pcx='wxUSE_PCX=no'
7676 fi
7677
7678 else
7679
7680 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7681 if test "x$LINE" != x ; then
7682 eval "DEFAULT_$LINE"
7683 else
7684 no_cache=1
7685 fi
7686
7687 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7688
7689 fi
7690
7691
7692 eval "$ac_cv_use_pcx"
7693 if test "$no_cache" != 1; then
7694 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7695 fi
7696
7697 if test "$wxUSE_PCX" = yes; then
7698 echo "$ac_t""yes" 1>&6
7699 else
7700 echo "$ac_t""no" 1>&6
7701 fi
7702
7703
7704 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7705 echo "configure:7706: checking for --enable-pnm" >&5
7706 no_cache=0
7707 # Check whether --enable-pnm or --disable-pnm was given.
7708 if test "${enable_pnm+set}" = set; then
7709 enableval="$enable_pnm"
7710
7711 if test "$enableval" = yes; then
7712 ac_cv_use_pnm='wxUSE_PNM=yes'
7713 else
7714 ac_cv_use_pnm='wxUSE_PNM=no'
7715 fi
7716
7717 else
7718
7719 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7720 if test "x$LINE" != x ; then
7721 eval "DEFAULT_$LINE"
7722 else
7723 no_cache=1
7724 fi
7725
7726 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7727
7728 fi
7729
7730
7731 eval "$ac_cv_use_pnm"
7732 if test "$no_cache" != 1; then
7733 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7734 fi
7735
7736 if test "$wxUSE_PNM" = yes; then
7737 echo "$ac_t""yes" 1>&6
7738 else
7739 echo "$ac_t""no" 1>&6
7740 fi
7741
7742
7743 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7744 echo "configure:7745: checking for --enable-pnm" >&5
7745 no_cache=0
7746 # Check whether --enable-pnm or --disable-pnm was given.
7747 if test "${enable_pnm+set}" = set; then
7748 enableval="$enable_pnm"
7749
7750 if test "$enableval" = yes; then
7751 ac_cv_use_pnm='wxUSE_XPM=yes'
7752 else
7753 ac_cv_use_pnm='wxUSE_XPM=no'
7754 fi
7755
7756 else
7757
7758 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7759 if test "x$LINE" != x ; then
7760 eval "DEFAULT_$LINE"
7761 else
7762 no_cache=1
7763 fi
7764
7765 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7766
7767 fi
7768
7769
7770 eval "$ac_cv_use_pnm"
7771 if test "$no_cache" != 1; then
7772 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7773 fi
7774
7775 if test "$wxUSE_XPM" = yes; then
7776 echo "$ac_t""yes" 1>&6
7777 else
7778 echo "$ac_t""no" 1>&6
7779 fi
7780
7781
7782 fi
7783
7784
7785 echo "saving argument cache $wx_arg_cache_file"
7786 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7787
7788
7789
7790 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7791 echo "configure:7792: checking for toolkit" >&5
7792
7793 if test "$wxUSE_GUI" = "yes"; then
7794
7795 if test "$USE_BEOS" = 1; then
7796 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7797 fi
7798
7799 if test "$TOOLKIT_GIVEN" = 1; then
7800 for toolkit in `echo $ALL_TOOLKITS`; do
7801 var=wxUSE_$toolkit
7802 eval "value=\$${var}"
7803 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7804 done
7805 else
7806 for toolkit in `echo $ALL_TOOLKITS`; do
7807 if test "$has_toolkit_in_cache" != 1; then
7808 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7809 else
7810 var=DEFAULT_wxUSE_$toolkit
7811 fi
7812 eval "wxUSE_$toolkit=\$${var}"
7813 done
7814 fi
7815
7816 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
7817 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0}`
7818
7819 case "${host}" in
7820 *-pc-os2_emx | *-pc-os2-emx )
7821 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7822 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7823 LEX_STEM="lexyy"
7824 ;;
7825 *)
7826 PATH_IFS=':'
7827 LEX_STEM="lex.yy"
7828 ;;
7829 esac
7830
7831 case "$NUM_TOOLKITS" in
7832 1)
7833 ;;
7834 0)
7835 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7836 ;;
7837 *)
7838 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7839 esac
7840
7841 for toolkit in `echo $ALL_TOOLKITS`; do
7842 var=wxUSE_$toolkit
7843 eval "value=\$${var}"
7844 if test "x$value" != x; then
7845 cache_var=CACHE_$toolkit
7846 eval "cache=\$${cache_var}"
7847 if test "$cache" = 1; then
7848 echo "$var=$value" >> ${wx_arg_cache_file}
7849 fi
7850 if test "$value" = 1; then
7851 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7852 echo "$ac_t""$toolkit_echo" 1>&6
7853 fi
7854 fi
7855 done
7856 else
7857 PATH_IFS=':'
7858 echo "$ac_t""base ($host_alias hosted) only" 1>&6
7859 fi
7860
7861
7862 cat > confcache <<\EOF
7863 # This file is a shell script that caches the results of configure
7864 # tests run on this system so they can be shared between configure
7865 # scripts and configure runs. It is not useful on other systems.
7866 # If it contains results you don't want to keep, you may remove or edit it.
7867 #
7868 # By default, configure uses ./config.cache as the cache file,
7869 # creating it if it does not exist already. You can give configure
7870 # the --cache-file=FILE option to use a different cache file; that is
7871 # what configure does when it calls configure scripts in
7872 # subdirectories, so they share the cache.
7873 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7874 # config.status only pays attention to the cache file if you give it the
7875 # --recheck option to rerun configure.
7876 #
7877 EOF
7878 # The following way of writing the cache mishandles newlines in values,
7879 # but we know of no workaround that is simple, portable, and efficient.
7880 # So, don't put newlines in cache variables' values.
7881 # Ultrix sh set writes to stderr and can't be redirected directly,
7882 # and sets the high bit in the cache file unless we assign to the vars.
7883 (set) 2>&1 |
7884 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7885 *ac_space=\ *)
7886 # `set' does not quote correctly, so add quotes (double-quote substitution
7887 # turns \\\\ into \\, and sed turns \\ into \).
7888 sed -n \
7889 -e "s/'/'\\\\''/g" \
7890 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7891 ;;
7892 *)
7893 # `set' quotes correctly as required by POSIX, so do not add quotes.
7894 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7895 ;;
7896 esac >> confcache
7897 if cmp -s $cache_file confcache; then
7898 :
7899 else
7900 if test -w $cache_file; then
7901 echo "updating cache $cache_file"
7902 cat confcache > $cache_file
7903 else
7904 echo "not updating unwritable cache $cache_file"
7905 fi
7906 fi
7907 rm -f confcache
7908
7909
7910 if test "$build" != "$host" ; then
7911 if test "$USE_WIN32" = 1 ; then
7912 CC=$host_alias-gcc
7913 CXX=$host_alias-c++
7914 AR=$host_alias-ar
7915 RANLIB=$host_alias-ranlib
7916 DLLTOOL=$host_alias-dlltool
7917 RESCOMP=$host_alias-windres
7918 LD=$host_alias-ld
7919 NM=$host_alias-nm
7920 STRIP=$host_alias-strip
7921 else
7922 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
7923 fi
7924 fi
7925
7926 # Extract the first word of "gcc", so it can be a program name with args.
7927 set dummy gcc; ac_word=$2
7928 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7929 echo "configure:7930: checking for $ac_word" >&5
7930 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7931 echo $ac_n "(cached) $ac_c" 1>&6
7932 else
7933 if test -n "$CC"; then
7934 ac_cv_prog_CC="$CC" # Let the user override the test.
7935 else
7936 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7937 ac_dummy="$PATH"
7938 for ac_dir in $ac_dummy; do
7939 test -z "$ac_dir" && ac_dir=.
7940 if test -f $ac_dir/$ac_word; then
7941 ac_cv_prog_CC="gcc"
7942 break
7943 fi
7944 done
7945 IFS="$ac_save_ifs"
7946 fi
7947 fi
7948 CC="$ac_cv_prog_CC"
7949 if test -n "$CC"; then
7950 echo "$ac_t""$CC" 1>&6
7951 else
7952 echo "$ac_t""no" 1>&6
7953 fi
7954
7955 if test -z "$CC"; then
7956 # Extract the first word of "cc", so it can be a program name with args.
7957 set dummy cc; ac_word=$2
7958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7959 echo "configure:7960: checking for $ac_word" >&5
7960 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7961 echo $ac_n "(cached) $ac_c" 1>&6
7962 else
7963 if test -n "$CC"; then
7964 ac_cv_prog_CC="$CC" # Let the user override the test.
7965 else
7966 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7967 ac_prog_rejected=no
7968 ac_dummy="$PATH"
7969 for ac_dir in $ac_dummy; do
7970 test -z "$ac_dir" && ac_dir=.
7971 if test -f $ac_dir/$ac_word; then
7972 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7973 ac_prog_rejected=yes
7974 continue
7975 fi
7976 ac_cv_prog_CC="cc"
7977 break
7978 fi
7979 done
7980 IFS="$ac_save_ifs"
7981 if test $ac_prog_rejected = yes; then
7982 # We found a bogon in the path, so make sure we never use it.
7983 set dummy $ac_cv_prog_CC
7984 shift
7985 if test $# -gt 0; then
7986 # We chose a different compiler from the bogus one.
7987 # However, it has the same basename, so the bogon will be chosen
7988 # first if we set CC to just the basename; use the full file name.
7989 shift
7990 set dummy "$ac_dir/$ac_word" "$@"
7991 shift
7992 ac_cv_prog_CC="$@"
7993 fi
7994 fi
7995 fi
7996 fi
7997 CC="$ac_cv_prog_CC"
7998 if test -n "$CC"; then
7999 echo "$ac_t""$CC" 1>&6
8000 else
8001 echo "$ac_t""no" 1>&6
8002 fi
8003
8004 if test -z "$CC"; then
8005 case "`uname -s`" in
8006 *win32* | *WIN32*)
8007 # Extract the first word of "cl", so it can be a program name with args.
8008 set dummy cl; ac_word=$2
8009 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8010 echo "configure:8011: checking for $ac_word" >&5
8011 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8012 echo $ac_n "(cached) $ac_c" 1>&6
8013 else
8014 if test -n "$CC"; then
8015 ac_cv_prog_CC="$CC" # Let the user override the test.
8016 else
8017 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8018 ac_dummy="$PATH"
8019 for ac_dir in $ac_dummy; do
8020 test -z "$ac_dir" && ac_dir=.
8021 if test -f $ac_dir/$ac_word; then
8022 ac_cv_prog_CC="cl"
8023 break
8024 fi
8025 done
8026 IFS="$ac_save_ifs"
8027 fi
8028 fi
8029 CC="$ac_cv_prog_CC"
8030 if test -n "$CC"; then
8031 echo "$ac_t""$CC" 1>&6
8032 else
8033 echo "$ac_t""no" 1>&6
8034 fi
8035 ;;
8036 esac
8037 fi
8038 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8039 fi
8040
8041 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8042 echo "configure:8043: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8043
8044 ac_ext=c
8045 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8046 ac_cpp='$CPP $CPPFLAGS'
8047 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8048 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8049 cross_compiling=$ac_cv_prog_cc_cross
8050
8051 cat > conftest.$ac_ext << EOF
8052
8053 #line 8054 "configure"
8054 #include "confdefs.h"
8055
8056 main(){return(0);}
8057 EOF
8058 if { (eval echo configure:8059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8059 ac_cv_prog_cc_works=yes
8060 # If we can't run a trivial program, we are probably using a cross compiler.
8061 if (./conftest; exit) 2>/dev/null; then
8062 ac_cv_prog_cc_cross=no
8063 else
8064 ac_cv_prog_cc_cross=yes
8065 fi
8066 else
8067 echo "configure: failed program was:" >&5
8068 cat conftest.$ac_ext >&5
8069 ac_cv_prog_cc_works=no
8070 fi
8071 rm -fr conftest*
8072 ac_ext=c
8073 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8074 ac_cpp='$CPP $CPPFLAGS'
8075 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8076 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8077 cross_compiling=$ac_cv_prog_cc_cross
8078
8079 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8080 if test $ac_cv_prog_cc_works = no; then
8081 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8082 fi
8083 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8084 echo "configure:8085: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8085 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8086 cross_compiling=$ac_cv_prog_cc_cross
8087
8088 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8089 echo "configure:8090: checking whether we are using GNU C" >&5
8090 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8091 echo $ac_n "(cached) $ac_c" 1>&6
8092 else
8093 cat > conftest.c <<EOF
8094 #ifdef __GNUC__
8095 yes;
8096 #endif
8097 EOF
8098 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8099 ac_cv_prog_gcc=yes
8100 else
8101 ac_cv_prog_gcc=no
8102 fi
8103 fi
8104
8105 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8106
8107 if test $ac_cv_prog_gcc = yes; then
8108 GCC=yes
8109 else
8110 GCC=
8111 fi
8112
8113 ac_test_CFLAGS="${CFLAGS+set}"
8114 ac_save_CFLAGS="$CFLAGS"
8115 CFLAGS=
8116 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8117 echo "configure:8118: checking whether ${CC-cc} accepts -g" >&5
8118 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8119 echo $ac_n "(cached) $ac_c" 1>&6
8120 else
8121 echo 'void f(){}' > conftest.c
8122 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8123 ac_cv_prog_cc_g=yes
8124 else
8125 ac_cv_prog_cc_g=no
8126 fi
8127 rm -f conftest*
8128
8129 fi
8130
8131 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8132 if test "$ac_test_CFLAGS" = set; then
8133 CFLAGS="$ac_save_CFLAGS"
8134 elif test $ac_cv_prog_cc_g = yes; then
8135 if test "$GCC" = yes; then
8136 CFLAGS="-g -O2"
8137 else
8138 CFLAGS="-g"
8139 fi
8140 else
8141 if test "$GCC" = yes; then
8142 CFLAGS="-O2"
8143 else
8144 CFLAGS=
8145 fi
8146 fi
8147
8148
8149 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8150
8151 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8152 echo "configure:8153: checking how to run the C preprocessor" >&5
8153 # On Suns, sometimes $CPP names a directory.
8154 if test -n "$CPP" && test -d "$CPP"; then
8155 CPP=
8156 fi
8157 if test -z "$CPP"; then
8158 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8159 echo $ac_n "(cached) $ac_c" 1>&6
8160 else
8161 # This must be in double quotes, not single quotes, because CPP may get
8162 # substituted into the Makefile and "${CC-cc}" will confuse make.
8163 CPP="${CC-cc} -E"
8164 # On the NeXT, cc -E runs the code through the compiler's parser,
8165 # not just through cpp.
8166 cat > conftest.$ac_ext <<EOF
8167 #line 8168 "configure"
8168 #include "confdefs.h"
8169 #include <assert.h>
8170 Syntax Error
8171 EOF
8172 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8173 { (eval echo configure:8174: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8174 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8175 if test -z "$ac_err"; then
8176 :
8177 else
8178 echo "$ac_err" >&5
8179 echo "configure: failed program was:" >&5
8180 cat conftest.$ac_ext >&5
8181 rm -rf conftest*
8182 CPP="${CC-cc} -E -traditional-cpp"
8183 cat > conftest.$ac_ext <<EOF
8184 #line 8185 "configure"
8185 #include "confdefs.h"
8186 #include <assert.h>
8187 Syntax Error
8188 EOF
8189 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8190 { (eval echo configure:8191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8191 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8192 if test -z "$ac_err"; then
8193 :
8194 else
8195 echo "$ac_err" >&5
8196 echo "configure: failed program was:" >&5
8197 cat conftest.$ac_ext >&5
8198 rm -rf conftest*
8199 CPP="${CC-cc} -nologo -E"
8200 cat > conftest.$ac_ext <<EOF
8201 #line 8202 "configure"
8202 #include "confdefs.h"
8203 #include <assert.h>
8204 Syntax Error
8205 EOF
8206 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8207 { (eval echo configure:8208: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8208 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8209 if test -z "$ac_err"; then
8210 :
8211 else
8212 echo "$ac_err" >&5
8213 echo "configure: failed program was:" >&5
8214 cat conftest.$ac_ext >&5
8215 rm -rf conftest*
8216 CPP=/lib/cpp
8217 fi
8218 rm -f conftest*
8219 fi
8220 rm -f conftest*
8221 fi
8222 rm -f conftest*
8223 ac_cv_prog_CPP="$CPP"
8224 fi
8225 CPP="$ac_cv_prog_CPP"
8226 else
8227 ac_cv_prog_CPP="$CPP"
8228 fi
8229 echo "$ac_t""$CPP" 1>&6
8230
8231 if test $ac_cv_prog_gcc = yes; then
8232 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8233 echo "configure:8234: checking whether ${CC-cc} needs -traditional" >&5
8234 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8235 echo $ac_n "(cached) $ac_c" 1>&6
8236 else
8237 ac_pattern="Autoconf.*'x'"
8238 cat > conftest.$ac_ext <<EOF
8239 #line 8240 "configure"
8240 #include "confdefs.h"
8241 #include <sgtty.h>
8242 Autoconf TIOCGETP
8243 EOF
8244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8245 egrep "$ac_pattern" >/dev/null 2>&1; then
8246 rm -rf conftest*
8247 ac_cv_prog_gcc_traditional=yes
8248 else
8249 rm -rf conftest*
8250 ac_cv_prog_gcc_traditional=no
8251 fi
8252 rm -f conftest*
8253
8254
8255 if test $ac_cv_prog_gcc_traditional = no; then
8256 cat > conftest.$ac_ext <<EOF
8257 #line 8258 "configure"
8258 #include "confdefs.h"
8259 #include <termio.h>
8260 Autoconf TCGETA
8261 EOF
8262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8263 egrep "$ac_pattern" >/dev/null 2>&1; then
8264 rm -rf conftest*
8265 ac_cv_prog_gcc_traditional=yes
8266 fi
8267 rm -f conftest*
8268
8269 fi
8270 fi
8271
8272 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8273 if test $ac_cv_prog_gcc_traditional = yes; then
8274 CC="$CC -traditional"
8275 fi
8276 fi
8277
8278
8279
8280 ac_ext=C
8281 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8282 ac_cpp='$CXXCPP $CPPFLAGS'
8283 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8284 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8285 cross_compiling=$ac_cv_prog_cxx_cross
8286
8287
8288 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8289 do
8290 # Extract the first word of "$ac_prog", so it can be a program name with args.
8291 set dummy $ac_prog; ac_word=$2
8292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8293 echo "configure:8294: checking for $ac_word" >&5
8294 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8295 echo $ac_n "(cached) $ac_c" 1>&6
8296 else
8297 if test -n "$CXX"; then
8298 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8299 else
8300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8301 ac_dummy="$PATH"
8302 for ac_dir in $ac_dummy; do
8303 test -z "$ac_dir" && ac_dir=.
8304 if test -f $ac_dir/$ac_word; then
8305 ac_cv_prog_CXX="$ac_prog"
8306 break
8307 fi
8308 done
8309 IFS="$ac_save_ifs"
8310 fi
8311 fi
8312 CXX="$ac_cv_prog_CXX"
8313 if test -n "$CXX"; then
8314 echo "$ac_t""$CXX" 1>&6
8315 else
8316 echo "$ac_t""no" 1>&6
8317 fi
8318
8319 test -n "$CXX" && break
8320 done
8321 test -n "$CXX" || CXX="gcc"
8322
8323
8324 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8325 echo "configure:8326: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8326
8327 ac_ext=C
8328 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8329 ac_cpp='$CXXCPP $CPPFLAGS'
8330 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8331 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8332 cross_compiling=$ac_cv_prog_cxx_cross
8333
8334 cat > conftest.$ac_ext << EOF
8335
8336 #line 8337 "configure"
8337 #include "confdefs.h"
8338
8339 int main(){return(0);}
8340 EOF
8341 if { (eval echo configure:8342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8342 ac_cv_prog_cxx_works=yes
8343 # If we can't run a trivial program, we are probably using a cross compiler.
8344 if (./conftest; exit) 2>/dev/null; then
8345 ac_cv_prog_cxx_cross=no
8346 else
8347 ac_cv_prog_cxx_cross=yes
8348 fi
8349 else
8350 echo "configure: failed program was:" >&5
8351 cat conftest.$ac_ext >&5
8352 ac_cv_prog_cxx_works=no
8353 fi
8354 rm -fr conftest*
8355 ac_ext=C
8356 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8357 ac_cpp='$CXXCPP $CPPFLAGS'
8358 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8359 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8360 cross_compiling=$ac_cv_prog_cxx_cross
8361
8362 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8363 if test $ac_cv_prog_cxx_works = no; then
8364 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8365 fi
8366 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8367 echo "configure:8368: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8368 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8369 cross_compiling=$ac_cv_prog_cxx_cross
8370
8371 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8372 echo "configure:8373: checking whether we are using GNU C++" >&5
8373 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8374 echo $ac_n "(cached) $ac_c" 1>&6
8375 else
8376 cat > conftest.C <<EOF
8377 #ifdef __GNUC__
8378 yes;
8379 #endif
8380 EOF
8381 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8382: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8382 ac_cv_prog_gxx=yes
8383 else
8384 ac_cv_prog_gxx=no
8385 fi
8386 fi
8387
8388 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8389
8390 if test $ac_cv_prog_gxx = yes; then
8391 GXX=yes
8392 else
8393 GXX=
8394 fi
8395
8396 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8397 ac_save_CXXFLAGS="$CXXFLAGS"
8398 CXXFLAGS=
8399 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8400 echo "configure:8401: checking whether ${CXX-g++} accepts -g" >&5
8401 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8402 echo $ac_n "(cached) $ac_c" 1>&6
8403 else
8404 echo 'void f(){}' > conftest.cc
8405 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8406 ac_cv_prog_cxx_g=yes
8407 else
8408 ac_cv_prog_cxx_g=no
8409 fi
8410 rm -f conftest*
8411
8412 fi
8413
8414 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8415 if test "$ac_test_CXXFLAGS" = set; then
8416 CXXFLAGS="$ac_save_CXXFLAGS"
8417 elif test $ac_cv_prog_cxx_g = yes; then
8418 if test "$GXX" = yes; then
8419 CXXFLAGS="-g -O2"
8420 else
8421 CXXFLAGS="-g"
8422 fi
8423 else
8424 if test "$GXX" = yes; then
8425 CXXFLAGS="-O2"
8426 else
8427 CXXFLAGS=
8428 fi
8429 fi
8430
8431
8432 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8433
8434 ac_ext=c
8435 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8436 ac_cpp='$CPP $CPPFLAGS'
8437 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8438 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8439 cross_compiling=$ac_cv_prog_cc_cross
8440
8441
8442 # Extract the first word of "ranlib", so it can be a program name with args.
8443 set dummy ranlib; ac_word=$2
8444 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8445 echo "configure:8446: checking for $ac_word" >&5
8446 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8447 echo $ac_n "(cached) $ac_c" 1>&6
8448 else
8449 if test -n "$RANLIB"; then
8450 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8451 else
8452 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8453 ac_dummy="$PATH"
8454 for ac_dir in $ac_dummy; do
8455 test -z "$ac_dir" && ac_dir=.
8456 if test -f $ac_dir/$ac_word; then
8457 ac_cv_prog_RANLIB="ranlib"
8458 break
8459 fi
8460 done
8461 IFS="$ac_save_ifs"
8462 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8463 fi
8464 fi
8465 RANLIB="$ac_cv_prog_RANLIB"
8466 if test -n "$RANLIB"; then
8467 echo "$ac_t""$RANLIB" 1>&6
8468 else
8469 echo "$ac_t""no" 1>&6
8470 fi
8471
8472
8473 # Extract the first word of "ar", so it can be a program name with args.
8474 set dummy ar; ac_word=$2
8475 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8476 echo "configure:8477: checking for $ac_word" >&5
8477 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8478 echo $ac_n "(cached) $ac_c" 1>&6
8479 else
8480 if test -n "$AR"; then
8481 ac_cv_prog_AR="$AR" # Let the user override the test.
8482 else
8483 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8484 ac_dummy="$PATH"
8485 for ac_dir in $ac_dummy; do
8486 test -z "$ac_dir" && ac_dir=.
8487 if test -f $ac_dir/$ac_word; then
8488 ac_cv_prog_AR="ar"
8489 break
8490 fi
8491 done
8492 IFS="$ac_save_ifs"
8493 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8494 fi
8495 fi
8496 AR="$ac_cv_prog_AR"
8497 if test -n "$AR"; then
8498 echo "$ac_t""$AR" 1>&6
8499 else
8500 echo "$ac_t""no" 1>&6
8501 fi
8502
8503
8504 case "${host}" in
8505
8506 powerpc-*-darwin* )
8507 INSTALL="cp -p"
8508 INSTALL_PROGRAM="cp -p"
8509 INSTALL_DATA="cp -p"
8510
8511
8512
8513 ;;
8514 *)
8515 # Find a good install program. We prefer a C program (faster),
8516 # so one script is as good as another. But avoid the broken or
8517 # incompatible versions:
8518 # SysV /etc/install, /usr/sbin/install
8519 # SunOS /usr/etc/install
8520 # IRIX /sbin/install
8521 # AIX /bin/install
8522 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8523 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8524 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8525 # ./install, which can be erroneously created by make from ./install.sh.
8526 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8527 echo "configure:8528: checking for a BSD compatible install" >&5
8528 if test -z "$INSTALL"; then
8529 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8530 echo $ac_n "(cached) $ac_c" 1>&6
8531 else
8532 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8533 for ac_dir in $PATH; do
8534 # Account for people who put trailing slashes in PATH elements.
8535 case "$ac_dir/" in
8536 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8537 *)
8538 # OSF1 and SCO ODT 3.0 have their own names for install.
8539 # Don't use installbsd from OSF since it installs stuff as root
8540 # by default.
8541 for ac_prog in ginstall scoinst install; do
8542 if test -f $ac_dir/$ac_prog; then
8543 if test $ac_prog = install &&
8544 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8545 # AIX install. It has an incompatible calling convention.
8546 :
8547 else
8548 ac_cv_path_install="$ac_dir/$ac_prog -c"
8549 break 2
8550 fi
8551 fi
8552 done
8553 ;;
8554 esac
8555 done
8556 IFS="$ac_save_IFS"
8557
8558 fi
8559 if test "${ac_cv_path_install+set}" = set; then
8560 INSTALL="$ac_cv_path_install"
8561 else
8562 # As a last resort, use the slow shell script. We don't cache a
8563 # path for INSTALL within a source directory, because that will
8564 # break other packages using the cache if that directory is
8565 # removed, or if the path is relative.
8566 INSTALL="$ac_install_sh"
8567 fi
8568 fi
8569 echo "$ac_t""$INSTALL" 1>&6
8570
8571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8572 # It thinks the first close brace ends the variable substitution.
8573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8574
8575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8576
8577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8578
8579 esac
8580
8581 # Extract the first word of "strip", so it can be a program name with args.
8582 set dummy strip; ac_word=$2
8583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8584 echo "configure:8585: checking for $ac_word" >&5
8585 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8586 echo $ac_n "(cached) $ac_c" 1>&6
8587 else
8588 if test -n "$STRIP"; then
8589 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8590 else
8591 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8592 ac_dummy="$PATH"
8593 for ac_dir in $ac_dummy; do
8594 test -z "$ac_dir" && ac_dir=.
8595 if test -f $ac_dir/$ac_word; then
8596 ac_cv_prog_STRIP="strip"
8597 break
8598 fi
8599 done
8600 IFS="$ac_save_ifs"
8601 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8602 fi
8603 fi
8604 STRIP="$ac_cv_prog_STRIP"
8605 if test -n "$STRIP"; then
8606 echo "$ac_t""$STRIP" 1>&6
8607 else
8608 echo "$ac_t""no" 1>&6
8609 fi
8610
8611
8612 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8613 echo "configure:8614: checking make for VPATH support" >&5
8614 cat - << EOF > confMake
8615 check : file
8616 cp \$? \$@
8617 cp \$? final_file
8618 EOF
8619
8620 if test ! -d sub ; then
8621 mkdir sub
8622 fi
8623 echo dummy > sub/file
8624 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8625 RESULT=$?
8626 rm -f sub/file check final_file confMake
8627 rmdir sub
8628 if test "$RESULT" = 0; then
8629 echo "$ac_t""yes" 1>&6
8630 else
8631 echo "$ac_t""no" 1>&6
8632 { echo "configure: error:
8633 You need a make-utility that is able to use the variable
8634 VPATH correctly.
8635 If your version of make does not support VPATH correctly,
8636 please install GNU-make (possibly as gmake), and start
8637 configure with the following command:
8638 export MAKE=gmake; ./configure for sh-type shells
8639 setenv MAKE gmake; ./configure for csh-type shells
8640 Also please do remember to use gmake in this case every time
8641 you are trying to compile.
8642 " 1>&2; exit 1; }
8643 fi
8644
8645 for ac_prog in 'bison -y' byacc
8646 do
8647 # Extract the first word of "$ac_prog", so it can be a program name with args.
8648 set dummy $ac_prog; ac_word=$2
8649 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8650 echo "configure:8651: checking for $ac_word" >&5
8651 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8652 echo $ac_n "(cached) $ac_c" 1>&6
8653 else
8654 if test -n "$YACC"; then
8655 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8656 else
8657 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8658 ac_dummy="$PATH"
8659 for ac_dir in $ac_dummy; do
8660 test -z "$ac_dir" && ac_dir=.
8661 if test -f $ac_dir/$ac_word; then
8662 ac_cv_prog_YACC="$ac_prog"
8663 break
8664 fi
8665 done
8666 IFS="$ac_save_ifs"
8667 fi
8668 fi
8669 YACC="$ac_cv_prog_YACC"
8670 if test -n "$YACC"; then
8671 echo "$ac_t""$YACC" 1>&6
8672 else
8673 echo "$ac_t""no" 1>&6
8674 fi
8675
8676 test -n "$YACC" && break
8677 done
8678 test -n "$YACC" || YACC="yacc"
8679
8680
8681 # Extract the first word of "flex", so it can be a program name with args.
8682 set dummy flex; ac_word=$2
8683 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8684 echo "configure:8685: checking for $ac_word" >&5
8685 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8686 echo $ac_n "(cached) $ac_c" 1>&6
8687 else
8688 if test -n "$LEX"; then
8689 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8690 else
8691 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8692 ac_dummy="$PATH"
8693 for ac_dir in $ac_dummy; do
8694 test -z "$ac_dir" && ac_dir=.
8695 if test -f $ac_dir/$ac_word; then
8696 ac_cv_prog_LEX="flex"
8697 break
8698 fi
8699 done
8700 IFS="$ac_save_ifs"
8701 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8702 fi
8703 fi
8704 LEX="$ac_cv_prog_LEX"
8705 if test -n "$LEX"; then
8706 echo "$ac_t""$LEX" 1>&6
8707 else
8708 echo "$ac_t""no" 1>&6
8709 fi
8710
8711 if test -z "$LEXLIB"
8712 then
8713 case "$LEX" in
8714 flex*) ac_lib=fl ;;
8715 *) ac_lib=l ;;
8716 esac
8717 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8718 echo "configure:8719: checking for yywrap in -l$ac_lib" >&5
8719 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8720 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8721 echo $ac_n "(cached) $ac_c" 1>&6
8722 else
8723 ac_save_LIBS="$LIBS"
8724 LIBS="-l$ac_lib $LIBS"
8725 cat > conftest.$ac_ext <<EOF
8726 #line 8727 "configure"
8727 #include "confdefs.h"
8728 /* Override any gcc2 internal prototype to avoid an error. */
8729 /* We use char because int might match the return type of a gcc2
8730 builtin and then its argument prototype would still apply. */
8731 char yywrap();
8732
8733 int main() {
8734 yywrap()
8735 ; return 0; }
8736 EOF
8737 if { (eval echo configure:8738: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8738 rm -rf conftest*
8739 eval "ac_cv_lib_$ac_lib_var=yes"
8740 else
8741 echo "configure: failed program was:" >&5
8742 cat conftest.$ac_ext >&5
8743 rm -rf conftest*
8744 eval "ac_cv_lib_$ac_lib_var=no"
8745 fi
8746 rm -f conftest*
8747 LIBS="$ac_save_LIBS"
8748
8749 fi
8750 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8751 echo "$ac_t""yes" 1>&6
8752 LEXLIB="-l$ac_lib"
8753 else
8754 echo "$ac_t""no" 1>&6
8755 fi
8756
8757 fi
8758
8759
8760 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8761 echo "configure:8762: checking whether ln -s works" >&5
8762 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8763 echo $ac_n "(cached) $ac_c" 1>&6
8764 else
8765 rm -f conftestdata
8766 if ln -s X conftestdata 2>/dev/null
8767 then
8768 rm -f conftestdata
8769 ac_cv_prog_LN_S="ln -s"
8770 else
8771 ac_cv_prog_LN_S=ln
8772 fi
8773 fi
8774 LN_S="$ac_cv_prog_LN_S"
8775 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8776 echo "$ac_t""yes" 1>&6
8777 else
8778 echo "$ac_t""no" 1>&6
8779 fi
8780
8781
8782
8783 SEARCH_INCLUDE="\
8784 /usr/local/include \
8785 \
8786 /usr/Motif-1.2/include \
8787 /usr/Motif-2.1/include \
8788 \
8789 /usr/include/Motif1.2 \
8790 /opt/xpm/include/X11 \
8791 /opt/GBxpm/include/ \
8792 /opt/GBxpm/X11/include/ \
8793 \
8794 /usr/Motif1.2/include \
8795 /usr/dt/include \
8796 /usr/openwin/include \
8797 \
8798 /usr/include/Xm \
8799 \
8800 /usr/X11R6/include \
8801 /usr/X11R6.4/include \
8802 /usr/X11R5/include \
8803 /usr/X11R4/include \
8804 \
8805 /usr/include/X11R6 \
8806 /usr/include/X11R5 \
8807 /usr/include/X11R4 \
8808 \
8809 /usr/local/X11R6/include \
8810 /usr/local/X11R5/include \
8811 /usr/local/X11R4/include \
8812 \
8813 /usr/local/include/X11R6 \
8814 /usr/local/include/X11R5 \
8815 /usr/local/include/X11R4 \
8816 \
8817 /usr/X11/include \
8818 /usr/include/X11 \
8819 /usr/local/X11/include \
8820 /usr/local/include/X11 \
8821 \
8822 /usr/X386/include \
8823 /usr/x386/include \
8824 /usr/XFree86/include/X11 \
8825 \
8826 X:/XFree86/include \
8827 X:/XFree86/include/X11 \
8828 \
8829 /usr/include/gtk \
8830 /usr/local/include/gtk \
8831 /usr/include/glib \
8832 /usr/local/include/glib \
8833 \
8834 /usr/include/qt \
8835 /usr/local/include/qt \
8836 \
8837 /usr/include/windows \
8838 /usr/include/wine \
8839 /usr/local/include/wine \
8840 \
8841 /usr/unsupported/include \
8842 /usr/athena/include \
8843 /usr/local/x11r5/include \
8844 /usr/lpp/Xamples/include \
8845 \
8846 /usr/openwin/share/include \
8847 \
8848 /usr/include"
8849
8850 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8851
8852
8853 cat > confcache <<\EOF
8854 # This file is a shell script that caches the results of configure
8855 # tests run on this system so they can be shared between configure
8856 # scripts and configure runs. It is not useful on other systems.
8857 # If it contains results you don't want to keep, you may remove or edit it.
8858 #
8859 # By default, configure uses ./config.cache as the cache file,
8860 # creating it if it does not exist already. You can give configure
8861 # the --cache-file=FILE option to use a different cache file; that is
8862 # what configure does when it calls configure scripts in
8863 # subdirectories, so they share the cache.
8864 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8865 # config.status only pays attention to the cache file if you give it the
8866 # --recheck option to rerun configure.
8867 #
8868 EOF
8869 # The following way of writing the cache mishandles newlines in values,
8870 # but we know of no workaround that is simple, portable, and efficient.
8871 # So, don't put newlines in cache variables' values.
8872 # Ultrix sh set writes to stderr and can't be redirected directly,
8873 # and sets the high bit in the cache file unless we assign to the vars.
8874 (set) 2>&1 |
8875 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8876 *ac_space=\ *)
8877 # `set' does not quote correctly, so add quotes (double-quote substitution
8878 # turns \\\\ into \\, and sed turns \\ into \).
8879 sed -n \
8880 -e "s/'/'\\\\''/g" \
8881 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8882 ;;
8883 *)
8884 # `set' quotes correctly as required by POSIX, so do not add quotes.
8885 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8886 ;;
8887 esac >> confcache
8888 if cmp -s $cache_file confcache; then
8889 :
8890 else
8891 if test -w $cache_file; then
8892 echo "updating cache $cache_file"
8893 cat confcache > $cache_file
8894 else
8895 echo "not updating unwritable cache $cache_file"
8896 fi
8897 fi
8898 rm -f confcache
8899
8900
8901
8902
8903 REGEX_INCLUDE=
8904 if test "$wxUSE_REGEX" != "no"; then
8905 cat >> confdefs.h <<\EOF
8906 #define wxUSE_REGEX 1
8907 EOF
8908
8909
8910 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
8911 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8912 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
8913 echo "configure:8914: checking for regex.h" >&5
8914 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8915 echo $ac_n "(cached) $ac_c" 1>&6
8916 else
8917 cat > conftest.$ac_ext <<EOF
8918 #line 8919 "configure"
8919 #include "confdefs.h"
8920 #include <regex.h>
8921 EOF
8922 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8923 { (eval echo configure:8924: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8924 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8925 if test -z "$ac_err"; then
8926 rm -rf conftest*
8927 eval "ac_cv_header_$ac_safe=yes"
8928 else
8929 echo "$ac_err" >&5
8930 echo "configure: failed program was:" >&5
8931 cat conftest.$ac_ext >&5
8932 rm -rf conftest*
8933 eval "ac_cv_header_$ac_safe=no"
8934 fi
8935 rm -f conftest*
8936 fi
8937 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8938 echo "$ac_t""yes" 1>&6
8939 for ac_func in regcomp
8940 do
8941 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8942 echo "configure:8943: checking for $ac_func" >&5
8943 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8944 echo $ac_n "(cached) $ac_c" 1>&6
8945 else
8946 cat > conftest.$ac_ext <<EOF
8947 #line 8948 "configure"
8948 #include "confdefs.h"
8949 /* System header to define __stub macros and hopefully few prototypes,
8950 which can conflict with char $ac_func(); below. */
8951 #include <assert.h>
8952 /* Override any gcc2 internal prototype to avoid an error. */
8953 /* We use char because int might match the return type of a gcc2
8954 builtin and then its argument prototype would still apply. */
8955 char $ac_func();
8956
8957 int main() {
8958
8959 /* The GNU C library defines this for functions which it implements
8960 to always fail with ENOSYS. Some functions are actually named
8961 something starting with __ and the normal name is an alias. */
8962 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8963 choke me
8964 #else
8965 $ac_func();
8966 #endif
8967
8968 ; return 0; }
8969 EOF
8970 if { (eval echo configure:8971: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8971 rm -rf conftest*
8972 eval "ac_cv_func_$ac_func=yes"
8973 else
8974 echo "configure: failed program was:" >&5
8975 cat conftest.$ac_ext >&5
8976 rm -rf conftest*
8977 eval "ac_cv_func_$ac_func=no"
8978 fi
8979 rm -f conftest*
8980 fi
8981
8982 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8983 echo "$ac_t""yes" 1>&6
8984 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8985 cat >> confdefs.h <<EOF
8986 #define $ac_tr_func 1
8987 EOF
8988
8989 else
8990 echo "$ac_t""no" 1>&6
8991 fi
8992 done
8993
8994 else
8995 echo "$ac_t""no" 1>&6
8996 fi
8997
8998
8999 if test "x$ac_cv_func_regcomp" != "xyes"; then
9000 if test "$wxUSE_REGEX" = "sys" ; then
9001 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9002 else
9003 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9004 wxUSE_REGEX=builtin
9005 fi
9006 else
9007 wxUSE_REGEX=sys
9008 fi
9009 fi
9010
9011 if test "$wxUSE_REGEX" = "builtin" ; then
9012 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9013 fi
9014 fi
9015
9016
9017 ZLIB_INCLUDE=
9018 ZLIB_LINK=
9019 if test "$wxUSE_ZLIB" != "no" ; then
9020 cat >> confdefs.h <<\EOF
9021 #define wxUSE_ZLIB 1
9022 EOF
9023
9024
9025 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9026 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9027 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9028 echo "configure:9029: checking for zlib.h" >&5
9029 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9030 echo $ac_n "(cached) $ac_c" 1>&6
9031 else
9032 cat > conftest.$ac_ext <<EOF
9033 #line 9034 "configure"
9034 #include "confdefs.h"
9035 #include <zlib.h>
9036 EOF
9037 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9038 { (eval echo configure:9039: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9039 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9040 if test -z "$ac_err"; then
9041 rm -rf conftest*
9042 eval "ac_cv_header_$ac_safe=yes"
9043 else
9044 echo "$ac_err" >&5
9045 echo "configure: failed program was:" >&5
9046 cat conftest.$ac_ext >&5
9047 rm -rf conftest*
9048 eval "ac_cv_header_$ac_safe=no"
9049 fi
9050 rm -f conftest*
9051 fi
9052 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9053 echo "$ac_t""yes" 1>&6
9054 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9055 echo "configure:9056: checking for deflate in -lz" >&5
9056 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9057 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9058 echo $ac_n "(cached) $ac_c" 1>&6
9059 else
9060 ac_save_LIBS="$LIBS"
9061 LIBS="-lz $LIBS"
9062 cat > conftest.$ac_ext <<EOF
9063 #line 9064 "configure"
9064 #include "confdefs.h"
9065 /* Override any gcc2 internal prototype to avoid an error. */
9066 /* We use char because int might match the return type of a gcc2
9067 builtin and then its argument prototype would still apply. */
9068 char deflate();
9069
9070 int main() {
9071 deflate()
9072 ; return 0; }
9073 EOF
9074 if { (eval echo configure:9075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9075 rm -rf conftest*
9076 eval "ac_cv_lib_$ac_lib_var=yes"
9077 else
9078 echo "configure: failed program was:" >&5
9079 cat conftest.$ac_ext >&5
9080 rm -rf conftest*
9081 eval "ac_cv_lib_$ac_lib_var=no"
9082 fi
9083 rm -f conftest*
9084 LIBS="$ac_save_LIBS"
9085
9086 fi
9087 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9088 echo "$ac_t""yes" 1>&6
9089 ZLIB_LINK="-lz"
9090 else
9091 echo "$ac_t""no" 1>&6
9092 fi
9093
9094 else
9095 echo "$ac_t""no" 1>&6
9096 fi
9097
9098
9099 if test "x$ZLIB_LINK" = "x" ; then
9100 if test "$wxUSE_ZLIB" = "sys" ; then
9101 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9102 else
9103 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9104 wxUSE_ZLIB=builtin
9105 fi
9106 else
9107 wxUSE_ZLIB=sys
9108 fi
9109 fi
9110
9111 if test "$wxUSE_ZLIB" = "builtin" ; then
9112 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9113 fi
9114 fi
9115
9116
9117 PNG_INCLUDE=
9118 PNG_LINK=
9119 if test "$wxUSE_LIBPNG" != "no" ; then
9120 cat >> confdefs.h <<\EOF
9121 #define wxUSE_LIBPNG 1
9122 EOF
9123
9124
9125 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9126 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9127 wxUSE_LIBPNG=builtin
9128 fi
9129
9130 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9131 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9132 echo $ac_n "checking for png.h""... $ac_c" 1>&6
9133 echo "configure:9134: checking for png.h" >&5
9134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9135 echo $ac_n "(cached) $ac_c" 1>&6
9136 else
9137 cat > conftest.$ac_ext <<EOF
9138 #line 9139 "configure"
9139 #include "confdefs.h"
9140 #include <png.h>
9141 EOF
9142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9143 { (eval echo configure:9144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9144 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9145 if test -z "$ac_err"; then
9146 rm -rf conftest*
9147 eval "ac_cv_header_$ac_safe=yes"
9148 else
9149 echo "$ac_err" >&5
9150 echo "configure: failed program was:" >&5
9151 cat conftest.$ac_ext >&5
9152 rm -rf conftest*
9153 eval "ac_cv_header_$ac_safe=no"
9154 fi
9155 rm -f conftest*
9156 fi
9157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9158 echo "$ac_t""yes" 1>&6
9159 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9160 echo "configure:9161: checking for png_check_sig in -lpng" >&5
9161 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9163 echo $ac_n "(cached) $ac_c" 1>&6
9164 else
9165 ac_save_LIBS="$LIBS"
9166 LIBS="-lpng -lz -lm $LIBS"
9167 cat > conftest.$ac_ext <<EOF
9168 #line 9169 "configure"
9169 #include "confdefs.h"
9170 /* Override any gcc2 internal prototype to avoid an error. */
9171 /* We use char because int might match the return type of a gcc2
9172 builtin and then its argument prototype would still apply. */
9173 char png_check_sig();
9174
9175 int main() {
9176 png_check_sig()
9177 ; return 0; }
9178 EOF
9179 if { (eval echo configure:9180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9180 rm -rf conftest*
9181 eval "ac_cv_lib_$ac_lib_var=yes"
9182 else
9183 echo "configure: failed program was:" >&5
9184 cat conftest.$ac_ext >&5
9185 rm -rf conftest*
9186 eval "ac_cv_lib_$ac_lib_var=no"
9187 fi
9188 rm -f conftest*
9189 LIBS="$ac_save_LIBS"
9190
9191 fi
9192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9193 echo "$ac_t""yes" 1>&6
9194 PNG_LINK="-lpng"
9195 else
9196 echo "$ac_t""no" 1>&6
9197 fi
9198
9199
9200 else
9201 echo "$ac_t""no" 1>&6
9202 fi
9203
9204
9205 if test "x$PNG_LINK" = "x" ; then
9206 if test "$wxUSE_LIBPNG" = "sys" ; then
9207 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9208 else
9209 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9210 wxUSE_LIBPNG=builtin
9211 fi
9212 else
9213 wxUSE_LIBPNG=yes
9214 fi
9215 fi
9216
9217 if test "$wxUSE_LIBPNG" = "builtin" ; then
9218 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9219 fi
9220
9221 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9222 fi
9223
9224
9225 JPEG_INCLUDE=
9226 JPEG_LINK=
9227 if test "$wxUSE_LIBJPEG" != "no" ; then
9228 cat >> confdefs.h <<\EOF
9229 #define wxUSE_LIBJPEG 1
9230 EOF
9231
9232
9233 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9234 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9235 echo "configure:9236: checking for jpeglib.h" >&5
9236 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
9237 echo $ac_n "(cached) $ac_c" 1>&6
9238 else
9239 cat > conftest.$ac_ext <<EOF
9240 #line 9241 "configure"
9241 #include "confdefs.h"
9242
9243 #undef HAVE_STDLIB_H
9244 #include <stdio.h>
9245 #include <jpeglib.h>
9246
9247 int main() {
9248
9249
9250 ; return 0; }
9251 EOF
9252 if { (eval echo configure:9253: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9253 rm -rf conftest*
9254 ac_cv_header_jpeglib_h=yes
9255 else
9256 echo "configure: failed program was:" >&5
9257 cat conftest.$ac_ext >&5
9258 rm -rf conftest*
9259 ac_cv_header_jpeglib_h=no
9260
9261 fi
9262 rm -f conftest*
9263
9264 fi
9265
9266 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9267
9268 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9269 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
9270 echo "configure:9271: checking for jpeg_read_header in -ljpeg" >&5
9271 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9273 echo $ac_n "(cached) $ac_c" 1>&6
9274 else
9275 ac_save_LIBS="$LIBS"
9276 LIBS="-ljpeg $LIBS"
9277 cat > conftest.$ac_ext <<EOF
9278 #line 9279 "configure"
9279 #include "confdefs.h"
9280 /* Override any gcc2 internal prototype to avoid an error. */
9281 /* We use char because int might match the return type of a gcc2
9282 builtin and then its argument prototype would still apply. */
9283 char jpeg_read_header();
9284
9285 int main() {
9286 jpeg_read_header()
9287 ; return 0; }
9288 EOF
9289 if { (eval echo configure:9290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9290 rm -rf conftest*
9291 eval "ac_cv_lib_$ac_lib_var=yes"
9292 else
9293 echo "configure: failed program was:" >&5
9294 cat conftest.$ac_ext >&5
9295 rm -rf conftest*
9296 eval "ac_cv_lib_$ac_lib_var=no"
9297 fi
9298 rm -f conftest*
9299 LIBS="$ac_save_LIBS"
9300
9301 fi
9302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9303 echo "$ac_t""yes" 1>&6
9304 JPEG_LINK="-ljpeg"
9305 else
9306 echo "$ac_t""no" 1>&6
9307 fi
9308
9309 fi
9310
9311 if test "x$JPEG_LINK" = "x" ; then
9312 if test "$wxUSE_LIBJPEG" = "sys" ; then
9313 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9314 else
9315 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
9316 wxUSE_LIBJPEG=builtin
9317 fi
9318 else
9319 wxUSE_LIBJPEG=sys
9320 fi
9321 fi
9322
9323 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9324 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9325 fi
9326 fi
9327
9328
9329 TIFF_INCLUDE=
9330 TIFF_LINK=
9331 if test "$wxUSE_LIBTIFF" != "no" ; then
9332 cat >> confdefs.h <<\EOF
9333 #define wxUSE_LIBTIFF 1
9334 EOF
9335
9336
9337 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9338 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9339 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
9340 echo "configure:9341: checking for tiffio.h" >&5
9341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9342 echo $ac_n "(cached) $ac_c" 1>&6
9343 else
9344 cat > conftest.$ac_ext <<EOF
9345 #line 9346 "configure"
9346 #include "confdefs.h"
9347 #include <tiffio.h>
9348 EOF
9349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9350 { (eval echo configure:9351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9351 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9352 if test -z "$ac_err"; then
9353 rm -rf conftest*
9354 eval "ac_cv_header_$ac_safe=yes"
9355 else
9356 echo "$ac_err" >&5
9357 echo "configure: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9359 rm -rf conftest*
9360 eval "ac_cv_header_$ac_safe=no"
9361 fi
9362 rm -f conftest*
9363 fi
9364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9365 echo "$ac_t""yes" 1>&6
9366 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
9367 echo "configure:9368: checking for TIFFError in -ltiff" >&5
9368 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9369 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9370 echo $ac_n "(cached) $ac_c" 1>&6
9371 else
9372 ac_save_LIBS="$LIBS"
9373 LIBS="-ltiff -lm $LIBS"
9374 cat > conftest.$ac_ext <<EOF
9375 #line 9376 "configure"
9376 #include "confdefs.h"
9377 /* Override any gcc2 internal prototype to avoid an error. */
9378 /* We use char because int might match the return type of a gcc2
9379 builtin and then its argument prototype would still apply. */
9380 char TIFFError();
9381
9382 int main() {
9383 TIFFError()
9384 ; return 0; }
9385 EOF
9386 if { (eval echo configure:9387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9387 rm -rf conftest*
9388 eval "ac_cv_lib_$ac_lib_var=yes"
9389 else
9390 echo "configure: failed program was:" >&5
9391 cat conftest.$ac_ext >&5
9392 rm -rf conftest*
9393 eval "ac_cv_lib_$ac_lib_var=no"
9394 fi
9395 rm -f conftest*
9396 LIBS="$ac_save_LIBS"
9397
9398 fi
9399 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9400 echo "$ac_t""yes" 1>&6
9401 TIFF_LINK="-ltiff"
9402 else
9403 echo "$ac_t""no" 1>&6
9404 fi
9405
9406
9407 else
9408 echo "$ac_t""no" 1>&6
9409 fi
9410
9411
9412 if test "x$TIFF_LINK" = "x" ; then
9413 if test "$wxUSE_LIBTIFF" = "sys" ; then
9414 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
9415 else
9416 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
9417 wxUSE_LIBTIFF=builtin
9418 fi
9419 else
9420 wxUSE_LIBTIFF=sys
9421 fi
9422 fi
9423
9424 if test "$wxUSE_LIBTIFF" = "builtin" ; then
9425 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
9426 fi
9427 fi
9428
9429
9430 FREETYPE_INCLUDE=
9431 FREETYPE_LINK=
9432 if test "$wxUSE_FREETYPE" != "no" ; then
9433 cat >> confdefs.h <<\EOF
9434 #define wxUSE_FREETYPE 1
9435 EOF
9436
9437
9438 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
9439 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
9440 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
9441 echo "configure:9442: checking for freetype.h" >&5
9442 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9443 echo $ac_n "(cached) $ac_c" 1>&6
9444 else
9445 cat > conftest.$ac_ext <<EOF
9446 #line 9447 "configure"
9447 #include "confdefs.h"
9448 #include <freetype.h>
9449 EOF
9450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9451 { (eval echo configure:9452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9453 if test -z "$ac_err"; then
9454 rm -rf conftest*
9455 eval "ac_cv_header_$ac_safe=yes"
9456 else
9457 echo "$ac_err" >&5
9458 echo "configure: failed program was:" >&5
9459 cat conftest.$ac_ext >&5
9460 rm -rf conftest*
9461 eval "ac_cv_header_$ac_safe=no"
9462 fi
9463 rm -f conftest*
9464 fi
9465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9466 echo "$ac_t""yes" 1>&6
9467 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
9468 echo "configure:9469: checking for FT_Render_Glyph in -lfreetype" >&5
9469 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
9470 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9471 echo $ac_n "(cached) $ac_c" 1>&6
9472 else
9473 ac_save_LIBS="$LIBS"
9474 LIBS="-lfreetype -lm $LIBS"
9475 cat > conftest.$ac_ext <<EOF
9476 #line 9477 "configure"
9477 #include "confdefs.h"
9478 /* Override any gcc2 internal prototype to avoid an error. */
9479 /* We use char because int might match the return type of a gcc2
9480 builtin and then its argument prototype would still apply. */
9481 char FT_Render_Glyph();
9482
9483 int main() {
9484 FT_Render_Glyph()
9485 ; return 0; }
9486 EOF
9487 if { (eval echo configure:9488: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9488 rm -rf conftest*
9489 eval "ac_cv_lib_$ac_lib_var=yes"
9490 else
9491 echo "configure: failed program was:" >&5
9492 cat conftest.$ac_ext >&5
9493 rm -rf conftest*
9494 eval "ac_cv_lib_$ac_lib_var=no"
9495 fi
9496 rm -f conftest*
9497 LIBS="$ac_save_LIBS"
9498
9499 fi
9500 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9501 echo "$ac_t""yes" 1>&6
9502 FREETYPE_LINK="-lfreetype"
9503 else
9504 echo "$ac_t""no" 1>&6
9505 fi
9506
9507
9508 else
9509 echo "$ac_t""no" 1>&6
9510 fi
9511
9512
9513 if test "x$FREETYPE_LINK" = "x" ; then
9514 if test "$wxUSE_FREETYPE" = "sys" ; then
9515 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
9516 else
9517 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
9518 wxUSE_FREETYPE=builtin
9519 fi
9520 else
9521 wxUSE_FREETYPE=sys
9522 fi
9523 fi
9524
9525 if test "$wxUSE_FREETYPE" = "builtin" ; then
9526 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
9527 fi
9528 fi
9529
9530
9531 AFMINSTALL=
9532
9533 TOOLKIT=
9534 TOOLKIT_INCLUDE=
9535 WIDGET_SET=
9536
9537 if test "$USE_WIN32" = 1 ; then
9538 for ac_hdr in w32api.h
9539 do
9540 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9541 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9542 echo "configure:9543: checking for $ac_hdr" >&5
9543 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9544 echo $ac_n "(cached) $ac_c" 1>&6
9545 else
9546 cat > conftest.$ac_ext <<EOF
9547 #line 9548 "configure"
9548 #include "confdefs.h"
9549 #include <$ac_hdr>
9550 EOF
9551 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9552 { (eval echo configure:9553: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9553 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9554 if test -z "$ac_err"; then
9555 rm -rf conftest*
9556 eval "ac_cv_header_$ac_safe=yes"
9557 else
9558 echo "$ac_err" >&5
9559 echo "configure: failed program was:" >&5
9560 cat conftest.$ac_ext >&5
9561 rm -rf conftest*
9562 eval "ac_cv_header_$ac_safe=no"
9563 fi
9564 rm -f conftest*
9565 fi
9566 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9567 echo "$ac_t""yes" 1>&6
9568 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9569 cat >> confdefs.h <<EOF
9570 #define $ac_tr_hdr 1
9571 EOF
9572
9573 else
9574 echo "$ac_t""no" 1>&6
9575 fi
9576 done
9577
9578 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9579 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
9580 echo "configure:9581: checking for windows.h" >&5
9581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9582 echo $ac_n "(cached) $ac_c" 1>&6
9583 else
9584 cat > conftest.$ac_ext <<EOF
9585 #line 9586 "configure"
9586 #include "confdefs.h"
9587 #include <windows.h>
9588 EOF
9589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9590 { (eval echo configure:9591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9592 if test -z "$ac_err"; then
9593 rm -rf conftest*
9594 eval "ac_cv_header_$ac_safe=yes"
9595 else
9596 echo "$ac_err" >&5
9597 echo "configure: failed program was:" >&5
9598 cat conftest.$ac_ext >&5
9599 rm -rf conftest*
9600 eval "ac_cv_header_$ac_safe=no"
9601 fi
9602 rm -f conftest*
9603 fi
9604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9605 echo "$ac_t""yes" 1>&6
9606 :
9607 else
9608 echo "$ac_t""no" 1>&6
9609
9610 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9611
9612 fi
9613
9614
9615 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
9616 echo "configure:9617: checking if w32api has good enough MSIE support" >&5
9617 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
9618 echo $ac_n "(cached) $ac_c" 1>&6
9619 else
9620
9621 cat > conftest.$ac_ext <<EOF
9622 #line 9623 "configure"
9623 #include "confdefs.h"
9624 #include <w32api.h>
9625 int main() {
9626
9627 #define wxCHECK_W32API_VERSION( major, minor ) \
9628 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9629 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9630 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9631
9632 #if !wxCHECK_W32API_VERSION(1,1)
9633 #error You need w32api 1.1 or newer
9634 #endif
9635
9636 ; return 0; }
9637 EOF
9638 if { (eval echo configure:9639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9639 rm -rf conftest*
9640
9641 wx_cv_w32api_win32_ie=yes
9642
9643 else
9644 echo "configure: failed program was:" >&5
9645 cat conftest.$ac_ext >&5
9646 rm -rf conftest*
9647
9648 wx_cv_w32api_win32_ie=no
9649
9650 fi
9651 rm -f conftest*
9652
9653 fi
9654
9655 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
9656 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
9657 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
9658 fi
9659
9660 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9661
9662 case "${host}" in
9663 *-*-cygwin* )
9664 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9665 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
9666 esac
9667
9668 if test "$wxUSE_ODBC" = "yes" ; then
9669 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
9670 fi
9671
9672 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9673 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9674 fi
9675
9676 if test "$wxUSE_GUI" = "yes"; then
9677 USE_GUI=1
9678
9679 GUI_TK_LIBRARY=
9680
9681 WXGTK12=
9682 WXGTK127=
9683 WXGTK20=
9684
9685 if test "$wxUSE_MSW" = 1 ; then
9686 TOOLKIT=MSW
9687 GUIDIST=MSW_DIST
9688
9689 case "${host}" in
9690 *-*-mingw32* )
9691 EXTRA_LIBS="$EXTRA_LIBS -Wl,--subsystem,windows -mwindows"
9692 esac
9693 fi
9694
9695 if test "$wxUSE_GTK" = 1; then
9696 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9697 echo "configure:9698: checking for GTK+ version" >&5
9698
9699 gtk_version_cached=1
9700 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9701 echo $ac_n "(cached) $ac_c" 1>&6
9702 else
9703
9704 gtk_version_cached=0
9705 echo "$ac_t""""" 1>&6
9706
9707 wx_cv_lib_gtk=
9708 if test "x$wxUSE_GTK2" = "xyes"; then
9709 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9710 if test "${with_gtk_prefix+set}" = set; then
9711 withval="$with_gtk_prefix"
9712 gtk_config_prefix="$withval"
9713 else
9714 gtk_config_prefix=""
9715 fi
9716
9717 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9718 if test "${with_gtk_exec_prefix+set}" = set; then
9719 withval="$with_gtk_exec_prefix"
9720 gtk_config_exec_prefix="$withval"
9721 else
9722 gtk_config_exec_prefix=""
9723 fi
9724
9725 # Check whether --enable-gtktest or --disable-gtktest was given.
9726 if test "${enable_gtktest+set}" = set; then
9727 enableval="$enable_gtktest"
9728 :
9729 else
9730 enable_gtktest=yes
9731 fi
9732
9733
9734 for module in .
9735 do
9736 case "$module" in
9737 gthread)
9738 gtk_config_args="$gtk_config_args gthread"
9739 ;;
9740 esac
9741 done
9742
9743 if test x$gtk_config_exec_prefix != x ; then
9744 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9745 if test x${GTK_CONFIG_2_0+set} != xset ; then
9746 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9747 fi
9748 fi
9749 if test x$gtk_config_prefix != x ; then
9750 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9751 if test x${GTK_CONFIG_2_0+set} != xset ; then
9752 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9753 fi
9754 fi
9755
9756 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9757 set dummy gtk-config-2.0; ac_word=$2
9758 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9759 echo "configure:9760: checking for $ac_word" >&5
9760 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9761 echo $ac_n "(cached) $ac_c" 1>&6
9762 else
9763 case "$GTK_CONFIG_2_0" in
9764 /*)
9765 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9766 ;;
9767 ?:/*)
9768 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9769 ;;
9770 *)
9771 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9772 ac_dummy="$PATH"
9773 for ac_dir in $ac_dummy; do
9774 test -z "$ac_dir" && ac_dir=.
9775 if test -f $ac_dir/$ac_word; then
9776 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9777 break
9778 fi
9779 done
9780 IFS="$ac_save_ifs"
9781 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9782 ;;
9783 esac
9784 fi
9785 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
9786 if test -n "$GTK_CONFIG_2_0"; then
9787 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
9788 else
9789 echo "$ac_t""no" 1>&6
9790 fi
9791
9792 min_gtk_version=1.3.1
9793 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9794 echo "configure:9795: checking for GTK - version >= $min_gtk_version" >&5
9795 no_gtk=""
9796 if test "$GTK_CONFIG_2_0" = "no" ; then
9797 no_gtk=yes
9798 else
9799 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9800 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9801 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9802 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9803 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9804 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9805 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9806 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9807 if test "x$enable_gtktest" = "xyes" ; then
9808 ac_save_CFLAGS="$CFLAGS"
9809 ac_save_LIBS="$LIBS"
9810 CFLAGS="$CFLAGS $GTK_CFLAGS"
9811 LIBS="$GTK_LIBS $LIBS"
9812 rm -f conf.gtktest
9813 if test "$cross_compiling" = yes; then
9814 echo $ac_n "cross compiling; assumed OK... $ac_c"
9815 else
9816 cat > conftest.$ac_ext <<EOF
9817 #line 9818 "configure"
9818 #include "confdefs.h"
9819
9820 #include <gtk/gtk.h>
9821 #include <stdio.h>
9822 #include <stdlib.h>
9823
9824 int
9825 main ()
9826 {
9827 int major, minor, micro;
9828 char *tmp_version;
9829
9830 system ("touch conf.gtktest");
9831
9832 /* HP/UX 9 (%@#!) writes to sscanf strings */
9833 tmp_version = g_strdup("$min_gtk_version");
9834 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9835 printf("%s, bad version string\n", "$min_gtk_version");
9836 exit(1);
9837 }
9838
9839 if ((gtk_major_version != $gtk_config_major_version) ||
9840 (gtk_minor_version != $gtk_config_minor_version) ||
9841 (gtk_micro_version != $gtk_config_micro_version))
9842 {
9843 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
9844 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9845 gtk_major_version, gtk_minor_version, gtk_micro_version);
9846 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9847 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9848 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9849 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9850 printf("*** required on your system.\n");
9851 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9852 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9853 printf("*** before re-running configure\n");
9854 }
9855 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9856 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9857 (gtk_minor_version != GTK_MINOR_VERSION) ||
9858 (gtk_micro_version != GTK_MICRO_VERSION))
9859 {
9860 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9861 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9862 printf("*** library (version %d.%d.%d)\n",
9863 gtk_major_version, gtk_minor_version, gtk_micro_version);
9864 }
9865 #endif /* defined (GTK_MAJOR_VERSION) ... */
9866 else
9867 {
9868 if ((gtk_major_version > major) ||
9869 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9870 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9871 {
9872 return 0;
9873 }
9874 else
9875 {
9876 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9877 gtk_major_version, gtk_minor_version, gtk_micro_version);
9878 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9879 major, minor, micro);
9880 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9881 printf("***\n");
9882 printf("*** If you have already installed a sufficiently new version, this error\n");
9883 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9884 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9885 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9886 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9887 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9888 printf("*** so that the correct libraries are found at run-time))\n");
9889 }
9890 }
9891 return 1;
9892 }
9893
9894 EOF
9895 if { (eval echo configure:9896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9896 then
9897 :
9898 else
9899 echo "configure: failed program was:" >&5
9900 cat conftest.$ac_ext >&5
9901 rm -fr conftest*
9902 no_gtk=yes
9903 fi
9904 rm -fr conftest*
9905 fi
9906
9907 CFLAGS="$ac_save_CFLAGS"
9908 LIBS="$ac_save_LIBS"
9909 fi
9910 fi
9911 if test "x$no_gtk" = x ; then
9912 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9913 wx_cv_lib_gtk=2.0
9914 else
9915 echo "$ac_t""no" 1>&6
9916 if test "$GTK_CONFIG_2_0" = "no" ; then
9917 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9918 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9919 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9920 echo "*** full path to gtk-config-2.0."
9921 else
9922 if test -f conf.gtktest ; then
9923 :
9924 else
9925 echo "*** Could not run GTK test program, checking why..."
9926 CFLAGS="$CFLAGS $GTK_CFLAGS"
9927 LIBS="$LIBS $GTK_LIBS"
9928 cat > conftest.$ac_ext <<EOF
9929 #line 9930 "configure"
9930 #include "confdefs.h"
9931
9932 #include <gtk/gtk.h>
9933 #include <stdio.h>
9934
9935 int main() {
9936 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9937 ; return 0; }
9938 EOF
9939 if { (eval echo configure:9940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9940 rm -rf conftest*
9941 echo "*** The test program compiled, but did not run. This usually means"
9942 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9943 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9944 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9945 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9946 echo "*** is required on your system"
9947 echo "***"
9948 echo "*** If you have an old version installed, it is best to remove it, although"
9949 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9950 echo "***"
9951 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9952 echo "*** came with the system with the command"
9953 echo "***"
9954 echo "*** rpm --erase --nodeps gtk gtk-devel"
9955 else
9956 echo "configure: failed program was:" >&5
9957 cat conftest.$ac_ext >&5
9958 rm -rf conftest*
9959 echo "*** The test program failed to compile or link. See the file config.log for the"
9960 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9961 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
9962 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
9963 fi
9964 rm -f conftest*
9965 CFLAGS="$ac_save_CFLAGS"
9966 LIBS="$ac_save_LIBS"
9967 fi
9968 fi
9969 GTK_CFLAGS=""
9970 GTK_LIBS=""
9971 gthread
9972 fi
9973
9974
9975 rm -f conf.gtktest
9976
9977 fi
9978
9979 if test -z "$wx_cv_lib_gtk"; then
9980
9981 if test x$gtk_config_exec_prefix != x ; then
9982 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9983 if test x${GTK_CONFIG+set} != xset ; then
9984 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9985 fi
9986 fi
9987 if test x$gtk_config_prefix != x ; then
9988 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9989 if test x${GTK_CONFIG+set} != xset ; then
9990 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9991 fi
9992 fi
9993
9994 # Extract the first word of "gtk-config", so it can be a program name with args.
9995 set dummy gtk-config; ac_word=$2
9996 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9997 echo "configure:9998: checking for $ac_word" >&5
9998 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9999 echo $ac_n "(cached) $ac_c" 1>&6
10000 else
10001 case "$GTK_CONFIG" in
10002 /*)
10003 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10004 ;;
10005 ?:/*)
10006 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10007 ;;
10008 *)
10009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10010 ac_dummy="$PATH"
10011 for ac_dir in $ac_dummy; do
10012 test -z "$ac_dir" && ac_dir=.
10013 if test -f $ac_dir/$ac_word; then
10014 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10015 break
10016 fi
10017 done
10018 IFS="$ac_save_ifs"
10019 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10020 ;;
10021 esac
10022 fi
10023 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10024 if test -n "$GTK_CONFIG"; then
10025 echo "$ac_t""$GTK_CONFIG" 1>&6
10026 else
10027 echo "$ac_t""no" 1>&6
10028 fi
10029
10030 min_gtk_version=1.2.7
10031 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10032 echo "configure:10033: checking for GTK - version >= $min_gtk_version" >&5
10033 no_gtk=""
10034 if test "$GTK_CONFIG" != "no" ; then
10035 GTK_CFLAGS=`$GTK_CONFIG --cflags`
10036 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10037 ac_save_CFLAGS="$CFLAGS"
10038 ac_save_LIBS="$LIBS"
10039 CFLAGS="$CFLAGS $GTK_CFLAGS"
10040 LIBS="$LIBS $GTK_LIBS"
10041 if test "$cross_compiling" = yes; then
10042 echo $ac_n "cross compiling; assumed OK... $ac_c"
10043 else
10044 cat > conftest.$ac_ext <<EOF
10045 #line 10046 "configure"
10046 #include "confdefs.h"
10047
10048 #include <gtk/gtk.h>
10049 #include <gtk/gtkfeatures.h>
10050 #include <stdio.h>
10051 #include <stdlib.h>
10052
10053 int
10054 main ()
10055 {
10056 int major, minor, micro;
10057
10058 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10059 printf("%s, bad version string\n", "$min_gtk_version");
10060 exit(1);
10061 }
10062
10063 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10064 (GTK_MINOR_VERSION != gtk_minor_version) ||
10065 (GTK_MICRO_VERSION != gtk_micro_version)) {
10066 printf("Headers vs. library version mismatch!\n");
10067 exit(1);
10068 }
10069
10070 if (gtk_minor_version == 1) return FALSE;
10071
10072 return !((gtk_major_version > major) ||
10073 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10074 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10075 }
10076
10077 EOF
10078 if { (eval echo configure:10079: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10079 then
10080 :
10081 else
10082 echo "configure: failed program was:" >&5
10083 cat conftest.$ac_ext >&5
10084 rm -fr conftest*
10085 no_gtk=yes
10086 fi
10087 rm -fr conftest*
10088 fi
10089
10090 CFLAGS="$ac_save_CFLAGS"
10091 LIBS="$ac_save_LIBS"
10092 else
10093 no_gtk=yes
10094 fi
10095 if test "x$no_gtk" = x ; then
10096 echo "$ac_t""yes" 1>&6
10097 wx_cv_lib_gtk=1.2.7
10098 else
10099 echo "$ac_t""no" 1>&6
10100 GTK_CFLAGS=""
10101 GTK_LIBS=""
10102 :
10103 fi
10104
10105
10106
10107 fi
10108
10109 if test -z "$wx_cv_lib_gtk"; then
10110
10111 if test x$gtk_config_exec_prefix != x ; then
10112 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10113 if test x${GTK_CONFIG+set} != xset ; then
10114 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10115 fi
10116 fi
10117 if test x$gtk_config_prefix != x ; then
10118 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10119 if test x${GTK_CONFIG+set} != xset ; then
10120 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10121 fi
10122 fi
10123
10124 # Extract the first word of "gtk-config", so it can be a program name with args.
10125 set dummy gtk-config; ac_word=$2
10126 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10127 echo "configure:10128: checking for $ac_word" >&5
10128 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10129 echo $ac_n "(cached) $ac_c" 1>&6
10130 else
10131 case "$GTK_CONFIG" in
10132 /*)
10133 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10134 ;;
10135 ?:/*)
10136 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10137 ;;
10138 *)
10139 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10140 ac_dummy="$PATH"
10141 for ac_dir in $ac_dummy; do
10142 test -z "$ac_dir" && ac_dir=.
10143 if test -f $ac_dir/$ac_word; then
10144 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10145 break
10146 fi
10147 done
10148 IFS="$ac_save_ifs"
10149 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10150 ;;
10151 esac
10152 fi
10153 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10154 if test -n "$GTK_CONFIG"; then
10155 echo "$ac_t""$GTK_CONFIG" 1>&6
10156 else
10157 echo "$ac_t""no" 1>&6
10158 fi
10159
10160 min_gtk_version=1.2.3
10161 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10162 echo "configure:10163: checking for GTK - version >= $min_gtk_version" >&5
10163 no_gtk=""
10164 if test "$GTK_CONFIG" != "no" ; then
10165 GTK_CFLAGS=`$GTK_CONFIG --cflags`
10166 GTK_LIBS=`$GTK_CONFIG --libs gthread`
10167 ac_save_CFLAGS="$CFLAGS"
10168 ac_save_LIBS="$LIBS"
10169 CFLAGS="$CFLAGS $GTK_CFLAGS"
10170 LIBS="$LIBS $GTK_LIBS"
10171 if test "$cross_compiling" = yes; then
10172 echo $ac_n "cross compiling; assumed OK... $ac_c"
10173 else
10174 cat > conftest.$ac_ext <<EOF
10175 #line 10176 "configure"
10176 #include "confdefs.h"
10177
10178 #include <gtk/gtk.h>
10179 #include <gtk/gtkfeatures.h>
10180 #include <stdio.h>
10181 #include <stdlib.h>
10182
10183 int
10184 main ()
10185 {
10186 int major, minor, micro;
10187
10188 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
10189 printf("%s, bad version string\n", "$min_gtk_version");
10190 exit(1);
10191 }
10192
10193 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
10194 (GTK_MINOR_VERSION != gtk_minor_version) ||
10195 (GTK_MICRO_VERSION != gtk_micro_version)) {
10196 printf("Headers vs. library version mismatch!\n");
10197 exit(1);
10198 }
10199
10200 if (gtk_minor_version == 1) return FALSE;
10201
10202 return !((gtk_major_version > major) ||
10203 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10204 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
10205 }
10206
10207 EOF
10208 if { (eval echo configure:10209: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10209 then
10210 :
10211 else
10212 echo "configure: failed program was:" >&5
10213 cat conftest.$ac_ext >&5
10214 rm -fr conftest*
10215 no_gtk=yes
10216 fi
10217 rm -fr conftest*
10218 fi
10219
10220 CFLAGS="$ac_save_CFLAGS"
10221 LIBS="$ac_save_LIBS"
10222 else
10223 no_gtk=yes
10224 fi
10225 if test "x$no_gtk" = x ; then
10226 echo "$ac_t""yes" 1>&6
10227 wx_cv_lib_gtk=1.2.3
10228 else
10229 echo "$ac_t""no" 1>&6
10230 GTK_CFLAGS=""
10231 GTK_LIBS=""
10232 :
10233 fi
10234
10235
10236
10237 fi
10238
10239 if test -z "$wx_cv_lib_gtk"; then
10240 wx_cv_lib_gtk=none
10241 else
10242 wx_cv_cflags_gtk=$GTK_CFLAGS
10243 wx_cv_libs_gtk=$GTK_LIBS
10244 fi
10245
10246
10247 fi
10248
10249
10250 if test "$gtk_version_cached" = 1; then
10251 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
10252 fi
10253
10254 case "$wx_cv_lib_gtk" in
10255 2.0) WXGTK20=1
10256 ;;
10257 1.2.7) WXGTK127=1
10258 WXGTK12=1
10259 ;;
10260 1.2.3) WXGTK12=1
10261 ;;
10262 *) { echo "configure: error:
10263 Please check that gtk-config is in path, the directory
10264 where GTK+ libraries are installed (returned by
10265 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
10266 equivalent variable and GTK+ is version 1.2.3 or above.
10267 " 1>&2; exit 1; }
10268 ;;
10269 esac
10270
10271 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
10272 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
10273
10274 AFMINSTALL=afminstall
10275 TOOLKIT=GTK
10276 GUIDIST=GTK_DIST
10277
10278 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
10279 echo "configure:10280: checking for gdk_im_open in -lgdk" >&5
10280 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
10281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10282 echo $ac_n "(cached) $ac_c" 1>&6
10283 else
10284 ac_save_LIBS="$LIBS"
10285 LIBS="-lgdk $LIBS"
10286 cat > conftest.$ac_ext <<EOF
10287 #line 10288 "configure"
10288 #include "confdefs.h"
10289 /* Override any gcc2 internal prototype to avoid an error. */
10290 /* We use char because int might match the return type of a gcc2
10291 builtin and then its argument prototype would still apply. */
10292 char gdk_im_open();
10293
10294 int main() {
10295 gdk_im_open()
10296 ; return 0; }
10297 EOF
10298 if { (eval echo configure:10299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10299 rm -rf conftest*
10300 eval "ac_cv_lib_$ac_lib_var=yes"
10301 else
10302 echo "configure: failed program was:" >&5
10303 cat conftest.$ac_ext >&5
10304 rm -rf conftest*
10305 eval "ac_cv_lib_$ac_lib_var=no"
10306 fi
10307 rm -f conftest*
10308 LIBS="$ac_save_LIBS"
10309
10310 fi
10311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10312 echo "$ac_t""yes" 1>&6
10313 cat >> confdefs.h <<\EOF
10314 #define HAVE_XIM 1
10315 EOF
10316
10317 else
10318 echo "$ac_t""no" 1>&6
10319 fi
10320
10321 fi
10322
10323 if test "$wxUSE_MGL" = 1; then
10324
10325 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
10326 echo "configure:10327: checking for SciTech MGL library" >&5
10327 if test "x$MGL_ROOT" = x ; then
10328 echo "$ac_t""not found" 1>&6
10329 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
10330 else
10331 echo "$ac_t""$MGL_ROOT" 1>&6
10332 fi
10333
10334 mgl_os=linux/gcc/glibc
10335 mgl_lib_type=""
10336
10337 if test "$wxUSE_DEBUG_FLAG" = yes ; then
10338 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a ; then
10339 mgl_lib_type=debug
10340 fi
10341 fi
10342 if test "x$mgl_lib_type" = x ; then
10343 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a ; then
10344 mgl_lib_type=release
10345 else
10346 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
10347 fi
10348 fi
10349
10350 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
10351 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
10352
10353 AFMINSTALL=afminstall
10354 TOOLKIT=MGL
10355 GUIDIST=MGL_DIST
10356 fi
10357
10358 if test "$wxUSE_WINE" = 1; then
10359 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10360 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10361 echo "configure:10362: checking for windows.h" >&5
10362 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10363 echo $ac_n "(cached) $ac_c" 1>&6
10364 else
10365 cat > conftest.$ac_ext <<EOF
10366 #line 10367 "configure"
10367 #include "confdefs.h"
10368 #include <windows.h>
10369 EOF
10370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10371 { (eval echo configure:10372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10372 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10373 if test -z "$ac_err"; then
10374 rm -rf conftest*
10375 eval "ac_cv_header_$ac_safe=yes"
10376 else
10377 echo "$ac_err" >&5
10378 echo "configure: failed program was:" >&5
10379 cat conftest.$ac_ext >&5
10380 rm -rf conftest*
10381 eval "ac_cv_header_$ac_safe=no"
10382 fi
10383 rm -f conftest*
10384 fi
10385 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10386 echo "$ac_t""yes" 1>&6
10387 :
10388 else
10389 echo "$ac_t""no" 1>&6
10390
10391 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10392
10393 fi
10394
10395
10396 xpm_link=""
10397 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10398 echo "configure:10399: checking for Xpm library" >&5
10399
10400 ac_find_libraries=
10401 for ac_dir in $SEARCH_LIB;
10402 do
10403 for ac_extension in a so sl dylib; do
10404 if test -f "$ac_dir/libXpm.$ac_extension"; then
10405 ac_find_libraries=$ac_dir
10406 break 2
10407 fi
10408 done
10409 done
10410
10411 if test "$ac_find_libraries" != "" ; then
10412 GUI_TK_LIBRARY="-L$ac_find_libraries"
10413 xpm_link="-lXpm"
10414 cat >> confdefs.h <<\EOF
10415 #define wxHAVE_LIB_XPM 1
10416 EOF
10417
10418 echo "$ac_t""found at $ac_find_libraries" 1>&6
10419 else
10420 echo "$ac_t""no" 1>&6
10421 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10422 fi
10423
10424 mesa_link=""
10425 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
10426 echo "configure:10427: checking for Mesa library" >&5
10427
10428 ac_find_libraries=
10429 for ac_dir in $SEARCH_LIB;
10430 do
10431 for ac_extension in a so sl dylib; do
10432 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
10433 ac_find_libraries=$ac_dir
10434 break 2
10435 fi
10436 done
10437 done
10438
10439 if test "$ac_find_libraries" != "" ; then
10440 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
10441 mesa_link="-lMesaGL"
10442 echo "$ac_t""found at $ac_find_libraries" 1>&6
10443 else
10444 { echo "configure: error: no" 1>&2; exit 1; }
10445 fi
10446
10447 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine $mesa_link $xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10448 TOOLKIT=MSW
10449 GUIDIST=MSW_DIST
10450 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
10451 fi
10452
10453 if test "$wxUSE_MOTIF" = 1; then
10454 # If we find X, set shell vars x_includes and x_libraries to the
10455 # paths, otherwise set no_x=yes.
10456 # Uses ac_ vars as temps to allow command line to override cache and checks.
10457 # --without-x overrides everything else, but does not touch the cache.
10458 echo $ac_n "checking for X""... $ac_c" 1>&6
10459 echo "configure:10460: checking for X" >&5
10460
10461 # Check whether --with-x or --without-x was given.
10462 if test "${with_x+set}" = set; then
10463 withval="$with_x"
10464 :
10465 fi
10466
10467 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10468 if test "x$with_x" = xno; then
10469 # The user explicitly disabled X.
10470 have_x=disabled
10471 else
10472 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10473 # Both variables are already set.
10474 have_x=yes
10475 else
10476 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
10477 echo $ac_n "(cached) $ac_c" 1>&6
10478 else
10479 # One or both of the vars are not set, and there is no cached value.
10480 ac_x_includes=NO ac_x_libraries=NO
10481 rm -fr conftestdir
10482 if mkdir conftestdir; then
10483 cd conftestdir
10484 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
10485 cat > Imakefile <<'EOF'
10486 acfindx:
10487 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
10488 EOF
10489 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
10490 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10491 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
10492 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10493 for ac_extension in a so sl; do
10494 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
10495 test -f $ac_im_libdir/libX11.$ac_extension; then
10496 ac_im_usrlibdir=$ac_im_libdir; break
10497 fi
10498 done
10499 # Screen out bogus values from the imake configuration. They are
10500 # bogus both because they are the default anyway, and because
10501 # using them would break gcc on systems where it needs fixed includes.
10502 case "$ac_im_incroot" in
10503 /usr/include) ;;
10504 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
10505 esac
10506 case "$ac_im_usrlibdir" in
10507 /usr/lib | /lib) ;;
10508 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
10509 esac
10510 fi
10511 cd ..
10512 rm -fr conftestdir
10513 fi
10514
10515 if test "$ac_x_includes" = NO; then
10516 # Guess where to find include files, by looking for this one X11 .h file.
10517 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
10518
10519 # First, try using that file with no special directory specified.
10520 cat > conftest.$ac_ext <<EOF
10521 #line 10522 "configure"
10522 #include "confdefs.h"
10523 #include <$x_direct_test_include>
10524 EOF
10525 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10526 { (eval echo configure:10527: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10527 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10528 if test -z "$ac_err"; then
10529 rm -rf conftest*
10530 # We can compile using X headers with no special include directory.
10531 ac_x_includes=
10532 else
10533 echo "$ac_err" >&5
10534 echo "configure: failed program was:" >&5
10535 cat conftest.$ac_ext >&5
10536 rm -rf conftest*
10537 # Look for the header file in a standard set of common directories.
10538 # Check X11 before X11Rn because it is often a symlink to the current release.
10539 for ac_dir in \
10540 /usr/X11/include \
10541 /usr/X11R6/include \
10542 /usr/X11R5/include \
10543 /usr/X11R4/include \
10544 \
10545 /usr/include/X11 \
10546 /usr/include/X11R6 \
10547 /usr/include/X11R5 \
10548 /usr/include/X11R4 \
10549 \
10550 /usr/local/X11/include \
10551 /usr/local/X11R6/include \
10552 /usr/local/X11R5/include \
10553 /usr/local/X11R4/include \
10554 \
10555 /usr/local/include/X11 \
10556 /usr/local/include/X11R6 \
10557 /usr/local/include/X11R5 \
10558 /usr/local/include/X11R4 \
10559 \
10560 /usr/X386/include \
10561 /usr/x386/include \
10562 /usr/XFree86/include/X11 \
10563 \
10564 /usr/include \
10565 /usr/local/include \
10566 /usr/unsupported/include \
10567 /usr/athena/include \
10568 /usr/local/x11r5/include \
10569 /usr/lpp/Xamples/include \
10570 \
10571 /usr/openwin/include \
10572 /usr/openwin/share/include \
10573 ; \
10574 do
10575 if test -r "$ac_dir/$x_direct_test_include"; then
10576 ac_x_includes=$ac_dir
10577 break
10578 fi
10579 done
10580 fi
10581 rm -f conftest*
10582 fi # $ac_x_includes = NO
10583
10584 if test "$ac_x_libraries" = NO; then
10585 # Check for the libraries.
10586
10587 test -z "$x_direct_test_library" && x_direct_test_library=Xt
10588 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
10589
10590 # See if we find them without any special options.
10591 # Don't add to $LIBS permanently.
10592 ac_save_LIBS="$LIBS"
10593 LIBS="-l$x_direct_test_library $LIBS"
10594 cat > conftest.$ac_ext <<EOF
10595 #line 10596 "configure"
10596 #include "confdefs.h"
10597
10598 int main() {
10599 ${x_direct_test_function}()
10600 ; return 0; }
10601 EOF
10602 if { (eval echo configure:10603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10603 rm -rf conftest*
10604 LIBS="$ac_save_LIBS"
10605 # We can link X programs with no special library path.
10606 ac_x_libraries=
10607 else
10608 echo "configure: failed program was:" >&5
10609 cat conftest.$ac_ext >&5
10610 rm -rf conftest*
10611 LIBS="$ac_save_LIBS"
10612 # First see if replacing the include by lib works.
10613 # Check X11 before X11Rn because it is often a symlink to the current release.
10614 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
10615 /usr/X11/lib \
10616 /usr/X11R6/lib \
10617 /usr/X11R5/lib \
10618 /usr/X11R4/lib \
10619 \
10620 /usr/lib/X11 \
10621 /usr/lib/X11R6 \
10622 /usr/lib/X11R5 \
10623 /usr/lib/X11R4 \
10624 \
10625 /usr/local/X11/lib \
10626 /usr/local/X11R6/lib \
10627 /usr/local/X11R5/lib \
10628 /usr/local/X11R4/lib \
10629 \
10630 /usr/local/lib/X11 \
10631 /usr/local/lib/X11R6 \
10632 /usr/local/lib/X11R5 \
10633 /usr/local/lib/X11R4 \
10634 \
10635 /usr/X386/lib \
10636 /usr/x386/lib \
10637 /usr/XFree86/lib/X11 \
10638 \
10639 /usr/lib \
10640 /usr/local/lib \
10641 /usr/unsupported/lib \
10642 /usr/athena/lib \
10643 /usr/local/x11r5/lib \
10644 /usr/lpp/Xamples/lib \
10645 /lib/usr/lib/X11 \
10646 \
10647 /usr/openwin/lib \
10648 /usr/openwin/share/lib \
10649 ; \
10650 do
10651 for ac_extension in a so sl; do
10652 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
10653 ac_x_libraries=$ac_dir
10654 break 2
10655 fi
10656 done
10657 done
10658 fi
10659 rm -f conftest*
10660 fi # $ac_x_libraries = NO
10661
10662 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
10663 # Didn't find X anywhere. Cache the known absence of X.
10664 ac_cv_have_x="have_x=no"
10665 else
10666 # Record where we found X for the cache.
10667 ac_cv_have_x="have_x=yes \
10668 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
10669 fi
10670 fi
10671 fi
10672 eval "$ac_cv_have_x"
10673 fi # $with_x != no
10674
10675 if test "$have_x" != yes; then
10676 echo "$ac_t""$have_x" 1>&6
10677 no_x=yes
10678 else
10679 # If each of the values was on the command line, it overrides each guess.
10680 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10681 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10682 # Update the cache value to reflect the command line values.
10683 ac_cv_have_x="have_x=yes \
10684 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10685 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10686 fi
10687
10688 if test "$no_x" = yes; then
10689 # Not all programs may use this symbol, but it does not hurt to define it.
10690 cat >> confdefs.h <<\EOF
10691 #define X_DISPLAY_MISSING 1
10692 EOF
10693
10694 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10695 else
10696 if test -n "$x_includes"; then
10697 X_CFLAGS="$X_CFLAGS -I$x_includes"
10698 fi
10699
10700 # It would also be nice to do this for all -L options, not just this one.
10701 if test -n "$x_libraries"; then
10702 X_LIBS="$X_LIBS -L$x_libraries"
10703 # For Solaris; some versions of Sun CC require a space after -R and
10704 # others require no space. Words are not sufficient . . . .
10705 case "`(uname -sr) 2>/dev/null`" in
10706 "SunOS 5"*)
10707 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
10708 echo "configure:10709: checking whether -R must be followed by a space" >&5
10709 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10710 cat > conftest.$ac_ext <<EOF
10711 #line 10712 "configure"
10712 #include "confdefs.h"
10713
10714 int main() {
10715
10716 ; return 0; }
10717 EOF
10718 if { (eval echo configure:10719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10719 rm -rf conftest*
10720 ac_R_nospace=yes
10721 else
10722 echo "configure: failed program was:" >&5
10723 cat conftest.$ac_ext >&5
10724 rm -rf conftest*
10725 ac_R_nospace=no
10726 fi
10727 rm -f conftest*
10728 if test $ac_R_nospace = yes; then
10729 echo "$ac_t""no" 1>&6
10730 X_LIBS="$X_LIBS -R$x_libraries"
10731 else
10732 LIBS="$ac_xsave_LIBS -R $x_libraries"
10733 cat > conftest.$ac_ext <<EOF
10734 #line 10735 "configure"
10735 #include "confdefs.h"
10736
10737 int main() {
10738
10739 ; return 0; }
10740 EOF
10741 if { (eval echo configure:10742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10742 rm -rf conftest*
10743 ac_R_space=yes
10744 else
10745 echo "configure: failed program was:" >&5
10746 cat conftest.$ac_ext >&5
10747 rm -rf conftest*
10748 ac_R_space=no
10749 fi
10750 rm -f conftest*
10751 if test $ac_R_space = yes; then
10752 echo "$ac_t""yes" 1>&6
10753 X_LIBS="$X_LIBS -R $x_libraries"
10754 else
10755 echo "$ac_t""neither works" 1>&6
10756 fi
10757 fi
10758 LIBS="$ac_xsave_LIBS"
10759 esac
10760 fi
10761
10762 # Check for system-dependent libraries X programs must link with.
10763 # Do this before checking for the system-independent R6 libraries
10764 # (-lICE), since we may need -lsocket or whatever for X linking.
10765
10766 if test "$ISC" = yes; then
10767 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10768 else
10769 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10770 # libraries were built with DECnet support. And karl@cs.umb.edu says
10771 # the Alpha needs dnet_stub (dnet does not exist).
10772 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
10773 echo "configure:10774: checking for dnet_ntoa in -ldnet" >&5
10774 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10776 echo $ac_n "(cached) $ac_c" 1>&6
10777 else
10778 ac_save_LIBS="$LIBS"
10779 LIBS="-ldnet $LIBS"
10780 cat > conftest.$ac_ext <<EOF
10781 #line 10782 "configure"
10782 #include "confdefs.h"
10783 /* Override any gcc2 internal prototype to avoid an error. */
10784 /* We use char because int might match the return type of a gcc2
10785 builtin and then its argument prototype would still apply. */
10786 char dnet_ntoa();
10787
10788 int main() {
10789 dnet_ntoa()
10790 ; return 0; }
10791 EOF
10792 if { (eval echo configure:10793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10793 rm -rf conftest*
10794 eval "ac_cv_lib_$ac_lib_var=yes"
10795 else
10796 echo "configure: failed program was:" >&5
10797 cat conftest.$ac_ext >&5
10798 rm -rf conftest*
10799 eval "ac_cv_lib_$ac_lib_var=no"
10800 fi
10801 rm -f conftest*
10802 LIBS="$ac_save_LIBS"
10803
10804 fi
10805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10806 echo "$ac_t""yes" 1>&6
10807 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10808 else
10809 echo "$ac_t""no" 1>&6
10810 fi
10811
10812 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10813 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
10814 echo "configure:10815: checking for dnet_ntoa in -ldnet_stub" >&5
10815 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10817 echo $ac_n "(cached) $ac_c" 1>&6
10818 else
10819 ac_save_LIBS="$LIBS"
10820 LIBS="-ldnet_stub $LIBS"
10821 cat > conftest.$ac_ext <<EOF
10822 #line 10823 "configure"
10823 #include "confdefs.h"
10824 /* Override any gcc2 internal prototype to avoid an error. */
10825 /* We use char because int might match the return type of a gcc2
10826 builtin and then its argument prototype would still apply. */
10827 char dnet_ntoa();
10828
10829 int main() {
10830 dnet_ntoa()
10831 ; return 0; }
10832 EOF
10833 if { (eval echo configure:10834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10834 rm -rf conftest*
10835 eval "ac_cv_lib_$ac_lib_var=yes"
10836 else
10837 echo "configure: failed program was:" >&5
10838 cat conftest.$ac_ext >&5
10839 rm -rf conftest*
10840 eval "ac_cv_lib_$ac_lib_var=no"
10841 fi
10842 rm -f conftest*
10843 LIBS="$ac_save_LIBS"
10844
10845 fi
10846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10847 echo "$ac_t""yes" 1>&6
10848 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10849 else
10850 echo "$ac_t""no" 1>&6
10851 fi
10852
10853 fi
10854
10855 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10856 # to get the SysV transport functions.
10857 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10858 # needs -lnsl.
10859 # The nsl library prevents programs from opening the X display
10860 # on Irix 5.2, according to dickey@clark.net.
10861 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
10862 echo "configure:10863: checking for gethostbyname" >&5
10863 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10864 echo $ac_n "(cached) $ac_c" 1>&6
10865 else
10866 cat > conftest.$ac_ext <<EOF
10867 #line 10868 "configure"
10868 #include "confdefs.h"
10869 /* System header to define __stub macros and hopefully few prototypes,
10870 which can conflict with char gethostbyname(); below. */
10871 #include <assert.h>
10872 /* Override any gcc2 internal prototype to avoid an error. */
10873 /* We use char because int might match the return type of a gcc2
10874 builtin and then its argument prototype would still apply. */
10875 char gethostbyname();
10876
10877 int main() {
10878
10879 /* The GNU C library defines this for functions which it implements
10880 to always fail with ENOSYS. Some functions are actually named
10881 something starting with __ and the normal name is an alias. */
10882 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10883 choke me
10884 #else
10885 gethostbyname();
10886 #endif
10887
10888 ; return 0; }
10889 EOF
10890 if { (eval echo configure:10891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10891 rm -rf conftest*
10892 eval "ac_cv_func_gethostbyname=yes"
10893 else
10894 echo "configure: failed program was:" >&5
10895 cat conftest.$ac_ext >&5
10896 rm -rf conftest*
10897 eval "ac_cv_func_gethostbyname=no"
10898 fi
10899 rm -f conftest*
10900 fi
10901
10902 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10903 echo "$ac_t""yes" 1>&6
10904 :
10905 else
10906 echo "$ac_t""no" 1>&6
10907 fi
10908
10909 if test $ac_cv_func_gethostbyname = no; then
10910 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
10911 echo "configure:10912: checking for gethostbyname in -lnsl" >&5
10912 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10913 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10914 echo $ac_n "(cached) $ac_c" 1>&6
10915 else
10916 ac_save_LIBS="$LIBS"
10917 LIBS="-lnsl $LIBS"
10918 cat > conftest.$ac_ext <<EOF
10919 #line 10920 "configure"
10920 #include "confdefs.h"
10921 /* Override any gcc2 internal prototype to avoid an error. */
10922 /* We use char because int might match the return type of a gcc2
10923 builtin and then its argument prototype would still apply. */
10924 char gethostbyname();
10925
10926 int main() {
10927 gethostbyname()
10928 ; return 0; }
10929 EOF
10930 if { (eval echo configure:10931: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10931 rm -rf conftest*
10932 eval "ac_cv_lib_$ac_lib_var=yes"
10933 else
10934 echo "configure: failed program was:" >&5
10935 cat conftest.$ac_ext >&5
10936 rm -rf conftest*
10937 eval "ac_cv_lib_$ac_lib_var=no"
10938 fi
10939 rm -f conftest*
10940 LIBS="$ac_save_LIBS"
10941
10942 fi
10943 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10944 echo "$ac_t""yes" 1>&6
10945 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10946 else
10947 echo "$ac_t""no" 1>&6
10948 fi
10949
10950 fi
10951
10952 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10953 # socket/setsockopt and other routines are undefined under SCO ODT
10954 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10955 # on later versions), says simon@lia.di.epfl.ch: it contains
10956 # gethostby* variants that don't use the nameserver (or something).
10957 # -lsocket must be given before -lnsl if both are needed.
10958 # We assume that if connect needs -lnsl, so does gethostbyname.
10959 echo $ac_n "checking for connect""... $ac_c" 1>&6
10960 echo "configure:10961: checking for connect" >&5
10961 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10962 echo $ac_n "(cached) $ac_c" 1>&6
10963 else
10964 cat > conftest.$ac_ext <<EOF
10965 #line 10966 "configure"
10966 #include "confdefs.h"
10967 /* System header to define __stub macros and hopefully few prototypes,
10968 which can conflict with char connect(); below. */
10969 #include <assert.h>
10970 /* Override any gcc2 internal prototype to avoid an error. */
10971 /* We use char because int might match the return type of a gcc2
10972 builtin and then its argument prototype would still apply. */
10973 char connect();
10974
10975 int main() {
10976
10977 /* The GNU C library defines this for functions which it implements
10978 to always fail with ENOSYS. Some functions are actually named
10979 something starting with __ and the normal name is an alias. */
10980 #if defined (__stub_connect) || defined (__stub___connect)
10981 choke me
10982 #else
10983 connect();
10984 #endif
10985
10986 ; return 0; }
10987 EOF
10988 if { (eval echo configure:10989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10989 rm -rf conftest*
10990 eval "ac_cv_func_connect=yes"
10991 else
10992 echo "configure: failed program was:" >&5
10993 cat conftest.$ac_ext >&5
10994 rm -rf conftest*
10995 eval "ac_cv_func_connect=no"
10996 fi
10997 rm -f conftest*
10998 fi
10999
11000 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11001 echo "$ac_t""yes" 1>&6
11002 :
11003 else
11004 echo "$ac_t""no" 1>&6
11005 fi
11006
11007 if test $ac_cv_func_connect = no; then
11008 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
11009 echo "configure:11010: checking for connect in -lsocket" >&5
11010 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11011 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11012 echo $ac_n "(cached) $ac_c" 1>&6
11013 else
11014 ac_save_LIBS="$LIBS"
11015 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11016 cat > conftest.$ac_ext <<EOF
11017 #line 11018 "configure"
11018 #include "confdefs.h"
11019 /* Override any gcc2 internal prototype to avoid an error. */
11020 /* We use char because int might match the return type of a gcc2
11021 builtin and then its argument prototype would still apply. */
11022 char connect();
11023
11024 int main() {
11025 connect()
11026 ; return 0; }
11027 EOF
11028 if { (eval echo configure:11029: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11029 rm -rf conftest*
11030 eval "ac_cv_lib_$ac_lib_var=yes"
11031 else
11032 echo "configure: failed program was:" >&5
11033 cat conftest.$ac_ext >&5
11034 rm -rf conftest*
11035 eval "ac_cv_lib_$ac_lib_var=no"
11036 fi
11037 rm -f conftest*
11038 LIBS="$ac_save_LIBS"
11039
11040 fi
11041 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11042 echo "$ac_t""yes" 1>&6
11043 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11044 else
11045 echo "$ac_t""no" 1>&6
11046 fi
11047
11048 fi
11049
11050 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11051 echo $ac_n "checking for remove""... $ac_c" 1>&6
11052 echo "configure:11053: checking for remove" >&5
11053 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11054 echo $ac_n "(cached) $ac_c" 1>&6
11055 else
11056 cat > conftest.$ac_ext <<EOF
11057 #line 11058 "configure"
11058 #include "confdefs.h"
11059 /* System header to define __stub macros and hopefully few prototypes,
11060 which can conflict with char remove(); below. */
11061 #include <assert.h>
11062 /* Override any gcc2 internal prototype to avoid an error. */
11063 /* We use char because int might match the return type of a gcc2
11064 builtin and then its argument prototype would still apply. */
11065 char remove();
11066
11067 int main() {
11068
11069 /* The GNU C library defines this for functions which it implements
11070 to always fail with ENOSYS. Some functions are actually named
11071 something starting with __ and the normal name is an alias. */
11072 #if defined (__stub_remove) || defined (__stub___remove)
11073 choke me
11074 #else
11075 remove();
11076 #endif
11077
11078 ; return 0; }
11079 EOF
11080 if { (eval echo configure:11081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11081 rm -rf conftest*
11082 eval "ac_cv_func_remove=yes"
11083 else
11084 echo "configure: failed program was:" >&5
11085 cat conftest.$ac_ext >&5
11086 rm -rf conftest*
11087 eval "ac_cv_func_remove=no"
11088 fi
11089 rm -f conftest*
11090 fi
11091
11092 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11093 echo "$ac_t""yes" 1>&6
11094 :
11095 else
11096 echo "$ac_t""no" 1>&6
11097 fi
11098
11099 if test $ac_cv_func_remove = no; then
11100 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
11101 echo "configure:11102: checking for remove in -lposix" >&5
11102 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11103 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11104 echo $ac_n "(cached) $ac_c" 1>&6
11105 else
11106 ac_save_LIBS="$LIBS"
11107 LIBS="-lposix $LIBS"
11108 cat > conftest.$ac_ext <<EOF
11109 #line 11110 "configure"
11110 #include "confdefs.h"
11111 /* Override any gcc2 internal prototype to avoid an error. */
11112 /* We use char because int might match the return type of a gcc2
11113 builtin and then its argument prototype would still apply. */
11114 char remove();
11115
11116 int main() {
11117 remove()
11118 ; return 0; }
11119 EOF
11120 if { (eval echo configure:11121: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11121 rm -rf conftest*
11122 eval "ac_cv_lib_$ac_lib_var=yes"
11123 else
11124 echo "configure: failed program was:" >&5
11125 cat conftest.$ac_ext >&5
11126 rm -rf conftest*
11127 eval "ac_cv_lib_$ac_lib_var=no"
11128 fi
11129 rm -f conftest*
11130 LIBS="$ac_save_LIBS"
11131
11132 fi
11133 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11134 echo "$ac_t""yes" 1>&6
11135 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11136 else
11137 echo "$ac_t""no" 1>&6
11138 fi
11139
11140 fi
11141
11142 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11143 echo $ac_n "checking for shmat""... $ac_c" 1>&6
11144 echo "configure:11145: checking for shmat" >&5
11145 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11146 echo $ac_n "(cached) $ac_c" 1>&6
11147 else
11148 cat > conftest.$ac_ext <<EOF
11149 #line 11150 "configure"
11150 #include "confdefs.h"
11151 /* System header to define __stub macros and hopefully few prototypes,
11152 which can conflict with char shmat(); below. */
11153 #include <assert.h>
11154 /* Override any gcc2 internal prototype to avoid an error. */
11155 /* We use char because int might match the return type of a gcc2
11156 builtin and then its argument prototype would still apply. */
11157 char shmat();
11158
11159 int main() {
11160
11161 /* The GNU C library defines this for functions which it implements
11162 to always fail with ENOSYS. Some functions are actually named
11163 something starting with __ and the normal name is an alias. */
11164 #if defined (__stub_shmat) || defined (__stub___shmat)
11165 choke me
11166 #else
11167 shmat();
11168 #endif
11169
11170 ; return 0; }
11171 EOF
11172 if { (eval echo configure:11173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11173 rm -rf conftest*
11174 eval "ac_cv_func_shmat=yes"
11175 else
11176 echo "configure: failed program was:" >&5
11177 cat conftest.$ac_ext >&5
11178 rm -rf conftest*
11179 eval "ac_cv_func_shmat=no"
11180 fi
11181 rm -f conftest*
11182 fi
11183
11184 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
11185 echo "$ac_t""yes" 1>&6
11186 :
11187 else
11188 echo "$ac_t""no" 1>&6
11189 fi
11190
11191 if test $ac_cv_func_shmat = no; then
11192 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
11193 echo "configure:11194: checking for shmat in -lipc" >&5
11194 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
11195 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11196 echo $ac_n "(cached) $ac_c" 1>&6
11197 else
11198 ac_save_LIBS="$LIBS"
11199 LIBS="-lipc $LIBS"
11200 cat > conftest.$ac_ext <<EOF
11201 #line 11202 "configure"
11202 #include "confdefs.h"
11203 /* Override any gcc2 internal prototype to avoid an error. */
11204 /* We use char because int might match the return type of a gcc2
11205 builtin and then its argument prototype would still apply. */
11206 char shmat();
11207
11208 int main() {
11209 shmat()
11210 ; return 0; }
11211 EOF
11212 if { (eval echo configure:11213: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11213 rm -rf conftest*
11214 eval "ac_cv_lib_$ac_lib_var=yes"
11215 else
11216 echo "configure: failed program was:" >&5
11217 cat conftest.$ac_ext >&5
11218 rm -rf conftest*
11219 eval "ac_cv_lib_$ac_lib_var=no"
11220 fi
11221 rm -f conftest*
11222 LIBS="$ac_save_LIBS"
11223
11224 fi
11225 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11226 echo "$ac_t""yes" 1>&6
11227 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11228 else
11229 echo "$ac_t""no" 1>&6
11230 fi
11231
11232 fi
11233 fi
11234
11235 # Check for libraries that X11R6 Xt/Xaw programs need.
11236 ac_save_LDFLAGS="$LDFLAGS"
11237 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11238 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11239 # check for ICE first), but we must link in the order -lSM -lICE or
11240 # we get undefined symbols. So assume we have SM if we have ICE.
11241 # These have to be linked with before -lX11, unlike the other
11242 # libraries we check for below, so use a different variable.
11243 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
11244 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
11245 echo "configure:11246: checking for IceConnectionNumber in -lICE" >&5
11246 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
11247 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11248 echo $ac_n "(cached) $ac_c" 1>&6
11249 else
11250 ac_save_LIBS="$LIBS"
11251 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11252 cat > conftest.$ac_ext <<EOF
11253 #line 11254 "configure"
11254 #include "confdefs.h"
11255 /* Override any gcc2 internal prototype to avoid an error. */
11256 /* We use char because int might match the return type of a gcc2
11257 builtin and then its argument prototype would still apply. */
11258 char IceConnectionNumber();
11259
11260 int main() {
11261 IceConnectionNumber()
11262 ; return 0; }
11263 EOF
11264 if { (eval echo configure:11265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11265 rm -rf conftest*
11266 eval "ac_cv_lib_$ac_lib_var=yes"
11267 else
11268 echo "configure: failed program was:" >&5
11269 cat conftest.$ac_ext >&5
11270 rm -rf conftest*
11271 eval "ac_cv_lib_$ac_lib_var=no"
11272 fi
11273 rm -f conftest*
11274 LIBS="$ac_save_LIBS"
11275
11276 fi
11277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11278 echo "$ac_t""yes" 1>&6
11279 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11280 else
11281 echo "$ac_t""no" 1>&6
11282 fi
11283
11284 LDFLAGS="$ac_save_LDFLAGS"
11285
11286 fi
11287
11288
11289 if test "$no_x" = "yes"; then
11290 { echo "configure: error: X11 not found" 1>&2; exit 1; }
11291 fi
11292
11293 GUI_TK_LIBRARY="$X_LIBS"
11294 TOOLKIT_INCLUDE="$X_CFLAGS"
11295 AFMINSTALL=afminstall
11296 COMPILED_X_PROGRAM=0
11297
11298 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
11299 echo "configure:11300: checking for Motif/Lesstif headers" >&5
11300
11301 ac_find_includes=
11302 for ac_dir in $SEARCH_INCLUDE;
11303 do
11304 if test -f "$ac_dir/Xm/Xm.h"; then
11305 ac_find_includes=$ac_dir
11306 break
11307 fi
11308 done
11309
11310 if test "$ac_find_includes" != "" ; then
11311 echo "$ac_t""found $ac_find_includes" 1>&6
11312 else
11313 cat > conftest.$ac_ext <<EOF
11314 #line 11315 "configure"
11315 #include "confdefs.h"
11316
11317 #include <Xm/Xm.h>
11318
11319 int main() {
11320
11321 int version;
11322 version = xmUseVersion;
11323
11324 ; return 0; }
11325 EOF
11326 if { (eval echo configure:11327: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11327 rm -rf conftest*
11328
11329 echo "$ac_t""found in default search path" 1>&6
11330 COMPILED_X_PROGRAM=1
11331
11332 else
11333 echo "configure: failed program was:" >&5
11334 cat conftest.$ac_ext >&5
11335 rm -rf conftest*
11336
11337 echo "$ac_t""no" 1>&6
11338 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
11339
11340
11341 fi
11342 rm -f conftest*
11343 fi
11344
11345 if test "$COMPILED_X_PROGRAM" = 0; then
11346 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
11347 echo "configure:11348: checking for Motif/Lesstif library" >&5
11348
11349 ac_find_libraries=
11350 for ac_dir in $SEARCH_LIB;
11351 do
11352 for ac_extension in a so sl dylib; do
11353 if test -f "$ac_dir/libXm.$ac_extension"; then
11354 ac_find_libraries=$ac_dir
11355 break 2
11356 fi
11357 done
11358 done
11359
11360 if test "$ac_find_libraries" != "" ; then
11361
11362 ac_path_to_include=$ac_find_includes
11363 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
11364 result=$?
11365 if test $result = 0; then
11366 ac_path_to_include=""
11367 else
11368 ac_path_to_include="-I$ac_find_includes"
11369 fi
11370
11371
11372 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11373 result=$?
11374 if test $result = 0; then
11375 ac_path_to_link=""
11376 else
11377 ac_path_to_link="-L$ac_find_libraries"
11378 fi
11379
11380
11381 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
11382 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
11383 echo "$ac_t""found at $ac_find_libraries" 1>&6
11384 else
11385 cat > conftest.$ac_ext <<EOF
11386 #line 11387 "configure"
11387 #include "confdefs.h"
11388
11389 #include <Xm/Xm.h>
11390
11391 int main() {
11392
11393 int version;
11394 version = xmUseVersion;
11395
11396 ; return 0; }
11397 EOF
11398 if { (eval echo configure:11399: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11399 rm -rf conftest*
11400
11401 echo "$ac_t""found in default search path" 1>&6
11402 COMPILED_X_PROGRAM=1
11403
11404 else
11405 echo "configure: failed program was:" >&5
11406 cat conftest.$ac_ext >&5
11407 rm -rf conftest*
11408
11409 echo "$ac_t""no" 1>&6
11410 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
11411
11412
11413 fi
11414 rm -f conftest*
11415 fi
11416 fi
11417
11418 xpm_link=""
11419 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
11420 echo "configure:11421: checking for Xpm library" >&5
11421
11422 ac_find_libraries=
11423 for ac_dir in $SEARCH_LIB;
11424 do
11425 for ac_extension in a so sl dylib; do
11426 if test -f "$ac_dir/libXpm.$ac_extension"; then
11427 ac_find_libraries=$ac_dir
11428 break 2
11429 fi
11430 done
11431 done
11432
11433 if test "$ac_find_libraries" != "" ; then
11434
11435 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11436 result=$?
11437 if test $result = 0; then
11438 ac_path_to_link=""
11439 else
11440 ac_path_to_link="-L$ac_find_libraries"
11441 fi
11442
11443 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
11444 xpm_link="-lXpm "
11445 cat >> confdefs.h <<\EOF
11446 #define wxHAVE_LIB_XPM 1
11447 EOF
11448
11449 echo "$ac_t""found at $ac_find_libraries" 1>&6
11450 else
11451 cat > conftest.$ac_ext <<EOF
11452 #line 11453 "configure"
11453 #include "confdefs.h"
11454
11455 #include <X11/xpm.h>
11456
11457 int main() {
11458
11459 int version;
11460 version = XpmLibraryVersion();
11461
11462 ; return 0; }
11463 EOF
11464 if { (eval echo configure:11465: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11465 rm -rf conftest*
11466
11467 xpm_link="-lXpm "
11468 cat >> confdefs.h <<\EOF
11469 #define wxHAVE_LIB_XPM 1
11470 EOF
11471
11472 echo "$ac_t""found in default search path" 1>&6
11473 COMPILED_X_PROGRAM=0
11474
11475 else
11476 echo "configure: failed program was:" >&5
11477 cat conftest.$ac_ext >&5
11478 rm -rf conftest*
11479
11480 echo "$ac_t""no" 1>&6
11481 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
11482
11483
11484 fi
11485 rm -f conftest*
11486 fi
11487
11488 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm $xpm_link -lXmu -lXext -lXt -lX11"
11489 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
11490 TOOLKIT=MOTIF
11491 GUIDIST=MOTIF_DIST
11492 fi
11493
11494 if test "$wxUSE_MAC" = 1; then
11495 if test "$wxUSE_PRECOMP" = "yes"; then
11496 CPPFLAGS="${CPPFLAGS} -cpp-precomp"
11497 fi
11498 CPPFLAGS="${CPPFLAGS} -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
11499 CFLAGS="${CFLAGS} -fpascal-strings"
11500 CXXFLAGS="${CXXFLAGS} -fpascal-strings"
11501 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DTARGET_CARBON"
11502
11503 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
11504 TOOLKIT=MAC
11505 GUIDIST=MACX_DIST
11506 fi
11507
11508 if test "$wxUSE_PM" = 1; then
11509 TOOLKIT=PM
11510 GUIDIST=GTK_DIST
11511 fi
11512
11513 if test "$TOOLKIT" = "PM" ; then
11514 TOOLKIT_DIR="os2"
11515 else
11516 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
11517 fi
11518
11519 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
11520
11521 if test "$wxUSE_UNIVERSAL" = "yes"; then
11522 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
11523 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
11524 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
11525 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
11526 WIDGET_SET=univ
11527 else
11528 ALL_OBJECTS="\$(GUIOBJS)"
11529 fi
11530
11531 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
11532
11533 if test "$TOOLKIT" != "MSW"; then
11534 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
11535 fi
11536
11537 if test "$wxUSE_HTML" = "yes"; then
11538 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
11539 fi
11540
11541 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
11542 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
11543 fi
11544 if test "$wxUSE_LIBJPEG" = "builtin" ; then
11545 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
11546 fi
11547 if test "$wxUSE_LIBTIFF" = "builtin" ; then
11548 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
11549 fi
11550 if test "$wxUSE_LIBPNG" = "builtin" ; then
11551 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
11552 fi
11553 if test "$wxUSE_FREETYPE" = "builtin" ; then
11554 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
11555 fi
11556
11557 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
11558 RPM_SPEC="wx\$(TOOLKIT).spec"
11559
11560 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
11561 DISTDIR="wx\$(TOOLKIT)"
11562 else
11563 USE_GUI=0
11564
11565 TOOLKIT_DIR="base"
11566
11567 if test "$USE_WIN32" = 1 ; then
11568 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
11569 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
11570
11571 TOOLKIT="MSW"
11572 else
11573 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
11574 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
11575 fi
11576
11577 PORT_FILES="\${top_srcdir}/src/files.lst"
11578 RPM_FILES="src/rpmfiles.lst"
11579 RPM_SPEC="wxBase.spec"
11580
11581 GUIDIST="BASE_DIST"
11582 DISTDIR="wxBase"
11583 fi
11584
11585 if test "$wxUSE_REGEX" = "builtin" ; then
11586 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
11587 fi
11588 if test "$wxUSE_ZLIB" = "builtin" ; then
11589 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
11590 fi
11591
11592 if test "$wxUSE_OPENGL" = "yes"; then
11593 if test "$wxUSE_MAC" = 1; then
11594 OPENGL_LIBS="-framework OpenGL -framework AGL"
11595 else
11596 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
11597 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
11598 echo "configure:11599: checking for GL/gl.h" >&5
11599 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11600 echo $ac_n "(cached) $ac_c" 1>&6
11601 else
11602 cat > conftest.$ac_ext <<EOF
11603 #line 11604 "configure"
11604 #include "confdefs.h"
11605 #include <GL/gl.h>
11606 EOF
11607 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11608 { (eval echo configure:11609: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11609 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11610 if test -z "$ac_err"; then
11611 rm -rf conftest*
11612 eval "ac_cv_header_$ac_safe=yes"
11613 else
11614 echo "$ac_err" >&5
11615 echo "configure: failed program was:" >&5
11616 cat conftest.$ac_ext >&5
11617 rm -rf conftest*
11618 eval "ac_cv_header_$ac_safe=no"
11619 fi
11620 rm -f conftest*
11621 fi
11622 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11623 echo "$ac_t""yes" 1>&6
11624
11625 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
11626 echo "configure:11627: checking for glFlush in -lGL" >&5
11627 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
11628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11629 echo $ac_n "(cached) $ac_c" 1>&6
11630 else
11631 ac_save_LIBS="$LIBS"
11632 LIBS="-lGL $LIBS"
11633 cat > conftest.$ac_ext <<EOF
11634 #line 11635 "configure"
11635 #include "confdefs.h"
11636 /* Override any gcc2 internal prototype to avoid an error. */
11637 /* We use char because int might match the return type of a gcc2
11638 builtin and then its argument prototype would still apply. */
11639 char glFlush();
11640
11641 int main() {
11642 glFlush()
11643 ; return 0; }
11644 EOF
11645 if { (eval echo configure:11646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11646 rm -rf conftest*
11647 eval "ac_cv_lib_$ac_lib_var=yes"
11648 else
11649 echo "configure: failed program was:" >&5
11650 cat conftest.$ac_ext >&5
11651 rm -rf conftest*
11652 eval "ac_cv_lib_$ac_lib_var=no"
11653 fi
11654 rm -f conftest*
11655 LIBS="$ac_save_LIBS"
11656
11657 fi
11658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11659 echo "$ac_t""yes" 1>&6
11660
11661 OPENGL_LIBS="-lGL -lGLU"
11662
11663 else
11664 echo "$ac_t""no" 1>&6
11665
11666 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
11667 echo "configure:11668: checking for glFlush in -lMesaGL" >&5
11668 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
11669 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11670 echo $ac_n "(cached) $ac_c" 1>&6
11671 else
11672 ac_save_LIBS="$LIBS"
11673 LIBS="-lMesaGL $LIBS"
11674 cat > conftest.$ac_ext <<EOF
11675 #line 11676 "configure"
11676 #include "confdefs.h"
11677 /* Override any gcc2 internal prototype to avoid an error. */
11678 /* We use char because int might match the return type of a gcc2
11679 builtin and then its argument prototype would still apply. */
11680 char glFlush();
11681
11682 int main() {
11683 glFlush()
11684 ; return 0; }
11685 EOF
11686 if { (eval echo configure:11687: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11687 rm -rf conftest*
11688 eval "ac_cv_lib_$ac_lib_var=yes"
11689 else
11690 echo "configure: failed program was:" >&5
11691 cat conftest.$ac_ext >&5
11692 rm -rf conftest*
11693 eval "ac_cv_lib_$ac_lib_var=no"
11694 fi
11695 rm -f conftest*
11696 LIBS="$ac_save_LIBS"
11697
11698 fi
11699 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11700 echo "$ac_t""yes" 1>&6
11701
11702 OPENGL_LIBS="-lMesaGL -lMesaGLU"
11703
11704 else
11705 echo "$ac_t""no" 1>&6
11706 fi
11707
11708
11709 fi
11710
11711
11712 else
11713 echo "$ac_t""no" 1>&6
11714 fi
11715
11716
11717 if test "x$OPENGL_LIBS" = "x"; then
11718 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
11719 fi
11720 fi
11721
11722 if test "$wxUSE_OPENGL" = "yes"; then
11723 cat >> confdefs.h <<\EOF
11724 #define wxUSE_OPENGL 1
11725 EOF
11726
11727 cat >> confdefs.h <<\EOF
11728 #define wxUSE_GLCANVAS 1
11729 EOF
11730
11731 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
11732 fi
11733 fi
11734
11735 if test -z "$TOOLKIT_VPATH" ; then
11736 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
11737 fi
11738
11739 if test -n "$TOOLKIT" ; then
11740 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
11741 fi
11742
11743 lib_unicode_suffix=
11744 if test "$wxUSE_UNICODE" = "yes"; then
11745 lib_unicode_suffix=u
11746 fi
11747
11748 lib_debug_suffix=
11749 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
11750 lib_debug_suffix=d
11751 fi
11752
11753 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
11754 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
11755
11756 if test "$cross_compiling" = "yes"; then
11757 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
11758 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
11759 fi
11760
11761 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
11762 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
11763
11764 WXCONFIG_LIBS="-l${WX_LIBRARY}"
11765
11766 if test "$wxUSE_OPENGL" = "yes"; then
11767 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} $OPENGL_LIBS"
11768 fi
11769
11770 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11771 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11772
11773 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11774 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11775
11776 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
11777 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
11778 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
11779 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
11780
11781 WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
11782 WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
11783
11784
11785 if test "$wxUSE_SHARED" = "yes"; then
11786
11787 if test "$wxUSE_OPENGL" = "yes"; then
11788 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11789 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
11790 else
11791 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11792 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
11793 fi
11794
11795 if test "$GCC" = "yes"; then
11796 PIC_FLAG="-fPIC"
11797 fi
11798
11799 SHARED_LD="${CXX} -shared -o"
11800
11801 case "${host}" in
11802 *-hp-hpux* )
11803 if test "$GCC" != "yes"; then
11804 LDFLAGS="-L/usr/lib"
11805
11806 SHARED_LD="${CXX} -b -o"
11807 PIC_FLAG="+Z"
11808 fi
11809
11810 if test "$wxUSE_OPENGL" = "yes"; then
11811 WX_ALL_INSTALLED="preinstall_gl"
11812 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11813 else
11814 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
11815 fi
11816 ;;
11817
11818 *-*-linux* )
11819 if test "$GCC" != "yes"; then
11820 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
11821 echo "configure:11822: checking for Intel compiler" >&5
11822 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
11823 echo $ac_n "(cached) $ac_c" 1>&6
11824 else
11825
11826 cat > conftest.$ac_ext <<EOF
11827 #line 11828 "configure"
11828 #include "confdefs.h"
11829
11830 int main() {
11831
11832 #ifndef __INTEL_COMPILER
11833 #error Not icc
11834 #endif
11835
11836 ; return 0; }
11837 EOF
11838 if { (eval echo configure:11839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11839 rm -rf conftest*
11840 wx_cv_prog_icc=yes
11841 else
11842 echo "configure: failed program was:" >&5
11843 cat conftest.$ac_ext >&5
11844 rm -rf conftest*
11845 wx_cv_prog_icc=no
11846
11847 fi
11848 rm -f conftest*
11849
11850 fi
11851
11852 echo "$ac_t""$wx_cv_prog_icc" 1>&6
11853 if test "$wx_cv_prog_icc" = "yes"; then
11854 PIC_FLAG="-KPIC"
11855 fi
11856 fi
11857
11858 if test "$wxUSE_SONAME" = "yes" ; then
11859 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
11860 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
11861 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
11862 fi
11863 ;;
11864
11865 *-*-solaris2* )
11866 if test "$GCC" = yes ; then
11867 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
11868 else
11869 SHARED_LD="${CXX} -G -o"
11870 PIC_FLAG="-KPIC"
11871 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
11872 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
11873 fi
11874 ;;
11875
11876 *-*-darwin* )
11877 CFLAGS="${CFLAGS} -fno-common"
11878 CXXFLAGS="${CXXFLAGS} -fno-common"
11879 SHARED_LD="${CXX} -dynamiclib -o"
11880 PIC_FLAG="-dynamic -fPIC"
11881 ;;
11882
11883 *-*-aix* )
11884 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11885 ;;
11886
11887 *-*-cygwin* | *-*-mingw32* )
11888
11889 if test "$cross_compiling" != "yes"; then
11890 WX_LIBRARY="wxmsw${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}${WX_RELEASE_NUMBER}${lib_unicode_suffix}${lib_debug_suffix}"
11891 WX_LIBRARY_GL=${WX_LIBRARY} "wxmsw${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}${WX_RELEASE_NUMBER}${lib_unicode_suffix}${lib_debug_suffix}"
11892 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
11893 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
11894 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
11895 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
11896 fi
11897
11898 WX_LIBRARY_IMPORTLIB="lib${WX_LIBRARY}.lib"
11899
11900 if test "$wxUSE_SHARED" = "yes" ; then
11901 WXCONFIG_LIBS="${WX_LIBRARY_IMPORTLIB}"
11902 else
11903 WXCONFIG_LIBS="-l${WX_LIBRARY}"
11904 fi
11905
11906 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
11907 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -DWXUSINGDLL=1"
11908 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
11909
11910 if test "$wxUSE_OPENGL" = "yes"; then
11911 WX_ALL_INSTALLED="preinstall_gl"
11912 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
11913 else
11914 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11915 fi
11916 PIC_FLAG=
11917 ;;
11918
11919 *-pc-os2_emx | *-pc-os2-emx )
11920 wxUSE_SHARED=no
11921 ;;
11922
11923 *-*-beos* )
11924 SHARED_LD="${LD} -shared -o"
11925 ;;
11926
11927 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
11928 *-*-sunos4* | \
11929 *-*-irix5* | *-*-irix6* | \
11930 *-*-osf* | \
11931 *-*-dgux5* | \
11932 *-*-sysv5* )
11933 ;;
11934
11935 *)
11936 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
11937 esac
11938
11939 if test "x$WX_TARGET_LIBRARY" = "x"; then
11940 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11941 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11942 fi
11943
11944 WX_TARGET_LIBRARY_TYPE="so"
11945 fi
11946
11947 if test "$wxUSE_SHARED" = "no"; then
11948
11949 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
11950 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11951 fi
11952
11953 if test "$wxUSE_MAC" = 1; then
11954 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11955 fi
11956
11957 if test "$wxUSE_OPENGL" = "yes"; then
11958 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
11959 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
11960 else
11961 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
11962 fi
11963
11964 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11965 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11966
11967 WX_TARGET_LIBRARY_TYPE="a"
11968 fi
11969
11970 if test "$wxUSE_MAC" = 1; then
11971 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
11972 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
11973 # Extract the first word of "Rez", so it can be a program name with args.
11974 set dummy Rez; ac_word=$2
11975 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
11976 echo "configure:11977: checking for $ac_word" >&5
11977 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
11978 echo $ac_n "(cached) $ac_c" 1>&6
11979 else
11980 if test -n "$RESCOMP"; then
11981 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
11982 else
11983 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
11984 ac_dummy="$PATH"
11985 for ac_dir in $ac_dummy; do
11986 test -z "$ac_dir" && ac_dir=.
11987 if test -f $ac_dir/$ac_word; then
11988 ac_cv_prog_RESCOMP="Rez"
11989 break
11990 fi
11991 done
11992 IFS="$ac_save_ifs"
11993 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
11994 fi
11995 fi
11996 RESCOMP="$ac_cv_prog_RESCOMP"
11997 if test -n "$RESCOMP"; then
11998 echo "$ac_t""$RESCOMP" 1>&6
11999 else
12000 echo "$ac_t""no" 1>&6
12001 fi
12002
12003 # Extract the first word of "Derez", so it can be a program name with args.
12004 set dummy Derez; ac_word=$2
12005 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12006 echo "configure:12007: checking for $ac_word" >&5
12007 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
12008 echo $ac_n "(cached) $ac_c" 1>&6
12009 else
12010 if test -n "$DEREZ"; then
12011 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12012 else
12013 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12014 ac_dummy="$PATH"
12015 for ac_dir in $ac_dummy; do
12016 test -z "$ac_dir" && ac_dir=.
12017 if test -f $ac_dir/$ac_word; then
12018 ac_cv_prog_DEREZ="Derez"
12019 break
12020 fi
12021 done
12022 IFS="$ac_save_ifs"
12023 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
12024 fi
12025 fi
12026 DEREZ="$ac_cv_prog_DEREZ"
12027 if test -n "$DEREZ"; then
12028 echo "$ac_t""$DEREZ" 1>&6
12029 else
12030 echo "$ac_t""no" 1>&6
12031 fi
12032
12033 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12034 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
12035 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
12036 fi
12037
12038
12039 if test "$wxUSE_MAC" != 1; then
12040 for ac_hdr in strings.h
12041 do
12042 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12043 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12044 echo "configure:12045: checking for $ac_hdr" >&5
12045 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12046 echo $ac_n "(cached) $ac_c" 1>&6
12047 else
12048 cat > conftest.$ac_ext <<EOF
12049 #line 12050 "configure"
12050 #include "confdefs.h"
12051 #include <$ac_hdr>
12052 EOF
12053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12054 { (eval echo configure:12055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12056 if test -z "$ac_err"; then
12057 rm -rf conftest*
12058 eval "ac_cv_header_$ac_safe=yes"
12059 else
12060 echo "$ac_err" >&5
12061 echo "configure: failed program was:" >&5
12062 cat conftest.$ac_ext >&5
12063 rm -rf conftest*
12064 eval "ac_cv_header_$ac_safe=no"
12065 fi
12066 rm -f conftest*
12067 fi
12068 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12069 echo "$ac_t""yes" 1>&6
12070 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12071 cat >> confdefs.h <<EOF
12072 #define $ac_tr_hdr 1
12073 EOF
12074
12075 else
12076 echo "$ac_t""no" 1>&6
12077 fi
12078 done
12079
12080 fi
12081
12082 for ac_hdr in stdlib.h
12083 do
12084 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12085 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12086 echo "configure:12087: checking for $ac_hdr" >&5
12087 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12088 echo $ac_n "(cached) $ac_c" 1>&6
12089 else
12090 cat > conftest.$ac_ext <<EOF
12091 #line 12092 "configure"
12092 #include "confdefs.h"
12093 #include <$ac_hdr>
12094 EOF
12095 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12096 { (eval echo configure:12097: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12097 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12098 if test -z "$ac_err"; then
12099 rm -rf conftest*
12100 eval "ac_cv_header_$ac_safe=yes"
12101 else
12102 echo "$ac_err" >&5
12103 echo "configure: failed program was:" >&5
12104 cat conftest.$ac_ext >&5
12105 rm -rf conftest*
12106 eval "ac_cv_header_$ac_safe=no"
12107 fi
12108 rm -f conftest*
12109 fi
12110 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12111 echo "$ac_t""yes" 1>&6
12112 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12113 cat >> confdefs.h <<EOF
12114 #define $ac_tr_hdr 1
12115 EOF
12116
12117 else
12118 echo "$ac_t""no" 1>&6
12119 fi
12120 done
12121
12122 for ac_hdr in unistd.h
12123 do
12124 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12125 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12126 echo "configure:12127: checking for $ac_hdr" >&5
12127 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12128 echo $ac_n "(cached) $ac_c" 1>&6
12129 else
12130 cat > conftest.$ac_ext <<EOF
12131 #line 12132 "configure"
12132 #include "confdefs.h"
12133 #include <$ac_hdr>
12134 EOF
12135 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12136 { (eval echo configure:12137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12137 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12138 if test -z "$ac_err"; then
12139 rm -rf conftest*
12140 eval "ac_cv_header_$ac_safe=yes"
12141 else
12142 echo "$ac_err" >&5
12143 echo "configure: failed program was:" >&5
12144 cat conftest.$ac_ext >&5
12145 rm -rf conftest*
12146 eval "ac_cv_header_$ac_safe=no"
12147 fi
12148 rm -f conftest*
12149 fi
12150 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12151 echo "$ac_t""yes" 1>&6
12152 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12153 cat >> confdefs.h <<EOF
12154 #define $ac_tr_hdr 1
12155 EOF
12156
12157 else
12158 echo "$ac_t""no" 1>&6
12159 fi
12160 done
12161
12162 for ac_hdr in wchar.h
12163 do
12164 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12165 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12166 echo "configure:12167: checking for $ac_hdr" >&5
12167 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12168 echo $ac_n "(cached) $ac_c" 1>&6
12169 else
12170 cat > conftest.$ac_ext <<EOF
12171 #line 12172 "configure"
12172 #include "confdefs.h"
12173 #include <$ac_hdr>
12174 EOF
12175 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12176 { (eval echo configure:12177: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12177 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12178 if test -z "$ac_err"; then
12179 rm -rf conftest*
12180 eval "ac_cv_header_$ac_safe=yes"
12181 else
12182 echo "$ac_err" >&5
12183 echo "configure: failed program was:" >&5
12184 cat conftest.$ac_ext >&5
12185 rm -rf conftest*
12186 eval "ac_cv_header_$ac_safe=no"
12187 fi
12188 rm -f conftest*
12189 fi
12190 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12191 echo "$ac_t""yes" 1>&6
12192 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12193 cat >> confdefs.h <<EOF
12194 #define $ac_tr_hdr 1
12195 EOF
12196
12197 else
12198 echo "$ac_t""no" 1>&6
12199 fi
12200 done
12201
12202 for ac_hdr in wcstr.h
12203 do
12204 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12205 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12206 echo "configure:12207: checking for $ac_hdr" >&5
12207 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12208 echo $ac_n "(cached) $ac_c" 1>&6
12209 else
12210 cat > conftest.$ac_ext <<EOF
12211 #line 12212 "configure"
12212 #include "confdefs.h"
12213 #include <$ac_hdr>
12214 EOF
12215 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12216 { (eval echo configure:12217: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12217 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12218 if test -z "$ac_err"; then
12219 rm -rf conftest*
12220 eval "ac_cv_header_$ac_safe=yes"
12221 else
12222 echo "$ac_err" >&5
12223 echo "configure: failed program was:" >&5
12224 cat conftest.$ac_ext >&5
12225 rm -rf conftest*
12226 eval "ac_cv_header_$ac_safe=no"
12227 fi
12228 rm -f conftest*
12229 fi
12230 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12231 echo "$ac_t""yes" 1>&6
12232 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12233 cat >> confdefs.h <<EOF
12234 #define $ac_tr_hdr 1
12235 EOF
12236
12237 else
12238 echo "$ac_t""no" 1>&6
12239 fi
12240 done
12241
12242 for ac_hdr in fnmatch.h
12243 do
12244 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12245 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12246 echo "configure:12247: checking for $ac_hdr" >&5
12247 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12248 echo $ac_n "(cached) $ac_c" 1>&6
12249 else
12250 cat > conftest.$ac_ext <<EOF
12251 #line 12252 "configure"
12252 #include "confdefs.h"
12253 #include <$ac_hdr>
12254 EOF
12255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12256 { (eval echo configure:12257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12258 if test -z "$ac_err"; then
12259 rm -rf conftest*
12260 eval "ac_cv_header_$ac_safe=yes"
12261 else
12262 echo "$ac_err" >&5
12263 echo "configure: failed program was:" >&5
12264 cat conftest.$ac_ext >&5
12265 rm -rf conftest*
12266 eval "ac_cv_header_$ac_safe=no"
12267 fi
12268 rm -f conftest*
12269 fi
12270 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12271 echo "$ac_t""yes" 1>&6
12272 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12273 cat >> confdefs.h <<EOF
12274 #define $ac_tr_hdr 1
12275 EOF
12276
12277 else
12278 echo "$ac_t""no" 1>&6
12279 fi
12280 done
12281
12282 for ac_hdr in iconv.h
12283 do
12284 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12285 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12286 echo "configure:12287: checking for $ac_hdr" >&5
12287 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12288 echo $ac_n "(cached) $ac_c" 1>&6
12289 else
12290 cat > conftest.$ac_ext <<EOF
12291 #line 12292 "configure"
12292 #include "confdefs.h"
12293 #include <$ac_hdr>
12294 EOF
12295 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12296 { (eval echo configure:12297: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12297 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12298 if test -z "$ac_err"; then
12299 rm -rf conftest*
12300 eval "ac_cv_header_$ac_safe=yes"
12301 else
12302 echo "$ac_err" >&5
12303 echo "configure: failed program was:" >&5
12304 cat conftest.$ac_ext >&5
12305 rm -rf conftest*
12306 eval "ac_cv_header_$ac_safe=no"
12307 fi
12308 rm -f conftest*
12309 fi
12310 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12311 echo "$ac_t""yes" 1>&6
12312 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12313 cat >> confdefs.h <<EOF
12314 #define $ac_tr_hdr 1
12315 EOF
12316
12317 else
12318 echo "$ac_t""no" 1>&6
12319 fi
12320 done
12321
12322 for ac_hdr in langinfo.h
12323 do
12324 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12325 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12326 echo "configure:12327: checking for $ac_hdr" >&5
12327 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12328 echo $ac_n "(cached) $ac_c" 1>&6
12329 else
12330 cat > conftest.$ac_ext <<EOF
12331 #line 12332 "configure"
12332 #include "confdefs.h"
12333 #include <$ac_hdr>
12334 EOF
12335 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12336 { (eval echo configure:12337: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12337 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12338 if test -z "$ac_err"; then
12339 rm -rf conftest*
12340 eval "ac_cv_header_$ac_safe=yes"
12341 else
12342 echo "$ac_err" >&5
12343 echo "configure: failed program was:" >&5
12344 cat conftest.$ac_ext >&5
12345 rm -rf conftest*
12346 eval "ac_cv_header_$ac_safe=no"
12347 fi
12348 rm -f conftest*
12349 fi
12350 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12351 echo "$ac_t""yes" 1>&6
12352 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12353 cat >> confdefs.h <<EOF
12354 #define $ac_tr_hdr 1
12355 EOF
12356
12357 else
12358 echo "$ac_t""no" 1>&6
12359 fi
12360 done
12361
12362
12363 if test "$wxUSE_GUI" = "yes"; then
12364 if test "$wxUSE_UNIX" = "yes"; then
12365 for ac_hdr in X11/XKBlib.h
12366 do
12367 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12368 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12369 echo "configure:12370: checking for $ac_hdr" >&5
12370 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12371 echo $ac_n "(cached) $ac_c" 1>&6
12372 else
12373 cat > conftest.$ac_ext <<EOF
12374 #line 12375 "configure"
12375 #include "confdefs.h"
12376 #include <$ac_hdr>
12377 EOF
12378 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12379 { (eval echo configure:12380: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12380 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12381 if test -z "$ac_err"; then
12382 rm -rf conftest*
12383 eval "ac_cv_header_$ac_safe=yes"
12384 else
12385 echo "$ac_err" >&5
12386 echo "configure: failed program was:" >&5
12387 cat conftest.$ac_ext >&5
12388 rm -rf conftest*
12389 eval "ac_cv_header_$ac_safe=no"
12390 fi
12391 rm -f conftest*
12392 fi
12393 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12394 echo "$ac_t""yes" 1>&6
12395 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12396 cat >> confdefs.h <<EOF
12397 #define $ac_tr_hdr 1
12398 EOF
12399
12400 else
12401 echo "$ac_t""no" 1>&6
12402 fi
12403 done
12404
12405 fi
12406 fi
12407
12408
12409 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
12410 echo "configure:12411: checking for ANSI C header files" >&5
12411 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
12412 echo $ac_n "(cached) $ac_c" 1>&6
12413 else
12414 cat > conftest.$ac_ext <<EOF
12415 #line 12416 "configure"
12416 #include "confdefs.h"
12417 #include <stdlib.h>
12418 #include <stdarg.h>
12419 #include <string.h>
12420 #include <float.h>
12421 EOF
12422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12423 { (eval echo configure:12424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12425 if test -z "$ac_err"; then
12426 rm -rf conftest*
12427 ac_cv_header_stdc=yes
12428 else
12429 echo "$ac_err" >&5
12430 echo "configure: failed program was:" >&5
12431 cat conftest.$ac_ext >&5
12432 rm -rf conftest*
12433 ac_cv_header_stdc=no
12434 fi
12435 rm -f conftest*
12436
12437 if test $ac_cv_header_stdc = yes; then
12438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12439 cat > conftest.$ac_ext <<EOF
12440 #line 12441 "configure"
12441 #include "confdefs.h"
12442 #include <string.h>
12443 EOF
12444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12445 egrep "memchr" >/dev/null 2>&1; then
12446 :
12447 else
12448 rm -rf conftest*
12449 ac_cv_header_stdc=no
12450 fi
12451 rm -f conftest*
12452
12453 fi
12454
12455 if test $ac_cv_header_stdc = yes; then
12456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12457 cat > conftest.$ac_ext <<EOF
12458 #line 12459 "configure"
12459 #include "confdefs.h"
12460 #include <stdlib.h>
12461 EOF
12462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12463 egrep "free" >/dev/null 2>&1; then
12464 :
12465 else
12466 rm -rf conftest*
12467 ac_cv_header_stdc=no
12468 fi
12469 rm -f conftest*
12470
12471 fi
12472
12473 if test $ac_cv_header_stdc = yes; then
12474 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12475 if test "$cross_compiling" = yes; then
12476 :
12477 else
12478 cat > conftest.$ac_ext <<EOF
12479 #line 12480 "configure"
12480 #include "confdefs.h"
12481 #include <ctype.h>
12482 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12483 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12484 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12485 int main () { int i; for (i = 0; i < 256; i++)
12486 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
12487 exit (0); }
12488
12489 EOF
12490 if { (eval echo configure:12491: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12491 then
12492 :
12493 else
12494 echo "configure: failed program was:" >&5
12495 cat conftest.$ac_ext >&5
12496 rm -fr conftest*
12497 ac_cv_header_stdc=no
12498 fi
12499 rm -fr conftest*
12500 fi
12501
12502 fi
12503 fi
12504
12505 echo "$ac_t""$ac_cv_header_stdc" 1>&6
12506 if test $ac_cv_header_stdc = yes; then
12507 cat >> confdefs.h <<\EOF
12508 #define STDC_HEADERS 1
12509 EOF
12510
12511 fi
12512
12513 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
12514 echo "configure:12515: checking for mode_t" >&5
12515 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
12516 echo $ac_n "(cached) $ac_c" 1>&6
12517 else
12518 cat > conftest.$ac_ext <<EOF
12519 #line 12520 "configure"
12520 #include "confdefs.h"
12521 #include <sys/types.h>
12522 #if STDC_HEADERS
12523 #include <stdlib.h>
12524 #include <stddef.h>
12525 #endif
12526 EOF
12527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12528 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12529 rm -rf conftest*
12530 ac_cv_type_mode_t=yes
12531 else
12532 rm -rf conftest*
12533 ac_cv_type_mode_t=no
12534 fi
12535 rm -f conftest*
12536
12537 fi
12538 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
12539 if test $ac_cv_type_mode_t = no; then
12540 cat >> confdefs.h <<\EOF
12541 #define mode_t int
12542 EOF
12543
12544 fi
12545
12546 echo $ac_n "checking for off_t""... $ac_c" 1>&6
12547 echo "configure:12548: checking for off_t" >&5
12548 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
12549 echo $ac_n "(cached) $ac_c" 1>&6
12550 else
12551 cat > conftest.$ac_ext <<EOF
12552 #line 12553 "configure"
12553 #include "confdefs.h"
12554 #include <sys/types.h>
12555 #if STDC_HEADERS
12556 #include <stdlib.h>
12557 #include <stddef.h>
12558 #endif
12559 EOF
12560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12561 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12562 rm -rf conftest*
12563 ac_cv_type_off_t=yes
12564 else
12565 rm -rf conftest*
12566 ac_cv_type_off_t=no
12567 fi
12568 rm -f conftest*
12569
12570 fi
12571 echo "$ac_t""$ac_cv_type_off_t" 1>&6
12572 if test $ac_cv_type_off_t = no; then
12573 cat >> confdefs.h <<\EOF
12574 #define off_t long
12575 EOF
12576
12577 fi
12578
12579 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
12580 echo "configure:12581: checking for pid_t" >&5
12581 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
12582 echo $ac_n "(cached) $ac_c" 1>&6
12583 else
12584 cat > conftest.$ac_ext <<EOF
12585 #line 12586 "configure"
12586 #include "confdefs.h"
12587 #include <sys/types.h>
12588 #if STDC_HEADERS
12589 #include <stdlib.h>
12590 #include <stddef.h>
12591 #endif
12592 EOF
12593 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12594 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12595 rm -rf conftest*
12596 ac_cv_type_pid_t=yes
12597 else
12598 rm -rf conftest*
12599 ac_cv_type_pid_t=no
12600 fi
12601 rm -f conftest*
12602
12603 fi
12604 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
12605 if test $ac_cv_type_pid_t = no; then
12606 cat >> confdefs.h <<\EOF
12607 #define pid_t int
12608 EOF
12609
12610 fi
12611
12612 echo $ac_n "checking for size_t""... $ac_c" 1>&6
12613 echo "configure:12614: checking for size_t" >&5
12614 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
12615 echo $ac_n "(cached) $ac_c" 1>&6
12616 else
12617 cat > conftest.$ac_ext <<EOF
12618 #line 12619 "configure"
12619 #include "confdefs.h"
12620 #include <sys/types.h>
12621 #if STDC_HEADERS
12622 #include <stdlib.h>
12623 #include <stddef.h>
12624 #endif
12625 EOF
12626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12627 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
12628 rm -rf conftest*
12629 ac_cv_type_size_t=yes
12630 else
12631 rm -rf conftest*
12632 ac_cv_type_size_t=no
12633 fi
12634 rm -f conftest*
12635
12636 fi
12637 echo "$ac_t""$ac_cv_type_size_t" 1>&6
12638 if test $ac_cv_type_size_t = no; then
12639 cat >> confdefs.h <<\EOF
12640 #define size_t unsigned
12641 EOF
12642
12643 fi
12644
12645 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
12646 echo "configure:12647: checking for uid_t in sys/types.h" >&5
12647 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
12648 echo $ac_n "(cached) $ac_c" 1>&6
12649 else
12650 cat > conftest.$ac_ext <<EOF
12651 #line 12652 "configure"
12652 #include "confdefs.h"
12653 #include <sys/types.h>
12654 EOF
12655 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12656 egrep "uid_t" >/dev/null 2>&1; then
12657 rm -rf conftest*
12658 ac_cv_type_uid_t=yes
12659 else
12660 rm -rf conftest*
12661 ac_cv_type_uid_t=no
12662 fi
12663 rm -f conftest*
12664
12665 fi
12666
12667 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
12668 if test $ac_cv_type_uid_t = no; then
12669 cat >> confdefs.h <<\EOF
12670 #define uid_t int
12671 EOF
12672
12673 cat >> confdefs.h <<\EOF
12674 #define gid_t int
12675 EOF
12676
12677 fi
12678
12679
12680 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
12681 echo "configure:12682: checking for wchar_t" >&5
12682 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
12683 echo $ac_n "(cached) $ac_c" 1>&6
12684 else
12685
12686 cat > conftest.$ac_ext <<EOF
12687 #line 12688 "configure"
12688 #include "confdefs.h"
12689 #include <wchar.h>
12690 int main() {
12691
12692 wchar_t wc, *ws;
12693 wc = L'a';
12694 ws = L"Hello, world!";
12695
12696 ; return 0; }
12697 EOF
12698 if { (eval echo configure:12699: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12699 rm -rf conftest*
12700 wx_cv_type_wchar_t=yes
12701 else
12702 echo "configure: failed program was:" >&5
12703 cat conftest.$ac_ext >&5
12704 rm -rf conftest*
12705 wx_cv_type_wchar_t=no
12706
12707 fi
12708 rm -f conftest*
12709
12710 fi
12711
12712 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
12713
12714 if test "$wx_cv_type_wchar_t" = "yes"; then
12715 cat >> confdefs.h <<\EOF
12716 #define wxUSE_WCHAR_T 1
12717 EOF
12718
12719 fi
12720
12721
12722 ac_ext=C
12723 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12724 ac_cpp='$CXXCPP $CPPFLAGS'
12725 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12726 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12727 cross_compiling=$ac_cv_prog_cxx_cross
12728
12729 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
12730 echo "configure:12731: checking if size_t is unsigned int" >&5
12731 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
12732 echo $ac_n "(cached) $ac_c" 1>&6
12733 else
12734 cat > conftest.$ac_ext <<EOF
12735 #line 12736 "configure"
12736 #include "confdefs.h"
12737 #include <stddef.h>
12738 int main() {
12739
12740 return 0; }
12741
12742 struct Foo { void foo(size_t); void foo(unsigned int); };
12743
12744 int bar() {
12745
12746 ; return 0; }
12747 EOF
12748 if { (eval echo configure:12749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12749 rm -rf conftest*
12750 wx_cv_size_t_is_uint=no
12751 else
12752 echo "configure: failed program was:" >&5
12753 cat conftest.$ac_ext >&5
12754 rm -rf conftest*
12755 wx_cv_size_t_is_uint=yes
12756
12757 fi
12758 rm -f conftest*
12759
12760 fi
12761
12762 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
12763
12764 if test "$wx_cv_size_t_is_uint" = "yes"; then
12765 cat >> confdefs.h <<\EOF
12766 #define wxSIZE_T_IS_UINT 1
12767 EOF
12768
12769 else
12770 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
12771 echo "configure:12772: checking if size_t is unsigned long" >&5
12772 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12773 echo $ac_n "(cached) $ac_c" 1>&6
12774 else
12775 cat > conftest.$ac_ext <<EOF
12776 #line 12777 "configure"
12777 #include "confdefs.h"
12778 #include <stddef.h>
12779 int main() {
12780
12781 return 0; }
12782
12783 struct Foo { void foo(size_t); void foo(unsigned long); };
12784
12785 int bar() {
12786
12787 ; return 0; }
12788 EOF
12789 if { (eval echo configure:12790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12790 rm -rf conftest*
12791 wx_cv_size_t_is_ulong=no
12792 else
12793 echo "configure: failed program was:" >&5
12794 cat conftest.$ac_ext >&5
12795 rm -rf conftest*
12796 wx_cv_size_t_is_ulong=yes
12797
12798 fi
12799 rm -f conftest*
12800
12801 fi
12802
12803 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12804
12805 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12806 cat >> confdefs.h <<\EOF
12807 #define wxSIZE_T_IS_ULONG 1
12808 EOF
12809
12810 fi
12811 fi
12812
12813 ac_ext=c
12814 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12815 ac_cpp='$CPP $CPPFLAGS'
12816 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12817 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12818 cross_compiling=$ac_cv_prog_cc_cross
12819
12820
12821
12822 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
12823 echo "configure:12824: checking for pw_gecos in struct passwd" >&5
12824 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12825 echo $ac_n "(cached) $ac_c" 1>&6
12826 else
12827
12828 cat > conftest.$ac_ext <<EOF
12829 #line 12830 "configure"
12830 #include "confdefs.h"
12831 #include <pwd.h>
12832 int main() {
12833
12834 char *p;
12835 struct passwd *pw;
12836 p = pw->pw_gecos;
12837
12838 ; return 0; }
12839 EOF
12840 if { (eval echo configure:12841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12841 rm -rf conftest*
12842
12843 wx_cv_struct_pw_gecos=yes
12844
12845 else
12846 echo "configure: failed program was:" >&5
12847 cat conftest.$ac_ext >&5
12848 rm -rf conftest*
12849
12850 wx_cv_struct_pw_gecos=no
12851
12852
12853 fi
12854 rm -f conftest*
12855
12856
12857 fi
12858
12859 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
12860
12861 if test "$wx_cv_struct_pw_gecos" = "yes"; then
12862 cat >> confdefs.h <<\EOF
12863 #define HAVE_PW_GECOS 1
12864 EOF
12865
12866 fi
12867
12868
12869 echo $ac_n "checking for working const""... $ac_c" 1>&6
12870 echo "configure:12871: checking for working const" >&5
12871 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12872 echo $ac_n "(cached) $ac_c" 1>&6
12873 else
12874 cat > conftest.$ac_ext <<EOF
12875 #line 12876 "configure"
12876 #include "confdefs.h"
12877
12878 int main() {
12879
12880 /* Ultrix mips cc rejects this. */
12881 typedef int charset[2]; const charset x;
12882 /* SunOS 4.1.1 cc rejects this. */
12883 char const *const *ccp;
12884 char **p;
12885 /* NEC SVR4.0.2 mips cc rejects this. */
12886 struct point {int x, y;};
12887 static struct point const zero = {0,0};
12888 /* AIX XL C 1.02.0.0 rejects this.
12889 It does not let you subtract one const X* pointer from another in an arm
12890 of an if-expression whose if-part is not a constant expression */
12891 const char *g = "string";
12892 ccp = &g + (g ? g-g : 0);
12893 /* HPUX 7.0 cc rejects these. */
12894 ++ccp;
12895 p = (char**) ccp;
12896 ccp = (char const *const *) p;
12897 { /* SCO 3.2v4 cc rejects this. */
12898 char *t;
12899 char const *s = 0 ? (char *) 0 : (char const *) 0;
12900
12901 *t++ = 0;
12902 }
12903 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12904 int x[] = {25, 17};
12905 const int *foo = &x[0];
12906 ++foo;
12907 }
12908 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12909 typedef const int *iptr;
12910 iptr p = 0;
12911 ++p;
12912 }
12913 { /* AIX XL C 1.02.0.0 rejects this saying
12914 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12915 struct s { int j; const int *ap[3]; };
12916 struct s *b; b->j = 5;
12917 }
12918 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12919 const int foo = 10;
12920 }
12921
12922 ; return 0; }
12923 EOF
12924 if { (eval echo configure:12925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12925 rm -rf conftest*
12926 ac_cv_c_const=yes
12927 else
12928 echo "configure: failed program was:" >&5
12929 cat conftest.$ac_ext >&5
12930 rm -rf conftest*
12931 ac_cv_c_const=no
12932 fi
12933 rm -f conftest*
12934 fi
12935
12936 echo "$ac_t""$ac_cv_c_const" 1>&6
12937 if test $ac_cv_c_const = no; then
12938 cat >> confdefs.h <<\EOF
12939 #define const
12940 EOF
12941
12942 fi
12943
12944 echo $ac_n "checking for inline""... $ac_c" 1>&6
12945 echo "configure:12946: checking for inline" >&5
12946 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12947 echo $ac_n "(cached) $ac_c" 1>&6
12948 else
12949 ac_cv_c_inline=no
12950 for ac_kw in inline __inline__ __inline; do
12951 cat > conftest.$ac_ext <<EOF
12952 #line 12953 "configure"
12953 #include "confdefs.h"
12954
12955 int main() {
12956 } $ac_kw foo() {
12957 ; return 0; }
12958 EOF
12959 if { (eval echo configure:12960: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12960 rm -rf conftest*
12961 ac_cv_c_inline=$ac_kw; break
12962 else
12963 echo "configure: failed program was:" >&5
12964 cat conftest.$ac_ext >&5
12965 fi
12966 rm -f conftest*
12967 done
12968
12969 fi
12970
12971 echo "$ac_t""$ac_cv_c_inline" 1>&6
12972 case "$ac_cv_c_inline" in
12973 inline | yes) ;;
12974 no) cat >> confdefs.h <<\EOF
12975 #define inline
12976 EOF
12977 ;;
12978 *) cat >> confdefs.h <<EOF
12979 #define inline $ac_cv_c_inline
12980 EOF
12981 ;;
12982 esac
12983
12984
12985 echo $ac_n "checking size of char""... $ac_c" 1>&6
12986 echo "configure:12987: checking size of char" >&5
12987 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12988 echo $ac_n "(cached) $ac_c" 1>&6
12989 else
12990 if test "$cross_compiling" = yes; then
12991 ac_cv_sizeof_char=1
12992 else
12993 cat > conftest.$ac_ext <<EOF
12994 #line 12995 "configure"
12995 #include "confdefs.h"
12996 #include <stdio.h>
12997 main()
12998 {
12999 FILE *f=fopen("conftestval", "w");
13000 if (!f) exit(1);
13001 fprintf(f, "%d\n", sizeof(char));
13002 exit(0);
13003 }
13004 EOF
13005 if { (eval echo configure:13006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13006 then
13007 ac_cv_sizeof_char=`cat conftestval`
13008 else
13009 echo "configure: failed program was:" >&5
13010 cat conftest.$ac_ext >&5
13011 rm -fr conftest*
13012 ac_cv_sizeof_char=0
13013 fi
13014 rm -fr conftest*
13015 fi
13016
13017 fi
13018 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
13019 cat >> confdefs.h <<EOF
13020 #define SIZEOF_CHAR $ac_cv_sizeof_char
13021 EOF
13022
13023
13024 echo $ac_n "checking size of short""... $ac_c" 1>&6
13025 echo "configure:13026: checking size of short" >&5
13026 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
13027 echo $ac_n "(cached) $ac_c" 1>&6
13028 else
13029 if test "$cross_compiling" = yes; then
13030 ac_cv_sizeof_short=2
13031 else
13032 cat > conftest.$ac_ext <<EOF
13033 #line 13034 "configure"
13034 #include "confdefs.h"
13035 #include <stdio.h>
13036 main()
13037 {
13038 FILE *f=fopen("conftestval", "w");
13039 if (!f) exit(1);
13040 fprintf(f, "%d\n", sizeof(short));
13041 exit(0);
13042 }
13043 EOF
13044 if { (eval echo configure:13045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13045 then
13046 ac_cv_sizeof_short=`cat conftestval`
13047 else
13048 echo "configure: failed program was:" >&5
13049 cat conftest.$ac_ext >&5
13050 rm -fr conftest*
13051 ac_cv_sizeof_short=0
13052 fi
13053 rm -fr conftest*
13054 fi
13055
13056 fi
13057 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13058 cat >> confdefs.h <<EOF
13059 #define SIZEOF_SHORT $ac_cv_sizeof_short
13060 EOF
13061
13062
13063 echo $ac_n "checking size of int *""... $ac_c" 1>&6
13064 echo "configure:13065: checking size of int *" >&5
13065 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
13066 echo $ac_n "(cached) $ac_c" 1>&6
13067 else
13068 if test "$cross_compiling" = yes; then
13069 ac_cv_sizeof_int_p=4
13070 else
13071 cat > conftest.$ac_ext <<EOF
13072 #line 13073 "configure"
13073 #include "confdefs.h"
13074 #include <stdio.h>
13075 main()
13076 {
13077 FILE *f=fopen("conftestval", "w");
13078 if (!f) exit(1);
13079 fprintf(f, "%d\n", sizeof(int *));
13080 exit(0);
13081 }
13082 EOF
13083 if { (eval echo configure:13084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13084 then
13085 ac_cv_sizeof_int_p=`cat conftestval`
13086 else
13087 echo "configure: failed program was:" >&5
13088 cat conftest.$ac_ext >&5
13089 rm -fr conftest*
13090 ac_cv_sizeof_int_p=0
13091 fi
13092 rm -fr conftest*
13093 fi
13094
13095 fi
13096 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
13097 cat >> confdefs.h <<EOF
13098 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13099 EOF
13100
13101
13102 echo $ac_n "checking size of int""... $ac_c" 1>&6
13103 echo "configure:13104: checking size of int" >&5
13104 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
13105 echo $ac_n "(cached) $ac_c" 1>&6
13106 else
13107 if test "$cross_compiling" = yes; then
13108 ac_cv_sizeof_int=4
13109 else
13110 cat > conftest.$ac_ext <<EOF
13111 #line 13112 "configure"
13112 #include "confdefs.h"
13113 #include <stdio.h>
13114 main()
13115 {
13116 FILE *f=fopen("conftestval", "w");
13117 if (!f) exit(1);
13118 fprintf(f, "%d\n", sizeof(int));
13119 exit(0);
13120 }
13121 EOF
13122 if { (eval echo configure:13123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13123 then
13124 ac_cv_sizeof_int=`cat conftestval`
13125 else
13126 echo "configure: failed program was:" >&5
13127 cat conftest.$ac_ext >&5
13128 rm -fr conftest*
13129 ac_cv_sizeof_int=0
13130 fi
13131 rm -fr conftest*
13132 fi
13133
13134 fi
13135 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13136 cat >> confdefs.h <<EOF
13137 #define SIZEOF_INT $ac_cv_sizeof_int
13138 EOF
13139
13140
13141 echo $ac_n "checking size of long""... $ac_c" 1>&6
13142 echo "configure:13143: checking size of long" >&5
13143 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
13144 echo $ac_n "(cached) $ac_c" 1>&6
13145 else
13146 if test "$cross_compiling" = yes; then
13147 ac_cv_sizeof_long=4
13148 else
13149 cat > conftest.$ac_ext <<EOF
13150 #line 13151 "configure"
13151 #include "confdefs.h"
13152 #include <stdio.h>
13153 main()
13154 {
13155 FILE *f=fopen("conftestval", "w");
13156 if (!f) exit(1);
13157 fprintf(f, "%d\n", sizeof(long));
13158 exit(0);
13159 }
13160 EOF
13161 if { (eval echo configure:13162: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13162 then
13163 ac_cv_sizeof_long=`cat conftestval`
13164 else
13165 echo "configure: failed program was:" >&5
13166 cat conftest.$ac_ext >&5
13167 rm -fr conftest*
13168 ac_cv_sizeof_long=0
13169 fi
13170 rm -fr conftest*
13171 fi
13172
13173 fi
13174 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13175 cat >> confdefs.h <<EOF
13176 #define SIZEOF_LONG $ac_cv_sizeof_long
13177 EOF
13178
13179
13180 echo $ac_n "checking size of long long""... $ac_c" 1>&6
13181 echo "configure:13182: checking size of long long" >&5
13182 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
13183 echo $ac_n "(cached) $ac_c" 1>&6
13184 else
13185 if test "$cross_compiling" = yes; then
13186 ac_cv_sizeof_long_long=0
13187 else
13188 cat > conftest.$ac_ext <<EOF
13189 #line 13190 "configure"
13190 #include "confdefs.h"
13191 #include <stdio.h>
13192 main()
13193 {
13194 FILE *f=fopen("conftestval", "w");
13195 if (!f) exit(1);
13196 fprintf(f, "%d\n", sizeof(long long));
13197 exit(0);
13198 }
13199 EOF
13200 if { (eval echo configure:13201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13201 then
13202 ac_cv_sizeof_long_long=`cat conftestval`
13203 else
13204 echo "configure: failed program was:" >&5
13205 cat conftest.$ac_ext >&5
13206 rm -fr conftest*
13207 ac_cv_sizeof_long_long=0
13208 fi
13209 rm -fr conftest*
13210 fi
13211
13212 fi
13213 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
13214 cat >> confdefs.h <<EOF
13215 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13216 EOF
13217
13218
13219
13220 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
13221 echo "configure:13222: checking size of wchar_t" >&5
13222 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
13223 echo $ac_n "(cached) $ac_c" 1>&6
13224 else
13225
13226 if test "$cross_compiling" = yes; then
13227 wx_cv_sizeof_wchar_t=4
13228
13229 else
13230 cat > conftest.$ac_ext <<EOF
13231 #line 13232 "configure"
13232 #include "confdefs.h"
13233
13234 #ifdef HAVE_WCHAR_H
13235 # include <wchar.h>
13236 #endif
13237 #ifdef HAVE_STDLIB_H
13238 # include <stdlib.h>
13239 #endif
13240 #include <stdio.h>
13241 int main()
13242 {
13243 FILE *f=fopen("conftestval", "w");
13244 if (!f) exit(1);
13245 fprintf(f, "%i", sizeof(wchar_t));
13246 exit(0);
13247 }
13248
13249 EOF
13250 if { (eval echo configure:13251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13251 then
13252 wx_cv_sizeof_wchar_t=`cat conftestval`
13253 else
13254 echo "configure: failed program was:" >&5
13255 cat conftest.$ac_ext >&5
13256 rm -fr conftest*
13257 wx_cv_sizeof_wchar_t=0
13258 fi
13259 rm -fr conftest*
13260 fi
13261
13262
13263 fi
13264
13265 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
13266
13267 cat >> confdefs.h <<EOF
13268 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
13269 EOF
13270
13271
13272 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
13273 echo "configure:13274: checking whether byte ordering is bigendian" >&5
13274 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
13275 echo $ac_n "(cached) $ac_c" 1>&6
13276 else
13277 ac_cv_c_bigendian=unknown
13278 # See if sys/param.h defines the BYTE_ORDER macro.
13279 cat > conftest.$ac_ext <<EOF
13280 #line 13281 "configure"
13281 #include "confdefs.h"
13282 #include <sys/types.h>
13283 #include <sys/param.h>
13284 int main() {
13285
13286 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13287 bogus endian macros
13288 #endif
13289 ; return 0; }
13290 EOF
13291 if { (eval echo configure:13292: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13292 rm -rf conftest*
13293 # It does; now see whether it defined to BIG_ENDIAN or not.
13294 cat > conftest.$ac_ext <<EOF
13295 #line 13296 "configure"
13296 #include "confdefs.h"
13297 #include <sys/types.h>
13298 #include <sys/param.h>
13299 int main() {
13300
13301 #if BYTE_ORDER != BIG_ENDIAN
13302 not big endian
13303 #endif
13304 ; return 0; }
13305 EOF
13306 if { (eval echo configure:13307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13307 rm -rf conftest*
13308 ac_cv_c_bigendian=yes
13309 else
13310 echo "configure: failed program was:" >&5
13311 cat conftest.$ac_ext >&5
13312 rm -rf conftest*
13313 ac_cv_c_bigendian=no
13314 fi
13315 rm -f conftest*
13316 else
13317 echo "configure: failed program was:" >&5
13318 cat conftest.$ac_ext >&5
13319 fi
13320 rm -f conftest*
13321 if test $ac_cv_c_bigendian = unknown; then
13322 if test "$cross_compiling" = yes; then
13323 ac_cv_c_bigendian=unknown
13324 else
13325 cat > conftest.$ac_ext <<EOF
13326 #line 13327 "configure"
13327 #include "confdefs.h"
13328 main () {
13329 /* Are we little or big endian? From Harbison&Steele. */
13330 union
13331 {
13332 long l;
13333 char c[sizeof (long)];
13334 } u;
13335 u.l = 1;
13336 exit (u.c[sizeof (long) - 1] == 1);
13337 }
13338 EOF
13339 if { (eval echo configure:13340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13340 then
13341 ac_cv_c_bigendian=no
13342 else
13343 echo "configure: failed program was:" >&5
13344 cat conftest.$ac_ext >&5
13345 rm -fr conftest*
13346 ac_cv_c_bigendian=yes
13347 fi
13348 rm -fr conftest*
13349 fi
13350
13351 fi
13352 fi
13353
13354 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13355 if test $ac_cv_c_bigendian = unknown; then
13356 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
13357 fi
13358 if test $ac_cv_c_bigendian = yes; then
13359 cat >> confdefs.h <<\EOF
13360 #define WORDS_BIGENDIAN 1
13361 EOF
13362
13363 fi
13364
13365
13366 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
13367 echo "configure:13368: checking how to run the C++ preprocessor" >&5
13368 if test -z "$CXXCPP"; then
13369 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
13370 echo $ac_n "(cached) $ac_c" 1>&6
13371 else
13372 ac_ext=C
13373 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13374 ac_cpp='$CXXCPP $CPPFLAGS'
13375 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13376 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13377 cross_compiling=$ac_cv_prog_cxx_cross
13378 CXXCPP="${CXX-g++} -E"
13379 cat > conftest.$ac_ext <<EOF
13380 #line 13381 "configure"
13381 #include "confdefs.h"
13382 #include <stdlib.h>
13383 EOF
13384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13385 { (eval echo configure:13386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13387 if test -z "$ac_err"; then
13388 :
13389 else
13390 echo "$ac_err" >&5
13391 echo "configure: failed program was:" >&5
13392 cat conftest.$ac_ext >&5
13393 rm -rf conftest*
13394 CXXCPP=/lib/cpp
13395 fi
13396 rm -f conftest*
13397 ac_cv_prog_CXXCPP="$CXXCPP"
13398 ac_ext=C
13399 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13400 ac_cpp='$CXXCPP $CPPFLAGS'
13401 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13402 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13403 cross_compiling=$ac_cv_prog_cxx_cross
13404 fi
13405 fi
13406 CXXCPP="$ac_cv_prog_CXXCPP"
13407 echo "$ac_t""$CXXCPP" 1>&6
13408
13409
13410 if test "$cross_compiling" = "yes"; then
13411 cat >> confdefs.h <<\EOF
13412 #define wxUSE_IOSTREAMH 1
13413 EOF
13414
13415 else
13416
13417 ac_ext=C
13418 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13419 ac_cpp='$CXXCPP $CPPFLAGS'
13420 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13421 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13422 cross_compiling=$ac_cv_prog_cxx_cross
13423
13424
13425 for ac_hdr in iostream
13426 do
13427 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
13428 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
13429 echo "configure:13430: checking for $ac_hdr" >&5
13430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
13431 echo $ac_n "(cached) $ac_c" 1>&6
13432 else
13433 cat > conftest.$ac_ext <<EOF
13434 #line 13435 "configure"
13435 #include "confdefs.h"
13436 #include <$ac_hdr>
13437 EOF
13438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13439 { (eval echo configure:13440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13441 if test -z "$ac_err"; then
13442 rm -rf conftest*
13443 eval "ac_cv_header_$ac_safe=yes"
13444 else
13445 echo "$ac_err" >&5
13446 echo "configure: failed program was:" >&5
13447 cat conftest.$ac_ext >&5
13448 rm -rf conftest*
13449 eval "ac_cv_header_$ac_safe=no"
13450 fi
13451 rm -f conftest*
13452 fi
13453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
13454 echo "$ac_t""yes" 1>&6
13455 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
13456 cat >> confdefs.h <<EOF
13457 #define $ac_tr_hdr 1
13458 EOF
13459
13460 else
13461 echo "$ac_t""no" 1>&6
13462 fi
13463 done
13464
13465
13466 if test "$ac_cv_header_iostream" = "yes" ; then
13467 :
13468 else
13469 cat >> confdefs.h <<\EOF
13470 #define wxUSE_IOSTREAMH 1
13471 EOF
13472
13473 fi
13474
13475 ac_ext=c
13476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13477 ac_cpp='$CPP $CPPFLAGS'
13478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13480 cross_compiling=$ac_cv_prog_cc_cross
13481
13482 fi
13483
13484
13485
13486 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
13487 echo "configure:13488: checking if C++ compiler supports bool" >&5
13488 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
13489 echo $ac_n "(cached) $ac_c" 1>&6
13490 else
13491
13492
13493 ac_ext=C
13494 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13495 ac_cpp='$CXXCPP $CPPFLAGS'
13496 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13497 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13498 cross_compiling=$ac_cv_prog_cxx_cross
13499
13500
13501 cat > conftest.$ac_ext <<EOF
13502 #line 13503 "configure"
13503 #include "confdefs.h"
13504
13505
13506 int main() {
13507
13508 bool b = true;
13509
13510 return 0;
13511
13512 ; return 0; }
13513 EOF
13514 if { (eval echo configure:13515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13515 rm -rf conftest*
13516
13517 wx_cv_cpp_bool=yes
13518
13519 else
13520 echo "configure: failed program was:" >&5
13521 cat conftest.$ac_ext >&5
13522 rm -rf conftest*
13523
13524 wx_cv_cpp_bool=no
13525
13526
13527 fi
13528 rm -f conftest*
13529
13530 ac_ext=c
13531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13532 ac_cpp='$CPP $CPPFLAGS'
13533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13535 cross_compiling=$ac_cv_prog_cc_cross
13536
13537
13538 fi
13539
13540 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
13541
13542 if test "$wx_cv_cpp_bool" = "yes"; then
13543 cat >> confdefs.h <<\EOF
13544 #define HAVE_BOOL 1
13545 EOF
13546
13547 fi
13548
13549
13550
13551 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
13552 echo "configure:13553: checking for wcslen in -lc" >&5
13553 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
13554 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13555 echo $ac_n "(cached) $ac_c" 1>&6
13556 else
13557 ac_save_LIBS="$LIBS"
13558 LIBS="-lc $LIBS"
13559 cat > conftest.$ac_ext <<EOF
13560 #line 13561 "configure"
13561 #include "confdefs.h"
13562 /* Override any gcc2 internal prototype to avoid an error. */
13563 /* We use char because int might match the return type of a gcc2
13564 builtin and then its argument prototype would still apply. */
13565 char wcslen();
13566
13567 int main() {
13568 wcslen()
13569 ; return 0; }
13570 EOF
13571 if { (eval echo configure:13572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13572 rm -rf conftest*
13573 eval "ac_cv_lib_$ac_lib_var=yes"
13574 else
13575 echo "configure: failed program was:" >&5
13576 cat conftest.$ac_ext >&5
13577 rm -rf conftest*
13578 eval "ac_cv_lib_$ac_lib_var=no"
13579 fi
13580 rm -f conftest*
13581 LIBS="$ac_save_LIBS"
13582
13583 fi
13584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13585 echo "$ac_t""yes" 1>&6
13586
13587 cat >> confdefs.h <<\EOF
13588 #define HAVE_WCSLEN 1
13589 EOF
13590
13591 WCHAR_LINK=""
13592
13593 else
13594 echo "$ac_t""no" 1>&6
13595
13596 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
13597 echo "configure:13598: checking for wcslen in -lw" >&5
13598 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
13599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13600 echo $ac_n "(cached) $ac_c" 1>&6
13601 else
13602 ac_save_LIBS="$LIBS"
13603 LIBS="-lw $LIBS"
13604 cat > conftest.$ac_ext <<EOF
13605 #line 13606 "configure"
13606 #include "confdefs.h"
13607 /* Override any gcc2 internal prototype to avoid an error. */
13608 /* We use char because int might match the return type of a gcc2
13609 builtin and then its argument prototype would still apply. */
13610 char wcslen();
13611
13612 int main() {
13613 wcslen()
13614 ; return 0; }
13615 EOF
13616 if { (eval echo configure:13617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13617 rm -rf conftest*
13618 eval "ac_cv_lib_$ac_lib_var=yes"
13619 else
13620 echo "configure: failed program was:" >&5
13621 cat conftest.$ac_ext >&5
13622 rm -rf conftest*
13623 eval "ac_cv_lib_$ac_lib_var=no"
13624 fi
13625 rm -f conftest*
13626 LIBS="$ac_save_LIBS"
13627
13628 fi
13629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13630 echo "$ac_t""yes" 1>&6
13631
13632 cat >> confdefs.h <<\EOF
13633 #define HAVE_WCSLEN 1
13634 EOF
13635
13636 WCHAR_LINK="-lw"
13637
13638 else
13639 echo "$ac_t""no" 1>&6
13640
13641 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
13642 echo "configure:13643: checking for wcslen in -lmsvcrt" >&5
13643 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
13644 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13645 echo $ac_n "(cached) $ac_c" 1>&6
13646 else
13647 ac_save_LIBS="$LIBS"
13648 LIBS="-lmsvcrt $LIBS"
13649 cat > conftest.$ac_ext <<EOF
13650 #line 13651 "configure"
13651 #include "confdefs.h"
13652 /* Override any gcc2 internal prototype to avoid an error. */
13653 /* We use char because int might match the return type of a gcc2
13654 builtin and then its argument prototype would still apply. */
13655 char wcslen();
13656
13657 int main() {
13658 wcslen()
13659 ; return 0; }
13660 EOF
13661 if { (eval echo configure:13662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13662 rm -rf conftest*
13663 eval "ac_cv_lib_$ac_lib_var=yes"
13664 else
13665 echo "configure: failed program was:" >&5
13666 cat conftest.$ac_ext >&5
13667 rm -rf conftest*
13668 eval "ac_cv_lib_$ac_lib_var=no"
13669 fi
13670 rm -f conftest*
13671 LIBS="$ac_save_LIBS"
13672
13673 fi
13674 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13675 echo "$ac_t""yes" 1>&6
13676
13677 cat >> confdefs.h <<\EOF
13678 #define HAVE_WCSLEN 1
13679 EOF
13680
13681 WCHAR_LINK=""
13682
13683 else
13684 echo "$ac_t""no" 1>&6
13685 fi
13686
13687
13688 fi
13689
13690
13691 fi
13692
13693
13694 for ac_func in wcsrtombs
13695 do
13696 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13697 echo "configure:13698: checking for $ac_func" >&5
13698 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13699 echo $ac_n "(cached) $ac_c" 1>&6
13700 else
13701 cat > conftest.$ac_ext <<EOF
13702 #line 13703 "configure"
13703 #include "confdefs.h"
13704 /* System header to define __stub macros and hopefully few prototypes,
13705 which can conflict with char $ac_func(); below. */
13706 #include <assert.h>
13707 /* Override any gcc2 internal prototype to avoid an error. */
13708 /* We use char because int might match the return type of a gcc2
13709 builtin and then its argument prototype would still apply. */
13710 char $ac_func();
13711
13712 int main() {
13713
13714 /* The GNU C library defines this for functions which it implements
13715 to always fail with ENOSYS. Some functions are actually named
13716 something starting with __ and the normal name is an alias. */
13717 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13718 choke me
13719 #else
13720 $ac_func();
13721 #endif
13722
13723 ; return 0; }
13724 EOF
13725 if { (eval echo configure:13726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13726 rm -rf conftest*
13727 eval "ac_cv_func_$ac_func=yes"
13728 else
13729 echo "configure: failed program was:" >&5
13730 cat conftest.$ac_ext >&5
13731 rm -rf conftest*
13732 eval "ac_cv_func_$ac_func=no"
13733 fi
13734 rm -f conftest*
13735 fi
13736
13737 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13738 echo "$ac_t""yes" 1>&6
13739 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13740 cat >> confdefs.h <<EOF
13741 #define $ac_tr_func 1
13742 EOF
13743
13744 else
13745 echo "$ac_t""no" 1>&6
13746 fi
13747 done
13748
13749
13750 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
13751 echo "configure:13752: checking for vprintf" >&5
13752 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
13753 echo $ac_n "(cached) $ac_c" 1>&6
13754 else
13755 cat > conftest.$ac_ext <<EOF
13756 #line 13757 "configure"
13757 #include "confdefs.h"
13758 /* System header to define __stub macros and hopefully few prototypes,
13759 which can conflict with char vprintf(); below. */
13760 #include <assert.h>
13761 /* Override any gcc2 internal prototype to avoid an error. */
13762 /* We use char because int might match the return type of a gcc2
13763 builtin and then its argument prototype would still apply. */
13764 char vprintf();
13765
13766 int main() {
13767
13768 /* The GNU C library defines this for functions which it implements
13769 to always fail with ENOSYS. Some functions are actually named
13770 something starting with __ and the normal name is an alias. */
13771 #if defined (__stub_vprintf) || defined (__stub___vprintf)
13772 choke me
13773 #else
13774 vprintf();
13775 #endif
13776
13777 ; return 0; }
13778 EOF
13779 if { (eval echo configure:13780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13780 rm -rf conftest*
13781 eval "ac_cv_func_vprintf=yes"
13782 else
13783 echo "configure: failed program was:" >&5
13784 cat conftest.$ac_ext >&5
13785 rm -rf conftest*
13786 eval "ac_cv_func_vprintf=no"
13787 fi
13788 rm -f conftest*
13789 fi
13790
13791 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
13792 echo "$ac_t""yes" 1>&6
13793 cat >> confdefs.h <<\EOF
13794 #define HAVE_VPRINTF 1
13795 EOF
13796
13797 else
13798 echo "$ac_t""no" 1>&6
13799 fi
13800
13801 if test "$ac_cv_func_vprintf" != yes; then
13802 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
13803 echo "configure:13804: checking for _doprnt" >&5
13804 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
13805 echo $ac_n "(cached) $ac_c" 1>&6
13806 else
13807 cat > conftest.$ac_ext <<EOF
13808 #line 13809 "configure"
13809 #include "confdefs.h"
13810 /* System header to define __stub macros and hopefully few prototypes,
13811 which can conflict with char _doprnt(); below. */
13812 #include <assert.h>
13813 /* Override any gcc2 internal prototype to avoid an error. */
13814 /* We use char because int might match the return type of a gcc2
13815 builtin and then its argument prototype would still apply. */
13816 char _doprnt();
13817
13818 int main() {
13819
13820 /* The GNU C library defines this for functions which it implements
13821 to always fail with ENOSYS. Some functions are actually named
13822 something starting with __ and the normal name is an alias. */
13823 #if defined (__stub__doprnt) || defined (__stub____doprnt)
13824 choke me
13825 #else
13826 _doprnt();
13827 #endif
13828
13829 ; return 0; }
13830 EOF
13831 if { (eval echo configure:13832: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13832 rm -rf conftest*
13833 eval "ac_cv_func__doprnt=yes"
13834 else
13835 echo "configure: failed program was:" >&5
13836 cat conftest.$ac_ext >&5
13837 rm -rf conftest*
13838 eval "ac_cv_func__doprnt=no"
13839 fi
13840 rm -f conftest*
13841 fi
13842
13843 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
13844 echo "$ac_t""yes" 1>&6
13845 cat >> confdefs.h <<\EOF
13846 #define HAVE_DOPRNT 1
13847 EOF
13848
13849 else
13850 echo "$ac_t""no" 1>&6
13851 fi
13852
13853 fi
13854
13855
13856
13857
13858
13859
13860 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
13861 echo "configure:13862: checking for vsnprintf" >&5
13862 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
13863 echo $ac_n "(cached) $ac_c" 1>&6
13864 else
13865
13866 cat > conftest.$ac_ext <<EOF
13867 #line 13868 "configure"
13868 #include "confdefs.h"
13869
13870 #include <stdio.h>
13871 #include <stdarg.h>
13872
13873 int main() {
13874
13875 int wx_test_vsnprintf(const char *, ...);
13876
13877 wx_test_vsnprintf("%s");
13878 return 0;
13879 }
13880
13881 int wx_test_vsnprintf(const char *fmt, ...)
13882 {
13883 char *s;
13884
13885 va_list argp;
13886 va_start(argp, fmt);
13887 vsnprintf(s, 42, fmt, argp);
13888 va_end(argp);
13889
13890 ; return 0; }
13891 EOF
13892 if { (eval echo configure:13893: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13893 rm -rf conftest*
13894
13895 wx_cv_func_vsnprintf=yes
13896
13897 else
13898 echo "configure: failed program was:" >&5
13899 cat conftest.$ac_ext >&5
13900 rm -rf conftest*
13901
13902 cat > conftest.$ac_ext <<EOF
13903 #line 13904 "configure"
13904 #include "confdefs.h"
13905
13906 #include <stdio.h>
13907 #include <stdarg.h>
13908
13909 int main() {
13910
13911 int wx_test_vsnprintf(const char *, ...);
13912
13913 wx_test_vsnprintf("%s");
13914 return 0;
13915 }
13916
13917 int wx_test_vsnprintf(const char *fmt, ...)
13918 {
13919 char *s;
13920
13921 va_list argp;
13922 va_start(argp, fmt);
13923 _vsnprintf(s, 42, fmt, argp);
13924 va_end(argp);
13925
13926 ; return 0; }
13927 EOF
13928 if { (eval echo configure:13929: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13929 rm -rf conftest*
13930
13931 wx_cv_func_vsnprintf=yes
13932
13933 else
13934 echo "configure: failed program was:" >&5
13935 cat conftest.$ac_ext >&5
13936 rm -rf conftest*
13937
13938 wx_cv_func_vsnprintf=no
13939
13940 fi
13941 rm -f conftest*
13942
13943 fi
13944 rm -f conftest*
13945
13946 fi
13947
13948 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
13949
13950 if test "$wx_cv_func_vsnprintf" = yes; then
13951 cat >> confdefs.h <<\EOF
13952 #define HAVE_VSNPRINTF 1
13953 EOF
13954
13955 else
13956 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
13957 fi
13958
13959 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
13960 echo "configure:13961: checking for vsscanf" >&5
13961 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13962 echo $ac_n "(cached) $ac_c" 1>&6
13963 else
13964
13965 cat > conftest.$ac_ext <<EOF
13966 #line 13967 "configure"
13967 #include "confdefs.h"
13968
13969 #include <stdio.h>
13970 #include <stdarg.h>
13971
13972 int main() {
13973
13974 int wx_test_vsscanf(const char *, ...);
13975
13976 wx_test_vsscanf("%d");
13977 return 0;
13978 }
13979
13980 int wx_test_vsscanf(const char *fmt, ...)
13981 {
13982 va_list argp;
13983 va_start(argp, fmt);
13984 vsscanf("42", fmt, argp);
13985 va_end(argp);
13986
13987 ; return 0; }
13988 EOF
13989 if { (eval echo configure:13990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13990 rm -rf conftest*
13991
13992 wx_cv_func_vsscanf=yes
13993
13994 else
13995 echo "configure: failed program was:" >&5
13996 cat conftest.$ac_ext >&5
13997 rm -rf conftest*
13998
13999 wx_cv_func_vsscanf=no
14000
14001 fi
14002 rm -f conftest*
14003
14004 fi
14005
14006 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
14007
14008 if test "$wx_cv_func_vsscanf" = yes; then
14009 cat >> confdefs.h <<\EOF
14010 #define HAVE_VSSCANF 1
14011 EOF
14012
14013 fi
14014
14015 if test "$TOOLKIT" != "MSW"; then
14016
14017
14018
14019 ac_ext=C
14020 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14021 ac_cpp='$CXXCPP $CPPFLAGS'
14022 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14023 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14024 cross_compiling=$ac_cv_prog_cxx_cross
14025
14026 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
14027 echo "configure:14028: checking if iconv() takes char**" >&5
14028 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
14029 echo $ac_n "(cached) $ac_c" 1>&6
14030 else
14031
14032 cat > conftest.$ac_ext <<EOF
14033 #line 14034 "configure"
14034 #include "confdefs.h"
14035 #include <iconv.h>
14036 int main() {
14037
14038 char **inbuf, **outbuf;
14039 iconv_t cd;
14040 size_t insz, outsz;
14041 iconv(cd, inbuf, &insz, outbuf, &outsz);
14042
14043 ; return 0; }
14044 EOF
14045 if { (eval echo configure:14046: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14046 rm -rf conftest*
14047 wx_cv_iconv_takes_char=yes
14048 else
14049 echo "configure: failed program was:" >&5
14050 cat conftest.$ac_ext >&5
14051 rm -rf conftest*
14052 wx_cv_iconv_takes_char=no
14053 fi
14054 rm -f conftest*
14055
14056 fi
14057
14058 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
14059 ac_ext=c
14060 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14061 ac_cpp='$CPP $CPPFLAGS'
14062 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14063 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14064 cross_compiling=$ac_cv_prog_cc_cross
14065
14066 if test "$wx_cv_iconv_takes_char" = yes ; then
14067 cat >> confdefs.h <<\EOF
14068 #define WX_ICONV_TAKES_CHAR 1
14069 EOF
14070
14071 fi
14072
14073
14074 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
14075 for ac_func in sigaction
14076 do
14077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14078 echo "configure:14079: checking for $ac_func" >&5
14079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14080 echo $ac_n "(cached) $ac_c" 1>&6
14081 else
14082 cat > conftest.$ac_ext <<EOF
14083 #line 14084 "configure"
14084 #include "confdefs.h"
14085 /* System header to define __stub macros and hopefully few prototypes,
14086 which can conflict with char $ac_func(); below. */
14087 #include <assert.h>
14088 /* Override any gcc2 internal prototype to avoid an error. */
14089 /* We use char because int might match the return type of a gcc2
14090 builtin and then its argument prototype would still apply. */
14091 char $ac_func();
14092
14093 int main() {
14094
14095 /* The GNU C library defines this for functions which it implements
14096 to always fail with ENOSYS. Some functions are actually named
14097 something starting with __ and the normal name is an alias. */
14098 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14099 choke me
14100 #else
14101 $ac_func();
14102 #endif
14103
14104 ; return 0; }
14105 EOF
14106 if { (eval echo configure:14107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14107 rm -rf conftest*
14108 eval "ac_cv_func_$ac_func=yes"
14109 else
14110 echo "configure: failed program was:" >&5
14111 cat conftest.$ac_ext >&5
14112 rm -rf conftest*
14113 eval "ac_cv_func_$ac_func=no"
14114 fi
14115 rm -f conftest*
14116 fi
14117
14118 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14119 echo "$ac_t""yes" 1>&6
14120 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14121 cat >> confdefs.h <<EOF
14122 #define $ac_tr_func 1
14123 EOF
14124
14125 else
14126 echo "$ac_t""no" 1>&6
14127 fi
14128 done
14129
14130
14131 if test "$ac_cv_func_sigaction" = "no"; then
14132 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
14133 wxUSE_ON_FATAL_EXCEPTION=no
14134 fi
14135
14136 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
14137
14138 ac_ext=C
14139 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14140 ac_cpp='$CXXCPP $CPPFLAGS'
14141 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14142 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14143 cross_compiling=$ac_cv_prog_cxx_cross
14144
14145
14146 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
14147 echo "configure:14148: checking for sa_handler type" >&5
14148 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
14149 echo $ac_n "(cached) $ac_c" 1>&6
14150 else
14151
14152 cat > conftest.$ac_ext <<EOF
14153 #line 14154 "configure"
14154 #include "confdefs.h"
14155 #include <signal.h>
14156 int main() {
14157
14158 extern void testSigHandler(int);
14159
14160 struct sigaction sa;
14161 sa.sa_handler = testSigHandler;
14162
14163 ; return 0; }
14164 EOF
14165 if { (eval echo configure:14166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14166 rm -rf conftest*
14167
14168 wx_cv_type_sa_handler=int
14169
14170 else
14171 echo "configure: failed program was:" >&5
14172 cat conftest.$ac_ext >&5
14173 rm -rf conftest*
14174
14175 wx_cv_type_sa_handler=void
14176
14177 fi
14178 rm -f conftest*
14179
14180 fi
14181
14182 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
14183
14184 ac_ext=c
14185 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14186 ac_cpp='$CPP $CPPFLAGS'
14187 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14188 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14189 cross_compiling=$ac_cv_prog_cc_cross
14190
14191
14192 cat >> confdefs.h <<EOF
14193 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
14194 EOF
14195
14196 fi
14197 fi
14198
14199 for ac_func in vfork
14200 do
14201 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14202 echo "configure:14203: checking for $ac_func" >&5
14203 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14204 echo $ac_n "(cached) $ac_c" 1>&6
14205 else
14206 cat > conftest.$ac_ext <<EOF
14207 #line 14208 "configure"
14208 #include "confdefs.h"
14209 /* System header to define __stub macros and hopefully few prototypes,
14210 which can conflict with char $ac_func(); below. */
14211 #include <assert.h>
14212 /* Override any gcc2 internal prototype to avoid an error. */
14213 /* We use char because int might match the return type of a gcc2
14214 builtin and then its argument prototype would still apply. */
14215 char $ac_func();
14216
14217 int main() {
14218
14219 /* The GNU C library defines this for functions which it implements
14220 to always fail with ENOSYS. Some functions are actually named
14221 something starting with __ and the normal name is an alias. */
14222 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14223 choke me
14224 #else
14225 $ac_func();
14226 #endif
14227
14228 ; return 0; }
14229 EOF
14230 if { (eval echo configure:14231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14231 rm -rf conftest*
14232 eval "ac_cv_func_$ac_func=yes"
14233 else
14234 echo "configure: failed program was:" >&5
14235 cat conftest.$ac_ext >&5
14236 rm -rf conftest*
14237 eval "ac_cv_func_$ac_func=no"
14238 fi
14239 rm -f conftest*
14240 fi
14241
14242 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14243 echo "$ac_t""yes" 1>&6
14244 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14245 cat >> confdefs.h <<EOF
14246 #define $ac_tr_func 1
14247 EOF
14248
14249 else
14250 echo "$ac_t""no" 1>&6
14251 fi
14252 done
14253
14254
14255 echo $ac_n "checking for statfs""... $ac_c" 1>&6
14256 echo "configure:14257: checking for statfs" >&5
14257 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
14258 echo $ac_n "(cached) $ac_c" 1>&6
14259 else
14260 cat > conftest.$ac_ext <<EOF
14261 #line 14262 "configure"
14262 #include "confdefs.h"
14263
14264 #if defined(__BSD__)
14265 #include <sys/param.h>
14266 #include <sys/mount.h>
14267 #else
14268 #include <sys/vfs.h>
14269 #endif
14270
14271 int main() {
14272
14273 long l;
14274 struct statfs fs;
14275 statfs("/", &fs);
14276 l = fs.f_bsize;
14277 l += fs.f_blocks;
14278 l += fs.f_bavail;
14279
14280 ; return 0; }
14281 EOF
14282 if { (eval echo configure:14283: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14283 rm -rf conftest*
14284
14285 wx_cv_func_statfs=yes
14286
14287 else
14288 echo "configure: failed program was:" >&5
14289 cat conftest.$ac_ext >&5
14290 rm -rf conftest*
14291
14292 wx_cv_func_statfs=no
14293
14294
14295 fi
14296 rm -f conftest*
14297
14298 fi
14299
14300 echo "$ac_t""$wx_cv_func_statfs" 1>&6
14301
14302 if test "$wx_cv_func_statfs" = "yes"; then
14303 cat >> confdefs.h <<\EOF
14304 #define HAVE_STATFS 1
14305 EOF
14306
14307 else
14308 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
14309 echo "configure:14310: checking for statvfs" >&5
14310 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
14311 echo $ac_n "(cached) $ac_c" 1>&6
14312 else
14313 cat > conftest.$ac_ext <<EOF
14314 #line 14315 "configure"
14315 #include "confdefs.h"
14316
14317 #include <sys/statvfs.h>
14318
14319 int main() {
14320
14321 long l;
14322 struct statvfs fs;
14323 statvfs("/", &fs);
14324 l = fs.f_bsize;
14325 l += fs.f_blocks;
14326 l += fs.f_bavail;
14327
14328 ; return 0; }
14329 EOF
14330 if { (eval echo configure:14331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14331 rm -rf conftest*
14332
14333 wx_cv_func_statvfs=yes
14334
14335 else
14336 echo "configure: failed program was:" >&5
14337 cat conftest.$ac_ext >&5
14338 rm -rf conftest*
14339
14340 wx_cv_func_statvfs=no
14341
14342
14343 fi
14344 rm -f conftest*
14345
14346 fi
14347
14348 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
14349
14350 if test "$wx_cv_func_statvfs" = "yes"; then
14351 cat >> confdefs.h <<\EOF
14352 #define HAVE_STATVFS 1
14353 EOF
14354
14355 else
14356 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
14357 fi
14358 fi
14359
14360 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
14361 for ac_func in fcntl flock
14362 do
14363 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14364 echo "configure:14365: checking for $ac_func" >&5
14365 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14366 echo $ac_n "(cached) $ac_c" 1>&6
14367 else
14368 cat > conftest.$ac_ext <<EOF
14369 #line 14370 "configure"
14370 #include "confdefs.h"
14371 /* System header to define __stub macros and hopefully few prototypes,
14372 which can conflict with char $ac_func(); below. */
14373 #include <assert.h>
14374 /* Override any gcc2 internal prototype to avoid an error. */
14375 /* We use char because int might match the return type of a gcc2
14376 builtin and then its argument prototype would still apply. */
14377 char $ac_func();
14378
14379 int main() {
14380
14381 /* The GNU C library defines this for functions which it implements
14382 to always fail with ENOSYS. Some functions are actually named
14383 something starting with __ and the normal name is an alias. */
14384 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14385 choke me
14386 #else
14387 $ac_func();
14388 #endif
14389
14390 ; return 0; }
14391 EOF
14392 if { (eval echo configure:14393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14393 rm -rf conftest*
14394 eval "ac_cv_func_$ac_func=yes"
14395 else
14396 echo "configure: failed program was:" >&5
14397 cat conftest.$ac_ext >&5
14398 rm -rf conftest*
14399 eval "ac_cv_func_$ac_func=no"
14400 fi
14401 rm -f conftest*
14402 fi
14403
14404 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14405 echo "$ac_t""yes" 1>&6
14406 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14407 cat >> confdefs.h <<EOF
14408 #define $ac_tr_func 1
14409 EOF
14410 break
14411 else
14412 echo "$ac_t""no" 1>&6
14413 fi
14414 done
14415
14416
14417 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
14418 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
14419 wxUSE_SNGLINST_CHECKER=no
14420 fi
14421 fi
14422
14423 for ac_func in timegm
14424 do
14425 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14426 echo "configure:14427: checking for $ac_func" >&5
14427 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14428 echo $ac_n "(cached) $ac_c" 1>&6
14429 else
14430 cat > conftest.$ac_ext <<EOF
14431 #line 14432 "configure"
14432 #include "confdefs.h"
14433 /* System header to define __stub macros and hopefully few prototypes,
14434 which can conflict with char $ac_func(); below. */
14435 #include <assert.h>
14436 /* Override any gcc2 internal prototype to avoid an error. */
14437 /* We use char because int might match the return type of a gcc2
14438 builtin and then its argument prototype would still apply. */
14439 char $ac_func();
14440
14441 int main() {
14442
14443 /* The GNU C library defines this for functions which it implements
14444 to always fail with ENOSYS. Some functions are actually named
14445 something starting with __ and the normal name is an alias. */
14446 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14447 choke me
14448 #else
14449 $ac_func();
14450 #endif
14451
14452 ; return 0; }
14453 EOF
14454 if { (eval echo configure:14455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14455 rm -rf conftest*
14456 eval "ac_cv_func_$ac_func=yes"
14457 else
14458 echo "configure: failed program was:" >&5
14459 cat conftest.$ac_ext >&5
14460 rm -rf conftest*
14461 eval "ac_cv_func_$ac_func=no"
14462 fi
14463 rm -f conftest*
14464 fi
14465
14466 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14467 echo "$ac_t""yes" 1>&6
14468 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14469 cat >> confdefs.h <<EOF
14470 #define $ac_tr_func 1
14471 EOF
14472
14473 else
14474 echo "$ac_t""no" 1>&6
14475 fi
14476 done
14477
14478
14479 for ac_func in putenv setenv
14480 do
14481 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14482 echo "configure:14483: checking for $ac_func" >&5
14483 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14484 echo $ac_n "(cached) $ac_c" 1>&6
14485 else
14486 cat > conftest.$ac_ext <<EOF
14487 #line 14488 "configure"
14488 #include "confdefs.h"
14489 /* System header to define __stub macros and hopefully few prototypes,
14490 which can conflict with char $ac_func(); below. */
14491 #include <assert.h>
14492 /* Override any gcc2 internal prototype to avoid an error. */
14493 /* We use char because int might match the return type of a gcc2
14494 builtin and then its argument prototype would still apply. */
14495 char $ac_func();
14496
14497 int main() {
14498
14499 /* The GNU C library defines this for functions which it implements
14500 to always fail with ENOSYS. Some functions are actually named
14501 something starting with __ and the normal name is an alias. */
14502 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14503 choke me
14504 #else
14505 $ac_func();
14506 #endif
14507
14508 ; return 0; }
14509 EOF
14510 if { (eval echo configure:14511: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14511 rm -rf conftest*
14512 eval "ac_cv_func_$ac_func=yes"
14513 else
14514 echo "configure: failed program was:" >&5
14515 cat conftest.$ac_ext >&5
14516 rm -rf conftest*
14517 eval "ac_cv_func_$ac_func=no"
14518 fi
14519 rm -f conftest*
14520 fi
14521
14522 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14523 echo "$ac_t""yes" 1>&6
14524 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14525 cat >> confdefs.h <<EOF
14526 #define $ac_tr_func 1
14527 EOF
14528 break
14529 else
14530 echo "$ac_t""no" 1>&6
14531 fi
14532 done
14533
14534
14535 HAVE_SOME_SLEEP_FUNC=0
14536 if test "$USE_BEOS" = 1; then
14537 cat >> confdefs.h <<\EOF
14538 #define HAVE_SLEEP 1
14539 EOF
14540
14541 HAVE_SOME_SLEEP_FUNC=1
14542 fi
14543
14544 if test "$USE_DARWIN" = 1; then
14545 cat >> confdefs.h <<\EOF
14546 #define HAVE_USLEEP 1
14547 EOF
14548
14549 HAVE_SOME_SLEEP_FUNC=1
14550 fi
14551
14552 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
14553 POSIX4_LINK=
14554 for ac_func in nanosleep
14555 do
14556 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14557 echo "configure:14558: checking for $ac_func" >&5
14558 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14559 echo $ac_n "(cached) $ac_c" 1>&6
14560 else
14561 cat > conftest.$ac_ext <<EOF
14562 #line 14563 "configure"
14563 #include "confdefs.h"
14564 /* System header to define __stub macros and hopefully few prototypes,
14565 which can conflict with char $ac_func(); below. */
14566 #include <assert.h>
14567 /* Override any gcc2 internal prototype to avoid an error. */
14568 /* We use char because int might match the return type of a gcc2
14569 builtin and then its argument prototype would still apply. */
14570 char $ac_func();
14571
14572 int main() {
14573
14574 /* The GNU C library defines this for functions which it implements
14575 to always fail with ENOSYS. Some functions are actually named
14576 something starting with __ and the normal name is an alias. */
14577 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14578 choke me
14579 #else
14580 $ac_func();
14581 #endif
14582
14583 ; return 0; }
14584 EOF
14585 if { (eval echo configure:14586: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14586 rm -rf conftest*
14587 eval "ac_cv_func_$ac_func=yes"
14588 else
14589 echo "configure: failed program was:" >&5
14590 cat conftest.$ac_ext >&5
14591 rm -rf conftest*
14592 eval "ac_cv_func_$ac_func=no"
14593 fi
14594 rm -f conftest*
14595 fi
14596
14597 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14598 echo "$ac_t""yes" 1>&6
14599 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14600 cat >> confdefs.h <<EOF
14601 #define $ac_tr_func 1
14602 EOF
14603 cat >> confdefs.h <<\EOF
14604 #define HAVE_NANOSLEEP 1
14605 EOF
14606
14607 else
14608 echo "$ac_t""no" 1>&6
14609 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
14610 echo "configure:14611: checking for nanosleep in -lposix4" >&5
14611 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
14612 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14613 echo $ac_n "(cached) $ac_c" 1>&6
14614 else
14615 ac_save_LIBS="$LIBS"
14616 LIBS="-lposix4 $LIBS"
14617 cat > conftest.$ac_ext <<EOF
14618 #line 14619 "configure"
14619 #include "confdefs.h"
14620 /* Override any gcc2 internal prototype to avoid an error. */
14621 /* We use char because int might match the return type of a gcc2
14622 builtin and then its argument prototype would still apply. */
14623 char nanosleep();
14624
14625 int main() {
14626 nanosleep()
14627 ; return 0; }
14628 EOF
14629 if { (eval echo configure:14630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14630 rm -rf conftest*
14631 eval "ac_cv_lib_$ac_lib_var=yes"
14632 else
14633 echo "configure: failed program was:" >&5
14634 cat conftest.$ac_ext >&5
14635 rm -rf conftest*
14636 eval "ac_cv_lib_$ac_lib_var=no"
14637 fi
14638 rm -f conftest*
14639 LIBS="$ac_save_LIBS"
14640
14641 fi
14642 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14643 echo "$ac_t""yes" 1>&6
14644
14645 cat >> confdefs.h <<\EOF
14646 #define HAVE_NANOSLEEP 1
14647 EOF
14648
14649 POSIX4_LINK="-lposix4"
14650
14651 else
14652 echo "$ac_t""no" 1>&6
14653
14654 for ac_func in usleep
14655 do
14656 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14657 echo "configure:14658: checking for $ac_func" >&5
14658 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14659 echo $ac_n "(cached) $ac_c" 1>&6
14660 else
14661 cat > conftest.$ac_ext <<EOF
14662 #line 14663 "configure"
14663 #include "confdefs.h"
14664 /* System header to define __stub macros and hopefully few prototypes,
14665 which can conflict with char $ac_func(); below. */
14666 #include <assert.h>
14667 /* Override any gcc2 internal prototype to avoid an error. */
14668 /* We use char because int might match the return type of a gcc2
14669 builtin and then its argument prototype would still apply. */
14670 char $ac_func();
14671
14672 int main() {
14673
14674 /* The GNU C library defines this for functions which it implements
14675 to always fail with ENOSYS. Some functions are actually named
14676 something starting with __ and the normal name is an alias. */
14677 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14678 choke me
14679 #else
14680 $ac_func();
14681 #endif
14682
14683 ; return 0; }
14684 EOF
14685 if { (eval echo configure:14686: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14686 rm -rf conftest*
14687 eval "ac_cv_func_$ac_func=yes"
14688 else
14689 echo "configure: failed program was:" >&5
14690 cat conftest.$ac_ext >&5
14691 rm -rf conftest*
14692 eval "ac_cv_func_$ac_func=no"
14693 fi
14694 rm -f conftest*
14695 fi
14696
14697 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14698 echo "$ac_t""yes" 1>&6
14699 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14700 cat >> confdefs.h <<EOF
14701 #define $ac_tr_func 1
14702 EOF
14703 cat >> confdefs.h <<\EOF
14704 #define HAVE_USLEEP 1
14705 EOF
14706
14707 else
14708 echo "$ac_t""no" 1>&6
14709 echo "configure: warning: wxSleep() function will not work" 1>&2
14710
14711 fi
14712 done
14713
14714
14715
14716 fi
14717
14718
14719
14720 fi
14721 done
14722
14723 fi
14724
14725 for ac_func in uname gethostname
14726 do
14727 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14728 echo "configure:14729: checking for $ac_func" >&5
14729 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14730 echo $ac_n "(cached) $ac_c" 1>&6
14731 else
14732 cat > conftest.$ac_ext <<EOF
14733 #line 14734 "configure"
14734 #include "confdefs.h"
14735 /* System header to define __stub macros and hopefully few prototypes,
14736 which can conflict with char $ac_func(); below. */
14737 #include <assert.h>
14738 /* Override any gcc2 internal prototype to avoid an error. */
14739 /* We use char because int might match the return type of a gcc2
14740 builtin and then its argument prototype would still apply. */
14741 char $ac_func();
14742
14743 int main() {
14744
14745 /* The GNU C library defines this for functions which it implements
14746 to always fail with ENOSYS. Some functions are actually named
14747 something starting with __ and the normal name is an alias. */
14748 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14749 choke me
14750 #else
14751 $ac_func();
14752 #endif
14753
14754 ; return 0; }
14755 EOF
14756 if { (eval echo configure:14757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14757 rm -rf conftest*
14758 eval "ac_cv_func_$ac_func=yes"
14759 else
14760 echo "configure: failed program was:" >&5
14761 cat conftest.$ac_ext >&5
14762 rm -rf conftest*
14763 eval "ac_cv_func_$ac_func=no"
14764 fi
14765 rm -f conftest*
14766 fi
14767
14768 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14769 echo "$ac_t""yes" 1>&6
14770 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14771 cat >> confdefs.h <<EOF
14772 #define $ac_tr_func 1
14773 EOF
14774 break
14775 else
14776 echo "$ac_t""no" 1>&6
14777 fi
14778 done
14779
14780
14781
14782 ac_ext=C
14783 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14784 ac_cpp='$CXXCPP $CPPFLAGS'
14785 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14786 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14787 cross_compiling=$ac_cv_prog_cxx_cross
14788
14789
14790 for ac_func in strtok_r
14791 do
14792 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14793 echo "configure:14794: checking for $ac_func" >&5
14794 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14795 echo $ac_n "(cached) $ac_c" 1>&6
14796 else
14797 cat > conftest.$ac_ext <<EOF
14798 #line 14799 "configure"
14799 #include "confdefs.h"
14800 /* System header to define __stub macros and hopefully few prototypes,
14801 which can conflict with char $ac_func(); below. */
14802 #include <assert.h>
14803 /* Override any gcc2 internal prototype to avoid an error. */
14804 #ifdef __cplusplus
14805 extern "C"
14806 #endif
14807 /* We use char because int might match the return type of a gcc2
14808 builtin and then its argument prototype would still apply. */
14809 char $ac_func();
14810
14811 int main() {
14812
14813 /* The GNU C library defines this for functions which it implements
14814 to always fail with ENOSYS. Some functions are actually named
14815 something starting with __ and the normal name is an alias. */
14816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14817 choke me
14818 #else
14819 $ac_func();
14820 #endif
14821
14822 ; return 0; }
14823 EOF
14824 if { (eval echo configure:14825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14825 rm -rf conftest*
14826 eval "ac_cv_func_$ac_func=yes"
14827 else
14828 echo "configure: failed program was:" >&5
14829 cat conftest.$ac_ext >&5
14830 rm -rf conftest*
14831 eval "ac_cv_func_$ac_func=no"
14832 fi
14833 rm -f conftest*
14834 fi
14835
14836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14837 echo "$ac_t""yes" 1>&6
14838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14839 cat >> confdefs.h <<EOF
14840 #define $ac_tr_func 1
14841 EOF
14842
14843 else
14844 echo "$ac_t""no" 1>&6
14845 fi
14846 done
14847
14848
14849 ac_ext=c
14850 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14851 ac_cpp='$CPP $CPPFLAGS'
14852 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14853 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14854 cross_compiling=$ac_cv_prog_cc_cross
14855
14856
14857 INET_LINK=
14858 for ac_func in inet_addr
14859 do
14860 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14861 echo "configure:14862: checking for $ac_func" >&5
14862 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14863 echo $ac_n "(cached) $ac_c" 1>&6
14864 else
14865 cat > conftest.$ac_ext <<EOF
14866 #line 14867 "configure"
14867 #include "confdefs.h"
14868 /* System header to define __stub macros and hopefully few prototypes,
14869 which can conflict with char $ac_func(); below. */
14870 #include <assert.h>
14871 /* Override any gcc2 internal prototype to avoid an error. */
14872 /* We use char because int might match the return type of a gcc2
14873 builtin and then its argument prototype would still apply. */
14874 char $ac_func();
14875
14876 int main() {
14877
14878 /* The GNU C library defines this for functions which it implements
14879 to always fail with ENOSYS. Some functions are actually named
14880 something starting with __ and the normal name is an alias. */
14881 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14882 choke me
14883 #else
14884 $ac_func();
14885 #endif
14886
14887 ; return 0; }
14888 EOF
14889 if { (eval echo configure:14890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14890 rm -rf conftest*
14891 eval "ac_cv_func_$ac_func=yes"
14892 else
14893 echo "configure: failed program was:" >&5
14894 cat conftest.$ac_ext >&5
14895 rm -rf conftest*
14896 eval "ac_cv_func_$ac_func=no"
14897 fi
14898 rm -f conftest*
14899 fi
14900
14901 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14902 echo "$ac_t""yes" 1>&6
14903 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14904 cat >> confdefs.h <<EOF
14905 #define $ac_tr_func 1
14906 EOF
14907 cat >> confdefs.h <<\EOF
14908 #define HAVE_INET_ADDR 1
14909 EOF
14910
14911 else
14912 echo "$ac_t""no" 1>&6
14913 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
14914 echo "configure:14915: checking for inet_addr in -lnsl" >&5
14915 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
14916 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14917 echo $ac_n "(cached) $ac_c" 1>&6
14918 else
14919 ac_save_LIBS="$LIBS"
14920 LIBS="-lnsl $LIBS"
14921 cat > conftest.$ac_ext <<EOF
14922 #line 14923 "configure"
14923 #include "confdefs.h"
14924 /* Override any gcc2 internal prototype to avoid an error. */
14925 /* We use char because int might match the return type of a gcc2
14926 builtin and then its argument prototype would still apply. */
14927 char inet_addr();
14928
14929 int main() {
14930 inet_addr()
14931 ; return 0; }
14932 EOF
14933 if { (eval echo configure:14934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14934 rm -rf conftest*
14935 eval "ac_cv_lib_$ac_lib_var=yes"
14936 else
14937 echo "configure: failed program was:" >&5
14938 cat conftest.$ac_ext >&5
14939 rm -rf conftest*
14940 eval "ac_cv_lib_$ac_lib_var=no"
14941 fi
14942 rm -f conftest*
14943 LIBS="$ac_save_LIBS"
14944
14945 fi
14946 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14947 echo "$ac_t""yes" 1>&6
14948 INET_LINK="nsl"
14949 else
14950 echo "$ac_t""no" 1>&6
14951 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
14952 echo "configure:14953: checking for inet_addr in -lresolv" >&5
14953 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
14954 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14955 echo $ac_n "(cached) $ac_c" 1>&6
14956 else
14957 ac_save_LIBS="$LIBS"
14958 LIBS="-lresolv $LIBS"
14959 cat > conftest.$ac_ext <<EOF
14960 #line 14961 "configure"
14961 #include "confdefs.h"
14962 /* Override any gcc2 internal prototype to avoid an error. */
14963 /* We use char because int might match the return type of a gcc2
14964 builtin and then its argument prototype would still apply. */
14965 char inet_addr();
14966
14967 int main() {
14968 inet_addr()
14969 ; return 0; }
14970 EOF
14971 if { (eval echo configure:14972: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14972 rm -rf conftest*
14973 eval "ac_cv_lib_$ac_lib_var=yes"
14974 else
14975 echo "configure: failed program was:" >&5
14976 cat conftest.$ac_ext >&5
14977 rm -rf conftest*
14978 eval "ac_cv_lib_$ac_lib_var=no"
14979 fi
14980 rm -f conftest*
14981 LIBS="$ac_save_LIBS"
14982
14983 fi
14984 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14985 echo "$ac_t""yes" 1>&6
14986 INET_LINK="resolv"
14987
14988 else
14989 echo "$ac_t""no" 1>&6
14990 fi
14991
14992
14993 fi
14994
14995
14996
14997 fi
14998 done
14999
15000
15001 for ac_func in inet_aton
15002 do
15003 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15004 echo "configure:15005: checking for $ac_func" >&5
15005 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15006 echo $ac_n "(cached) $ac_c" 1>&6
15007 else
15008 cat > conftest.$ac_ext <<EOF
15009 #line 15010 "configure"
15010 #include "confdefs.h"
15011 /* System header to define __stub macros and hopefully few prototypes,
15012 which can conflict with char $ac_func(); below. */
15013 #include <assert.h>
15014 /* Override any gcc2 internal prototype to avoid an error. */
15015 /* We use char because int might match the return type of a gcc2
15016 builtin and then its argument prototype would still apply. */
15017 char $ac_func();
15018
15019 int main() {
15020
15021 /* The GNU C library defines this for functions which it implements
15022 to always fail with ENOSYS. Some functions are actually named
15023 something starting with __ and the normal name is an alias. */
15024 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15025 choke me
15026 #else
15027 $ac_func();
15028 #endif
15029
15030 ; return 0; }
15031 EOF
15032 if { (eval echo configure:15033: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15033 rm -rf conftest*
15034 eval "ac_cv_func_$ac_func=yes"
15035 else
15036 echo "configure: failed program was:" >&5
15037 cat conftest.$ac_ext >&5
15038 rm -rf conftest*
15039 eval "ac_cv_func_$ac_func=no"
15040 fi
15041 rm -f conftest*
15042 fi
15043
15044 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15045 echo "$ac_t""yes" 1>&6
15046 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15047 cat >> confdefs.h <<EOF
15048 #define $ac_tr_func 1
15049 EOF
15050 cat >> confdefs.h <<\EOF
15051 #define HAVE_INET_ATON 1
15052 EOF
15053
15054 else
15055 echo "$ac_t""no" 1>&6
15056 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
15057 echo "configure:15058: checking for inet_aton in -l$INET_LINK" >&5
15058 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
15059 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15060 echo $ac_n "(cached) $ac_c" 1>&6
15061 else
15062 ac_save_LIBS="$LIBS"
15063 LIBS="-l$INET_LINK $LIBS"
15064 cat > conftest.$ac_ext <<EOF
15065 #line 15066 "configure"
15066 #include "confdefs.h"
15067 /* Override any gcc2 internal prototype to avoid an error. */
15068 /* We use char because int might match the return type of a gcc2
15069 builtin and then its argument prototype would still apply. */
15070 char inet_aton();
15071
15072 int main() {
15073 inet_aton()
15074 ; return 0; }
15075 EOF
15076 if { (eval echo configure:15077: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15077 rm -rf conftest*
15078 eval "ac_cv_lib_$ac_lib_var=yes"
15079 else
15080 echo "configure: failed program was:" >&5
15081 cat conftest.$ac_ext >&5
15082 rm -rf conftest*
15083 eval "ac_cv_lib_$ac_lib_var=no"
15084 fi
15085 rm -f conftest*
15086 LIBS="$ac_save_LIBS"
15087
15088 fi
15089 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15090 echo "$ac_t""yes" 1>&6
15091 cat >> confdefs.h <<\EOF
15092 #define HAVE_INET_ATON 1
15093 EOF
15094
15095 else
15096 echo "$ac_t""no" 1>&6
15097 fi
15098
15099
15100 fi
15101 done
15102
15103
15104 if test "x$INET_LINK" != "x"; then
15105 cat >> confdefs.h <<\EOF
15106 #define HAVE_INET_ADDR 1
15107 EOF
15108
15109 INET_LINK="-l$INET_LINK"
15110 fi
15111
15112 fi
15113
15114
15115 cat > confcache <<\EOF
15116 # This file is a shell script that caches the results of configure
15117 # tests run on this system so they can be shared between configure
15118 # scripts and configure runs. It is not useful on other systems.
15119 # If it contains results you don't want to keep, you may remove or edit it.
15120 #
15121 # By default, configure uses ./config.cache as the cache file,
15122 # creating it if it does not exist already. You can give configure
15123 # the --cache-file=FILE option to use a different cache file; that is
15124 # what configure does when it calls configure scripts in
15125 # subdirectories, so they share the cache.
15126 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15127 # config.status only pays attention to the cache file if you give it the
15128 # --recheck option to rerun configure.
15129 #
15130 EOF
15131 # The following way of writing the cache mishandles newlines in values,
15132 # but we know of no workaround that is simple, portable, and efficient.
15133 # So, don't put newlines in cache variables' values.
15134 # Ultrix sh set writes to stderr and can't be redirected directly,
15135 # and sets the high bit in the cache file unless we assign to the vars.
15136 (set) 2>&1 |
15137 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15138 *ac_space=\ *)
15139 # `set' does not quote correctly, so add quotes (double-quote substitution
15140 # turns \\\\ into \\, and sed turns \\ into \).
15141 sed -n \
15142 -e "s/'/'\\\\''/g" \
15143 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15144 ;;
15145 *)
15146 # `set' quotes correctly as required by POSIX, so do not add quotes.
15147 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15148 ;;
15149 esac >> confcache
15150 if cmp -s $cache_file confcache; then
15151 :
15152 else
15153 if test -w $cache_file; then
15154 echo "updating cache $cache_file"
15155 cat confcache > $cache_file
15156 else
15157 echo "not updating unwritable cache $cache_file"
15158 fi
15159 fi
15160 rm -f confcache
15161
15162
15163
15164 if test "$TOOLKIT" != "MSW"; then
15165
15166
15167 THREADS_LINK=
15168 THREADS_OBJ=
15169 CODE_GEN_FLAGS=
15170 CODE_GEN_FLAGS_CXX=
15171
15172 if test "$wxUSE_THREADS" = "yes" ; then
15173 if test "$wxUSE_WINE" = 1 ; then
15174 echo "configure: warning: Threads are not supported under WINE" 1>&2
15175 wxUSE_THREADS="no"
15176 elif test "$USE_BEOS" = 1; then
15177 echo "configure: warning: BeOS threads are not yet supported" 1>&2
15178 wxUSE_THREADS="no"
15179 fi
15180 fi
15181
15182 if test "$wxUSE_THREADS" = "yes" ; then
15183
15184 if test "$USE_AIX" = 1; then
15185 THREADS_LIB=pthreads
15186 else
15187 THREADS_LIB=pthread
15188 fi
15189
15190 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
15191 echo "configure:15192: checking for pthread_create in -l$THREADS_LIB" >&5
15192 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
15193 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15194 echo $ac_n "(cached) $ac_c" 1>&6
15195 else
15196 ac_save_LIBS="$LIBS"
15197 LIBS="-l$THREADS_LIB $LIBS"
15198 cat > conftest.$ac_ext <<EOF
15199 #line 15200 "configure"
15200 #include "confdefs.h"
15201 /* Override any gcc2 internal prototype to avoid an error. */
15202 /* We use char because int might match the return type of a gcc2
15203 builtin and then its argument prototype would still apply. */
15204 char pthread_create();
15205
15206 int main() {
15207 pthread_create()
15208 ; return 0; }
15209 EOF
15210 if { (eval echo configure:15211: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15211 rm -rf conftest*
15212 eval "ac_cv_lib_$ac_lib_var=yes"
15213 else
15214 echo "configure: failed program was:" >&5
15215 cat conftest.$ac_ext >&5
15216 rm -rf conftest*
15217 eval "ac_cv_lib_$ac_lib_var=no"
15218 fi
15219 rm -f conftest*
15220 LIBS="$ac_save_LIBS"
15221
15222 fi
15223 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15224 echo "$ac_t""yes" 1>&6
15225
15226 THREADS_OBJ="threadpsx.lo"
15227 THREADS_LINK=$THREADS_LIB
15228
15229 else
15230 echo "$ac_t""no" 1>&6
15231
15232 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
15233 echo "configure:15234: checking for pthread_create in -lc_r" >&5
15234 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
15235 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15236 echo $ac_n "(cached) $ac_c" 1>&6
15237 else
15238 ac_save_LIBS="$LIBS"
15239 LIBS="-lc_r $LIBS"
15240 cat > conftest.$ac_ext <<EOF
15241 #line 15242 "configure"
15242 #include "confdefs.h"
15243 /* Override any gcc2 internal prototype to avoid an error. */
15244 /* We use char because int might match the return type of a gcc2
15245 builtin and then its argument prototype would still apply. */
15246 char pthread_create();
15247
15248 int main() {
15249 pthread_create()
15250 ; return 0; }
15251 EOF
15252 if { (eval echo configure:15253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15253 rm -rf conftest*
15254 eval "ac_cv_lib_$ac_lib_var=yes"
15255 else
15256 echo "configure: failed program was:" >&5
15257 cat conftest.$ac_ext >&5
15258 rm -rf conftest*
15259 eval "ac_cv_lib_$ac_lib_var=no"
15260 fi
15261 rm -f conftest*
15262 LIBS="$ac_save_LIBS"
15263
15264 fi
15265 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15266 echo "$ac_t""yes" 1>&6
15267
15268 THREADS_OBJ="threadpsx.lo"
15269 THREADS_LINK="c_r"
15270
15271 else
15272 echo "$ac_t""no" 1>&6
15273
15274 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
15275 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
15276 echo "configure:15277: checking for sys/prctl.h" >&5
15277 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15278 echo $ac_n "(cached) $ac_c" 1>&6
15279 else
15280 cat > conftest.$ac_ext <<EOF
15281 #line 15282 "configure"
15282 #include "confdefs.h"
15283 #include <sys/prctl.h>
15284 EOF
15285 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15286 { (eval echo configure:15287: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15287 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15288 if test -z "$ac_err"; then
15289 rm -rf conftest*
15290 eval "ac_cv_header_$ac_safe=yes"
15291 else
15292 echo "$ac_err" >&5
15293 echo "configure: failed program was:" >&5
15294 cat conftest.$ac_ext >&5
15295 rm -rf conftest*
15296 eval "ac_cv_header_$ac_safe=no"
15297 fi
15298 rm -f conftest*
15299 fi
15300 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15301 echo "$ac_t""yes" 1>&6
15302
15303 THREADS_OBJ="threadsgi.lo"
15304
15305 else
15306 echo "$ac_t""no" 1>&6
15307 fi
15308
15309
15310 fi
15311
15312
15313 fi
15314
15315
15316 if test -z "$THREADS_OBJ" ; then
15317 wxUSE_THREADS=no
15318 echo "configure: warning: No thread support on this system" 1>&2
15319 fi
15320 fi
15321
15322 if test "$wxUSE_THREADS" = "yes" ; then
15323 for ac_func in thr_setconcurrency
15324 do
15325 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15326 echo "configure:15327: checking for $ac_func" >&5
15327 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15328 echo $ac_n "(cached) $ac_c" 1>&6
15329 else
15330 cat > conftest.$ac_ext <<EOF
15331 #line 15332 "configure"
15332 #include "confdefs.h"
15333 /* System header to define __stub macros and hopefully few prototypes,
15334 which can conflict with char $ac_func(); below. */
15335 #include <assert.h>
15336 /* Override any gcc2 internal prototype to avoid an error. */
15337 /* We use char because int might match the return type of a gcc2
15338 builtin and then its argument prototype would still apply. */
15339 char $ac_func();
15340
15341 int main() {
15342
15343 /* The GNU C library defines this for functions which it implements
15344 to always fail with ENOSYS. Some functions are actually named
15345 something starting with __ and the normal name is an alias. */
15346 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15347 choke me
15348 #else
15349 $ac_func();
15350 #endif
15351
15352 ; return 0; }
15353 EOF
15354 if { (eval echo configure:15355: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15355 rm -rf conftest*
15356 eval "ac_cv_func_$ac_func=yes"
15357 else
15358 echo "configure: failed program was:" >&5
15359 cat conftest.$ac_ext >&5
15360 rm -rf conftest*
15361 eval "ac_cv_func_$ac_func=no"
15362 fi
15363 rm -f conftest*
15364 fi
15365
15366 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15367 echo "$ac_t""yes" 1>&6
15368 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15369 cat >> confdefs.h <<EOF
15370 #define $ac_tr_func 1
15371 EOF
15372
15373 else
15374 echo "$ac_t""no" 1>&6
15375 fi
15376 done
15377
15378
15379
15380 for ac_hdr in sched.h
15381 do
15382 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
15383 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
15384 echo "configure:15385: checking for $ac_hdr" >&5
15385 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15386 echo $ac_n "(cached) $ac_c" 1>&6
15387 else
15388 cat > conftest.$ac_ext <<EOF
15389 #line 15390 "configure"
15390 #include "confdefs.h"
15391 #include <$ac_hdr>
15392 EOF
15393 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15394 { (eval echo configure:15395: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15395 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15396 if test -z "$ac_err"; then
15397 rm -rf conftest*
15398 eval "ac_cv_header_$ac_safe=yes"
15399 else
15400 echo "$ac_err" >&5
15401 echo "configure: failed program was:" >&5
15402 cat conftest.$ac_ext >&5
15403 rm -rf conftest*
15404 eval "ac_cv_header_$ac_safe=no"
15405 fi
15406 rm -f conftest*
15407 fi
15408 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15409 echo "$ac_t""yes" 1>&6
15410 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
15411 cat >> confdefs.h <<EOF
15412 #define $ac_tr_hdr 1
15413 EOF
15414
15415 else
15416 echo "$ac_t""no" 1>&6
15417 fi
15418 done
15419
15420
15421 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
15422 echo "configure:15423: checking for sched_yield in -l$THREADS_LINK" >&5
15423 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
15424 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15425 echo $ac_n "(cached) $ac_c" 1>&6
15426 else
15427 ac_save_LIBS="$LIBS"
15428 LIBS="-l$THREADS_LINK $LIBS"
15429 cat > conftest.$ac_ext <<EOF
15430 #line 15431 "configure"
15431 #include "confdefs.h"
15432 /* Override any gcc2 internal prototype to avoid an error. */
15433 /* We use char because int might match the return type of a gcc2
15434 builtin and then its argument prototype would still apply. */
15435 char sched_yield();
15436
15437 int main() {
15438 sched_yield()
15439 ; return 0; }
15440 EOF
15441 if { (eval echo configure:15442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15442 rm -rf conftest*
15443 eval "ac_cv_lib_$ac_lib_var=yes"
15444 else
15445 echo "configure: failed program was:" >&5
15446 cat conftest.$ac_ext >&5
15447 rm -rf conftest*
15448 eval "ac_cv_lib_$ac_lib_var=no"
15449 fi
15450 rm -f conftest*
15451 LIBS="$ac_save_LIBS"
15452
15453 fi
15454 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15455 echo "$ac_t""yes" 1>&6
15456 cat >> confdefs.h <<\EOF
15457 #define HAVE_SCHED_YIELD 1
15458 EOF
15459
15460 else
15461 echo "$ac_t""no" 1>&6
15462 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
15463 echo "configure:15464: checking for sched_yield in -lposix4" >&5
15464 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
15465 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15466 echo $ac_n "(cached) $ac_c" 1>&6
15467 else
15468 ac_save_LIBS="$LIBS"
15469 LIBS="-lposix4 $LIBS"
15470 cat > conftest.$ac_ext <<EOF
15471 #line 15472 "configure"
15472 #include "confdefs.h"
15473 /* Override any gcc2 internal prototype to avoid an error. */
15474 /* We use char because int might match the return type of a gcc2
15475 builtin and then its argument prototype would still apply. */
15476 char sched_yield();
15477
15478 int main() {
15479 sched_yield()
15480 ; return 0; }
15481 EOF
15482 if { (eval echo configure:15483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15483 rm -rf conftest*
15484 eval "ac_cv_lib_$ac_lib_var=yes"
15485 else
15486 echo "configure: failed program was:" >&5
15487 cat conftest.$ac_ext >&5
15488 rm -rf conftest*
15489 eval "ac_cv_lib_$ac_lib_var=no"
15490 fi
15491 rm -f conftest*
15492 LIBS="$ac_save_LIBS"
15493
15494 fi
15495 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15496 echo "$ac_t""yes" 1>&6
15497 cat >> confdefs.h <<\EOF
15498 #define HAVE_SCHED_YIELD 1
15499 EOF
15500 POSIX4_LINK="-lposix4"
15501 else
15502 echo "$ac_t""no" 1>&6
15503 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
15504
15505 fi
15506
15507
15508 fi
15509
15510
15511 HAVE_PRIOR_FUNCS=0
15512 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
15513 echo "configure:15514: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
15514 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
15515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15516 echo $ac_n "(cached) $ac_c" 1>&6
15517 else
15518 ac_save_LIBS="$LIBS"
15519 LIBS="-l$THREADS_LINK $LIBS"
15520 cat > conftest.$ac_ext <<EOF
15521 #line 15522 "configure"
15522 #include "confdefs.h"
15523 /* Override any gcc2 internal prototype to avoid an error. */
15524 /* We use char because int might match the return type of a gcc2
15525 builtin and then its argument prototype would still apply. */
15526 char pthread_attr_getschedpolicy();
15527
15528 int main() {
15529 pthread_attr_getschedpolicy()
15530 ; return 0; }
15531 EOF
15532 if { (eval echo configure:15533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15533 rm -rf conftest*
15534 eval "ac_cv_lib_$ac_lib_var=yes"
15535 else
15536 echo "configure: failed program was:" >&5
15537 cat conftest.$ac_ext >&5
15538 rm -rf conftest*
15539 eval "ac_cv_lib_$ac_lib_var=no"
15540 fi
15541 rm -f conftest*
15542 LIBS="$ac_save_LIBS"
15543
15544 fi
15545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15546 echo "$ac_t""yes" 1>&6
15547 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
15548 echo "configure:15549: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
15549 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
15550 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15551 echo $ac_n "(cached) $ac_c" 1>&6
15552 else
15553 ac_save_LIBS="$LIBS"
15554 LIBS="-l$THREADS_LINK $LIBS"
15555 cat > conftest.$ac_ext <<EOF
15556 #line 15557 "configure"
15557 #include "confdefs.h"
15558 /* Override any gcc2 internal prototype to avoid an error. */
15559 /* We use char because int might match the return type of a gcc2
15560 builtin and then its argument prototype would still apply. */
15561 char pthread_attr_setschedparam();
15562
15563 int main() {
15564 pthread_attr_setschedparam()
15565 ; return 0; }
15566 EOF
15567 if { (eval echo configure:15568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15568 rm -rf conftest*
15569 eval "ac_cv_lib_$ac_lib_var=yes"
15570 else
15571 echo "configure: failed program was:" >&5
15572 cat conftest.$ac_ext >&5
15573 rm -rf conftest*
15574 eval "ac_cv_lib_$ac_lib_var=no"
15575 fi
15576 rm -f conftest*
15577 LIBS="$ac_save_LIBS"
15578
15579 fi
15580 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15581 echo "$ac_t""yes" 1>&6
15582 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
15583 echo "configure:15584: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
15584 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15585 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15586 echo $ac_n "(cached) $ac_c" 1>&6
15587 else
15588 ac_save_LIBS="$LIBS"
15589 LIBS="-l$THREADS_LINK $LIBS"
15590 cat > conftest.$ac_ext <<EOF
15591 #line 15592 "configure"
15592 #include "confdefs.h"
15593 /* Override any gcc2 internal prototype to avoid an error. */
15594 /* We use char because int might match the return type of a gcc2
15595 builtin and then its argument prototype would still apply. */
15596 char sched_get_priority_max();
15597
15598 int main() {
15599 sched_get_priority_max()
15600 ; return 0; }
15601 EOF
15602 if { (eval echo configure:15603: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15603 rm -rf conftest*
15604 eval "ac_cv_lib_$ac_lib_var=yes"
15605 else
15606 echo "configure: failed program was:" >&5
15607 cat conftest.$ac_ext >&5
15608 rm -rf conftest*
15609 eval "ac_cv_lib_$ac_lib_var=no"
15610 fi
15611 rm -f conftest*
15612 LIBS="$ac_save_LIBS"
15613
15614 fi
15615 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15616 echo "$ac_t""yes" 1>&6
15617 HAVE_PRIOR_FUNCS=1
15618 else
15619 echo "$ac_t""no" 1>&6
15620 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
15621 echo "configure:15622: checking for sched_get_priority_max in -lposix4" >&5
15622 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
15623 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15624 echo $ac_n "(cached) $ac_c" 1>&6
15625 else
15626 ac_save_LIBS="$LIBS"
15627 LIBS="-lposix4 $LIBS"
15628 cat > conftest.$ac_ext <<EOF
15629 #line 15630 "configure"
15630 #include "confdefs.h"
15631 /* Override any gcc2 internal prototype to avoid an error. */
15632 /* We use char because int might match the return type of a gcc2
15633 builtin and then its argument prototype would still apply. */
15634 char sched_get_priority_max();
15635
15636 int main() {
15637 sched_get_priority_max()
15638 ; return 0; }
15639 EOF
15640 if { (eval echo configure:15641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15641 rm -rf conftest*
15642 eval "ac_cv_lib_$ac_lib_var=yes"
15643 else
15644 echo "configure: failed program was:" >&5
15645 cat conftest.$ac_ext >&5
15646 rm -rf conftest*
15647 eval "ac_cv_lib_$ac_lib_var=no"
15648 fi
15649 rm -f conftest*
15650 LIBS="$ac_save_LIBS"
15651
15652 fi
15653 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15654 echo "$ac_t""yes" 1>&6
15655
15656 HAVE_PRIOR_FUNCS=1
15657 POSIX4_LINK="-lposix4"
15658
15659 else
15660 echo "$ac_t""no" 1>&6
15661 fi
15662
15663
15664 fi
15665
15666
15667 else
15668 echo "$ac_t""no" 1>&6
15669 fi
15670
15671
15672 else
15673 echo "$ac_t""no" 1>&6
15674 fi
15675
15676
15677 if test "$HAVE_PRIOR_FUNCS" = 1; then
15678 cat >> confdefs.h <<\EOF
15679 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
15680 EOF
15681
15682 else
15683 echo "configure: warning: Setting thread priority will not work" 1>&2
15684 fi
15685
15686 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
15687 echo "configure:15688: checking for pthread_cancel in -l$THREADS_LINK" >&5
15688 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
15689 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15690 echo $ac_n "(cached) $ac_c" 1>&6
15691 else
15692 ac_save_LIBS="$LIBS"
15693 LIBS="-l$THREADS_LINK $LIBS"
15694 cat > conftest.$ac_ext <<EOF
15695 #line 15696 "configure"
15696 #include "confdefs.h"
15697 /* Override any gcc2 internal prototype to avoid an error. */
15698 /* We use char because int might match the return type of a gcc2
15699 builtin and then its argument prototype would still apply. */
15700 char pthread_cancel();
15701
15702 int main() {
15703 pthread_cancel()
15704 ; return 0; }
15705 EOF
15706 if { (eval echo configure:15707: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15707 rm -rf conftest*
15708 eval "ac_cv_lib_$ac_lib_var=yes"
15709 else
15710 echo "configure: failed program was:" >&5
15711 cat conftest.$ac_ext >&5
15712 rm -rf conftest*
15713 eval "ac_cv_lib_$ac_lib_var=no"
15714 fi
15715 rm -f conftest*
15716 LIBS="$ac_save_LIBS"
15717
15718 fi
15719 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15720 echo "$ac_t""yes" 1>&6
15721 cat >> confdefs.h <<\EOF
15722 #define HAVE_PTHREAD_CANCEL 1
15723 EOF
15724
15725 else
15726 echo "$ac_t""no" 1>&6
15727 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
15728 fi
15729
15730
15731 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
15732 echo "configure:15733: checking for pthread_cleanup_push/pop" >&5
15733 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
15734 echo $ac_n "(cached) $ac_c" 1>&6
15735 else
15736
15737 cat > conftest.$ac_ext <<EOF
15738 #line 15739 "configure"
15739 #include "confdefs.h"
15740 #include <pthread.h>
15741 int main() {
15742
15743 pthread_cleanup_push(NULL, NULL);
15744 pthread_cleanup_pop(0);
15745
15746 ; return 0; }
15747 EOF
15748 if { (eval echo configure:15749: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15749 rm -rf conftest*
15750
15751 wx_cv_func_pthread_cleanup_push=yes
15752
15753 else
15754 echo "configure: failed program was:" >&5
15755 cat conftest.$ac_ext >&5
15756 rm -rf conftest*
15757
15758 wx_cv_func_pthread_cleanup_push=no
15759
15760 fi
15761 rm -f conftest*
15762
15763 fi
15764
15765 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
15766
15767 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
15768 cat >> confdefs.h <<\EOF
15769 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
15770 EOF
15771
15772 fi
15773
15774
15775 if test "x$wx_lib_glibc21" = "xyes"; then
15776 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
15777 fi
15778
15779 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
15780 echo "configure:15781: checking for pthread_mutexattr_t" >&5
15781 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
15782 echo $ac_n "(cached) $ac_c" 1>&6
15783 else
15784
15785 cat > conftest.$ac_ext <<EOF
15786 #line 15787 "configure"
15787 #include "confdefs.h"
15788 #include <pthread.h>
15789 int main() {
15790
15791 pthread_mutexattr_t attr;
15792 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
15793
15794 ; return 0; }
15795 EOF
15796 if { (eval echo configure:15797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15797 rm -rf conftest*
15798
15799 wx_cv_type_pthread_mutexattr_t=yes
15800
15801 else
15802 echo "configure: failed program was:" >&5
15803 cat conftest.$ac_ext >&5
15804 rm -rf conftest*
15805
15806 wx_cv_type_pthread_mutexattr_t=no
15807
15808
15809 fi
15810 rm -f conftest*
15811
15812 fi
15813
15814 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
15815
15816 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
15817 cat >> confdefs.h <<\EOF
15818 #define HAVE_PTHREAD_MUTEXATTR_T 1
15819 EOF
15820
15821 else
15822 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
15823 echo "configure:15824: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
15824 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
15825 echo $ac_n "(cached) $ac_c" 1>&6
15826 else
15827
15828 cat > conftest.$ac_ext <<EOF
15829 #line 15830 "configure"
15830 #include "confdefs.h"
15831 #include <pthread.h>
15832 int main() {
15833
15834 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
15835
15836 ; return 0; }
15837 EOF
15838 if { (eval echo configure:15839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15839 rm -rf conftest*
15840
15841 wx_cv_type_pthread_rec_mutex_init=yes
15842
15843 else
15844 echo "configure: failed program was:" >&5
15845 cat conftest.$ac_ext >&5
15846 rm -rf conftest*
15847
15848 wx_cv_type_pthread_rec_mutex_init=no
15849
15850
15851 fi
15852 rm -f conftest*
15853
15854 fi
15855
15856 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
15857 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
15858 cat >> confdefs.h <<\EOF
15859 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
15860 EOF
15861
15862 else
15863 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
15864 fi
15865 fi
15866
15867 THREADS_LINK="-l$THREADS_LINK"
15868
15869 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
15870 CPPFLAGS="${CFLAGS} -mt"
15871 CXXFLAGS="${CXXFLAGS} -mt"
15872 LDFLAGS="${LDFLAGS} -mt"
15873 fi
15874 fi
15875
15876 fi
15877
15878 if test "$wxUSE_THREADS" = "yes"; then
15879 cat >> confdefs.h <<\EOF
15880 #define wxUSE_THREADS 1
15881 EOF
15882
15883
15884 if test "$USE_DARWIN" != 1; then
15885 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15886 fi
15887
15888 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
15889 else
15890 if test "$ac_cv_func_strtok_r" = "yes"; then
15891 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
15892 echo "configure:15893: checking if -D_REENTRANT is needed" >&5
15893 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
15894 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
15895 echo "$ac_t""yes" 1>&6
15896 else
15897 echo "$ac_t""no" 1>&6
15898 fi
15899 fi
15900 fi
15901
15902 if test "$WXGTK20" = 1 ; then
15903 cat >> confdefs.h <<EOF
15904 #define __WXGTK20__ $WXGTK20
15905 EOF
15906
15907 WXGTK12=1
15908 fi
15909
15910 if test "$WXGTK12" = 1 ; then
15911 cat >> confdefs.h <<EOF
15912 #define __WXGTK12__ $WXGTK12
15913 EOF
15914
15915 fi
15916
15917 if test "$WXGTK127" = 1 ; then
15918 cat >> confdefs.h <<EOF
15919 #define __WXGTK127__ $WXGTK127
15920 EOF
15921
15922 fi
15923
15924 WXDEBUG=
15925
15926 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15927 WXDEBUG="-g"
15928 wxUSE_OPTIMISE=no
15929 fi
15930
15931 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15932 wxUSE_DEBUG_INFO=yes
15933 WXDEBUG="-ggdb"
15934 fi
15935
15936 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
15937 cat >> confdefs.h <<\EOF
15938 #define WXDEBUG 1
15939 EOF
15940
15941 WXDEBUG_DEFINE="-D__WXDEBUG__"
15942 else
15943 if test "$wxUSE_GTK" = 1 ; then
15944 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15945 fi
15946 fi
15947
15948 if test "$wxUSE_MEM_TRACING" = "yes" ; then
15949 cat >> confdefs.h <<\EOF
15950 #define wxUSE_MEMORY_TRACING 1
15951 EOF
15952
15953 cat >> confdefs.h <<\EOF
15954 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
15955 EOF
15956
15957 cat >> confdefs.h <<\EOF
15958 #define wxUSE_DEBUG_NEW_ALWAYS 1
15959 EOF
15960
15961 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15962 fi
15963
15964 if test "$wxUSE_DMALLOC" = "yes" ; then
15965 DMALLOC_LINK="-ldmalloc"
15966 fi
15967
15968 PROFILE=
15969 if test "$wxUSE_PROFILE" = "yes" ; then
15970 PROFILE="-pg"
15971 fi
15972
15973 if test "$GCC" = yes ; then
15974 if test "$wxUSE_NO_RTTI" = "yes" ; then
15975 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
15976 fi
15977 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
15978 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
15979 fi
15980 if test "$wxUSE_PERMISSIVE" = "yes" ; then
15981 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
15982 fi
15983 if test "$wxUSE_NO_DEPS" = "no" ; then
15984 CFLAGS="-MMD ${CFLAGS}"
15985 CXXFLAGS="-MMD ${CXXFLAGS}"
15986 fi
15987 if test "$USE_WIN32" = 1 ; then
15988 # I'm not even really sure what this was ever added to solve,
15989 # but someone added it for mingw native builds, so I guess
15990 # they had a reason, right??
15991 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
15992 fi
15993 fi
15994
15995
15996 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15997 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15998 if test "$wxUSE_OPTIMISE" = "no" ; then
15999 OPTIMISE=
16000 else
16001 if test "$GCC" = yes ; then
16002 OPTIMISE="-O2"
16003 case "${host}" in
16004 i586-*-*|i686-*-* )
16005 OPTIMISE="${OPTIMISE} "
16006 ;;
16007 esac
16008 else
16009 OPTIMISE="-O"
16010 fi
16011 fi
16012
16013 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
16014 cat >> confdefs.h <<\EOF
16015 #define WXWIN_COMPATIBILITY_2 1
16016 EOF
16017
16018
16019 WXWIN_COMPATIBILITY_2_2="yes"
16020 fi
16021
16022 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
16023 cat >> confdefs.h <<\EOF
16024 #define WXWIN_COMPATIBILITY_2_2 1
16025 EOF
16026
16027 fi
16028
16029
16030 if test "$wxUSE_GUI" = "yes"; then
16031 cat >> confdefs.h <<\EOF
16032 #define wxUSE_GUI 1
16033 EOF
16034
16035
16036 else
16037 cat >> confdefs.h <<\EOF
16038 #define wxUSE_NOGUI 1
16039 EOF
16040
16041 fi
16042
16043
16044 if test "$wxUSE_UNIX" = "yes"; then
16045 cat >> confdefs.h <<\EOF
16046 #define wxUSE_UNIX 1
16047 EOF
16048
16049 fi
16050
16051
16052 if test "$wxUSE_APPLE_IEEE" = "yes"; then
16053 cat >> confdefs.h <<\EOF
16054 #define wxUSE_APPLE_IEEE 1
16055 EOF
16056
16057 fi
16058
16059 if test "$wxUSE_TIMER" = "yes"; then
16060 cat >> confdefs.h <<\EOF
16061 #define wxUSE_TIMER 1
16062 EOF
16063
16064 fi
16065
16066 if test "$wxUSE_WAVE" = "yes"; then
16067 cat >> confdefs.h <<\EOF
16068 #define wxUSE_WAVE 1
16069 EOF
16070
16071 fi
16072
16073 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
16074 cat >> confdefs.h <<\EOF
16075 #define wxUSE_CMDLINE_PARSER 1
16076 EOF
16077
16078 fi
16079
16080 if test "$wxUSE_STOPWATCH" = "yes"; then
16081 cat >> confdefs.h <<\EOF
16082 #define wxUSE_STOPWATCH 1
16083 EOF
16084
16085 fi
16086
16087 if test "$wxUSE_DATETIME" = "yes"; then
16088 cat >> confdefs.h <<\EOF
16089 #define wxUSE_DATETIME 1
16090 EOF
16091
16092 fi
16093
16094 if test "$wxUSE_TIMEDATE" = "yes"; then
16095 cat >> confdefs.h <<\EOF
16096 #define wxUSE_TIMEDATE 1
16097 EOF
16098
16099 fi
16100
16101 if test "$wxUSE_FILE" = "yes"; then
16102 cat >> confdefs.h <<\EOF
16103 #define wxUSE_FILE 1
16104 EOF
16105
16106 fi
16107
16108 if test "$wxUSE_FFILE" = "yes"; then
16109 cat >> confdefs.h <<\EOF
16110 #define wxUSE_FFILE 1
16111 EOF
16112
16113 fi
16114
16115 if test "$wxUSE_FILESYSTEM" = "yes"; then
16116 cat >> confdefs.h <<\EOF
16117 #define wxUSE_FILESYSTEM 1
16118 EOF
16119
16120 fi
16121
16122 if test "$wxUSE_FS_INET" = "yes"; then
16123 cat >> confdefs.h <<\EOF
16124 #define wxUSE_FS_INET 1
16125 EOF
16126
16127 fi
16128
16129 if test "$wxUSE_FS_ZIP" = "yes"; then
16130 cat >> confdefs.h <<\EOF
16131 #define wxUSE_FS_ZIP 1
16132 EOF
16133
16134 fi
16135
16136 if test "$wxUSE_ZIPSTREAM" = "yes"; then
16137 cat >> confdefs.h <<\EOF
16138 #define wxUSE_ZIPSTREAM 1
16139 EOF
16140
16141 fi
16142
16143 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16144 cat >> confdefs.h <<\EOF
16145 #define wxUSE_ON_FATAL_EXCEPTION 1
16146 EOF
16147
16148 fi
16149
16150 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16151 cat >> confdefs.h <<\EOF
16152 #define wxUSE_SNGLINST_CHECKER 1
16153 EOF
16154
16155 fi
16156
16157 if test "$wxUSE_BUSYINFO" = "yes"; then
16158 cat >> confdefs.h <<\EOF
16159 #define wxUSE_BUSYINFO 1
16160 EOF
16161
16162 fi
16163
16164 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
16165 cat >> confdefs.h <<\EOF
16166 #define wxUSE_STD_IOSTREAM 1
16167 EOF
16168
16169 fi
16170
16171 if test "$wxUSE_TEXTFILE" = "yes"; then
16172 if test "$wxUSE_FILE" != "yes"; then
16173 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
16174 else
16175 cat >> confdefs.h <<\EOF
16176 #define wxUSE_TEXTFILE 1
16177 EOF
16178
16179 fi
16180 fi
16181
16182 if test "$wxUSE_CONFIG" = "yes" ; then
16183 if test "$wxUSE_TEXTFILE" != "yes"; then
16184 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
16185 else
16186 cat >> confdefs.h <<\EOF
16187 #define wxUSE_CONFIG 1
16188 EOF
16189
16190 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
16191 fi
16192 fi
16193
16194 if test "$wxUSE_INTL" = "yes" ; then
16195 if test "$wxUSE_FILE" != "yes"; then
16196 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
16197 else
16198 cat >> confdefs.h <<\EOF
16199 #define wxUSE_INTL 1
16200 EOF
16201
16202 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
16203 GUIDIST="$GUIDIST INTL_DIST"
16204 fi
16205 fi
16206
16207 if test "$wxUSE_LOG" = "yes"; then
16208 cat >> confdefs.h <<\EOF
16209 #define wxUSE_LOG 1
16210 EOF
16211
16212
16213 if test "$wxUSE_LOGGUI" = "yes"; then
16214 cat >> confdefs.h <<\EOF
16215 #define wxUSE_LOGGUI 1
16216 EOF
16217
16218 fi
16219
16220 if test "$wxUSE_LOGWINDOW" = "yes"; then
16221 cat >> confdefs.h <<\EOF
16222 #define wxUSE_LOGWINDOW 1
16223 EOF
16224
16225 fi
16226 fi
16227
16228 if test "$wxUSE_LONGLONG" = "yes"; then
16229 cat >> confdefs.h <<\EOF
16230 #define wxUSE_LONGLONG 1
16231 EOF
16232
16233 fi
16234
16235 if test "$wxUSE_GEOMETRY" = "yes"; then
16236 cat >> confdefs.h <<\EOF
16237 #define wxUSE_GEOMETRY 1
16238 EOF
16239
16240 fi
16241
16242 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
16243 cat >> confdefs.h <<\EOF
16244 #define wxUSE_DIALUP_MANAGER 1
16245 EOF
16246
16247 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
16248 fi
16249
16250 if test "$wxUSE_STREAMS" = "yes" ; then
16251 cat >> confdefs.h <<\EOF
16252 #define wxUSE_STREAMS 1
16253 EOF
16254
16255 fi
16256
16257
16258 if test "$wxUSE_DATETIME" = "yes"; then
16259 for ac_func in strptime
16260 do
16261 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16262 echo "configure:16263: checking for $ac_func" >&5
16263 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16264 echo $ac_n "(cached) $ac_c" 1>&6
16265 else
16266 cat > conftest.$ac_ext <<EOF
16267 #line 16268 "configure"
16268 #include "confdefs.h"
16269 /* System header to define __stub macros and hopefully few prototypes,
16270 which can conflict with char $ac_func(); below. */
16271 #include <assert.h>
16272 /* Override any gcc2 internal prototype to avoid an error. */
16273 /* We use char because int might match the return type of a gcc2
16274 builtin and then its argument prototype would still apply. */
16275 char $ac_func();
16276
16277 int main() {
16278
16279 /* The GNU C library defines this for functions which it implements
16280 to always fail with ENOSYS. Some functions are actually named
16281 something starting with __ and the normal name is an alias. */
16282 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16283 choke me
16284 #else
16285 $ac_func();
16286 #endif
16287
16288 ; return 0; }
16289 EOF
16290 if { (eval echo configure:16291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16291 rm -rf conftest*
16292 eval "ac_cv_func_$ac_func=yes"
16293 else
16294 echo "configure: failed program was:" >&5
16295 cat conftest.$ac_ext >&5
16296 rm -rf conftest*
16297 eval "ac_cv_func_$ac_func=no"
16298 fi
16299 rm -f conftest*
16300 fi
16301
16302 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16303 echo "$ac_t""yes" 1>&6
16304 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16305 cat >> confdefs.h <<EOF
16306 #define $ac_tr_func 1
16307 EOF
16308
16309 else
16310 echo "$ac_t""no" 1>&6
16311 fi
16312 done
16313
16314
16315 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
16316 echo "configure:16317: checking for timezone variable in <time.h>" >&5
16317 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16318 echo $ac_n "(cached) $ac_c" 1>&6
16319 else
16320
16321 cat > conftest.$ac_ext <<EOF
16322 #line 16323 "configure"
16323 #include "confdefs.h"
16324
16325 #include <time.h>
16326
16327 int main() {
16328
16329 int tz;
16330 tz = timezone;
16331
16332 ; return 0; }
16333 EOF
16334 if { (eval echo configure:16335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16335 rm -rf conftest*
16336
16337 wx_cv_var_timezone=timezone
16338
16339 else
16340 echo "configure: failed program was:" >&5
16341 cat conftest.$ac_ext >&5
16342 rm -rf conftest*
16343
16344 cat > conftest.$ac_ext <<EOF
16345 #line 16346 "configure"
16346 #include "confdefs.h"
16347
16348 #include <time.h>
16349
16350 int main() {
16351
16352 int tz;
16353 tz = _timezone;
16354
16355 ; return 0; }
16356 EOF
16357 if { (eval echo configure:16358: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16358 rm -rf conftest*
16359
16360 wx_cv_var_timezone=_timezone
16361
16362 else
16363 echo "configure: failed program was:" >&5
16364 cat conftest.$ac_ext >&5
16365 rm -rf conftest*
16366
16367 cat > conftest.$ac_ext <<EOF
16368 #line 16369 "configure"
16369 #include "confdefs.h"
16370
16371 #include <time.h>
16372
16373 int main() {
16374
16375 int tz;
16376 tz = __timezone;
16377
16378 ; return 0; }
16379 EOF
16380 if { (eval echo configure:16381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16381 rm -rf conftest*
16382
16383 wx_cv_var_timezone=__timezone
16384
16385 else
16386 echo "configure: failed program was:" >&5
16387 cat conftest.$ac_ext >&5
16388 rm -rf conftest*
16389 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16390
16391 fi
16392 rm -f conftest*
16393
16394
16395 fi
16396 rm -f conftest*
16397
16398
16399 fi
16400 rm -f conftest*
16401
16402
16403 fi
16404
16405 echo "$ac_t""$wx_cv_var_timezone" 1>&6
16406
16407 cat >> confdefs.h <<EOF
16408 #define WX_TIMEZONE $wx_cv_var_timezone
16409 EOF
16410
16411
16412 for ac_func in localtime
16413 do
16414 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16415 echo "configure:16416: checking for $ac_func" >&5
16416 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16417 echo $ac_n "(cached) $ac_c" 1>&6
16418 else
16419 cat > conftest.$ac_ext <<EOF
16420 #line 16421 "configure"
16421 #include "confdefs.h"
16422 /* System header to define __stub macros and hopefully few prototypes,
16423 which can conflict with char $ac_func(); below. */
16424 #include <assert.h>
16425 /* Override any gcc2 internal prototype to avoid an error. */
16426 /* We use char because int might match the return type of a gcc2
16427 builtin and then its argument prototype would still apply. */
16428 char $ac_func();
16429
16430 int main() {
16431
16432 /* The GNU C library defines this for functions which it implements
16433 to always fail with ENOSYS. Some functions are actually named
16434 something starting with __ and the normal name is an alias. */
16435 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16436 choke me
16437 #else
16438 $ac_func();
16439 #endif
16440
16441 ; return 0; }
16442 EOF
16443 if { (eval echo configure:16444: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16444 rm -rf conftest*
16445 eval "ac_cv_func_$ac_func=yes"
16446 else
16447 echo "configure: failed program was:" >&5
16448 cat conftest.$ac_ext >&5
16449 rm -rf conftest*
16450 eval "ac_cv_func_$ac_func=no"
16451 fi
16452 rm -f conftest*
16453 fi
16454
16455 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16456 echo "$ac_t""yes" 1>&6
16457 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16458 cat >> confdefs.h <<EOF
16459 #define $ac_tr_func 1
16460 EOF
16461
16462 else
16463 echo "$ac_t""no" 1>&6
16464 fi
16465 done
16466
16467
16468 if test "$ac_cv_func_localtime" = "yes"; then
16469 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
16470 echo "configure:16471: checking for tm_gmtoff in struct tm" >&5
16471 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16472 echo $ac_n "(cached) $ac_c" 1>&6
16473 else
16474
16475 cat > conftest.$ac_ext <<EOF
16476 #line 16477 "configure"
16477 #include "confdefs.h"
16478
16479 #include <time.h>
16480
16481 int main() {
16482
16483 struct tm tm;
16484 tm.tm_gmtoff++;
16485
16486 ; return 0; }
16487 EOF
16488 if { (eval echo configure:16489: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16489 rm -rf conftest*
16490
16491 wx_cv_struct_tm_has_gmtoff=yes
16492
16493 else
16494 echo "configure: failed program was:" >&5
16495 cat conftest.$ac_ext >&5
16496 rm -rf conftest*
16497 wx_cv_struct_tm_has_gmtoff=no
16498
16499 fi
16500 rm -f conftest*
16501
16502 fi
16503
16504 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
16505 fi
16506
16507 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16508 cat >> confdefs.h <<\EOF
16509 #define WX_GMTOFF_IN_TM 1
16510 EOF
16511
16512 fi
16513
16514 for ac_func in gettimeofday ftime
16515 do
16516 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16517 echo "configure:16518: checking for $ac_func" >&5
16518 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16519 echo $ac_n "(cached) $ac_c" 1>&6
16520 else
16521 cat > conftest.$ac_ext <<EOF
16522 #line 16523 "configure"
16523 #include "confdefs.h"
16524 /* System header to define __stub macros and hopefully few prototypes,
16525 which can conflict with char $ac_func(); below. */
16526 #include <assert.h>
16527 /* Override any gcc2 internal prototype to avoid an error. */
16528 /* We use char because int might match the return type of a gcc2
16529 builtin and then its argument prototype would still apply. */
16530 char $ac_func();
16531
16532 int main() {
16533
16534 /* The GNU C library defines this for functions which it implements
16535 to always fail with ENOSYS. Some functions are actually named
16536 something starting with __ and the normal name is an alias. */
16537 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16538 choke me
16539 #else
16540 $ac_func();
16541 #endif
16542
16543 ; return 0; }
16544 EOF
16545 if { (eval echo configure:16546: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16546 rm -rf conftest*
16547 eval "ac_cv_func_$ac_func=yes"
16548 else
16549 echo "configure: failed program was:" >&5
16550 cat conftest.$ac_ext >&5
16551 rm -rf conftest*
16552 eval "ac_cv_func_$ac_func=no"
16553 fi
16554 rm -f conftest*
16555 fi
16556
16557 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16558 echo "$ac_t""yes" 1>&6
16559 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16560 cat >> confdefs.h <<EOF
16561 #define $ac_tr_func 1
16562 EOF
16563 break
16564 else
16565 echo "$ac_t""no" 1>&6
16566 fi
16567 done
16568
16569
16570 if test "$ac_cv_func_gettimeofday" = "yes"; then
16571 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16572 echo "configure:16573: checking whether gettimeofday takes two arguments" >&5
16573 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16574 echo $ac_n "(cached) $ac_c" 1>&6
16575 else
16576
16577
16578 ac_ext=C
16579 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16580 ac_cpp='$CXXCPP $CPPFLAGS'
16581 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16582 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16583 cross_compiling=$ac_cv_prog_cxx_cross
16584
16585
16586 cat > conftest.$ac_ext <<EOF
16587 #line 16588 "configure"
16588 #include "confdefs.h"
16589
16590 #include <sys/time.h>
16591 #include <unistd.h>
16592
16593 int main() {
16594
16595 struct timeval tv;
16596 gettimeofday(&tv, NULL);
16597
16598 ; return 0; }
16599 EOF
16600 if { (eval echo configure:16601: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16601 rm -rf conftest*
16602 wx_cv_func_gettimeofday_has_2_args=yes
16603 else
16604 echo "configure: failed program was:" >&5
16605 cat conftest.$ac_ext >&5
16606 rm -rf conftest*
16607 cat > conftest.$ac_ext <<EOF
16608 #line 16609 "configure"
16609 #include "confdefs.h"
16610
16611 #include <sys/time.h>
16612 #include <unistd.h>
16613
16614 int main() {
16615
16616 struct timeval tv;
16617 gettimeofday(&tv);
16618
16619 ; return 0; }
16620 EOF
16621 if { (eval echo configure:16622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16622 rm -rf conftest*
16623 wx_cv_func_gettimeofday_has_2_args=no
16624 else
16625 echo "configure: failed program was:" >&5
16626 cat conftest.$ac_ext >&5
16627 rm -rf conftest*
16628
16629 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
16630 wx_cv_func_gettimeofday_has_2_args=unknown
16631
16632
16633 fi
16634 rm -f conftest*
16635
16636 fi
16637 rm -f conftest*
16638 ac_ext=c
16639 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16640 ac_cpp='$CPP $CPPFLAGS'
16641 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16642 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16643 cross_compiling=$ac_cv_prog_cc_cross
16644
16645
16646 fi
16647
16648 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16649
16650 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16651 cat >> confdefs.h <<\EOF
16652 #define WX_GETTIMEOFDAY_NO_TZ 1
16653 EOF
16654
16655 fi
16656 fi
16657
16658 cat >> confdefs.h <<\EOF
16659 #define wxUSE_TIMEDATE 1
16660 EOF
16661
16662 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16663 fi
16664
16665
16666 if test "$TOOLKIT" != "MSW"; then
16667
16668 if test "$wxUSE_SOCKETS" = "yes"; then
16669 echo $ac_n "checking for socket""... $ac_c" 1>&6
16670 echo "configure:16671: checking for socket" >&5
16671 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16672 echo $ac_n "(cached) $ac_c" 1>&6
16673 else
16674 cat > conftest.$ac_ext <<EOF
16675 #line 16676 "configure"
16676 #include "confdefs.h"
16677 /* System header to define __stub macros and hopefully few prototypes,
16678 which can conflict with char socket(); below. */
16679 #include <assert.h>
16680 /* Override any gcc2 internal prototype to avoid an error. */
16681 /* We use char because int might match the return type of a gcc2
16682 builtin and then its argument prototype would still apply. */
16683 char socket();
16684
16685 int main() {
16686
16687 /* The GNU C library defines this for functions which it implements
16688 to always fail with ENOSYS. Some functions are actually named
16689 something starting with __ and the normal name is an alias. */
16690 #if defined (__stub_socket) || defined (__stub___socket)
16691 choke me
16692 #else
16693 socket();
16694 #endif
16695
16696 ; return 0; }
16697 EOF
16698 if { (eval echo configure:16699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16699 rm -rf conftest*
16700 eval "ac_cv_func_socket=yes"
16701 else
16702 echo "configure: failed program was:" >&5
16703 cat conftest.$ac_ext >&5
16704 rm -rf conftest*
16705 eval "ac_cv_func_socket=no"
16706 fi
16707 rm -f conftest*
16708 fi
16709
16710 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16711 echo "$ac_t""yes" 1>&6
16712 :
16713 else
16714 echo "$ac_t""no" 1>&6
16715 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16716 echo "configure:16717: checking for socket in -lsocket" >&5
16717 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16718 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16719 echo $ac_n "(cached) $ac_c" 1>&6
16720 else
16721 ac_save_LIBS="$LIBS"
16722 LIBS="-lsocket $LIBS"
16723 cat > conftest.$ac_ext <<EOF
16724 #line 16725 "configure"
16725 #include "confdefs.h"
16726 /* Override any gcc2 internal prototype to avoid an error. */
16727 /* We use char because int might match the return type of a gcc2
16728 builtin and then its argument prototype would still apply. */
16729 char socket();
16730
16731 int main() {
16732 socket()
16733 ; return 0; }
16734 EOF
16735 if { (eval echo configure:16736: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16736 rm -rf conftest*
16737 eval "ac_cv_lib_$ac_lib_var=yes"
16738 else
16739 echo "configure: failed program was:" >&5
16740 cat conftest.$ac_ext >&5
16741 rm -rf conftest*
16742 eval "ac_cv_lib_$ac_lib_var=no"
16743 fi
16744 rm -f conftest*
16745 LIBS="$ac_save_LIBS"
16746
16747 fi
16748 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16749 echo "$ac_t""yes" 1>&6
16750 INET_LINK="$INET_LINK -lsocket"
16751 else
16752 echo "$ac_t""no" 1>&6
16753
16754 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16755 wxUSE_SOCKETS=no
16756
16757
16758 fi
16759
16760
16761 fi
16762
16763 fi
16764
16765
16766 if test "$wxUSE_SOCKETS" = "yes" ; then
16767 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16768 echo "configure:16769: checking what is the type of the third argument of getsockname" >&5
16769 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16770 echo $ac_n "(cached) $ac_c" 1>&6
16771 else
16772
16773
16774 ac_ext=C
16775 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16776 ac_cpp='$CXXCPP $CPPFLAGS'
16777 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16778 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16779 cross_compiling=$ac_cv_prog_cxx_cross
16780
16781
16782 cat > conftest.$ac_ext <<EOF
16783 #line 16784 "configure"
16784 #include "confdefs.h"
16785
16786 #include <sys/types.h>
16787 #include <sys/socket.h>
16788
16789 int main() {
16790
16791 socklen_t len;
16792 getsockname(0, 0, &len);
16793
16794 ; return 0; }
16795 EOF
16796 if { (eval echo configure:16797: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16797 rm -rf conftest*
16798 wx_cv_type_getsockname3=socklen_t
16799 else
16800 echo "configure: failed program was:" >&5
16801 cat conftest.$ac_ext >&5
16802 rm -rf conftest*
16803 cat > conftest.$ac_ext <<EOF
16804 #line 16805 "configure"
16805 #include "confdefs.h"
16806
16807 #include <sys/types.h>
16808 #include <sys/socket.h>
16809
16810 int main() {
16811
16812 size_t len;
16813 getsockname(0, 0, &len);
16814
16815 ; return 0; }
16816 EOF
16817 if { (eval echo configure:16818: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16818 rm -rf conftest*
16819 wx_cv_type_getsockname3=size_t
16820 else
16821 echo "configure: failed program was:" >&5
16822 cat conftest.$ac_ext >&5
16823 rm -rf conftest*
16824 cat > conftest.$ac_ext <<EOF
16825 #line 16826 "configure"
16826 #include "confdefs.h"
16827
16828 #include <sys/types.h>
16829 #include <sys/socket.h>
16830
16831 int main() {
16832
16833 int len;
16834 getsockname(0, 0, &len);
16835
16836 ; return 0; }
16837 EOF
16838 if { (eval echo configure:16839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16839 rm -rf conftest*
16840 wx_cv_type_getsockname3=int
16841 else
16842 echo "configure: failed program was:" >&5
16843 cat conftest.$ac_ext >&5
16844 rm -rf conftest*
16845 wx_cv_type_getsockname3=unknown
16846
16847 fi
16848 rm -f conftest*
16849
16850 fi
16851 rm -f conftest*
16852
16853 fi
16854 rm -f conftest*
16855
16856 ac_ext=c
16857 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16858 ac_cpp='$CPP $CPPFLAGS'
16859 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16860 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16861 cross_compiling=$ac_cv_prog_cc_cross
16862
16863
16864 fi
16865
16866 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
16867
16868 if test "$wx_cv_type_getsockname3" = "unknown"; then
16869 wxUSE_SOCKETS=no
16870 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16871 else
16872 cat >> confdefs.h <<EOF
16873 #define SOCKLEN_T $wx_cv_type_getsockname3
16874 EOF
16875
16876 fi
16877 fi
16878 fi
16879
16880 if test "$wxUSE_SOCKETS" = "yes" ; then
16881 cat >> confdefs.h <<\EOF
16882 #define wxUSE_SOCKETS 1
16883 EOF
16884
16885 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
16886 fi
16887
16888
16889 if test "$wxUSE_GUI" = "yes"; then
16890
16891 if test "$TOOLKIT" != "MSW"; then
16892 if test "$wxUSE_JOYSTICK" = "yes"; then
16893 for ac_hdr in linux/joystick.h
16894 do
16895 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16896 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16897 echo "configure:16898: checking for $ac_hdr" >&5
16898 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16899 echo $ac_n "(cached) $ac_c" 1>&6
16900 else
16901 cat > conftest.$ac_ext <<EOF
16902 #line 16903 "configure"
16903 #include "confdefs.h"
16904 #include <$ac_hdr>
16905 EOF
16906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16907 { (eval echo configure:16908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16908 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16909 if test -z "$ac_err"; then
16910 rm -rf conftest*
16911 eval "ac_cv_header_$ac_safe=yes"
16912 else
16913 echo "$ac_err" >&5
16914 echo "configure: failed program was:" >&5
16915 cat conftest.$ac_ext >&5
16916 rm -rf conftest*
16917 eval "ac_cv_header_$ac_safe=no"
16918 fi
16919 rm -f conftest*
16920 fi
16921 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16922 echo "$ac_t""yes" 1>&6
16923 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16924 cat >> confdefs.h <<EOF
16925 #define $ac_tr_hdr 1
16926 EOF
16927
16928 else
16929 echo "$ac_t""no" 1>&6
16930 fi
16931 done
16932
16933 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16934 wxUSE_JOYSTICK=no
16935 echo "configure: warning: Joystick not supported by this system" 1>&2
16936 fi
16937 fi
16938 fi
16939
16940 if test "$wxUSE_JOYSTICK" = "yes"; then
16941 cat >> confdefs.h <<\EOF
16942 #define wxUSE_JOYSTICK 1
16943 EOF
16944
16945 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16946 fi
16947 fi
16948
16949
16950 if test "$TOOLKIT" != "MSW"; then
16951
16952 HAVE_DL_FUNCS=0
16953 HAVE_SHL_FUNCS=0
16954 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16955 if test "$USE_DARWIN" = 1; then
16956 HAVE_DL_FUNCS=1
16957 else
16958 for ac_func in dlopen
16959 do
16960 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16961 echo "configure:16962: checking for $ac_func" >&5
16962 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16963 echo $ac_n "(cached) $ac_c" 1>&6
16964 else
16965 cat > conftest.$ac_ext <<EOF
16966 #line 16967 "configure"
16967 #include "confdefs.h"
16968 /* System header to define __stub macros and hopefully few prototypes,
16969 which can conflict with char $ac_func(); below. */
16970 #include <assert.h>
16971 /* Override any gcc2 internal prototype to avoid an error. */
16972 /* We use char because int might match the return type of a gcc2
16973 builtin and then its argument prototype would still apply. */
16974 char $ac_func();
16975
16976 int main() {
16977
16978 /* The GNU C library defines this for functions which it implements
16979 to always fail with ENOSYS. Some functions are actually named
16980 something starting with __ and the normal name is an alias. */
16981 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16982 choke me
16983 #else
16984 $ac_func();
16985 #endif
16986
16987 ; return 0; }
16988 EOF
16989 if { (eval echo configure:16990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16990 rm -rf conftest*
16991 eval "ac_cv_func_$ac_func=yes"
16992 else
16993 echo "configure: failed program was:" >&5
16994 cat conftest.$ac_ext >&5
16995 rm -rf conftest*
16996 eval "ac_cv_func_$ac_func=no"
16997 fi
16998 rm -f conftest*
16999 fi
17000
17001 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17002 echo "$ac_t""yes" 1>&6
17003 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17004 cat >> confdefs.h <<EOF
17005 #define $ac_tr_func 1
17006 EOF
17007
17008 cat >> confdefs.h <<\EOF
17009 #define HAVE_DLOPEN 1
17010 EOF
17011
17012 HAVE_DL_FUNCS=1
17013
17014 else
17015 echo "$ac_t""no" 1>&6
17016 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
17017 echo "configure:17018: checking for dlopen in -ldl" >&5
17018 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
17019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17020 echo $ac_n "(cached) $ac_c" 1>&6
17021 else
17022 ac_save_LIBS="$LIBS"
17023 LIBS="-ldl $LIBS"
17024 cat > conftest.$ac_ext <<EOF
17025 #line 17026 "configure"
17026 #include "confdefs.h"
17027 /* Override any gcc2 internal prototype to avoid an error. */
17028 /* We use char because int might match the return type of a gcc2
17029 builtin and then its argument prototype would still apply. */
17030 char dlopen();
17031
17032 int main() {
17033 dlopen()
17034 ; return 0; }
17035 EOF
17036 if { (eval echo configure:17037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17037 rm -rf conftest*
17038 eval "ac_cv_lib_$ac_lib_var=yes"
17039 else
17040 echo "configure: failed program was:" >&5
17041 cat conftest.$ac_ext >&5
17042 rm -rf conftest*
17043 eval "ac_cv_lib_$ac_lib_var=no"
17044 fi
17045 rm -f conftest*
17046 LIBS="$ac_save_LIBS"
17047
17048 fi
17049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17050 echo "$ac_t""yes" 1>&6
17051
17052 cat >> confdefs.h <<\EOF
17053 #define HAVE_DLOPEN 1
17054 EOF
17055
17056 HAVE_DL_FUNCS=1
17057 LIBS="$LIBS -ldl"
17058
17059 else
17060 echo "$ac_t""no" 1>&6
17061
17062 for ac_func in shl_load
17063 do
17064 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17065 echo "configure:17066: checking for $ac_func" >&5
17066 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17067 echo $ac_n "(cached) $ac_c" 1>&6
17068 else
17069 cat > conftest.$ac_ext <<EOF
17070 #line 17071 "configure"
17071 #include "confdefs.h"
17072 /* System header to define __stub macros and hopefully few prototypes,
17073 which can conflict with char $ac_func(); below. */
17074 #include <assert.h>
17075 /* Override any gcc2 internal prototype to avoid an error. */
17076 /* We use char because int might match the return type of a gcc2
17077 builtin and then its argument prototype would still apply. */
17078 char $ac_func();
17079
17080 int main() {
17081
17082 /* The GNU C library defines this for functions which it implements
17083 to always fail with ENOSYS. Some functions are actually named
17084 something starting with __ and the normal name is an alias. */
17085 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17086 choke me
17087 #else
17088 $ac_func();
17089 #endif
17090
17091 ; return 0; }
17092 EOF
17093 if { (eval echo configure:17094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17094 rm -rf conftest*
17095 eval "ac_cv_func_$ac_func=yes"
17096 else
17097 echo "configure: failed program was:" >&5
17098 cat conftest.$ac_ext >&5
17099 rm -rf conftest*
17100 eval "ac_cv_func_$ac_func=no"
17101 fi
17102 rm -f conftest*
17103 fi
17104
17105 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17106 echo "$ac_t""yes" 1>&6
17107 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17108 cat >> confdefs.h <<EOF
17109 #define $ac_tr_func 1
17110 EOF
17111
17112 cat >> confdefs.h <<\EOF
17113 #define HAVE_SHL_LOAD 1
17114 EOF
17115
17116 HAVE_SHL_FUNCS=1
17117
17118 else
17119 echo "$ac_t""no" 1>&6
17120 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
17121 echo "configure:17122: checking for dld in -lshl_load" >&5
17122 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
17123 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17124 echo $ac_n "(cached) $ac_c" 1>&6
17125 else
17126 ac_save_LIBS="$LIBS"
17127 LIBS="-lshl_load $LIBS"
17128 cat > conftest.$ac_ext <<EOF
17129 #line 17130 "configure"
17130 #include "confdefs.h"
17131 /* Override any gcc2 internal prototype to avoid an error. */
17132 /* We use char because int might match the return type of a gcc2
17133 builtin and then its argument prototype would still apply. */
17134 char dld();
17135
17136 int main() {
17137 dld()
17138 ; return 0; }
17139 EOF
17140 if { (eval echo configure:17141: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17141 rm -rf conftest*
17142 eval "ac_cv_lib_$ac_lib_var=yes"
17143 else
17144 echo "configure: failed program was:" >&5
17145 cat conftest.$ac_ext >&5
17146 rm -rf conftest*
17147 eval "ac_cv_lib_$ac_lib_var=no"
17148 fi
17149 rm -f conftest*
17150 LIBS="$ac_save_LIBS"
17151
17152 fi
17153 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17154 echo "$ac_t""yes" 1>&6
17155
17156 HAVE_SHL_FUNCS=1
17157 LIBS="$LIBS -ldld"
17158
17159 else
17160 echo "$ac_t""no" 1>&6
17161 fi
17162
17163
17164 fi
17165 done
17166
17167
17168 fi
17169
17170
17171 fi
17172 done
17173
17174
17175 if test "$HAVE_DL_FUNCS" = 1; then
17176 for ac_func in dlerror
17177 do
17178 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17179 echo "configure:17180: checking for $ac_func" >&5
17180 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17181 echo $ac_n "(cached) $ac_c" 1>&6
17182 else
17183 cat > conftest.$ac_ext <<EOF
17184 #line 17185 "configure"
17185 #include "confdefs.h"
17186 /* System header to define __stub macros and hopefully few prototypes,
17187 which can conflict with char $ac_func(); below. */
17188 #include <assert.h>
17189 /* Override any gcc2 internal prototype to avoid an error. */
17190 /* We use char because int might match the return type of a gcc2
17191 builtin and then its argument prototype would still apply. */
17192 char $ac_func();
17193
17194 int main() {
17195
17196 /* The GNU C library defines this for functions which it implements
17197 to always fail with ENOSYS. Some functions are actually named
17198 something starting with __ and the normal name is an alias. */
17199 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17200 choke me
17201 #else
17202 $ac_func();
17203 #endif
17204
17205 ; return 0; }
17206 EOF
17207 if { (eval echo configure:17208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17208 rm -rf conftest*
17209 eval "ac_cv_func_$ac_func=yes"
17210 else
17211 echo "configure: failed program was:" >&5
17212 cat conftest.$ac_ext >&5
17213 rm -rf conftest*
17214 eval "ac_cv_func_$ac_func=no"
17215 fi
17216 rm -f conftest*
17217 fi
17218
17219 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17220 echo "$ac_t""yes" 1>&6
17221 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17222 cat >> confdefs.h <<EOF
17223 #define $ac_tr_func 1
17224 EOF
17225 cat >> confdefs.h <<\EOF
17226 #define HAVE_DLERROR 1
17227 EOF
17228
17229 else
17230 echo "$ac_t""no" 1>&6
17231 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
17232 echo "configure:17233: checking for dlerror in -ldl" >&5
17233 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17235 echo $ac_n "(cached) $ac_c" 1>&6
17236 else
17237 ac_save_LIBS="$LIBS"
17238 LIBS="-ldl $LIBS"
17239 cat > conftest.$ac_ext <<EOF
17240 #line 17241 "configure"
17241 #include "confdefs.h"
17242 /* Override any gcc2 internal prototype to avoid an error. */
17243 /* We use char because int might match the return type of a gcc2
17244 builtin and then its argument prototype would still apply. */
17245 char dlerror();
17246
17247 int main() {
17248 dlerror()
17249 ; return 0; }
17250 EOF
17251 if { (eval echo configure:17252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17252 rm -rf conftest*
17253 eval "ac_cv_lib_$ac_lib_var=yes"
17254 else
17255 echo "configure: failed program was:" >&5
17256 cat conftest.$ac_ext >&5
17257 rm -rf conftest*
17258 eval "ac_cv_lib_$ac_lib_var=no"
17259 fi
17260 rm -f conftest*
17261 LIBS="$ac_save_LIBS"
17262
17263 fi
17264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17265 echo "$ac_t""yes" 1>&6
17266 cat >> confdefs.h <<\EOF
17267 #define HAVE_DLERROR 1
17268 EOF
17269
17270 else
17271 echo "$ac_t""no" 1>&6
17272 fi
17273
17274 fi
17275 done
17276
17277 fi
17278 fi
17279
17280 if test "$HAVE_DL_FUNCS" = 0; then
17281 if test "$HAVE_SHL_FUNCS" = 0; then
17282 if test "$USE_UNIX" = 1; then
17283 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17284 wxUSE_DYNLIB_CLASS=no
17285 else
17286 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17287 fi
17288 fi
17289 fi
17290 fi
17291 fi
17292
17293 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
17294 cat >> confdefs.h <<\EOF
17295 #define wxUSE_DYNLIB_CLASS 1
17296 EOF
17297
17298 else
17299 wxUSE_ODBC=no
17300 wxUSE_SERIAL=no
17301 fi
17302
17303
17304 if test "$wxUSE_FONTMAP" = "yes" ; then
17305 cat >> confdefs.h <<\EOF
17306 #define wxUSE_FONTMAP 1
17307 EOF
17308
17309 fi
17310
17311 if test "$wxUSE_UNICODE" = "yes" ; then
17312 cat >> confdefs.h <<\EOF
17313 #define wxUSE_UNICODE 1
17314 EOF
17315
17316 fi
17317
17318 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
17319 cat >> confdefs.h <<\EOF
17320 #define wxUSE_EXPERIMENTAL_PRINTF 1
17321 EOF
17322
17323 fi
17324
17325
17326 if test "$wxUSE_SERIAL" = "yes" ; then
17327 cat >> confdefs.h <<\EOF
17328 #define wxUSE_SERIAL 1
17329 EOF
17330
17331 fi
17332
17333
17334 IODBC_C_SRC=""
17335 if test "$wxUSE_ODBC" = "yes" ; then
17336 cat >> confdefs.h <<\EOF
17337 #define wxUSE_ODBC 1
17338 EOF
17339
17340 WXODBCFLAG="-D_IODBC_"
17341 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
17342 fi
17343
17344
17345 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
17346 cat >> confdefs.h <<\EOF
17347 #define wxUSE_POSTSCRIPT 1
17348 EOF
17349
17350 fi
17351
17352 cat >> confdefs.h <<\EOF
17353 #define wxUSE_AFM_FOR_POSTSCRIPT 1
17354 EOF
17355
17356
17357 cat >> confdefs.h <<\EOF
17358 #define wxUSE_NORMALIZED_PS_FONTS 1
17359 EOF
17360
17361
17362
17363 if test "$wxUSE_CONSTRAINTS" = "yes"; then
17364 cat >> confdefs.h <<\EOF
17365 #define wxUSE_CONSTRAINTS 1
17366 EOF
17367
17368 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17369 fi
17370
17371 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17372 if test "$wxUSE_UNIVERSAL" = "yes"; then
17373 echo "configure: warning: MDI is not supported for wxUNIVERSAL yet... disabled" 1>&2
17374 wxUSE_MDI_ARCHITECTURE=no
17375 fi
17376
17377 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17378 cat >> confdefs.h <<\EOF
17379 #define wxUSE_MDI_ARCHITECTURE 1
17380 EOF
17381
17382 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17383 fi
17384 fi
17385
17386 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
17387 cat >> confdefs.h <<\EOF
17388 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
17389 EOF
17390
17391 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17392 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17393 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17394 fi
17395 fi
17396
17397 if test "$wxUSE_HELP" = "yes"; then
17398 cat >> confdefs.h <<\EOF
17399 #define wxUSE_HELP 1
17400 EOF
17401
17402 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
17403
17404 if test "$wxUSE_MSW" = 1; then
17405 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
17406 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17407 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
17408 echo "configure:17409: checking for htmlhelp.h" >&5
17409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17410 echo $ac_n "(cached) $ac_c" 1>&6
17411 else
17412 cat > conftest.$ac_ext <<EOF
17413 #line 17414 "configure"
17414 #include "confdefs.h"
17415 #include <htmlhelp.h>
17416 EOF
17417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17418 { (eval echo configure:17419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17420 if test -z "$ac_err"; then
17421 rm -rf conftest*
17422 eval "ac_cv_header_$ac_safe=yes"
17423 else
17424 echo "$ac_err" >&5
17425 echo "configure: failed program was:" >&5
17426 cat conftest.$ac_ext >&5
17427 rm -rf conftest*
17428 eval "ac_cv_header_$ac_safe=no"
17429 fi
17430 rm -f conftest*
17431 fi
17432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17433 echo "$ac_t""yes" 1>&6
17434
17435 cat >> confdefs.h <<\EOF
17436 #define wxUSE_MS_HTML_HELP 1
17437 EOF
17438
17439
17440 else
17441 echo "$ac_t""no" 1>&6
17442
17443 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
17444 wxUSE_MS_HTML_HELP=no
17445
17446 fi
17447
17448 fi
17449 fi
17450
17451 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17452 if test "$wxUSE_HTML" = "yes"; then
17453 cat >> confdefs.h <<\EOF
17454 #define wxUSE_WXHTML_HELP 1
17455 EOF
17456
17457 else
17458 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17459 wxUSE_WXHTML_HELP=no
17460 fi
17461 fi
17462 fi
17463
17464 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17465 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17466 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
17467 else
17468 cat >> confdefs.h <<\EOF
17469 #define wxUSE_PRINTING_ARCHITECTURE 1
17470 EOF
17471
17472 fi
17473 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17474 fi
17475
17476 if test "$wxUSE_PROLOGIO" = "yes" ; then
17477 cat >> confdefs.h <<\EOF
17478 #define wxUSE_PROLOGIO 1
17479 EOF
17480
17481 fi
17482
17483 if test "$wxUSE_RESOURCES" = "yes" ; then
17484 cat >> confdefs.h <<\EOF
17485 #define wxUSE_RESOURCES 1
17486 EOF
17487
17488 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
17489 fi
17490
17491 if test "$wxUSE_X_RESOURCES" = "yes"; then
17492 cat >> confdefs.h <<\EOF
17493 #define wxUSE_X_RESOURCES 1
17494 EOF
17495
17496 fi
17497
17498
17499 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
17500 -o "$wxUSE_CLIPBOARD" = "yes" \
17501 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
17502 for ac_hdr in ole2.h
17503 do
17504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17506 echo "configure:17507: checking for $ac_hdr" >&5
17507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17508 echo $ac_n "(cached) $ac_c" 1>&6
17509 else
17510 cat > conftest.$ac_ext <<EOF
17511 #line 17512 "configure"
17512 #include "confdefs.h"
17513 #include <$ac_hdr>
17514 EOF
17515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17516 { (eval echo configure:17517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17518 if test -z "$ac_err"; then
17519 rm -rf conftest*
17520 eval "ac_cv_header_$ac_safe=yes"
17521 else
17522 echo "$ac_err" >&5
17523 echo "configure: failed program was:" >&5
17524 cat conftest.$ac_ext >&5
17525 rm -rf conftest*
17526 eval "ac_cv_header_$ac_safe=no"
17527 fi
17528 rm -f conftest*
17529 fi
17530 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17531 echo "$ac_t""yes" 1>&6
17532 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17533 cat >> confdefs.h <<EOF
17534 #define $ac_tr_hdr 1
17535 EOF
17536
17537 else
17538 echo "$ac_t""no" 1>&6
17539 fi
17540 done
17541
17542
17543 if test "$ac_cv_header_ole2_h" = "yes" ; then
17544 if test "$GCC" = yes ; then
17545 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17546 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17547 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
17548 cat >> confdefs.h <<\EOF
17549 #define wxUSE_OLE 1
17550 EOF
17551
17552
17553 fi
17554
17555 cat >> confdefs.h <<\EOF
17556 #define wxUSE_DATAOBJ 1
17557 EOF
17558
17559 else
17560 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
17561
17562 wxUSE_CLIPBOARD=no
17563 wxUSE_DRAG_AND_DROP=no
17564 wxUSE_DATAOBJ=no
17565 fi
17566
17567 if test "$wxUSE_METAFILE" = "yes"; then
17568 cat >> confdefs.h <<\EOF
17569 #define wxUSE_METAFILE 1
17570 EOF
17571
17572
17573 cat >> confdefs.h <<\EOF
17574 #define wxUSE_ENH_METAFILE 1
17575 EOF
17576
17577 fi
17578 fi
17579
17580 if test "$wxUSE_IPC" = "yes"; then
17581 if test "$wxUSE_SOCKETS" != "yes"; then
17582 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17583 fi
17584
17585 cat >> confdefs.h <<\EOF
17586 #define wxUSE_IPC 1
17587 EOF
17588
17589 fi
17590
17591 if test "$wxUSE_CLIPBOARD" = "yes"; then
17592 cat >> confdefs.h <<\EOF
17593 #define wxUSE_CLIPBOARD 1
17594 EOF
17595
17596
17597 cat >> confdefs.h <<\EOF
17598 #define wxUSE_DATAOBJ 1
17599 EOF
17600
17601 fi
17602
17603 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17604 if test "$wxUSE_GTK" = 1; then
17605 if test "$WXGTK12" != 1; then
17606 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
17607 wxUSE_DRAG_AND_DROP=no
17608 fi
17609 fi
17610
17611 if test "$wxUSE_MOTIF" = 1; then
17612 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17613 wxUSE_DRAG_AND_DROP=no
17614 fi
17615
17616 if test "$wxUSE_MAC" = 1; then
17617 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17618 wxUSE_DRAG_AND_DROP=no
17619 fi
17620
17621 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17622 cat >> confdefs.h <<\EOF
17623 #define wxUSE_DRAG_AND_DROP 1
17624 EOF
17625
17626 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17627 fi
17628
17629 fi
17630
17631 if test "$wxUSE_SPLINES" = "yes" ; then
17632 cat >> confdefs.h <<\EOF
17633 #define wxUSE_SPLINES 1
17634 EOF
17635
17636 fi
17637
17638
17639 USES_CONTROLS=0
17640 if test "$wxUSE_CONTROLS" = "yes"; then
17641 USES_CONTROLS=1
17642 fi
17643
17644 if test "$wxUSE_ACCEL" = "yes"; then
17645 cat >> confdefs.h <<\EOF
17646 #define wxUSE_ACCEL 1
17647 EOF
17648
17649 USES_CONTROLS=1
17650 fi
17651
17652 if test "$wxUSE_BUTTON" = "yes"; then
17653 cat >> confdefs.h <<\EOF
17654 #define wxUSE_BUTTON 1
17655 EOF
17656
17657 USES_CONTROLS=1
17658 fi
17659
17660 if test "$wxUSE_BMPBUTTON" = "yes"; then
17661 cat >> confdefs.h <<\EOF
17662 #define wxUSE_BMPBUTTON 1
17663 EOF
17664
17665 USES_CONTROLS=1
17666 fi
17667
17668 if test "$wxUSE_CALCTRL" = "yes"; then
17669 cat >> confdefs.h <<\EOF
17670 #define wxUSE_CALENDARCTRL 1
17671 EOF
17672
17673 USES_CONTROLS=1
17674 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17675 fi
17676
17677 if test "$wxUSE_CARET" = "yes"; then
17678 cat >> confdefs.h <<\EOF
17679 #define wxUSE_CARET 1
17680 EOF
17681
17682 USES_CONTROLS=1
17683 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17684 fi
17685
17686 if test "$wxUSE_COMBOBOX" = "yes"; then
17687 cat >> confdefs.h <<\EOF
17688 #define wxUSE_COMBOBOX 1
17689 EOF
17690
17691 USES_CONTROLS=1
17692 fi
17693
17694 if test "$wxUSE_CHOICE" = "yes"; then
17695 cat >> confdefs.h <<\EOF
17696 #define wxUSE_CHOICE 1
17697 EOF
17698
17699 USES_CONTROLS=1
17700 fi
17701
17702 if test "$wxUSE_CHECKBOX" = "yes"; then
17703 cat >> confdefs.h <<\EOF
17704 #define wxUSE_CHECKBOX 1
17705 EOF
17706
17707 USES_CONTROLS=1
17708 fi
17709
17710 if test "$wxUSE_CHECKLST" = "yes"; then
17711 cat >> confdefs.h <<\EOF
17712 #define wxUSE_CHECKLISTBOX 1
17713 EOF
17714
17715 USES_CONTROLS=1
17716 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17717 fi
17718
17719 if test "$wxUSE_GAUGE" = "yes"; then
17720 cat >> confdefs.h <<\EOF
17721 #define wxUSE_GAUGE 1
17722 EOF
17723
17724 USES_CONTROLS=1
17725 fi
17726
17727 if test "$wxUSE_NEW_GRID" = "yes"; then
17728 wxUSE_GRID="yes"
17729 cat >> confdefs.h <<\EOF
17730 #define wxUSE_NEW_GRID 1
17731 EOF
17732
17733 USES_CONTROLS=1
17734 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17735 fi
17736
17737 if test "$wxUSE_GRID" = "yes"; then
17738 cat >> confdefs.h <<\EOF
17739 #define wxUSE_GRID 1
17740 EOF
17741
17742 USES_CONTROLS=1
17743 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17744 fi
17745
17746 if test "$wxUSE_IMAGLIST" = "yes"; then
17747 cat >> confdefs.h <<\EOF
17748 #define wxUSE_IMAGLIST 1
17749 EOF
17750
17751 fi
17752
17753 if test "$wxUSE_LISTBOX" = "yes"; then
17754 cat >> confdefs.h <<\EOF
17755 #define wxUSE_LISTBOX 1
17756 EOF
17757
17758 USES_CONTROLS=1
17759 fi
17760
17761 if test "$wxUSE_LISTCTRL" = "yes"; then
17762 if test "$wxUSE_IMAGLIST" = "yes"; then
17763 cat >> confdefs.h <<\EOF
17764 #define wxUSE_LISTCTRL 1
17765 EOF
17766
17767 USES_CONTROLS=1
17768 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17769 else
17770 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
17771 fi
17772 fi
17773
17774 if test "$wxUSE_NOTEBOOK" = "yes"; then
17775 cat >> confdefs.h <<\EOF
17776 #define wxUSE_NOTEBOOK 1
17777 EOF
17778
17779 USES_CONTROLS=1
17780 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17781 fi
17782
17783 if test "$wxUSE_PROPSHEET" = "yes"; then
17784 cat >> confdefs.h <<\EOF
17785 #define wxUSE_PROPSHEET 1
17786 EOF
17787
17788 USES_CONTROLS=1
17789 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17790 fi
17791
17792 if test "$wxUSE_RADIOBOX" = "yes"; then
17793 cat >> confdefs.h <<\EOF
17794 #define wxUSE_RADIOBOX 1
17795 EOF
17796
17797 USES_CONTROLS=1
17798 fi
17799
17800 if test "$wxUSE_RADIOBTN" = "yes"; then
17801 cat >> confdefs.h <<\EOF
17802 #define wxUSE_RADIOBTN 1
17803 EOF
17804
17805 USES_CONTROLS=1
17806 fi
17807
17808 if test "$wxUSE_SASH" = "yes"; then
17809 cat >> confdefs.h <<\EOF
17810 #define wxUSE_SASH 1
17811 EOF
17812
17813 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17814 fi
17815
17816 if test "$wxUSE_SCROLLBAR" = "yes"; then
17817 cat >> confdefs.h <<\EOF
17818 #define wxUSE_SCROLLBAR 1
17819 EOF
17820
17821 USES_CONTROLS=1
17822 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
17823 fi
17824
17825 if test "$wxUSE_SLIDER" = "yes"; then
17826 cat >> confdefs.h <<\EOF
17827 #define wxUSE_SLIDER 1
17828 EOF
17829
17830 USES_CONTROLS=1
17831 fi
17832
17833 if test "$wxUSE_SPINBTN" = "yes"; then
17834 cat >> confdefs.h <<\EOF
17835 #define wxUSE_SPINBTN 1
17836 EOF
17837
17838 USES_CONTROLS=1
17839 fi
17840
17841 if test "$wxUSE_SPINCTRL" = "yes"; then
17842 cat >> confdefs.h <<\EOF
17843 #define wxUSE_SPINCTRL 1
17844 EOF
17845
17846 USES_CONTROLS=1
17847 fi
17848
17849 if test "$wxUSE_SPLITTER" = "yes"; then
17850 cat >> confdefs.h <<\EOF
17851 #define wxUSE_SPLITTER 1
17852 EOF
17853
17854 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17855 fi
17856
17857 if test "$wxUSE_STATBMP" = "yes"; then
17858 cat >> confdefs.h <<\EOF
17859 #define wxUSE_STATBMP 1
17860 EOF
17861
17862 USES_CONTROLS=1
17863 fi
17864
17865 if test "$wxUSE_STATBOX" = "yes"; then
17866 cat >> confdefs.h <<\EOF
17867 #define wxUSE_STATBOX 1
17868 EOF
17869
17870 USES_CONTROLS=1
17871 fi
17872
17873 if test "$wxUSE_STATTEXT" = "yes"; then
17874 cat >> confdefs.h <<\EOF
17875 #define wxUSE_STATTEXT 1
17876 EOF
17877
17878 USES_CONTROLS=1
17879 fi
17880
17881 if test "$wxUSE_STATLINE" = "yes"; then
17882 if test "$wxUSE_WINE" = 1 ; then
17883 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
17884 else
17885 cat >> confdefs.h <<\EOF
17886 #define wxUSE_STATLINE 1
17887 EOF
17888
17889 USES_CONTROLS=1
17890 fi
17891 fi
17892
17893 if test "$wxUSE_STATUSBAR" = "yes"; then
17894 cat >> confdefs.h <<\EOF
17895 #define wxUSE_STATUSBAR 1
17896 EOF
17897
17898 USES_CONTROLS=1
17899
17900 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
17901 fi
17902
17903 if test "$wxUSE_TABDIALOG" = "yes"; then
17904 cat >> confdefs.h <<\EOF
17905 #define wxUSE_TAB_DIALOG 1
17906 EOF
17907
17908 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17909 fi
17910
17911 if test "$wxUSE_TEXTCTRL" = "yes"; then
17912 cat >> confdefs.h <<\EOF
17913 #define wxUSE_TEXTCTRL 1
17914 EOF
17915
17916 USES_CONTROLS=1
17917 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17918 fi
17919
17920 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17921 if test "$wxUSE_MAC" = 1 -o "$wxUSE_UNIVERSAL" = "yes"; then
17922 echo "configure: warning: Toggle button not yet supported under Mac OS X or wxUNIVERSAL... disabled" 1>&2
17923 wxUSE_TOGGLEBTN=no
17924 fi
17925
17926 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17927 cat >> confdefs.h <<\EOF
17928 #define wxUSE_TOGGLEBTN 1
17929 EOF
17930
17931 USES_CONTROLS=1
17932 fi
17933 fi
17934
17935 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
17936 cat >> confdefs.h <<\EOF
17937 #define wxUSE_TOOLBAR_SIMPLE 1
17938 EOF
17939
17940 wxUSE_TOOLBAR="yes"
17941 USES_CONTROLS=1
17942 fi
17943
17944 if test "$wxUSE_TOOLBAR" = "yes"; then
17945 cat >> confdefs.h <<\EOF
17946 #define wxUSE_TOOLBAR 1
17947 EOF
17948
17949 USES_CONTROLS=1
17950
17951 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17952 wxUSE_TOOLBAR_NATIVE="yes"
17953 fi
17954
17955 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17956 cat >> confdefs.h <<\EOF
17957 #define wxUSE_TOOLBAR_NATIVE 1
17958 EOF
17959
17960 USES_CONTROLS=1
17961 fi
17962
17963 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
17964 fi
17965
17966 if test "$wxUSE_TOOLTIPS" = "yes"; then
17967 if test "$wxUSE_MOTIF" = 1; then
17968 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
17969 else
17970 if test "$wxUSE_WINE" = 1; then
17971 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
17972 else
17973 cat >> confdefs.h <<\EOF
17974 #define wxUSE_TOOLTIPS 1
17975 EOF
17976
17977 fi
17978 fi
17979 fi
17980
17981 if test "$wxUSE_TREECTRL" = "yes"; then
17982 if test "$wxUSE_IMAGLIST" = "yes"; then
17983 cat >> confdefs.h <<\EOF
17984 #define wxUSE_TREECTRL 1
17985 EOF
17986
17987 USES_CONTROLS=1
17988 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17989 else
17990 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
17991 fi
17992 fi
17993
17994 if test "$wxUSE_POPUPWIN" = "yes"; then
17995 if test "$wxUSE_MAC" = 1; then
17996 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17997 else
17998 cat >> confdefs.h <<\EOF
17999 #define wxUSE_POPUPWIN 1
18000 EOF
18001
18002 USES_CONTROLS=1
18003 fi
18004 fi
18005
18006 if test "$USES_CONTROLS" = 1; then
18007 cat >> confdefs.h <<\EOF
18008 #define wxUSE_CONTROLS 1
18009 EOF
18010
18011 fi
18012
18013
18014 if test "$wxUSE_TREELAYOUT" = "yes"; then
18015 cat >> confdefs.h <<\EOF
18016 #define wxUSE_TREELAYOUT 1
18017 EOF
18018
18019 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
18020 fi
18021
18022 if test "$wxUSE_DRAGIMAGE" = "yes"; then
18023 cat >> confdefs.h <<\EOF
18024 #define wxUSE_DRAGIMAGE 1
18025 EOF
18026
18027 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
18028 fi
18029
18030 if test "$wxUSE_MENUS" = "yes"; then
18031 cat >> confdefs.h <<\EOF
18032 #define wxUSE_MENUS 1
18033 EOF
18034
18035 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
18036 fi
18037
18038 if test "$wxUSE_METAFILE" = "yes"; then
18039 cat >> confdefs.h <<\EOF
18040 #define wxUSE_METAFILE 1
18041 EOF
18042
18043 fi
18044
18045 if test "$wxUSE_MIMETYPE" = "yes"; then
18046 cat >> confdefs.h <<\EOF
18047 #define wxUSE_MIMETYPE 1
18048 EOF
18049
18050 fi
18051
18052 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
18053 cat >> confdefs.h <<\EOF
18054 #define wxUSE_SYSTEM_OPTIONS 1
18055 EOF
18056
18057 fi
18058
18059 if test "$wxUSE_MINIFRAME" = "yes"; then
18060 cat >> confdefs.h <<\EOF
18061 #define wxUSE_MINIFRAME 1
18062 EOF
18063
18064 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
18065 fi
18066
18067 if test "$wxUSE_HTML" = "yes"; then
18068 cat >> confdefs.h <<\EOF
18069 #define wxUSE_HTML 1
18070 EOF
18071
18072 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
18073 fi
18074
18075 if test "$wxUSE_VALIDATORS" = "yes"; then
18076 cat >> confdefs.h <<\EOF
18077 #define wxUSE_VALIDATORS 1
18078 EOF
18079
18080 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
18081 fi
18082
18083 if test "$wxUSE_PALETTE" = "yes" ; then
18084 cat >> confdefs.h <<\EOF
18085 #define wxUSE_PALETTE 1
18086 EOF
18087
18088 fi
18089
18090 if test "$wxUSE_IMAGE" = "yes" ; then
18091 cat >> confdefs.h <<\EOF
18092 #define wxUSE_IMAGE 1
18093 EOF
18094
18095 fi
18096
18097 if test "$wxUSE_GIF" = "yes" ; then
18098 cat >> confdefs.h <<\EOF
18099 #define wxUSE_GIF 1
18100 EOF
18101
18102 fi
18103
18104 if test "$wxUSE_PCX" = "yes" ; then
18105 cat >> confdefs.h <<\EOF
18106 #define wxUSE_PCX 1
18107 EOF
18108
18109 fi
18110
18111 if test "$wxUSE_PNM" = "yes" ; then
18112 cat >> confdefs.h <<\EOF
18113 #define wxUSE_PNM 1
18114 EOF
18115
18116 fi
18117
18118 if test "$wxUSE_XPM" = "yes" ; then
18119 cat >> confdefs.h <<\EOF
18120 #define wxUSE_XPM 1
18121 EOF
18122
18123 fi
18124
18125
18126 if test "$wxUSE_CHOICEDLG" = "yes"; then
18127 cat >> confdefs.h <<\EOF
18128 #define wxUSE_CHOICEDLG 1
18129 EOF
18130
18131 fi
18132
18133 if test "$wxUSE_COLOURDLG" = "yes"; then
18134 cat >> confdefs.h <<\EOF
18135 #define wxUSE_COLOURDLG 1
18136 EOF
18137
18138 fi
18139
18140 if test "$wxUSE_FILEDLG" = "yes"; then
18141 cat >> confdefs.h <<\EOF
18142 #define wxUSE_FILEDLG 1
18143 EOF
18144
18145 fi
18146
18147 if test "$wxUSE_FINDREPLDLG" = "yes"; then
18148 cat >> confdefs.h <<\EOF
18149 #define wxUSE_FINDREPLDLG 1
18150 EOF
18151
18152 fi
18153
18154 if test "$wxUSE_FONTDLG" = "yes"; then
18155 cat >> confdefs.h <<\EOF
18156 #define wxUSE_FONTDLG 1
18157 EOF
18158
18159 fi
18160
18161 if test "$wxUSE_DIRDLG" = "yes"; then
18162 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18163 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
18164 else
18165 if test "$wxUSE_TREECTRL" != "yes"; then
18166 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
18167 else
18168 cat >> confdefs.h <<\EOF
18169 #define wxUSE_DIRDLG 1
18170 EOF
18171
18172 fi
18173 fi
18174 fi
18175
18176 if test "$wxUSE_MSGDLG" = "yes"; then
18177 cat >> confdefs.h <<\EOF
18178 #define wxUSE_MSGDLG 1
18179 EOF
18180
18181 fi
18182
18183 if test "$wxUSE_NUMBERDLG" = "yes"; then
18184 cat >> confdefs.h <<\EOF
18185 #define wxUSE_NUMBERDLG 1
18186 EOF
18187
18188 fi
18189
18190 if test "$wxUSE_PROGRESSDLG" = "yes"; then
18191 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18192 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
18193 else
18194 cat >> confdefs.h <<\EOF
18195 #define wxUSE_PROGRESSDLG 1
18196 EOF
18197
18198 fi
18199 fi
18200
18201 if test "$wxUSE_SPLASH" = "yes"; then
18202 cat >> confdefs.h <<\EOF
18203 #define wxUSE_SPLASH 1
18204 EOF
18205
18206 fi
18207
18208 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18209 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18210 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18211 else
18212 cat >> confdefs.h <<\EOF
18213 #define wxUSE_STARTUP_TIPS 1
18214 EOF
18215
18216 fi
18217 fi
18218
18219 if test "$wxUSE_TEXTDLG" = "yes"; then
18220 cat >> confdefs.h <<\EOF
18221 #define wxUSE_TEXTDLG 1
18222 EOF
18223
18224 fi
18225
18226 if test "$wxUSE_WIZARDDLG" = "yes"; then
18227 cat >> confdefs.h <<\EOF
18228 #define wxUSE_WIZARDDLG 1
18229 EOF
18230
18231 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18232 fi
18233
18234
18235 if test "$cross_compiling" = "yes"; then
18236 OSINFO="\"$host\""
18237 else
18238 OSINFO=`uname -s -r -m`
18239 OSINFO="\"$OSINFO\""
18240 fi
18241
18242 cat >> confdefs.h <<EOF
18243 #define WXWIN_OS_DESCRIPTION $OSINFO
18244 EOF
18245
18246
18247
18248 if test "x$prefix" != "xNONE"; then
18249 wxPREFIX=$prefix
18250 else
18251 wxPREFIX=$ac_default_prefix
18252 fi
18253
18254 cat >> confdefs.h <<EOF
18255 #define wxINSTALL_PREFIX "$wxPREFIX"
18256 EOF
18257
18258
18259
18260 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
18261
18262 EXTRA_LIBS="$EXTRA_LIBS $LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
18263
18264 if test "$wxUSE_MAC" = 1 ; then
18265 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
18266 fi
18267
18268 if test "$wxUSE_GUI" = "yes"; then
18269 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
18270
18271
18272 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
18273 drawing dynamic erase event exec font image \
18274 minimal richedit rotate widgets"
18275
18276 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
18277 else
18278 SAMPLES_SUBDIRS="console"
18279 fi
18280
18281 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
18282
18283 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
18284 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
18285 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
18286
18287 if test "$wxUSE_GTK" = 1; then
18288 WXCONFIG_INCLUDE=""
18289 else
18290 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
18291 fi
18292
18293 if test "$GXX" = yes ; then
18294 CXXWARNINGS="-Wall"
18295 fi
18296 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
18297
18298 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
18299 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
18300
18301 LDFLAGS="$LDFLAGS $PROFILE"
18302
18303 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
18391 echo "configure:18392: checking whether ${MAKE-make} sets \${MAKE}" >&5
18392 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18393 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18394 echo $ac_n "(cached) $ac_c" 1>&6
18395 else
18396 cat > conftestmake <<\EOF
18397 all:
18398 @echo 'ac_maketemp="${MAKE}"'
18399 EOF
18400 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18401 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
18402 if test -n "$ac_maketemp"; then
18403 eval ac_cv_prog_make_${ac_make}_set=yes
18404 else
18405 eval ac_cv_prog_make_${ac_make}_set=no
18406 fi
18407 rm -f conftestmake
18408 fi
18409 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18410 echo "$ac_t""yes" 1>&6
18411 SET_MAKE=
18412 else
18413 echo "$ac_t""no" 1>&6
18414 SET_MAKE="MAKE=${MAKE-make}"
18415 fi
18416
18417
18418 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
18419 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
18420 fi
18421
18422
18423
18424 if test "$wxUSE_GUI" = "yes"; then
18425 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
18426 wx_cv_path_ifs=$PATH_IFS
18427 wx_cv_program_ext=$PROGRAM_EXT
18428 wx_cv_target_library=$WX_TARGET_LIBRARY
18429 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
18430 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
18431 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
18432 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
18433 subdirs="demos samples utils contrib"
18434
18435 fi
18436
18437 trap '' 1 2 15
18438 cat > confcache <<\EOF
18439 # This file is a shell script that caches the results of configure
18440 # tests run on this system so they can be shared between configure
18441 # scripts and configure runs. It is not useful on other systems.
18442 # If it contains results you don't want to keep, you may remove or edit it.
18443 #
18444 # By default, configure uses ./config.cache as the cache file,
18445 # creating it if it does not exist already. You can give configure
18446 # the --cache-file=FILE option to use a different cache file; that is
18447 # what configure does when it calls configure scripts in
18448 # subdirectories, so they share the cache.
18449 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18450 # config.status only pays attention to the cache file if you give it the
18451 # --recheck option to rerun configure.
18452 #
18453 EOF
18454 # The following way of writing the cache mishandles newlines in values,
18455 # but we know of no workaround that is simple, portable, and efficient.
18456 # So, don't put newlines in cache variables' values.
18457 # Ultrix sh set writes to stderr and can't be redirected directly,
18458 # and sets the high bit in the cache file unless we assign to the vars.
18459 (set) 2>&1 |
18460 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18461 *ac_space=\ *)
18462 # `set' does not quote correctly, so add quotes (double-quote substitution
18463 # turns \\\\ into \\, and sed turns \\ into \).
18464 sed -n \
18465 -e "s/'/'\\\\''/g" \
18466 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18467 ;;
18468 *)
18469 # `set' quotes correctly as required by POSIX, so do not add quotes.
18470 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18471 ;;
18472 esac >> confcache
18473 if cmp -s $cache_file confcache; then
18474 :
18475 else
18476 if test -w $cache_file; then
18477 echo "updating cache $cache_file"
18478 cat confcache > $cache_file
18479 else
18480 echo "not updating unwritable cache $cache_file"
18481 fi
18482 fi
18483 rm -f confcache
18484
18485 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18486
18487 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18488 # Let make expand exec_prefix.
18489 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18490
18491 # Any assignment to VPATH causes Sun make to only execute
18492 # the first set of double-colon rules, so remove it if not needed.
18493 # If there is a colon in the path, we need to keep it.
18494 if test "x$srcdir" = x.; then
18495 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18496 fi
18497
18498 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18499
18500 DEFS=-DHAVE_CONFIG_H
18501
18502 # Without the "./", some shells look in PATH for config.status.
18503 : ${CONFIG_STATUS=./config.status}
18504
18505 echo creating $CONFIG_STATUS
18506 rm -f $CONFIG_STATUS
18507 cat > $CONFIG_STATUS <<EOF
18508 #! /bin/sh
18509 # Generated automatically by configure.
18510 # Run this file to recreate the current configuration.
18511 # This directory was configured as follows,
18512 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18513 #
18514 # $0 $ac_configure_args
18515 #
18516 # Compiler output produced by configure, useful for debugging
18517 # configure, is in ./config.log if it exists.
18518
18519 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18520 for ac_option
18521 do
18522 case "\$ac_option" in
18523 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18524 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18525 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18526 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18527 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18528 exit 0 ;;
18529 -help | --help | --hel | --he | --h)
18530 echo "\$ac_cs_usage"; exit 0 ;;
18531 *) echo "\$ac_cs_usage"; exit 1 ;;
18532 esac
18533 done
18534
18535 ac_given_srcdir=$srcdir
18536 ac_given_INSTALL="$INSTALL"
18537
18538 trap 'rm -fr `echo "
18539 wx-config
18540 src/make.env
18541 src/makeprog.env
18542 src/makelib.env
18543 Makefile
18544 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18545 EOF
18546 cat >> $CONFIG_STATUS <<EOF
18547
18548 # Protect against being on the right side of a sed subst in config.status.
18549 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18550 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18551 $ac_vpsub
18552 $extrasub
18553 s%@SHELL@%$SHELL%g
18554 s%@CFLAGS@%$CFLAGS%g
18555 s%@CPPFLAGS@%$CPPFLAGS%g
18556 s%@CXXFLAGS@%$CXXFLAGS%g
18557 s%@FFLAGS@%$FFLAGS%g
18558 s%@DEFS@%$DEFS%g
18559 s%@LDFLAGS@%$LDFLAGS%g
18560 s%@LIBS@%$LIBS%g
18561 s%@exec_prefix@%$exec_prefix%g
18562 s%@prefix@%$prefix%g
18563 s%@program_transform_name@%$program_transform_name%g
18564 s%@bindir@%$bindir%g
18565 s%@sbindir@%$sbindir%g
18566 s%@libexecdir@%$libexecdir%g
18567 s%@datadir@%$datadir%g
18568 s%@sysconfdir@%$sysconfdir%g
18569 s%@sharedstatedir@%$sharedstatedir%g
18570 s%@localstatedir@%$localstatedir%g
18571 s%@libdir@%$libdir%g
18572 s%@includedir@%$includedir%g
18573 s%@oldincludedir@%$oldincludedir%g
18574 s%@infodir@%$infodir%g
18575 s%@mandir@%$mandir%g
18576 s%@host@%$host%g
18577 s%@host_alias@%$host_alias%g
18578 s%@host_cpu@%$host_cpu%g
18579 s%@host_vendor@%$host_vendor%g
18580 s%@host_os@%$host_os%g
18581 s%@target@%$target%g
18582 s%@target_alias@%$target_alias%g
18583 s%@target_cpu@%$target_cpu%g
18584 s%@target_vendor@%$target_vendor%g
18585 s%@target_os@%$target_os%g
18586 s%@build@%$build%g
18587 s%@build_alias@%$build_alias%g
18588 s%@build_cpu@%$build_cpu%g
18589 s%@build_vendor@%$build_vendor%g
18590 s%@build_os@%$build_os%g
18591 s%@CC@%$CC%g
18592 s%@CPP@%$CPP%g
18593 s%@CXX@%$CXX%g
18594 s%@RANLIB@%$RANLIB%g
18595 s%@AR@%$AR%g
18596 s%@INSTALL@%$INSTALL%g
18597 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18598 s%@INSTALL_DATA@%$INSTALL_DATA%g
18599 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18600 s%@STRIP@%$STRIP%g
18601 s%@YACC@%$YACC%g
18602 s%@LEX@%$LEX%g
18603 s%@LEXLIB@%$LEXLIB%g
18604 s%@LN_S@%$LN_S%g
18605 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18606 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18607 s%@GTK_LIBS@%$GTK_LIBS%g
18608 s%@GTK_CONFIG@%$GTK_CONFIG%g
18609 s%@X_CFLAGS@%$X_CFLAGS%g
18610 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18611 s%@X_LIBS@%$X_LIBS%g
18612 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18613 s%@RESCOMP@%$RESCOMP%g
18614 s%@DEREZ@%$DEREZ%g
18615 s%@CXXCPP@%$CXXCPP%g
18616 s%@LEX_STEM@%$LEX_STEM%g
18617 s%@PATH_IFS@%$PATH_IFS%g
18618 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18619 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18620 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18621 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18622 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18623 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
18624 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18625 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18626 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18627 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18628 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18629 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18630 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18631 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18632 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18633 s%@WX_ALL@%$WX_ALL%g
18634 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18635 s%@SHARED_LD@%$SHARED_LD%g
18636 s%@PIC_FLAG@%$PIC_FLAG%g
18637 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18638 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18639 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
18640 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
18641 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18642 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18643 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18644 s%@USE_GUI@%$USE_GUI%g
18645 s%@AFMINSTALL@%$AFMINSTALL%g
18646 s%@TOOLKIT@%$TOOLKIT%g
18647 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18648 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18649 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
18650 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
18651 s%@cross_compiling@%$cross_compiling%g
18652 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
18653 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
18654 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18655 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18656 s%@GUIDIST@%$GUIDIST%g
18657 s%@PORT_FILES@%$PORT_FILES%g
18658 s%@DISTDIR@%$DISTDIR%g
18659 s%@RPM_SPEC@%$RPM_SPEC%g
18660 s%@RPM_FILES@%$RPM_FILES%g
18661 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18662 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18663 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18664 s%@EXTRADEFS@%$EXTRADEFS%g
18665 s%@LD_LIBS@%$LD_LIBS%g
18666 s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
18667 s%@RESFLAGS@%$RESFLAGS%g
18668 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
18669 s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
18670 s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
18671 s%@LIBWXMACRES@%$LIBWXMACRES%g
18672 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18673 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
18674 s%@DLLTOOL@%$DLLTOOL%g
18675 s%@AS@%$AS%g
18676 s%@NM@%$NM%g
18677 s%@LD@%$LD%g
18678 s%@MAKEINFO@%$MAKEINFO%g
18679 s%@SET_MAKE@%$SET_MAKE%g
18680 s%@subdirs@%$subdirs%g
18681
18682 CEOF
18683 EOF
18684
18685 cat >> $CONFIG_STATUS <<\EOF
18686
18687 # Split the substitutions into bite-sized pieces for seds with
18688 # small command number limits, like on Digital OSF/1 and HP-UX.
18689 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18690 ac_file=1 # Number of current file.
18691 ac_beg=1 # First line for current file.
18692 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18693 ac_more_lines=:
18694 ac_sed_cmds=""
18695 while $ac_more_lines; do
18696 if test $ac_beg -gt 1; then
18697 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18698 else
18699 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18700 fi
18701 if test ! -s conftest.s$ac_file; then
18702 ac_more_lines=false
18703 rm -f conftest.s$ac_file
18704 else
18705 if test -z "$ac_sed_cmds"; then
18706 ac_sed_cmds="sed -f conftest.s$ac_file"
18707 else
18708 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18709 fi
18710 ac_file=`expr $ac_file + 1`
18711 ac_beg=$ac_end
18712 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18713 fi
18714 done
18715 if test -z "$ac_sed_cmds"; then
18716 ac_sed_cmds=cat
18717 fi
18718 EOF
18719
18720 cat >> $CONFIG_STATUS <<EOF
18721
18722 CONFIG_FILES=\${CONFIG_FILES-"wx-config
18723 src/make.env
18724 src/makeprog.env
18725 src/makelib.env
18726 Makefile
18727 "}
18728 EOF
18729 cat >> $CONFIG_STATUS <<\EOF
18730 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18731 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18732 case "$ac_file" in
18733 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18734 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18735 *) ac_file_in="${ac_file}.in" ;;
18736 esac
18737
18738 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18739
18740 # Remove last slash and all that follows it. Not all systems have dirname.
18741 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18742 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18743 # The file is in a subdirectory.
18744 test ! -d "$ac_dir" && mkdir "$ac_dir"
18745 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18746 # A "../" for each directory in $ac_dir_suffix.
18747 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18748 else
18749 ac_dir_suffix= ac_dots=
18750 fi
18751
18752 case "$ac_given_srcdir" in
18753 .) srcdir=.
18754 if test -z "$ac_dots"; then top_srcdir=.
18755 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18756 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18757 *) # Relative path.
18758 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18759 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18760 esac
18761
18762 case "$ac_given_INSTALL" in
18763 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18764 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18765 esac
18766
18767 echo creating "$ac_file"
18768 rm -f "$ac_file"
18769 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18770 case "$ac_file" in
18771 *Makefile*) ac_comsub="1i\\
18772 # $configure_input" ;;
18773 *) ac_comsub= ;;
18774 esac
18775
18776 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18777 sed -e "$ac_comsub
18778 s%@configure_input@%$configure_input%g
18779 s%@srcdir@%$srcdir%g
18780 s%@top_srcdir@%$top_srcdir%g
18781 s%@INSTALL@%$INSTALL%g
18782 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18783 fi; done
18784 rm -f conftest.s*
18785
18786 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18787 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18788 #
18789 # ac_d sets the value in "#define NAME VALUE" lines.
18790 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18791 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18792 ac_dC='\3'
18793 ac_dD='%g'
18794 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18795 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18796 ac_uB='\([ ]\)%\1#\2define\3'
18797 ac_uC=' '
18798 ac_uD='\4%g'
18799 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18800 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18801 ac_eB='$%\1#\2define\3'
18802 ac_eC=' '
18803 ac_eD='%g'
18804
18805 if test "${CONFIG_HEADERS+set}" != set; then
18806 EOF
18807 cat >> $CONFIG_STATUS <<EOF
18808 CONFIG_HEADERS="setup.h:setup.h.in"
18809 EOF
18810 cat >> $CONFIG_STATUS <<\EOF
18811 fi
18812 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18813 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18814 case "$ac_file" in
18815 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18816 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18817 *) ac_file_in="${ac_file}.in" ;;
18818 esac
18819
18820 echo creating $ac_file
18821
18822 rm -f conftest.frag conftest.in conftest.out
18823 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18824 cat $ac_file_inputs > conftest.in
18825
18826 EOF
18827
18828 # Transform confdefs.h into a sed script conftest.vals that substitutes
18829 # the proper values into config.h.in to produce config.h. And first:
18830 # Protect against being on the right side of a sed subst in config.status.
18831 # Protect against being in an unquoted here document in config.status.
18832 rm -f conftest.vals
18833 cat > conftest.hdr <<\EOF
18834 s/[\\&%]/\\&/g
18835 s%[\\$`]%\\&%g
18836 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18837 s%ac_d%ac_u%gp
18838 s%ac_u%ac_e%gp
18839 EOF
18840 sed -n -f conftest.hdr confdefs.h > conftest.vals
18841 rm -f conftest.hdr
18842
18843 # This sed command replaces #undef with comments. This is necessary, for
18844 # example, in the case of _POSIX_SOURCE, which is predefined and required
18845 # on some systems where configure will not decide to define it.
18846 cat >> conftest.vals <<\EOF
18847 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18848 EOF
18849
18850 # Break up conftest.vals because some shells have a limit on
18851 # the size of here documents, and old seds have small limits too.
18852
18853 rm -f conftest.tail
18854 while :
18855 do
18856 ac_lines=`grep -c . conftest.vals`
18857 # grep -c gives empty output for an empty file on some AIX systems.
18858 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18859 # Write a limited-size here document to conftest.frag.
18860 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18861 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18862 echo 'CEOF
18863 sed -f conftest.frag conftest.in > conftest.out
18864 rm -f conftest.in
18865 mv conftest.out conftest.in
18866 ' >> $CONFIG_STATUS
18867 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18868 rm -f conftest.vals
18869 mv conftest.tail conftest.vals
18870 done
18871 rm -f conftest.vals
18872
18873 cat >> $CONFIG_STATUS <<\EOF
18874 rm -f conftest.frag conftest.h
18875 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18876 cat conftest.in >> conftest.h
18877 rm -f conftest.in
18878 if cmp -s $ac_file conftest.h 2>/dev/null; then
18879 echo "$ac_file is unchanged"
18880 rm -f conftest.h
18881 else
18882 # Remove last slash and all that follows it. Not all systems have dirname.
18883 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18884 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18885 # The file is in a subdirectory.
18886 test ! -d "$ac_dir" && mkdir "$ac_dir"
18887 fi
18888 rm -f $ac_file
18889 mv conftest.h $ac_file
18890 fi
18891 fi; done
18892
18893 EOF
18894 cat >> $CONFIG_STATUS <<EOF
18895
18896 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
18897 LN_S="${LN_S}"
18898
18899
18900 EOF
18901 cat >> $CONFIG_STATUS <<\EOF
18902
18903 if test ! -h wx-config; then
18904 chmod +x wx-config
18905 mv wx-config wx${TOOLCHAIN_NAME}-config
18906 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
18907 fi
18908
18909 if test ! -d lib; then
18910 mkdir lib
18911 fi
18912 if test ! -d lib/wx; then
18913 mkdir lib/wx
18914 fi
18915 if test ! -d lib/wx/include; then
18916 mkdir lib/wx/include
18917 fi
18918 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
18919 mkdir lib/wx/include/${TOOLCHAIN_NAME}
18920 fi
18921 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
18922 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
18923 fi
18924 if test -f setup.h; then
18925 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
18926 fi
18927
18928 exit 0
18929 EOF
18930 chmod +x $CONFIG_STATUS
18931 rm -fr confdefs* $ac_clean_files
18932 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18933
18934 if test "$no_recursion" != yes; then
18935
18936 # Remove --cache-file and --srcdir arguments so they do not pile up.
18937 ac_sub_configure_args=
18938 ac_prev=
18939 for ac_arg in $ac_configure_args; do
18940 if test -n "$ac_prev"; then
18941 ac_prev=
18942 continue
18943 fi
18944 case "$ac_arg" in
18945 -cache-file | --cache-file | --cache-fil | --cache-fi \
18946 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18947 ac_prev=cache_file ;;
18948 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18949 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
18950 ;;
18951 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18952 ac_prev=srcdir ;;
18953 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18954 ;;
18955 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18956 esac
18957 done
18958
18959 for ac_config_dir in demos samples utils contrib; do
18960
18961 # Do not complain, so a configure script can configure whichever
18962 # parts of a large source tree are present.
18963 if test ! -d $srcdir/$ac_config_dir; then
18964 continue
18965 fi
18966
18967 echo configuring in $ac_config_dir
18968
18969 case "$srcdir" in
18970 .) ;;
18971 *)
18972 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18973 else
18974 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18975 fi
18976 ;;
18977 esac
18978
18979 ac_popdir=`pwd`
18980 cd $ac_config_dir
18981
18982 # A "../" for each directory in /$ac_config_dir.
18983 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
18984
18985 case "$srcdir" in
18986 .) # No --srcdir option. We are building in place.
18987 ac_sub_srcdir=$srcdir ;;
18988 /*) # Absolute path.
18989 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
18990 *) # Relative path.
18991 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
18992 esac
18993
18994 # Check for guested configure; otherwise get Cygnus style configure.
18995 if test -f $ac_sub_srcdir/configure; then
18996 ac_sub_configure=$ac_sub_srcdir/configure
18997 elif test -f $ac_sub_srcdir/configure.in; then
18998 ac_sub_configure=$ac_configure
18999 else
19000 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
19001 ac_sub_configure=
19002 fi
19003
19004 # The recursion is here.
19005 if test -n "$ac_sub_configure"; then
19006
19007 # Make the cache file name correct relative to the subdirectory.
19008 case "$cache_file" in
19009 /*) ac_sub_cache_file=$cache_file ;;
19010 *) # Relative path.
19011 ac_sub_cache_file="$ac_dots$cache_file" ;;
19012 esac
19013 case "$ac_given_INSTALL" in
19014 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19015 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19016 esac
19017
19018 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
19019 # The eval makes quoting arguments work.
19020 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
19021 then :
19022 else
19023 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
19024 fi
19025 fi
19026
19027 cd $ac_popdir
19028 done
19029 fi
19030
19031