]> git.saurik.com Git - wxWidgets.git/blob - configure
wxDocument::SaveAs sets m_savedYet flag correctly (patch 494838)
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44 # Guess values for system-dependent variables and create Makefiles.
45 # Generated automatically using autoconf version 2.13
46 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
47 #
48 # This configure script is free software; the Free Software Foundation
49 # gives unlimited permission to copy, distribute and modify it.
50
51 # Defaults:
52 ac_help=
53 ac_default_prefix=/usr/local
54 # Any additions from configure.in:
55 ac_help="$ac_help
56 --enable-gui use GUI classes"
57 ac_help="$ac_help
58 --enable-universal use wxWindows GUI controls instead of native ones"
59 ac_help="$ac_help
60 --with-gtk use GTK+"
61 ac_help="$ac_help
62 --with-motif use Motif/Lesstif"
63 ac_help="$ac_help
64 --with-mac use Mac OS X"
65 ac_help="$ac_help
66 --with-wine use WINE"
67 ac_help="$ac_help
68 --with-msw use MS-Windows"
69 ac_help="$ac_help
70 --with-pm use OS/2 Presentation Manager"
71 ac_help="$ac_help
72 --with-mgl use SciTech MGL"
73 ac_help="$ac_help
74 --with-microwin use MicroWindows"
75 ac_help="$ac_help
76 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
77 ac_help="$ac_help
78 --with-libpng use libpng (PNG image format)"
79 ac_help="$ac_help
80 --with-libjpeg use libjpeg (JPEG file format)"
81 ac_help="$ac_help
82 --with-libtiff use libtiff (TIFF file format)"
83 ac_help="$ac_help
84 --with-freetype use freetype (font rasterizer)"
85 ac_help="$ac_help
86 --with-opengl use OpenGL (or Mesa)"
87 ac_help="$ac_help
88 --with-dmalloc use dmalloc library (http://dmalloc.com/)"
89 ac_help="$ac_help
90 --with-regex enable support for wxRegEx class"
91 ac_help="$ac_help
92 --with-zlib use zlib for LZW compression"
93 ac_help="$ac_help
94 --with-odbc use the IODBC and wxODBC classes"
95 ac_help="$ac_help
96 --enable-shared create shared library code"
97 ac_help="$ac_help
98 --enable-soname set the DT_SONAME field in ELF shared libraries"
99 ac_help="$ac_help
100 --enable-optimise create optimised code"
101 ac_help="$ac_help
102 --enable-debug same as debug_flag and debug_info"
103 ac_help="$ac_help
104 --enable-precomp enable use of precompiled headers (Mac OS X)"
105 ac_help="$ac_help
106 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
107 ac_help="$ac_help
108 --enable-debug_info create code with debugging information"
109 ac_help="$ac_help
110 --enable-debug_gdb create code with extra GDB debugging information"
111 ac_help="$ac_help
112 --enable-debug_cntxt use wxDebugContext"
113 ac_help="$ac_help
114 --enable-mem_tracing create code with memory tracing"
115 ac_help="$ac_help
116 --enable-profile create code with profiling information"
117 ac_help="$ac_help
118 --enable-no_rtti create code without RTTI information"
119 ac_help="$ac_help
120 --enable-no_exceptions create code without C++ exceptions handling"
121 ac_help="$ac_help
122 --enable-permissive compile code disregarding strict ANSI"
123 ac_help="$ac_help
124 --enable-no_deps create code without dependency information"
125 ac_help="$ac_help
126 --enable-compat20 enable wxWindows 2.0 compatibility"
127 ac_help="$ac_help
128 --enable-compat22 enable wxWindows 2.2 compatibility"
129 ac_help="$ac_help
130 --enable-intl use internationalization system"
131 ac_help="$ac_help
132 --enable-config use wxConfig (and derived) classes"
133 ac_help="$ac_help
134 --enable-sockets use socket/network classes"
135 ac_help="$ac_help
136 --enable-ipc use interprocess communication (wxSocket etc.)"
137 ac_help="$ac_help
138 --enable-cmdline use wxCmdLineParser class"
139 ac_help="$ac_help
140 --enable-datetime use wxDateTime class"
141 ac_help="$ac_help
142 --enable-timedate use obsolete wxDate/wxTime classes"
143 ac_help="$ac_help
144 --enable-stopwatch use wxStopWatch class"
145 ac_help="$ac_help
146 --enable-dialupman use dialup network classes"
147 ac_help="$ac_help
148 --enable-apple_ieee use the Apple IEEE codec"
149 ac_help="$ac_help
150 --enable-timer use wxTimer class"
151 ac_help="$ac_help
152 --enable-wave use wxWave class"
153 ac_help="$ac_help
154 --enable-fraction use wxFraction class"
155 ac_help="$ac_help
156 --enable-dynlib use wxLibrary class for DLL loading"
157 ac_help="$ac_help
158 --enable-dynamicloader use (new) wxDynamicLibrary class"
159 ac_help="$ac_help
160 --enable-longlong use wxLongLong class"
161 ac_help="$ac_help
162 --enable-geometry use geometry class"
163 ac_help="$ac_help
164 --enable-log use logging system"
165 ac_help="$ac_help
166 --enable-streams use wxStream etc classes"
167 ac_help="$ac_help
168 --enable-file use wxFile classes"
169 ac_help="$ac_help
170 --enable-ffile use wxFFile classes"
171 ac_help="$ac_help
172 --enable-textbuf use wxTextBuffer class"
173 ac_help="$ac_help
174 --enable-textfile use wxTextFile class"
175 ac_help="$ac_help
176 --enable-fontmap use font encodings conversion classes"
177 ac_help="$ac_help
178 --enable-unicode compile wxString with Unicode support"
179 ac_help="$ac_help
180 --enable-mslu use MS Layer for Unicode on Windows 9x (win32 only)"
181 ac_help="$ac_help
182 --enable-wxprintfv use wxWindows implementation of vprintf()"
183 ac_help="$ac_help
184 --enable-std_iostreams use standard C++ stream classes"
185 ac_help="$ac_help
186 --enable-filesystem use virtual file systems classes"
187 ac_help="$ac_help
188 --enable-fs_inet use virtual HTTP/FTP filesystems"
189 ac_help="$ac_help
190 --enable-fs_zip use virtual ZIP filesystems"
191 ac_help="$ac_help
192 --enable-zipstream use wxZipInputStream"
193 ac_help="$ac_help
194 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
195 ac_help="$ac_help
196 --enable-snglinst use wxSingleInstanceChecker class"
197 ac_help="$ac_help
198 --enable-mimetype use wxMimeTypesManager"
199 ac_help="$ac_help
200 --enable-sysoptions use wxSystemOptions"
201 ac_help="$ac_help
202 --enable-threads use threads"
203 ac_help="$ac_help
204 --enable-docview use document view architecture"
205 ac_help="$ac_help
206 --enable-help use help subsystem"
207 ac_help="$ac_help
208 --enable-mshtmlhelp use MS HTML Help (win32)"
209 ac_help="$ac_help
210 --enable-html use wxHTML sub-library"
211 ac_help="$ac_help
212 --enable-htmlhelp use wxHTML-based help"
213 ac_help="$ac_help
214 --enable-constraints use layout-constraints system"
215 ac_help="$ac_help
216 --enable-printarch use printing architecture"
217 ac_help="$ac_help
218 --enable-mdi use multiple document interface architecture"
219 ac_help="$ac_help
220 --enable-loggui use standard GUI logger"
221 ac_help="$ac_help
222 --enable-logwin use wxLogWindow"
223 ac_help="$ac_help
224 --enable-logdialog use wxLogDialog"
225 ac_help="$ac_help
226 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
227 ac_help="$ac_help
228 --enable-prologio use Prolog IO library"
229 ac_help="$ac_help
230 --enable-resources use wxWindows resources"
231 ac_help="$ac_help
232 --enable-xresources use X resources for save (default for gtk+)"
233 ac_help="$ac_help
234 --enable-clipboard use wxClipboard classes"
235 ac_help="$ac_help
236 --enable-dnd use Drag'n'Drop classes"
237 ac_help="$ac_help
238 --enable-metafile use win32 metafiles"
239 ac_help="$ac_help
240 --enable-treelayout use wxTreeLayout classes"
241 ac_help="$ac_help
242 --enable-controls use all usual controls"
243 ac_help="$ac_help
244 --enable-accel use accelerators"
245 ac_help="$ac_help
246 --enable-button use wxButton class"
247 ac_help="$ac_help
248 --enable-bmpbutton use wxBitmapButton class"
249 ac_help="$ac_help
250 --enable-calendar use wxCalendarCtrl class"
251 ac_help="$ac_help
252 --enable-caret use wxCaret class"
253 ac_help="$ac_help
254 --enable-checkbox use wxCheckBox class"
255 ac_help="$ac_help
256 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
257 ac_help="$ac_help
258 --enable-choice use wxChoice class"
259 ac_help="$ac_help
260 --enable-combobox use wxComboBox classes"
261 ac_help="$ac_help
262 --enable-gauge use wxGauge class"
263 ac_help="$ac_help
264 --enable-grid use wxGrid class"
265 ac_help="$ac_help
266 --enable-newgrid use new wxGrid class"
267 ac_help="$ac_help
268 --enable-imaglist use wxImageList class"
269 ac_help="$ac_help
270 --enable-listbox use wxListBox class"
271 ac_help="$ac_help
272 --enable-listctrl use wxListCtrl class"
273 ac_help="$ac_help
274 --enable-notebook use wxNotebook class"
275 ac_help="$ac_help
276 --enable-propsheet use wxPropertySheet class"
277 ac_help="$ac_help
278 --enable-radiobox use wxRadioBox class"
279 ac_help="$ac_help
280 --enable-radiobtn use wxRadioButton class"
281 ac_help="$ac_help
282 --enable-sash use wxSashWindow class"
283 ac_help="$ac_help
284 --enable-scrollbar use wxScrollBar class and scrollable windows"
285 ac_help="$ac_help
286 --enable-slider use wxSlider class"
287 ac_help="$ac_help
288 --enable-spinbtn use wxSpinButton class"
289 ac_help="$ac_help
290 --enable-spinctrl use wxSpinCtrl class"
291 ac_help="$ac_help
292 --enable-splitter use wxSplitterWindow class"
293 ac_help="$ac_help
294 --enable-statbmp use wxStaticBitmap class"
295 ac_help="$ac_help
296 --enable-statbox use wxStaticBox class"
297 ac_help="$ac_help
298 --enable-statline use wxStaticLine class"
299 ac_help="$ac_help
300 --enable-stattext use wxStaticText class"
301 ac_help="$ac_help
302 --enable-statusbar use wxStatusBar class"
303 ac_help="$ac_help
304 --enable-tabdialog use wxTabControl class"
305 ac_help="$ac_help
306 --enable-textctrl use wxTextCtrl class"
307 ac_help="$ac_help
308 --enable-togglebtn use wxToggleButton class"
309 ac_help="$ac_help
310 --enable-toolbar use wxToolBar class"
311 ac_help="$ac_help
312 --enable-tbarnative use native wxToolBar class"
313 ac_help="$ac_help
314 --enable-tbarsmpl use wxToolBarSimple class"
315 ac_help="$ac_help
316 --enable-treectrl use wxTreeCtrl class"
317 ac_help="$ac_help
318 --enable-tipwindow use wxTipWindow class"
319 ac_help="$ac_help
320 --enable-popupwin use wxPopUpWindow class"
321 ac_help="$ac_help
322 --enable-commondlg use all common dialogs"
323 ac_help="$ac_help
324 --enable-choicedlg use wxChoiceDialog"
325 ac_help="$ac_help
326 --enable-coldlg use wxColourDialog"
327 ac_help="$ac_help
328 --enable-filedlg use wxFileDialog"
329 ac_help="$ac_help
330 --enable-finddlg use wxFindReplaceDialog"
331 ac_help="$ac_help
332 --enable-fontdlg use wxFontDialog"
333 ac_help="$ac_help
334 --enable-dirdlg use wxDirDialog"
335 ac_help="$ac_help
336 --enable-msgdlg use wxMessageDialog"
337 ac_help="$ac_help
338 --enable-numberdlg use wxNumberEntryDialog"
339 ac_help="$ac_help
340 --enable-splash use wxSplashScreen"
341 ac_help="$ac_help
342 --enable-textdlg use wxTextDialog"
343 ac_help="$ac_help
344 --enable-tipdlg use startup tips"
345 ac_help="$ac_help
346 --enable-progressdlg use wxProgressDialog"
347 ac_help="$ac_help
348 --enable-wizarddlg use wxWizard"
349 ac_help="$ac_help
350 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
351 ac_help="$ac_help
352 --enable-miniframe use wxMiniFrame class"
353 ac_help="$ac_help
354 --enable-tooltips use wxToolTip class"
355 ac_help="$ac_help
356 --enable-splines use spline drawing code"
357 ac_help="$ac_help
358 --enable-validators use wxValidator and derived classes"
359 ac_help="$ac_help
360 --enable-busyinfo use wxBusyInfo"
361 ac_help="$ac_help
362 --enable-joystick use wxJoystick (Linux only)"
363 ac_help="$ac_help
364 --enable-metafiles use wxMetaFile (Windows only)"
365 ac_help="$ac_help
366 --enable-dragimage use wxDragImage"
367 ac_help="$ac_help
368 --enable-palette use wxPalette class"
369 ac_help="$ac_help
370 --enable-image use wxImage class"
371 ac_help="$ac_help
372 --enable-gif use gif images (GIF file format)"
373 ac_help="$ac_help
374 --enable-pcx use pcx images (PCX file format)"
375 ac_help="$ac_help
376 --enable-pnm use pnm images (PNM file format)"
377 ac_help="$ac_help
378 --enable-xpm use xpm images (XPM file format)"
379 ac_help="$ac_help
380 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
381 ac_help="$ac_help
382 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
383 ac_help="$ac_help
384 --disable-gtktest Do not try to compile and run a test GTK program"
385 ac_help="$ac_help
386 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
387 ac_help="$ac_help
388 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
389 ac_help="$ac_help
390 --disable-gtktest Do not try to compile and run a test GTK program"
391 ac_help="$ac_help
392 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
393 ac_help="$ac_help
394 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
395 ac_help="$ac_help
396 --disable-gtktest Do not try to compile and run a test GTK program"
397 ac_help="$ac_help
398 --with-x use the X Window System"
399
400 # Initialize some variables set by options.
401 # The variables have the same names as the options, with
402 # dashes changed to underlines.
403 build=NONE
404 cache_file=./config.cache
405 exec_prefix=NONE
406 host=NONE
407 no_create=
408 nonopt=NONE
409 no_recursion=
410 prefix=NONE
411 program_prefix=NONE
412 program_suffix=NONE
413 program_transform_name=s,x,x,
414 silent=
415 site=
416 srcdir=
417 target=NONE
418 verbose=
419 x_includes=NONE
420 x_libraries=NONE
421 bindir='${exec_prefix}/bin'
422 sbindir='${exec_prefix}/sbin'
423 libexecdir='${exec_prefix}/libexec'
424 datadir='${prefix}/share'
425 sysconfdir='${prefix}/etc'
426 sharedstatedir='${prefix}/com'
427 localstatedir='${prefix}/var'
428 libdir='${exec_prefix}/lib'
429 includedir='${prefix}/include'
430 oldincludedir='/usr/include'
431 infodir='${prefix}/info'
432 mandir='${prefix}/man'
433
434 # Initialize some other variables.
435 subdirs=
436 MFLAGS= MAKEFLAGS=
437 SHELL=${CONFIG_SHELL-/bin/sh}
438 # Maximum number of lines to put in a shell here document.
439 ac_max_here_lines=12
440
441 ac_prev=
442 for ac_option
443 do
444
445 # If the previous option needs an argument, assign it.
446 if test -n "$ac_prev"; then
447 eval "$ac_prev=\$ac_option"
448 ac_prev=
449 continue
450 fi
451
452 case "$ac_option" in
453 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
454 *) ac_optarg= ;;
455 esac
456
457 # Accept the important Cygnus configure options, so we can diagnose typos.
458
459 case "$ac_option" in
460
461 -bindir | --bindir | --bindi | --bind | --bin | --bi)
462 ac_prev=bindir ;;
463 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
464 bindir="$ac_optarg" ;;
465
466 -build | --build | --buil | --bui | --bu)
467 ac_prev=build ;;
468 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
469 build="$ac_optarg" ;;
470
471 -cache-file | --cache-file | --cache-fil | --cache-fi \
472 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
473 ac_prev=cache_file ;;
474 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
475 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
476 cache_file="$ac_optarg" ;;
477
478 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
479 ac_prev=datadir ;;
480 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
481 | --da=*)
482 datadir="$ac_optarg" ;;
483
484 -disable-* | --disable-*)
485 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
486 # Reject names that are not valid shell variable names.
487 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
488 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
489 fi
490 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
491 eval "enable_${ac_feature}=no" ;;
492
493 -enable-* | --enable-*)
494 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
495 # Reject names that are not valid shell variable names.
496 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
497 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
498 fi
499 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
500 case "$ac_option" in
501 *=*) ;;
502 *) ac_optarg=yes ;;
503 esac
504 eval "enable_${ac_feature}='$ac_optarg'" ;;
505
506 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
507 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
508 | --exec | --exe | --ex)
509 ac_prev=exec_prefix ;;
510 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
511 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
512 | --exec=* | --exe=* | --ex=*)
513 exec_prefix="$ac_optarg" ;;
514
515 -gas | --gas | --ga | --g)
516 # Obsolete; use --with-gas.
517 with_gas=yes ;;
518
519 -help | --help | --hel | --he)
520 # Omit some internal or obsolete options to make the list less imposing.
521 # This message is too long to be a string in the A/UX 3.1 sh.
522 cat << EOF
523 Usage: configure [options] [host]
524 Options: [defaults in brackets after descriptions]
525 Configuration:
526 --cache-file=FILE cache test results in FILE
527 --help print this message
528 --no-create do not create output files
529 --quiet, --silent do not print \`checking...' messages
530 --version print the version of autoconf that created configure
531 Directory and file names:
532 --prefix=PREFIX install architecture-independent files in PREFIX
533 [$ac_default_prefix]
534 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
535 [same as prefix]
536 --bindir=DIR user executables in DIR [EPREFIX/bin]
537 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
538 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
539 --datadir=DIR read-only architecture-independent data in DIR
540 [PREFIX/share]
541 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
542 --sharedstatedir=DIR modifiable architecture-independent data in DIR
543 [PREFIX/com]
544 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
545 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
546 --includedir=DIR C header files in DIR [PREFIX/include]
547 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
548 --infodir=DIR info documentation in DIR [PREFIX/info]
549 --mandir=DIR man documentation in DIR [PREFIX/man]
550 --srcdir=DIR find the sources in DIR [configure dir or ..]
551 --program-prefix=PREFIX prepend PREFIX to installed program names
552 --program-suffix=SUFFIX append SUFFIX to installed program names
553 --program-transform-name=PROGRAM
554 run sed PROGRAM on installed program names
555 EOF
556 cat << EOF
557 Host type:
558 --build=BUILD configure for building on BUILD [BUILD=HOST]
559 --host=HOST configure for HOST [guessed]
560 --target=TARGET configure for TARGET [TARGET=HOST]
561 Features and packages:
562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
566 --x-includes=DIR X include files are in DIR
567 --x-libraries=DIR X library files are in DIR
568 EOF
569 if test -n "$ac_help"; then
570 echo "--enable and --with options recognized:$ac_help"
571 fi
572 exit 0 ;;
573
574 -host | --host | --hos | --ho)
575 ac_prev=host ;;
576 -host=* | --host=* | --hos=* | --ho=*)
577 host="$ac_optarg" ;;
578
579 -includedir | --includedir | --includedi | --included | --include \
580 | --includ | --inclu | --incl | --inc)
581 ac_prev=includedir ;;
582 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
583 | --includ=* | --inclu=* | --incl=* | --inc=*)
584 includedir="$ac_optarg" ;;
585
586 -infodir | --infodir | --infodi | --infod | --info | --inf)
587 ac_prev=infodir ;;
588 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
589 infodir="$ac_optarg" ;;
590
591 -libdir | --libdir | --libdi | --libd)
592 ac_prev=libdir ;;
593 -libdir=* | --libdir=* | --libdi=* | --libd=*)
594 libdir="$ac_optarg" ;;
595
596 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
597 | --libexe | --libex | --libe)
598 ac_prev=libexecdir ;;
599 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
600 | --libexe=* | --libex=* | --libe=*)
601 libexecdir="$ac_optarg" ;;
602
603 -localstatedir | --localstatedir | --localstatedi | --localstated \
604 | --localstate | --localstat | --localsta | --localst \
605 | --locals | --local | --loca | --loc | --lo)
606 ac_prev=localstatedir ;;
607 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
608 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
609 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
610 localstatedir="$ac_optarg" ;;
611
612 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
613 ac_prev=mandir ;;
614 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
615 mandir="$ac_optarg" ;;
616
617 -nfp | --nfp | --nf)
618 # Obsolete; use --without-fp.
619 with_fp=no ;;
620
621 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
622 | --no-cr | --no-c)
623 no_create=yes ;;
624
625 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
626 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
627 no_recursion=yes ;;
628
629 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
630 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
631 | --oldin | --oldi | --old | --ol | --o)
632 ac_prev=oldincludedir ;;
633 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
634 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
635 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
636 oldincludedir="$ac_optarg" ;;
637
638 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
639 ac_prev=prefix ;;
640 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
641 prefix="$ac_optarg" ;;
642
643 -program-prefix | --program-prefix | --program-prefi | --program-pref \
644 | --program-pre | --program-pr | --program-p)
645 ac_prev=program_prefix ;;
646 -program-prefix=* | --program-prefix=* | --program-prefi=* \
647 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
648 program_prefix="$ac_optarg" ;;
649
650 -program-suffix | --program-suffix | --program-suffi | --program-suff \
651 | --program-suf | --program-su | --program-s)
652 ac_prev=program_suffix ;;
653 -program-suffix=* | --program-suffix=* | --program-suffi=* \
654 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
655 program_suffix="$ac_optarg" ;;
656
657 -program-transform-name | --program-transform-name \
658 | --program-transform-nam | --program-transform-na \
659 | --program-transform-n | --program-transform- \
660 | --program-transform | --program-transfor \
661 | --program-transfo | --program-transf \
662 | --program-trans | --program-tran \
663 | --progr-tra | --program-tr | --program-t)
664 ac_prev=program_transform_name ;;
665 -program-transform-name=* | --program-transform-name=* \
666 | --program-transform-nam=* | --program-transform-na=* \
667 | --program-transform-n=* | --program-transform-=* \
668 | --program-transform=* | --program-transfor=* \
669 | --program-transfo=* | --program-transf=* \
670 | --program-trans=* | --program-tran=* \
671 | --progr-tra=* | --program-tr=* | --program-t=*)
672 program_transform_name="$ac_optarg" ;;
673
674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
675 | -silent | --silent | --silen | --sile | --sil)
676 silent=yes ;;
677
678 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
679 ac_prev=sbindir ;;
680 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
681 | --sbi=* | --sb=*)
682 sbindir="$ac_optarg" ;;
683
684 -sharedstatedir | --sharedstatedir | --sharedstatedi \
685 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
686 | --sharedst | --shareds | --shared | --share | --shar \
687 | --sha | --sh)
688 ac_prev=sharedstatedir ;;
689 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
690 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
691 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
692 | --sha=* | --sh=*)
693 sharedstatedir="$ac_optarg" ;;
694
695 -site | --site | --sit)
696 ac_prev=site ;;
697 -site=* | --site=* | --sit=*)
698 site="$ac_optarg" ;;
699
700 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
701 ac_prev=srcdir ;;
702 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
703 srcdir="$ac_optarg" ;;
704
705 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
706 | --syscon | --sysco | --sysc | --sys | --sy)
707 ac_prev=sysconfdir ;;
708 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
709 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
710 sysconfdir="$ac_optarg" ;;
711
712 -target | --target | --targe | --targ | --tar | --ta | --t)
713 ac_prev=target ;;
714 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
715 target="$ac_optarg" ;;
716
717 -v | -verbose | --verbose | --verbos | --verbo | --verb)
718 verbose=yes ;;
719
720 -version | --version | --versio | --versi | --vers)
721 echo "configure generated by autoconf version 2.13"
722 exit 0 ;;
723
724 -with-* | --with-*)
725 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
726 # Reject names that are not valid shell variable names.
727 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
728 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
729 fi
730 ac_package=`echo $ac_package| sed 's/-/_/g'`
731 case "$ac_option" in
732 *=*) ;;
733 *) ac_optarg=yes ;;
734 esac
735 eval "with_${ac_package}='$ac_optarg'" ;;
736
737 -without-* | --without-*)
738 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
739 # Reject names that are not valid shell variable names.
740 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
741 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
742 fi
743 ac_package=`echo $ac_package| sed 's/-/_/g'`
744 eval "with_${ac_package}=no" ;;
745
746 --x)
747 # Obsolete; use --with-x.
748 with_x=yes ;;
749
750 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
751 | --x-incl | --x-inc | --x-in | --x-i)
752 ac_prev=x_includes ;;
753 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
754 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
755 x_includes="$ac_optarg" ;;
756
757 -x-libraries | --x-libraries | --x-librarie | --x-librari \
758 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
759 ac_prev=x_libraries ;;
760 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
761 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
762 x_libraries="$ac_optarg" ;;
763
764 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
765 ;;
766
767 *)
768 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
769 echo "configure: warning: $ac_option: invalid host type" 1>&2
770 fi
771 if test "x$nonopt" != xNONE; then
772 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
773 fi
774 nonopt="$ac_option"
775 ;;
776
777 esac
778 done
779
780 if test -n "$ac_prev"; then
781 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
782 fi
783
784 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
785
786 # File descriptor usage:
787 # 0 standard input
788 # 1 file creation
789 # 2 errors and warnings
790 # 3 some systems may open it to /dev/tty
791 # 4 used on the Kubota Titan
792 # 6 checking for... messages and results
793 # 5 compiler messages saved in config.log
794 if test "$silent" = yes; then
795 exec 6>/dev/null
796 else
797 exec 6>&1
798 fi
799 exec 5>./config.log
800
801 echo "\
802 This file contains any messages produced by compilers while
803 running configure, to aid debugging if configure makes a mistake.
804 " 1>&5
805
806 # Strip out --no-create and --no-recursion so they do not pile up.
807 # Also quote any args containing shell metacharacters.
808 ac_configure_args=
809 for ac_arg
810 do
811 case "$ac_arg" in
812 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
813 | --no-cr | --no-c) ;;
814 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
815 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
816 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
817 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
818 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
819 esac
820 done
821
822 # NLS nuisances.
823 # Only set these to C if already set. These must not be set unconditionally
824 # because not all systems understand e.g. LANG=C (notably SCO).
825 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
826 # Non-C LC_CTYPE values break the ctype check.
827 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
828 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
829 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
830 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
831
832 # confdefs.h avoids OS command line length limits that DEFS can exceed.
833 rm -rf conftest* confdefs.h
834 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
835 echo > confdefs.h
836
837 # A filename unique to this package, relative to the directory that
838 # configure is in, which we can look for to find out if srcdir is correct.
839 ac_unique_file=wx-config.in
840
841 # Find the source files, if location was not specified.
842 if test -z "$srcdir"; then
843 ac_srcdir_defaulted=yes
844 # Try the directory containing this script, then its parent.
845 ac_prog=$0
846 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
847 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
848 srcdir=$ac_confdir
849 if test ! -r $srcdir/$ac_unique_file; then
850 srcdir=..
851 fi
852 else
853 ac_srcdir_defaulted=no
854 fi
855 if test ! -r $srcdir/$ac_unique_file; then
856 if test "$ac_srcdir_defaulted" = yes; then
857 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
858 else
859 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
860 fi
861 fi
862 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
863
864 # Prefer explicitly selected file to automatically selected ones.
865 if test -z "$CONFIG_SITE"; then
866 if test "x$prefix" != xNONE; then
867 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
868 else
869 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
870 fi
871 fi
872 for ac_site_file in $CONFIG_SITE; do
873 if test -r "$ac_site_file"; then
874 echo "loading site script $ac_site_file"
875 . "$ac_site_file"
876 fi
877 done
878
879 if test -r "$cache_file"; then
880 echo "loading cache $cache_file"
881 . $cache_file
882 else
883 echo "creating cache $cache_file"
884 > $cache_file
885 fi
886
887 ac_ext=c
888 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
889 ac_cpp='$CPP $CPPFLAGS'
890 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
891 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
892 cross_compiling=$ac_cv_prog_cc_cross
893
894 ac_exeext=
895 ac_objext=o
896 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
897 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
898 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
899 ac_n= ac_c='
900 ' ac_t=' '
901 else
902 ac_n=-n ac_c= ac_t=
903 fi
904 else
905 ac_n= ac_c='\c' ac_t=
906 fi
907
908
909
910 ac_aux_dir=
911 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
912 if test -f $ac_dir/install-sh; then
913 ac_aux_dir=$ac_dir
914 ac_install_sh="$ac_aux_dir/install-sh -c"
915 break
916 elif test -f $ac_dir/install.sh; then
917 ac_aux_dir=$ac_dir
918 ac_install_sh="$ac_aux_dir/install.sh -c"
919 break
920 fi
921 done
922 if test -z "$ac_aux_dir"; then
923 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
924 fi
925 ac_config_guess=$ac_aux_dir/config.guess
926 ac_config_sub=$ac_aux_dir/config.sub
927 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
928
929
930 # Do some error checking and defaulting for the host and target type.
931 # The inputs are:
932 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
933 #
934 # The rules are:
935 # 1. You are not allowed to specify --host, --target, and nonopt at the
936 # same time.
937 # 2. Host defaults to nonopt.
938 # 3. If nonopt is not specified, then host defaults to the current host,
939 # as determined by config.guess.
940 # 4. Target and build default to nonopt.
941 # 5. If nonopt is not specified, then target and build default to host.
942
943 # The aliases save the names the user supplied, while $host etc.
944 # will get canonicalized.
945 case $host---$target---$nonopt in
946 NONE---*---* | *---NONE---* | *---*---NONE) ;;
947 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
948 esac
949
950
951 # Make sure we can run config.sub.
952 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
953 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
954 fi
955
956 echo $ac_n "checking host system type""... $ac_c" 1>&6
957 echo "configure:958: checking host system type" >&5
958
959 host_alias=$host
960 case "$host_alias" in
961 NONE)
962 case $nonopt in
963 NONE)
964 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
965 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
966 fi ;;
967 *) host_alias=$nonopt ;;
968 esac ;;
969 esac
970
971 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
972 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
973 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
974 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
975 echo "$ac_t""$host" 1>&6
976
977 echo $ac_n "checking target system type""... $ac_c" 1>&6
978 echo "configure:979: checking target system type" >&5
979
980 target_alias=$target
981 case "$target_alias" in
982 NONE)
983 case $nonopt in
984 NONE) target_alias=$host_alias ;;
985 *) target_alias=$nonopt ;;
986 esac ;;
987 esac
988
989 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
990 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
991 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
992 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
993 echo "$ac_t""$target" 1>&6
994
995 echo $ac_n "checking build system type""... $ac_c" 1>&6
996 echo "configure:997: checking build system type" >&5
997
998 build_alias=$build
999 case "$build_alias" in
1000 NONE)
1001 case $nonopt in
1002 NONE) build_alias=$host_alias ;;
1003 *) build_alias=$nonopt ;;
1004 esac ;;
1005 esac
1006
1007 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1008 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1009 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1010 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1011 echo "$ac_t""$build" 1>&6
1012
1013 test "$host_alias" != "$target_alias" &&
1014 test "$program_prefix$program_suffix$program_transform_name" = \
1015 NONENONEs,x,x, &&
1016 program_prefix=${target_alias}-
1017
1018
1019
1020 WX_MAJOR_VERSION_NUMBER=2
1021 WX_MINOR_VERSION_NUMBER=3
1022 WX_RELEASE_NUMBER=3
1023
1024 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1025 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1026
1027 WX_MSW_VERSION=$WX_MAJOR_VERSION_NUMBER$WX_MINOR_VERSION_NUMBER$WX_RELEASE_NUMBER
1028
1029 WX_CURRENT=2
1030 WX_REVISION=0
1031 WX_AGE=0
1032
1033
1034
1035 USE_UNIX=1
1036 USE_WIN32=0
1037 USE_DOS=0
1038 USE_BEOS=0
1039 USE_MAC=0
1040
1041 USE_LINUX=
1042 USE_SGI=
1043 USE_HPUX=
1044 USE_SYSV=
1045 USE_SVR4=
1046 USE_AIX=
1047 USE_SUN=
1048 USE_SOLARIS=
1049 USE_SUNOS=
1050 USE_ALPHA=
1051 USE_OSF=
1052 USE_BSD=
1053 USE_DARWIN=
1054 USE_FREEBSD=
1055 USE_OPENBSD=
1056 USE_NETBSD=
1057 USE_VMS=
1058 USE_ULTRIX=
1059 USE_DATA_GENERAL=
1060
1061 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1062
1063 CPP_MT_FLAG=-D_REENTRANT
1064
1065 ALL_TOOLKITS="GTK MAC MGL MICROWIN MOTIF MSW PM WINE"
1066
1067 DEFAULT_wxUSE_GTK=0
1068 DEFAULT_wxUSE_MAC=0
1069 DEFAULT_wxUSE_MGL=0
1070 DEFAULT_wxUSE_MICROWIN=0
1071 DEFAULT_wxUSE_MOTIF=0
1072 DEFAULT_wxUSE_MSW=0
1073 DEFAULT_wxUSE_PM=0
1074 DEFAULT_wxUSE_WINE=0
1075
1076 DEFAULT_DEFAULT_wxUSE_GTK=0
1077 DEFAULT_DEFAULT_wxUSE_MAC=0
1078 DEFAULT_DEFAULT_wxUSE_MGL=0
1079 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
1080 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1081 DEFAULT_DEFAULT_wxUSE_MSW=0
1082 DEFAULT_DEFAULT_wxUSE_PM=0
1083 DEFAULT_DEFAULT_wxUSE_WINE=0
1084
1085 PROGRAM_EXT=
1086 SO_SUFFIX=so
1087
1088 case "${host}" in
1089 *-hp-hpux* )
1090 USE_HPUX=1
1091 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1092 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1093 SO_SUFFIX=sl
1094 cat >> confdefs.h <<\EOF
1095 #define __HPUX__ 1
1096 EOF
1097
1098 ;;
1099 *-*-linux* )
1100 USE_LINUX=1
1101 cat >> confdefs.h <<\EOF
1102 #define __LINUX__ 1
1103 EOF
1104
1105 TMP=`uname -m`
1106 if test "x$TMP" = "xalpha"; then
1107 USE_ALPHA=1
1108 cat >> confdefs.h <<\EOF
1109 #define __ALPHA__ 1
1110 EOF
1111
1112 fi
1113 DEFAULT_DEFAULT_wxUSE_GTK=1
1114 ;;
1115 *-*-irix5* | *-*-irix6* )
1116 USE_SGI=1
1117 USE_SVR4=1
1118 cat >> confdefs.h <<\EOF
1119 #define __SGI__ 1
1120 EOF
1121
1122 cat >> confdefs.h <<\EOF
1123 #define __SVR4__ 1
1124 EOF
1125
1126 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1127 ;;
1128 *-*-solaris2* )
1129 USE_SUN=1
1130 USE_SOLARIS=1
1131 USE_SVR4=1
1132 cat >> confdefs.h <<\EOF
1133 #define __SUN__ 1
1134 EOF
1135
1136 cat >> confdefs.h <<\EOF
1137 #define __SOLARIS__ 1
1138 EOF
1139
1140 cat >> confdefs.h <<\EOF
1141 #define __SVR4__ 1
1142 EOF
1143
1144 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1145 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1146 ;;
1147 *-*-sunos4* )
1148 USE_SUN=1
1149 USE_SUNOS=1
1150 USE_BSD=1
1151 cat >> confdefs.h <<\EOF
1152 #define __SUN__ 1
1153 EOF
1154
1155 cat >> confdefs.h <<\EOF
1156 #define __SUNOS__ 1
1157 EOF
1158
1159 cat >> confdefs.h <<\EOF
1160 #define __BSD__ 1
1161 EOF
1162
1163 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1164 ;;
1165 *-*-freebsd*)
1166 USE_BSD=1
1167 USE_FREEBSD=1
1168 CPP_MT_FLAG=-D_THREAD_SAFE
1169 cat >> confdefs.h <<\EOF
1170 #define __FREEBSD__ 1
1171 EOF
1172
1173 cat >> confdefs.h <<\EOF
1174 #define __BSD__ 1
1175 EOF
1176
1177 DEFAULT_DEFAULT_wxUSE_GTK=1
1178 ;;
1179 *-*-openbsd*)
1180 USE_BSD=1
1181 USE_OPENBSD=1
1182 cat >> confdefs.h <<\EOF
1183 #define __FREEBSD__ 1
1184 EOF
1185
1186 cat >> confdefs.h <<\EOF
1187 #define __OPENBSD__ 1
1188 EOF
1189
1190 DEFAULT_DEFAULT_wxUSE_GTK=1
1191 ;;
1192 *-*-netbsd*)
1193 USE_BSD=1
1194 USE_NETBSD=1
1195 cat >> confdefs.h <<\EOF
1196 #define __FREEBSD__ 1
1197 EOF
1198
1199 cat >> confdefs.h <<\EOF
1200 #define __NETBSD__ 1
1201 EOF
1202
1203 DEFAULT_DEFAULT_wxUSE_GTK=1
1204 ;;
1205 *-*-osf* )
1206 USE_ALPHA=1
1207 USE_OSF=1
1208 cat >> confdefs.h <<\EOF
1209 #define __ALPHA__ 1
1210 EOF
1211
1212 cat >> confdefs.h <<\EOF
1213 #define __OSF__ 1
1214 EOF
1215
1216 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1217 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1218 ;;
1219 *-*-dgux5* )
1220 USE_ALPHA=1
1221 USE_SVR4=1
1222 cat >> confdefs.h <<\EOF
1223 #define __ALPHA__ 1
1224 EOF
1225
1226 cat >> confdefs.h <<\EOF
1227 #define __SVR4__ 1
1228 EOF
1229
1230 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1231 ;;
1232 *-*-sysv5* )
1233 USE_SYSV=1
1234 USE_SVR4=1
1235 cat >> confdefs.h <<\EOF
1236 #define __SYSV__ 1
1237 EOF
1238
1239 cat >> confdefs.h <<\EOF
1240 #define __SVR4__ 1
1241 EOF
1242
1243 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1244 ;;
1245 *-*-aix* )
1246 USE_AIX=1
1247 USE_SYSV=1
1248 USE_SVR4=1
1249 cat >> confdefs.h <<\EOF
1250 #define __AIX__ 1
1251 EOF
1252
1253 cat >> confdefs.h <<\EOF
1254 #define __SYSV__ 1
1255 EOF
1256
1257 cat >> confdefs.h <<\EOF
1258 #define __SVR4__ 1
1259 EOF
1260
1261 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1262 ;;
1263
1264 *-*-cygwin* | *-*-mingw32* )
1265 USE_UNIX=0
1266 USE_WIN32=1
1267 SO_SUFFIX=dll
1268 cat >> confdefs.h <<\EOF
1269 #define __WIN32__ 1
1270 EOF
1271
1272 cat >> confdefs.h <<\EOF
1273 #define __WIN95__ 1
1274 EOF
1275
1276 cat >> confdefs.h <<\EOF
1277 #define __WINDOWS__ 1
1278 EOF
1279
1280 cat >> confdefs.h <<\EOF
1281 #define __GNUWIN32__ 1
1282 EOF
1283
1284 cat >> confdefs.h <<\EOF
1285 #define STRICT 1
1286 EOF
1287
1288 cat >> confdefs.h <<\EOF
1289 #define WINVER 0x0400
1290 EOF
1291
1292 PROGRAM_EXT=".exe"
1293 RESCOMP=windres
1294 DEFAULT_DEFAULT_wxUSE_MSW=1
1295 ;;
1296
1297 *-pc-msdosdjgpp )
1298 USE_UNIX=0
1299 USE_DOS=1
1300 cat >> confdefs.h <<\EOF
1301 #define __DOS__ 1
1302 EOF
1303
1304 PROGRAM_EXT=".exe"
1305 DEFAULT_DEFAULT_wxUSE_MGL=1
1306 DEFAULT_DEFAULT_wxUSE_SHARED=0
1307 ;;
1308
1309 *-pc-os2_emx | *-pc-os2-emx )
1310 cat >> confdefs.h <<\EOF
1311 #define __EMX__ 1
1312 EOF
1313
1314 PROGRAM_EXT=".exe"
1315 DEFAULT_DEFAULT_wxUSE_PM=1
1316 ;;
1317
1318 powerpc-*-darwin* )
1319 USE_BSD=1
1320 USE_DARWIN=1
1321 CPP_MT_FLAG=
1322 SO_SUFFIX=dylib
1323 cat >> confdefs.h <<\EOF
1324 #define __BSD__ 1
1325 EOF
1326
1327 cat >> confdefs.h <<\EOF
1328 #define __DARWIN__ 1
1329 EOF
1330
1331 cat >> confdefs.h <<\EOF
1332 #define __POWERPC__ 1
1333 EOF
1334
1335 DEFAULT_DEFAULT_wxUSE_MAC=1
1336 ;;
1337
1338 *-*-beos* )
1339 USE_BEOS=1
1340 cat >> confdefs.h <<\EOF
1341 #define __BEOS__ 1
1342 EOF
1343
1344 ;;
1345
1346 *)
1347 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1348 esac
1349
1350 if test "$USE_UNIX" = 1 ; then
1351 wxUSE_UNIX=yes
1352 cat >> confdefs.h <<\EOF
1353 #define __UNIX__ 1
1354 EOF
1355
1356 fi
1357
1358 if test "$USE_LINUX" = 1; then
1359 echo $ac_n "checking for glibc 2.1 or later""... $ac_c" 1>&6
1360 echo "configure:1361: checking for glibc 2.1 or later" >&5
1361 if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1362 echo $ac_n "(cached) $ac_c" 1>&6
1363 else
1364
1365 cat > conftest.$ac_ext <<EOF
1366 #line 1367 "configure"
1367 #include "confdefs.h"
1368 #include <features.h>
1369 int main() {
1370
1371 #if !__GLIBC_PREREQ(2, 1)
1372 #error not glibc2.1
1373 #endif
1374
1375 ; return 0; }
1376 EOF
1377 if { (eval echo configure:1378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1378 rm -rf conftest*
1379
1380 wx_lib_glibc21=yes
1381
1382 else
1383 echo "configure: failed program was:" >&5
1384 cat conftest.$ac_ext >&5
1385 rm -rf conftest*
1386
1387 wx_lib_glibc21=no
1388
1389
1390 fi
1391 rm -f conftest*
1392
1393 fi
1394
1395 echo "$ac_t""$wx_lib_glibc21" 1>&6
1396 if test "$wx_lib_glibc21" = "yes"; then
1397 cat >> confdefs.h <<\EOF
1398 #define wxHAVE_GLIBC2 1
1399 EOF
1400
1401 fi
1402 fi
1403
1404
1405
1406
1407 wx_arg_cache_file="configarg.cache"
1408 echo "loading argument cache $wx_arg_cache_file"
1409 rm -f ${wx_arg_cache_file}.tmp
1410 touch ${wx_arg_cache_file}.tmp
1411 touch ${wx_arg_cache_file}
1412
1413
1414 DEBUG_CONFIGURE=0
1415 if test $DEBUG_CONFIGURE = 1; then
1416 DEFAULT_wxUSE_UNIVERSAL=no
1417
1418 DEFAULT_wxUSE_THREADS=yes
1419
1420 DEFAULT_wxUSE_SHARED=yes
1421 DEFAULT_wxUSE_SONAME=no
1422 DEFAULT_wxUSE_OPTIMISE=no
1423 DEFAULT_wxUSE_PROFILE=no
1424 DEFAULT_wxUSE_NO_DEPS=no
1425 DEFAULT_wxUSE_NO_RTTI=yes
1426 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1427 DEFAULT_wxUSE_PERMISSIVE=no
1428 DEFAULT_wxUSE_DEBUG_FLAG=yes
1429 DEFAULT_wxUSE_DEBUG_INFO=yes
1430 DEFAULT_wxUSE_DEBUG_GDB=yes
1431 DEFAULT_wxUSE_MEM_TRACING=no
1432 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1433 DEFAULT_wxUSE_DMALLOC=no
1434 DEFAULT_wxUSE_PRECOMP=yes
1435 DEFAULT_wxUSE_APPLE_IEEE=no
1436
1437 DEFAULT_wxUSE_LOG=yes
1438 DEFAULT_wxUSE_LOGWINDOW=no
1439 DEFAULT_wxUSE_LOGGUI=no
1440 DEFAULT_wxUSE_LOGDIALOG=no
1441
1442 DEFAULT_wxUSE_GUI=yes
1443 DEFAULT_wxUSE_CONTROLS=no
1444
1445 DEFAULT_wxUSE_REGEX=no
1446 DEFAULT_wxUSE_ZLIB=no
1447 DEFAULT_wxUSE_LIBPNG=no
1448 DEFAULT_wxUSE_LIBJPEG=no
1449 DEFAULT_wxUSE_LIBTIFF=no
1450 DEFAULT_wxUSE_ODBC=no
1451 DEFAULT_wxUSE_FREETYPE=no
1452 DEFAULT_wxUSE_OPENGL=no
1453
1454 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1455 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1456 DEFAULT_wxUSE_STD_IOSTREAM=no
1457 DEFAULT_wxUSE_CMDLINE_PARSER=no
1458 DEFAULT_wxUSE_DATETIME=no
1459 DEFAULT_wxUSE_TIMEDATE=no
1460 DEFAULT_wxUSE_TIMER=no
1461 DEFAULT_wxUSE_STOPWATCH=no
1462 DEFAULT_wxUSE_FILE=no
1463 DEFAULT_wxUSE_FFILE=no
1464 DEFAULT_wxUSE_TEXTBUFFER=no
1465 DEFAULT_wxUSE_TEXTFILE=no
1466 DEFAULT_wxUSE_WAVE=no
1467 DEFAULT_wxUSE_INTL=no
1468 DEFAULT_wxUSE_CONFIG=no
1469 DEFAULT_wxUSE_FONTMAP=no
1470 DEFAULT_wxUSE_STREAMS=no
1471 DEFAULT_wxUSE_SOCKETS=no
1472 DEFAULT_wxUSE_DIALUP_MANAGER=no
1473 DEFAULT_wxUSE_JOYSTICK=no
1474 DEFAULT_wxUSE_DYNLIB_CLASS=no
1475 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1476 DEFAULT_wxUSE_LONGLONG=no
1477 DEFAULT_wxUSE_GEOMETRY=no
1478
1479 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1480 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1481 DEFAULT_wxUSE_POSTSCRIPT=no
1482
1483 DEFAULT_wxUSE_X_RESOURCES=no
1484 DEFAULT_wxUSE_CLIPBOARD=no
1485 DEFAULT_wxUSE_TOOLTIPS=no
1486 DEFAULT_wxUSE_DRAG_AND_DROP=no
1487 DEFAULT_wxUSE_DRAGIMAGE=no
1488 DEFAULT_wxUSE_SPLINES=no
1489
1490 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1491 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1492 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1493
1494 DEFAULT_wxUSE_PROLOGIO=no
1495 DEFAULT_wxUSE_RESOURCES=no
1496 DEFAULT_wxUSE_CONSTRAINTS=no
1497 DEFAULT_wxUSE_IPC=no
1498 DEFAULT_wxUSE_HELP=no
1499 DEFAULT_wxUSE_MS_HTML_HELP=no
1500 DEFAULT_wxUSE_WXHTML_HELP=no
1501 DEFAULT_wxUSE_TREELAYOUT=no
1502 DEFAULT_wxUSE_METAFILE=no
1503 DEFAULT_wxUSE_MIMETYPE=no
1504 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1505
1506 DEFAULT_wxUSE_COMMONDLGS=no
1507 DEFAULT_wxUSE_CHOICEDLG=no
1508 DEFAULT_wxUSE_COLOURDLG=no
1509 DEFAULT_wxUSE_DIRDLG=no
1510 DEFAULT_wxUSE_FILEDLG=no
1511 DEFAULT_wxUSE_FINDREPLDLG=no
1512 DEFAULT_wxUSE_FONTDLG=no
1513 DEFAULT_wxUSE_MSGDLG=no
1514 DEFAULT_wxUSE_NUMBERDLG=no
1515 DEFAULT_wxUSE_TEXTDLG=no
1516 DEFAULT_wxUSE_SPLASH=no
1517 DEFAULT_wxUSE_STARTUP_TIPS=no
1518 DEFAULT_wxUSE_PROGRESSDLG=no
1519 DEFAULT_wxUSE_WIZARDDLG=no
1520
1521 DEFAULT_wxUSE_MENUS=no
1522 DEFAULT_wxUSE_MINIFRAME=no
1523 DEFAULT_wxUSE_HTML=no
1524 DEFAULT_wxUSE_FILESYSTEM=no
1525 DEFAULT_wxUSE_FS_INET=no
1526 DEFAULT_wxUSE_FS_ZIP=no
1527 DEFAULT_wxUSE_BUSYINFO=no
1528 DEFAULT_wxUSE_ZIPSTREAM=no
1529 DEFAULT_wxUSE_VALIDATORS=no
1530
1531 DEFAULT_wxUSE_ACCEL=no
1532 DEFAULT_wxUSE_BUTTON=no
1533 DEFAULT_wxUSE_BMPBUTTON=no
1534 DEFAULT_wxUSE_CALCTRL=no
1535 DEFAULT_wxUSE_CARET=no
1536 DEFAULT_wxUSE_CHECKBOX=no
1537 DEFAULT_wxUSE_CHECKLST=no
1538 DEFAULT_wxUSE_CHOICE=no
1539 DEFAULT_wxUSE_COMBOBOX=no
1540 DEFAULT_wxUSE_GAUGE=no
1541 DEFAULT_wxUSE_GRID=no
1542 DEFAULT_wxUSE_NEW_GRID=no
1543 DEFAULT_wxUSE_IMAGLIST=no
1544 DEFAULT_wxUSE_LISTBOX=no
1545 DEFAULT_wxUSE_LISTCTRL=no
1546 DEFAULT_wxUSE_NOTEBOOK=no
1547 DEFAULT_wxUSE_PROPSHEET=no
1548 DEFAULT_wxUSE_RADIOBOX=no
1549 DEFAULT_wxUSE_RADIOBTN=no
1550 DEFAULT_wxUSE_SASH=no
1551 DEFAULT_wxUSE_SCROLLBAR=no
1552 DEFAULT_wxUSE_SLIDER=no
1553 DEFAULT_wxUSE_SPINBTN=no
1554 DEFAULT_wxUSE_SPINCTRL=no
1555 DEFAULT_wxUSE_SPLITTER=no
1556 DEFAULT_wxUSE_STATBMP=no
1557 DEFAULT_wxUSE_STATBOX=no
1558 DEFAULT_wxUSE_STATLINE=no
1559 DEFAULT_wxUSE_STATTEXT=no
1560 DEFAULT_wxUSE_STATUSBAR=yes
1561 DEFAULT_wxUSE_TABDIALOG=no
1562 DEFAULT_wxUSE_TEXTCTRL=no
1563 DEFAULT_wxUSE_TOGGLEBTN=no
1564 DEFAULT_wxUSE_TOOLBAR=no
1565 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1566 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1567 DEFAULT_wxUSE_TREECTRL=no
1568 DEFAULT_wxUSE_POPUPWIN=no
1569 DEFAULT_wxUSE_TIPWINDOW=no
1570
1571 DEFAULT_wxUSE_UNICODE=no
1572 DEFAULT_wxUSE_UNICODE_MSLU=no
1573 DEFAULT_wxUSE_WCSRTOMBS=no
1574
1575 DEFAULT_wxUSE_PALETTE=no
1576 DEFAULT_wxUSE_IMAGE=no
1577 DEFAULT_wxUSE_GIF=no
1578 DEFAULT_wxUSE_PCX=no
1579 DEFAULT_wxUSE_PNM=no
1580 DEFAULT_wxUSE_XPM=no
1581 else
1582 DEFAULT_wxUSE_UNIVERSAL=no
1583
1584 DEFAULT_wxUSE_THREADS=yes
1585
1586 DEFAULT_wxUSE_SHARED=yes
1587 DEFAULT_wxUSE_SONAME=no
1588 DEFAULT_wxUSE_OPTIMISE=yes
1589 DEFAULT_wxUSE_PROFILE=no
1590 DEFAULT_wxUSE_NO_DEPS=no
1591 DEFAULT_wxUSE_NO_RTTI=yes
1592 DEFAULT_wxUSE_NO_EXCEPTIONS=yes
1593 DEFAULT_wxUSE_PERMISSIVE=no
1594 DEFAULT_wxUSE_DEBUG_FLAG=no
1595 DEFAULT_wxUSE_DEBUG_INFO=no
1596 DEFAULT_wxUSE_DEBUG_GDB=no
1597 DEFAULT_wxUSE_MEM_TRACING=no
1598 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1599 DEFAULT_wxUSE_DMALLOC=no
1600 DEFAULT_wxUSE_PRECOMP=yes
1601 DEFAULT_wxUSE_APPLE_IEEE=yes
1602
1603 DEFAULT_wxUSE_LOG=yes
1604 DEFAULT_wxUSE_LOGWINDOW=yes
1605 DEFAULT_wxUSE_LOGGUI=yes
1606 DEFAULT_wxUSE_LOGDIALOG=yes
1607
1608 DEFAULT_wxUSE_GUI=yes
1609
1610 DEFAULT_wxUSE_REGEX=yes
1611 DEFAULT_wxUSE_ZLIB=yes
1612 DEFAULT_wxUSE_LIBPNG=yes
1613 DEFAULT_wxUSE_LIBJPEG=yes
1614 DEFAULT_wxUSE_LIBTIFF=yes
1615 DEFAULT_wxUSE_ODBC=no
1616 DEFAULT_wxUSE_FREETYPE=no
1617 DEFAULT_wxUSE_OPENGL=no
1618
1619 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1620 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1621 DEFAULT_wxUSE_STD_IOSTREAM=no
1622 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1623 DEFAULT_wxUSE_DATETIME=yes
1624 DEFAULT_wxUSE_TIMEDATE=no
1625 DEFAULT_wxUSE_TIMER=yes
1626 DEFAULT_wxUSE_STOPWATCH=yes
1627 DEFAULT_wxUSE_FILE=yes
1628 DEFAULT_wxUSE_FFILE=yes
1629 DEFAULT_wxUSE_TEXTBUFFER=yes
1630 DEFAULT_wxUSE_TEXTFILE=yes
1631 DEFAULT_wxUSE_WAVE=no
1632 DEFAULT_wxUSE_INTL=yes
1633 DEFAULT_wxUSE_CONFIG=yes
1634 DEFAULT_wxUSE_FONTMAP=yes
1635 DEFAULT_wxUSE_STREAMS=yes
1636 DEFAULT_wxUSE_SOCKETS=yes
1637 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1638 DEFAULT_wxUSE_JOYSTICK=yes
1639 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1640 DEFAULT_wxUSE_DYNAMIC_LOADER=no
1641 DEFAULT_wxUSE_LONGLONG=yes
1642 DEFAULT_wxUSE_GEOMETRY=yes
1643
1644 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1645 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1646 DEFAULT_wxUSE_POSTSCRIPT=yes
1647
1648 DEFAULT_wxUSE_X_RESOURCES=no
1649 DEFAULT_wxUSE_CLIPBOARD=yes
1650 DEFAULT_wxUSE_TOOLTIPS=yes
1651 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1652 DEFAULT_wxUSE_DRAGIMAGE=yes
1653 DEFAULT_wxUSE_SPLINES=yes
1654
1655 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1656 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1657 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1658
1659 DEFAULT_wxUSE_PROLOGIO=yes
1660 DEFAULT_wxUSE_RESOURCES=yes
1661 DEFAULT_wxUSE_CONSTRAINTS=yes
1662 DEFAULT_wxUSE_IPC=yes
1663 DEFAULT_wxUSE_HELP=yes
1664 DEFAULT_wxUSE_MS_HTML_HELP=yes
1665 DEFAULT_wxUSE_WXHTML_HELP=yes
1666 DEFAULT_wxUSE_TREELAYOUT=yes
1667 DEFAULT_wxUSE_METAFILE=yes
1668 DEFAULT_wxUSE_MIMETYPE=yes
1669 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1670
1671 DEFAULT_wxUSE_COMMONDLGS=yes
1672 DEFAULT_wxUSE_CHOICEDLG=yes
1673 DEFAULT_wxUSE_COLOURDLG=yes
1674 DEFAULT_wxUSE_DIRDLG=yes
1675 DEFAULT_wxUSE_FILEDLG=yes
1676 DEFAULT_wxUSE_FINDREPLDLG=yes
1677 DEFAULT_wxUSE_FONTDLG=yes
1678 DEFAULT_wxUSE_MSGDLG=yes
1679 DEFAULT_wxUSE_NUMBERDLG=yes
1680 DEFAULT_wxUSE_TEXTDLG=yes
1681 DEFAULT_wxUSE_SPLASH=yes
1682 DEFAULT_wxUSE_STARTUP_TIPS=yes
1683 DEFAULT_wxUSE_PROGRESSDLG=yes
1684 DEFAULT_wxUSE_WIZARDDLG=yes
1685
1686 DEFAULT_wxUSE_MENUS=yes
1687 DEFAULT_wxUSE_MINIFRAME=yes
1688 DEFAULT_wxUSE_HTML=yes
1689 DEFAULT_wxUSE_FILESYSTEM=yes
1690 DEFAULT_wxUSE_FS_INET=yes
1691 DEFAULT_wxUSE_FS_ZIP=yes
1692 DEFAULT_wxUSE_BUSYINFO=yes
1693 DEFAULT_wxUSE_ZIPSTREAM=yes
1694 DEFAULT_wxUSE_VALIDATORS=yes
1695
1696 DEFAULT_wxUSE_ACCEL=yes
1697 DEFAULT_wxUSE_BUTTON=yes
1698 DEFAULT_wxUSE_BMPBUTTON=yes
1699 DEFAULT_wxUSE_CALCTRL=yes
1700 DEFAULT_wxUSE_CARET=yes
1701 DEFAULT_wxUSE_CHECKBOX=yes
1702 DEFAULT_wxUSE_CHECKLST=yes
1703 DEFAULT_wxUSE_CHOICE=yes
1704 DEFAULT_wxUSE_COMBOBOX=yes
1705 DEFAULT_wxUSE_GAUGE=yes
1706 DEFAULT_wxUSE_GRID=yes
1707 DEFAULT_wxUSE_NEW_GRID=yes
1708 DEFAULT_wxUSE_IMAGLIST=yes
1709 DEFAULT_wxUSE_LISTBOX=yes
1710 DEFAULT_wxUSE_LISTCTRL=yes
1711 DEFAULT_wxUSE_NOTEBOOK=yes
1712 DEFAULT_wxUSE_PROPSHEET=yes
1713 DEFAULT_wxUSE_RADIOBOX=yes
1714 DEFAULT_wxUSE_RADIOBTN=yes
1715 DEFAULT_wxUSE_SASH=yes
1716 DEFAULT_wxUSE_SCROLLBAR=yes
1717 DEFAULT_wxUSE_SLIDER=yes
1718 DEFAULT_wxUSE_SPINBTN=yes
1719 DEFAULT_wxUSE_SPINCTRL=yes
1720 DEFAULT_wxUSE_SPLITTER=yes
1721 DEFAULT_wxUSE_STATBMP=yes
1722 DEFAULT_wxUSE_STATBOX=yes
1723 DEFAULT_wxUSE_STATLINE=yes
1724 DEFAULT_wxUSE_STATTEXT=yes
1725 DEFAULT_wxUSE_STATUSBAR=yes
1726 DEFAULT_wxUSE_TABDIALOG=no
1727 DEFAULT_wxUSE_TEXTCTRL=yes
1728 DEFAULT_wxUSE_TOGGLEBTN=yes
1729 DEFAULT_wxUSE_TOOLBAR=yes
1730 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1731 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1732 DEFAULT_wxUSE_TREECTRL=yes
1733 DEFAULT_wxUSE_POPUPWIN=yes
1734 DEFAULT_wxUSE_TIPWINDOW=yes
1735
1736 DEFAULT_wxUSE_UNICODE=no
1737 DEFAULT_wxUSE_UNICODE_MSLU=yes
1738 DEFAULT_wxUSE_WCSRTOMBS=no
1739
1740 DEFAULT_wxUSE_PALETTE=yes
1741 DEFAULT_wxUSE_IMAGE=yes
1742 DEFAULT_wxUSE_GIF=yes
1743 DEFAULT_wxUSE_PCX=yes
1744 DEFAULT_wxUSE_PNM=yes
1745 DEFAULT_wxUSE_XPM=yes
1746 fi
1747
1748
1749
1750 for toolkit in `echo $ALL_TOOLKITS`; do
1751 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1752 if test "x$LINE" != x ; then
1753 has_toolkit_in_cache=1
1754 eval "DEFAULT_$LINE"
1755 eval "CACHE_$toolkit=1"
1756 fi
1757 done
1758
1759
1760
1761 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1762 echo "configure:1763: checking for --enable-gui" >&5
1763 no_cache=0
1764 # Check whether --enable-gui or --disable-gui was given.
1765 if test "${enable_gui+set}" = set; then
1766 enableval="$enable_gui"
1767
1768 if test "$enableval" = yes; then
1769 ac_cv_use_gui='wxUSE_GUI=yes'
1770 else
1771 ac_cv_use_gui='wxUSE_GUI=no'
1772 fi
1773
1774 else
1775
1776 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1777 if test "x$LINE" != x ; then
1778 eval "DEFAULT_$LINE"
1779 else
1780 no_cache=1
1781 fi
1782
1783 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1784
1785 fi
1786
1787
1788 eval "$ac_cv_use_gui"
1789 if test "$no_cache" != 1; then
1790 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1791 fi
1792
1793 if test "$wxUSE_GUI" = yes; then
1794 echo "$ac_t""yes" 1>&6
1795 else
1796 echo "$ac_t""no" 1>&6
1797 fi
1798
1799
1800 if test "$wxUSE_GUI" = "yes"; then
1801
1802
1803 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1804 echo "configure:1805: checking for --enable-universal" >&5
1805 no_cache=0
1806 # Check whether --enable-universal or --disable-universal was given.
1807 if test "${enable_universal+set}" = set; then
1808 enableval="$enable_universal"
1809
1810 if test "$enableval" = yes; then
1811 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1812 else
1813 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1814 fi
1815
1816 else
1817
1818 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1819 if test "x$LINE" != x ; then
1820 eval "DEFAULT_$LINE"
1821 else
1822 no_cache=1
1823 fi
1824
1825 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1826
1827 fi
1828
1829
1830 eval "$ac_cv_use_universal"
1831 if test "$no_cache" != 1; then
1832 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1833 fi
1834
1835 if test "$wxUSE_UNIVERSAL" = yes; then
1836 echo "$ac_t""yes" 1>&6
1837 else
1838 echo "$ac_t""no" 1>&6
1839 fi
1840
1841 # Check whether --with-gtk or --without-gtk was given.
1842 if test "${with_gtk+set}" = set; then
1843 withval="$with_gtk"
1844 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1845 fi
1846
1847 # Check whether --with-motif or --without-motif was given.
1848 if test "${with_motif+set}" = set; then
1849 withval="$with_motif"
1850 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1851 fi
1852
1853 # Check whether --with-mac or --without-mac was given.
1854 if test "${with_mac+set}" = set; then
1855 withval="$with_mac"
1856 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1857 fi
1858
1859 # Check whether --with-wine or --without-wine was given.
1860 if test "${with_wine+set}" = set; then
1861 withval="$with_wine"
1862 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1863 fi
1864
1865 # Check whether --with-msw or --without-msw was given.
1866 if test "${with_msw+set}" = set; then
1867 withval="$with_msw"
1868 wxUSE_MSW="$withval" CACHE_MSW TOOLKIT_GIVEN=1
1869 fi
1870
1871 # Check whether --with-pm or --without-pm was given.
1872 if test "${with_pm+set}" = set; then
1873 withval="$with_pm"
1874 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1875 fi
1876
1877 # Check whether --with-mgl or --without-mgl was given.
1878 if test "${with_mgl+set}" = set; then
1879 withval="$with_mgl"
1880 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1881 fi
1882
1883 # Check whether --with-microwin or --without-microwin was given.
1884 if test "${with_microwin+set}" = set; then
1885 withval="$with_microwin"
1886 wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
1887 fi
1888
1889
1890 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1891 if test "${enable_gtk2+set}" = set; then
1892 enableval="$enable_gtk2"
1893 wxUSE_GTK2=1
1894 else
1895 wxUSE_GTK2=0
1896 fi
1897
1898
1899
1900 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1901 echo "configure:1902: checking for --with-libpng" >&5
1902 no_cache=0
1903 # Check whether --with-libpng or --without-libpng was given.
1904 if test "${with_libpng+set}" = set; then
1905 withval="$with_libpng"
1906
1907 if test "$withval" = yes; then
1908 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1909 elif test "$withval" = no; then
1910 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1911 elif test "$withval" = sys; then
1912 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1913 elif test "$withval" = builtin; then
1914 ac_cv_use_libpng='wxUSE_LIBPNG=builtin'
1915 else
1916 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1917 fi
1918
1919 else
1920
1921 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1922 if test "x$LINE" != x ; then
1923 eval "DEFAULT_$LINE"
1924 else
1925 no_cache=1
1926 fi
1927
1928 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1929
1930 fi
1931
1932
1933 eval "$ac_cv_use_libpng"
1934 if test "$no_cache" != 1; then
1935 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1936 fi
1937
1938 if test "$wxUSE_LIBPNG" = yes; then
1939 echo "$ac_t""yes" 1>&6
1940 elif test "$wxUSE_LIBPNG" = no; then
1941 echo "$ac_t""no" 1>&6
1942 elif test "$wxUSE_LIBPNG" = sys; then
1943 echo "$ac_t""system version" 1>&6
1944 elif test "$wxUSE_LIBPNG" = builtin; then
1945 echo "$ac_t""builtin version" 1>&6
1946 else
1947 { echo "configure: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1948 fi
1949
1950
1951 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1952 echo "configure:1953: checking for --with-libjpeg" >&5
1953 no_cache=0
1954 # Check whether --with-libjpeg or --without-libjpeg was given.
1955 if test "${with_libjpeg+set}" = set; then
1956 withval="$with_libjpeg"
1957
1958 if test "$withval" = yes; then
1959 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1960 elif test "$withval" = no; then
1961 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1962 elif test "$withval" = sys; then
1963 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1964 elif test "$withval" = builtin; then
1965 ac_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
1966 else
1967 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1968 fi
1969
1970 else
1971
1972 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1973 if test "x$LINE" != x ; then
1974 eval "DEFAULT_$LINE"
1975 else
1976 no_cache=1
1977 fi
1978
1979 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1980
1981 fi
1982
1983
1984 eval "$ac_cv_use_libjpeg"
1985 if test "$no_cache" != 1; then
1986 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1987 fi
1988
1989 if test "$wxUSE_LIBJPEG" = yes; then
1990 echo "$ac_t""yes" 1>&6
1991 elif test "$wxUSE_LIBJPEG" = no; then
1992 echo "$ac_t""no" 1>&6
1993 elif test "$wxUSE_LIBJPEG" = sys; then
1994 echo "$ac_t""system version" 1>&6
1995 elif test "$wxUSE_LIBJPEG" = builtin; then
1996 echo "$ac_t""builtin version" 1>&6
1997 else
1998 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" 1>&2; exit 1; }
1999 fi
2000
2001
2002 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
2003 echo "configure:2004: checking for --with-libtiff" >&5
2004 no_cache=0
2005 # Check whether --with-libtiff or --without-libtiff was given.
2006 if test "${with_libtiff+set}" = set; then
2007 withval="$with_libtiff"
2008
2009 if test "$withval" = yes; then
2010 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
2011 elif test "$withval" = no; then
2012 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
2013 elif test "$withval" = sys; then
2014 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
2015 elif test "$withval" = builtin; then
2016 ac_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
2017 else
2018 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2019 fi
2020
2021 else
2022
2023 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
2024 if test "x$LINE" != x ; then
2025 eval "DEFAULT_$LINE"
2026 else
2027 no_cache=1
2028 fi
2029
2030 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
2031
2032 fi
2033
2034
2035 eval "$ac_cv_use_libtiff"
2036 if test "$no_cache" != 1; then
2037 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
2038 fi
2039
2040 if test "$wxUSE_LIBTIFF" = yes; then
2041 echo "$ac_t""yes" 1>&6
2042 elif test "$wxUSE_LIBTIFF" = no; then
2043 echo "$ac_t""no" 1>&6
2044 elif test "$wxUSE_LIBTIFF" = sys; then
2045 echo "$ac_t""system version" 1>&6
2046 elif test "$wxUSE_LIBTIFF" = builtin; then
2047 echo "$ac_t""builtin version" 1>&6
2048 else
2049 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2050 fi
2051
2052
2053 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
2054 echo "configure:2055: checking for --with-freetype" >&5
2055 no_cache=0
2056 # Check whether --with-freetype or --without-freetype was given.
2057 if test "${with_freetype+set}" = set; then
2058 withval="$with_freetype"
2059
2060 if test "$withval" = yes; then
2061 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
2062 elif test "$withval" = no; then
2063 ac_cv_use_freetype='wxUSE_FREETYPE=no'
2064 elif test "$withval" = sys; then
2065 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
2066 elif test "$withval" = builtin; then
2067 ac_cv_use_freetype='wxUSE_FREETYPE=builtin'
2068 else
2069 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2070 fi
2071
2072 else
2073
2074 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2075 if test "x$LINE" != x ; then
2076 eval "DEFAULT_$LINE"
2077 else
2078 no_cache=1
2079 fi
2080
2081 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2082
2083 fi
2084
2085
2086 eval "$ac_cv_use_freetype"
2087 if test "$no_cache" != 1; then
2088 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2089 fi
2090
2091 if test "$wxUSE_FREETYPE" = yes; then
2092 echo "$ac_t""yes" 1>&6
2093 elif test "$wxUSE_FREETYPE" = no; then
2094 echo "$ac_t""no" 1>&6
2095 elif test "$wxUSE_FREETYPE" = sys; then
2096 echo "$ac_t""system version" 1>&6
2097 elif test "$wxUSE_FREETYPE" = builtin; then
2098 echo "$ac_t""builtin version" 1>&6
2099 else
2100 { echo "configure: error: Invalid value for --with-freetype: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2101 fi
2102
2103
2104 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2105 echo "configure:2106: checking for --with-opengl" >&5
2106 no_cache=0
2107 # Check whether --with-opengl or --without-opengl was given.
2108 if test "${with_opengl+set}" = set; then
2109 withval="$with_opengl"
2110
2111 if test "$withval" = yes; then
2112 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2113 else
2114 ac_cv_use_opengl='wxUSE_OPENGL=no'
2115 fi
2116
2117 else
2118
2119 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2120 if test "x$LINE" != x ; then
2121 eval "DEFAULT_$LINE"
2122 else
2123 no_cache=1
2124 fi
2125
2126 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2127
2128 fi
2129
2130
2131 eval "$ac_cv_use_opengl"
2132 if test "$no_cache" != 1; then
2133 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2134 fi
2135
2136 if test "$wxUSE_OPENGL" = yes; then
2137 echo "$ac_t""yes" 1>&6
2138 else
2139 echo "$ac_t""no" 1>&6
2140 fi
2141
2142
2143 fi
2144
2145
2146 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2147 echo "configure:2148: checking for --with-dmalloc" >&5
2148 no_cache=0
2149 # Check whether --with-dmalloc or --without-dmalloc was given.
2150 if test "${with_dmalloc+set}" = set; then
2151 withval="$with_dmalloc"
2152
2153 if test "$withval" = yes; then
2154 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2155 else
2156 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2157 fi
2158
2159 else
2160
2161 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2162 if test "x$LINE" != x ; then
2163 eval "DEFAULT_$LINE"
2164 else
2165 no_cache=1
2166 fi
2167
2168 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2169
2170 fi
2171
2172
2173 eval "$ac_cv_use_dmalloc"
2174 if test "$no_cache" != 1; then
2175 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2176 fi
2177
2178 if test "$wxUSE_DMALLOC" = yes; then
2179 echo "$ac_t""yes" 1>&6
2180 else
2181 echo "$ac_t""no" 1>&6
2182 fi
2183
2184
2185 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2186 echo "configure:2187: checking for --with-regex" >&5
2187 no_cache=0
2188 # Check whether --with-regex or --without-regex was given.
2189 if test "${with_regex+set}" = set; then
2190 withval="$with_regex"
2191
2192 if test "$withval" = yes; then
2193 ac_cv_use_regex='wxUSE_REGEX=yes'
2194 elif test "$withval" = no; then
2195 ac_cv_use_regex='wxUSE_REGEX=no'
2196 elif test "$withval" = sys; then
2197 ac_cv_use_regex='wxUSE_REGEX=sys'
2198 elif test "$withval" = builtin; then
2199 ac_cv_use_regex='wxUSE_REGEX=builtin'
2200 else
2201 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2202 fi
2203
2204 else
2205
2206 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2207 if test "x$LINE" != x ; then
2208 eval "DEFAULT_$LINE"
2209 else
2210 no_cache=1
2211 fi
2212
2213 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2214
2215 fi
2216
2217
2218 eval "$ac_cv_use_regex"
2219 if test "$no_cache" != 1; then
2220 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2221 fi
2222
2223 if test "$wxUSE_REGEX" = yes; then
2224 echo "$ac_t""yes" 1>&6
2225 elif test "$wxUSE_REGEX" = no; then
2226 echo "$ac_t""no" 1>&6
2227 elif test "$wxUSE_REGEX" = sys; then
2228 echo "$ac_t""system version" 1>&6
2229 elif test "$wxUSE_REGEX" = builtin; then
2230 echo "$ac_t""builtin version" 1>&6
2231 else
2232 { echo "configure: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2233 fi
2234
2235
2236 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2237 echo "configure:2238: checking for --with-zlib" >&5
2238 no_cache=0
2239 # Check whether --with-zlib or --without-zlib was given.
2240 if test "${with_zlib+set}" = set; then
2241 withval="$with_zlib"
2242
2243 if test "$withval" = yes; then
2244 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2245 elif test "$withval" = no; then
2246 ac_cv_use_zlib='wxUSE_ZLIB=no'
2247 elif test "$withval" = sys; then
2248 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2249 elif test "$withval" = builtin; then
2250 ac_cv_use_zlib='wxUSE_ZLIB=builtin'
2251 else
2252 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2253 fi
2254
2255 else
2256
2257 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2258 if test "x$LINE" != x ; then
2259 eval "DEFAULT_$LINE"
2260 else
2261 no_cache=1
2262 fi
2263
2264 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2265
2266 fi
2267
2268
2269 eval "$ac_cv_use_zlib"
2270 if test "$no_cache" != 1; then
2271 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2272 fi
2273
2274 if test "$wxUSE_ZLIB" = yes; then
2275 echo "$ac_t""yes" 1>&6
2276 elif test "$wxUSE_ZLIB" = no; then
2277 echo "$ac_t""no" 1>&6
2278 elif test "$wxUSE_ZLIB" = sys; then
2279 echo "$ac_t""system version" 1>&6
2280 elif test "$wxUSE_ZLIB" = builtin; then
2281 echo "$ac_t""builtin version" 1>&6
2282 else
2283 { echo "configure: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" 1>&2; exit 1; }
2284 fi
2285
2286
2287 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2288 echo "configure:2289: checking for --with-odbc" >&5
2289 no_cache=0
2290 # Check whether --with-odbc or --without-odbc was given.
2291 if test "${with_odbc+set}" = set; then
2292 withval="$with_odbc"
2293
2294 if test "$withval" = yes; then
2295 ac_cv_use_odbc='wxUSE_ODBC=yes'
2296 else
2297 ac_cv_use_odbc='wxUSE_ODBC=no'
2298 fi
2299
2300 else
2301
2302 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2303 if test "x$LINE" != x ; then
2304 eval "DEFAULT_$LINE"
2305 else
2306 no_cache=1
2307 fi
2308
2309 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2310
2311 fi
2312
2313
2314 eval "$ac_cv_use_odbc"
2315 if test "$no_cache" != 1; then
2316 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2317 fi
2318
2319 if test "$wxUSE_ODBC" = yes; then
2320 echo "$ac_t""yes" 1>&6
2321 else
2322 echo "$ac_t""no" 1>&6
2323 fi
2324
2325
2326
2327
2328 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2329 echo "configure:2330: checking for --enable-shared" >&5
2330 no_cache=0
2331 # Check whether --enable-shared or --disable-shared was given.
2332 if test "${enable_shared+set}" = set; then
2333 enableval="$enable_shared"
2334
2335 if test "$enableval" = yes; then
2336 ac_cv_use_shared='wxUSE_SHARED=yes'
2337 else
2338 ac_cv_use_shared='wxUSE_SHARED=no'
2339 fi
2340
2341 else
2342
2343 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2344 if test "x$LINE" != x ; then
2345 eval "DEFAULT_$LINE"
2346 else
2347 no_cache=1
2348 fi
2349
2350 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2351
2352 fi
2353
2354
2355 eval "$ac_cv_use_shared"
2356 if test "$no_cache" != 1; then
2357 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2358 fi
2359
2360 if test "$wxUSE_SHARED" = yes; then
2361 echo "$ac_t""yes" 1>&6
2362 else
2363 echo "$ac_t""no" 1>&6
2364 fi
2365
2366
2367 echo $ac_n "checking for --enable-soname""... $ac_c" 1>&6
2368 echo "configure:2369: checking for --enable-soname" >&5
2369 no_cache=0
2370 # Check whether --enable-soname or --disable-soname was given.
2371 if test "${enable_soname+set}" = set; then
2372 enableval="$enable_soname"
2373
2374 if test "$enableval" = yes; then
2375 ac_cv_use_soname='wxUSE_SONAME=yes'
2376 else
2377 ac_cv_use_soname='wxUSE_SONAME=no'
2378 fi
2379
2380 else
2381
2382 LINE=`grep "wxUSE_SONAME" ${wx_arg_cache_file}`
2383 if test "x$LINE" != x ; then
2384 eval "DEFAULT_$LINE"
2385 else
2386 no_cache=1
2387 fi
2388
2389 ac_cv_use_soname='wxUSE_SONAME='$DEFAULT_wxUSE_SONAME
2390
2391 fi
2392
2393
2394 eval "$ac_cv_use_soname"
2395 if test "$no_cache" != 1; then
2396 echo $ac_cv_use_soname >> ${wx_arg_cache_file}.tmp
2397 fi
2398
2399 if test "$wxUSE_SONAME" = yes; then
2400 echo "$ac_t""yes" 1>&6
2401 else
2402 echo "$ac_t""no" 1>&6
2403 fi
2404
2405
2406 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2407 echo "configure:2408: checking for --enable-optimise" >&5
2408 no_cache=0
2409 # Check whether --enable-optimise or --disable-optimise was given.
2410 if test "${enable_optimise+set}" = set; then
2411 enableval="$enable_optimise"
2412
2413 if test "$enableval" = yes; then
2414 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2415 else
2416 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2417 fi
2418
2419 else
2420
2421 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2422 if test "x$LINE" != x ; then
2423 eval "DEFAULT_$LINE"
2424 else
2425 no_cache=1
2426 fi
2427
2428 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2429
2430 fi
2431
2432
2433 eval "$ac_cv_use_optimise"
2434 if test "$no_cache" != 1; then
2435 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2436 fi
2437
2438 if test "$wxUSE_OPTIMISE" = yes; then
2439 echo "$ac_t""yes" 1>&6
2440 else
2441 echo "$ac_t""no" 1>&6
2442 fi
2443
2444
2445 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2446 echo "configure:2447: checking for --enable-debug" >&5
2447 no_cache=0
2448 # Check whether --enable-debug or --disable-debug was given.
2449 if test "${enable_debug+set}" = set; then
2450 enableval="$enable_debug"
2451
2452 if test "$enableval" = yes; then
2453 ac_cv_use_debug='wxUSE_DEBUG=yes'
2454 else
2455 ac_cv_use_debug='wxUSE_DEBUG=no'
2456 fi
2457
2458 else
2459
2460 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2461 if test "x$LINE" != x ; then
2462 eval "DEFAULT_$LINE"
2463 else
2464 no_cache=1
2465 fi
2466
2467 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2468
2469 fi
2470
2471
2472 eval "$ac_cv_use_debug"
2473 if test "$no_cache" != 1; then
2474 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2475 fi
2476
2477 if test "$wxUSE_DEBUG" = yes; then
2478 echo "$ac_t""yes" 1>&6
2479 else
2480 echo "$ac_t""no" 1>&6
2481 fi
2482
2483
2484
2485 echo $ac_n "checking for --enable-precomp""... $ac_c" 1>&6
2486 echo "configure:2487: checking for --enable-precomp" >&5
2487 no_cache=0
2488 # Check whether --enable-precomp or --disable-precomp was given.
2489 if test "${enable_precomp+set}" = set; then
2490 enableval="$enable_precomp"
2491
2492 if test "$enableval" = yes; then
2493 ac_cv_use_precomp='wxUSE_PRECOMP=yes'
2494 else
2495 ac_cv_use_precomp='wxUSE_PRECOMP=no'
2496 fi
2497
2498 else
2499
2500 LINE=`grep "wxUSE_PRECOMP" ${wx_arg_cache_file}`
2501 if test "x$LINE" != x ; then
2502 eval "DEFAULT_$LINE"
2503 else
2504 no_cache=1
2505 fi
2506
2507 ac_cv_use_precomp='wxUSE_PRECOMP='$DEFAULT_wxUSE_PRECOMP
2508
2509 fi
2510
2511
2512 eval "$ac_cv_use_precomp"
2513 if test "$no_cache" != 1; then
2514 echo $ac_cv_use_precomp >> ${wx_arg_cache_file}.tmp
2515 fi
2516
2517 if test "$wxUSE_PRECOMP" = yes; then
2518 echo "$ac_t""yes" 1>&6
2519 else
2520 echo "$ac_t""no" 1>&6
2521 fi
2522
2523
2524 if test "$wxUSE_DEBUG" = "yes"; then
2525 DEFAULT_wxUSE_DEBUG_FLAG=yes
2526 DEFAULT_wxUSE_DEBUG_INFO=yes
2527 elif test "$wxUSE_DEBUG" = "no"; then
2528 DEFAULT_wxUSE_DEBUG_FLAG=no
2529 DEFAULT_wxUSE_DEBUG_INFO=no
2530 fi
2531
2532
2533 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2534 echo "configure:2535: checking for --enable-debug_flag" >&5
2535 no_cache=0
2536 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2537 if test "${enable_debug_flag+set}" = set; then
2538 enableval="$enable_debug_flag"
2539
2540 if test "$enableval" = yes; then
2541 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2542 else
2543 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2544 fi
2545
2546 else
2547
2548 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2549 if test "x$LINE" != x ; then
2550 eval "DEFAULT_$LINE"
2551 else
2552 no_cache=1
2553 fi
2554
2555 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2556
2557 fi
2558
2559
2560 eval "$ac_cv_use_debug_flag"
2561 if test "$no_cache" != 1; then
2562 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2563 fi
2564
2565 if test "$wxUSE_DEBUG_FLAG" = yes; then
2566 echo "$ac_t""yes" 1>&6
2567 else
2568 echo "$ac_t""no" 1>&6
2569 fi
2570
2571
2572 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2573 echo "configure:2574: checking for --enable-debug_info" >&5
2574 no_cache=0
2575 # Check whether --enable-debug_info or --disable-debug_info was given.
2576 if test "${enable_debug_info+set}" = set; then
2577 enableval="$enable_debug_info"
2578
2579 if test "$enableval" = yes; then
2580 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2581 else
2582 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2583 fi
2584
2585 else
2586
2587 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2588 if test "x$LINE" != x ; then
2589 eval "DEFAULT_$LINE"
2590 else
2591 no_cache=1
2592 fi
2593
2594 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2595
2596 fi
2597
2598
2599 eval "$ac_cv_use_debug_info"
2600 if test "$no_cache" != 1; then
2601 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2602 fi
2603
2604 if test "$wxUSE_DEBUG_INFO" = yes; then
2605 echo "$ac_t""yes" 1>&6
2606 else
2607 echo "$ac_t""no" 1>&6
2608 fi
2609
2610
2611 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2612 echo "configure:2613: checking for --enable-debug_gdb" >&5
2613 no_cache=0
2614 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2615 if test "${enable_debug_gdb+set}" = set; then
2616 enableval="$enable_debug_gdb"
2617
2618 if test "$enableval" = yes; then
2619 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2620 else
2621 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2622 fi
2623
2624 else
2625
2626 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2627 if test "x$LINE" != x ; then
2628 eval "DEFAULT_$LINE"
2629 else
2630 no_cache=1
2631 fi
2632
2633 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2634
2635 fi
2636
2637
2638 eval "$ac_cv_use_debug_gdb"
2639 if test "$no_cache" != 1; then
2640 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2641 fi
2642
2643 if test "$wxUSE_DEBUG_GDB" = yes; then
2644 echo "$ac_t""yes" 1>&6
2645 else
2646 echo "$ac_t""no" 1>&6
2647 fi
2648
2649
2650 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2651 echo "configure:2652: checking for --enable-debug_cntxt" >&5
2652 no_cache=0
2653 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2654 if test "${enable_debug_cntxt+set}" = set; then
2655 enableval="$enable_debug_cntxt"
2656
2657 if test "$enableval" = yes; then
2658 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2659 else
2660 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2661 fi
2662
2663 else
2664
2665 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2666 if test "x$LINE" != x ; then
2667 eval "DEFAULT_$LINE"
2668 else
2669 no_cache=1
2670 fi
2671
2672 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2673
2674 fi
2675
2676
2677 eval "$ac_cv_use_debug_cntxt"
2678 if test "$no_cache" != 1; then
2679 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2680 fi
2681
2682 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2683 echo "$ac_t""yes" 1>&6
2684 else
2685 echo "$ac_t""no" 1>&6
2686 fi
2687
2688
2689 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2690 echo "configure:2691: checking for --enable-mem_tracing" >&5
2691 no_cache=0
2692 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2693 if test "${enable_mem_tracing+set}" = set; then
2694 enableval="$enable_mem_tracing"
2695
2696 if test "$enableval" = yes; then
2697 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2698 else
2699 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2700 fi
2701
2702 else
2703
2704 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2705 if test "x$LINE" != x ; then
2706 eval "DEFAULT_$LINE"
2707 else
2708 no_cache=1
2709 fi
2710
2711 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2712
2713 fi
2714
2715
2716 eval "$ac_cv_use_mem_tracing"
2717 if test "$no_cache" != 1; then
2718 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2719 fi
2720
2721 if test "$wxUSE_MEM_TRACING" = yes; then
2722 echo "$ac_t""yes" 1>&6
2723 else
2724 echo "$ac_t""no" 1>&6
2725 fi
2726
2727
2728 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2729 echo "configure:2730: checking for --enable-profile" >&5
2730 no_cache=0
2731 # Check whether --enable-profile or --disable-profile was given.
2732 if test "${enable_profile+set}" = set; then
2733 enableval="$enable_profile"
2734
2735 if test "$enableval" = yes; then
2736 ac_cv_use_profile='wxUSE_PROFILE=yes'
2737 else
2738 ac_cv_use_profile='wxUSE_PROFILE=no'
2739 fi
2740
2741 else
2742
2743 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2744 if test "x$LINE" != x ; then
2745 eval "DEFAULT_$LINE"
2746 else
2747 no_cache=1
2748 fi
2749
2750 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2751
2752 fi
2753
2754
2755 eval "$ac_cv_use_profile"
2756 if test "$no_cache" != 1; then
2757 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2758 fi
2759
2760 if test "$wxUSE_PROFILE" = yes; then
2761 echo "$ac_t""yes" 1>&6
2762 else
2763 echo "$ac_t""no" 1>&6
2764 fi
2765
2766
2767 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2768 echo "configure:2769: checking for --enable-no_rtti" >&5
2769 no_cache=0
2770 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2771 if test "${enable_no_rtti+set}" = set; then
2772 enableval="$enable_no_rtti"
2773
2774 if test "$enableval" = yes; then
2775 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2776 else
2777 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2778 fi
2779
2780 else
2781
2782 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2783 if test "x$LINE" != x ; then
2784 eval "DEFAULT_$LINE"
2785 else
2786 no_cache=1
2787 fi
2788
2789 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2790
2791 fi
2792
2793
2794 eval "$ac_cv_use_no_rtti"
2795 if test "$no_cache" != 1; then
2796 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2797 fi
2798
2799 if test "$wxUSE_NO_RTTI" = yes; then
2800 echo "$ac_t""yes" 1>&6
2801 else
2802 echo "$ac_t""no" 1>&6
2803 fi
2804
2805
2806 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2807 echo "configure:2808: checking for --enable-no_exceptions" >&5
2808 no_cache=0
2809 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2810 if test "${enable_no_exceptions+set}" = set; then
2811 enableval="$enable_no_exceptions"
2812
2813 if test "$enableval" = yes; then
2814 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2815 else
2816 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2817 fi
2818
2819 else
2820
2821 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2822 if test "x$LINE" != x ; then
2823 eval "DEFAULT_$LINE"
2824 else
2825 no_cache=1
2826 fi
2827
2828 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2829
2830 fi
2831
2832
2833 eval "$ac_cv_use_no_exceptions"
2834 if test "$no_cache" != 1; then
2835 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2836 fi
2837
2838 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2839 echo "$ac_t""yes" 1>&6
2840 else
2841 echo "$ac_t""no" 1>&6
2842 fi
2843
2844
2845 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2846 echo "configure:2847: checking for --enable-permissive" >&5
2847 no_cache=0
2848 # Check whether --enable-permissive or --disable-permissive was given.
2849 if test "${enable_permissive+set}" = set; then
2850 enableval="$enable_permissive"
2851
2852 if test "$enableval" = yes; then
2853 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2854 else
2855 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2856 fi
2857
2858 else
2859
2860 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2861 if test "x$LINE" != x ; then
2862 eval "DEFAULT_$LINE"
2863 else
2864 no_cache=1
2865 fi
2866
2867 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2868
2869 fi
2870
2871
2872 eval "$ac_cv_use_permissive"
2873 if test "$no_cache" != 1; then
2874 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2875 fi
2876
2877 if test "$wxUSE_PERMISSIVE" = yes; then
2878 echo "$ac_t""yes" 1>&6
2879 else
2880 echo "$ac_t""no" 1>&6
2881 fi
2882
2883
2884 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2885 echo "configure:2886: checking for --enable-no_deps" >&5
2886 no_cache=0
2887 # Check whether --enable-no_deps or --disable-no_deps was given.
2888 if test "${enable_no_deps+set}" = set; then
2889 enableval="$enable_no_deps"
2890
2891 if test "$enableval" = yes; then
2892 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2893 else
2894 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2895 fi
2896
2897 else
2898
2899 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2900 if test "x$LINE" != x ; then
2901 eval "DEFAULT_$LINE"
2902 else
2903 no_cache=1
2904 fi
2905
2906 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2907
2908 fi
2909
2910
2911 eval "$ac_cv_use_no_deps"
2912 if test "$no_cache" != 1; then
2913 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2914 fi
2915
2916 if test "$wxUSE_NO_DEPS" = yes; then
2917 echo "$ac_t""yes" 1>&6
2918 else
2919 echo "$ac_t""no" 1>&6
2920 fi
2921
2922
2923
2924 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2925 echo "configure:2926: checking for --enable-compat20" >&5
2926 no_cache=0
2927 # Check whether --enable-compat20 or --disable-compat20 was given.
2928 if test "${enable_compat20+set}" = set; then
2929 enableval="$enable_compat20"
2930
2931 if test "$enableval" = yes; then
2932 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2933 else
2934 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2935 fi
2936
2937 else
2938
2939 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2940 if test "x$LINE" != x ; then
2941 eval "DEFAULT_$LINE"
2942 else
2943 no_cache=1
2944 fi
2945
2946 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2947
2948 fi
2949
2950
2951 eval "$ac_cv_use_compat20"
2952 if test "$no_cache" != 1; then
2953 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2954 fi
2955
2956 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2957 echo "$ac_t""yes" 1>&6
2958 else
2959 echo "$ac_t""no" 1>&6
2960 fi
2961
2962
2963 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2964 echo "configure:2965: checking for --enable-compat22" >&5
2965 no_cache=0
2966 # Check whether --enable-compat22 or --disable-compat22 was given.
2967 if test "${enable_compat22+set}" = set; then
2968 enableval="$enable_compat22"
2969
2970 if test "$enableval" = yes; then
2971 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2972 else
2973 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2974 fi
2975
2976 else
2977
2978 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2979 if test "x$LINE" != x ; then
2980 eval "DEFAULT_$LINE"
2981 else
2982 no_cache=1
2983 fi
2984
2985 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2986
2987 fi
2988
2989
2990 eval "$ac_cv_use_compat22"
2991 if test "$no_cache" != 1; then
2992 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2993 fi
2994
2995 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2996 echo "$ac_t""yes" 1>&6
2997 else
2998 echo "$ac_t""no" 1>&6
2999 fi
3000
3001
3002
3003
3004 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
3005 echo "configure:3006: checking for --enable-intl" >&5
3006 no_cache=0
3007 # Check whether --enable-intl or --disable-intl was given.
3008 if test "${enable_intl+set}" = set; then
3009 enableval="$enable_intl"
3010
3011 if test "$enableval" = yes; then
3012 ac_cv_use_intl='wxUSE_INTL=yes'
3013 else
3014 ac_cv_use_intl='wxUSE_INTL=no'
3015 fi
3016
3017 else
3018
3019 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
3020 if test "x$LINE" != x ; then
3021 eval "DEFAULT_$LINE"
3022 else
3023 no_cache=1
3024 fi
3025
3026 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
3027
3028 fi
3029
3030
3031 eval "$ac_cv_use_intl"
3032 if test "$no_cache" != 1; then
3033 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
3034 fi
3035
3036 if test "$wxUSE_INTL" = yes; then
3037 echo "$ac_t""yes" 1>&6
3038 else
3039 echo "$ac_t""no" 1>&6
3040 fi
3041
3042
3043 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
3044 echo "configure:3045: checking for --enable-config" >&5
3045 no_cache=0
3046 # Check whether --enable-config or --disable-config was given.
3047 if test "${enable_config+set}" = set; then
3048 enableval="$enable_config"
3049
3050 if test "$enableval" = yes; then
3051 ac_cv_use_config='wxUSE_CONFIG=yes'
3052 else
3053 ac_cv_use_config='wxUSE_CONFIG=no'
3054 fi
3055
3056 else
3057
3058 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
3059 if test "x$LINE" != x ; then
3060 eval "DEFAULT_$LINE"
3061 else
3062 no_cache=1
3063 fi
3064
3065 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
3066
3067 fi
3068
3069
3070 eval "$ac_cv_use_config"
3071 if test "$no_cache" != 1; then
3072 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
3073 fi
3074
3075 if test "$wxUSE_CONFIG" = yes; then
3076 echo "$ac_t""yes" 1>&6
3077 else
3078 echo "$ac_t""no" 1>&6
3079 fi
3080
3081
3082
3083 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
3084 echo "configure:3085: checking for --enable-sockets" >&5
3085 no_cache=0
3086 # Check whether --enable-sockets or --disable-sockets was given.
3087 if test "${enable_sockets+set}" = set; then
3088 enableval="$enable_sockets"
3089
3090 if test "$enableval" = yes; then
3091 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
3092 else
3093 ac_cv_use_sockets='wxUSE_SOCKETS=no'
3094 fi
3095
3096 else
3097
3098 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
3099 if test "x$LINE" != x ; then
3100 eval "DEFAULT_$LINE"
3101 else
3102 no_cache=1
3103 fi
3104
3105 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
3106
3107 fi
3108
3109
3110 eval "$ac_cv_use_sockets"
3111 if test "$no_cache" != 1; then
3112 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
3113 fi
3114
3115 if test "$wxUSE_SOCKETS" = yes; then
3116 echo "$ac_t""yes" 1>&6
3117 else
3118 echo "$ac_t""no" 1>&6
3119 fi
3120
3121
3122
3123 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3124 echo "configure:3125: checking for --enable-ipc" >&5
3125 no_cache=0
3126 # Check whether --enable-ipc or --disable-ipc was given.
3127 if test "${enable_ipc+set}" = set; then
3128 enableval="$enable_ipc"
3129
3130 if test "$enableval" = yes; then
3131 ac_cv_use_ipc='wxUSE_IPC=yes'
3132 else
3133 ac_cv_use_ipc='wxUSE_IPC=no'
3134 fi
3135
3136 else
3137
3138 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3139 if test "x$LINE" != x ; then
3140 eval "DEFAULT_$LINE"
3141 else
3142 no_cache=1
3143 fi
3144
3145 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3146
3147 fi
3148
3149
3150 eval "$ac_cv_use_ipc"
3151 if test "$no_cache" != 1; then
3152 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3153 fi
3154
3155 if test "$wxUSE_IPC" = yes; then
3156 echo "$ac_t""yes" 1>&6
3157 else
3158 echo "$ac_t""no" 1>&6
3159 fi
3160
3161
3162
3163 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3164 echo "configure:3165: checking for --enable-cmdline" >&5
3165 no_cache=0
3166 # Check whether --enable-cmdline or --disable-cmdline was given.
3167 if test "${enable_cmdline+set}" = set; then
3168 enableval="$enable_cmdline"
3169
3170 if test "$enableval" = yes; then
3171 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3172 else
3173 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3174 fi
3175
3176 else
3177
3178 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3179 if test "x$LINE" != x ; then
3180 eval "DEFAULT_$LINE"
3181 else
3182 no_cache=1
3183 fi
3184
3185 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3186
3187 fi
3188
3189
3190 eval "$ac_cv_use_cmdline"
3191 if test "$no_cache" != 1; then
3192 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3193 fi
3194
3195 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3196 echo "$ac_t""yes" 1>&6
3197 else
3198 echo "$ac_t""no" 1>&6
3199 fi
3200
3201
3202 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3203 echo "configure:3204: checking for --enable-datetime" >&5
3204 no_cache=0
3205 # Check whether --enable-datetime or --disable-datetime was given.
3206 if test "${enable_datetime+set}" = set; then
3207 enableval="$enable_datetime"
3208
3209 if test "$enableval" = yes; then
3210 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3211 else
3212 ac_cv_use_datetime='wxUSE_DATETIME=no'
3213 fi
3214
3215 else
3216
3217 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3218 if test "x$LINE" != x ; then
3219 eval "DEFAULT_$LINE"
3220 else
3221 no_cache=1
3222 fi
3223
3224 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3225
3226 fi
3227
3228
3229 eval "$ac_cv_use_datetime"
3230 if test "$no_cache" != 1; then
3231 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3232 fi
3233
3234 if test "$wxUSE_DATETIME" = yes; then
3235 echo "$ac_t""yes" 1>&6
3236 else
3237 echo "$ac_t""no" 1>&6
3238 fi
3239
3240
3241 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3242 echo "configure:3243: checking for --enable-timedate" >&5
3243 no_cache=0
3244 # Check whether --enable-timedate or --disable-timedate was given.
3245 if test "${enable_timedate+set}" = set; then
3246 enableval="$enable_timedate"
3247
3248 if test "$enableval" = yes; then
3249 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3250 else
3251 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3252 fi
3253
3254 else
3255
3256 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3257 if test "x$LINE" != x ; then
3258 eval "DEFAULT_$LINE"
3259 else
3260 no_cache=1
3261 fi
3262
3263 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3264
3265 fi
3266
3267
3268 eval "$ac_cv_use_timedate"
3269 if test "$no_cache" != 1; then
3270 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3271 fi
3272
3273 if test "$wxUSE_TIMEDATE" = yes; then
3274 echo "$ac_t""yes" 1>&6
3275 else
3276 echo "$ac_t""no" 1>&6
3277 fi
3278
3279
3280 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3281 echo "configure:3282: checking for --enable-stopwatch" >&5
3282 no_cache=0
3283 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3284 if test "${enable_stopwatch+set}" = set; then
3285 enableval="$enable_stopwatch"
3286
3287 if test "$enableval" = yes; then
3288 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3289 else
3290 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3291 fi
3292
3293 else
3294
3295 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3296 if test "x$LINE" != x ; then
3297 eval "DEFAULT_$LINE"
3298 else
3299 no_cache=1
3300 fi
3301
3302 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3303
3304 fi
3305
3306
3307 eval "$ac_cv_use_stopwatch"
3308 if test "$no_cache" != 1; then
3309 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3310 fi
3311
3312 if test "$wxUSE_STOPWATCH" = yes; then
3313 echo "$ac_t""yes" 1>&6
3314 else
3315 echo "$ac_t""no" 1>&6
3316 fi
3317
3318
3319 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3320 echo "configure:3321: checking for --enable-dialupman" >&5
3321 no_cache=0
3322 # Check whether --enable-dialupman or --disable-dialupman was given.
3323 if test "${enable_dialupman+set}" = set; then
3324 enableval="$enable_dialupman"
3325
3326 if test "$enableval" = yes; then
3327 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3328 else
3329 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3330 fi
3331
3332 else
3333
3334 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3335 if test "x$LINE" != x ; then
3336 eval "DEFAULT_$LINE"
3337 else
3338 no_cache=1
3339 fi
3340
3341 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3342
3343 fi
3344
3345
3346 eval "$ac_cv_use_dialupman"
3347 if test "$no_cache" != 1; then
3348 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3349 fi
3350
3351 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3352 echo "$ac_t""yes" 1>&6
3353 else
3354 echo "$ac_t""no" 1>&6
3355 fi
3356
3357
3358 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3359 echo "configure:3360: checking for --enable-apple_ieee" >&5
3360 no_cache=0
3361 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3362 if test "${enable_apple_ieee+set}" = set; then
3363 enableval="$enable_apple_ieee"
3364
3365 if test "$enableval" = yes; then
3366 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3367 else
3368 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3369 fi
3370
3371 else
3372
3373 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3374 if test "x$LINE" != x ; then
3375 eval "DEFAULT_$LINE"
3376 else
3377 no_cache=1
3378 fi
3379
3380 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3381
3382 fi
3383
3384
3385 eval "$ac_cv_use_apple_ieee"
3386 if test "$no_cache" != 1; then
3387 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3388 fi
3389
3390 if test "$wxUSE_APPLE_IEEE" = yes; then
3391 echo "$ac_t""yes" 1>&6
3392 else
3393 echo "$ac_t""no" 1>&6
3394 fi
3395
3396
3397 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3398 echo "configure:3399: checking for --enable-timer" >&5
3399 no_cache=0
3400 # Check whether --enable-timer or --disable-timer was given.
3401 if test "${enable_timer+set}" = set; then
3402 enableval="$enable_timer"
3403
3404 if test "$enableval" = yes; then
3405 ac_cv_use_timer='wxUSE_TIMER=yes'
3406 else
3407 ac_cv_use_timer='wxUSE_TIMER=no'
3408 fi
3409
3410 else
3411
3412 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3413 if test "x$LINE" != x ; then
3414 eval "DEFAULT_$LINE"
3415 else
3416 no_cache=1
3417 fi
3418
3419 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3420
3421 fi
3422
3423
3424 eval "$ac_cv_use_timer"
3425 if test "$no_cache" != 1; then
3426 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3427 fi
3428
3429 if test "$wxUSE_TIMER" = yes; then
3430 echo "$ac_t""yes" 1>&6
3431 else
3432 echo "$ac_t""no" 1>&6
3433 fi
3434
3435
3436 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3437 echo "configure:3438: checking for --enable-wave" >&5
3438 no_cache=0
3439 # Check whether --enable-wave or --disable-wave was given.
3440 if test "${enable_wave+set}" = set; then
3441 enableval="$enable_wave"
3442
3443 if test "$enableval" = yes; then
3444 ac_cv_use_wave='wxUSE_WAVE=yes'
3445 else
3446 ac_cv_use_wave='wxUSE_WAVE=no'
3447 fi
3448
3449 else
3450
3451 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3452 if test "x$LINE" != x ; then
3453 eval "DEFAULT_$LINE"
3454 else
3455 no_cache=1
3456 fi
3457
3458 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3459
3460 fi
3461
3462
3463 eval "$ac_cv_use_wave"
3464 if test "$no_cache" != 1; then
3465 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3466 fi
3467
3468 if test "$wxUSE_WAVE" = yes; then
3469 echo "$ac_t""yes" 1>&6
3470 else
3471 echo "$ac_t""no" 1>&6
3472 fi
3473
3474
3475 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3476 echo "configure:3477: checking for --enable-fraction" >&5
3477 no_cache=0
3478 # Check whether --enable-fraction or --disable-fraction was given.
3479 if test "${enable_fraction+set}" = set; then
3480 enableval="$enable_fraction"
3481
3482 if test "$enableval" = yes; then
3483 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3484 else
3485 ac_cv_use_fraction='wxUSE_FRACTION=no'
3486 fi
3487
3488 else
3489
3490 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3491 if test "x$LINE" != x ; then
3492 eval "DEFAULT_$LINE"
3493 else
3494 no_cache=1
3495 fi
3496
3497 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3498
3499 fi
3500
3501
3502 eval "$ac_cv_use_fraction"
3503 if test "$no_cache" != 1; then
3504 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3505 fi
3506
3507 if test "$wxUSE_FRACTION" = yes; then
3508 echo "$ac_t""yes" 1>&6
3509 else
3510 echo "$ac_t""no" 1>&6
3511 fi
3512
3513
3514 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3515 echo "configure:3516: checking for --enable-dynlib" >&5
3516 no_cache=0
3517 # Check whether --enable-dynlib or --disable-dynlib was given.
3518 if test "${enable_dynlib+set}" = set; then
3519 enableval="$enable_dynlib"
3520
3521 if test "$enableval" = yes; then
3522 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3523 else
3524 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3525 fi
3526
3527 else
3528
3529 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3530 if test "x$LINE" != x ; then
3531 eval "DEFAULT_$LINE"
3532 else
3533 no_cache=1
3534 fi
3535
3536 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3537
3538 fi
3539
3540
3541 eval "$ac_cv_use_dynlib"
3542 if test "$no_cache" != 1; then
3543 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3544 fi
3545
3546 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3547 echo "$ac_t""yes" 1>&6
3548 else
3549 echo "$ac_t""no" 1>&6
3550 fi
3551
3552
3553 echo $ac_n "checking for --enable-dynamicloader""... $ac_c" 1>&6
3554 echo "configure:3555: checking for --enable-dynamicloader" >&5
3555 no_cache=0
3556 # Check whether --enable-dynamicloader or --disable-dynamicloader was given.
3557 if test "${enable_dynamicloader+set}" = set; then
3558 enableval="$enable_dynamicloader"
3559
3560 if test "$enableval" = yes; then
3561 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
3562 else
3563 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
3564 fi
3565
3566 else
3567
3568 LINE=`grep "wxUSE_DYNAMIC_LOADER" ${wx_arg_cache_file}`
3569 if test "x$LINE" != x ; then
3570 eval "DEFAULT_$LINE"
3571 else
3572 no_cache=1
3573 fi
3574
3575 ac_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER='$DEFAULT_wxUSE_DYNAMIC_LOADER
3576
3577 fi
3578
3579
3580 eval "$ac_cv_use_dynamicloader"
3581 if test "$no_cache" != 1; then
3582 echo $ac_cv_use_dynamicloader >> ${wx_arg_cache_file}.tmp
3583 fi
3584
3585 if test "$wxUSE_DYNAMIC_LOADER" = yes; then
3586 echo "$ac_t""yes" 1>&6
3587 else
3588 echo "$ac_t""no" 1>&6
3589 fi
3590
3591
3592 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3593 echo "configure:3594: checking for --enable-longlong" >&5
3594 no_cache=0
3595 # Check whether --enable-longlong or --disable-longlong was given.
3596 if test "${enable_longlong+set}" = set; then
3597 enableval="$enable_longlong"
3598
3599 if test "$enableval" = yes; then
3600 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3601 else
3602 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3603 fi
3604
3605 else
3606
3607 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3608 if test "x$LINE" != x ; then
3609 eval "DEFAULT_$LINE"
3610 else
3611 no_cache=1
3612 fi
3613
3614 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3615
3616 fi
3617
3618
3619 eval "$ac_cv_use_longlong"
3620 if test "$no_cache" != 1; then
3621 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3622 fi
3623
3624 if test "$wxUSE_LONGLONG" = yes; then
3625 echo "$ac_t""yes" 1>&6
3626 else
3627 echo "$ac_t""no" 1>&6
3628 fi
3629
3630
3631 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3632 echo "configure:3633: checking for --enable-geometry" >&5
3633 no_cache=0
3634 # Check whether --enable-geometry or --disable-geometry was given.
3635 if test "${enable_geometry+set}" = set; then
3636 enableval="$enable_geometry"
3637
3638 if test "$enableval" = yes; then
3639 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3640 else
3641 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3642 fi
3643
3644 else
3645
3646 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3647 if test "x$LINE" != x ; then
3648 eval "DEFAULT_$LINE"
3649 else
3650 no_cache=1
3651 fi
3652
3653 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3654
3655 fi
3656
3657
3658 eval "$ac_cv_use_geometry"
3659 if test "$no_cache" != 1; then
3660 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3661 fi
3662
3663 if test "$wxUSE_GEOMETRY" = yes; then
3664 echo "$ac_t""yes" 1>&6
3665 else
3666 echo "$ac_t""no" 1>&6
3667 fi
3668
3669
3670 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3671 echo "configure:3672: checking for --enable-log" >&5
3672 no_cache=0
3673 # Check whether --enable-log or --disable-log was given.
3674 if test "${enable_log+set}" = set; then
3675 enableval="$enable_log"
3676
3677 if test "$enableval" = yes; then
3678 ac_cv_use_log='wxUSE_LOG=yes'
3679 else
3680 ac_cv_use_log='wxUSE_LOG=no'
3681 fi
3682
3683 else
3684
3685 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3686 if test "x$LINE" != x ; then
3687 eval "DEFAULT_$LINE"
3688 else
3689 no_cache=1
3690 fi
3691
3692 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3693
3694 fi
3695
3696
3697 eval "$ac_cv_use_log"
3698 if test "$no_cache" != 1; then
3699 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3700 fi
3701
3702 if test "$wxUSE_LOG" = yes; then
3703 echo "$ac_t""yes" 1>&6
3704 else
3705 echo "$ac_t""no" 1>&6
3706 fi
3707
3708
3709 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3710 echo "configure:3711: checking for --enable-streams" >&5
3711 no_cache=0
3712 # Check whether --enable-streams or --disable-streams was given.
3713 if test "${enable_streams+set}" = set; then
3714 enableval="$enable_streams"
3715
3716 if test "$enableval" = yes; then
3717 ac_cv_use_streams='wxUSE_STREAMS=yes'
3718 else
3719 ac_cv_use_streams='wxUSE_STREAMS=no'
3720 fi
3721
3722 else
3723
3724 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3725 if test "x$LINE" != x ; then
3726 eval "DEFAULT_$LINE"
3727 else
3728 no_cache=1
3729 fi
3730
3731 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3732
3733 fi
3734
3735
3736 eval "$ac_cv_use_streams"
3737 if test "$no_cache" != 1; then
3738 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3739 fi
3740
3741 if test "$wxUSE_STREAMS" = yes; then
3742 echo "$ac_t""yes" 1>&6
3743 else
3744 echo "$ac_t""no" 1>&6
3745 fi
3746
3747
3748 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3749 echo "configure:3750: checking for --enable-file" >&5
3750 no_cache=0
3751 # Check whether --enable-file or --disable-file was given.
3752 if test "${enable_file+set}" = set; then
3753 enableval="$enable_file"
3754
3755 if test "$enableval" = yes; then
3756 ac_cv_use_file='wxUSE_FILE=yes'
3757 else
3758 ac_cv_use_file='wxUSE_FILE=no'
3759 fi
3760
3761 else
3762
3763 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3764 if test "x$LINE" != x ; then
3765 eval "DEFAULT_$LINE"
3766 else
3767 no_cache=1
3768 fi
3769
3770 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3771
3772 fi
3773
3774
3775 eval "$ac_cv_use_file"
3776 if test "$no_cache" != 1; then
3777 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3778 fi
3779
3780 if test "$wxUSE_FILE" = yes; then
3781 echo "$ac_t""yes" 1>&6
3782 else
3783 echo "$ac_t""no" 1>&6
3784 fi
3785
3786
3787 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3788 echo "configure:3789: checking for --enable-ffile" >&5
3789 no_cache=0
3790 # Check whether --enable-ffile or --disable-ffile was given.
3791 if test "${enable_ffile+set}" = set; then
3792 enableval="$enable_ffile"
3793
3794 if test "$enableval" = yes; then
3795 ac_cv_use_ffile='wxUSE_FFILE=yes'
3796 else
3797 ac_cv_use_ffile='wxUSE_FFILE=no'
3798 fi
3799
3800 else
3801
3802 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3803 if test "x$LINE" != x ; then
3804 eval "DEFAULT_$LINE"
3805 else
3806 no_cache=1
3807 fi
3808
3809 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3810
3811 fi
3812
3813
3814 eval "$ac_cv_use_ffile"
3815 if test "$no_cache" != 1; then
3816 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3817 fi
3818
3819 if test "$wxUSE_FFILE" = yes; then
3820 echo "$ac_t""yes" 1>&6
3821 else
3822 echo "$ac_t""no" 1>&6
3823 fi
3824
3825
3826 echo $ac_n "checking for --enable-textbuf""... $ac_c" 1>&6
3827 echo "configure:3828: checking for --enable-textbuf" >&5
3828 no_cache=0
3829 # Check whether --enable-textbuf or --disable-textbuf was given.
3830 if test "${enable_textbuf+set}" = set; then
3831 enableval="$enable_textbuf"
3832
3833 if test "$enableval" = yes; then
3834 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
3835 else
3836 ac_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
3837 fi
3838
3839 else
3840
3841 LINE=`grep "wxUSE_TEXTBUFFER" ${wx_arg_cache_file}`
3842 if test "x$LINE" != x ; then
3843 eval "DEFAULT_$LINE"
3844 else
3845 no_cache=1
3846 fi
3847
3848 ac_cv_use_textbuf='wxUSE_TEXTBUFFER='$DEFAULT_wxUSE_TEXTBUFFER
3849
3850 fi
3851
3852
3853 eval "$ac_cv_use_textbuf"
3854 if test "$no_cache" != 1; then
3855 echo $ac_cv_use_textbuf >> ${wx_arg_cache_file}.tmp
3856 fi
3857
3858 if test "$wxUSE_TEXTBUFFER" = yes; then
3859 echo "$ac_t""yes" 1>&6
3860 else
3861 echo "$ac_t""no" 1>&6
3862 fi
3863
3864
3865 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3866 echo "configure:3867: checking for --enable-textfile" >&5
3867 no_cache=0
3868 # Check whether --enable-textfile or --disable-textfile was given.
3869 if test "${enable_textfile+set}" = set; then
3870 enableval="$enable_textfile"
3871
3872 if test "$enableval" = yes; then
3873 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3874 else
3875 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3876 fi
3877
3878 else
3879
3880 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3881 if test "x$LINE" != x ; then
3882 eval "DEFAULT_$LINE"
3883 else
3884 no_cache=1
3885 fi
3886
3887 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3888
3889 fi
3890
3891
3892 eval "$ac_cv_use_textfile"
3893 if test "$no_cache" != 1; then
3894 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3895 fi
3896
3897 if test "$wxUSE_TEXTFILE" = yes; then
3898 echo "$ac_t""yes" 1>&6
3899 else
3900 echo "$ac_t""no" 1>&6
3901 fi
3902
3903
3904 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3905 echo "configure:3906: checking for --enable-fontmap" >&5
3906 no_cache=0
3907 # Check whether --enable-fontmap or --disable-fontmap was given.
3908 if test "${enable_fontmap+set}" = set; then
3909 enableval="$enable_fontmap"
3910
3911 if test "$enableval" = yes; then
3912 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3913 else
3914 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3915 fi
3916
3917 else
3918
3919 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3920 if test "x$LINE" != x ; then
3921 eval "DEFAULT_$LINE"
3922 else
3923 no_cache=1
3924 fi
3925
3926 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3927
3928 fi
3929
3930
3931 eval "$ac_cv_use_fontmap"
3932 if test "$no_cache" != 1; then
3933 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3934 fi
3935
3936 if test "$wxUSE_FONTMAP" = yes; then
3937 echo "$ac_t""yes" 1>&6
3938 else
3939 echo "$ac_t""no" 1>&6
3940 fi
3941
3942
3943 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3944 echo "configure:3945: checking for --enable-unicode" >&5
3945 no_cache=0
3946 # Check whether --enable-unicode or --disable-unicode was given.
3947 if test "${enable_unicode+set}" = set; then
3948 enableval="$enable_unicode"
3949
3950 if test "$enableval" = yes; then
3951 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3952 else
3953 ac_cv_use_unicode='wxUSE_UNICODE=no'
3954 fi
3955
3956 else
3957
3958 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3959 if test "x$LINE" != x ; then
3960 eval "DEFAULT_$LINE"
3961 else
3962 no_cache=1
3963 fi
3964
3965 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3966
3967 fi
3968
3969
3970 eval "$ac_cv_use_unicode"
3971 if test "$no_cache" != 1; then
3972 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3973 fi
3974
3975 if test "$wxUSE_UNICODE" = yes; then
3976 echo "$ac_t""yes" 1>&6
3977 else
3978 echo "$ac_t""no" 1>&6
3979 fi
3980
3981
3982 echo $ac_n "checking for --enable-mslu""... $ac_c" 1>&6
3983 echo "configure:3984: checking for --enable-mslu" >&5
3984 no_cache=0
3985 # Check whether --enable-mslu or --disable-mslu was given.
3986 if test "${enable_mslu+set}" = set; then
3987 enableval="$enable_mslu"
3988
3989 if test "$enableval" = yes; then
3990 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
3991 else
3992 ac_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
3993 fi
3994
3995 else
3996
3997 LINE=`grep "wxUSE_UNICODE_MSLU" ${wx_arg_cache_file}`
3998 if test "x$LINE" != x ; then
3999 eval "DEFAULT_$LINE"
4000 else
4001 no_cache=1
4002 fi
4003
4004 ac_cv_use_mslu='wxUSE_UNICODE_MSLU='$DEFAULT_wxUSE_UNICODE_MSLU
4005
4006 fi
4007
4008
4009 eval "$ac_cv_use_mslu"
4010 if test "$no_cache" != 1; then
4011 echo $ac_cv_use_mslu >> ${wx_arg_cache_file}.tmp
4012 fi
4013
4014 if test "$wxUSE_UNICODE_MSLU" = yes; then
4015 echo "$ac_t""yes" 1>&6
4016 else
4017 echo "$ac_t""no" 1>&6
4018 fi
4019
4020
4021 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
4022 echo "configure:4023: checking for --enable-wxprintfv" >&5
4023 no_cache=0
4024 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
4025 if test "${enable_wxprintfv+set}" = set; then
4026 enableval="$enable_wxprintfv"
4027
4028 if test "$enableval" = yes; then
4029 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
4030 else
4031 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
4032 fi
4033
4034 else
4035
4036 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
4037 if test "x$LINE" != x ; then
4038 eval "DEFAULT_$LINE"
4039 else
4040 no_cache=1
4041 fi
4042
4043 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
4044
4045 fi
4046
4047
4048 eval "$ac_cv_use_wxprintfv"
4049 if test "$no_cache" != 1; then
4050 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
4051 fi
4052
4053 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
4054 echo "$ac_t""yes" 1>&6
4055 else
4056 echo "$ac_t""no" 1>&6
4057 fi
4058
4059
4060 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
4061 echo "configure:4062: checking for --enable-std_iostreams" >&5
4062 no_cache=0
4063 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
4064 if test "${enable_std_iostreams+set}" = set; then
4065 enableval="$enable_std_iostreams"
4066
4067 if test "$enableval" = yes; then
4068 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4069 else
4070 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4071 fi
4072
4073 else
4074
4075 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
4076 if test "x$LINE" != x ; then
4077 eval "DEFAULT_$LINE"
4078 else
4079 no_cache=1
4080 fi
4081
4082 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
4083
4084 fi
4085
4086
4087 eval "$ac_cv_use_std_iostreams"
4088 if test "$no_cache" != 1; then
4089 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
4090 fi
4091
4092 if test "$wxUSE_STD_IOSTREAM" = yes; then
4093 echo "$ac_t""yes" 1>&6
4094 else
4095 echo "$ac_t""no" 1>&6
4096 fi
4097
4098
4099 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
4100 echo "configure:4101: checking for --enable-filesystem" >&5
4101 no_cache=0
4102 # Check whether --enable-filesystem or --disable-filesystem was given.
4103 if test "${enable_filesystem+set}" = set; then
4104 enableval="$enable_filesystem"
4105
4106 if test "$enableval" = yes; then
4107 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
4108 else
4109 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
4110 fi
4111
4112 else
4113
4114 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
4115 if test "x$LINE" != x ; then
4116 eval "DEFAULT_$LINE"
4117 else
4118 no_cache=1
4119 fi
4120
4121 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
4122
4123 fi
4124
4125
4126 eval "$ac_cv_use_filesystem"
4127 if test "$no_cache" != 1; then
4128 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
4129 fi
4130
4131 if test "$wxUSE_FILESYSTEM" = yes; then
4132 echo "$ac_t""yes" 1>&6
4133 else
4134 echo "$ac_t""no" 1>&6
4135 fi
4136
4137
4138 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
4139 echo "configure:4140: checking for --enable-fs_inet" >&5
4140 no_cache=0
4141 # Check whether --enable-fs_inet or --disable-fs_inet was given.
4142 if test "${enable_fs_inet+set}" = set; then
4143 enableval="$enable_fs_inet"
4144
4145 if test "$enableval" = yes; then
4146 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
4147 else
4148 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
4149 fi
4150
4151 else
4152
4153 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
4154 if test "x$LINE" != x ; then
4155 eval "DEFAULT_$LINE"
4156 else
4157 no_cache=1
4158 fi
4159
4160 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
4161
4162 fi
4163
4164
4165 eval "$ac_cv_use_fs_inet"
4166 if test "$no_cache" != 1; then
4167 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
4168 fi
4169
4170 if test "$wxUSE_FS_INET" = yes; then
4171 echo "$ac_t""yes" 1>&6
4172 else
4173 echo "$ac_t""no" 1>&6
4174 fi
4175
4176
4177 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
4178 echo "configure:4179: checking for --enable-fs_zip" >&5
4179 no_cache=0
4180 # Check whether --enable-fs_zip or --disable-fs_zip was given.
4181 if test "${enable_fs_zip+set}" = set; then
4182 enableval="$enable_fs_zip"
4183
4184 if test "$enableval" = yes; then
4185 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
4186 else
4187 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
4188 fi
4189
4190 else
4191
4192 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
4193 if test "x$LINE" != x ; then
4194 eval "DEFAULT_$LINE"
4195 else
4196 no_cache=1
4197 fi
4198
4199 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4200
4201 fi
4202
4203
4204 eval "$ac_cv_use_fs_zip"
4205 if test "$no_cache" != 1; then
4206 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4207 fi
4208
4209 if test "$wxUSE_FS_ZIP" = yes; then
4210 echo "$ac_t""yes" 1>&6
4211 else
4212 echo "$ac_t""no" 1>&6
4213 fi
4214
4215
4216 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4217 echo "configure:4218: checking for --enable-zipstream" >&5
4218 no_cache=0
4219 # Check whether --enable-zipstream or --disable-zipstream was given.
4220 if test "${enable_zipstream+set}" = set; then
4221 enableval="$enable_zipstream"
4222
4223 if test "$enableval" = yes; then
4224 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4225 else
4226 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4227 fi
4228
4229 else
4230
4231 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4232 if test "x$LINE" != x ; then
4233 eval "DEFAULT_$LINE"
4234 else
4235 no_cache=1
4236 fi
4237
4238 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4239
4240 fi
4241
4242
4243 eval "$ac_cv_use_zipstream"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_ZIPSTREAM" = yes; then
4249 echo "$ac_t""yes" 1>&6
4250 else
4251 echo "$ac_t""no" 1>&6
4252 fi
4253
4254
4255
4256 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4257 echo "configure:4258: checking for --enable-catch_segvs" >&5
4258 no_cache=0
4259 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4260 if test "${enable_catch_segvs+set}" = set; then
4261 enableval="$enable_catch_segvs"
4262
4263 if test "$enableval" = yes; then
4264 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4265 else
4266 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4267 fi
4268
4269 else
4270
4271 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4272 if test "x$LINE" != x ; then
4273 eval "DEFAULT_$LINE"
4274 else
4275 no_cache=1
4276 fi
4277
4278 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4279
4280 fi
4281
4282
4283 eval "$ac_cv_use_catch_segvs"
4284 if test "$no_cache" != 1; then
4285 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4286 fi
4287
4288 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4289 echo "$ac_t""yes" 1>&6
4290 else
4291 echo "$ac_t""no" 1>&6
4292 fi
4293
4294
4295 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4296 echo "configure:4297: checking for --enable-snglinst" >&5
4297 no_cache=0
4298 # Check whether --enable-snglinst or --disable-snglinst was given.
4299 if test "${enable_snglinst+set}" = set; then
4300 enableval="$enable_snglinst"
4301
4302 if test "$enableval" = yes; then
4303 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4304 else
4305 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4306 fi
4307
4308 else
4309
4310 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4311 if test "x$LINE" != x ; then
4312 eval "DEFAULT_$LINE"
4313 else
4314 no_cache=1
4315 fi
4316
4317 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4318
4319 fi
4320
4321
4322 eval "$ac_cv_use_snglinst"
4323 if test "$no_cache" != 1; then
4324 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4325 fi
4326
4327 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4328 echo "$ac_t""yes" 1>&6
4329 else
4330 echo "$ac_t""no" 1>&6
4331 fi
4332
4333
4334
4335 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4336 echo "configure:4337: checking for --enable-mimetype" >&5
4337 no_cache=0
4338 # Check whether --enable-mimetype or --disable-mimetype was given.
4339 if test "${enable_mimetype+set}" = set; then
4340 enableval="$enable_mimetype"
4341
4342 if test "$enableval" = yes; then
4343 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4344 else
4345 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4346 fi
4347
4348 else
4349
4350 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4351 if test "x$LINE" != x ; then
4352 eval "DEFAULT_$LINE"
4353 else
4354 no_cache=1
4355 fi
4356
4357 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4358
4359 fi
4360
4361
4362 eval "$ac_cv_use_mimetype"
4363 if test "$no_cache" != 1; then
4364 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4365 fi
4366
4367 if test "$wxUSE_MIMETYPE" = yes; then
4368 echo "$ac_t""yes" 1>&6
4369 else
4370 echo "$ac_t""no" 1>&6
4371 fi
4372
4373
4374 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4375 echo "configure:4376: checking for --enable-system_options" >&5
4376 no_cache=0
4377 # Check whether --enable-system_options or --disable-system_options was given.
4378 if test "${enable_system_options+set}" = set; then
4379 enableval="$enable_system_options"
4380
4381 if test "$enableval" = yes; then
4382 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4383 else
4384 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4385 fi
4386
4387 else
4388
4389 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4390 if test "x$LINE" != x ; then
4391 eval "DEFAULT_$LINE"
4392 else
4393 no_cache=1
4394 fi
4395
4396 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4397
4398 fi
4399
4400
4401 eval "$ac_cv_use_system_options"
4402 if test "$no_cache" != 1; then
4403 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4404 fi
4405
4406 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4407 echo "$ac_t""yes" 1>&6
4408 else
4409 echo "$ac_t""no" 1>&6
4410 fi
4411
4412
4413
4414
4415 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4416 echo "configure:4417: checking for --enable-threads" >&5
4417 no_cache=0
4418 # Check whether --enable-threads or --disable-threads was given.
4419 if test "${enable_threads+set}" = set; then
4420 enableval="$enable_threads"
4421
4422 if test "$enableval" = yes; then
4423 ac_cv_use_threads='wxUSE_THREADS=yes'
4424 else
4425 ac_cv_use_threads='wxUSE_THREADS=no'
4426 fi
4427
4428 else
4429
4430 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4431 if test "x$LINE" != x ; then
4432 eval "DEFAULT_$LINE"
4433 else
4434 no_cache=1
4435 fi
4436
4437 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4438
4439 fi
4440
4441
4442 eval "$ac_cv_use_threads"
4443 if test "$no_cache" != 1; then
4444 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4445 fi
4446
4447 if test "$wxUSE_THREADS" = yes; then
4448 echo "$ac_t""yes" 1>&6
4449 else
4450 echo "$ac_t""no" 1>&6
4451 fi
4452
4453
4454 if test "$wxUSE_GUI" = "yes"; then
4455
4456
4457
4458 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4459 echo "configure:4460: checking for --enable-docview" >&5
4460 no_cache=0
4461 # Check whether --enable-docview or --disable-docview was given.
4462 if test "${enable_docview+set}" = set; then
4463 enableval="$enable_docview"
4464
4465 if test "$enableval" = yes; then
4466 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4467 else
4468 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4469 fi
4470
4471 else
4472
4473 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4474 if test "x$LINE" != x ; then
4475 eval "DEFAULT_$LINE"
4476 else
4477 no_cache=1
4478 fi
4479
4480 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4481
4482 fi
4483
4484
4485 eval "$ac_cv_use_docview"
4486 if test "$no_cache" != 1; then
4487 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4488 fi
4489
4490 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4491 echo "$ac_t""yes" 1>&6
4492 else
4493 echo "$ac_t""no" 1>&6
4494 fi
4495
4496
4497 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4498 echo "configure:4499: checking for --enable-help" >&5
4499 no_cache=0
4500 # Check whether --enable-help or --disable-help was given.
4501 if test "${enable_help+set}" = set; then
4502 enableval="$enable_help"
4503
4504 if test "$enableval" = yes; then
4505 ac_cv_use_help='wxUSE_HELP=yes'
4506 else
4507 ac_cv_use_help='wxUSE_HELP=no'
4508 fi
4509
4510 else
4511
4512 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4513 if test "x$LINE" != x ; then
4514 eval "DEFAULT_$LINE"
4515 else
4516 no_cache=1
4517 fi
4518
4519 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4520
4521 fi
4522
4523
4524 eval "$ac_cv_use_help"
4525 if test "$no_cache" != 1; then
4526 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4527 fi
4528
4529 if test "$wxUSE_HELP" = yes; then
4530 echo "$ac_t""yes" 1>&6
4531 else
4532 echo "$ac_t""no" 1>&6
4533 fi
4534
4535
4536 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4537 echo "configure:4538: checking for --enable-mshtmlhelp" >&5
4538 no_cache=0
4539 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4540 if test "${enable_mshtmlhelp+set}" = set; then
4541 enableval="$enable_mshtmlhelp"
4542
4543 if test "$enableval" = yes; then
4544 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4545 else
4546 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4547 fi
4548
4549 else
4550
4551 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4552 if test "x$LINE" != x ; then
4553 eval "DEFAULT_$LINE"
4554 else
4555 no_cache=1
4556 fi
4557
4558 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4559
4560 fi
4561
4562
4563 eval "$ac_cv_use_mshtmlhelp"
4564 if test "$no_cache" != 1; then
4565 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4566 fi
4567
4568 if test "$wxUSE_MS_HTML_HELP" = yes; then
4569 echo "$ac_t""yes" 1>&6
4570 else
4571 echo "$ac_t""no" 1>&6
4572 fi
4573
4574
4575 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4576 echo "configure:4577: checking for --enable-html" >&5
4577 no_cache=0
4578 # Check whether --enable-html or --disable-html was given.
4579 if test "${enable_html+set}" = set; then
4580 enableval="$enable_html"
4581
4582 if test "$enableval" = yes; then
4583 ac_cv_use_html='wxUSE_HTML=yes'
4584 else
4585 ac_cv_use_html='wxUSE_HTML=no'
4586 fi
4587
4588 else
4589
4590 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4591 if test "x$LINE" != x ; then
4592 eval "DEFAULT_$LINE"
4593 else
4594 no_cache=1
4595 fi
4596
4597 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4598
4599 fi
4600
4601
4602 eval "$ac_cv_use_html"
4603 if test "$no_cache" != 1; then
4604 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4605 fi
4606
4607 if test "$wxUSE_HTML" = yes; then
4608 echo "$ac_t""yes" 1>&6
4609 else
4610 echo "$ac_t""no" 1>&6
4611 fi
4612
4613
4614 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4615 echo "configure:4616: checking for --enable-htmlhelp" >&5
4616 no_cache=0
4617 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4618 if test "${enable_htmlhelp+set}" = set; then
4619 enableval="$enable_htmlhelp"
4620
4621 if test "$enableval" = yes; then
4622 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4623 else
4624 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4625 fi
4626
4627 else
4628
4629 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4630 if test "x$LINE" != x ; then
4631 eval "DEFAULT_$LINE"
4632 else
4633 no_cache=1
4634 fi
4635
4636 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4637
4638 fi
4639
4640
4641 eval "$ac_cv_use_htmlhelp"
4642 if test "$no_cache" != 1; then
4643 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4644 fi
4645
4646 if test "$wxUSE_WXHTML_HELP" = yes; then
4647 echo "$ac_t""yes" 1>&6
4648 else
4649 echo "$ac_t""no" 1>&6
4650 fi
4651
4652
4653 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4654 echo "configure:4655: checking for --enable-constraints" >&5
4655 no_cache=0
4656 # Check whether --enable-constraints or --disable-constraints was given.
4657 if test "${enable_constraints+set}" = set; then
4658 enableval="$enable_constraints"
4659
4660 if test "$enableval" = yes; then
4661 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4662 else
4663 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4664 fi
4665
4666 else
4667
4668 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4669 if test "x$LINE" != x ; then
4670 eval "DEFAULT_$LINE"
4671 else
4672 no_cache=1
4673 fi
4674
4675 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4676
4677 fi
4678
4679
4680 eval "$ac_cv_use_constraints"
4681 if test "$no_cache" != 1; then
4682 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4683 fi
4684
4685 if test "$wxUSE_CONSTRAINTS" = yes; then
4686 echo "$ac_t""yes" 1>&6
4687 else
4688 echo "$ac_t""no" 1>&6
4689 fi
4690
4691
4692 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4693 echo "configure:4694: checking for --enable-printarch" >&5
4694 no_cache=0
4695 # Check whether --enable-printarch or --disable-printarch was given.
4696 if test "${enable_printarch+set}" = set; then
4697 enableval="$enable_printarch"
4698
4699 if test "$enableval" = yes; then
4700 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4701 else
4702 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4703 fi
4704
4705 else
4706
4707 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4708 if test "x$LINE" != x ; then
4709 eval "DEFAULT_$LINE"
4710 else
4711 no_cache=1
4712 fi
4713
4714 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4715
4716 fi
4717
4718
4719 eval "$ac_cv_use_printarch"
4720 if test "$no_cache" != 1; then
4721 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4722 fi
4723
4724 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4725 echo "$ac_t""yes" 1>&6
4726 else
4727 echo "$ac_t""no" 1>&6
4728 fi
4729
4730
4731 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4732 echo "configure:4733: checking for --enable-mdi" >&5
4733 no_cache=0
4734 # Check whether --enable-mdi or --disable-mdi was given.
4735 if test "${enable_mdi+set}" = set; then
4736 enableval="$enable_mdi"
4737
4738 if test "$enableval" = yes; then
4739 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4740 else
4741 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4742 fi
4743
4744 else
4745
4746 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4747 if test "x$LINE" != x ; then
4748 eval "DEFAULT_$LINE"
4749 else
4750 no_cache=1
4751 fi
4752
4753 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4754
4755 fi
4756
4757
4758 eval "$ac_cv_use_mdi"
4759 if test "$no_cache" != 1; then
4760 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4761 fi
4762
4763 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4764 echo "$ac_t""yes" 1>&6
4765 else
4766 echo "$ac_t""no" 1>&6
4767 fi
4768
4769
4770 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4771 echo "configure:4772: checking for --enable-loggui" >&5
4772 no_cache=0
4773 # Check whether --enable-loggui or --disable-loggui was given.
4774 if test "${enable_loggui+set}" = set; then
4775 enableval="$enable_loggui"
4776
4777 if test "$enableval" = yes; then
4778 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4779 else
4780 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4781 fi
4782
4783 else
4784
4785 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4786 if test "x$LINE" != x ; then
4787 eval "DEFAULT_$LINE"
4788 else
4789 no_cache=1
4790 fi
4791
4792 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4793
4794 fi
4795
4796
4797 eval "$ac_cv_use_loggui"
4798 if test "$no_cache" != 1; then
4799 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4800 fi
4801
4802 if test "$wxUSE_LOGGUI" = yes; then
4803 echo "$ac_t""yes" 1>&6
4804 else
4805 echo "$ac_t""no" 1>&6
4806 fi
4807
4808
4809 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4810 echo "configure:4811: checking for --enable-logwin" >&5
4811 no_cache=0
4812 # Check whether --enable-logwin or --disable-logwin was given.
4813 if test "${enable_logwin+set}" = set; then
4814 enableval="$enable_logwin"
4815
4816 if test "$enableval" = yes; then
4817 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4818 else
4819 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4820 fi
4821
4822 else
4823
4824 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4825 if test "x$LINE" != x ; then
4826 eval "DEFAULT_$LINE"
4827 else
4828 no_cache=1
4829 fi
4830
4831 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4832
4833 fi
4834
4835
4836 eval "$ac_cv_use_logwin"
4837 if test "$no_cache" != 1; then
4838 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4839 fi
4840
4841 if test "$wxUSE_LOGWINDOW" = yes; then
4842 echo "$ac_t""yes" 1>&6
4843 else
4844 echo "$ac_t""no" 1>&6
4845 fi
4846
4847
4848 echo $ac_n "checking for --enable-logdialog""... $ac_c" 1>&6
4849 echo "configure:4850: checking for --enable-logdialog" >&5
4850 no_cache=0
4851 # Check whether --enable-logdialog or --disable-logdialog was given.
4852 if test "${enable_logdialog+set}" = set; then
4853 enableval="$enable_logdialog"
4854
4855 if test "$enableval" = yes; then
4856 ac_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
4857 else
4858 ac_cv_use_logdialog='wxUSE_LOGDIALOG=no'
4859 fi
4860
4861 else
4862
4863 LINE=`grep "wxUSE_LOGDIALOG" ${wx_arg_cache_file}`
4864 if test "x$LINE" != x ; then
4865 eval "DEFAULT_$LINE"
4866 else
4867 no_cache=1
4868 fi
4869
4870 ac_cv_use_logdialog='wxUSE_LOGDIALOG='$DEFAULT_wxUSE_LOGDIALOG
4871
4872 fi
4873
4874
4875 eval "$ac_cv_use_logdialog"
4876 if test "$no_cache" != 1; then
4877 echo $ac_cv_use_logdialog >> ${wx_arg_cache_file}.tmp
4878 fi
4879
4880 if test "$wxUSE_LOGDIALOG" = yes; then
4881 echo "$ac_t""yes" 1>&6
4882 else
4883 echo "$ac_t""no" 1>&6
4884 fi
4885
4886
4887
4888 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4889 echo "configure:4890: checking for --enable-postscript" >&5
4890 no_cache=0
4891 # Check whether --enable-postscript or --disable-postscript was given.
4892 if test "${enable_postscript+set}" = set; then
4893 enableval="$enable_postscript"
4894
4895 if test "$enableval" = yes; then
4896 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4897 else
4898 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4899 fi
4900
4901 else
4902
4903 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4904 if test "x$LINE" != x ; then
4905 eval "DEFAULT_$LINE"
4906 else
4907 no_cache=1
4908 fi
4909
4910 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4911
4912 fi
4913
4914
4915 eval "$ac_cv_use_postscript"
4916 if test "$no_cache" != 1; then
4917 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4918 fi
4919
4920 if test "$wxUSE_POSTSCRIPT" = yes; then
4921 echo "$ac_t""yes" 1>&6
4922 else
4923 echo "$ac_t""no" 1>&6
4924 fi
4925
4926
4927
4928
4929
4930 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4931 echo "configure:4932: checking for --enable-prologio" >&5
4932 no_cache=0
4933 # Check whether --enable-prologio or --disable-prologio was given.
4934 if test "${enable_prologio+set}" = set; then
4935 enableval="$enable_prologio"
4936
4937 if test "$enableval" = yes; then
4938 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4939 else
4940 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4941 fi
4942
4943 else
4944
4945 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4946 if test "x$LINE" != x ; then
4947 eval "DEFAULT_$LINE"
4948 else
4949 no_cache=1
4950 fi
4951
4952 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4953
4954 fi
4955
4956
4957 eval "$ac_cv_use_prologio"
4958 if test "$no_cache" != 1; then
4959 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4960 fi
4961
4962 if test "$wxUSE_PROLOGIO" = yes; then
4963 echo "$ac_t""yes" 1>&6
4964 else
4965 echo "$ac_t""no" 1>&6
4966 fi
4967
4968
4969 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4970 echo "configure:4971: checking for --enable-resources" >&5
4971 no_cache=0
4972 # Check whether --enable-resources or --disable-resources was given.
4973 if test "${enable_resources+set}" = set; then
4974 enableval="$enable_resources"
4975
4976 if test "$enableval" = yes; then
4977 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4978 else
4979 ac_cv_use_resources='wxUSE_RESOURCES=no'
4980 fi
4981
4982 else
4983
4984 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4985 if test "x$LINE" != x ; then
4986 eval "DEFAULT_$LINE"
4987 else
4988 no_cache=1
4989 fi
4990
4991 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4992
4993 fi
4994
4995
4996 eval "$ac_cv_use_resources"
4997 if test "$no_cache" != 1; then
4998 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4999 fi
5000
5001 if test "$wxUSE_RESOURCES" = yes; then
5002 echo "$ac_t""yes" 1>&6
5003 else
5004 echo "$ac_t""no" 1>&6
5005 fi
5006
5007
5008
5009 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
5010 echo "configure:5011: checking for --enable-xresources" >&5
5011 no_cache=0
5012 # Check whether --enable-xresources or --disable-xresources was given.
5013 if test "${enable_xresources+set}" = set; then
5014 enableval="$enable_xresources"
5015
5016 if test "$enableval" = yes; then
5017 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
5018 else
5019 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
5020 fi
5021
5022 else
5023
5024 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
5025 if test "x$LINE" != x ; then
5026 eval "DEFAULT_$LINE"
5027 else
5028 no_cache=1
5029 fi
5030
5031 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
5032
5033 fi
5034
5035
5036 eval "$ac_cv_use_xresources"
5037 if test "$no_cache" != 1; then
5038 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
5039 fi
5040
5041 if test "$wxUSE_X_RESOURCES" = yes; then
5042 echo "$ac_t""yes" 1>&6
5043 else
5044 echo "$ac_t""no" 1>&6
5045 fi
5046
5047
5048
5049
5050 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
5051 echo "configure:5052: checking for --enable-clipboard" >&5
5052 no_cache=0
5053 # Check whether --enable-clipboard or --disable-clipboard was given.
5054 if test "${enable_clipboard+set}" = set; then
5055 enableval="$enable_clipboard"
5056
5057 if test "$enableval" = yes; then
5058 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
5059 else
5060 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
5061 fi
5062
5063 else
5064
5065 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
5066 if test "x$LINE" != x ; then
5067 eval "DEFAULT_$LINE"
5068 else
5069 no_cache=1
5070 fi
5071
5072 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
5073
5074 fi
5075
5076
5077 eval "$ac_cv_use_clipboard"
5078 if test "$no_cache" != 1; then
5079 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
5080 fi
5081
5082 if test "$wxUSE_CLIPBOARD" = yes; then
5083 echo "$ac_t""yes" 1>&6
5084 else
5085 echo "$ac_t""no" 1>&6
5086 fi
5087
5088
5089 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
5090 echo "configure:5091: checking for --enable-dnd" >&5
5091 no_cache=0
5092 # Check whether --enable-dnd or --disable-dnd was given.
5093 if test "${enable_dnd+set}" = set; then
5094 enableval="$enable_dnd"
5095
5096 if test "$enableval" = yes; then
5097 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
5098 else
5099 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
5100 fi
5101
5102 else
5103
5104 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
5105 if test "x$LINE" != x ; then
5106 eval "DEFAULT_$LINE"
5107 else
5108 no_cache=1
5109 fi
5110
5111 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
5112
5113 fi
5114
5115
5116 eval "$ac_cv_use_dnd"
5117 if test "$no_cache" != 1; then
5118 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
5119 fi
5120
5121 if test "$wxUSE_DRAG_AND_DROP" = yes; then
5122 echo "$ac_t""yes" 1>&6
5123 else
5124 echo "$ac_t""no" 1>&6
5125 fi
5126
5127
5128 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
5129 echo "configure:5130: checking for --enable-metafile" >&5
5130 no_cache=0
5131 # Check whether --enable-metafile or --disable-metafile was given.
5132 if test "${enable_metafile+set}" = set; then
5133 enableval="$enable_metafile"
5134
5135 if test "$enableval" = yes; then
5136 ac_cv_use_metafile='wxUSE_METAFILE=yes'
5137 else
5138 ac_cv_use_metafile='wxUSE_METAFILE=no'
5139 fi
5140
5141 else
5142
5143 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
5144 if test "x$LINE" != x ; then
5145 eval "DEFAULT_$LINE"
5146 else
5147 no_cache=1
5148 fi
5149
5150 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
5151
5152 fi
5153
5154
5155 eval "$ac_cv_use_metafile"
5156 if test "$no_cache" != 1; then
5157 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
5158 fi
5159
5160 if test "$wxUSE_METAFILE" = yes; then
5161 echo "$ac_t""yes" 1>&6
5162 else
5163 echo "$ac_t""no" 1>&6
5164 fi
5165
5166
5167
5168 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
5169 echo "configure:5170: checking for --enable-treelayout" >&5
5170 no_cache=0
5171 # Check whether --enable-treelayout or --disable-treelayout was given.
5172 if test "${enable_treelayout+set}" = set; then
5173 enableval="$enable_treelayout"
5174
5175 if test "$enableval" = yes; then
5176 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
5177 else
5178 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
5179 fi
5180
5181 else
5182
5183 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
5184 if test "x$LINE" != x ; then
5185 eval "DEFAULT_$LINE"
5186 else
5187 no_cache=1
5188 fi
5189
5190 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
5191
5192 fi
5193
5194
5195 eval "$ac_cv_use_treelayout"
5196 if test "$no_cache" != 1; then
5197 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5198 fi
5199
5200 if test "$wxUSE_TREELAYOUT" = yes; then
5201 echo "$ac_t""yes" 1>&6
5202 else
5203 echo "$ac_t""no" 1>&6
5204 fi
5205
5206
5207
5208
5209 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5210 echo "configure:5211: checking for --enable-controls" >&5
5211 no_cache=0
5212 # Check whether --enable-controls or --disable-controls was given.
5213 if test "${enable_controls+set}" = set; then
5214 enableval="$enable_controls"
5215
5216 if test "$enableval" = yes; then
5217 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5218 else
5219 ac_cv_use_controls='wxUSE_CONTROLS=no'
5220 fi
5221
5222 else
5223
5224 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5225 if test "x$LINE" != x ; then
5226 eval "DEFAULT_$LINE"
5227 else
5228 no_cache=1
5229 fi
5230
5231 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5232
5233 fi
5234
5235
5236 eval "$ac_cv_use_controls"
5237 if test "$no_cache" != 1; then
5238 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5239 fi
5240
5241 if test "$wxUSE_CONTROLS" = yes; then
5242 echo "$ac_t""yes" 1>&6
5243 else
5244 echo "$ac_t""no" 1>&6
5245 fi
5246
5247
5248 if test "$wxUSE_CONTROLS" = "yes"; then
5249 DEFAULT_wxUSE_ACCEL=yes
5250 DEFAULT_wxUSE_BMPBUTTON=yes
5251 DEFAULT_wxUSE_BUTTON=yes
5252 DEFAULT_wxUSE_CALCTRL=no
5253 DEFAULT_wxUSE_CARET=yes
5254 DEFAULT_wxUSE_COMBOBOX=yes
5255 DEFAULT_wxUSE_CHECKBOX=yes
5256 DEFAULT_wxUSE_CHECKLISTBOX=yes
5257 DEFAULT_wxUSE_CHOICE=yes
5258 DEFAULT_wxUSE_GAUGE=yes
5259 DEFAULT_wxUSE_GRID=yes
5260 DEFAULT_wxUSE_NEW_GRID=yes
5261 DEFAULT_wxUSE_IMAGLIST=yes
5262 DEFAULT_wxUSE_LISTBOX=yes
5263 DEFAULT_wxUSE_LISTCTRL=yes
5264 DEFAULT_wxUSE_NOTEBOOK=yes
5265 DEFAULT_wxUSE_PROPSHEET=yes
5266 DEFAULT_wxUSE_RADIOBOX=yes
5267 DEFAULT_wxUSE_RADIOBTN=yes
5268 DEFAULT_wxUSE_SASH=yes
5269 DEFAULT_wxUSE_SCROLLBAR=yes
5270 DEFAULT_wxUSE_SLIDER=yes
5271 DEFAULT_wxUSE_SPINBTN=yes
5272 DEFAULT_wxUSE_SPINCTRL=yes
5273 DEFAULT_wxUSE_SPLITTER=yes
5274 DEFAULT_wxUSE_STATBMP=yes
5275 DEFAULT_wxUSE_STATBOX=yes
5276 DEFAULT_wxUSE_STATLINE=yes
5277 DEFAULT_wxUSE_STATUSBAR=yes
5278 DEFAULT_wxUSE_TAB_DIALOG=yes
5279 DEFAULT_wxUSE_TOGGLEBTN=yes
5280 DEFAULT_wxUSE_TOOLBAR=yes
5281 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5282 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5283 DEFAULT_wxUSE_TOOLTIPS=yes
5284 DEFAULT_wxUSE_TREECTRL=yes
5285 DEFAULT_wxUSE_POPUPWIN=yes
5286 DEFAULT_wxUSE_TIPWINDOW=yes
5287 elif test "$wxUSE_CONTROLS" = "no"; then
5288 DEFAULT_wxUSE_ACCEL=no
5289 DEFAULT_wxUSE_BMPBUTTON=no
5290 DEFAULT_wxUSE_BUTTON=no
5291 DEFAULT_wxUSE_CALCTRL=no
5292 DEFAULT_wxUSE_CARET=no
5293 DEFAULT_wxUSE_COMBOBOX=no
5294 DEFAULT_wxUSE_CHECKBOX=no
5295 DEFAULT_wxUSE_CHECKLISTBOX=no
5296 DEFAULT_wxUSE_CHOICE=no
5297 DEFAULT_wxUSE_GAUGE=no
5298 DEFAULT_wxUSE_GRID=no
5299 DEFAULT_wxUSE_NEW_GRID=no
5300 DEFAULT_wxUSE_IMAGLIST=no
5301 DEFAULT_wxUSE_LISTBOX=no
5302 DEFAULT_wxUSE_LISTCTRL=no
5303 DEFAULT_wxUSE_NOTEBOOK=no
5304 DEFAULT_wxUSE_PROPSHEET=no
5305 DEFAULT_wxUSE_RADIOBOX=no
5306 DEFAULT_wxUSE_RADIOBTN=no
5307 DEFAULT_wxUSE_SASH=no
5308 DEFAULT_wxUSE_SCROLLBAR=no
5309 DEFAULT_wxUSE_SLIDER=no
5310 DEFAULT_wxUSE_SPINBTN=no
5311 DEFAULT_wxUSE_SPINCTRL=no
5312 DEFAULT_wxUSE_SPLITTER=no
5313 DEFAULT_wxUSE_STATBMP=no
5314 DEFAULT_wxUSE_STATBOX=no
5315 DEFAULT_wxUSE_STATLINE=no
5316 DEFAULT_wxUSE_STATUSBAR=no
5317 DEFAULT_wxUSE_TAB_DIALOG=no
5318 DEFAULT_wxUSE_TOGGLEBTN=no
5319 DEFAULT_wxUSE_TOOLBAR=no
5320 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5321 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5322 DEFAULT_wxUSE_TOOLTIPS=no
5323 DEFAULT_wxUSE_TREECTRL=no
5324 DEFAULT_wxUSE_POPUPWIN=no
5325 DEFAULT_wxUSE_TIPWINDOW=no
5326 fi
5327
5328
5329 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5330 echo "configure:5331: checking for --enable-accel" >&5
5331 no_cache=0
5332 # Check whether --enable-accel or --disable-accel was given.
5333 if test "${enable_accel+set}" = set; then
5334 enableval="$enable_accel"
5335
5336 if test "$enableval" = yes; then
5337 ac_cv_use_accel='wxUSE_ACCEL=yes'
5338 else
5339 ac_cv_use_accel='wxUSE_ACCEL=no'
5340 fi
5341
5342 else
5343
5344 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5345 if test "x$LINE" != x ; then
5346 eval "DEFAULT_$LINE"
5347 else
5348 no_cache=1
5349 fi
5350
5351 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5352
5353 fi
5354
5355
5356 eval "$ac_cv_use_accel"
5357 if test "$no_cache" != 1; then
5358 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5359 fi
5360
5361 if test "$wxUSE_ACCEL" = yes; then
5362 echo "$ac_t""yes" 1>&6
5363 else
5364 echo "$ac_t""no" 1>&6
5365 fi
5366
5367
5368 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5369 echo "configure:5370: checking for --enable-button" >&5
5370 no_cache=0
5371 # Check whether --enable-button or --disable-button was given.
5372 if test "${enable_button+set}" = set; then
5373 enableval="$enable_button"
5374
5375 if test "$enableval" = yes; then
5376 ac_cv_use_button='wxUSE_BUTTON=yes'
5377 else
5378 ac_cv_use_button='wxUSE_BUTTON=no'
5379 fi
5380
5381 else
5382
5383 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5384 if test "x$LINE" != x ; then
5385 eval "DEFAULT_$LINE"
5386 else
5387 no_cache=1
5388 fi
5389
5390 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5391
5392 fi
5393
5394
5395 eval "$ac_cv_use_button"
5396 if test "$no_cache" != 1; then
5397 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5398 fi
5399
5400 if test "$wxUSE_BUTTON" = yes; then
5401 echo "$ac_t""yes" 1>&6
5402 else
5403 echo "$ac_t""no" 1>&6
5404 fi
5405
5406
5407 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5408 echo "configure:5409: checking for --enable-bmpbutton" >&5
5409 no_cache=0
5410 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5411 if test "${enable_bmpbutton+set}" = set; then
5412 enableval="$enable_bmpbutton"
5413
5414 if test "$enableval" = yes; then
5415 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5416 else
5417 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5418 fi
5419
5420 else
5421
5422 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5423 if test "x$LINE" != x ; then
5424 eval "DEFAULT_$LINE"
5425 else
5426 no_cache=1
5427 fi
5428
5429 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5430
5431 fi
5432
5433
5434 eval "$ac_cv_use_bmpbutton"
5435 if test "$no_cache" != 1; then
5436 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5437 fi
5438
5439 if test "$wxUSE_BMPBUTTON" = yes; then
5440 echo "$ac_t""yes" 1>&6
5441 else
5442 echo "$ac_t""no" 1>&6
5443 fi
5444
5445
5446 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5447 echo "configure:5448: checking for --enable-calendar" >&5
5448 no_cache=0
5449 # Check whether --enable-calendar or --disable-calendar was given.
5450 if test "${enable_calendar+set}" = set; then
5451 enableval="$enable_calendar"
5452
5453 if test "$enableval" = yes; then
5454 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5455 else
5456 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5457 fi
5458
5459 else
5460
5461 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5462 if test "x$LINE" != x ; then
5463 eval "DEFAULT_$LINE"
5464 else
5465 no_cache=1
5466 fi
5467
5468 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5469
5470 fi
5471
5472
5473 eval "$ac_cv_use_calendar"
5474 if test "$no_cache" != 1; then
5475 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5476 fi
5477
5478 if test "$wxUSE_CALCTRL" = yes; then
5479 echo "$ac_t""yes" 1>&6
5480 else
5481 echo "$ac_t""no" 1>&6
5482 fi
5483
5484
5485 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5486 echo "configure:5487: checking for --enable-caret" >&5
5487 no_cache=0
5488 # Check whether --enable-caret or --disable-caret was given.
5489 if test "${enable_caret+set}" = set; then
5490 enableval="$enable_caret"
5491
5492 if test "$enableval" = yes; then
5493 ac_cv_use_caret='wxUSE_CARET=yes'
5494 else
5495 ac_cv_use_caret='wxUSE_CARET=no'
5496 fi
5497
5498 else
5499
5500 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5501 if test "x$LINE" != x ; then
5502 eval "DEFAULT_$LINE"
5503 else
5504 no_cache=1
5505 fi
5506
5507 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5508
5509 fi
5510
5511
5512 eval "$ac_cv_use_caret"
5513 if test "$no_cache" != 1; then
5514 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5515 fi
5516
5517 if test "$wxUSE_CARET" = yes; then
5518 echo "$ac_t""yes" 1>&6
5519 else
5520 echo "$ac_t""no" 1>&6
5521 fi
5522
5523
5524 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5525 echo "configure:5526: checking for --enable-checkbox" >&5
5526 no_cache=0
5527 # Check whether --enable-checkbox or --disable-checkbox was given.
5528 if test "${enable_checkbox+set}" = set; then
5529 enableval="$enable_checkbox"
5530
5531 if test "$enableval" = yes; then
5532 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5533 else
5534 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5535 fi
5536
5537 else
5538
5539 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5540 if test "x$LINE" != x ; then
5541 eval "DEFAULT_$LINE"
5542 else
5543 no_cache=1
5544 fi
5545
5546 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5547
5548 fi
5549
5550
5551 eval "$ac_cv_use_checkbox"
5552 if test "$no_cache" != 1; then
5553 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5554 fi
5555
5556 if test "$wxUSE_CHECKBOX" = yes; then
5557 echo "$ac_t""yes" 1>&6
5558 else
5559 echo "$ac_t""no" 1>&6
5560 fi
5561
5562
5563 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5564 echo "configure:5565: checking for --enable-checklst" >&5
5565 no_cache=0
5566 # Check whether --enable-checklst or --disable-checklst was given.
5567 if test "${enable_checklst+set}" = set; then
5568 enableval="$enable_checklst"
5569
5570 if test "$enableval" = yes; then
5571 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5572 else
5573 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5574 fi
5575
5576 else
5577
5578 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5579 if test "x$LINE" != x ; then
5580 eval "DEFAULT_$LINE"
5581 else
5582 no_cache=1
5583 fi
5584
5585 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5586
5587 fi
5588
5589
5590 eval "$ac_cv_use_checklst"
5591 if test "$no_cache" != 1; then
5592 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5593 fi
5594
5595 if test "$wxUSE_CHECKLST" = yes; then
5596 echo "$ac_t""yes" 1>&6
5597 else
5598 echo "$ac_t""no" 1>&6
5599 fi
5600
5601
5602 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5603 echo "configure:5604: checking for --enable-choice" >&5
5604 no_cache=0
5605 # Check whether --enable-choice or --disable-choice was given.
5606 if test "${enable_choice+set}" = set; then
5607 enableval="$enable_choice"
5608
5609 if test "$enableval" = yes; then
5610 ac_cv_use_choice='wxUSE_CHOICE=yes'
5611 else
5612 ac_cv_use_choice='wxUSE_CHOICE=no'
5613 fi
5614
5615 else
5616
5617 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5618 if test "x$LINE" != x ; then
5619 eval "DEFAULT_$LINE"
5620 else
5621 no_cache=1
5622 fi
5623
5624 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5625
5626 fi
5627
5628
5629 eval "$ac_cv_use_choice"
5630 if test "$no_cache" != 1; then
5631 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5632 fi
5633
5634 if test "$wxUSE_CHOICE" = yes; then
5635 echo "$ac_t""yes" 1>&6
5636 else
5637 echo "$ac_t""no" 1>&6
5638 fi
5639
5640
5641 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5642 echo "configure:5643: checking for --enable-combobox" >&5
5643 no_cache=0
5644 # Check whether --enable-combobox or --disable-combobox was given.
5645 if test "${enable_combobox+set}" = set; then
5646 enableval="$enable_combobox"
5647
5648 if test "$enableval" = yes; then
5649 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5650 else
5651 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5652 fi
5653
5654 else
5655
5656 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5657 if test "x$LINE" != x ; then
5658 eval "DEFAULT_$LINE"
5659 else
5660 no_cache=1
5661 fi
5662
5663 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5664
5665 fi
5666
5667
5668 eval "$ac_cv_use_combobox"
5669 if test "$no_cache" != 1; then
5670 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5671 fi
5672
5673 if test "$wxUSE_COMBOBOX" = yes; then
5674 echo "$ac_t""yes" 1>&6
5675 else
5676 echo "$ac_t""no" 1>&6
5677 fi
5678
5679
5680 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5681 echo "configure:5682: checking for --enable-gauge" >&5
5682 no_cache=0
5683 # Check whether --enable-gauge or --disable-gauge was given.
5684 if test "${enable_gauge+set}" = set; then
5685 enableval="$enable_gauge"
5686
5687 if test "$enableval" = yes; then
5688 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5689 else
5690 ac_cv_use_gauge='wxUSE_GAUGE=no'
5691 fi
5692
5693 else
5694
5695 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5696 if test "x$LINE" != x ; then
5697 eval "DEFAULT_$LINE"
5698 else
5699 no_cache=1
5700 fi
5701
5702 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5703
5704 fi
5705
5706
5707 eval "$ac_cv_use_gauge"
5708 if test "$no_cache" != 1; then
5709 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5710 fi
5711
5712 if test "$wxUSE_GAUGE" = yes; then
5713 echo "$ac_t""yes" 1>&6
5714 else
5715 echo "$ac_t""no" 1>&6
5716 fi
5717
5718
5719 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5720 echo "configure:5721: checking for --enable-grid" >&5
5721 no_cache=0
5722 # Check whether --enable-grid or --disable-grid was given.
5723 if test "${enable_grid+set}" = set; then
5724 enableval="$enable_grid"
5725
5726 if test "$enableval" = yes; then
5727 ac_cv_use_grid='wxUSE_GRID=yes'
5728 else
5729 ac_cv_use_grid='wxUSE_GRID=no'
5730 fi
5731
5732 else
5733
5734 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5735 if test "x$LINE" != x ; then
5736 eval "DEFAULT_$LINE"
5737 else
5738 no_cache=1
5739 fi
5740
5741 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5742
5743 fi
5744
5745
5746 eval "$ac_cv_use_grid"
5747 if test "$no_cache" != 1; then
5748 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5749 fi
5750
5751 if test "$wxUSE_GRID" = yes; then
5752 echo "$ac_t""yes" 1>&6
5753 else
5754 echo "$ac_t""no" 1>&6
5755 fi
5756
5757
5758 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5759 echo "configure:5760: checking for --enable-newgrid" >&5
5760 no_cache=0
5761 # Check whether --enable-newgrid or --disable-newgrid was given.
5762 if test "${enable_newgrid+set}" = set; then
5763 enableval="$enable_newgrid"
5764
5765 if test "$enableval" = yes; then
5766 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5767 else
5768 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5769 fi
5770
5771 else
5772
5773 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5774 if test "x$LINE" != x ; then
5775 eval "DEFAULT_$LINE"
5776 else
5777 no_cache=1
5778 fi
5779
5780 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5781
5782 fi
5783
5784
5785 eval "$ac_cv_use_newgrid"
5786 if test "$no_cache" != 1; then
5787 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5788 fi
5789
5790 if test "$wxUSE_NEW_GRID" = yes; then
5791 echo "$ac_t""yes" 1>&6
5792 else
5793 echo "$ac_t""no" 1>&6
5794 fi
5795
5796
5797 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5798 echo "configure:5799: checking for --enable-imaglist" >&5
5799 no_cache=0
5800 # Check whether --enable-imaglist or --disable-imaglist was given.
5801 if test "${enable_imaglist+set}" = set; then
5802 enableval="$enable_imaglist"
5803
5804 if test "$enableval" = yes; then
5805 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5806 else
5807 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5808 fi
5809
5810 else
5811
5812 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5813 if test "x$LINE" != x ; then
5814 eval "DEFAULT_$LINE"
5815 else
5816 no_cache=1
5817 fi
5818
5819 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5820
5821 fi
5822
5823
5824 eval "$ac_cv_use_imaglist"
5825 if test "$no_cache" != 1; then
5826 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5827 fi
5828
5829 if test "$wxUSE_IMAGLIST" = yes; then
5830 echo "$ac_t""yes" 1>&6
5831 else
5832 echo "$ac_t""no" 1>&6
5833 fi
5834
5835
5836 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5837 echo "configure:5838: checking for --enable-listbox" >&5
5838 no_cache=0
5839 # Check whether --enable-listbox or --disable-listbox was given.
5840 if test "${enable_listbox+set}" = set; then
5841 enableval="$enable_listbox"
5842
5843 if test "$enableval" = yes; then
5844 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5845 else
5846 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5847 fi
5848
5849 else
5850
5851 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5852 if test "x$LINE" != x ; then
5853 eval "DEFAULT_$LINE"
5854 else
5855 no_cache=1
5856 fi
5857
5858 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5859
5860 fi
5861
5862
5863 eval "$ac_cv_use_listbox"
5864 if test "$no_cache" != 1; then
5865 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5866 fi
5867
5868 if test "$wxUSE_LISTBOX" = yes; then
5869 echo "$ac_t""yes" 1>&6
5870 else
5871 echo "$ac_t""no" 1>&6
5872 fi
5873
5874
5875 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5876 echo "configure:5877: checking for --enable-listctrl" >&5
5877 no_cache=0
5878 # Check whether --enable-listctrl or --disable-listctrl was given.
5879 if test "${enable_listctrl+set}" = set; then
5880 enableval="$enable_listctrl"
5881
5882 if test "$enableval" = yes; then
5883 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5884 else
5885 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5886 fi
5887
5888 else
5889
5890 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5891 if test "x$LINE" != x ; then
5892 eval "DEFAULT_$LINE"
5893 else
5894 no_cache=1
5895 fi
5896
5897 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5898
5899 fi
5900
5901
5902 eval "$ac_cv_use_listctrl"
5903 if test "$no_cache" != 1; then
5904 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5905 fi
5906
5907 if test "$wxUSE_LISTCTRL" = yes; then
5908 echo "$ac_t""yes" 1>&6
5909 else
5910 echo "$ac_t""no" 1>&6
5911 fi
5912
5913
5914 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5915 echo "configure:5916: checking for --enable-notebook" >&5
5916 no_cache=0
5917 # Check whether --enable-notebook or --disable-notebook was given.
5918 if test "${enable_notebook+set}" = set; then
5919 enableval="$enable_notebook"
5920
5921 if test "$enableval" = yes; then
5922 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5923 else
5924 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5925 fi
5926
5927 else
5928
5929 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5930 if test "x$LINE" != x ; then
5931 eval "DEFAULT_$LINE"
5932 else
5933 no_cache=1
5934 fi
5935
5936 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5937
5938 fi
5939
5940
5941 eval "$ac_cv_use_notebook"
5942 if test "$no_cache" != 1; then
5943 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5944 fi
5945
5946 if test "$wxUSE_NOTEBOOK" = yes; then
5947 echo "$ac_t""yes" 1>&6
5948 else
5949 echo "$ac_t""no" 1>&6
5950 fi
5951
5952
5953 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5954 echo "configure:5955: checking for --enable-propsheet" >&5
5955 no_cache=0
5956 # Check whether --enable-propsheet or --disable-propsheet was given.
5957 if test "${enable_propsheet+set}" = set; then
5958 enableval="$enable_propsheet"
5959
5960 if test "$enableval" = yes; then
5961 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5962 else
5963 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5964 fi
5965
5966 else
5967
5968 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5969 if test "x$LINE" != x ; then
5970 eval "DEFAULT_$LINE"
5971 else
5972 no_cache=1
5973 fi
5974
5975 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5976
5977 fi
5978
5979
5980 eval "$ac_cv_use_propsheet"
5981 if test "$no_cache" != 1; then
5982 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5983 fi
5984
5985 if test "$wxUSE_PROPSHEET" = yes; then
5986 echo "$ac_t""yes" 1>&6
5987 else
5988 echo "$ac_t""no" 1>&6
5989 fi
5990
5991
5992 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5993 echo "configure:5994: checking for --enable-radiobox" >&5
5994 no_cache=0
5995 # Check whether --enable-radiobox or --disable-radiobox was given.
5996 if test "${enable_radiobox+set}" = set; then
5997 enableval="$enable_radiobox"
5998
5999 if test "$enableval" = yes; then
6000 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
6001 else
6002 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
6003 fi
6004
6005 else
6006
6007 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
6008 if test "x$LINE" != x ; then
6009 eval "DEFAULT_$LINE"
6010 else
6011 no_cache=1
6012 fi
6013
6014 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
6015
6016 fi
6017
6018
6019 eval "$ac_cv_use_radiobox"
6020 if test "$no_cache" != 1; then
6021 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
6022 fi
6023
6024 if test "$wxUSE_RADIOBOX" = yes; then
6025 echo "$ac_t""yes" 1>&6
6026 else
6027 echo "$ac_t""no" 1>&6
6028 fi
6029
6030
6031 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
6032 echo "configure:6033: checking for --enable-radiobtn" >&5
6033 no_cache=0
6034 # Check whether --enable-radiobtn or --disable-radiobtn was given.
6035 if test "${enable_radiobtn+set}" = set; then
6036 enableval="$enable_radiobtn"
6037
6038 if test "$enableval" = yes; then
6039 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
6040 else
6041 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
6042 fi
6043
6044 else
6045
6046 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
6047 if test "x$LINE" != x ; then
6048 eval "DEFAULT_$LINE"
6049 else
6050 no_cache=1
6051 fi
6052
6053 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
6054
6055 fi
6056
6057
6058 eval "$ac_cv_use_radiobtn"
6059 if test "$no_cache" != 1; then
6060 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
6061 fi
6062
6063 if test "$wxUSE_RADIOBTN" = yes; then
6064 echo "$ac_t""yes" 1>&6
6065 else
6066 echo "$ac_t""no" 1>&6
6067 fi
6068
6069
6070 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
6071 echo "configure:6072: checking for --enable-sash" >&5
6072 no_cache=0
6073 # Check whether --enable-sash or --disable-sash was given.
6074 if test "${enable_sash+set}" = set; then
6075 enableval="$enable_sash"
6076
6077 if test "$enableval" = yes; then
6078 ac_cv_use_sash='wxUSE_SASH=yes'
6079 else
6080 ac_cv_use_sash='wxUSE_SASH=no'
6081 fi
6082
6083 else
6084
6085 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
6086 if test "x$LINE" != x ; then
6087 eval "DEFAULT_$LINE"
6088 else
6089 no_cache=1
6090 fi
6091
6092 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
6093
6094 fi
6095
6096
6097 eval "$ac_cv_use_sash"
6098 if test "$no_cache" != 1; then
6099 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
6100 fi
6101
6102 if test "$wxUSE_SASH" = yes; then
6103 echo "$ac_t""yes" 1>&6
6104 else
6105 echo "$ac_t""no" 1>&6
6106 fi
6107
6108
6109 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
6110 echo "configure:6111: checking for --enable-scrollbar" >&5
6111 no_cache=0
6112 # Check whether --enable-scrollbar or --disable-scrollbar was given.
6113 if test "${enable_scrollbar+set}" = set; then
6114 enableval="$enable_scrollbar"
6115
6116 if test "$enableval" = yes; then
6117 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
6118 else
6119 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
6120 fi
6121
6122 else
6123
6124 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
6125 if test "x$LINE" != x ; then
6126 eval "DEFAULT_$LINE"
6127 else
6128 no_cache=1
6129 fi
6130
6131 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
6132
6133 fi
6134
6135
6136 eval "$ac_cv_use_scrollbar"
6137 if test "$no_cache" != 1; then
6138 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
6139 fi
6140
6141 if test "$wxUSE_SCROLLBAR" = yes; then
6142 echo "$ac_t""yes" 1>&6
6143 else
6144 echo "$ac_t""no" 1>&6
6145 fi
6146
6147
6148 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
6149 echo "configure:6150: checking for --enable-slider" >&5
6150 no_cache=0
6151 # Check whether --enable-slider or --disable-slider was given.
6152 if test "${enable_slider+set}" = set; then
6153 enableval="$enable_slider"
6154
6155 if test "$enableval" = yes; then
6156 ac_cv_use_slider='wxUSE_SLIDER=yes'
6157 else
6158 ac_cv_use_slider='wxUSE_SLIDER=no'
6159 fi
6160
6161 else
6162
6163 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
6164 if test "x$LINE" != x ; then
6165 eval "DEFAULT_$LINE"
6166 else
6167 no_cache=1
6168 fi
6169
6170 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
6171
6172 fi
6173
6174
6175 eval "$ac_cv_use_slider"
6176 if test "$no_cache" != 1; then
6177 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
6178 fi
6179
6180 if test "$wxUSE_SLIDER" = yes; then
6181 echo "$ac_t""yes" 1>&6
6182 else
6183 echo "$ac_t""no" 1>&6
6184 fi
6185
6186
6187 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
6188 echo "configure:6189: checking for --enable-spinbtn" >&5
6189 no_cache=0
6190 # Check whether --enable-spinbtn or --disable-spinbtn was given.
6191 if test "${enable_spinbtn+set}" = set; then
6192 enableval="$enable_spinbtn"
6193
6194 if test "$enableval" = yes; then
6195 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
6196 else
6197 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6198 fi
6199
6200 else
6201
6202 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6203 if test "x$LINE" != x ; then
6204 eval "DEFAULT_$LINE"
6205 else
6206 no_cache=1
6207 fi
6208
6209 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6210
6211 fi
6212
6213
6214 eval "$ac_cv_use_spinbtn"
6215 if test "$no_cache" != 1; then
6216 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6217 fi
6218
6219 if test "$wxUSE_SPINBTN" = yes; then
6220 echo "$ac_t""yes" 1>&6
6221 else
6222 echo "$ac_t""no" 1>&6
6223 fi
6224
6225
6226 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6227 echo "configure:6228: checking for --enable-spinctrl" >&5
6228 no_cache=0
6229 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6230 if test "${enable_spinctrl+set}" = set; then
6231 enableval="$enable_spinctrl"
6232
6233 if test "$enableval" = yes; then
6234 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6235 else
6236 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6237 fi
6238
6239 else
6240
6241 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6242 if test "x$LINE" != x ; then
6243 eval "DEFAULT_$LINE"
6244 else
6245 no_cache=1
6246 fi
6247
6248 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6249
6250 fi
6251
6252
6253 eval "$ac_cv_use_spinctrl"
6254 if test "$no_cache" != 1; then
6255 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6256 fi
6257
6258 if test "$wxUSE_SPINCTRL" = yes; then
6259 echo "$ac_t""yes" 1>&6
6260 else
6261 echo "$ac_t""no" 1>&6
6262 fi
6263
6264
6265 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6266 echo "configure:6267: checking for --enable-splitter" >&5
6267 no_cache=0
6268 # Check whether --enable-splitter or --disable-splitter was given.
6269 if test "${enable_splitter+set}" = set; then
6270 enableval="$enable_splitter"
6271
6272 if test "$enableval" = yes; then
6273 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6274 else
6275 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6276 fi
6277
6278 else
6279
6280 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6281 if test "x$LINE" != x ; then
6282 eval "DEFAULT_$LINE"
6283 else
6284 no_cache=1
6285 fi
6286
6287 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6288
6289 fi
6290
6291
6292 eval "$ac_cv_use_splitter"
6293 if test "$no_cache" != 1; then
6294 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6295 fi
6296
6297 if test "$wxUSE_SPLITTER" = yes; then
6298 echo "$ac_t""yes" 1>&6
6299 else
6300 echo "$ac_t""no" 1>&6
6301 fi
6302
6303
6304 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6305 echo "configure:6306: checking for --enable-statbmp" >&5
6306 no_cache=0
6307 # Check whether --enable-statbmp or --disable-statbmp was given.
6308 if test "${enable_statbmp+set}" = set; then
6309 enableval="$enable_statbmp"
6310
6311 if test "$enableval" = yes; then
6312 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6313 else
6314 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6315 fi
6316
6317 else
6318
6319 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6320 if test "x$LINE" != x ; then
6321 eval "DEFAULT_$LINE"
6322 else
6323 no_cache=1
6324 fi
6325
6326 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6327
6328 fi
6329
6330
6331 eval "$ac_cv_use_statbmp"
6332 if test "$no_cache" != 1; then
6333 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6334 fi
6335
6336 if test "$wxUSE_STATBMP" = yes; then
6337 echo "$ac_t""yes" 1>&6
6338 else
6339 echo "$ac_t""no" 1>&6
6340 fi
6341
6342
6343 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6344 echo "configure:6345: checking for --enable-statbox" >&5
6345 no_cache=0
6346 # Check whether --enable-statbox or --disable-statbox was given.
6347 if test "${enable_statbox+set}" = set; then
6348 enableval="$enable_statbox"
6349
6350 if test "$enableval" = yes; then
6351 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6352 else
6353 ac_cv_use_statbox='wxUSE_STATBOX=no'
6354 fi
6355
6356 else
6357
6358 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6359 if test "x$LINE" != x ; then
6360 eval "DEFAULT_$LINE"
6361 else
6362 no_cache=1
6363 fi
6364
6365 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6366
6367 fi
6368
6369
6370 eval "$ac_cv_use_statbox"
6371 if test "$no_cache" != 1; then
6372 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6373 fi
6374
6375 if test "$wxUSE_STATBOX" = yes; then
6376 echo "$ac_t""yes" 1>&6
6377 else
6378 echo "$ac_t""no" 1>&6
6379 fi
6380
6381
6382 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6383 echo "configure:6384: checking for --enable-statline" >&5
6384 no_cache=0
6385 # Check whether --enable-statline or --disable-statline was given.
6386 if test "${enable_statline+set}" = set; then
6387 enableval="$enable_statline"
6388
6389 if test "$enableval" = yes; then
6390 ac_cv_use_statline='wxUSE_STATLINE=yes'
6391 else
6392 ac_cv_use_statline='wxUSE_STATLINE=no'
6393 fi
6394
6395 else
6396
6397 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6398 if test "x$LINE" != x ; then
6399 eval "DEFAULT_$LINE"
6400 else
6401 no_cache=1
6402 fi
6403
6404 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6405
6406 fi
6407
6408
6409 eval "$ac_cv_use_statline"
6410 if test "$no_cache" != 1; then
6411 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6412 fi
6413
6414 if test "$wxUSE_STATLINE" = yes; then
6415 echo "$ac_t""yes" 1>&6
6416 else
6417 echo "$ac_t""no" 1>&6
6418 fi
6419
6420
6421 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6422 echo "configure:6423: checking for --enable-stattext" >&5
6423 no_cache=0
6424 # Check whether --enable-stattext or --disable-stattext was given.
6425 if test "${enable_stattext+set}" = set; then
6426 enableval="$enable_stattext"
6427
6428 if test "$enableval" = yes; then
6429 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6430 else
6431 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6432 fi
6433
6434 else
6435
6436 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6437 if test "x$LINE" != x ; then
6438 eval "DEFAULT_$LINE"
6439 else
6440 no_cache=1
6441 fi
6442
6443 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6444
6445 fi
6446
6447
6448 eval "$ac_cv_use_stattext"
6449 if test "$no_cache" != 1; then
6450 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6451 fi
6452
6453 if test "$wxUSE_STATTEXT" = yes; then
6454 echo "$ac_t""yes" 1>&6
6455 else
6456 echo "$ac_t""no" 1>&6
6457 fi
6458
6459
6460 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6461 echo "configure:6462: checking for --enable-statusbar" >&5
6462 no_cache=0
6463 # Check whether --enable-statusbar or --disable-statusbar was given.
6464 if test "${enable_statusbar+set}" = set; then
6465 enableval="$enable_statusbar"
6466
6467 if test "$enableval" = yes; then
6468 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6469 else
6470 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6471 fi
6472
6473 else
6474
6475 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6476 if test "x$LINE" != x ; then
6477 eval "DEFAULT_$LINE"
6478 else
6479 no_cache=1
6480 fi
6481
6482 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6483
6484 fi
6485
6486
6487 eval "$ac_cv_use_statusbar"
6488 if test "$no_cache" != 1; then
6489 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6490 fi
6491
6492 if test "$wxUSE_STATUSBAR" = yes; then
6493 echo "$ac_t""yes" 1>&6
6494 else
6495 echo "$ac_t""no" 1>&6
6496 fi
6497
6498
6499 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6500 echo "configure:6501: checking for --enable-tabdialog" >&5
6501 no_cache=0
6502 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6503 if test "${enable_tabdialog+set}" = set; then
6504 enableval="$enable_tabdialog"
6505
6506 if test "$enableval" = yes; then
6507 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6508 else
6509 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6510 fi
6511
6512 else
6513
6514 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6515 if test "x$LINE" != x ; then
6516 eval "DEFAULT_$LINE"
6517 else
6518 no_cache=1
6519 fi
6520
6521 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6522
6523 fi
6524
6525
6526 eval "$ac_cv_use_tabdialog"
6527 if test "$no_cache" != 1; then
6528 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6529 fi
6530
6531 if test "$wxUSE_TABDIALOG" = yes; then
6532 echo "$ac_t""yes" 1>&6
6533 else
6534 echo "$ac_t""no" 1>&6
6535 fi
6536
6537
6538 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6539 echo "configure:6540: checking for --enable-textctrl" >&5
6540 no_cache=0
6541 # Check whether --enable-textctrl or --disable-textctrl was given.
6542 if test "${enable_textctrl+set}" = set; then
6543 enableval="$enable_textctrl"
6544
6545 if test "$enableval" = yes; then
6546 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6547 else
6548 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6549 fi
6550
6551 else
6552
6553 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6554 if test "x$LINE" != x ; then
6555 eval "DEFAULT_$LINE"
6556 else
6557 no_cache=1
6558 fi
6559
6560 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6561
6562 fi
6563
6564
6565 eval "$ac_cv_use_textctrl"
6566 if test "$no_cache" != 1; then
6567 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6568 fi
6569
6570 if test "$wxUSE_TEXTCTRL" = yes; then
6571 echo "$ac_t""yes" 1>&6
6572 else
6573 echo "$ac_t""no" 1>&6
6574 fi
6575
6576
6577 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6578 echo "configure:6579: checking for --enable-togglebtn" >&5
6579 no_cache=0
6580 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6581 if test "${enable_togglebtn+set}" = set; then
6582 enableval="$enable_togglebtn"
6583
6584 if test "$enableval" = yes; then
6585 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6586 else
6587 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6588 fi
6589
6590 else
6591
6592 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6593 if test "x$LINE" != x ; then
6594 eval "DEFAULT_$LINE"
6595 else
6596 no_cache=1
6597 fi
6598
6599 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6600
6601 fi
6602
6603
6604 eval "$ac_cv_use_togglebtn"
6605 if test "$no_cache" != 1; then
6606 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6607 fi
6608
6609 if test "$wxUSE_TOGGLEBTN" = yes; then
6610 echo "$ac_t""yes" 1>&6
6611 else
6612 echo "$ac_t""no" 1>&6
6613 fi
6614
6615
6616 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6617 echo "configure:6618: checking for --enable-toolbar" >&5
6618 no_cache=0
6619 # Check whether --enable-toolbar or --disable-toolbar was given.
6620 if test "${enable_toolbar+set}" = set; then
6621 enableval="$enable_toolbar"
6622
6623 if test "$enableval" = yes; then
6624 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6625 else
6626 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6627 fi
6628
6629 else
6630
6631 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6632 if test "x$LINE" != x ; then
6633 eval "DEFAULT_$LINE"
6634 else
6635 no_cache=1
6636 fi
6637
6638 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6639
6640 fi
6641
6642
6643 eval "$ac_cv_use_toolbar"
6644 if test "$no_cache" != 1; then
6645 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6646 fi
6647
6648 if test "$wxUSE_TOOLBAR" = yes; then
6649 echo "$ac_t""yes" 1>&6
6650 else
6651 echo "$ac_t""no" 1>&6
6652 fi
6653
6654
6655 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6656 echo "configure:6657: checking for --enable-tbarnative" >&5
6657 no_cache=0
6658 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6659 if test "${enable_tbarnative+set}" = set; then
6660 enableval="$enable_tbarnative"
6661
6662 if test "$enableval" = yes; then
6663 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6664 else
6665 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6666 fi
6667
6668 else
6669
6670 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6671 if test "x$LINE" != x ; then
6672 eval "DEFAULT_$LINE"
6673 else
6674 no_cache=1
6675 fi
6676
6677 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6678
6679 fi
6680
6681
6682 eval "$ac_cv_use_tbarnative"
6683 if test "$no_cache" != 1; then
6684 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6685 fi
6686
6687 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6688 echo "$ac_t""yes" 1>&6
6689 else
6690 echo "$ac_t""no" 1>&6
6691 fi
6692
6693
6694 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6695 echo "configure:6696: checking for --enable-tbarsmpl" >&5
6696 no_cache=0
6697 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6698 if test "${enable_tbarsmpl+set}" = set; then
6699 enableval="$enable_tbarsmpl"
6700
6701 if test "$enableval" = yes; then
6702 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6703 else
6704 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6705 fi
6706
6707 else
6708
6709 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6710 if test "x$LINE" != x ; then
6711 eval "DEFAULT_$LINE"
6712 else
6713 no_cache=1
6714 fi
6715
6716 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6717
6718 fi
6719
6720
6721 eval "$ac_cv_use_tbarsmpl"
6722 if test "$no_cache" != 1; then
6723 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6724 fi
6725
6726 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6727 echo "$ac_t""yes" 1>&6
6728 else
6729 echo "$ac_t""no" 1>&6
6730 fi
6731
6732
6733 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6734 echo "configure:6735: checking for --enable-treectrl" >&5
6735 no_cache=0
6736 # Check whether --enable-treectrl or --disable-treectrl was given.
6737 if test "${enable_treectrl+set}" = set; then
6738 enableval="$enable_treectrl"
6739
6740 if test "$enableval" = yes; then
6741 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6742 else
6743 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6744 fi
6745
6746 else
6747
6748 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6749 if test "x$LINE" != x ; then
6750 eval "DEFAULT_$LINE"
6751 else
6752 no_cache=1
6753 fi
6754
6755 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6756
6757 fi
6758
6759
6760 eval "$ac_cv_use_treectrl"
6761 if test "$no_cache" != 1; then
6762 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6763 fi
6764
6765 if test "$wxUSE_TREECTRL" = yes; then
6766 echo "$ac_t""yes" 1>&6
6767 else
6768 echo "$ac_t""no" 1>&6
6769 fi
6770
6771
6772 echo $ac_n "checking for --enable-tipwindow""... $ac_c" 1>&6
6773 echo "configure:6774: checking for --enable-tipwindow" >&5
6774 no_cache=0
6775 # Check whether --enable-tipwindow or --disable-tipwindow was given.
6776 if test "${enable_tipwindow+set}" = set; then
6777 enableval="$enable_tipwindow"
6778
6779 if test "$enableval" = yes; then
6780 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
6781 else
6782 ac_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
6783 fi
6784
6785 else
6786
6787 LINE=`grep "wxUSE_TIPWINDOW" ${wx_arg_cache_file}`
6788 if test "x$LINE" != x ; then
6789 eval "DEFAULT_$LINE"
6790 else
6791 no_cache=1
6792 fi
6793
6794 ac_cv_use_tipwindow='wxUSE_TIPWINDOW='$DEFAULT_wxUSE_TIPWINDOW
6795
6796 fi
6797
6798
6799 eval "$ac_cv_use_tipwindow"
6800 if test "$no_cache" != 1; then
6801 echo $ac_cv_use_tipwindow >> ${wx_arg_cache_file}.tmp
6802 fi
6803
6804 if test "$wxUSE_TIPWINDOW" = yes; then
6805 echo "$ac_t""yes" 1>&6
6806 else
6807 echo "$ac_t""no" 1>&6
6808 fi
6809
6810
6811 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6812 echo "configure:6813: checking for --enable-popupwin" >&5
6813 no_cache=0
6814 # Check whether --enable-popupwin or --disable-popupwin was given.
6815 if test "${enable_popupwin+set}" = set; then
6816 enableval="$enable_popupwin"
6817
6818 if test "$enableval" = yes; then
6819 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6820 else
6821 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6822 fi
6823
6824 else
6825
6826 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6827 if test "x$LINE" != x ; then
6828 eval "DEFAULT_$LINE"
6829 else
6830 no_cache=1
6831 fi
6832
6833 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6834
6835 fi
6836
6837
6838 eval "$ac_cv_use_popupwin"
6839 if test "$no_cache" != 1; then
6840 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6841 fi
6842
6843 if test "$wxUSE_POPUPWIN" = yes; then
6844 echo "$ac_t""yes" 1>&6
6845 else
6846 echo "$ac_t""no" 1>&6
6847 fi
6848
6849
6850
6851
6852 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6853 echo "configure:6854: checking for --enable-commondlg" >&5
6854 no_cache=0
6855 # Check whether --enable-commondlg or --disable-commondlg was given.
6856 if test "${enable_commondlg+set}" = set; then
6857 enableval="$enable_commondlg"
6858
6859 if test "$enableval" = yes; then
6860 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6861 else
6862 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6863 fi
6864
6865 else
6866
6867 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6868 if test "x$LINE" != x ; then
6869 eval "DEFAULT_$LINE"
6870 else
6871 no_cache=1
6872 fi
6873
6874 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6875
6876 fi
6877
6878
6879 eval "$ac_cv_use_commondlg"
6880 if test "$no_cache" != 1; then
6881 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6882 fi
6883
6884 if test "$wxUSE_COMMONDLGS" = yes; then
6885 echo "$ac_t""yes" 1>&6
6886 else
6887 echo "$ac_t""no" 1>&6
6888 fi
6889
6890
6891 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6892 echo "configure:6893: checking for --enable-choicedlg" >&5
6893 no_cache=0
6894 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6895 if test "${enable_choicedlg+set}" = set; then
6896 enableval="$enable_choicedlg"
6897
6898 if test "$enableval" = yes; then
6899 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6900 else
6901 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6902 fi
6903
6904 else
6905
6906 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6907 if test "x$LINE" != x ; then
6908 eval "DEFAULT_$LINE"
6909 else
6910 no_cache=1
6911 fi
6912
6913 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6914
6915 fi
6916
6917
6918 eval "$ac_cv_use_choicedlg"
6919 if test "$no_cache" != 1; then
6920 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6921 fi
6922
6923 if test "$wxUSE_CHOICEDLG" = yes; then
6924 echo "$ac_t""yes" 1>&6
6925 else
6926 echo "$ac_t""no" 1>&6
6927 fi
6928
6929
6930 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6931 echo "configure:6932: checking for --enable-coldlg" >&5
6932 no_cache=0
6933 # Check whether --enable-coldlg or --disable-coldlg was given.
6934 if test "${enable_coldlg+set}" = set; then
6935 enableval="$enable_coldlg"
6936
6937 if test "$enableval" = yes; then
6938 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6939 else
6940 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6941 fi
6942
6943 else
6944
6945 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6946 if test "x$LINE" != x ; then
6947 eval "DEFAULT_$LINE"
6948 else
6949 no_cache=1
6950 fi
6951
6952 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6953
6954 fi
6955
6956
6957 eval "$ac_cv_use_coldlg"
6958 if test "$no_cache" != 1; then
6959 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6960 fi
6961
6962 if test "$wxUSE_COLOURDLG" = yes; then
6963 echo "$ac_t""yes" 1>&6
6964 else
6965 echo "$ac_t""no" 1>&6
6966 fi
6967
6968
6969 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6970 echo "configure:6971: checking for --enable-filedlg" >&5
6971 no_cache=0
6972 # Check whether --enable-filedlg or --disable-filedlg was given.
6973 if test "${enable_filedlg+set}" = set; then
6974 enableval="$enable_filedlg"
6975
6976 if test "$enableval" = yes; then
6977 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6978 else
6979 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6980 fi
6981
6982 else
6983
6984 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6985 if test "x$LINE" != x ; then
6986 eval "DEFAULT_$LINE"
6987 else
6988 no_cache=1
6989 fi
6990
6991 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6992
6993 fi
6994
6995
6996 eval "$ac_cv_use_filedlg"
6997 if test "$no_cache" != 1; then
6998 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6999 fi
7000
7001 if test "$wxUSE_FILEDLG" = yes; then
7002 echo "$ac_t""yes" 1>&6
7003 else
7004 echo "$ac_t""no" 1>&6
7005 fi
7006
7007
7008 echo $ac_n "checking for --enable-finddlg""... $ac_c" 1>&6
7009 echo "configure:7010: checking for --enable-finddlg" >&5
7010 no_cache=0
7011 # Check whether --enable-finddlg or --disable-finddlg was given.
7012 if test "${enable_finddlg+set}" = set; then
7013 enableval="$enable_finddlg"
7014
7015 if test "$enableval" = yes; then
7016 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
7017 else
7018 ac_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
7019 fi
7020
7021 else
7022
7023 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
7024 if test "x$LINE" != x ; then
7025 eval "DEFAULT_$LINE"
7026 else
7027 no_cache=1
7028 fi
7029
7030 ac_cv_use_finddlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
7031
7032 fi
7033
7034
7035 eval "$ac_cv_use_finddlg"
7036 if test "$no_cache" != 1; then
7037 echo $ac_cv_use_finddlg >> ${wx_arg_cache_file}.tmp
7038 fi
7039
7040 if test "$wxUSE_FINDREPLDLG" = yes; then
7041 echo "$ac_t""yes" 1>&6
7042 else
7043 echo "$ac_t""no" 1>&6
7044 fi
7045
7046
7047 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
7048 echo "configure:7049: checking for --enable-fontdlg" >&5
7049 no_cache=0
7050 # Check whether --enable-fontdlg or --disable-fontdlg was given.
7051 if test "${enable_fontdlg+set}" = set; then
7052 enableval="$enable_fontdlg"
7053
7054 if test "$enableval" = yes; then
7055 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
7056 else
7057 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
7058 fi
7059
7060 else
7061
7062 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
7063 if test "x$LINE" != x ; then
7064 eval "DEFAULT_$LINE"
7065 else
7066 no_cache=1
7067 fi
7068
7069 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
7070
7071 fi
7072
7073
7074 eval "$ac_cv_use_fontdlg"
7075 if test "$no_cache" != 1; then
7076 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
7077 fi
7078
7079 if test "$wxUSE_FONTDLG" = yes; then
7080 echo "$ac_t""yes" 1>&6
7081 else
7082 echo "$ac_t""no" 1>&6
7083 fi
7084
7085
7086 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
7087 echo "configure:7088: checking for --enable-dirdlg" >&5
7088 no_cache=0
7089 # Check whether --enable-dirdlg or --disable-dirdlg was given.
7090 if test "${enable_dirdlg+set}" = set; then
7091 enableval="$enable_dirdlg"
7092
7093 if test "$enableval" = yes; then
7094 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
7095 else
7096 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
7097 fi
7098
7099 else
7100
7101 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
7102 if test "x$LINE" != x ; then
7103 eval "DEFAULT_$LINE"
7104 else
7105 no_cache=1
7106 fi
7107
7108 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
7109
7110 fi
7111
7112
7113 eval "$ac_cv_use_dirdlg"
7114 if test "$no_cache" != 1; then
7115 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
7116 fi
7117
7118 if test "$wxUSE_DIRDLG" = yes; then
7119 echo "$ac_t""yes" 1>&6
7120 else
7121 echo "$ac_t""no" 1>&6
7122 fi
7123
7124
7125 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
7126 echo "configure:7127: checking for --enable-msgdlg" >&5
7127 no_cache=0
7128 # Check whether --enable-msgdlg or --disable-msgdlg was given.
7129 if test "${enable_msgdlg+set}" = set; then
7130 enableval="$enable_msgdlg"
7131
7132 if test "$enableval" = yes; then
7133 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
7134 else
7135 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
7136 fi
7137
7138 else
7139
7140 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
7141 if test "x$LINE" != x ; then
7142 eval "DEFAULT_$LINE"
7143 else
7144 no_cache=1
7145 fi
7146
7147 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
7148
7149 fi
7150
7151
7152 eval "$ac_cv_use_msgdlg"
7153 if test "$no_cache" != 1; then
7154 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
7155 fi
7156
7157 if test "$wxUSE_MSGDLG" = yes; then
7158 echo "$ac_t""yes" 1>&6
7159 else
7160 echo "$ac_t""no" 1>&6
7161 fi
7162
7163
7164 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
7165 echo "configure:7166: checking for --enable-numberdlg" >&5
7166 no_cache=0
7167 # Check whether --enable-numberdlg or --disable-numberdlg was given.
7168 if test "${enable_numberdlg+set}" = set; then
7169 enableval="$enable_numberdlg"
7170
7171 if test "$enableval" = yes; then
7172 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
7173 else
7174 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
7175 fi
7176
7177 else
7178
7179 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
7180 if test "x$LINE" != x ; then
7181 eval "DEFAULT_$LINE"
7182 else
7183 no_cache=1
7184 fi
7185
7186 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
7187
7188 fi
7189
7190
7191 eval "$ac_cv_use_numberdlg"
7192 if test "$no_cache" != 1; then
7193 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
7194 fi
7195
7196 if test "$wxUSE_NUMBERDLG" = yes; then
7197 echo "$ac_t""yes" 1>&6
7198 else
7199 echo "$ac_t""no" 1>&6
7200 fi
7201
7202
7203 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
7204 echo "configure:7205: checking for --enable-splash" >&5
7205 no_cache=0
7206 # Check whether --enable-splash or --disable-splash was given.
7207 if test "${enable_splash+set}" = set; then
7208 enableval="$enable_splash"
7209
7210 if test "$enableval" = yes; then
7211 ac_cv_use_splash='wxUSE_SPLASH=yes'
7212 else
7213 ac_cv_use_splash='wxUSE_SPLASH=no'
7214 fi
7215
7216 else
7217
7218 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
7219 if test "x$LINE" != x ; then
7220 eval "DEFAULT_$LINE"
7221 else
7222 no_cache=1
7223 fi
7224
7225 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
7226
7227 fi
7228
7229
7230 eval "$ac_cv_use_splash"
7231 if test "$no_cache" != 1; then
7232 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
7233 fi
7234
7235 if test "$wxUSE_SPLASH" = yes; then
7236 echo "$ac_t""yes" 1>&6
7237 else
7238 echo "$ac_t""no" 1>&6
7239 fi
7240
7241
7242 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7243 echo "configure:7244: checking for --enable-textdlg" >&5
7244 no_cache=0
7245 # Check whether --enable-textdlg or --disable-textdlg was given.
7246 if test "${enable_textdlg+set}" = set; then
7247 enableval="$enable_textdlg"
7248
7249 if test "$enableval" = yes; then
7250 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7251 else
7252 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7253 fi
7254
7255 else
7256
7257 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7258 if test "x$LINE" != x ; then
7259 eval "DEFAULT_$LINE"
7260 else
7261 no_cache=1
7262 fi
7263
7264 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7265
7266 fi
7267
7268
7269 eval "$ac_cv_use_textdlg"
7270 if test "$no_cache" != 1; then
7271 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7272 fi
7273
7274 if test "$wxUSE_TEXTDLG" = yes; then
7275 echo "$ac_t""yes" 1>&6
7276 else
7277 echo "$ac_t""no" 1>&6
7278 fi
7279
7280
7281 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7282 echo "configure:7283: checking for --enable-tipdlg" >&5
7283 no_cache=0
7284 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7285 if test "${enable_tipdlg+set}" = set; then
7286 enableval="$enable_tipdlg"
7287
7288 if test "$enableval" = yes; then
7289 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7290 else
7291 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7292 fi
7293
7294 else
7295
7296 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7297 if test "x$LINE" != x ; then
7298 eval "DEFAULT_$LINE"
7299 else
7300 no_cache=1
7301 fi
7302
7303 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7304
7305 fi
7306
7307
7308 eval "$ac_cv_use_tipdlg"
7309 if test "$no_cache" != 1; then
7310 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7311 fi
7312
7313 if test "$wxUSE_STARTUP_TIPS" = yes; then
7314 echo "$ac_t""yes" 1>&6
7315 else
7316 echo "$ac_t""no" 1>&6
7317 fi
7318
7319
7320 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7321 echo "configure:7322: checking for --enable-progressdlg" >&5
7322 no_cache=0
7323 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7324 if test "${enable_progressdlg+set}" = set; then
7325 enableval="$enable_progressdlg"
7326
7327 if test "$enableval" = yes; then
7328 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7329 else
7330 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7331 fi
7332
7333 else
7334
7335 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7336 if test "x$LINE" != x ; then
7337 eval "DEFAULT_$LINE"
7338 else
7339 no_cache=1
7340 fi
7341
7342 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7343
7344 fi
7345
7346
7347 eval "$ac_cv_use_progressdlg"
7348 if test "$no_cache" != 1; then
7349 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7350 fi
7351
7352 if test "$wxUSE_PROGRESSDLG" = yes; then
7353 echo "$ac_t""yes" 1>&6
7354 else
7355 echo "$ac_t""no" 1>&6
7356 fi
7357
7358
7359 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7360 echo "configure:7361: checking for --enable-wizarddlg" >&5
7361 no_cache=0
7362 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7363 if test "${enable_wizarddlg+set}" = set; then
7364 enableval="$enable_wizarddlg"
7365
7366 if test "$enableval" = yes; then
7367 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7368 else
7369 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7370 fi
7371
7372 else
7373
7374 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7375 if test "x$LINE" != x ; then
7376 eval "DEFAULT_$LINE"
7377 else
7378 no_cache=1
7379 fi
7380
7381 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7382
7383 fi
7384
7385
7386 eval "$ac_cv_use_wizarddlg"
7387 if test "$no_cache" != 1; then
7388 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7389 fi
7390
7391 if test "$wxUSE_WIZARDDLG" = yes; then
7392 echo "$ac_t""yes" 1>&6
7393 else
7394 echo "$ac_t""no" 1>&6
7395 fi
7396
7397
7398
7399
7400 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7401 echo "configure:7402: checking for --enable-menus" >&5
7402 no_cache=0
7403 # Check whether --enable-menus or --disable-menus was given.
7404 if test "${enable_menus+set}" = set; then
7405 enableval="$enable_menus"
7406
7407 if test "$enableval" = yes; then
7408 ac_cv_use_menus='wxUSE_MENUS=yes'
7409 else
7410 ac_cv_use_menus='wxUSE_MENUS=no'
7411 fi
7412
7413 else
7414
7415 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7416 if test "x$LINE" != x ; then
7417 eval "DEFAULT_$LINE"
7418 else
7419 no_cache=1
7420 fi
7421
7422 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7423
7424 fi
7425
7426
7427 eval "$ac_cv_use_menus"
7428 if test "$no_cache" != 1; then
7429 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7430 fi
7431
7432 if test "$wxUSE_MENUS" = yes; then
7433 echo "$ac_t""yes" 1>&6
7434 else
7435 echo "$ac_t""no" 1>&6
7436 fi
7437
7438
7439 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7440 echo "configure:7441: checking for --enable-miniframe" >&5
7441 no_cache=0
7442 # Check whether --enable-miniframe or --disable-miniframe was given.
7443 if test "${enable_miniframe+set}" = set; then
7444 enableval="$enable_miniframe"
7445
7446 if test "$enableval" = yes; then
7447 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7448 else
7449 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7450 fi
7451
7452 else
7453
7454 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7455 if test "x$LINE" != x ; then
7456 eval "DEFAULT_$LINE"
7457 else
7458 no_cache=1
7459 fi
7460
7461 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7462
7463 fi
7464
7465
7466 eval "$ac_cv_use_miniframe"
7467 if test "$no_cache" != 1; then
7468 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7469 fi
7470
7471 if test "$wxUSE_MINIFRAME" = yes; then
7472 echo "$ac_t""yes" 1>&6
7473 else
7474 echo "$ac_t""no" 1>&6
7475 fi
7476
7477
7478 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7479 echo "configure:7480: checking for --enable-tooltips" >&5
7480 no_cache=0
7481 # Check whether --enable-tooltips or --disable-tooltips was given.
7482 if test "${enable_tooltips+set}" = set; then
7483 enableval="$enable_tooltips"
7484
7485 if test "$enableval" = yes; then
7486 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7487 else
7488 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7489 fi
7490
7491 else
7492
7493 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7494 if test "x$LINE" != x ; then
7495 eval "DEFAULT_$LINE"
7496 else
7497 no_cache=1
7498 fi
7499
7500 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7501
7502 fi
7503
7504
7505 eval "$ac_cv_use_tooltips"
7506 if test "$no_cache" != 1; then
7507 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7508 fi
7509
7510 if test "$wxUSE_TOOLTIPS" = yes; then
7511 echo "$ac_t""yes" 1>&6
7512 else
7513 echo "$ac_t""no" 1>&6
7514 fi
7515
7516
7517 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7518 echo "configure:7519: checking for --enable-splines" >&5
7519 no_cache=0
7520 # Check whether --enable-splines or --disable-splines was given.
7521 if test "${enable_splines+set}" = set; then
7522 enableval="$enable_splines"
7523
7524 if test "$enableval" = yes; then
7525 ac_cv_use_splines='wxUSE_SPLINES=yes'
7526 else
7527 ac_cv_use_splines='wxUSE_SPLINES=no'
7528 fi
7529
7530 else
7531
7532 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7533 if test "x$LINE" != x ; then
7534 eval "DEFAULT_$LINE"
7535 else
7536 no_cache=1
7537 fi
7538
7539 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7540
7541 fi
7542
7543
7544 eval "$ac_cv_use_splines"
7545 if test "$no_cache" != 1; then
7546 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7547 fi
7548
7549 if test "$wxUSE_SPLINES" = yes; then
7550 echo "$ac_t""yes" 1>&6
7551 else
7552 echo "$ac_t""no" 1>&6
7553 fi
7554
7555
7556 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7557 echo "configure:7558: checking for --enable-validators" >&5
7558 no_cache=0
7559 # Check whether --enable-validators or --disable-validators was given.
7560 if test "${enable_validators+set}" = set; then
7561 enableval="$enable_validators"
7562
7563 if test "$enableval" = yes; then
7564 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7565 else
7566 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7567 fi
7568
7569 else
7570
7571 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7572 if test "x$LINE" != x ; then
7573 eval "DEFAULT_$LINE"
7574 else
7575 no_cache=1
7576 fi
7577
7578 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7579
7580 fi
7581
7582
7583 eval "$ac_cv_use_validators"
7584 if test "$no_cache" != 1; then
7585 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7586 fi
7587
7588 if test "$wxUSE_VALIDATORS" = yes; then
7589 echo "$ac_t""yes" 1>&6
7590 else
7591 echo "$ac_t""no" 1>&6
7592 fi
7593
7594
7595 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7596 echo "configure:7597: checking for --enable-busyinfo" >&5
7597 no_cache=0
7598 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7599 if test "${enable_busyinfo+set}" = set; then
7600 enableval="$enable_busyinfo"
7601
7602 if test "$enableval" = yes; then
7603 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7604 else
7605 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7606 fi
7607
7608 else
7609
7610 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7611 if test "x$LINE" != x ; then
7612 eval "DEFAULT_$LINE"
7613 else
7614 no_cache=1
7615 fi
7616
7617 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7618
7619 fi
7620
7621
7622 eval "$ac_cv_use_busyinfo"
7623 if test "$no_cache" != 1; then
7624 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7625 fi
7626
7627 if test "$wxUSE_BUSYINFO" = yes; then
7628 echo "$ac_t""yes" 1>&6
7629 else
7630 echo "$ac_t""no" 1>&6
7631 fi
7632
7633
7634 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7635 echo "configure:7636: checking for --enable-joystick" >&5
7636 no_cache=0
7637 # Check whether --enable-joystick or --disable-joystick was given.
7638 if test "${enable_joystick+set}" = set; then
7639 enableval="$enable_joystick"
7640
7641 if test "$enableval" = yes; then
7642 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7643 else
7644 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7645 fi
7646
7647 else
7648
7649 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7650 if test "x$LINE" != x ; then
7651 eval "DEFAULT_$LINE"
7652 else
7653 no_cache=1
7654 fi
7655
7656 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7657
7658 fi
7659
7660
7661 eval "$ac_cv_use_joystick"
7662 if test "$no_cache" != 1; then
7663 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7664 fi
7665
7666 if test "$wxUSE_JOYSTICK" = yes; then
7667 echo "$ac_t""yes" 1>&6
7668 else
7669 echo "$ac_t""no" 1>&6
7670 fi
7671
7672
7673 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7674 echo "configure:7675: checking for --enable-metafile" >&5
7675 no_cache=0
7676 # Check whether --enable-metafile or --disable-metafile was given.
7677 if test "${enable_metafile+set}" = set; then
7678 enableval="$enable_metafile"
7679
7680 if test "$enableval" = yes; then
7681 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7682 else
7683 ac_cv_use_metafile='wxUSE_METAFILE=no'
7684 fi
7685
7686 else
7687
7688 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7689 if test "x$LINE" != x ; then
7690 eval "DEFAULT_$LINE"
7691 else
7692 no_cache=1
7693 fi
7694
7695 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7696
7697 fi
7698
7699
7700 eval "$ac_cv_use_metafile"
7701 if test "$no_cache" != 1; then
7702 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7703 fi
7704
7705 if test "$wxUSE_METAFILE" = yes; then
7706 echo "$ac_t""yes" 1>&6
7707 else
7708 echo "$ac_t""no" 1>&6
7709 fi
7710
7711
7712 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7713 echo "configure:7714: checking for --enable-dragimage" >&5
7714 no_cache=0
7715 # Check whether --enable-dragimage or --disable-dragimage was given.
7716 if test "${enable_dragimage+set}" = set; then
7717 enableval="$enable_dragimage"
7718
7719 if test "$enableval" = yes; then
7720 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7721 else
7722 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7723 fi
7724
7725 else
7726
7727 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7728 if test "x$LINE" != x ; then
7729 eval "DEFAULT_$LINE"
7730 else
7731 no_cache=1
7732 fi
7733
7734 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7735
7736 fi
7737
7738
7739 eval "$ac_cv_use_dragimage"
7740 if test "$no_cache" != 1; then
7741 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7742 fi
7743
7744 if test "$wxUSE_DRAGIMAGE" = yes; then
7745 echo "$ac_t""yes" 1>&6
7746 else
7747 echo "$ac_t""no" 1>&6
7748 fi
7749
7750
7751
7752
7753 echo $ac_n "checking for --enable-palette""... $ac_c" 1>&6
7754 echo "configure:7755: checking for --enable-palette" >&5
7755 no_cache=0
7756 # Check whether --enable-palette or --disable-palette was given.
7757 if test "${enable_palette+set}" = set; then
7758 enableval="$enable_palette"
7759
7760 if test "$enableval" = yes; then
7761 ac_cv_use_palette='wxUSE_PALETTE=yes'
7762 else
7763 ac_cv_use_palette='wxUSE_PALETTE=no'
7764 fi
7765
7766 else
7767
7768 LINE=`grep "wxUSE_PALETTE" ${wx_arg_cache_file}`
7769 if test "x$LINE" != x ; then
7770 eval "DEFAULT_$LINE"
7771 else
7772 no_cache=1
7773 fi
7774
7775 ac_cv_use_palette='wxUSE_PALETTE='$DEFAULT_wxUSE_PALETTE
7776
7777 fi
7778
7779
7780 eval "$ac_cv_use_palette"
7781 if test "$no_cache" != 1; then
7782 echo $ac_cv_use_palette >> ${wx_arg_cache_file}.tmp
7783 fi
7784
7785 if test "$wxUSE_PALETTE" = yes; then
7786 echo "$ac_t""yes" 1>&6
7787 else
7788 echo "$ac_t""no" 1>&6
7789 fi
7790
7791
7792 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7793 echo "configure:7794: checking for --enable-image" >&5
7794 no_cache=0
7795 # Check whether --enable-image or --disable-image was given.
7796 if test "${enable_image+set}" = set; then
7797 enableval="$enable_image"
7798
7799 if test "$enableval" = yes; then
7800 ac_cv_use_image='wxUSE_IMAGE=yes'
7801 else
7802 ac_cv_use_image='wxUSE_IMAGE=no'
7803 fi
7804
7805 else
7806
7807 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7808 if test "x$LINE" != x ; then
7809 eval "DEFAULT_$LINE"
7810 else
7811 no_cache=1
7812 fi
7813
7814 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7815
7816 fi
7817
7818
7819 eval "$ac_cv_use_image"
7820 if test "$no_cache" != 1; then
7821 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7822 fi
7823
7824 if test "$wxUSE_IMAGE" = yes; then
7825 echo "$ac_t""yes" 1>&6
7826 else
7827 echo "$ac_t""no" 1>&6
7828 fi
7829
7830
7831 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7832 echo "configure:7833: checking for --enable-gif" >&5
7833 no_cache=0
7834 # Check whether --enable-gif or --disable-gif was given.
7835 if test "${enable_gif+set}" = set; then
7836 enableval="$enable_gif"
7837
7838 if test "$enableval" = yes; then
7839 ac_cv_use_gif='wxUSE_GIF=yes'
7840 else
7841 ac_cv_use_gif='wxUSE_GIF=no'
7842 fi
7843
7844 else
7845
7846 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7847 if test "x$LINE" != x ; then
7848 eval "DEFAULT_$LINE"
7849 else
7850 no_cache=1
7851 fi
7852
7853 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7854
7855 fi
7856
7857
7858 eval "$ac_cv_use_gif"
7859 if test "$no_cache" != 1; then
7860 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7861 fi
7862
7863 if test "$wxUSE_GIF" = yes; then
7864 echo "$ac_t""yes" 1>&6
7865 else
7866 echo "$ac_t""no" 1>&6
7867 fi
7868
7869
7870 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7871 echo "configure:7872: checking for --enable-pcx" >&5
7872 no_cache=0
7873 # Check whether --enable-pcx or --disable-pcx was given.
7874 if test "${enable_pcx+set}" = set; then
7875 enableval="$enable_pcx"
7876
7877 if test "$enableval" = yes; then
7878 ac_cv_use_pcx='wxUSE_PCX=yes'
7879 else
7880 ac_cv_use_pcx='wxUSE_PCX=no'
7881 fi
7882
7883 else
7884
7885 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7886 if test "x$LINE" != x ; then
7887 eval "DEFAULT_$LINE"
7888 else
7889 no_cache=1
7890 fi
7891
7892 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7893
7894 fi
7895
7896
7897 eval "$ac_cv_use_pcx"
7898 if test "$no_cache" != 1; then
7899 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7900 fi
7901
7902 if test "$wxUSE_PCX" = yes; then
7903 echo "$ac_t""yes" 1>&6
7904 else
7905 echo "$ac_t""no" 1>&6
7906 fi
7907
7908
7909 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7910 echo "configure:7911: checking for --enable-pnm" >&5
7911 no_cache=0
7912 # Check whether --enable-pnm or --disable-pnm was given.
7913 if test "${enable_pnm+set}" = set; then
7914 enableval="$enable_pnm"
7915
7916 if test "$enableval" = yes; then
7917 ac_cv_use_pnm='wxUSE_PNM=yes'
7918 else
7919 ac_cv_use_pnm='wxUSE_PNM=no'
7920 fi
7921
7922 else
7923
7924 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7925 if test "x$LINE" != x ; then
7926 eval "DEFAULT_$LINE"
7927 else
7928 no_cache=1
7929 fi
7930
7931 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7932
7933 fi
7934
7935
7936 eval "$ac_cv_use_pnm"
7937 if test "$no_cache" != 1; then
7938 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7939 fi
7940
7941 if test "$wxUSE_PNM" = yes; then
7942 echo "$ac_t""yes" 1>&6
7943 else
7944 echo "$ac_t""no" 1>&6
7945 fi
7946
7947
7948 echo $ac_n "checking for --enable-xpm""... $ac_c" 1>&6
7949 echo "configure:7950: checking for --enable-xpm" >&5
7950 no_cache=0
7951 # Check whether --enable-xpm or --disable-xpm was given.
7952 if test "${enable_xpm+set}" = set; then
7953 enableval="$enable_xpm"
7954
7955 if test "$enableval" = yes; then
7956 ac_cv_use_xpm='wxUSE_XPM=yes'
7957 else
7958 ac_cv_use_xpm='wxUSE_XPM=no'
7959 fi
7960
7961 else
7962
7963 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7964 if test "x$LINE" != x ; then
7965 eval "DEFAULT_$LINE"
7966 else
7967 no_cache=1
7968 fi
7969
7970 ac_cv_use_xpm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7971
7972 fi
7973
7974
7975 eval "$ac_cv_use_xpm"
7976 if test "$no_cache" != 1; then
7977 echo $ac_cv_use_xpm >> ${wx_arg_cache_file}.tmp
7978 fi
7979
7980 if test "$wxUSE_XPM" = yes; then
7981 echo "$ac_t""yes" 1>&6
7982 else
7983 echo "$ac_t""no" 1>&6
7984 fi
7985
7986
7987 fi
7988
7989
7990 echo "saving argument cache $wx_arg_cache_file"
7991 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7992
7993
7994
7995 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7996 echo "configure:7997: checking for toolkit" >&5
7997
7998 if test "$wxUSE_GUI" = "yes"; then
7999
8000 if test "$USE_BEOS" = 1; then
8001 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
8002 fi
8003
8004 if test "$TOOLKIT_GIVEN" = 1; then
8005 for toolkit in `echo $ALL_TOOLKITS`; do
8006 var=wxUSE_$toolkit
8007 eval "value=\$${var}"
8008 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
8009 done
8010 else
8011 for toolkit in `echo $ALL_TOOLKITS`; do
8012 if test "$has_toolkit_in_cache" != 1; then
8013 var=DEFAULT_DEFAULT_wxUSE_$toolkit
8014 else
8015 var=DEFAULT_wxUSE_$toolkit
8016 fi
8017 eval "wxUSE_$toolkit=\$${var}"
8018 done
8019 fi
8020
8021 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} \
8022 + ${wxUSE_WINE:-0} + ${wxUSE_MSW:-0} + ${wxUSE_MGL:-0} + ${wxUSE_MICROWIN:-0}`
8023
8024 case "${host}" in
8025 *-pc-os2_emx | *-pc-os2-emx )
8026 # PATH_IFS is autodetected by OS/2's configure (usually ';')
8027 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
8028 LEX_STEM="lexyy"
8029 ;;
8030 *)
8031 PATH_IFS=':'
8032 LEX_STEM="lex.yy"
8033 ;;
8034 esac
8035
8036 case "$NUM_TOOLKITS" in
8037 1)
8038 ;;
8039 0)
8040 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
8041 ;;
8042 *)
8043 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
8044 esac
8045
8046 for toolkit in `echo $ALL_TOOLKITS`; do
8047 var=wxUSE_$toolkit
8048 eval "value=\$${var}"
8049 if test "x$value" != x; then
8050 cache_var=CACHE_$toolkit
8051 eval "cache=\$${cache_var}"
8052 if test "$cache" = 1; then
8053 echo "$var=$value" >> ${wx_arg_cache_file}
8054 fi
8055 if test "$value" = 1; then
8056 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
8057 echo "$ac_t""$toolkit_echo" 1>&6
8058 fi
8059 fi
8060 done
8061 else
8062 PATH_IFS=':'
8063 echo "$ac_t""base ($host_alias hosted) only" 1>&6
8064 fi
8065
8066
8067 cat > confcache <<\EOF
8068 # This file is a shell script that caches the results of configure
8069 # tests run on this system so they can be shared between configure
8070 # scripts and configure runs. It is not useful on other systems.
8071 # If it contains results you don't want to keep, you may remove or edit it.
8072 #
8073 # By default, configure uses ./config.cache as the cache file,
8074 # creating it if it does not exist already. You can give configure
8075 # the --cache-file=FILE option to use a different cache file; that is
8076 # what configure does when it calls configure scripts in
8077 # subdirectories, so they share the cache.
8078 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8079 # config.status only pays attention to the cache file if you give it the
8080 # --recheck option to rerun configure.
8081 #
8082 EOF
8083 # The following way of writing the cache mishandles newlines in values,
8084 # but we know of no workaround that is simple, portable, and efficient.
8085 # So, don't put newlines in cache variables' values.
8086 # Ultrix sh set writes to stderr and can't be redirected directly,
8087 # and sets the high bit in the cache file unless we assign to the vars.
8088 (set) 2>&1 |
8089 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8090 *ac_space=\ *)
8091 # `set' does not quote correctly, so add quotes (double-quote substitution
8092 # turns \\\\ into \\, and sed turns \\ into \).
8093 sed -n \
8094 -e "s/'/'\\\\''/g" \
8095 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8096 ;;
8097 *)
8098 # `set' quotes correctly as required by POSIX, so do not add quotes.
8099 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8100 ;;
8101 esac >> confcache
8102 if cmp -s $cache_file confcache; then
8103 :
8104 else
8105 if test -w $cache_file; then
8106 echo "updating cache $cache_file"
8107 cat confcache > $cache_file
8108 else
8109 echo "not updating unwritable cache $cache_file"
8110 fi
8111 fi
8112 rm -f confcache
8113
8114
8115 if test "$build" != "$host" ; then
8116 if test "$USE_WIN32" = 1 -o "$USE_DOS" = 1 ; then
8117 CC=$host_alias-gcc
8118 CXX=$host_alias-c++
8119 AR=$host_alias-ar
8120 RANLIB=$host_alias-ranlib
8121 DLLTOOL=$host_alias-dlltool
8122 RESCOMP=$host_alias-windres
8123 LD=$host_alias-ld
8124 NM=$host_alias-nm
8125 STRIP=$host_alias-strip
8126 else
8127 { echo "configure: error: $build_alias -> $host_alias cross compilation not supported yet." 1>&2; exit 1; }
8128 fi
8129 fi
8130
8131 # Extract the first word of "gcc", so it can be a program name with args.
8132 set dummy gcc; ac_word=$2
8133 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8134 echo "configure:8135: checking for $ac_word" >&5
8135 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8136 echo $ac_n "(cached) $ac_c" 1>&6
8137 else
8138 if test -n "$CC"; then
8139 ac_cv_prog_CC="$CC" # Let the user override the test.
8140 else
8141 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8142 ac_dummy="$PATH"
8143 for ac_dir in $ac_dummy; do
8144 test -z "$ac_dir" && ac_dir=.
8145 if test -f $ac_dir/$ac_word; then
8146 ac_cv_prog_CC="gcc"
8147 break
8148 fi
8149 done
8150 IFS="$ac_save_ifs"
8151 fi
8152 fi
8153 CC="$ac_cv_prog_CC"
8154 if test -n "$CC"; then
8155 echo "$ac_t""$CC" 1>&6
8156 else
8157 echo "$ac_t""no" 1>&6
8158 fi
8159
8160 if test -z "$CC"; then
8161 # Extract the first word of "cc", so it can be a program name with args.
8162 set dummy cc; ac_word=$2
8163 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8164 echo "configure:8165: checking for $ac_word" >&5
8165 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8166 echo $ac_n "(cached) $ac_c" 1>&6
8167 else
8168 if test -n "$CC"; then
8169 ac_cv_prog_CC="$CC" # Let the user override the test.
8170 else
8171 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8172 ac_prog_rejected=no
8173 ac_dummy="$PATH"
8174 for ac_dir in $ac_dummy; do
8175 test -z "$ac_dir" && ac_dir=.
8176 if test -f $ac_dir/$ac_word; then
8177 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
8178 ac_prog_rejected=yes
8179 continue
8180 fi
8181 ac_cv_prog_CC="cc"
8182 break
8183 fi
8184 done
8185 IFS="$ac_save_ifs"
8186 if test $ac_prog_rejected = yes; then
8187 # We found a bogon in the path, so make sure we never use it.
8188 set dummy $ac_cv_prog_CC
8189 shift
8190 if test $# -gt 0; then
8191 # We chose a different compiler from the bogus one.
8192 # However, it has the same basename, so the bogon will be chosen
8193 # first if we set CC to just the basename; use the full file name.
8194 shift
8195 set dummy "$ac_dir/$ac_word" "$@"
8196 shift
8197 ac_cv_prog_CC="$@"
8198 fi
8199 fi
8200 fi
8201 fi
8202 CC="$ac_cv_prog_CC"
8203 if test -n "$CC"; then
8204 echo "$ac_t""$CC" 1>&6
8205 else
8206 echo "$ac_t""no" 1>&6
8207 fi
8208
8209 if test -z "$CC"; then
8210 case "`uname -s`" in
8211 *win32* | *WIN32*)
8212 # Extract the first word of "cl", so it can be a program name with args.
8213 set dummy cl; ac_word=$2
8214 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8215 echo "configure:8216: checking for $ac_word" >&5
8216 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
8217 echo $ac_n "(cached) $ac_c" 1>&6
8218 else
8219 if test -n "$CC"; then
8220 ac_cv_prog_CC="$CC" # Let the user override the test.
8221 else
8222 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8223 ac_dummy="$PATH"
8224 for ac_dir in $ac_dummy; do
8225 test -z "$ac_dir" && ac_dir=.
8226 if test -f $ac_dir/$ac_word; then
8227 ac_cv_prog_CC="cl"
8228 break
8229 fi
8230 done
8231 IFS="$ac_save_ifs"
8232 fi
8233 fi
8234 CC="$ac_cv_prog_CC"
8235 if test -n "$CC"; then
8236 echo "$ac_t""$CC" 1>&6
8237 else
8238 echo "$ac_t""no" 1>&6
8239 fi
8240 ;;
8241 esac
8242 fi
8243 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
8244 fi
8245
8246 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8247 echo "configure:8248: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
8248
8249 ac_ext=c
8250 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8251 ac_cpp='$CPP $CPPFLAGS'
8252 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8253 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8254 cross_compiling=$ac_cv_prog_cc_cross
8255
8256 cat > conftest.$ac_ext << EOF
8257
8258 #line 8259 "configure"
8259 #include "confdefs.h"
8260
8261 main(){return(0);}
8262 EOF
8263 if { (eval echo configure:8264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8264 ac_cv_prog_cc_works=yes
8265 # If we can't run a trivial program, we are probably using a cross compiler.
8266 if (./conftest; exit) 2>/dev/null; then
8267 ac_cv_prog_cc_cross=no
8268 else
8269 ac_cv_prog_cc_cross=yes
8270 fi
8271 else
8272 echo "configure: failed program was:" >&5
8273 cat conftest.$ac_ext >&5
8274 ac_cv_prog_cc_works=no
8275 fi
8276 rm -fr conftest*
8277 ac_ext=c
8278 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8279 ac_cpp='$CPP $CPPFLAGS'
8280 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8281 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8282 cross_compiling=$ac_cv_prog_cc_cross
8283
8284 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8285 if test $ac_cv_prog_cc_works = no; then
8286 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8287 fi
8288 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8289 echo "configure:8290: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8290 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8291 cross_compiling=$ac_cv_prog_cc_cross
8292
8293 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8294 echo "configure:8295: checking whether we are using GNU C" >&5
8295 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8296 echo $ac_n "(cached) $ac_c" 1>&6
8297 else
8298 cat > conftest.c <<EOF
8299 #ifdef __GNUC__
8300 yes;
8301 #endif
8302 EOF
8303 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8304 ac_cv_prog_gcc=yes
8305 else
8306 ac_cv_prog_gcc=no
8307 fi
8308 fi
8309
8310 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8311
8312 if test $ac_cv_prog_gcc = yes; then
8313 GCC=yes
8314 else
8315 GCC=
8316 fi
8317
8318 ac_test_CFLAGS="${CFLAGS+set}"
8319 ac_save_CFLAGS="$CFLAGS"
8320 CFLAGS=
8321 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8322 echo "configure:8323: checking whether ${CC-cc} accepts -g" >&5
8323 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8324 echo $ac_n "(cached) $ac_c" 1>&6
8325 else
8326 echo 'void f(){}' > conftest.c
8327 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8328 ac_cv_prog_cc_g=yes
8329 else
8330 ac_cv_prog_cc_g=no
8331 fi
8332 rm -f conftest*
8333
8334 fi
8335
8336 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8337 if test "$ac_test_CFLAGS" = set; then
8338 CFLAGS="$ac_save_CFLAGS"
8339 elif test $ac_cv_prog_cc_g = yes; then
8340 if test "$GCC" = yes; then
8341 CFLAGS="-g -O2"
8342 else
8343 CFLAGS="-g"
8344 fi
8345 else
8346 if test "$GCC" = yes; then
8347 CFLAGS="-O2"
8348 else
8349 CFLAGS=
8350 fi
8351 fi
8352
8353
8354 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8355
8356 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8357 echo "configure:8358: checking how to run the C preprocessor" >&5
8358 # On Suns, sometimes $CPP names a directory.
8359 if test -n "$CPP" && test -d "$CPP"; then
8360 CPP=
8361 fi
8362 if test -z "$CPP"; then
8363 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8364 echo $ac_n "(cached) $ac_c" 1>&6
8365 else
8366 # This must be in double quotes, not single quotes, because CPP may get
8367 # substituted into the Makefile and "${CC-cc}" will confuse make.
8368 CPP="${CC-cc} -E"
8369 # On the NeXT, cc -E runs the code through the compiler's parser,
8370 # not just through cpp.
8371 cat > conftest.$ac_ext <<EOF
8372 #line 8373 "configure"
8373 #include "confdefs.h"
8374 #include <assert.h>
8375 Syntax Error
8376 EOF
8377 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8378 { (eval echo configure:8379: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8379 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8380 if test -z "$ac_err"; then
8381 :
8382 else
8383 echo "$ac_err" >&5
8384 echo "configure: failed program was:" >&5
8385 cat conftest.$ac_ext >&5
8386 rm -rf conftest*
8387 CPP="${CC-cc} -E -traditional-cpp"
8388 cat > conftest.$ac_ext <<EOF
8389 #line 8390 "configure"
8390 #include "confdefs.h"
8391 #include <assert.h>
8392 Syntax Error
8393 EOF
8394 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8395 { (eval echo configure:8396: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8396 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8397 if test -z "$ac_err"; then
8398 :
8399 else
8400 echo "$ac_err" >&5
8401 echo "configure: failed program was:" >&5
8402 cat conftest.$ac_ext >&5
8403 rm -rf conftest*
8404 CPP="${CC-cc} -nologo -E"
8405 cat > conftest.$ac_ext <<EOF
8406 #line 8407 "configure"
8407 #include "confdefs.h"
8408 #include <assert.h>
8409 Syntax Error
8410 EOF
8411 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8412 { (eval echo configure:8413: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8413 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8414 if test -z "$ac_err"; then
8415 :
8416 else
8417 echo "$ac_err" >&5
8418 echo "configure: failed program was:" >&5
8419 cat conftest.$ac_ext >&5
8420 rm -rf conftest*
8421 CPP=/lib/cpp
8422 fi
8423 rm -f conftest*
8424 fi
8425 rm -f conftest*
8426 fi
8427 rm -f conftest*
8428 ac_cv_prog_CPP="$CPP"
8429 fi
8430 CPP="$ac_cv_prog_CPP"
8431 else
8432 ac_cv_prog_CPP="$CPP"
8433 fi
8434 echo "$ac_t""$CPP" 1>&6
8435
8436 if test $ac_cv_prog_gcc = yes; then
8437 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8438 echo "configure:8439: checking whether ${CC-cc} needs -traditional" >&5
8439 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8440 echo $ac_n "(cached) $ac_c" 1>&6
8441 else
8442 ac_pattern="Autoconf.*'x'"
8443 cat > conftest.$ac_ext <<EOF
8444 #line 8445 "configure"
8445 #include "confdefs.h"
8446 #include <sgtty.h>
8447 Autoconf TIOCGETP
8448 EOF
8449 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8450 egrep "$ac_pattern" >/dev/null 2>&1; then
8451 rm -rf conftest*
8452 ac_cv_prog_gcc_traditional=yes
8453 else
8454 rm -rf conftest*
8455 ac_cv_prog_gcc_traditional=no
8456 fi
8457 rm -f conftest*
8458
8459
8460 if test $ac_cv_prog_gcc_traditional = no; then
8461 cat > conftest.$ac_ext <<EOF
8462 #line 8463 "configure"
8463 #include "confdefs.h"
8464 #include <termio.h>
8465 Autoconf TCGETA
8466 EOF
8467 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8468 egrep "$ac_pattern" >/dev/null 2>&1; then
8469 rm -rf conftest*
8470 ac_cv_prog_gcc_traditional=yes
8471 fi
8472 rm -f conftest*
8473
8474 fi
8475 fi
8476
8477 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8478 if test $ac_cv_prog_gcc_traditional = yes; then
8479 CC="$CC -traditional"
8480 fi
8481 fi
8482
8483
8484
8485 ac_ext=C
8486 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8487 ac_cpp='$CXXCPP $CPPFLAGS'
8488 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8489 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8490 cross_compiling=$ac_cv_prog_cxx_cross
8491
8492
8493 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8494 do
8495 # Extract the first word of "$ac_prog", so it can be a program name with args.
8496 set dummy $ac_prog; ac_word=$2
8497 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8498 echo "configure:8499: checking for $ac_word" >&5
8499 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8500 echo $ac_n "(cached) $ac_c" 1>&6
8501 else
8502 if test -n "$CXX"; then
8503 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8504 else
8505 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8506 ac_dummy="$PATH"
8507 for ac_dir in $ac_dummy; do
8508 test -z "$ac_dir" && ac_dir=.
8509 if test -f $ac_dir/$ac_word; then
8510 ac_cv_prog_CXX="$ac_prog"
8511 break
8512 fi
8513 done
8514 IFS="$ac_save_ifs"
8515 fi
8516 fi
8517 CXX="$ac_cv_prog_CXX"
8518 if test -n "$CXX"; then
8519 echo "$ac_t""$CXX" 1>&6
8520 else
8521 echo "$ac_t""no" 1>&6
8522 fi
8523
8524 test -n "$CXX" && break
8525 done
8526 test -n "$CXX" || CXX="gcc"
8527
8528
8529 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8530 echo "configure:8531: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8531
8532 ac_ext=C
8533 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8534 ac_cpp='$CXXCPP $CPPFLAGS'
8535 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8536 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8537 cross_compiling=$ac_cv_prog_cxx_cross
8538
8539 cat > conftest.$ac_ext << EOF
8540
8541 #line 8542 "configure"
8542 #include "confdefs.h"
8543
8544 int main(){return(0);}
8545 EOF
8546 if { (eval echo configure:8547: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8547 ac_cv_prog_cxx_works=yes
8548 # If we can't run a trivial program, we are probably using a cross compiler.
8549 if (./conftest; exit) 2>/dev/null; then
8550 ac_cv_prog_cxx_cross=no
8551 else
8552 ac_cv_prog_cxx_cross=yes
8553 fi
8554 else
8555 echo "configure: failed program was:" >&5
8556 cat conftest.$ac_ext >&5
8557 ac_cv_prog_cxx_works=no
8558 fi
8559 rm -fr conftest*
8560 ac_ext=C
8561 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8562 ac_cpp='$CXXCPP $CPPFLAGS'
8563 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8564 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8565 cross_compiling=$ac_cv_prog_cxx_cross
8566
8567 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8568 if test $ac_cv_prog_cxx_works = no; then
8569 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8570 fi
8571 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8572 echo "configure:8573: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8573 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8574 cross_compiling=$ac_cv_prog_cxx_cross
8575
8576 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8577 echo "configure:8578: checking whether we are using GNU C++" >&5
8578 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8579 echo $ac_n "(cached) $ac_c" 1>&6
8580 else
8581 cat > conftest.C <<EOF
8582 #ifdef __GNUC__
8583 yes;
8584 #endif
8585 EOF
8586 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8587 ac_cv_prog_gxx=yes
8588 else
8589 ac_cv_prog_gxx=no
8590 fi
8591 fi
8592
8593 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8594
8595 if test $ac_cv_prog_gxx = yes; then
8596 GXX=yes
8597 else
8598 GXX=
8599 fi
8600
8601 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8602 ac_save_CXXFLAGS="$CXXFLAGS"
8603 CXXFLAGS=
8604 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8605 echo "configure:8606: checking whether ${CXX-g++} accepts -g" >&5
8606 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8607 echo $ac_n "(cached) $ac_c" 1>&6
8608 else
8609 echo 'void f(){}' > conftest.cc
8610 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8611 ac_cv_prog_cxx_g=yes
8612 else
8613 ac_cv_prog_cxx_g=no
8614 fi
8615 rm -f conftest*
8616
8617 fi
8618
8619 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8620 if test "$ac_test_CXXFLAGS" = set; then
8621 CXXFLAGS="$ac_save_CXXFLAGS"
8622 elif test $ac_cv_prog_cxx_g = yes; then
8623 if test "$GXX" = yes; then
8624 CXXFLAGS="-g -O2"
8625 else
8626 CXXFLAGS="-g"
8627 fi
8628 else
8629 if test "$GXX" = yes; then
8630 CXXFLAGS="-O2"
8631 else
8632 CXXFLAGS=
8633 fi
8634 fi
8635
8636
8637 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8638
8639 ac_ext=c
8640 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8641 ac_cpp='$CPP $CPPFLAGS'
8642 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8643 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8644 cross_compiling=$ac_cv_prog_cc_cross
8645
8646
8647 # Extract the first word of "ranlib", so it can be a program name with args.
8648 set dummy ranlib; 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_RANLIB'+set}'`\" = set"; then
8652 echo $ac_n "(cached) $ac_c" 1>&6
8653 else
8654 if test -n "$RANLIB"; then
8655 ac_cv_prog_RANLIB="$RANLIB" # 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_RANLIB="ranlib"
8663 break
8664 fi
8665 done
8666 IFS="$ac_save_ifs"
8667 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8668 fi
8669 fi
8670 RANLIB="$ac_cv_prog_RANLIB"
8671 if test -n "$RANLIB"; then
8672 echo "$ac_t""$RANLIB" 1>&6
8673 else
8674 echo "$ac_t""no" 1>&6
8675 fi
8676
8677
8678 # Extract the first word of "ar", so it can be a program name with args.
8679 set dummy ar; ac_word=$2
8680 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8681 echo "configure:8682: checking for $ac_word" >&5
8682 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8683 echo $ac_n "(cached) $ac_c" 1>&6
8684 else
8685 if test -n "$AR"; then
8686 ac_cv_prog_AR="$AR" # Let the user override the test.
8687 else
8688 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8689 ac_dummy="$PATH"
8690 for ac_dir in $ac_dummy; do
8691 test -z "$ac_dir" && ac_dir=.
8692 if test -f $ac_dir/$ac_word; then
8693 ac_cv_prog_AR="ar"
8694 break
8695 fi
8696 done
8697 IFS="$ac_save_ifs"
8698 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8699 fi
8700 fi
8701 AR="$ac_cv_prog_AR"
8702 if test -n "$AR"; then
8703 echo "$ac_t""$AR" 1>&6
8704 else
8705 echo "$ac_t""no" 1>&6
8706 fi
8707
8708
8709 # Find a good install program. We prefer a C program (faster),
8710 # so one script is as good as another. But avoid the broken or
8711 # incompatible versions:
8712 # SysV /etc/install, /usr/sbin/install
8713 # SunOS /usr/etc/install
8714 # IRIX /sbin/install
8715 # AIX /bin/install
8716 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8717 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8718 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8719 # ./install, which can be erroneously created by make from ./install.sh.
8720 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8721 echo "configure:8722: checking for a BSD compatible install" >&5
8722 if test -z "$INSTALL"; then
8723 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8724 echo $ac_n "(cached) $ac_c" 1>&6
8725 else
8726 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8727 for ac_dir in $PATH; do
8728 # Account for people who put trailing slashes in PATH elements.
8729 case "$ac_dir/" in
8730 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8731 *)
8732 # OSF1 and SCO ODT 3.0 have their own names for install.
8733 # Don't use installbsd from OSF since it installs stuff as root
8734 # by default.
8735 for ac_prog in ginstall scoinst install; do
8736 if test -f $ac_dir/$ac_prog; then
8737 if test $ac_prog = install &&
8738 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8739 # AIX install. It has an incompatible calling convention.
8740 :
8741 else
8742 ac_cv_path_install="$ac_dir/$ac_prog -c"
8743 break 2
8744 fi
8745 fi
8746 done
8747 ;;
8748 esac
8749 done
8750 IFS="$ac_save_IFS"
8751
8752 fi
8753 if test "${ac_cv_path_install+set}" = set; then
8754 INSTALL="$ac_cv_path_install"
8755 else
8756 # As a last resort, use the slow shell script. We don't cache a
8757 # path for INSTALL within a source directory, because that will
8758 # break other packages using the cache if that directory is
8759 # removed, or if the path is relative.
8760 INSTALL="$ac_install_sh"
8761 fi
8762 fi
8763 echo "$ac_t""$INSTALL" 1>&6
8764
8765 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8766 # It thinks the first close brace ends the variable substitution.
8767 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8768
8769 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8770
8771 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8772
8773 case "${host}" in
8774
8775 powerpc-*-darwin* )
8776 INSTALL_PROGRAM="cp -fp"
8777 INSTALL_DATA="cp -fp"
8778 ;;
8779 *)
8780 ;;
8781 esac
8782
8783 # Extract the first word of "strip", so it can be a program name with args.
8784 set dummy strip; ac_word=$2
8785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8786 echo "configure:8787: checking for $ac_word" >&5
8787 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8788 echo $ac_n "(cached) $ac_c" 1>&6
8789 else
8790 if test -n "$STRIP"; then
8791 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8792 else
8793 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8794 ac_dummy="$PATH"
8795 for ac_dir in $ac_dummy; do
8796 test -z "$ac_dir" && ac_dir=.
8797 if test -f $ac_dir/$ac_word; then
8798 ac_cv_prog_STRIP="strip"
8799 break
8800 fi
8801 done
8802 IFS="$ac_save_ifs"
8803 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8804 fi
8805 fi
8806 STRIP="$ac_cv_prog_STRIP"
8807 if test -n "$STRIP"; then
8808 echo "$ac_t""$STRIP" 1>&6
8809 else
8810 echo "$ac_t""no" 1>&6
8811 fi
8812
8813
8814 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8815 echo "configure:8816: checking make for VPATH support" >&5
8816 cat - << EOF > confMake
8817 check : file
8818 cp \$? \$@
8819 cp \$? final_file
8820 EOF
8821
8822 if test ! -d sub ; then
8823 mkdir sub
8824 fi
8825 echo dummy > sub/file
8826 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8827 RESULT=$?
8828 rm -f sub/file check final_file confMake
8829 rmdir sub
8830 if test "$RESULT" = 0; then
8831 echo "$ac_t""yes" 1>&6
8832 else
8833 echo "$ac_t""no" 1>&6
8834 { echo "configure: error:
8835 You need a make-utility that is able to use the variable
8836 VPATH correctly.
8837 If your version of make does not support VPATH correctly,
8838 please install GNU-make (possibly as gmake), and start
8839 configure with the following command:
8840 export MAKE=gmake; ./configure for sh-type shells
8841 setenv MAKE gmake; ./configure for csh-type shells
8842 Also please do remember to use gmake in this case every time
8843 you are trying to compile.
8844 " 1>&2; exit 1; }
8845 fi
8846
8847 for ac_prog in 'bison -y' byacc
8848 do
8849 # Extract the first word of "$ac_prog", so it can be a program name with args.
8850 set dummy $ac_prog; ac_word=$2
8851 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8852 echo "configure:8853: checking for $ac_word" >&5
8853 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8854 echo $ac_n "(cached) $ac_c" 1>&6
8855 else
8856 if test -n "$YACC"; then
8857 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8858 else
8859 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8860 ac_dummy="$PATH"
8861 for ac_dir in $ac_dummy; do
8862 test -z "$ac_dir" && ac_dir=.
8863 if test -f $ac_dir/$ac_word; then
8864 ac_cv_prog_YACC="$ac_prog"
8865 break
8866 fi
8867 done
8868 IFS="$ac_save_ifs"
8869 fi
8870 fi
8871 YACC="$ac_cv_prog_YACC"
8872 if test -n "$YACC"; then
8873 echo "$ac_t""$YACC" 1>&6
8874 else
8875 echo "$ac_t""no" 1>&6
8876 fi
8877
8878 test -n "$YACC" && break
8879 done
8880 test -n "$YACC" || YACC="yacc"
8881
8882
8883 # Extract the first word of "flex", so it can be a program name with args.
8884 set dummy flex; ac_word=$2
8885 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8886 echo "configure:8887: checking for $ac_word" >&5
8887 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8888 echo $ac_n "(cached) $ac_c" 1>&6
8889 else
8890 if test -n "$LEX"; then
8891 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8892 else
8893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8894 ac_dummy="$PATH"
8895 for ac_dir in $ac_dummy; do
8896 test -z "$ac_dir" && ac_dir=.
8897 if test -f $ac_dir/$ac_word; then
8898 ac_cv_prog_LEX="flex"
8899 break
8900 fi
8901 done
8902 IFS="$ac_save_ifs"
8903 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8904 fi
8905 fi
8906 LEX="$ac_cv_prog_LEX"
8907 if test -n "$LEX"; then
8908 echo "$ac_t""$LEX" 1>&6
8909 else
8910 echo "$ac_t""no" 1>&6
8911 fi
8912
8913 if test -z "$LEXLIB"
8914 then
8915 case "$LEX" in
8916 flex*) ac_lib=fl ;;
8917 *) ac_lib=l ;;
8918 esac
8919 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8920 echo "configure:8921: checking for yywrap in -l$ac_lib" >&5
8921 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8922 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8923 echo $ac_n "(cached) $ac_c" 1>&6
8924 else
8925 ac_save_LIBS="$LIBS"
8926 LIBS="-l$ac_lib $LIBS"
8927 cat > conftest.$ac_ext <<EOF
8928 #line 8929 "configure"
8929 #include "confdefs.h"
8930 /* Override any gcc2 internal prototype to avoid an error. */
8931 /* We use char because int might match the return type of a gcc2
8932 builtin and then its argument prototype would still apply. */
8933 char yywrap();
8934
8935 int main() {
8936 yywrap()
8937 ; return 0; }
8938 EOF
8939 if { (eval echo configure:8940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8940 rm -rf conftest*
8941 eval "ac_cv_lib_$ac_lib_var=yes"
8942 else
8943 echo "configure: failed program was:" >&5
8944 cat conftest.$ac_ext >&5
8945 rm -rf conftest*
8946 eval "ac_cv_lib_$ac_lib_var=no"
8947 fi
8948 rm -f conftest*
8949 LIBS="$ac_save_LIBS"
8950
8951 fi
8952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8953 echo "$ac_t""yes" 1>&6
8954 LEXLIB="-l$ac_lib"
8955 else
8956 echo "$ac_t""no" 1>&6
8957 fi
8958
8959 fi
8960
8961
8962 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8963 echo "configure:8964: checking whether ln -s works" >&5
8964 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8965 echo $ac_n "(cached) $ac_c" 1>&6
8966 else
8967 rm -f conftestdata
8968 if ln -s X conftestdata 2>/dev/null
8969 then
8970 rm -f conftestdata
8971 ac_cv_prog_LN_S="ln -s"
8972 else
8973 ac_cv_prog_LN_S=ln
8974 fi
8975 fi
8976 LN_S="$ac_cv_prog_LN_S"
8977 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8978 echo "$ac_t""yes" 1>&6
8979 else
8980 echo "$ac_t""no" 1>&6
8981 fi
8982
8983
8984
8985 SEARCH_INCLUDE="\
8986 /usr/local/include \
8987 \
8988 /usr/Motif-1.2/include \
8989 /usr/Motif-2.1/include \
8990 \
8991 /usr/include/Motif1.2 \
8992 /opt/xpm/include/X11 \
8993 /opt/GBxpm/include/ \
8994 /opt/GBxpm/X11/include/ \
8995 \
8996 /usr/Motif1.2/include \
8997 /usr/dt/include \
8998 /usr/openwin/include \
8999 \
9000 /usr/include/Xm \
9001 \
9002 /usr/X11R6/include \
9003 /usr/X11R6.4/include \
9004 /usr/X11R5/include \
9005 /usr/X11R4/include \
9006 \
9007 /usr/include/X11R6 \
9008 /usr/include/X11R5 \
9009 /usr/include/X11R4 \
9010 \
9011 /usr/local/X11R6/include \
9012 /usr/local/X11R5/include \
9013 /usr/local/X11R4/include \
9014 \
9015 /usr/local/include/X11R6 \
9016 /usr/local/include/X11R5 \
9017 /usr/local/include/X11R4 \
9018 \
9019 /usr/X11/include \
9020 /usr/include/X11 \
9021 /usr/local/X11/include \
9022 /usr/local/include/X11 \
9023 \
9024 /usr/X386/include \
9025 /usr/x386/include \
9026 /usr/XFree86/include/X11 \
9027 \
9028 X:/XFree86/include \
9029 X:/XFree86/include/X11 \
9030 \
9031 /usr/include/gtk \
9032 /usr/local/include/gtk \
9033 /usr/include/glib \
9034 /usr/local/include/glib \
9035 \
9036 /usr/include/qt \
9037 /usr/local/include/qt \
9038 \
9039 /usr/include/windows \
9040 /usr/include/wine \
9041 /usr/local/include/wine \
9042 \
9043 /usr/unsupported/include \
9044 /usr/athena/include \
9045 /usr/local/x11r5/include \
9046 /usr/lpp/Xamples/include \
9047 \
9048 /usr/openwin/share/include \
9049 \
9050 /usr/include"
9051
9052 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
9053
9054
9055 cat > confcache <<\EOF
9056 # This file is a shell script that caches the results of configure
9057 # tests run on this system so they can be shared between configure
9058 # scripts and configure runs. It is not useful on other systems.
9059 # If it contains results you don't want to keep, you may remove or edit it.
9060 #
9061 # By default, configure uses ./config.cache as the cache file,
9062 # creating it if it does not exist already. You can give configure
9063 # the --cache-file=FILE option to use a different cache file; that is
9064 # what configure does when it calls configure scripts in
9065 # subdirectories, so they share the cache.
9066 # Giving --cache-file=/dev/null disables caching, for debugging configure.
9067 # config.status only pays attention to the cache file if you give it the
9068 # --recheck option to rerun configure.
9069 #
9070 EOF
9071 # The following way of writing the cache mishandles newlines in values,
9072 # but we know of no workaround that is simple, portable, and efficient.
9073 # So, don't put newlines in cache variables' values.
9074 # Ultrix sh set writes to stderr and can't be redirected directly,
9075 # and sets the high bit in the cache file unless we assign to the vars.
9076 (set) 2>&1 |
9077 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9078 *ac_space=\ *)
9079 # `set' does not quote correctly, so add quotes (double-quote substitution
9080 # turns \\\\ into \\, and sed turns \\ into \).
9081 sed -n \
9082 -e "s/'/'\\\\''/g" \
9083 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
9084 ;;
9085 *)
9086 # `set' quotes correctly as required by POSIX, so do not add quotes.
9087 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
9088 ;;
9089 esac >> confcache
9090 if cmp -s $cache_file confcache; then
9091 :
9092 else
9093 if test -w $cache_file; then
9094 echo "updating cache $cache_file"
9095 cat confcache > $cache_file
9096 else
9097 echo "not updating unwritable cache $cache_file"
9098 fi
9099 fi
9100 rm -f confcache
9101
9102
9103
9104
9105 REGEX_INCLUDE=
9106 if test "$wxUSE_REGEX" != "no"; then
9107 cat >> confdefs.h <<\EOF
9108 #define wxUSE_REGEX 1
9109 EOF
9110
9111
9112 if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
9113 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
9114 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
9115 echo "configure:9116: checking for regex.h" >&5
9116 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9117 echo $ac_n "(cached) $ac_c" 1>&6
9118 else
9119 cat > conftest.$ac_ext <<EOF
9120 #line 9121 "configure"
9121 #include "confdefs.h"
9122 #include <regex.h>
9123 EOF
9124 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9125 { (eval echo configure:9126: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9126 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9127 if test -z "$ac_err"; then
9128 rm -rf conftest*
9129 eval "ac_cv_header_$ac_safe=yes"
9130 else
9131 echo "$ac_err" >&5
9132 echo "configure: failed program was:" >&5
9133 cat conftest.$ac_ext >&5
9134 rm -rf conftest*
9135 eval "ac_cv_header_$ac_safe=no"
9136 fi
9137 rm -f conftest*
9138 fi
9139 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9140 echo "$ac_t""yes" 1>&6
9141 for ac_func in regcomp
9142 do
9143 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
9144 echo "configure:9145: checking for $ac_func" >&5
9145 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
9146 echo $ac_n "(cached) $ac_c" 1>&6
9147 else
9148 cat > conftest.$ac_ext <<EOF
9149 #line 9150 "configure"
9150 #include "confdefs.h"
9151 /* System header to define __stub macros and hopefully few prototypes,
9152 which can conflict with char $ac_func(); below. */
9153 #include <assert.h>
9154 /* Override any gcc2 internal prototype to avoid an error. */
9155 /* We use char because int might match the return type of a gcc2
9156 builtin and then its argument prototype would still apply. */
9157 char $ac_func();
9158
9159 int main() {
9160
9161 /* The GNU C library defines this for functions which it implements
9162 to always fail with ENOSYS. Some functions are actually named
9163 something starting with __ and the normal name is an alias. */
9164 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9165 choke me
9166 #else
9167 $ac_func();
9168 #endif
9169
9170 ; return 0; }
9171 EOF
9172 if { (eval echo configure:9173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9173 rm -rf conftest*
9174 eval "ac_cv_func_$ac_func=yes"
9175 else
9176 echo "configure: failed program was:" >&5
9177 cat conftest.$ac_ext >&5
9178 rm -rf conftest*
9179 eval "ac_cv_func_$ac_func=no"
9180 fi
9181 rm -f conftest*
9182 fi
9183
9184 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
9185 echo "$ac_t""yes" 1>&6
9186 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
9187 cat >> confdefs.h <<EOF
9188 #define $ac_tr_func 1
9189 EOF
9190
9191 else
9192 echo "$ac_t""no" 1>&6
9193 fi
9194 done
9195
9196 else
9197 echo "$ac_t""no" 1>&6
9198 fi
9199
9200
9201 if test "x$ac_cv_func_regcomp" != "xyes"; then
9202 if test "$wxUSE_REGEX" = "sys" ; then
9203 { echo "configure: error: system regex library not found! Use --with-regex to use built-in version" 1>&2; exit 1; }
9204 else
9205 echo "configure: warning: system regex library not found, will use built-in instead" 1>&2
9206 wxUSE_REGEX=builtin
9207 fi
9208 else
9209 wxUSE_REGEX=sys
9210 fi
9211 fi
9212
9213 if test "$wxUSE_REGEX" = "builtin" ; then
9214 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
9215 fi
9216 fi
9217
9218
9219 ZLIB_INCLUDE=
9220 ZLIB_LINK=
9221 if test "$wxUSE_ZLIB" != "no" ; then
9222 cat >> confdefs.h <<\EOF
9223 #define wxUSE_ZLIB 1
9224 EOF
9225
9226
9227 if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
9228 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
9229 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
9230 echo "configure:9231: checking for zlib.h" >&5
9231 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9232 echo $ac_n "(cached) $ac_c" 1>&6
9233 else
9234 cat > conftest.$ac_ext <<EOF
9235 #line 9236 "configure"
9236 #include "confdefs.h"
9237 #include <zlib.h>
9238 EOF
9239 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9240 { (eval echo configure:9241: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9241 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9242 if test -z "$ac_err"; then
9243 rm -rf conftest*
9244 eval "ac_cv_header_$ac_safe=yes"
9245 else
9246 echo "$ac_err" >&5
9247 echo "configure: failed program was:" >&5
9248 cat conftest.$ac_ext >&5
9249 rm -rf conftest*
9250 eval "ac_cv_header_$ac_safe=no"
9251 fi
9252 rm -f conftest*
9253 fi
9254 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9255 echo "$ac_t""yes" 1>&6
9256 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
9257 echo "configure:9258: checking for deflate in -lz" >&5
9258 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
9259 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9260 echo $ac_n "(cached) $ac_c" 1>&6
9261 else
9262 ac_save_LIBS="$LIBS"
9263 LIBS="-lz $LIBS"
9264 cat > conftest.$ac_ext <<EOF
9265 #line 9266 "configure"
9266 #include "confdefs.h"
9267 /* Override any gcc2 internal prototype to avoid an error. */
9268 /* We use char because int might match the return type of a gcc2
9269 builtin and then its argument prototype would still apply. */
9270 char deflate();
9271
9272 int main() {
9273 deflate()
9274 ; return 0; }
9275 EOF
9276 if { (eval echo configure:9277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9277 rm -rf conftest*
9278 eval "ac_cv_lib_$ac_lib_var=yes"
9279 else
9280 echo "configure: failed program was:" >&5
9281 cat conftest.$ac_ext >&5
9282 rm -rf conftest*
9283 eval "ac_cv_lib_$ac_lib_var=no"
9284 fi
9285 rm -f conftest*
9286 LIBS="$ac_save_LIBS"
9287
9288 fi
9289 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9290 echo "$ac_t""yes" 1>&6
9291 ZLIB_LINK=" -lz"
9292 else
9293 echo "$ac_t""no" 1>&6
9294 fi
9295
9296 else
9297 echo "$ac_t""no" 1>&6
9298 fi
9299
9300
9301 if test "x$ZLIB_LINK" = "x" ; then
9302 if test "$wxUSE_ZLIB" = "sys" ; then
9303 { echo "configure: error: system zlib compression library not found! Use --with-zlib=builtin to use built-in version" 1>&2; exit 1; }
9304 else
9305 echo "configure: warning: system zlib compression library not found, will use built-in instead" 1>&2
9306 wxUSE_ZLIB=builtin
9307 fi
9308 else
9309 wxUSE_ZLIB=sys
9310 fi
9311 fi
9312
9313 if test "$wxUSE_ZLIB" = "builtin" ; then
9314 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
9315 fi
9316 fi
9317
9318
9319 PNG_INCLUDE=
9320 PNG_LINK=
9321 if test "$wxUSE_LIBPNG" != "no" ; then
9322 cat >> confdefs.h <<\EOF
9323 #define wxUSE_LIBPNG 1
9324 EOF
9325
9326
9327 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
9328 echo "configure: warning: system png library doesn't work without system zlib, will use built-in instead" 1>&2
9329 wxUSE_LIBPNG=builtin
9330 fi
9331
9332 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
9333 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
9334 echo $ac_n "checking for png.h""... $ac_c" 1>&6
9335 echo "configure:9336: checking for png.h" >&5
9336 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9337 echo $ac_n "(cached) $ac_c" 1>&6
9338 else
9339 cat > conftest.$ac_ext <<EOF
9340 #line 9341 "configure"
9341 #include "confdefs.h"
9342 #include <png.h>
9343 EOF
9344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9345 { (eval echo configure:9346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9347 if test -z "$ac_err"; then
9348 rm -rf conftest*
9349 eval "ac_cv_header_$ac_safe=yes"
9350 else
9351 echo "$ac_err" >&5
9352 echo "configure: failed program was:" >&5
9353 cat conftest.$ac_ext >&5
9354 rm -rf conftest*
9355 eval "ac_cv_header_$ac_safe=no"
9356 fi
9357 rm -f conftest*
9358 fi
9359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9360 echo "$ac_t""yes" 1>&6
9361 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
9362 echo "configure:9363: checking for png_check_sig in -lpng" >&5
9363 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
9364 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9365 echo $ac_n "(cached) $ac_c" 1>&6
9366 else
9367 ac_save_LIBS="$LIBS"
9368 LIBS="-lpng -lz -lm $LIBS"
9369 cat > conftest.$ac_ext <<EOF
9370 #line 9371 "configure"
9371 #include "confdefs.h"
9372 /* Override any gcc2 internal prototype to avoid an error. */
9373 /* We use char because int might match the return type of a gcc2
9374 builtin and then its argument prototype would still apply. */
9375 char png_check_sig();
9376
9377 int main() {
9378 png_check_sig()
9379 ; return 0; }
9380 EOF
9381 if { (eval echo configure:9382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9382 rm -rf conftest*
9383 eval "ac_cv_lib_$ac_lib_var=yes"
9384 else
9385 echo "configure: failed program was:" >&5
9386 cat conftest.$ac_ext >&5
9387 rm -rf conftest*
9388 eval "ac_cv_lib_$ac_lib_var=no"
9389 fi
9390 rm -f conftest*
9391 LIBS="$ac_save_LIBS"
9392
9393 fi
9394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9395 echo "$ac_t""yes" 1>&6
9396 PNG_LINK=" -lpng"
9397 else
9398 echo "$ac_t""no" 1>&6
9399 fi
9400
9401
9402 else
9403 echo "$ac_t""no" 1>&6
9404 fi
9405
9406
9407 if test "x$PNG_LINK" = "x" ; then
9408 if test "$wxUSE_LIBPNG" = "sys" ; then
9409 { echo "configure: error: system png library not found! Use --with-libpng=builtin to use built-in version" 1>&2; exit 1; }
9410 else
9411 echo "configure: warning: system png library not found, will use built-in instead" 1>&2
9412 wxUSE_LIBPNG=builtin
9413 fi
9414 else
9415 wxUSE_LIBPNG=yes
9416 fi
9417 fi
9418
9419 if test "$wxUSE_LIBPNG" = "builtin" ; then
9420 PNG_INCLUDE="-I\${top_srcdir}/src/png"
9421 fi
9422
9423 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
9424 fi
9425
9426
9427 JPEG_INCLUDE=
9428 JPEG_LINK=
9429 if test "$wxUSE_LIBJPEG" != "no" ; then
9430 cat >> confdefs.h <<\EOF
9431 #define wxUSE_LIBJPEG 1
9432 EOF
9433
9434
9435 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
9436 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
9437 echo "configure:9438: checking for jpeglib.h" >&5
9438 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
9439 echo $ac_n "(cached) $ac_c" 1>&6
9440 else
9441 cat > conftest.$ac_ext <<EOF
9442 #line 9443 "configure"
9443 #include "confdefs.h"
9444
9445 #undef HAVE_STDLIB_H
9446 #include <stdio.h>
9447 #include <jpeglib.h>
9448
9449 int main() {
9450
9451
9452 ; return 0; }
9453 EOF
9454 if { (eval echo configure:9455: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9455 rm -rf conftest*
9456 ac_cv_header_jpeglib_h=yes
9457 else
9458 echo "configure: failed program was:" >&5
9459 cat conftest.$ac_ext >&5
9460 rm -rf conftest*
9461 ac_cv_header_jpeglib_h=no
9462
9463 fi
9464 rm -f conftest*
9465
9466 fi
9467
9468 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
9469
9470 if test "$ac_cv_header_jpeglib_h" = "yes"; then
9471 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
9472 echo "configure:9473: checking for jpeg_read_header in -ljpeg" >&5
9473 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
9474 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9475 echo $ac_n "(cached) $ac_c" 1>&6
9476 else
9477 ac_save_LIBS="$LIBS"
9478 LIBS="-ljpeg $LIBS"
9479 cat > conftest.$ac_ext <<EOF
9480 #line 9481 "configure"
9481 #include "confdefs.h"
9482 /* Override any gcc2 internal prototype to avoid an error. */
9483 /* We use char because int might match the return type of a gcc2
9484 builtin and then its argument prototype would still apply. */
9485 char jpeg_read_header();
9486
9487 int main() {
9488 jpeg_read_header()
9489 ; return 0; }
9490 EOF
9491 if { (eval echo configure:9492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9492 rm -rf conftest*
9493 eval "ac_cv_lib_$ac_lib_var=yes"
9494 else
9495 echo "configure: failed program was:" >&5
9496 cat conftest.$ac_ext >&5
9497 rm -rf conftest*
9498 eval "ac_cv_lib_$ac_lib_var=no"
9499 fi
9500 rm -f conftest*
9501 LIBS="$ac_save_LIBS"
9502
9503 fi
9504 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9505 echo "$ac_t""yes" 1>&6
9506 JPEG_LINK=" -ljpeg"
9507 else
9508 echo "$ac_t""no" 1>&6
9509 fi
9510
9511 fi
9512
9513 if test "x$JPEG_LINK" = "x" ; then
9514 if test "$wxUSE_LIBJPEG" = "sys" ; then
9515 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" 1>&2; exit 1; }
9516 else
9517 echo "configure: warning: system jpeg library not found, will use built-in instead" 1>&2
9518 wxUSE_LIBJPEG=builtin
9519 fi
9520 else
9521 wxUSE_LIBJPEG=sys
9522 fi
9523 fi
9524
9525 if test "$wxUSE_LIBJPEG" = "builtin" ; then
9526 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
9527 fi
9528 fi
9529
9530
9531 TIFF_INCLUDE=
9532 TIFF_LINK=
9533 if test "$wxUSE_LIBTIFF" != "no" ; then
9534 cat >> confdefs.h <<\EOF
9535 #define wxUSE_LIBTIFF 1
9536 EOF
9537
9538
9539 if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
9540 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
9541 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
9542 echo "configure:9543: checking for tiffio.h" >&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 <tiffio.h>
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 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
9569 echo "configure:9570: checking for TIFFError in -ltiff" >&5
9570 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
9571 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9572 echo $ac_n "(cached) $ac_c" 1>&6
9573 else
9574 ac_save_LIBS="$LIBS"
9575 LIBS="-ltiff -lm $LIBS"
9576 cat > conftest.$ac_ext <<EOF
9577 #line 9578 "configure"
9578 #include "confdefs.h"
9579 /* Override any gcc2 internal prototype to avoid an error. */
9580 /* We use char because int might match the return type of a gcc2
9581 builtin and then its argument prototype would still apply. */
9582 char TIFFError();
9583
9584 int main() {
9585 TIFFError()
9586 ; return 0; }
9587 EOF
9588 if { (eval echo configure:9589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9589 rm -rf conftest*
9590 eval "ac_cv_lib_$ac_lib_var=yes"
9591 else
9592 echo "configure: failed program was:" >&5
9593 cat conftest.$ac_ext >&5
9594 rm -rf conftest*
9595 eval "ac_cv_lib_$ac_lib_var=no"
9596 fi
9597 rm -f conftest*
9598 LIBS="$ac_save_LIBS"
9599
9600 fi
9601 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9602 echo "$ac_t""yes" 1>&6
9603 TIFF_LINK=" -ltiff"
9604 else
9605 echo "$ac_t""no" 1>&6
9606 fi
9607
9608
9609 else
9610 echo "$ac_t""no" 1>&6
9611 fi
9612
9613
9614 if test "x$TIFF_LINK" = "x" ; then
9615 if test "$wxUSE_LIBTIFF" = "sys" ; then
9616 { echo "configure: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" 1>&2; exit 1; }
9617 else
9618 echo "configure: warning: system tiff library not found, will use built-in instead" 1>&2
9619 wxUSE_LIBTIFF=builtin
9620 fi
9621 else
9622 wxUSE_LIBTIFF=sys
9623 fi
9624 fi
9625
9626 if test "$wxUSE_LIBTIFF" = "builtin" ; then
9627 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
9628 fi
9629 fi
9630
9631
9632 FREETYPE_INCLUDE=
9633 FREETYPE_LINK=
9634 if test "$wxUSE_FREETYPE" != "no" ; then
9635 cat >> confdefs.h <<\EOF
9636 #define wxUSE_FREETYPE 1
9637 EOF
9638
9639
9640 if test "$wxUSE_FREETYPE" = "sys" -o "$wxUSE_FREETYPE" = "yes" ; then
9641 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
9642 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
9643 echo "configure:9644: checking for freetype.h" >&5
9644 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9645 echo $ac_n "(cached) $ac_c" 1>&6
9646 else
9647 cat > conftest.$ac_ext <<EOF
9648 #line 9649 "configure"
9649 #include "confdefs.h"
9650 #include <freetype.h>
9651 EOF
9652 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9653 { (eval echo configure:9654: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9654 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9655 if test -z "$ac_err"; then
9656 rm -rf conftest*
9657 eval "ac_cv_header_$ac_safe=yes"
9658 else
9659 echo "$ac_err" >&5
9660 echo "configure: failed program was:" >&5
9661 cat conftest.$ac_ext >&5
9662 rm -rf conftest*
9663 eval "ac_cv_header_$ac_safe=no"
9664 fi
9665 rm -f conftest*
9666 fi
9667 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9668 echo "$ac_t""yes" 1>&6
9669 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
9670 echo "configure:9671: checking for FT_Render_Glyph in -lfreetype" >&5
9671 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
9672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9673 echo $ac_n "(cached) $ac_c" 1>&6
9674 else
9675 ac_save_LIBS="$LIBS"
9676 LIBS="-lfreetype -lm $LIBS"
9677 cat > conftest.$ac_ext <<EOF
9678 #line 9679 "configure"
9679 #include "confdefs.h"
9680 /* Override any gcc2 internal prototype to avoid an error. */
9681 /* We use char because int might match the return type of a gcc2
9682 builtin and then its argument prototype would still apply. */
9683 char FT_Render_Glyph();
9684
9685 int main() {
9686 FT_Render_Glyph()
9687 ; return 0; }
9688 EOF
9689 if { (eval echo configure:9690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9690 rm -rf conftest*
9691 eval "ac_cv_lib_$ac_lib_var=yes"
9692 else
9693 echo "configure: failed program was:" >&5
9694 cat conftest.$ac_ext >&5
9695 rm -rf conftest*
9696 eval "ac_cv_lib_$ac_lib_var=no"
9697 fi
9698 rm -f conftest*
9699 LIBS="$ac_save_LIBS"
9700
9701 fi
9702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9703 echo "$ac_t""yes" 1>&6
9704 FREETYPE_LINK=" -lfreetype"
9705 else
9706 echo "$ac_t""no" 1>&6
9707 fi
9708
9709
9710 else
9711 echo "$ac_t""no" 1>&6
9712 fi
9713
9714
9715 if test "x$FREETYPE_LINK" = "x" ; then
9716 if test "$wxUSE_FREETYPE" = "sys" ; then
9717 { echo "configure: error: system freetype library not found! Use --with-freetype=builtin to use built-in version" 1>&2; exit 1; }
9718 else
9719 echo "configure: warning: system freetype library not found, will use built-in instead" 1>&2
9720 wxUSE_FREETYPE=builtin
9721 fi
9722 else
9723 wxUSE_FREETYPE=sys
9724 fi
9725 fi
9726
9727 if test "$wxUSE_FREETYPE" = "builtin" ; then
9728 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
9729 fi
9730 fi
9731
9732
9733 AFMINSTALL=
9734
9735 TOOLKIT=
9736 TOOLKIT_INCLUDE=
9737 WIDGET_SET=
9738
9739 if test "$USE_WIN32" = 1 ; then
9740 for ac_hdr in w32api.h
9741 do
9742 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
9743 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
9744 echo "configure:9745: checking for $ac_hdr" >&5
9745 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9746 echo $ac_n "(cached) $ac_c" 1>&6
9747 else
9748 cat > conftest.$ac_ext <<EOF
9749 #line 9750 "configure"
9750 #include "confdefs.h"
9751 #include <$ac_hdr>
9752 EOF
9753 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9754 { (eval echo configure:9755: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9755 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9756 if test -z "$ac_err"; then
9757 rm -rf conftest*
9758 eval "ac_cv_header_$ac_safe=yes"
9759 else
9760 echo "$ac_err" >&5
9761 echo "configure: failed program was:" >&5
9762 cat conftest.$ac_ext >&5
9763 rm -rf conftest*
9764 eval "ac_cv_header_$ac_safe=no"
9765 fi
9766 rm -f conftest*
9767 fi
9768 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9769 echo "$ac_t""yes" 1>&6
9770 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
9771 cat >> confdefs.h <<EOF
9772 #define $ac_tr_hdr 1
9773 EOF
9774
9775 else
9776 echo "$ac_t""no" 1>&6
9777 fi
9778 done
9779
9780 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
9781 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
9782 echo "configure:9783: checking for windows.h" >&5
9783 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
9784 echo $ac_n "(cached) $ac_c" 1>&6
9785 else
9786 cat > conftest.$ac_ext <<EOF
9787 #line 9788 "configure"
9788 #include "confdefs.h"
9789 #include <windows.h>
9790 EOF
9791 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9792 { (eval echo configure:9793: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9793 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9794 if test -z "$ac_err"; then
9795 rm -rf conftest*
9796 eval "ac_cv_header_$ac_safe=yes"
9797 else
9798 echo "$ac_err" >&5
9799 echo "configure: failed program was:" >&5
9800 cat conftest.$ac_ext >&5
9801 rm -rf conftest*
9802 eval "ac_cv_header_$ac_safe=no"
9803 fi
9804 rm -f conftest*
9805 fi
9806 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9807 echo "$ac_t""yes" 1>&6
9808 :
9809 else
9810 echo "$ac_t""no" 1>&6
9811
9812 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9813
9814 fi
9815
9816
9817 echo $ac_n "checking if w32api has good enough MSIE support""... $ac_c" 1>&6
9818 echo "configure:9819: checking if w32api has good enough MSIE support" >&5
9819 if eval "test \"`echo '$''{'wx_cv_w32api_win32_ie'+set}'`\" = set"; then
9820 echo $ac_n "(cached) $ac_c" 1>&6
9821 else
9822
9823 cat > conftest.$ac_ext <<EOF
9824 #line 9825 "configure"
9825 #include "confdefs.h"
9826 #include <w32api.h>
9827 int main() {
9828
9829 #define wxCHECK_W32API_VERSION( major, minor ) \
9830 ( defined( __W32API_MAJOR_VERSION ) && defined( __W32API_MINOR_VERSION ) \
9831 && ( ( __W32API_MAJOR_VERSION > (major) ) \
9832 || ( __W32API_MAJOR_VERSION == (major) && __W32API_MINOR_VERSION >= (minor))))
9833
9834 #if !wxCHECK_W32API_VERSION(1,1)
9835 #error You need w32api 1.1 or newer
9836 #endif
9837
9838 ; return 0; }
9839 EOF
9840 if { (eval echo configure:9841: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
9841 rm -rf conftest*
9842
9843 wx_cv_w32api_win32_ie=yes
9844
9845 else
9846 echo "configure: failed program was:" >&5
9847 cat conftest.$ac_ext >&5
9848 rm -rf conftest*
9849
9850 wx_cv_w32api_win32_ie=no
9851
9852 fi
9853 rm -f conftest*
9854
9855 fi
9856
9857 echo "$ac_t""$wx_cv_w32api_win32_ie" 1>&6
9858 if test "$wx_cv_w32api_win32_ie" = "yes" ; then
9859 CPPFLAGS="$CPPFLAGS -D_WIN32_IE=0x400"
9860 fi
9861
9862 LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9863
9864 case "${host}" in
9865 *-*-cygwin* )
9866 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32"
9867 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WIN95__"
9868 esac
9869
9870 if test "$wxUSE_ODBC" = "yes" ; then
9871 LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
9872 fi
9873
9874 RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
9875 RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
9876 fi
9877
9878 if test "$wxUSE_GUI" = "yes"; then
9879 USE_GUI=1
9880
9881 GUI_TK_LIBRARY=
9882
9883 WXGTK12=
9884 WXGTK127=
9885 WXGTK20=
9886
9887 if test "$wxUSE_MSW" = 1 ; then
9888 TOOLKIT=MSW
9889 GUIDIST=MSW_DIST
9890
9891 case "${host}" in
9892 *-*-mingw32* )
9893 LDFLAGS="$LDFLAGS -Wl,--subsystem,windows -mwindows"
9894 esac
9895 fi
9896
9897 if test "$wxUSE_GTK" = 1; then
9898 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9899 echo "configure:9900: checking for GTK+ version" >&5
9900
9901 gtk_version_cached=1
9902 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9903 echo $ac_n "(cached) $ac_c" 1>&6
9904 else
9905
9906 gtk_version_cached=0
9907 echo "$ac_t""" 1>&6
9908
9909 GTK_MODULES=
9910 if test "$wxUSE_THREADS" = "yes"; then
9911 GTK_MODULES=gthread
9912 fi
9913
9914 wx_cv_lib_gtk=
9915 if test "x$wxUSE_GTK2" = "xyes"; then
9916 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9917 if test "${with_gtk_prefix+set}" = set; then
9918 withval="$with_gtk_prefix"
9919 gtk_config_prefix="$withval"
9920 else
9921 gtk_config_prefix=""
9922 fi
9923
9924 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9925 if test "${with_gtk_exec_prefix+set}" = set; then
9926 withval="$with_gtk_exec_prefix"
9927 gtk_config_exec_prefix="$withval"
9928 else
9929 gtk_config_exec_prefix=""
9930 fi
9931
9932 # Check whether --enable-gtktest or --disable-gtktest was given.
9933 if test "${enable_gtktest+set}" = set; then
9934 enableval="$enable_gtktest"
9935 :
9936 else
9937 enable_gtktest=yes
9938 fi
9939
9940
9941 for module in . $GTK_MODULES
9942 do
9943 case "$module" in
9944 gthread)
9945 gtk_config_args="$gtk_config_args gthread"
9946 ;;
9947 esac
9948 done
9949
9950 if test x$gtk_config_exec_prefix != x ; then
9951 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9952 if test x${GTK_CONFIG_2_0+set} != xset ; then
9953 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9954 fi
9955 fi
9956 if test x$gtk_config_prefix != x ; then
9957 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9958 if test x${GTK_CONFIG_2_0+set} != xset ; then
9959 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9960 fi
9961 fi
9962
9963 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9964 set dummy gtk-config-2.0; ac_word=$2
9965 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9966 echo "configure:9967: checking for $ac_word" >&5
9967 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9968 echo $ac_n "(cached) $ac_c" 1>&6
9969 else
9970 case "$GTK_CONFIG_2_0" in
9971 /*)
9972 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9973 ;;
9974 ?:/*)
9975 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9976 ;;
9977 *)
9978 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9979 ac_dummy="$PATH"
9980 for ac_dir in $ac_dummy; do
9981 test -z "$ac_dir" && ac_dir=.
9982 if test -f $ac_dir/$ac_word; then
9983 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9984 break
9985 fi
9986 done
9987 IFS="$ac_save_ifs"
9988 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9989 ;;
9990 esac
9991 fi
9992 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
9993 if test -n "$GTK_CONFIG_2_0"; then
9994 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
9995 else
9996 echo "$ac_t""no" 1>&6
9997 fi
9998
9999 min_gtk_version=1.3.1
10000 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10001 echo "configure:10002: checking for GTK - version >= $min_gtk_version" >&5
10002 no_gtk=""
10003 if test "$GTK_CONFIG_2_0" = "no" ; then
10004 no_gtk=yes
10005 else
10006 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
10007 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
10008 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10009 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10010 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10011 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10012 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
10013 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10014 if test "x$enable_gtktest" = "xyes" ; then
10015 ac_save_CFLAGS="$CFLAGS"
10016 ac_save_LIBS="$LIBS"
10017 CFLAGS="$CFLAGS $GTK_CFLAGS"
10018 LIBS="$GTK_LIBS $LIBS"
10019 rm -f conf.gtktest
10020 if test "$cross_compiling" = yes; then
10021 echo $ac_n "cross compiling; assumed OK... $ac_c"
10022 else
10023 cat > conftest.$ac_ext <<EOF
10024 #line 10025 "configure"
10025 #include "confdefs.h"
10026
10027 #include <gtk/gtk.h>
10028 #include <stdio.h>
10029 #include <stdlib.h>
10030
10031 int
10032 main ()
10033 {
10034 int major, minor, micro;
10035 char *tmp_version;
10036
10037 system ("touch conf.gtktest");
10038
10039 /* HP/UX 9 (%@#!) writes to sscanf strings */
10040 tmp_version = g_strdup("$min_gtk_version");
10041 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10042 printf("%s, bad version string\n", "$min_gtk_version");
10043 exit(1);
10044 }
10045
10046 if ((gtk_major_version != $gtk_config_major_version) ||
10047 (gtk_minor_version != $gtk_config_minor_version) ||
10048 (gtk_micro_version != $gtk_config_micro_version))
10049 {
10050 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10051 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10052 gtk_major_version, gtk_minor_version, gtk_micro_version);
10053 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
10054 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10055 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10056 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10057 printf("*** required on your system.\n");
10058 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
10059 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
10060 printf("*** before re-running configure\n");
10061 }
10062 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10063 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10064 (gtk_minor_version != GTK_MINOR_VERSION) ||
10065 (gtk_micro_version != GTK_MICRO_VERSION))
10066 {
10067 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10068 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10069 printf("*** library (version %d.%d.%d)\n",
10070 gtk_major_version, gtk_minor_version, gtk_micro_version);
10071 }
10072 #endif /* defined (GTK_MAJOR_VERSION) ... */
10073 else
10074 {
10075 if ((gtk_major_version > major) ||
10076 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10077 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10078 {
10079 return 0;
10080 }
10081 else
10082 {
10083 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10084 gtk_major_version, gtk_minor_version, gtk_micro_version);
10085 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10086 major, minor, micro);
10087 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10088 printf("***\n");
10089 printf("*** If you have already installed a sufficiently new version, this error\n");
10090 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
10091 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10092 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
10093 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
10094 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10095 printf("*** so that the correct libraries are found at run-time))\n");
10096 }
10097 }
10098 return 1;
10099 }
10100
10101 EOF
10102 if { (eval echo configure:10103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10103 then
10104 :
10105 else
10106 echo "configure: failed program was:" >&5
10107 cat conftest.$ac_ext >&5
10108 rm -fr conftest*
10109 no_gtk=yes
10110 fi
10111 rm -fr conftest*
10112 fi
10113
10114 CFLAGS="$ac_save_CFLAGS"
10115 LIBS="$ac_save_LIBS"
10116 fi
10117 fi
10118 if test "x$no_gtk" = x ; then
10119 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
10120 wx_cv_lib_gtk=2.0
10121 else
10122 echo "$ac_t""no" 1>&6
10123 if test "$GTK_CONFIG_2_0" = "no" ; then
10124 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
10125 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10126 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
10127 echo "*** full path to gtk-config-2.0."
10128 else
10129 if test -f conf.gtktest ; then
10130 :
10131 else
10132 echo "*** Could not run GTK test program, checking why..."
10133 CFLAGS="$CFLAGS $GTK_CFLAGS"
10134 LIBS="$LIBS $GTK_LIBS"
10135 cat > conftest.$ac_ext <<EOF
10136 #line 10137 "configure"
10137 #include "confdefs.h"
10138
10139 #include <gtk/gtk.h>
10140 #include <stdio.h>
10141
10142 int main() {
10143 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10144 ; return 0; }
10145 EOF
10146 if { (eval echo configure:10147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10147 rm -rf conftest*
10148 echo "*** The test program compiled, but did not run. This usually means"
10149 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10150 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10151 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10152 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10153 echo "*** is required on your system"
10154 echo "***"
10155 echo "*** If you have an old version installed, it is best to remove it, although"
10156 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10157 echo "***"
10158 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10159 echo "*** came with the system with the command"
10160 echo "***"
10161 echo "*** rpm --erase --nodeps gtk gtk-devel"
10162 else
10163 echo "configure: failed program was:" >&5
10164 cat conftest.$ac_ext >&5
10165 rm -rf conftest*
10166 echo "*** The test program failed to compile or link. See the file config.log for the"
10167 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10168 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10169 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
10170 fi
10171 rm -f conftest*
10172 CFLAGS="$ac_save_CFLAGS"
10173 LIBS="$ac_save_LIBS"
10174 fi
10175 fi
10176 GTK_CFLAGS=""
10177 GTK_LIBS=""
10178 :
10179 fi
10180
10181
10182 rm -f conf.gtktest
10183
10184 fi
10185
10186 if test -z "$wx_cv_lib_gtk"; then
10187 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10188 if test "${with_gtk_prefix+set}" = set; then
10189 withval="$with_gtk_prefix"
10190 gtk_config_prefix="$withval"
10191 else
10192 gtk_config_prefix=""
10193 fi
10194
10195 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10196 if test "${with_gtk_exec_prefix+set}" = set; then
10197 withval="$with_gtk_exec_prefix"
10198 gtk_config_exec_prefix="$withval"
10199 else
10200 gtk_config_exec_prefix=""
10201 fi
10202
10203 # Check whether --enable-gtktest or --disable-gtktest was given.
10204 if test "${enable_gtktest+set}" = set; then
10205 enableval="$enable_gtktest"
10206 :
10207 else
10208 enable_gtktest=yes
10209 fi
10210
10211
10212 for module in . $GTK_MODULES
10213 do
10214 case "$module" in
10215 gthread)
10216 gtk_config_args="$gtk_config_args gthread"
10217 ;;
10218 esac
10219 done
10220
10221 if test x$gtk_config_exec_prefix != x ; then
10222 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10223 if test x${GTK_CONFIG+set} != xset ; then
10224 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10225 fi
10226 fi
10227 if test x$gtk_config_prefix != x ; then
10228 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10229 if test x${GTK_CONFIG+set} != xset ; then
10230 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10231 fi
10232 fi
10233
10234 # Extract the first word of "gtk-config", so it can be a program name with args.
10235 set dummy gtk-config; ac_word=$2
10236 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10237 echo "configure:10238: checking for $ac_word" >&5
10238 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10239 echo $ac_n "(cached) $ac_c" 1>&6
10240 else
10241 case "$GTK_CONFIG" in
10242 /*)
10243 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10244 ;;
10245 ?:/*)
10246 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10247 ;;
10248 *)
10249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10250 ac_dummy="$PATH"
10251 for ac_dir in $ac_dummy; do
10252 test -z "$ac_dir" && ac_dir=.
10253 if test -f $ac_dir/$ac_word; then
10254 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10255 break
10256 fi
10257 done
10258 IFS="$ac_save_ifs"
10259 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10260 ;;
10261 esac
10262 fi
10263 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10264 if test -n "$GTK_CONFIG"; then
10265 echo "$ac_t""$GTK_CONFIG" 1>&6
10266 else
10267 echo "$ac_t""no" 1>&6
10268 fi
10269
10270 min_gtk_version=1.2.7
10271 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10272 echo "configure:10273: checking for GTK - version >= $min_gtk_version" >&5
10273 no_gtk=""
10274 if test "$GTK_CONFIG" = "no" ; then
10275 no_gtk=yes
10276 else
10277 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10278 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10279 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10280 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10281 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10282 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10283 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10284 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10285 if test "x$enable_gtktest" = "xyes" ; then
10286 ac_save_CFLAGS="$CFLAGS"
10287 ac_save_LIBS="$LIBS"
10288 CFLAGS="$CFLAGS $GTK_CFLAGS"
10289 LIBS="$GTK_LIBS $LIBS"
10290 rm -f conf.gtktest
10291 if test "$cross_compiling" = yes; then
10292 echo $ac_n "cross compiling; assumed OK... $ac_c"
10293 else
10294 cat > conftest.$ac_ext <<EOF
10295 #line 10296 "configure"
10296 #include "confdefs.h"
10297
10298 #include <gtk/gtk.h>
10299 #include <stdio.h>
10300 #include <stdlib.h>
10301
10302 int
10303 main ()
10304 {
10305 int major, minor, micro;
10306 char *tmp_version;
10307
10308 system ("touch conf.gtktest");
10309
10310 /* HP/UX 9 (%@#!) writes to sscanf strings */
10311 tmp_version = g_strdup("$min_gtk_version");
10312 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10313 printf("%s, bad version string\n", "$min_gtk_version");
10314 exit(1);
10315 }
10316
10317 if ((gtk_major_version != $gtk_config_major_version) ||
10318 (gtk_minor_version != $gtk_config_minor_version) ||
10319 (gtk_micro_version != $gtk_config_micro_version))
10320 {
10321 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10322 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10323 gtk_major_version, gtk_minor_version, gtk_micro_version);
10324 printf ("*** was found! If gtk-config was correct, then it is best\n");
10325 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10326 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10327 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10328 printf("*** required on your system.\n");
10329 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10330 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10331 printf("*** before re-running configure\n");
10332 }
10333 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10334 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10335 (gtk_minor_version != GTK_MINOR_VERSION) ||
10336 (gtk_micro_version != GTK_MICRO_VERSION))
10337 {
10338 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10339 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10340 printf("*** library (version %d.%d.%d)\n",
10341 gtk_major_version, gtk_minor_version, gtk_micro_version);
10342 }
10343 #endif /* defined (GTK_MAJOR_VERSION) ... */
10344 else
10345 {
10346 if ((gtk_major_version > major) ||
10347 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10348 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10349 {
10350 return 0;
10351 }
10352 else
10353 {
10354 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10355 gtk_major_version, gtk_minor_version, gtk_micro_version);
10356 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10357 major, minor, micro);
10358 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10359 printf("***\n");
10360 printf("*** If you have already installed a sufficiently new version, this error\n");
10361 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10362 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10363 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10364 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10365 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10366 printf("*** so that the correct libraries are found at run-time))\n");
10367 }
10368 }
10369 return 1;
10370 }
10371
10372 EOF
10373 if { (eval echo configure:10374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10374 then
10375 :
10376 else
10377 echo "configure: failed program was:" >&5
10378 cat conftest.$ac_ext >&5
10379 rm -fr conftest*
10380 no_gtk=yes
10381 fi
10382 rm -fr conftest*
10383 fi
10384
10385 CFLAGS="$ac_save_CFLAGS"
10386 LIBS="$ac_save_LIBS"
10387 fi
10388 fi
10389 if test "x$no_gtk" = x ; then
10390 echo "$ac_t""yes" 1>&6
10391 wx_cv_lib_gtk=1.2.7
10392 else
10393 echo "$ac_t""no" 1>&6
10394 if test "$GTK_CONFIG" = "no" ; then
10395 echo "*** The gtk-config script installed by GTK could not be found"
10396 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10397 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10398 echo "*** full path to gtk-config."
10399 else
10400 if test -f conf.gtktest ; then
10401 :
10402 else
10403 echo "*** Could not run GTK test program, checking why..."
10404 CFLAGS="$CFLAGS $GTK_CFLAGS"
10405 LIBS="$LIBS $GTK_LIBS"
10406 cat > conftest.$ac_ext <<EOF
10407 #line 10408 "configure"
10408 #include "confdefs.h"
10409
10410 #include <gtk/gtk.h>
10411 #include <stdio.h>
10412
10413 int main() {
10414 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10415 ; return 0; }
10416 EOF
10417 if { (eval echo configure:10418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10418 rm -rf conftest*
10419 echo "*** The test program compiled, but did not run. This usually means"
10420 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10421 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10422 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10423 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10424 echo "*** is required on your system"
10425 echo "***"
10426 echo "*** If you have an old version installed, it is best to remove it, although"
10427 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10428 echo "***"
10429 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10430 echo "*** came with the system with the command"
10431 echo "***"
10432 echo "*** rpm --erase --nodeps gtk gtk-devel"
10433 else
10434 echo "configure: failed program was:" >&5
10435 cat conftest.$ac_ext >&5
10436 rm -rf conftest*
10437 echo "*** The test program failed to compile or link. See the file config.log for the"
10438 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10439 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10440 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10441 fi
10442 rm -f conftest*
10443 CFLAGS="$ac_save_CFLAGS"
10444 LIBS="$ac_save_LIBS"
10445 fi
10446 fi
10447 GTK_CFLAGS=""
10448 GTK_LIBS=""
10449 :
10450 fi
10451
10452
10453 rm -f conf.gtktest
10454
10455 fi
10456
10457 if test -z "$wx_cv_lib_gtk"; then
10458 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
10459 if test "${with_gtk_prefix+set}" = set; then
10460 withval="$with_gtk_prefix"
10461 gtk_config_prefix="$withval"
10462 else
10463 gtk_config_prefix=""
10464 fi
10465
10466 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
10467 if test "${with_gtk_exec_prefix+set}" = set; then
10468 withval="$with_gtk_exec_prefix"
10469 gtk_config_exec_prefix="$withval"
10470 else
10471 gtk_config_exec_prefix=""
10472 fi
10473
10474 # Check whether --enable-gtktest or --disable-gtktest was given.
10475 if test "${enable_gtktest+set}" = set; then
10476 enableval="$enable_gtktest"
10477 :
10478 else
10479 enable_gtktest=yes
10480 fi
10481
10482
10483 for module in . $GTK_MODULES
10484 do
10485 case "$module" in
10486 gthread)
10487 gtk_config_args="$gtk_config_args gthread"
10488 ;;
10489 esac
10490 done
10491
10492 if test x$gtk_config_exec_prefix != x ; then
10493 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
10494 if test x${GTK_CONFIG+set} != xset ; then
10495 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
10496 fi
10497 fi
10498 if test x$gtk_config_prefix != x ; then
10499 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
10500 if test x${GTK_CONFIG+set} != xset ; then
10501 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
10502 fi
10503 fi
10504
10505 # Extract the first word of "gtk-config", so it can be a program name with args.
10506 set dummy gtk-config; ac_word=$2
10507 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
10508 echo "configure:10509: checking for $ac_word" >&5
10509 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
10510 echo $ac_n "(cached) $ac_c" 1>&6
10511 else
10512 case "$GTK_CONFIG" in
10513 /*)
10514 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
10515 ;;
10516 ?:/*)
10517 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
10518 ;;
10519 *)
10520 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
10521 ac_dummy="$PATH"
10522 for ac_dir in $ac_dummy; do
10523 test -z "$ac_dir" && ac_dir=.
10524 if test -f $ac_dir/$ac_word; then
10525 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
10526 break
10527 fi
10528 done
10529 IFS="$ac_save_ifs"
10530 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
10531 ;;
10532 esac
10533 fi
10534 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
10535 if test -n "$GTK_CONFIG"; then
10536 echo "$ac_t""$GTK_CONFIG" 1>&6
10537 else
10538 echo "$ac_t""no" 1>&6
10539 fi
10540
10541 min_gtk_version=1.2.3
10542 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
10543 echo "configure:10544: checking for GTK - version >= $min_gtk_version" >&5
10544 no_gtk=""
10545 if test "$GTK_CONFIG" = "no" ; then
10546 no_gtk=yes
10547 else
10548 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
10549 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
10550 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
10551 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10552 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
10553 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10554 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
10555 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10556 if test "x$enable_gtktest" = "xyes" ; then
10557 ac_save_CFLAGS="$CFLAGS"
10558 ac_save_LIBS="$LIBS"
10559 CFLAGS="$CFLAGS $GTK_CFLAGS"
10560 LIBS="$GTK_LIBS $LIBS"
10561 rm -f conf.gtktest
10562 if test "$cross_compiling" = yes; then
10563 echo $ac_n "cross compiling; assumed OK... $ac_c"
10564 else
10565 cat > conftest.$ac_ext <<EOF
10566 #line 10567 "configure"
10567 #include "confdefs.h"
10568
10569 #include <gtk/gtk.h>
10570 #include <stdio.h>
10571 #include <stdlib.h>
10572
10573 int
10574 main ()
10575 {
10576 int major, minor, micro;
10577 char *tmp_version;
10578
10579 system ("touch conf.gtktest");
10580
10581 /* HP/UX 9 (%@#!) writes to sscanf strings */
10582 tmp_version = g_strdup("$min_gtk_version");
10583 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10584 printf("%s, bad version string\n", "$min_gtk_version");
10585 exit(1);
10586 }
10587
10588 if ((gtk_major_version != $gtk_config_major_version) ||
10589 (gtk_minor_version != $gtk_config_minor_version) ||
10590 (gtk_micro_version != $gtk_config_micro_version))
10591 {
10592 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
10593 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
10594 gtk_major_version, gtk_minor_version, gtk_micro_version);
10595 printf ("*** was found! If gtk-config was correct, then it is best\n");
10596 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
10597 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
10598 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
10599 printf("*** required on your system.\n");
10600 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
10601 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
10602 printf("*** before re-running configure\n");
10603 }
10604 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
10605 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
10606 (gtk_minor_version != GTK_MINOR_VERSION) ||
10607 (gtk_micro_version != GTK_MICRO_VERSION))
10608 {
10609 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
10610 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
10611 printf("*** library (version %d.%d.%d)\n",
10612 gtk_major_version, gtk_minor_version, gtk_micro_version);
10613 }
10614 #endif /* defined (GTK_MAJOR_VERSION) ... */
10615 else
10616 {
10617 if ((gtk_major_version > major) ||
10618 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
10619 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
10620 {
10621 return 0;
10622 }
10623 else
10624 {
10625 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
10626 gtk_major_version, gtk_minor_version, gtk_micro_version);
10627 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
10628 major, minor, micro);
10629 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
10630 printf("***\n");
10631 printf("*** If you have already installed a sufficiently new version, this error\n");
10632 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
10633 printf("*** being found. The easiest way to fix this is to remove the old version\n");
10634 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
10635 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
10636 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
10637 printf("*** so that the correct libraries are found at run-time))\n");
10638 }
10639 }
10640 return 1;
10641 }
10642
10643 EOF
10644 if { (eval echo configure:10645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
10645 then
10646 :
10647 else
10648 echo "configure: failed program was:" >&5
10649 cat conftest.$ac_ext >&5
10650 rm -fr conftest*
10651 no_gtk=yes
10652 fi
10653 rm -fr conftest*
10654 fi
10655
10656 CFLAGS="$ac_save_CFLAGS"
10657 LIBS="$ac_save_LIBS"
10658 fi
10659 fi
10660 if test "x$no_gtk" = x ; then
10661 echo "$ac_t""yes" 1>&6
10662 wx_cv_lib_gtk=1.2.3
10663 else
10664 echo "$ac_t""no" 1>&6
10665 if test "$GTK_CONFIG" = "no" ; then
10666 echo "*** The gtk-config script installed by GTK could not be found"
10667 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
10668 echo "*** your path, or set the GTK_CONFIG environment variable to the"
10669 echo "*** full path to gtk-config."
10670 else
10671 if test -f conf.gtktest ; then
10672 :
10673 else
10674 echo "*** Could not run GTK test program, checking why..."
10675 CFLAGS="$CFLAGS $GTK_CFLAGS"
10676 LIBS="$LIBS $GTK_LIBS"
10677 cat > conftest.$ac_ext <<EOF
10678 #line 10679 "configure"
10679 #include "confdefs.h"
10680
10681 #include <gtk/gtk.h>
10682 #include <stdio.h>
10683
10684 int main() {
10685 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
10686 ; return 0; }
10687 EOF
10688 if { (eval echo configure:10689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10689 rm -rf conftest*
10690 echo "*** The test program compiled, but did not run. This usually means"
10691 echo "*** that the run-time linker is not finding GTK or finding the wrong"
10692 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
10693 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10694 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10695 echo "*** is required on your system"
10696 echo "***"
10697 echo "*** If you have an old version installed, it is best to remove it, although"
10698 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10699 echo "***"
10700 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
10701 echo "*** came with the system with the command"
10702 echo "***"
10703 echo "*** rpm --erase --nodeps gtk gtk-devel"
10704 else
10705 echo "configure: failed program was:" >&5
10706 cat conftest.$ac_ext >&5
10707 rm -rf conftest*
10708 echo "*** The test program failed to compile or link. See the file config.log for the"
10709 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
10710 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
10711 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
10712 fi
10713 rm -f conftest*
10714 CFLAGS="$ac_save_CFLAGS"
10715 LIBS="$ac_save_LIBS"
10716 fi
10717 fi
10718 GTK_CFLAGS=""
10719 GTK_LIBS=""
10720 :
10721 fi
10722
10723
10724 rm -f conf.gtktest
10725
10726 fi
10727
10728 if test -z "$wx_cv_lib_gtk"; then
10729 wx_cv_lib_gtk=none
10730 else
10731 wx_cv_cflags_gtk=$GTK_CFLAGS
10732 wx_cv_libs_gtk=$GTK_LIBS
10733 fi
10734
10735
10736 fi
10737
10738
10739 if test "$gtk_version_cached" = 1; then
10740 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
10741 fi
10742
10743 case "$wx_cv_lib_gtk" in
10744 2.0) WXGTK20=1
10745 ;;
10746 1.2.7) WXGTK127=1
10747 WXGTK12=1
10748 ;;
10749 1.2.3) WXGTK12=1
10750 ;;
10751 *) { echo "configure: error:
10752 Please check that gtk-config is in path, the directory
10753 where GTK+ libraries are installed (returned by
10754 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
10755 equivalent variable and GTK+ is version 1.2.3 or above.
10756 " 1>&2; exit 1; }
10757 ;;
10758 esac
10759
10760 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
10761 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
10762
10763 AFMINSTALL=afminstall
10764 TOOLKIT=GTK
10765 GUIDIST=GTK_DIST
10766
10767 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
10768 echo "configure:10769: checking for gdk_im_open in -lgdk" >&5
10769 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
10770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10771 echo $ac_n "(cached) $ac_c" 1>&6
10772 else
10773 ac_save_LIBS="$LIBS"
10774 LIBS="-lgdk $LIBS"
10775 cat > conftest.$ac_ext <<EOF
10776 #line 10777 "configure"
10777 #include "confdefs.h"
10778 /* Override any gcc2 internal prototype to avoid an error. */
10779 /* We use char because int might match the return type of a gcc2
10780 builtin and then its argument prototype would still apply. */
10781 char gdk_im_open();
10782
10783 int main() {
10784 gdk_im_open()
10785 ; return 0; }
10786 EOF
10787 if { (eval echo configure:10788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10788 rm -rf conftest*
10789 eval "ac_cv_lib_$ac_lib_var=yes"
10790 else
10791 echo "configure: failed program was:" >&5
10792 cat conftest.$ac_ext >&5
10793 rm -rf conftest*
10794 eval "ac_cv_lib_$ac_lib_var=no"
10795 fi
10796 rm -f conftest*
10797 LIBS="$ac_save_LIBS"
10798
10799 fi
10800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10801 echo "$ac_t""yes" 1>&6
10802 cat >> confdefs.h <<\EOF
10803 #define HAVE_XIM 1
10804 EOF
10805
10806 else
10807 echo "$ac_t""no" 1>&6
10808 fi
10809
10810 fi
10811
10812 if test "$wxUSE_MGL" = 1; then
10813 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
10814 echo "configure:10815: checking for SciTech MGL library" >&5
10815 if test "x$MGL_ROOT" = x ; then
10816 echo "$ac_t""not found" 1>&6
10817 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
10818 else
10819 echo "$ac_t""$MGL_ROOT" 1>&6
10820 fi
10821
10822 case "${host}" in
10823 *-*-linux* )
10824 mgl_os=linux/gcc/glibc
10825 ;;
10826 *-pc-msdosdjgpp )
10827 mgl_os=dos32/dj2
10828 ;;
10829 *)
10830 { echo "configure: error: This system type ${host} is not yet supported by wxMGL." 1>&2; exit 1; }
10831 esac
10832
10833 mgl_lib_type=""
10834
10835 if test "$wxUSE_DEBUG_FLAG" = yes ; then
10836 if test -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.a -o \
10837 -f $MGL_ROOT/lib/debug/$mgl_os/libmgl.so; then
10838 mgl_lib_type=debug
10839 fi
10840 fi
10841 if test "x$mgl_lib_type" = x ; then
10842 if test -f $MGL_ROOT/lib/release/$mgl_os/libmgl.a -o \
10843 -f $MGL_ROOT/lib/release/$mgl_os/libmgl.so; then
10844 mgl_lib_type=release
10845 else
10846 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
10847 fi
10848 fi
10849
10850 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
10851 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
10852
10853 AFMINSTALL=afminstall
10854 TOOLKIT=MGL
10855 GUIDIST=MGL_DIST
10856 fi
10857
10858 if test "$wxUSE_MICROWIN" = 1; then
10859 echo $ac_n "checking for MicroWindows""... $ac_c" 1>&6
10860 echo "configure:10861: checking for MicroWindows" >&5
10861 if test "x$MICROWINDOWS" = x ; then
10862 echo "$ac_t""not found" 1>&6
10863 { echo "configure: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." 1>&2; exit 1; }
10864 else
10865 echo "$ac_t""$MICROWINDOWS" 1>&6
10866 fi
10867
10868 if test -f $MICROWINDOWS/lib/libmwin.a; then
10869 echo "$ac_t""MicroWindows' libraries found." 1>&6
10870 else
10871 { echo "configure: error: Cannot find MicroWindows libraries, make sure they are compiled." 1>&2; exit 1; }
10872 fi
10873
10874 TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
10875 GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
10876
10877 AFMINSTALL=afminstall
10878 TOOLKIT=MICROWIN
10879 GUIDIST=MICROWIN_DIST
10880
10881 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__ -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
10882 fi
10883
10884 if test "$wxUSE_WINE" = 1; then
10885 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
10886 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
10887 echo "configure:10888: checking for windows.h" >&5
10888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10889 echo $ac_n "(cached) $ac_c" 1>&6
10890 else
10891 cat > conftest.$ac_ext <<EOF
10892 #line 10893 "configure"
10893 #include "confdefs.h"
10894 #include <windows.h>
10895 EOF
10896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10897 { (eval echo configure:10898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10899 if test -z "$ac_err"; then
10900 rm -rf conftest*
10901 eval "ac_cv_header_$ac_safe=yes"
10902 else
10903 echo "$ac_err" >&5
10904 echo "configure: failed program was:" >&5
10905 cat conftest.$ac_ext >&5
10906 rm -rf conftest*
10907 eval "ac_cv_header_$ac_safe=no"
10908 fi
10909 rm -f conftest*
10910 fi
10911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
10912 echo "$ac_t""yes" 1>&6
10913 :
10914 else
10915 echo "$ac_t""no" 1>&6
10916
10917 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
10918
10919 fi
10920
10921
10922 xpm_link=
10923 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10924 echo "configure:10925: checking for Xpm library" >&5
10925
10926 ac_find_libraries=
10927 for ac_dir in $SEARCH_LIB;
10928 do
10929 for ac_extension in a so sl dylib; do
10930 if test -f "$ac_dir/libXpm.$ac_extension"; then
10931 ac_find_libraries=$ac_dir
10932 break 2
10933 fi
10934 done
10935 done
10936
10937 if test "$ac_find_libraries" != "" ; then
10938 GUI_TK_LIBRARY="-L$ac_find_libraries"
10939 xpm_link=" -lXpm"
10940 cat >> confdefs.h <<\EOF
10941 #define wxHAVE_LIB_XPM 1
10942 EOF
10943
10944 echo "$ac_t""found at $ac_find_libraries" 1>&6
10945 else
10946 echo "$ac_t""no" 1>&6
10947 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10948 fi
10949
10950 mesa_link=
10951 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
10952 echo "configure:10953: checking for Mesa library" >&5
10953
10954 ac_find_libraries=
10955 for ac_dir in $SEARCH_LIB;
10956 do
10957 for ac_extension in a so sl dylib; do
10958 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
10959 ac_find_libraries=$ac_dir
10960 break 2
10961 fi
10962 done
10963 done
10964
10965 if test "$ac_find_libraries" != "" ; then
10966 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
10967 mesa_link=" -lMesaGL"
10968 echo "$ac_t""found at $ac_find_libraries" 1>&6
10969 else
10970 { echo "configure: error: no" 1>&2; exit 1; }
10971 fi
10972
10973 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lwine$mesa_link$xpm_link -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
10974 TOOLKIT=MSW
10975 GUIDIST=MSW_DIST
10976 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXWINE__"
10977 fi
10978
10979 if test "$wxUSE_MOTIF" = 1; then
10980 # If we find X, set shell vars x_includes and x_libraries to the
10981 # paths, otherwise set no_x=yes.
10982 # Uses ac_ vars as temps to allow command line to override cache and checks.
10983 # --without-x overrides everything else, but does not touch the cache.
10984 echo $ac_n "checking for X""... $ac_c" 1>&6
10985 echo "configure:10986: checking for X" >&5
10986
10987 # Check whether --with-x or --without-x was given.
10988 if test "${with_x+set}" = set; then
10989 withval="$with_x"
10990 :
10991 fi
10992
10993 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10994 if test "x$with_x" = xno; then
10995 # The user explicitly disabled X.
10996 have_x=disabled
10997 else
10998 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
10999 # Both variables are already set.
11000 have_x=yes
11001 else
11002 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
11003 echo $ac_n "(cached) $ac_c" 1>&6
11004 else
11005 # One or both of the vars are not set, and there is no cached value.
11006 ac_x_includes=NO ac_x_libraries=NO
11007 rm -fr conftestdir
11008 if mkdir conftestdir; then
11009 cd conftestdir
11010 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
11011 cat > Imakefile <<'EOF'
11012 acfindx:
11013 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
11014 EOF
11015 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
11016 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11017 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
11018 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11019 for ac_extension in a so sl; do
11020 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
11021 test -f $ac_im_libdir/libX11.$ac_extension; then
11022 ac_im_usrlibdir=$ac_im_libdir; break
11023 fi
11024 done
11025 # Screen out bogus values from the imake configuration. They are
11026 # bogus both because they are the default anyway, and because
11027 # using them would break gcc on systems where it needs fixed includes.
11028 case "$ac_im_incroot" in
11029 /usr/include) ;;
11030 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
11031 esac
11032 case "$ac_im_usrlibdir" in
11033 /usr/lib | /lib) ;;
11034 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
11035 esac
11036 fi
11037 cd ..
11038 rm -fr conftestdir
11039 fi
11040
11041 if test "$ac_x_includes" = NO; then
11042 # Guess where to find include files, by looking for this one X11 .h file.
11043 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
11044
11045 # First, try using that file with no special directory specified.
11046 cat > conftest.$ac_ext <<EOF
11047 #line 11048 "configure"
11048 #include "confdefs.h"
11049 #include <$x_direct_test_include>
11050 EOF
11051 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11052 { (eval echo configure:11053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11053 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11054 if test -z "$ac_err"; then
11055 rm -rf conftest*
11056 # We can compile using X headers with no special include directory.
11057 ac_x_includes=
11058 else
11059 echo "$ac_err" >&5
11060 echo "configure: failed program was:" >&5
11061 cat conftest.$ac_ext >&5
11062 rm -rf conftest*
11063 # Look for the header file in a standard set of common directories.
11064 # Check X11 before X11Rn because it is often a symlink to the current release.
11065 for ac_dir in \
11066 /usr/X11/include \
11067 /usr/X11R6/include \
11068 /usr/X11R5/include \
11069 /usr/X11R4/include \
11070 \
11071 /usr/include/X11 \
11072 /usr/include/X11R6 \
11073 /usr/include/X11R5 \
11074 /usr/include/X11R4 \
11075 \
11076 /usr/local/X11/include \
11077 /usr/local/X11R6/include \
11078 /usr/local/X11R5/include \
11079 /usr/local/X11R4/include \
11080 \
11081 /usr/local/include/X11 \
11082 /usr/local/include/X11R6 \
11083 /usr/local/include/X11R5 \
11084 /usr/local/include/X11R4 \
11085 \
11086 /usr/X386/include \
11087 /usr/x386/include \
11088 /usr/XFree86/include/X11 \
11089 \
11090 /usr/include \
11091 /usr/local/include \
11092 /usr/unsupported/include \
11093 /usr/athena/include \
11094 /usr/local/x11r5/include \
11095 /usr/lpp/Xamples/include \
11096 \
11097 /usr/openwin/include \
11098 /usr/openwin/share/include \
11099 ; \
11100 do
11101 if test -r "$ac_dir/$x_direct_test_include"; then
11102 ac_x_includes=$ac_dir
11103 break
11104 fi
11105 done
11106 fi
11107 rm -f conftest*
11108 fi # $ac_x_includes = NO
11109
11110 if test "$ac_x_libraries" = NO; then
11111 # Check for the libraries.
11112
11113 test -z "$x_direct_test_library" && x_direct_test_library=Xt
11114 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
11115
11116 # See if we find them without any special options.
11117 # Don't add to $LIBS permanently.
11118 ac_save_LIBS="$LIBS"
11119 LIBS="-l$x_direct_test_library $LIBS"
11120 cat > conftest.$ac_ext <<EOF
11121 #line 11122 "configure"
11122 #include "confdefs.h"
11123
11124 int main() {
11125 ${x_direct_test_function}()
11126 ; return 0; }
11127 EOF
11128 if { (eval echo configure:11129: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11129 rm -rf conftest*
11130 LIBS="$ac_save_LIBS"
11131 # We can link X programs with no special library path.
11132 ac_x_libraries=
11133 else
11134 echo "configure: failed program was:" >&5
11135 cat conftest.$ac_ext >&5
11136 rm -rf conftest*
11137 LIBS="$ac_save_LIBS"
11138 # First see if replacing the include by lib works.
11139 # Check X11 before X11Rn because it is often a symlink to the current release.
11140 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
11141 /usr/X11/lib \
11142 /usr/X11R6/lib \
11143 /usr/X11R5/lib \
11144 /usr/X11R4/lib \
11145 \
11146 /usr/lib/X11 \
11147 /usr/lib/X11R6 \
11148 /usr/lib/X11R5 \
11149 /usr/lib/X11R4 \
11150 \
11151 /usr/local/X11/lib \
11152 /usr/local/X11R6/lib \
11153 /usr/local/X11R5/lib \
11154 /usr/local/X11R4/lib \
11155 \
11156 /usr/local/lib/X11 \
11157 /usr/local/lib/X11R6 \
11158 /usr/local/lib/X11R5 \
11159 /usr/local/lib/X11R4 \
11160 \
11161 /usr/X386/lib \
11162 /usr/x386/lib \
11163 /usr/XFree86/lib/X11 \
11164 \
11165 /usr/lib \
11166 /usr/local/lib \
11167 /usr/unsupported/lib \
11168 /usr/athena/lib \
11169 /usr/local/x11r5/lib \
11170 /usr/lpp/Xamples/lib \
11171 /lib/usr/lib/X11 \
11172 \
11173 /usr/openwin/lib \
11174 /usr/openwin/share/lib \
11175 ; \
11176 do
11177 for ac_extension in a so sl; do
11178 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
11179 ac_x_libraries=$ac_dir
11180 break 2
11181 fi
11182 done
11183 done
11184 fi
11185 rm -f conftest*
11186 fi # $ac_x_libraries = NO
11187
11188 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
11189 # Didn't find X anywhere. Cache the known absence of X.
11190 ac_cv_have_x="have_x=no"
11191 else
11192 # Record where we found X for the cache.
11193 ac_cv_have_x="have_x=yes \
11194 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
11195 fi
11196 fi
11197 fi
11198 eval "$ac_cv_have_x"
11199 fi # $with_x != no
11200
11201 if test "$have_x" != yes; then
11202 echo "$ac_t""$have_x" 1>&6
11203 no_x=yes
11204 else
11205 # If each of the values was on the command line, it overrides each guess.
11206 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11207 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11208 # Update the cache value to reflect the command line values.
11209 ac_cv_have_x="have_x=yes \
11210 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
11211 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
11212 fi
11213
11214 if test "$no_x" = yes; then
11215 # Not all programs may use this symbol, but it does not hurt to define it.
11216 cat >> confdefs.h <<\EOF
11217 #define X_DISPLAY_MISSING 1
11218 EOF
11219
11220 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
11221 else
11222 if test -n "$x_includes"; then
11223 X_CFLAGS="$X_CFLAGS -I$x_includes"
11224 fi
11225
11226 # It would also be nice to do this for all -L options, not just this one.
11227 if test -n "$x_libraries"; then
11228 X_LIBS="$X_LIBS -L$x_libraries"
11229 # For Solaris; some versions of Sun CC require a space after -R and
11230 # others require no space. Words are not sufficient . . . .
11231 case "`(uname -sr) 2>/dev/null`" in
11232 "SunOS 5"*)
11233 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
11234 echo "configure:11235: checking whether -R must be followed by a space" >&5
11235 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
11236 cat > conftest.$ac_ext <<EOF
11237 #line 11238 "configure"
11238 #include "confdefs.h"
11239
11240 int main() {
11241
11242 ; return 0; }
11243 EOF
11244 if { (eval echo configure:11245: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11245 rm -rf conftest*
11246 ac_R_nospace=yes
11247 else
11248 echo "configure: failed program was:" >&5
11249 cat conftest.$ac_ext >&5
11250 rm -rf conftest*
11251 ac_R_nospace=no
11252 fi
11253 rm -f conftest*
11254 if test $ac_R_nospace = yes; then
11255 echo "$ac_t""no" 1>&6
11256 X_LIBS="$X_LIBS -R$x_libraries"
11257 else
11258 LIBS="$ac_xsave_LIBS -R $x_libraries"
11259 cat > conftest.$ac_ext <<EOF
11260 #line 11261 "configure"
11261 #include "confdefs.h"
11262
11263 int main() {
11264
11265 ; return 0; }
11266 EOF
11267 if { (eval echo configure:11268: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11268 rm -rf conftest*
11269 ac_R_space=yes
11270 else
11271 echo "configure: failed program was:" >&5
11272 cat conftest.$ac_ext >&5
11273 rm -rf conftest*
11274 ac_R_space=no
11275 fi
11276 rm -f conftest*
11277 if test $ac_R_space = yes; then
11278 echo "$ac_t""yes" 1>&6
11279 X_LIBS="$X_LIBS -R $x_libraries"
11280 else
11281 echo "$ac_t""neither works" 1>&6
11282 fi
11283 fi
11284 LIBS="$ac_xsave_LIBS"
11285 esac
11286 fi
11287
11288 # Check for system-dependent libraries X programs must link with.
11289 # Do this before checking for the system-independent R6 libraries
11290 # (-lICE), since we may need -lsocket or whatever for X linking.
11291
11292 if test "$ISC" = yes; then
11293 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
11294 else
11295 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
11296 # libraries were built with DECnet support. And karl@cs.umb.edu says
11297 # the Alpha needs dnet_stub (dnet does not exist).
11298 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
11299 echo "configure:11300: checking for dnet_ntoa in -ldnet" >&5
11300 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11302 echo $ac_n "(cached) $ac_c" 1>&6
11303 else
11304 ac_save_LIBS="$LIBS"
11305 LIBS="-ldnet $LIBS"
11306 cat > conftest.$ac_ext <<EOF
11307 #line 11308 "configure"
11308 #include "confdefs.h"
11309 /* Override any gcc2 internal prototype to avoid an error. */
11310 /* We use char because int might match the return type of a gcc2
11311 builtin and then its argument prototype would still apply. */
11312 char dnet_ntoa();
11313
11314 int main() {
11315 dnet_ntoa()
11316 ; return 0; }
11317 EOF
11318 if { (eval echo configure:11319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11319 rm -rf conftest*
11320 eval "ac_cv_lib_$ac_lib_var=yes"
11321 else
11322 echo "configure: failed program was:" >&5
11323 cat conftest.$ac_ext >&5
11324 rm -rf conftest*
11325 eval "ac_cv_lib_$ac_lib_var=no"
11326 fi
11327 rm -f conftest*
11328 LIBS="$ac_save_LIBS"
11329
11330 fi
11331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11332 echo "$ac_t""yes" 1>&6
11333 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
11334 else
11335 echo "$ac_t""no" 1>&6
11336 fi
11337
11338 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
11339 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
11340 echo "configure:11341: checking for dnet_ntoa in -ldnet_stub" >&5
11341 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
11342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11343 echo $ac_n "(cached) $ac_c" 1>&6
11344 else
11345 ac_save_LIBS="$LIBS"
11346 LIBS="-ldnet_stub $LIBS"
11347 cat > conftest.$ac_ext <<EOF
11348 #line 11349 "configure"
11349 #include "confdefs.h"
11350 /* Override any gcc2 internal prototype to avoid an error. */
11351 /* We use char because int might match the return type of a gcc2
11352 builtin and then its argument prototype would still apply. */
11353 char dnet_ntoa();
11354
11355 int main() {
11356 dnet_ntoa()
11357 ; return 0; }
11358 EOF
11359 if { (eval echo configure:11360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11360 rm -rf conftest*
11361 eval "ac_cv_lib_$ac_lib_var=yes"
11362 else
11363 echo "configure: failed program was:" >&5
11364 cat conftest.$ac_ext >&5
11365 rm -rf conftest*
11366 eval "ac_cv_lib_$ac_lib_var=no"
11367 fi
11368 rm -f conftest*
11369 LIBS="$ac_save_LIBS"
11370
11371 fi
11372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11373 echo "$ac_t""yes" 1>&6
11374 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
11375 else
11376 echo "$ac_t""no" 1>&6
11377 fi
11378
11379 fi
11380
11381 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
11382 # to get the SysV transport functions.
11383 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
11384 # needs -lnsl.
11385 # The nsl library prevents programs from opening the X display
11386 # on Irix 5.2, according to dickey@clark.net.
11387 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
11388 echo "configure:11389: checking for gethostbyname" >&5
11389 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
11390 echo $ac_n "(cached) $ac_c" 1>&6
11391 else
11392 cat > conftest.$ac_ext <<EOF
11393 #line 11394 "configure"
11394 #include "confdefs.h"
11395 /* System header to define __stub macros and hopefully few prototypes,
11396 which can conflict with char gethostbyname(); below. */
11397 #include <assert.h>
11398 /* Override any gcc2 internal prototype to avoid an error. */
11399 /* We use char because int might match the return type of a gcc2
11400 builtin and then its argument prototype would still apply. */
11401 char gethostbyname();
11402
11403 int main() {
11404
11405 /* The GNU C library defines this for functions which it implements
11406 to always fail with ENOSYS. Some functions are actually named
11407 something starting with __ and the normal name is an alias. */
11408 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
11409 choke me
11410 #else
11411 gethostbyname();
11412 #endif
11413
11414 ; return 0; }
11415 EOF
11416 if { (eval echo configure:11417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11417 rm -rf conftest*
11418 eval "ac_cv_func_gethostbyname=yes"
11419 else
11420 echo "configure: failed program was:" >&5
11421 cat conftest.$ac_ext >&5
11422 rm -rf conftest*
11423 eval "ac_cv_func_gethostbyname=no"
11424 fi
11425 rm -f conftest*
11426 fi
11427
11428 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
11429 echo "$ac_t""yes" 1>&6
11430 :
11431 else
11432 echo "$ac_t""no" 1>&6
11433 fi
11434
11435 if test $ac_cv_func_gethostbyname = no; then
11436 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
11437 echo "configure:11438: checking for gethostbyname in -lnsl" >&5
11438 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
11439 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11440 echo $ac_n "(cached) $ac_c" 1>&6
11441 else
11442 ac_save_LIBS="$LIBS"
11443 LIBS="-lnsl $LIBS"
11444 cat > conftest.$ac_ext <<EOF
11445 #line 11446 "configure"
11446 #include "confdefs.h"
11447 /* Override any gcc2 internal prototype to avoid an error. */
11448 /* We use char because int might match the return type of a gcc2
11449 builtin and then its argument prototype would still apply. */
11450 char gethostbyname();
11451
11452 int main() {
11453 gethostbyname()
11454 ; return 0; }
11455 EOF
11456 if { (eval echo configure:11457: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11457 rm -rf conftest*
11458 eval "ac_cv_lib_$ac_lib_var=yes"
11459 else
11460 echo "configure: failed program was:" >&5
11461 cat conftest.$ac_ext >&5
11462 rm -rf conftest*
11463 eval "ac_cv_lib_$ac_lib_var=no"
11464 fi
11465 rm -f conftest*
11466 LIBS="$ac_save_LIBS"
11467
11468 fi
11469 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11470 echo "$ac_t""yes" 1>&6
11471 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
11472 else
11473 echo "$ac_t""no" 1>&6
11474 fi
11475
11476 fi
11477
11478 # lieder@skyler.mavd.honeywell.com says without -lsocket,
11479 # socket/setsockopt and other routines are undefined under SCO ODT
11480 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
11481 # on later versions), says simon@lia.di.epfl.ch: it contains
11482 # gethostby* variants that don't use the nameserver (or something).
11483 # -lsocket must be given before -lnsl if both are needed.
11484 # We assume that if connect needs -lnsl, so does gethostbyname.
11485 echo $ac_n "checking for connect""... $ac_c" 1>&6
11486 echo "configure:11487: checking for connect" >&5
11487 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
11488 echo $ac_n "(cached) $ac_c" 1>&6
11489 else
11490 cat > conftest.$ac_ext <<EOF
11491 #line 11492 "configure"
11492 #include "confdefs.h"
11493 /* System header to define __stub macros and hopefully few prototypes,
11494 which can conflict with char connect(); below. */
11495 #include <assert.h>
11496 /* Override any gcc2 internal prototype to avoid an error. */
11497 /* We use char because int might match the return type of a gcc2
11498 builtin and then its argument prototype would still apply. */
11499 char connect();
11500
11501 int main() {
11502
11503 /* The GNU C library defines this for functions which it implements
11504 to always fail with ENOSYS. Some functions are actually named
11505 something starting with __ and the normal name is an alias. */
11506 #if defined (__stub_connect) || defined (__stub___connect)
11507 choke me
11508 #else
11509 connect();
11510 #endif
11511
11512 ; return 0; }
11513 EOF
11514 if { (eval echo configure:11515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11515 rm -rf conftest*
11516 eval "ac_cv_func_connect=yes"
11517 else
11518 echo "configure: failed program was:" >&5
11519 cat conftest.$ac_ext >&5
11520 rm -rf conftest*
11521 eval "ac_cv_func_connect=no"
11522 fi
11523 rm -f conftest*
11524 fi
11525
11526 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
11527 echo "$ac_t""yes" 1>&6
11528 :
11529 else
11530 echo "$ac_t""no" 1>&6
11531 fi
11532
11533 if test $ac_cv_func_connect = no; then
11534 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
11535 echo "configure:11536: checking for connect in -lsocket" >&5
11536 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
11537 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11538 echo $ac_n "(cached) $ac_c" 1>&6
11539 else
11540 ac_save_LIBS="$LIBS"
11541 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
11542 cat > conftest.$ac_ext <<EOF
11543 #line 11544 "configure"
11544 #include "confdefs.h"
11545 /* Override any gcc2 internal prototype to avoid an error. */
11546 /* We use char because int might match the return type of a gcc2
11547 builtin and then its argument prototype would still apply. */
11548 char connect();
11549
11550 int main() {
11551 connect()
11552 ; return 0; }
11553 EOF
11554 if { (eval echo configure:11555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11555 rm -rf conftest*
11556 eval "ac_cv_lib_$ac_lib_var=yes"
11557 else
11558 echo "configure: failed program was:" >&5
11559 cat conftest.$ac_ext >&5
11560 rm -rf conftest*
11561 eval "ac_cv_lib_$ac_lib_var=no"
11562 fi
11563 rm -f conftest*
11564 LIBS="$ac_save_LIBS"
11565
11566 fi
11567 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11568 echo "$ac_t""yes" 1>&6
11569 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
11570 else
11571 echo "$ac_t""no" 1>&6
11572 fi
11573
11574 fi
11575
11576 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
11577 echo $ac_n "checking for remove""... $ac_c" 1>&6
11578 echo "configure:11579: checking for remove" >&5
11579 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
11580 echo $ac_n "(cached) $ac_c" 1>&6
11581 else
11582 cat > conftest.$ac_ext <<EOF
11583 #line 11584 "configure"
11584 #include "confdefs.h"
11585 /* System header to define __stub macros and hopefully few prototypes,
11586 which can conflict with char remove(); below. */
11587 #include <assert.h>
11588 /* Override any gcc2 internal prototype to avoid an error. */
11589 /* We use char because int might match the return type of a gcc2
11590 builtin and then its argument prototype would still apply. */
11591 char remove();
11592
11593 int main() {
11594
11595 /* The GNU C library defines this for functions which it implements
11596 to always fail with ENOSYS. Some functions are actually named
11597 something starting with __ and the normal name is an alias. */
11598 #if defined (__stub_remove) || defined (__stub___remove)
11599 choke me
11600 #else
11601 remove();
11602 #endif
11603
11604 ; return 0; }
11605 EOF
11606 if { (eval echo configure:11607: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11607 rm -rf conftest*
11608 eval "ac_cv_func_remove=yes"
11609 else
11610 echo "configure: failed program was:" >&5
11611 cat conftest.$ac_ext >&5
11612 rm -rf conftest*
11613 eval "ac_cv_func_remove=no"
11614 fi
11615 rm -f conftest*
11616 fi
11617
11618 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
11619 echo "$ac_t""yes" 1>&6
11620 :
11621 else
11622 echo "$ac_t""no" 1>&6
11623 fi
11624
11625 if test $ac_cv_func_remove = no; then
11626 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
11627 echo "configure:11628: checking for remove in -lposix" >&5
11628 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
11629 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11630 echo $ac_n "(cached) $ac_c" 1>&6
11631 else
11632 ac_save_LIBS="$LIBS"
11633 LIBS="-lposix $LIBS"
11634 cat > conftest.$ac_ext <<EOF
11635 #line 11636 "configure"
11636 #include "confdefs.h"
11637 /* Override any gcc2 internal prototype to avoid an error. */
11638 /* We use char because int might match the return type of a gcc2
11639 builtin and then its argument prototype would still apply. */
11640 char remove();
11641
11642 int main() {
11643 remove()
11644 ; return 0; }
11645 EOF
11646 if { (eval echo configure:11647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11647 rm -rf conftest*
11648 eval "ac_cv_lib_$ac_lib_var=yes"
11649 else
11650 echo "configure: failed program was:" >&5
11651 cat conftest.$ac_ext >&5
11652 rm -rf conftest*
11653 eval "ac_cv_lib_$ac_lib_var=no"
11654 fi
11655 rm -f conftest*
11656 LIBS="$ac_save_LIBS"
11657
11658 fi
11659 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11660 echo "$ac_t""yes" 1>&6
11661 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
11662 else
11663 echo "$ac_t""no" 1>&6
11664 fi
11665
11666 fi
11667
11668 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
11669 echo $ac_n "checking for shmat""... $ac_c" 1>&6
11670 echo "configure:11671: checking for shmat" >&5
11671 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
11672 echo $ac_n "(cached) $ac_c" 1>&6
11673 else
11674 cat > conftest.$ac_ext <<EOF
11675 #line 11676 "configure"
11676 #include "confdefs.h"
11677 /* System header to define __stub macros and hopefully few prototypes,
11678 which can conflict with char shmat(); below. */
11679 #include <assert.h>
11680 /* Override any gcc2 internal prototype to avoid an error. */
11681 /* We use char because int might match the return type of a gcc2
11682 builtin and then its argument prototype would still apply. */
11683 char shmat();
11684
11685 int main() {
11686
11687 /* The GNU C library defines this for functions which it implements
11688 to always fail with ENOSYS. Some functions are actually named
11689 something starting with __ and the normal name is an alias. */
11690 #if defined (__stub_shmat) || defined (__stub___shmat)
11691 choke me
11692 #else
11693 shmat();
11694 #endif
11695
11696 ; return 0; }
11697 EOF
11698 if { (eval echo configure:11699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11699 rm -rf conftest*
11700 eval "ac_cv_func_shmat=yes"
11701 else
11702 echo "configure: failed program was:" >&5
11703 cat conftest.$ac_ext >&5
11704 rm -rf conftest*
11705 eval "ac_cv_func_shmat=no"
11706 fi
11707 rm -f conftest*
11708 fi
11709
11710 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
11711 echo "$ac_t""yes" 1>&6
11712 :
11713 else
11714 echo "$ac_t""no" 1>&6
11715 fi
11716
11717 if test $ac_cv_func_shmat = no; then
11718 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
11719 echo "configure:11720: checking for shmat in -lipc" >&5
11720 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
11721 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11722 echo $ac_n "(cached) $ac_c" 1>&6
11723 else
11724 ac_save_LIBS="$LIBS"
11725 LIBS="-lipc $LIBS"
11726 cat > conftest.$ac_ext <<EOF
11727 #line 11728 "configure"
11728 #include "confdefs.h"
11729 /* Override any gcc2 internal prototype to avoid an error. */
11730 /* We use char because int might match the return type of a gcc2
11731 builtin and then its argument prototype would still apply. */
11732 char shmat();
11733
11734 int main() {
11735 shmat()
11736 ; return 0; }
11737 EOF
11738 if { (eval echo configure:11739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11739 rm -rf conftest*
11740 eval "ac_cv_lib_$ac_lib_var=yes"
11741 else
11742 echo "configure: failed program was:" >&5
11743 cat conftest.$ac_ext >&5
11744 rm -rf conftest*
11745 eval "ac_cv_lib_$ac_lib_var=no"
11746 fi
11747 rm -f conftest*
11748 LIBS="$ac_save_LIBS"
11749
11750 fi
11751 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11752 echo "$ac_t""yes" 1>&6
11753 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
11754 else
11755 echo "$ac_t""no" 1>&6
11756 fi
11757
11758 fi
11759 fi
11760
11761 # Check for libraries that X11R6 Xt/Xaw programs need.
11762 ac_save_LDFLAGS="$LDFLAGS"
11763 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
11764 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
11765 # check for ICE first), but we must link in the order -lSM -lICE or
11766 # we get undefined symbols. So assume we have SM if we have ICE.
11767 # These have to be linked with before -lX11, unlike the other
11768 # libraries we check for below, so use a different variable.
11769 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
11770 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
11771 echo "configure:11772: checking for IceConnectionNumber in -lICE" >&5
11772 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
11773 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
11774 echo $ac_n "(cached) $ac_c" 1>&6
11775 else
11776 ac_save_LIBS="$LIBS"
11777 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
11778 cat > conftest.$ac_ext <<EOF
11779 #line 11780 "configure"
11780 #include "confdefs.h"
11781 /* Override any gcc2 internal prototype to avoid an error. */
11782 /* We use char because int might match the return type of a gcc2
11783 builtin and then its argument prototype would still apply. */
11784 char IceConnectionNumber();
11785
11786 int main() {
11787 IceConnectionNumber()
11788 ; return 0; }
11789 EOF
11790 if { (eval echo configure:11791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
11791 rm -rf conftest*
11792 eval "ac_cv_lib_$ac_lib_var=yes"
11793 else
11794 echo "configure: failed program was:" >&5
11795 cat conftest.$ac_ext >&5
11796 rm -rf conftest*
11797 eval "ac_cv_lib_$ac_lib_var=no"
11798 fi
11799 rm -f conftest*
11800 LIBS="$ac_save_LIBS"
11801
11802 fi
11803 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
11804 echo "$ac_t""yes" 1>&6
11805 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
11806 else
11807 echo "$ac_t""no" 1>&6
11808 fi
11809
11810 LDFLAGS="$ac_save_LDFLAGS"
11811
11812 fi
11813
11814
11815 if test "$no_x" = "yes"; then
11816 { echo "configure: error: X11 not found" 1>&2; exit 1; }
11817 fi
11818
11819 GUI_TK_LIBRARY="$X_LIBS"
11820 TOOLKIT_INCLUDE="$X_CFLAGS"
11821 AFMINSTALL=afminstall
11822 COMPILED_X_PROGRAM=0
11823
11824 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
11825 echo "configure:11826: checking for Motif/Lesstif headers" >&5
11826
11827 ac_find_includes=
11828 for ac_dir in $SEARCH_INCLUDE;
11829 do
11830 if test -f "$ac_dir/Xm/Xm.h"; then
11831 ac_find_includes=$ac_dir
11832 break
11833 fi
11834 done
11835
11836 if test "$ac_find_includes" != "" ; then
11837 echo "$ac_t""found $ac_find_includes" 1>&6
11838 else
11839 cat > conftest.$ac_ext <<EOF
11840 #line 11841 "configure"
11841 #include "confdefs.h"
11842
11843 #include <Xm/Xm.h>
11844
11845 int main() {
11846
11847 int version;
11848 version = xmUseVersion;
11849
11850 ; return 0; }
11851 EOF
11852 if { (eval echo configure:11853: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11853 rm -rf conftest*
11854
11855 echo "$ac_t""found in default search path" 1>&6
11856 COMPILED_X_PROGRAM=1
11857
11858 else
11859 echo "configure: failed program was:" >&5
11860 cat conftest.$ac_ext >&5
11861 rm -rf conftest*
11862
11863 echo "$ac_t""no" 1>&6
11864 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
11865
11866
11867 fi
11868 rm -f conftest*
11869 fi
11870
11871 if test "$COMPILED_X_PROGRAM" = 0; then
11872 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
11873 echo "configure:11874: checking for Motif/Lesstif library" >&5
11874
11875 ac_find_libraries=
11876 for ac_dir in $SEARCH_LIB;
11877 do
11878 for ac_extension in a so sl dylib; do
11879 if test -f "$ac_dir/libXm.$ac_extension"; then
11880 ac_find_libraries=$ac_dir
11881 break 2
11882 fi
11883 done
11884 done
11885
11886 if test "$ac_find_libraries" != "" ; then
11887
11888 ac_path_to_include=$ac_find_includes
11889 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
11890 result=$?
11891 if test $result = 0; then
11892 ac_path_to_include=""
11893 else
11894 ac_path_to_include=" -I$ac_find_includes"
11895 fi
11896
11897
11898 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11899 result=$?
11900 if test $result = 0; then
11901 ac_path_to_link=""
11902 else
11903 ac_path_to_link=" -L$ac_find_libraries"
11904 fi
11905
11906
11907 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
11908 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
11909 echo "$ac_t""found at $ac_find_libraries" 1>&6
11910 else
11911 cat > conftest.$ac_ext <<EOF
11912 #line 11913 "configure"
11913 #include "confdefs.h"
11914
11915 #include <Xm/Xm.h>
11916
11917 int main() {
11918
11919 int version;
11920 version = xmUseVersion;
11921
11922 ; return 0; }
11923 EOF
11924 if { (eval echo configure:11925: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11925 rm -rf conftest*
11926
11927 echo "$ac_t""found in default search path" 1>&6
11928 COMPILED_X_PROGRAM=1
11929
11930 else
11931 echo "configure: failed program was:" >&5
11932 cat conftest.$ac_ext >&5
11933 rm -rf conftest*
11934
11935 echo "$ac_t""no" 1>&6
11936 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
11937
11938
11939 fi
11940 rm -f conftest*
11941 fi
11942 fi
11943
11944 xpm_link=
11945 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
11946 echo "configure:11947: checking for Xpm library" >&5
11947
11948 ac_find_libraries=
11949 for ac_dir in $SEARCH_LIB;
11950 do
11951 for ac_extension in a so sl dylib; do
11952 if test -f "$ac_dir/libXpm.$ac_extension"; then
11953 ac_find_libraries=$ac_dir
11954 break 2
11955 fi
11956 done
11957 done
11958
11959 if test "$ac_find_libraries" != "" ; then
11960
11961 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
11962 result=$?
11963 if test $result = 0; then
11964 ac_path_to_link=""
11965 else
11966 ac_path_to_link=" -L$ac_find_libraries"
11967 fi
11968
11969 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
11970 xpm_link=" -lXpm"
11971 cat >> confdefs.h <<\EOF
11972 #define wxHAVE_LIB_XPM 1
11973 EOF
11974
11975 echo "$ac_t""found at $ac_find_libraries" 1>&6
11976 else
11977 cat > conftest.$ac_ext <<EOF
11978 #line 11979 "configure"
11979 #include "confdefs.h"
11980
11981 #include <X11/xpm.h>
11982
11983 int main() {
11984
11985 int version;
11986 version = XpmLibraryVersion();
11987
11988 ; return 0; }
11989 EOF
11990 if { (eval echo configure:11991: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11991 rm -rf conftest*
11992
11993 xpm_link=" -lXpm"
11994 cat >> confdefs.h <<\EOF
11995 #define wxHAVE_LIB_XPM 1
11996 EOF
11997
11998 echo "$ac_t""found in default search path" 1>&6
11999 COMPILED_X_PROGRAM=0
12000
12001 else
12002 echo "configure: failed program was:" >&5
12003 cat conftest.$ac_ext >&5
12004 rm -rf conftest*
12005
12006 echo "$ac_t""no" 1>&6
12007 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
12008
12009
12010 fi
12011 rm -f conftest*
12012 fi
12013
12014 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXm$xpm_link -lXmu -lXext -lXt -lX11"
12015 TOOLKIT_VPATH="\${top_srcdir}/src/motif${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
12016 TOOLKIT=MOTIF
12017 GUIDIST=MOTIF_DIST
12018 fi
12019
12020 if test "$wxUSE_MAC" = 1; then
12021 if test "$wxUSE_PRECOMP" = "yes"; then
12022 CPPFLAGS="$CPPFLAGS -cpp-precomp"
12023 fi
12024 CPPFLAGS="$CPPFLAGS -I/Developer/Headers/FlatCarbon -I\${top_srcdir}/src/mac/morefile"
12025 CFLAGS="$CFLAGS -fpascal-strings"
12026 CXXFLAGS="$CXXFLAGS -fpascal-strings"
12027 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS -DTARGET_CARBON"
12028
12029 TOOLKIT_VPATH="\${top_srcdir}/src/mac${PATH_IFS}\${top_srcdir}/src/mac/morefile"
12030 TOOLKIT=MAC
12031 GUIDIST=MACX_DIST
12032 fi
12033
12034 if test "$wxUSE_PM" = 1; then
12035 TOOLKIT=PM
12036 GUIDIST=GTK_DIST
12037 fi
12038
12039 if test "$TOOLKIT" = "PM" ; then
12040 TOOLKIT_DIR="os2"
12041 else
12042 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
12043 fi
12044
12045 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
12046
12047 if test "$wxUSE_UNIVERSAL" = "yes"; then
12048 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
12049 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
12050 TOOLKIT_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes${PATH_IFS}\${top_srcdir}/src/${TOOLKIT_DIR}"
12051 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
12052 WIDGET_SET=univ
12053 else
12054 ALL_OBJECTS="\$(GUIOBJS)"
12055 fi
12056
12057 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
12058
12059 if test "$TOOLKIT" != "MSW" -a "$USE_DOS" != 1; then
12060 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
12061 fi
12062
12063 if test "$wxUSE_HTML" = "yes"; then
12064 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
12065 fi
12066
12067 if test "$TOOLKIT" != "MSW" -a "$wxUSE_ODBC" = "yes" ; then
12068 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
12069 fi
12070 if test "$wxUSE_LIBJPEG" = "builtin" ; then
12071 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
12072 fi
12073 if test "$wxUSE_LIBTIFF" = "builtin" ; then
12074 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
12075 fi
12076 if test "$wxUSE_LIBPNG" = "builtin" ; then
12077 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
12078 fi
12079 if test "$wxUSE_FREETYPE" = "builtin" ; then
12080 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
12081 fi
12082
12083 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
12084 DISTDIR="wx\$(TOOLKIT)"
12085 else
12086 USE_GUI=0
12087
12088 TOOLKIT_DIR="base"
12089
12090 if test "$USE_WIN32" = 1 ; then
12091 ALL_OBJECTS="\${BASE_OBJS} \${BASE_MSW_OBJS}"
12092 TOOLKIT_VPATH="\${top_srcdir}/src/msw"
12093
12094 TOOLKIT="MSW"
12095 else
12096 ALL_OBJECTS="\${BASE_OBJS} \${BASE_UNIX_OBJS}"
12097 TOOLKIT_VPATH="\${top_srcdir}/src/unix"
12098 fi
12099
12100 PORT_FILES="\${top_srcdir}/src/files.lst"
12101
12102 GUIDIST="BASE_DIST"
12103 DISTDIR="wxBase"
12104 fi
12105
12106 if test "$wxUSE_REGEX" = "builtin" ; then
12107 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
12108 fi
12109 if test "$wxUSE_ZLIB" = "builtin" ; then
12110 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
12111 fi
12112
12113 if test "$wxUSE_OPENGL" = "yes"; then
12114 if test "$wxUSE_MAC" = 1; then
12115 OPENGL_LIBS="-framework OpenGL -framework AGL"
12116 else
12117
12118 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
12119 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
12120 echo "configure:12121: checking for GL/gl.h" >&5
12121 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12122 echo $ac_n "(cached) $ac_c" 1>&6
12123 else
12124 cat > conftest.$ac_ext <<EOF
12125 #line 12126 "configure"
12126 #include "confdefs.h"
12127 #include <GL/gl.h>
12128 EOF
12129 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12130 { (eval echo configure:12131: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12131 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12132 if test -z "$ac_err"; then
12133 rm -rf conftest*
12134 eval "ac_cv_header_$ac_safe=yes"
12135 else
12136 echo "$ac_err" >&5
12137 echo "configure: failed program was:" >&5
12138 cat conftest.$ac_ext >&5
12139 rm -rf conftest*
12140 eval "ac_cv_header_$ac_safe=no"
12141 fi
12142 rm -f conftest*
12143 fi
12144 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12145 echo "$ac_t""yes" 1>&6
12146
12147 echo $ac_n "checking for -lGL""... $ac_c" 1>&6
12148 echo "configure:12149: checking for -lGL" >&5
12149
12150 ac_find_libraries=
12151 for ac_dir in $SEARCH_LIB;
12152 do
12153 for ac_extension in a so sl dylib; do
12154 if test -f "$ac_dir/libGL.$ac_extension"; then
12155 ac_find_libraries=$ac_dir
12156 break 2
12157 fi
12158 done
12159 done
12160
12161 if test "$ac_find_libraries" != "" ; then
12162
12163 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12164 result=$?
12165 if test $result = 0; then
12166 ac_path_to_link=""
12167 else
12168 ac_path_to_link=" -L$ac_find_libraries"
12169 fi
12170
12171 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12172 OPENGL_LIBS="-lGL -lGLU"
12173 echo "$ac_t""yes" 1>&6
12174 else
12175 echo "$ac_t""no" 1>&6
12176 echo $ac_n "checking for -lMesaGL""... $ac_c" 1>&6
12177 echo "configure:12178: checking for -lMesaGL" >&5
12178
12179 ac_find_libraries=
12180 for ac_dir in $SEARCH_LIB;
12181 do
12182 for ac_extension in a so sl dylib; do
12183 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
12184 ac_find_libraries=$ac_dir
12185 break 2
12186 fi
12187 done
12188 done
12189
12190 if test "$ac_find_libraries" != "" ; then
12191
12192 echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
12193 result=$?
12194 if test $result = 0; then
12195 ac_path_to_link=""
12196 else
12197 ac_path_to_link=" -L$ac_find_libraries"
12198 fi
12199
12200 LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
12201 OPENGL_LIBS="-lMesaGL -lMesaGLU"
12202 echo "$ac_t""yes" 1>&6
12203 else
12204 echo "$ac_t""no" 1>&6
12205 fi
12206 fi
12207
12208 else
12209 echo "$ac_t""no" 1>&6
12210 fi
12211
12212
12213
12214 # AC_CHECK_HEADER(GL/gl.h,
12215 # [
12216 # AC_CHECK_LIB(GL, glFlush,
12217 # [
12218 # OPENGL_LIBS="-lGL -lGLU"
12219 # ],
12220 # [
12221 # AC_CHECK_LIB(MesaGL, glFlush,
12222 # [
12223 # OPENGL_LIBS="-lMesaGL -lMesaGLU"
12224 # ],
12225 # [],
12226 # [-lm])
12227 # ],
12228 # [-lm])
12229 # ])
12230
12231 if test "x$OPENGL_LIBS" = "x"; then
12232 { echo "configure: error: OpenGL libraries not available" 1>&2; exit 1; }
12233 fi
12234 fi
12235
12236 if test "$wxUSE_OPENGL" = "yes"; then
12237 cat >> confdefs.h <<\EOF
12238 #define wxUSE_OPENGL 1
12239 EOF
12240
12241 cat >> confdefs.h <<\EOF
12242 #define wxUSE_GLCANVAS 1
12243 EOF
12244
12245 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
12246 fi
12247 fi
12248
12249 if test -z "$TOOLKIT_VPATH" ; then
12250 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
12251 fi
12252
12253 if test -n "$TOOLKIT" ; then
12254 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
12255 fi
12256
12257 lib_unicode_suffix=
12258 if test "$wxUSE_UNICODE" = "yes"; then
12259 lib_unicode_suffix=u
12260 fi
12261
12262 lib_debug_suffix=
12263 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
12264 lib_debug_suffix=d
12265 fi
12266
12267 TOOLCHAIN_NAME="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}-${WX_RELEASE}"
12268 TOOLCHAIN_NAME_GL="${TOOLKIT_DIR}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}_gl-${WX_RELEASE}"
12269
12270 if test "$cross_compiling" = "yes"; then
12271 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}-${host_alias}"
12272 TOOLCHAIN_NAME_GL="${TOOLCHAIN_NAME_GL}-${host_alias}"
12273 fi
12274
12275 WX_LIBRARY="wx_${TOOLCHAIN_NAME}"
12276 WX_LIBRARY_GL="wx_${TOOLCHAIN_NAME_GL}"
12277
12278 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12279 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
12280
12281 WX_LIBRARY_LINK1="lib${WX_LIBRARY}.${SO_SUFFIX}.${WX_CURRENT}"
12282 WX_LIBRARY_LINK2="lib${WX_LIBRARY}.${SO_SUFFIX}"
12283 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}.${WX_CURRENT}"
12284 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12285
12286 WX_RESOURCES_MACOSX="lib${WX_LIBRARY}.rsrc"
12287 WX_RESOURCES_MACOSX_COMPILED="lib${WX_LIBRARY}.r"
12288
12289 case "${host}" in
12290 *-*-cygwin* | *-*-mingw32* )
12291
12292
12293
12294 if test "$cross_compiling" != "yes"; then
12295 WX_LIBRARY="wxmsw${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12296 WX_LIBRARY_GL="wxmsw_gl${WX_MSW_VERSION}${lib_unicode_suffix}${lib_debug_suffix}"
12297 WX_LIBRARY_NAME_SHARED="${WX_LIBRARY}.${SO_SUFFIX}"
12298 WX_LIBRARY_NAME_SHARED_GL="${WX_LIBRARY_GL}.${SO_SUFFIX}"
12299 else
12300 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}.${SO_SUFFIX}"
12301 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY_GL}.${SO_SUFFIX}"
12302 fi
12303
12304 esac
12305
12306 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
12307 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY_GL}.a"
12308
12309 WXCONFIG_LIBS="-l${WX_LIBRARY}"
12310 WXCONFIG_LIBS_STATIC="lib${WX_LIBRARY}.a"
12311
12312 if test "$wxUSE_OPENGL" = "yes"; then
12313 WXCONFIG_LIBS_GL="-l${WX_LIBRARY_GL} ${OPENGL_LIBS}"
12314 WXCONFIG_LIBS_STATIC_GL="lib${WX_LIBRARY_GL}.a ${OPENGL_LIBS}"
12315 fi
12316
12317
12318
12319 if test "$wxUSE_SHARED" = "yes"; then
12320
12321 if test "$wxUSE_OPENGL" = "yes"; then
12322 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
12323 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1} \$(build_libdir)/${WX_LIBRARY_LINK1_GL}"
12324 else
12325 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
12326 WX_ALL="\$(build_libdir)/${WX_LIBRARY_LINK1}"
12327 fi
12328
12329 if test "$GCC" = "yes"; then
12330 PIC_FLAG="-fPIC"
12331 fi
12332
12333 SHARED_LD="${CXX} -shared -o"
12334
12335 case "${host}" in
12336 *-hp-hpux* )
12337 if test "$GCC" != "yes"; then
12338 LDFLAGS="$LDFLAGS -L/usr/lib"
12339
12340 SHARED_LD="${CXX} -b -o"
12341 PIC_FLAG="+Z"
12342 fi
12343
12344 if test "$wxUSE_OPENGL" = "yes"; then
12345 WX_ALL_INSTALLED="preinstall_gl"
12346 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12347 else
12348 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12349 fi
12350 ;;
12351
12352 *-*-linux* )
12353 if test "$GCC" != "yes"; then
12354 echo $ac_n "checking for Intel compiler""... $ac_c" 1>&6
12355 echo "configure:12356: checking for Intel compiler" >&5
12356 if eval "test \"`echo '$''{'wx_cv_prog_icc'+set}'`\" = set"; then
12357 echo $ac_n "(cached) $ac_c" 1>&6
12358 else
12359
12360 cat > conftest.$ac_ext <<EOF
12361 #line 12362 "configure"
12362 #include "confdefs.h"
12363
12364 int main() {
12365
12366 #ifndef __INTEL_COMPILER
12367 #error Not icc
12368 #endif
12369
12370 ; return 0; }
12371 EOF
12372 if { (eval echo configure:12373: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12373 rm -rf conftest*
12374 wx_cv_prog_icc=yes
12375 else
12376 echo "configure: failed program was:" >&5
12377 cat conftest.$ac_ext >&5
12378 rm -rf conftest*
12379 wx_cv_prog_icc=no
12380
12381 fi
12382 rm -f conftest*
12383
12384 fi
12385
12386 echo "$ac_t""$wx_cv_prog_icc" 1>&6
12387 if test "$wx_cv_prog_icc" = "yes"; then
12388 PIC_FLAG="-KPIC"
12389 fi
12390 fi
12391
12392 if test "$wxUSE_SONAME" = "yes" ; then
12393 SONAME_FLAGS="-Wl,-soname,${WX_LIBRARY_LINK1}"
12394 SONAME_FLAGS_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
12395 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
12396 fi
12397 ;;
12398
12399 *-*-solaris2* )
12400 if test "$GCC" = yes ; then
12401 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
12402 else
12403 SHARED_LD="${CXX} -G -o"
12404 PIC_FLAG="-KPIC"
12405 SONAME_FLAGS="-h ${WX_LIBRARY_NAME_SHARED}"
12406 SONAME_FLAGS_GL="-h ${WX_LIBRARY_NAME_SHARED}"
12407 fi
12408 ;;
12409
12410 *-*-darwin* )
12411 CFLAGS="$CFLAGS -fno-common -DDYLIB_INIT"
12412 CXXFLAGS="$CXXFLAGS -fno-common -DDYLIB_INIT"
12413 SHARED_LD="$CXX -dynamiclib -init _wxWindowsDylibInit -o"
12414 PIC_FLAG="-dynamic -fPIC"
12415 ;;
12416
12417 *-*-aix* )
12418 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
12419 ;;
12420
12421 *-*-cygwin* | *-*-mingw32* )
12422
12423 WX_LIBRARY_IMPORTLIB="${WX_LIBRARY_NAME_SHARED}.a"
12424
12425 SHARED_LD="${CXX} -shared -Wl,--out-implib,lib/${WX_LIBRARY_IMPORTLIB} -o"
12426 TOOLCHAIN_DLL_DEFS="${TOOLCHAIN_DLL_DEFS} -DWXUSINGDLL=1"
12427
12428 PIC_FLAG="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
12429
12430 if test "$wxUSE_OPENGL" = "yes"; then
12431 WX_ALL_INSTALLED="preinstall_gl"
12432 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED} \$(build_libdir)/${WX_LIBRARY_NAME_SHARED_GL}"
12433 else
12434 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_SHARED}"
12435 fi
12436 ;;
12437
12438 *-pc-os2_emx | *-pc-os2-emx )
12439 wxUSE_SHARED=no
12440 ;;
12441
12442 *-*-beos* )
12443 SHARED_LD="${LD} -shared -o"
12444 ;;
12445
12446 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | \
12447 *-*-sunos4* | \
12448 *-*-irix5* | *-*-irix6* | \
12449 *-*-osf* | \
12450 *-*-dgux5* | \
12451 *-*-sysv5* )
12452 ;;
12453
12454 *)
12455 { echo "configure: error: unknown system type $host." 1>&2; exit 1; }
12456 esac
12457
12458 if test "x$WX_TARGET_LIBRARY" = "x"; then
12459 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
12460 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
12461 fi
12462
12463 WX_TARGET_LIBRARY_TYPE="so"
12464 INSTALL_LIBRARY='$(INSTALL_PROGRAM)'
12465 fi
12466
12467 if test "$wxUSE_SHARED" = "no"; then
12468
12469 if test "$wxUSE_GUI" = "no" -o "$USE_WIN32" = 1 ; then
12470 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12471 fi
12472
12473 if test "$wxUSE_MAC" = 1; then
12474 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
12475 fi
12476
12477 if test "$wxUSE_OPENGL" = "yes"; then
12478 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_gl"
12479 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC} \$(build_libdir)/${WX_LIBRARY_NAME_STATIC_GL}"
12480 else
12481 WX_ALL="\$(build_libdir)/${WX_LIBRARY_NAME_STATIC}"
12482 fi
12483
12484 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
12485 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
12486
12487 WX_TARGET_LIBRARY_TYPE="a"
12488 INSTALL_LIBRARY='$(INSTALL_DATA)'
12489 fi
12490
12491 if test "$wxUSE_MAC" = 1; then
12492 WX_ALL="${WX_ALL} \$(build_libdir)/lib${WX_LIBRARY}.r"
12493 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall_res"
12494 # Extract the first word of "Rez", so it can be a program name with args.
12495 set dummy Rez; ac_word=$2
12496 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12497 echo "configure:12498: checking for $ac_word" >&5
12498 if eval "test \"`echo '$''{'ac_cv_prog_RESCOMP'+set}'`\" = set"; then
12499 echo $ac_n "(cached) $ac_c" 1>&6
12500 else
12501 if test -n "$RESCOMP"; then
12502 ac_cv_prog_RESCOMP="$RESCOMP" # Let the user override the test.
12503 else
12504 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12505 ac_dummy="$PATH"
12506 for ac_dir in $ac_dummy; do
12507 test -z "$ac_dir" && ac_dir=.
12508 if test -f $ac_dir/$ac_word; then
12509 ac_cv_prog_RESCOMP="Rez"
12510 break
12511 fi
12512 done
12513 IFS="$ac_save_ifs"
12514 test -z "$ac_cv_prog_RESCOMP" && ac_cv_prog_RESCOMP="/Developer/Tools/Rez"
12515 fi
12516 fi
12517 RESCOMP="$ac_cv_prog_RESCOMP"
12518 if test -n "$RESCOMP"; then
12519 echo "$ac_t""$RESCOMP" 1>&6
12520 else
12521 echo "$ac_t""no" 1>&6
12522 fi
12523
12524 # Extract the first word of "DeRez", so it can be a program name with args.
12525 set dummy DeRez; ac_word=$2
12526 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
12527 echo "configure:12528: checking for $ac_word" >&5
12528 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
12529 echo $ac_n "(cached) $ac_c" 1>&6
12530 else
12531 if test -n "$DEREZ"; then
12532 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
12533 else
12534 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
12535 ac_dummy="$PATH"
12536 for ac_dir in $ac_dummy; do
12537 test -z "$ac_dir" && ac_dir=.
12538 if test -f $ac_dir/$ac_word; then
12539 ac_cv_prog_DEREZ="DeRez"
12540 break
12541 fi
12542 done
12543 IFS="$ac_save_ifs"
12544 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
12545 fi
12546 fi
12547 DEREZ="$ac_cv_prog_DEREZ"
12548 if test -n "$DEREZ"; then
12549 echo "$ac_t""$DEREZ" 1>&6
12550 else
12551 echo "$ac_t""no" 1>&6
12552 fi
12553
12554 LIBWXMACRES="\$(top_builddir)/lib/lib${WX_LIBRARY}.r"
12555 LIBWXMACRESCOMP="\$(RESCOMP) Carbon.r -t APPL ${LIBWXMACRES} -o \$(BIN_PROGRAM)"
12556 LIBWXMACRESWXCONFIG="${RESCOMP} Carbon.r -t APPL \${prefix}/lib/${WX_RESOURCES_MACOSX_COMPILED} -o"
12557 fi
12558
12559
12560 if test "$wxUSE_MAC" != 1; then
12561 for ac_hdr in strings.h
12562 do
12563 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12564 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12565 echo "configure:12566: checking for $ac_hdr" >&5
12566 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12567 echo $ac_n "(cached) $ac_c" 1>&6
12568 else
12569 cat > conftest.$ac_ext <<EOF
12570 #line 12571 "configure"
12571 #include "confdefs.h"
12572 #include <$ac_hdr>
12573 EOF
12574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12575 { (eval echo configure:12576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12577 if test -z "$ac_err"; then
12578 rm -rf conftest*
12579 eval "ac_cv_header_$ac_safe=yes"
12580 else
12581 echo "$ac_err" >&5
12582 echo "configure: failed program was:" >&5
12583 cat conftest.$ac_ext >&5
12584 rm -rf conftest*
12585 eval "ac_cv_header_$ac_safe=no"
12586 fi
12587 rm -f conftest*
12588 fi
12589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12590 echo "$ac_t""yes" 1>&6
12591 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12592 cat >> confdefs.h <<EOF
12593 #define $ac_tr_hdr 1
12594 EOF
12595
12596 else
12597 echo "$ac_t""no" 1>&6
12598 fi
12599 done
12600
12601 fi
12602
12603 for ac_hdr in stdlib.h
12604 do
12605 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12606 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12607 echo "configure:12608: checking for $ac_hdr" >&5
12608 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12609 echo $ac_n "(cached) $ac_c" 1>&6
12610 else
12611 cat > conftest.$ac_ext <<EOF
12612 #line 12613 "configure"
12613 #include "confdefs.h"
12614 #include <$ac_hdr>
12615 EOF
12616 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12617 { (eval echo configure:12618: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12618 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12619 if test -z "$ac_err"; then
12620 rm -rf conftest*
12621 eval "ac_cv_header_$ac_safe=yes"
12622 else
12623 echo "$ac_err" >&5
12624 echo "configure: failed program was:" >&5
12625 cat conftest.$ac_ext >&5
12626 rm -rf conftest*
12627 eval "ac_cv_header_$ac_safe=no"
12628 fi
12629 rm -f conftest*
12630 fi
12631 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12632 echo "$ac_t""yes" 1>&6
12633 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12634 cat >> confdefs.h <<EOF
12635 #define $ac_tr_hdr 1
12636 EOF
12637
12638 else
12639 echo "$ac_t""no" 1>&6
12640 fi
12641 done
12642
12643 for ac_hdr in malloc.h
12644 do
12645 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12646 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12647 echo "configure:12648: checking for $ac_hdr" >&5
12648 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12649 echo $ac_n "(cached) $ac_c" 1>&6
12650 else
12651 cat > conftest.$ac_ext <<EOF
12652 #line 12653 "configure"
12653 #include "confdefs.h"
12654 #include <$ac_hdr>
12655 EOF
12656 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12657 { (eval echo configure:12658: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12658 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12659 if test -z "$ac_err"; then
12660 rm -rf conftest*
12661 eval "ac_cv_header_$ac_safe=yes"
12662 else
12663 echo "$ac_err" >&5
12664 echo "configure: failed program was:" >&5
12665 cat conftest.$ac_ext >&5
12666 rm -rf conftest*
12667 eval "ac_cv_header_$ac_safe=no"
12668 fi
12669 rm -f conftest*
12670 fi
12671 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12672 echo "$ac_t""yes" 1>&6
12673 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12674 cat >> confdefs.h <<EOF
12675 #define $ac_tr_hdr 1
12676 EOF
12677
12678 else
12679 echo "$ac_t""no" 1>&6
12680 fi
12681 done
12682
12683 for ac_hdr in unistd.h
12684 do
12685 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12686 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12687 echo "configure:12688: checking for $ac_hdr" >&5
12688 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12689 echo $ac_n "(cached) $ac_c" 1>&6
12690 else
12691 cat > conftest.$ac_ext <<EOF
12692 #line 12693 "configure"
12693 #include "confdefs.h"
12694 #include <$ac_hdr>
12695 EOF
12696 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12697 { (eval echo configure:12698: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12698 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12699 if test -z "$ac_err"; then
12700 rm -rf conftest*
12701 eval "ac_cv_header_$ac_safe=yes"
12702 else
12703 echo "$ac_err" >&5
12704 echo "configure: failed program was:" >&5
12705 cat conftest.$ac_ext >&5
12706 rm -rf conftest*
12707 eval "ac_cv_header_$ac_safe=no"
12708 fi
12709 rm -f conftest*
12710 fi
12711 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12712 echo "$ac_t""yes" 1>&6
12713 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12714 cat >> confdefs.h <<EOF
12715 #define $ac_tr_hdr 1
12716 EOF
12717
12718 else
12719 echo "$ac_t""no" 1>&6
12720 fi
12721 done
12722
12723 for ac_hdr in wchar.h
12724 do
12725 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12726 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12727 echo "configure:12728: checking for $ac_hdr" >&5
12728 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12729 echo $ac_n "(cached) $ac_c" 1>&6
12730 else
12731 cat > conftest.$ac_ext <<EOF
12732 #line 12733 "configure"
12733 #include "confdefs.h"
12734 #include <$ac_hdr>
12735 EOF
12736 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12737 { (eval echo configure:12738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12738 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12739 if test -z "$ac_err"; then
12740 rm -rf conftest*
12741 eval "ac_cv_header_$ac_safe=yes"
12742 else
12743 echo "$ac_err" >&5
12744 echo "configure: failed program was:" >&5
12745 cat conftest.$ac_ext >&5
12746 rm -rf conftest*
12747 eval "ac_cv_header_$ac_safe=no"
12748 fi
12749 rm -f conftest*
12750 fi
12751 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12752 echo "$ac_t""yes" 1>&6
12753 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12754 cat >> confdefs.h <<EOF
12755 #define $ac_tr_hdr 1
12756 EOF
12757
12758 else
12759 echo "$ac_t""no" 1>&6
12760 fi
12761 done
12762
12763 for ac_hdr in wcstr.h
12764 do
12765 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12766 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12767 echo "configure:12768: checking for $ac_hdr" >&5
12768 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12769 echo $ac_n "(cached) $ac_c" 1>&6
12770 else
12771 cat > conftest.$ac_ext <<EOF
12772 #line 12773 "configure"
12773 #include "confdefs.h"
12774 #include <$ac_hdr>
12775 EOF
12776 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12777 { (eval echo configure:12778: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12778 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12779 if test -z "$ac_err"; then
12780 rm -rf conftest*
12781 eval "ac_cv_header_$ac_safe=yes"
12782 else
12783 echo "$ac_err" >&5
12784 echo "configure: failed program was:" >&5
12785 cat conftest.$ac_ext >&5
12786 rm -rf conftest*
12787 eval "ac_cv_header_$ac_safe=no"
12788 fi
12789 rm -f conftest*
12790 fi
12791 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12792 echo "$ac_t""yes" 1>&6
12793 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12794 cat >> confdefs.h <<EOF
12795 #define $ac_tr_hdr 1
12796 EOF
12797
12798 else
12799 echo "$ac_t""no" 1>&6
12800 fi
12801 done
12802
12803 for ac_hdr in wctype.h
12804 do
12805 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12806 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12807 echo "configure:12808: checking for $ac_hdr" >&5
12808 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12809 echo $ac_n "(cached) $ac_c" 1>&6
12810 else
12811 cat > conftest.$ac_ext <<EOF
12812 #line 12813 "configure"
12813 #include "confdefs.h"
12814 #include <$ac_hdr>
12815 EOF
12816 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12817 { (eval echo configure:12818: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12818 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12819 if test -z "$ac_err"; then
12820 rm -rf conftest*
12821 eval "ac_cv_header_$ac_safe=yes"
12822 else
12823 echo "$ac_err" >&5
12824 echo "configure: failed program was:" >&5
12825 cat conftest.$ac_ext >&5
12826 rm -rf conftest*
12827 eval "ac_cv_header_$ac_safe=no"
12828 fi
12829 rm -f conftest*
12830 fi
12831 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12832 echo "$ac_t""yes" 1>&6
12833 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12834 cat >> confdefs.h <<EOF
12835 #define $ac_tr_hdr 1
12836 EOF
12837
12838 else
12839 echo "$ac_t""no" 1>&6
12840 fi
12841 done
12842
12843 for ac_hdr in fnmatch.h
12844 do
12845 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12846 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12847 echo "configure:12848: checking for $ac_hdr" >&5
12848 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12849 echo $ac_n "(cached) $ac_c" 1>&6
12850 else
12851 cat > conftest.$ac_ext <<EOF
12852 #line 12853 "configure"
12853 #include "confdefs.h"
12854 #include <$ac_hdr>
12855 EOF
12856 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12857 { (eval echo configure:12858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12858 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12859 if test -z "$ac_err"; then
12860 rm -rf conftest*
12861 eval "ac_cv_header_$ac_safe=yes"
12862 else
12863 echo "$ac_err" >&5
12864 echo "configure: failed program was:" >&5
12865 cat conftest.$ac_ext >&5
12866 rm -rf conftest*
12867 eval "ac_cv_header_$ac_safe=no"
12868 fi
12869 rm -f conftest*
12870 fi
12871 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12872 echo "$ac_t""yes" 1>&6
12873 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12874 cat >> confdefs.h <<EOF
12875 #define $ac_tr_hdr 1
12876 EOF
12877
12878 else
12879 echo "$ac_t""no" 1>&6
12880 fi
12881 done
12882
12883 for ac_hdr in iconv.h
12884 do
12885 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12886 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12887 echo "configure:12888: checking for $ac_hdr" >&5
12888 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12889 echo $ac_n "(cached) $ac_c" 1>&6
12890 else
12891 cat > conftest.$ac_ext <<EOF
12892 #line 12893 "configure"
12893 #include "confdefs.h"
12894 #include <$ac_hdr>
12895 EOF
12896 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12897 { (eval echo configure:12898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12898 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12899 if test -z "$ac_err"; then
12900 rm -rf conftest*
12901 eval "ac_cv_header_$ac_safe=yes"
12902 else
12903 echo "$ac_err" >&5
12904 echo "configure: failed program was:" >&5
12905 cat conftest.$ac_ext >&5
12906 rm -rf conftest*
12907 eval "ac_cv_header_$ac_safe=no"
12908 fi
12909 rm -f conftest*
12910 fi
12911 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12912 echo "$ac_t""yes" 1>&6
12913 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12914 cat >> confdefs.h <<EOF
12915 #define $ac_tr_hdr 1
12916 EOF
12917
12918 else
12919 echo "$ac_t""no" 1>&6
12920 fi
12921 done
12922
12923 for ac_hdr in langinfo.h
12924 do
12925 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12926 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12927 echo "configure:12928: checking for $ac_hdr" >&5
12928 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12929 echo $ac_n "(cached) $ac_c" 1>&6
12930 else
12931 cat > conftest.$ac_ext <<EOF
12932 #line 12933 "configure"
12933 #include "confdefs.h"
12934 #include <$ac_hdr>
12935 EOF
12936 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12937 { (eval echo configure:12938: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12938 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12939 if test -z "$ac_err"; then
12940 rm -rf conftest*
12941 eval "ac_cv_header_$ac_safe=yes"
12942 else
12943 echo "$ac_err" >&5
12944 echo "configure: failed program was:" >&5
12945 cat conftest.$ac_ext >&5
12946 rm -rf conftest*
12947 eval "ac_cv_header_$ac_safe=no"
12948 fi
12949 rm -f conftest*
12950 fi
12951 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12952 echo "$ac_t""yes" 1>&6
12953 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12954 cat >> confdefs.h <<EOF
12955 #define $ac_tr_hdr 1
12956 EOF
12957
12958 else
12959 echo "$ac_t""no" 1>&6
12960 fi
12961 done
12962
12963
12964 if test "$wxUSE_GUI" = "yes"; then
12965 if test "$wxUSE_UNIX" = "yes"; then
12966 for ac_hdr in X11/XKBlib.h
12967 do
12968 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12969 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12970 echo "configure:12971: checking for $ac_hdr" >&5
12971 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12972 echo $ac_n "(cached) $ac_c" 1>&6
12973 else
12974 cat > conftest.$ac_ext <<EOF
12975 #line 12976 "configure"
12976 #include "confdefs.h"
12977 #include <$ac_hdr>
12978 EOF
12979 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12980 { (eval echo configure:12981: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12981 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12982 if test -z "$ac_err"; then
12983 rm -rf conftest*
12984 eval "ac_cv_header_$ac_safe=yes"
12985 else
12986 echo "$ac_err" >&5
12987 echo "configure: failed program was:" >&5
12988 cat conftest.$ac_ext >&5
12989 rm -rf conftest*
12990 eval "ac_cv_header_$ac_safe=no"
12991 fi
12992 rm -f conftest*
12993 fi
12994 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12995 echo "$ac_t""yes" 1>&6
12996 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12997 cat >> confdefs.h <<EOF
12998 #define $ac_tr_hdr 1
12999 EOF
13000
13001 else
13002 echo "$ac_t""no" 1>&6
13003 fi
13004 done
13005
13006 fi
13007 fi
13008
13009
13010 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
13011 echo "configure:13012: checking for ANSI C header files" >&5
13012 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
13013 echo $ac_n "(cached) $ac_c" 1>&6
13014 else
13015 cat > conftest.$ac_ext <<EOF
13016 #line 13017 "configure"
13017 #include "confdefs.h"
13018 #include <stdlib.h>
13019 #include <stdarg.h>
13020 #include <string.h>
13021 #include <float.h>
13022 EOF
13023 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13024 { (eval echo configure:13025: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
13025 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
13026 if test -z "$ac_err"; then
13027 rm -rf conftest*
13028 ac_cv_header_stdc=yes
13029 else
13030 echo "$ac_err" >&5
13031 echo "configure: failed program was:" >&5
13032 cat conftest.$ac_ext >&5
13033 rm -rf conftest*
13034 ac_cv_header_stdc=no
13035 fi
13036 rm -f conftest*
13037
13038 if test $ac_cv_header_stdc = yes; then
13039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13040 cat > conftest.$ac_ext <<EOF
13041 #line 13042 "configure"
13042 #include "confdefs.h"
13043 #include <string.h>
13044 EOF
13045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13046 egrep "memchr" >/dev/null 2>&1; then
13047 :
13048 else
13049 rm -rf conftest*
13050 ac_cv_header_stdc=no
13051 fi
13052 rm -f conftest*
13053
13054 fi
13055
13056 if test $ac_cv_header_stdc = yes; then
13057 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13058 cat > conftest.$ac_ext <<EOF
13059 #line 13060 "configure"
13060 #include "confdefs.h"
13061 #include <stdlib.h>
13062 EOF
13063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13064 egrep "free" >/dev/null 2>&1; then
13065 :
13066 else
13067 rm -rf conftest*
13068 ac_cv_header_stdc=no
13069 fi
13070 rm -f conftest*
13071
13072 fi
13073
13074 if test $ac_cv_header_stdc = yes; then
13075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13076 if test "$cross_compiling" = yes; then
13077 :
13078 else
13079 cat > conftest.$ac_ext <<EOF
13080 #line 13081 "configure"
13081 #include "confdefs.h"
13082 #include <ctype.h>
13083 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13084 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13085 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13086 int main () { int i; for (i = 0; i < 256; i++)
13087 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
13088 exit (0); }
13089
13090 EOF
13091 if { (eval echo configure:13092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13092 then
13093 :
13094 else
13095 echo "configure: failed program was:" >&5
13096 cat conftest.$ac_ext >&5
13097 rm -fr conftest*
13098 ac_cv_header_stdc=no
13099 fi
13100 rm -fr conftest*
13101 fi
13102
13103 fi
13104 fi
13105
13106 echo "$ac_t""$ac_cv_header_stdc" 1>&6
13107 if test $ac_cv_header_stdc = yes; then
13108 cat >> confdefs.h <<\EOF
13109 #define STDC_HEADERS 1
13110 EOF
13111
13112 fi
13113
13114 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
13115 echo "configure:13116: checking for mode_t" >&5
13116 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
13117 echo $ac_n "(cached) $ac_c" 1>&6
13118 else
13119 cat > conftest.$ac_ext <<EOF
13120 #line 13121 "configure"
13121 #include "confdefs.h"
13122 #include <sys/types.h>
13123 #if STDC_HEADERS
13124 #include <stdlib.h>
13125 #include <stddef.h>
13126 #endif
13127 EOF
13128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13129 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13130 rm -rf conftest*
13131 ac_cv_type_mode_t=yes
13132 else
13133 rm -rf conftest*
13134 ac_cv_type_mode_t=no
13135 fi
13136 rm -f conftest*
13137
13138 fi
13139 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
13140 if test $ac_cv_type_mode_t = no; then
13141 cat >> confdefs.h <<\EOF
13142 #define mode_t int
13143 EOF
13144
13145 fi
13146
13147 echo $ac_n "checking for off_t""... $ac_c" 1>&6
13148 echo "configure:13149: checking for off_t" >&5
13149 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
13150 echo $ac_n "(cached) $ac_c" 1>&6
13151 else
13152 cat > conftest.$ac_ext <<EOF
13153 #line 13154 "configure"
13154 #include "confdefs.h"
13155 #include <sys/types.h>
13156 #if STDC_HEADERS
13157 #include <stdlib.h>
13158 #include <stddef.h>
13159 #endif
13160 EOF
13161 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13162 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13163 rm -rf conftest*
13164 ac_cv_type_off_t=yes
13165 else
13166 rm -rf conftest*
13167 ac_cv_type_off_t=no
13168 fi
13169 rm -f conftest*
13170
13171 fi
13172 echo "$ac_t""$ac_cv_type_off_t" 1>&6
13173 if test $ac_cv_type_off_t = no; then
13174 cat >> confdefs.h <<\EOF
13175 #define off_t long
13176 EOF
13177
13178 fi
13179
13180 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
13181 echo "configure:13182: checking for pid_t" >&5
13182 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
13183 echo $ac_n "(cached) $ac_c" 1>&6
13184 else
13185 cat > conftest.$ac_ext <<EOF
13186 #line 13187 "configure"
13187 #include "confdefs.h"
13188 #include <sys/types.h>
13189 #if STDC_HEADERS
13190 #include <stdlib.h>
13191 #include <stddef.h>
13192 #endif
13193 EOF
13194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13195 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13196 rm -rf conftest*
13197 ac_cv_type_pid_t=yes
13198 else
13199 rm -rf conftest*
13200 ac_cv_type_pid_t=no
13201 fi
13202 rm -f conftest*
13203
13204 fi
13205 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
13206 if test $ac_cv_type_pid_t = no; then
13207 cat >> confdefs.h <<\EOF
13208 #define pid_t int
13209 EOF
13210
13211 fi
13212
13213 echo $ac_n "checking for size_t""... $ac_c" 1>&6
13214 echo "configure:13215: checking for size_t" >&5
13215 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
13216 echo $ac_n "(cached) $ac_c" 1>&6
13217 else
13218 cat > conftest.$ac_ext <<EOF
13219 #line 13220 "configure"
13220 #include "confdefs.h"
13221 #include <sys/types.h>
13222 #if STDC_HEADERS
13223 #include <stdlib.h>
13224 #include <stddef.h>
13225 #endif
13226 EOF
13227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13228 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
13229 rm -rf conftest*
13230 ac_cv_type_size_t=yes
13231 else
13232 rm -rf conftest*
13233 ac_cv_type_size_t=no
13234 fi
13235 rm -f conftest*
13236
13237 fi
13238 echo "$ac_t""$ac_cv_type_size_t" 1>&6
13239 if test $ac_cv_type_size_t = no; then
13240 cat >> confdefs.h <<\EOF
13241 #define size_t unsigned
13242 EOF
13243
13244 fi
13245
13246 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
13247 echo "configure:13248: checking for uid_t in sys/types.h" >&5
13248 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
13249 echo $ac_n "(cached) $ac_c" 1>&6
13250 else
13251 cat > conftest.$ac_ext <<EOF
13252 #line 13253 "configure"
13253 #include "confdefs.h"
13254 #include <sys/types.h>
13255 EOF
13256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13257 egrep "uid_t" >/dev/null 2>&1; then
13258 rm -rf conftest*
13259 ac_cv_type_uid_t=yes
13260 else
13261 rm -rf conftest*
13262 ac_cv_type_uid_t=no
13263 fi
13264 rm -f conftest*
13265
13266 fi
13267
13268 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
13269 if test $ac_cv_type_uid_t = no; then
13270 cat >> confdefs.h <<\EOF
13271 #define uid_t int
13272 EOF
13273
13274 cat >> confdefs.h <<\EOF
13275 #define gid_t int
13276 EOF
13277
13278 fi
13279
13280
13281 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
13282 echo "configure:13283: checking for wchar_t" >&5
13283 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
13284 echo $ac_n "(cached) $ac_c" 1>&6
13285 else
13286
13287 cat > conftest.$ac_ext <<EOF
13288 #line 13289 "configure"
13289 #include "confdefs.h"
13290
13291 #ifdef HAVE_WCHAR_H
13292 # ifdef __CYGWIN__
13293 # include <stddef.h>
13294 # endif
13295 # include <wchar.h>
13296 #endif
13297 #ifdef HAVE_STDLIB_H
13298 # include <stdlib.h>
13299 #endif
13300
13301 int main() {
13302
13303 wchar_t wc, *ws;
13304 wc = L'a';
13305 ws = L"Hello, world!";
13306
13307 ; return 0; }
13308 EOF
13309 if { (eval echo configure:13310: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13310 rm -rf conftest*
13311 wx_cv_type_wchar_t=yes
13312 else
13313 echo "configure: failed program was:" >&5
13314 cat conftest.$ac_ext >&5
13315 rm -rf conftest*
13316 wx_cv_type_wchar_t=no
13317
13318 fi
13319 rm -f conftest*
13320
13321 fi
13322
13323 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
13324
13325 if test "$wx_cv_type_wchar_t" = "yes"; then
13326 cat >> confdefs.h <<\EOF
13327 #define wxUSE_WCHAR_T 1
13328 EOF
13329
13330 fi
13331
13332
13333 ac_ext=C
13334 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13335 ac_cpp='$CXXCPP $CPPFLAGS'
13336 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13337 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13338 cross_compiling=$ac_cv_prog_cxx_cross
13339
13340 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
13341 echo "configure:13342: checking if size_t is unsigned int" >&5
13342 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
13343 echo $ac_n "(cached) $ac_c" 1>&6
13344 else
13345 cat > conftest.$ac_ext <<EOF
13346 #line 13347 "configure"
13347 #include "confdefs.h"
13348 #include <stddef.h>
13349 int main() {
13350
13351 return 0; }
13352
13353 struct Foo { void foo(size_t); void foo(unsigned int); };
13354
13355 int bar() {
13356
13357 ; return 0; }
13358 EOF
13359 if { (eval echo configure:13360: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13360 rm -rf conftest*
13361 wx_cv_size_t_is_uint=no
13362 else
13363 echo "configure: failed program was:" >&5
13364 cat conftest.$ac_ext >&5
13365 rm -rf conftest*
13366 wx_cv_size_t_is_uint=yes
13367
13368 fi
13369 rm -f conftest*
13370
13371 fi
13372
13373 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
13374
13375 if test "$wx_cv_size_t_is_uint" = "yes"; then
13376 cat >> confdefs.h <<\EOF
13377 #define wxSIZE_T_IS_UINT 1
13378 EOF
13379
13380 else
13381 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
13382 echo "configure:13383: checking if size_t is unsigned long" >&5
13383 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
13384 echo $ac_n "(cached) $ac_c" 1>&6
13385 else
13386 cat > conftest.$ac_ext <<EOF
13387 #line 13388 "configure"
13388 #include "confdefs.h"
13389 #include <stddef.h>
13390 int main() {
13391
13392 return 0; }
13393
13394 struct Foo { void foo(size_t); void foo(unsigned long); };
13395
13396 int bar() {
13397
13398 ; return 0; }
13399 EOF
13400 if { (eval echo configure:13401: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13401 rm -rf conftest*
13402 wx_cv_size_t_is_ulong=no
13403 else
13404 echo "configure: failed program was:" >&5
13405 cat conftest.$ac_ext >&5
13406 rm -rf conftest*
13407 wx_cv_size_t_is_ulong=yes
13408
13409 fi
13410 rm -f conftest*
13411
13412 fi
13413
13414 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
13415
13416 if test "$wx_cv_size_t_is_ulong" = "yes"; then
13417 cat >> confdefs.h <<\EOF
13418 #define wxSIZE_T_IS_ULONG 1
13419 EOF
13420
13421 fi
13422 fi
13423
13424 ac_ext=c
13425 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13426 ac_cpp='$CPP $CPPFLAGS'
13427 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13428 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13429 cross_compiling=$ac_cv_prog_cc_cross
13430
13431
13432
13433 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
13434 echo "configure:13435: checking for pw_gecos in struct passwd" >&5
13435 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
13436 echo $ac_n "(cached) $ac_c" 1>&6
13437 else
13438
13439 cat > conftest.$ac_ext <<EOF
13440 #line 13441 "configure"
13441 #include "confdefs.h"
13442 #include <pwd.h>
13443 int main() {
13444
13445 char *p;
13446 struct passwd *pw;
13447 p = pw->pw_gecos;
13448
13449 ; return 0; }
13450 EOF
13451 if { (eval echo configure:13452: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13452 rm -rf conftest*
13453
13454 wx_cv_struct_pw_gecos=yes
13455
13456 else
13457 echo "configure: failed program was:" >&5
13458 cat conftest.$ac_ext >&5
13459 rm -rf conftest*
13460
13461 wx_cv_struct_pw_gecos=no
13462
13463
13464 fi
13465 rm -f conftest*
13466
13467
13468 fi
13469
13470 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
13471
13472 if test "$wx_cv_struct_pw_gecos" = "yes"; then
13473 cat >> confdefs.h <<\EOF
13474 #define HAVE_PW_GECOS 1
13475 EOF
13476
13477 fi
13478
13479
13480 echo $ac_n "checking for working const""... $ac_c" 1>&6
13481 echo "configure:13482: checking for working const" >&5
13482 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
13483 echo $ac_n "(cached) $ac_c" 1>&6
13484 else
13485 cat > conftest.$ac_ext <<EOF
13486 #line 13487 "configure"
13487 #include "confdefs.h"
13488
13489 int main() {
13490
13491 /* Ultrix mips cc rejects this. */
13492 typedef int charset[2]; const charset x;
13493 /* SunOS 4.1.1 cc rejects this. */
13494 char const *const *ccp;
13495 char **p;
13496 /* NEC SVR4.0.2 mips cc rejects this. */
13497 struct point {int x, y;};
13498 static struct point const zero = {0,0};
13499 /* AIX XL C 1.02.0.0 rejects this.
13500 It does not let you subtract one const X* pointer from another in an arm
13501 of an if-expression whose if-part is not a constant expression */
13502 const char *g = "string";
13503 ccp = &g + (g ? g-g : 0);
13504 /* HPUX 7.0 cc rejects these. */
13505 ++ccp;
13506 p = (char**) ccp;
13507 ccp = (char const *const *) p;
13508 { /* SCO 3.2v4 cc rejects this. */
13509 char *t;
13510 char const *s = 0 ? (char *) 0 : (char const *) 0;
13511
13512 *t++ = 0;
13513 }
13514 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13515 int x[] = {25, 17};
13516 const int *foo = &x[0];
13517 ++foo;
13518 }
13519 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13520 typedef const int *iptr;
13521 iptr p = 0;
13522 ++p;
13523 }
13524 { /* AIX XL C 1.02.0.0 rejects this saying
13525 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13526 struct s { int j; const int *ap[3]; };
13527 struct s *b; b->j = 5;
13528 }
13529 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13530 const int foo = 10;
13531 }
13532
13533 ; return 0; }
13534 EOF
13535 if { (eval echo configure:13536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13536 rm -rf conftest*
13537 ac_cv_c_const=yes
13538 else
13539 echo "configure: failed program was:" >&5
13540 cat conftest.$ac_ext >&5
13541 rm -rf conftest*
13542 ac_cv_c_const=no
13543 fi
13544 rm -f conftest*
13545 fi
13546
13547 echo "$ac_t""$ac_cv_c_const" 1>&6
13548 if test $ac_cv_c_const = no; then
13549 cat >> confdefs.h <<\EOF
13550 #define const
13551 EOF
13552
13553 fi
13554
13555 echo $ac_n "checking for inline""... $ac_c" 1>&6
13556 echo "configure:13557: checking for inline" >&5
13557 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
13558 echo $ac_n "(cached) $ac_c" 1>&6
13559 else
13560 ac_cv_c_inline=no
13561 for ac_kw in inline __inline__ __inline; do
13562 cat > conftest.$ac_ext <<EOF
13563 #line 13564 "configure"
13564 #include "confdefs.h"
13565
13566 int main() {
13567 } $ac_kw foo() {
13568 ; return 0; }
13569 EOF
13570 if { (eval echo configure:13571: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13571 rm -rf conftest*
13572 ac_cv_c_inline=$ac_kw; break
13573 else
13574 echo "configure: failed program was:" >&5
13575 cat conftest.$ac_ext >&5
13576 fi
13577 rm -f conftest*
13578 done
13579
13580 fi
13581
13582 echo "$ac_t""$ac_cv_c_inline" 1>&6
13583 case "$ac_cv_c_inline" in
13584 inline | yes) ;;
13585 no) cat >> confdefs.h <<\EOF
13586 #define inline
13587 EOF
13588 ;;
13589 *) cat >> confdefs.h <<EOF
13590 #define inline $ac_cv_c_inline
13591 EOF
13592 ;;
13593 esac
13594
13595
13596 echo $ac_n "checking size of char""... $ac_c" 1>&6
13597 echo "configure:13598: checking size of char" >&5
13598 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
13599 echo $ac_n "(cached) $ac_c" 1>&6
13600 else
13601 if test "$cross_compiling" = yes; then
13602 ac_cv_sizeof_char=1
13603 else
13604 cat > conftest.$ac_ext <<EOF
13605 #line 13606 "configure"
13606 #include "confdefs.h"
13607 #include <stdio.h>
13608 main()
13609 {
13610 FILE *f=fopen("conftestval", "w");
13611 if (!f) exit(1);
13612 fprintf(f, "%d\n", sizeof(char));
13613 exit(0);
13614 }
13615 EOF
13616 if { (eval echo configure:13617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13617 then
13618 ac_cv_sizeof_char=`cat conftestval`
13619 else
13620 echo "configure: failed program was:" >&5
13621 cat conftest.$ac_ext >&5
13622 rm -fr conftest*
13623 ac_cv_sizeof_char=0
13624 fi
13625 rm -fr conftest*
13626 fi
13627
13628 fi
13629 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
13630 cat >> confdefs.h <<EOF
13631 #define SIZEOF_CHAR $ac_cv_sizeof_char
13632 EOF
13633
13634
13635 echo $ac_n "checking size of short""... $ac_c" 1>&6
13636 echo "configure:13637: checking size of short" >&5
13637 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
13638 echo $ac_n "(cached) $ac_c" 1>&6
13639 else
13640 if test "$cross_compiling" = yes; then
13641 ac_cv_sizeof_short=2
13642 else
13643 cat > conftest.$ac_ext <<EOF
13644 #line 13645 "configure"
13645 #include "confdefs.h"
13646 #include <stdio.h>
13647 main()
13648 {
13649 FILE *f=fopen("conftestval", "w");
13650 if (!f) exit(1);
13651 fprintf(f, "%d\n", sizeof(short));
13652 exit(0);
13653 }
13654 EOF
13655 if { (eval echo configure:13656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13656 then
13657 ac_cv_sizeof_short=`cat conftestval`
13658 else
13659 echo "configure: failed program was:" >&5
13660 cat conftest.$ac_ext >&5
13661 rm -fr conftest*
13662 ac_cv_sizeof_short=0
13663 fi
13664 rm -fr conftest*
13665 fi
13666
13667 fi
13668 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
13669 cat >> confdefs.h <<EOF
13670 #define SIZEOF_SHORT $ac_cv_sizeof_short
13671 EOF
13672
13673
13674 echo $ac_n "checking size of int *""... $ac_c" 1>&6
13675 echo "configure:13676: checking size of int *" >&5
13676 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
13677 echo $ac_n "(cached) $ac_c" 1>&6
13678 else
13679 if test "$cross_compiling" = yes; then
13680 ac_cv_sizeof_int_p=4
13681 else
13682 cat > conftest.$ac_ext <<EOF
13683 #line 13684 "configure"
13684 #include "confdefs.h"
13685 #include <stdio.h>
13686 main()
13687 {
13688 FILE *f=fopen("conftestval", "w");
13689 if (!f) exit(1);
13690 fprintf(f, "%d\n", sizeof(int *));
13691 exit(0);
13692 }
13693 EOF
13694 if { (eval echo configure:13695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13695 then
13696 ac_cv_sizeof_int_p=`cat conftestval`
13697 else
13698 echo "configure: failed program was:" >&5
13699 cat conftest.$ac_ext >&5
13700 rm -fr conftest*
13701 ac_cv_sizeof_int_p=0
13702 fi
13703 rm -fr conftest*
13704 fi
13705
13706 fi
13707 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
13708 cat >> confdefs.h <<EOF
13709 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
13710 EOF
13711
13712
13713 echo $ac_n "checking size of int""... $ac_c" 1>&6
13714 echo "configure:13715: checking size of int" >&5
13715 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
13716 echo $ac_n "(cached) $ac_c" 1>&6
13717 else
13718 if test "$cross_compiling" = yes; then
13719 ac_cv_sizeof_int=4
13720 else
13721 cat > conftest.$ac_ext <<EOF
13722 #line 13723 "configure"
13723 #include "confdefs.h"
13724 #include <stdio.h>
13725 main()
13726 {
13727 FILE *f=fopen("conftestval", "w");
13728 if (!f) exit(1);
13729 fprintf(f, "%d\n", sizeof(int));
13730 exit(0);
13731 }
13732 EOF
13733 if { (eval echo configure:13734: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13734 then
13735 ac_cv_sizeof_int=`cat conftestval`
13736 else
13737 echo "configure: failed program was:" >&5
13738 cat conftest.$ac_ext >&5
13739 rm -fr conftest*
13740 ac_cv_sizeof_int=0
13741 fi
13742 rm -fr conftest*
13743 fi
13744
13745 fi
13746 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
13747 cat >> confdefs.h <<EOF
13748 #define SIZEOF_INT $ac_cv_sizeof_int
13749 EOF
13750
13751
13752 echo $ac_n "checking size of long""... $ac_c" 1>&6
13753 echo "configure:13754: checking size of long" >&5
13754 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
13755 echo $ac_n "(cached) $ac_c" 1>&6
13756 else
13757 if test "$cross_compiling" = yes; then
13758 ac_cv_sizeof_long=4
13759 else
13760 cat > conftest.$ac_ext <<EOF
13761 #line 13762 "configure"
13762 #include "confdefs.h"
13763 #include <stdio.h>
13764 main()
13765 {
13766 FILE *f=fopen("conftestval", "w");
13767 if (!f) exit(1);
13768 fprintf(f, "%d\n", sizeof(long));
13769 exit(0);
13770 }
13771 EOF
13772 if { (eval echo configure:13773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13773 then
13774 ac_cv_sizeof_long=`cat conftestval`
13775 else
13776 echo "configure: failed program was:" >&5
13777 cat conftest.$ac_ext >&5
13778 rm -fr conftest*
13779 ac_cv_sizeof_long=0
13780 fi
13781 rm -fr conftest*
13782 fi
13783
13784 fi
13785 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
13786 cat >> confdefs.h <<EOF
13787 #define SIZEOF_LONG $ac_cv_sizeof_long
13788 EOF
13789
13790
13791 echo $ac_n "checking size of long long""... $ac_c" 1>&6
13792 echo "configure:13793: checking size of long long" >&5
13793 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
13794 echo $ac_n "(cached) $ac_c" 1>&6
13795 else
13796 if test "$cross_compiling" = yes; then
13797 ac_cv_sizeof_long_long=0
13798 else
13799 cat > conftest.$ac_ext <<EOF
13800 #line 13801 "configure"
13801 #include "confdefs.h"
13802 #include <stdio.h>
13803 main()
13804 {
13805 FILE *f=fopen("conftestval", "w");
13806 if (!f) exit(1);
13807 fprintf(f, "%d\n", sizeof(long long));
13808 exit(0);
13809 }
13810 EOF
13811 if { (eval echo configure:13812: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13812 then
13813 ac_cv_sizeof_long_long=`cat conftestval`
13814 else
13815 echo "configure: failed program was:" >&5
13816 cat conftest.$ac_ext >&5
13817 rm -fr conftest*
13818 ac_cv_sizeof_long_long=0
13819 fi
13820 rm -fr conftest*
13821 fi
13822
13823 fi
13824 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
13825 cat >> confdefs.h <<EOF
13826 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
13827 EOF
13828
13829
13830
13831 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
13832 echo "configure:13833: checking size of wchar_t" >&5
13833 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
13834 echo $ac_n "(cached) $ac_c" 1>&6
13835 else
13836
13837 if test "$cross_compiling" = yes; then
13838 wx_cv_sizeof_wchar_t=4
13839
13840 else
13841 cat > conftest.$ac_ext <<EOF
13842 #line 13843 "configure"
13843 #include "confdefs.h"
13844
13845 #ifdef HAVE_WCHAR_H
13846 # ifdef __CYGWIN__
13847 # include <stddef.h>
13848 # endif
13849 # include <wchar.h>
13850 #endif
13851 #ifdef HAVE_STDLIB_H
13852 # include <stdlib.h>
13853 #endif
13854 #include <stdio.h>
13855 int main()
13856 {
13857 FILE *f=fopen("conftestval", "w");
13858 if (!f) exit(1);
13859 fprintf(f, "%i", sizeof(wchar_t));
13860 exit(0);
13861 }
13862
13863 EOF
13864 if { (eval echo configure:13865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13865 then
13866 wx_cv_sizeof_wchar_t=`cat conftestval`
13867 else
13868 echo "configure: failed program was:" >&5
13869 cat conftest.$ac_ext >&5
13870 rm -fr conftest*
13871 wx_cv_sizeof_wchar_t=0
13872 fi
13873 rm -fr conftest*
13874 fi
13875
13876
13877 fi
13878
13879 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
13880
13881 cat >> confdefs.h <<EOF
13882 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
13883 EOF
13884
13885
13886 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
13887 echo "configure:13888: checking whether byte ordering is bigendian" >&5
13888 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
13889 echo $ac_n "(cached) $ac_c" 1>&6
13890 else
13891 ac_cv_c_bigendian=unknown
13892 # See if sys/param.h defines the BYTE_ORDER macro.
13893 cat > conftest.$ac_ext <<EOF
13894 #line 13895 "configure"
13895 #include "confdefs.h"
13896 #include <sys/types.h>
13897 #include <sys/param.h>
13898 int main() {
13899
13900 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
13901 bogus endian macros
13902 #endif
13903 ; return 0; }
13904 EOF
13905 if { (eval echo configure:13906: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13906 rm -rf conftest*
13907 # It does; now see whether it defined to BIG_ENDIAN or not.
13908 cat > conftest.$ac_ext <<EOF
13909 #line 13910 "configure"
13910 #include "confdefs.h"
13911 #include <sys/types.h>
13912 #include <sys/param.h>
13913 int main() {
13914
13915 #if BYTE_ORDER != BIG_ENDIAN
13916 not big endian
13917 #endif
13918 ; return 0; }
13919 EOF
13920 if { (eval echo configure:13921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13921 rm -rf conftest*
13922 ac_cv_c_bigendian=yes
13923 else
13924 echo "configure: failed program was:" >&5
13925 cat conftest.$ac_ext >&5
13926 rm -rf conftest*
13927 ac_cv_c_bigendian=no
13928 fi
13929 rm -f conftest*
13930 else
13931 echo "configure: failed program was:" >&5
13932 cat conftest.$ac_ext >&5
13933 fi
13934 rm -f conftest*
13935 if test $ac_cv_c_bigendian = unknown; then
13936 if test "$cross_compiling" = yes; then
13937 ac_cv_c_bigendian=unknown
13938 else
13939 cat > conftest.$ac_ext <<EOF
13940 #line 13941 "configure"
13941 #include "confdefs.h"
13942 main () {
13943 /* Are we little or big endian? From Harbison&Steele. */
13944 union
13945 {
13946 long l;
13947 char c[sizeof (long)];
13948 } u;
13949 u.l = 1;
13950 exit (u.c[sizeof (long) - 1] == 1);
13951 }
13952 EOF
13953 if { (eval echo configure:13954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
13954 then
13955 ac_cv_c_bigendian=no
13956 else
13957 echo "configure: failed program was:" >&5
13958 cat conftest.$ac_ext >&5
13959 rm -fr conftest*
13960 ac_cv_c_bigendian=yes
13961 fi
13962 rm -fr conftest*
13963 fi
13964
13965 fi
13966 fi
13967
13968 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
13969 if test $ac_cv_c_bigendian = unknown; then
13970 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
13971 fi
13972 if test $ac_cv_c_bigendian = yes; then
13973 cat >> confdefs.h <<\EOF
13974 #define WORDS_BIGENDIAN 1
13975 EOF
13976
13977 fi
13978
13979
13980 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
13981 echo "configure:13982: checking how to run the C++ preprocessor" >&5
13982 if test -z "$CXXCPP"; then
13983 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
13984 echo $ac_n "(cached) $ac_c" 1>&6
13985 else
13986 ac_ext=C
13987 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13988 ac_cpp='$CXXCPP $CPPFLAGS'
13989 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13990 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13991 cross_compiling=$ac_cv_prog_cxx_cross
13992 CXXCPP="${CXX-g++} -E"
13993 cat > conftest.$ac_ext <<EOF
13994 #line 13995 "configure"
13995 #include "confdefs.h"
13996 #include <stdlib.h>
13997 EOF
13998 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
13999 { (eval echo configure:14000: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14000 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14001 if test -z "$ac_err"; then
14002 :
14003 else
14004 echo "$ac_err" >&5
14005 echo "configure: failed program was:" >&5
14006 cat conftest.$ac_ext >&5
14007 rm -rf conftest*
14008 CXXCPP=/lib/cpp
14009 fi
14010 rm -f conftest*
14011 ac_cv_prog_CXXCPP="$CXXCPP"
14012 ac_ext=C
14013 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14014 ac_cpp='$CXXCPP $CPPFLAGS'
14015 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14016 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14017 cross_compiling=$ac_cv_prog_cxx_cross
14018 fi
14019 fi
14020 CXXCPP="$ac_cv_prog_CXXCPP"
14021 echo "$ac_t""$CXXCPP" 1>&6
14022
14023
14024 if test "$cross_compiling" = "yes"; then
14025 cat >> confdefs.h <<\EOF
14026 #define wxUSE_IOSTREAMH 1
14027 EOF
14028
14029 else
14030
14031 ac_ext=C
14032 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14033 ac_cpp='$CXXCPP $CPPFLAGS'
14034 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14035 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14036 cross_compiling=$ac_cv_prog_cxx_cross
14037
14038
14039 for ac_hdr in iostream
14040 do
14041 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14042 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14043 echo "configure:14044: checking for $ac_hdr" >&5
14044 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14045 echo $ac_n "(cached) $ac_c" 1>&6
14046 else
14047 cat > conftest.$ac_ext <<EOF
14048 #line 14049 "configure"
14049 #include "confdefs.h"
14050 #include <$ac_hdr>
14051 EOF
14052 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14053 { (eval echo configure:14054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14054 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14055 if test -z "$ac_err"; then
14056 rm -rf conftest*
14057 eval "ac_cv_header_$ac_safe=yes"
14058 else
14059 echo "$ac_err" >&5
14060 echo "configure: failed program was:" >&5
14061 cat conftest.$ac_ext >&5
14062 rm -rf conftest*
14063 eval "ac_cv_header_$ac_safe=no"
14064 fi
14065 rm -f conftest*
14066 fi
14067 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14068 echo "$ac_t""yes" 1>&6
14069 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14070 cat >> confdefs.h <<EOF
14071 #define $ac_tr_hdr 1
14072 EOF
14073
14074 else
14075 echo "$ac_t""no" 1>&6
14076 fi
14077 done
14078
14079
14080 if test "$ac_cv_header_iostream" = "yes" ; then
14081 :
14082 else
14083 cat >> confdefs.h <<\EOF
14084 #define wxUSE_IOSTREAMH 1
14085 EOF
14086
14087 fi
14088
14089 ac_ext=c
14090 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14091 ac_cpp='$CPP $CPPFLAGS'
14092 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14093 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14094 cross_compiling=$ac_cv_prog_cc_cross
14095
14096 fi
14097
14098
14099
14100 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
14101 echo "configure:14102: checking if C++ compiler supports bool" >&5
14102 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
14103 echo $ac_n "(cached) $ac_c" 1>&6
14104 else
14105
14106
14107 ac_ext=C
14108 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14109 ac_cpp='$CXXCPP $CPPFLAGS'
14110 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14111 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14112 cross_compiling=$ac_cv_prog_cxx_cross
14113
14114
14115 cat > conftest.$ac_ext <<EOF
14116 #line 14117 "configure"
14117 #include "confdefs.h"
14118
14119
14120 int main() {
14121
14122 bool b = true;
14123
14124 return 0;
14125
14126 ; return 0; }
14127 EOF
14128 if { (eval echo configure:14129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14129 rm -rf conftest*
14130
14131 wx_cv_cpp_bool=yes
14132
14133 else
14134 echo "configure: failed program was:" >&5
14135 cat conftest.$ac_ext >&5
14136 rm -rf conftest*
14137
14138 wx_cv_cpp_bool=no
14139
14140
14141 fi
14142 rm -f conftest*
14143
14144 ac_ext=c
14145 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14146 ac_cpp='$CPP $CPPFLAGS'
14147 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14148 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14149 cross_compiling=$ac_cv_prog_cc_cross
14150
14151
14152 fi
14153
14154 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
14155
14156 if test "$wx_cv_cpp_bool" = "yes"; then
14157 cat >> confdefs.h <<\EOF
14158 #define HAVE_BOOL 1
14159 EOF
14160
14161 fi
14162
14163
14164
14165 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
14166 echo "configure:14167: checking for wcslen in -lc" >&5
14167 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
14168 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14169 echo $ac_n "(cached) $ac_c" 1>&6
14170 else
14171 ac_save_LIBS="$LIBS"
14172 LIBS="-lc $LIBS"
14173 cat > conftest.$ac_ext <<EOF
14174 #line 14175 "configure"
14175 #include "confdefs.h"
14176 /* Override any gcc2 internal prototype to avoid an error. */
14177 /* We use char because int might match the return type of a gcc2
14178 builtin and then its argument prototype would still apply. */
14179 char wcslen();
14180
14181 int main() {
14182 wcslen()
14183 ; return 0; }
14184 EOF
14185 if { (eval echo configure:14186: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14186 rm -rf conftest*
14187 eval "ac_cv_lib_$ac_lib_var=yes"
14188 else
14189 echo "configure: failed program was:" >&5
14190 cat conftest.$ac_ext >&5
14191 rm -rf conftest*
14192 eval "ac_cv_lib_$ac_lib_var=no"
14193 fi
14194 rm -f conftest*
14195 LIBS="$ac_save_LIBS"
14196
14197 fi
14198 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14199 echo "$ac_t""yes" 1>&6
14200
14201 cat >> confdefs.h <<\EOF
14202 #define HAVE_WCSLEN 1
14203 EOF
14204
14205 WCHAR_LINK=
14206
14207 else
14208 echo "$ac_t""no" 1>&6
14209
14210 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
14211 echo "configure:14212: checking for wcslen in -lw" >&5
14212 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
14213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14214 echo $ac_n "(cached) $ac_c" 1>&6
14215 else
14216 ac_save_LIBS="$LIBS"
14217 LIBS="-lw $LIBS"
14218 cat > conftest.$ac_ext <<EOF
14219 #line 14220 "configure"
14220 #include "confdefs.h"
14221 /* Override any gcc2 internal prototype to avoid an error. */
14222 /* We use char because int might match the return type of a gcc2
14223 builtin and then its argument prototype would still apply. */
14224 char wcslen();
14225
14226 int main() {
14227 wcslen()
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_lib_$ac_lib_var=yes"
14233 else
14234 echo "configure: failed program was:" >&5
14235 cat conftest.$ac_ext >&5
14236 rm -rf conftest*
14237 eval "ac_cv_lib_$ac_lib_var=no"
14238 fi
14239 rm -f conftest*
14240 LIBS="$ac_save_LIBS"
14241
14242 fi
14243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14244 echo "$ac_t""yes" 1>&6
14245
14246 cat >> confdefs.h <<\EOF
14247 #define HAVE_WCSLEN 1
14248 EOF
14249
14250 WCHAR_LINK=" -lw"
14251
14252 else
14253 echo "$ac_t""no" 1>&6
14254
14255 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
14256 echo "configure:14257: checking for wcslen in -lmsvcrt" >&5
14257 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
14258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14259 echo $ac_n "(cached) $ac_c" 1>&6
14260 else
14261 ac_save_LIBS="$LIBS"
14262 LIBS="-lmsvcrt $LIBS"
14263 cat > conftest.$ac_ext <<EOF
14264 #line 14265 "configure"
14265 #include "confdefs.h"
14266 /* Override any gcc2 internal prototype to avoid an error. */
14267 /* We use char because int might match the return type of a gcc2
14268 builtin and then its argument prototype would still apply. */
14269 char wcslen();
14270
14271 int main() {
14272 wcslen()
14273 ; return 0; }
14274 EOF
14275 if { (eval echo configure:14276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14276 rm -rf conftest*
14277 eval "ac_cv_lib_$ac_lib_var=yes"
14278 else
14279 echo "configure: failed program was:" >&5
14280 cat conftest.$ac_ext >&5
14281 rm -rf conftest*
14282 eval "ac_cv_lib_$ac_lib_var=no"
14283 fi
14284 rm -f conftest*
14285 LIBS="$ac_save_LIBS"
14286
14287 fi
14288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14289 echo "$ac_t""yes" 1>&6
14290
14291 cat >> confdefs.h <<\EOF
14292 #define HAVE_WCSLEN 1
14293 EOF
14294
14295 WCHAR_LINK=
14296
14297 else
14298 echo "$ac_t""no" 1>&6
14299 fi
14300
14301
14302 fi
14303
14304
14305 fi
14306
14307
14308 for ac_func in wcsrtombs
14309 do
14310 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14311 echo "configure:14312: checking for $ac_func" >&5
14312 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14313 echo $ac_n "(cached) $ac_c" 1>&6
14314 else
14315 cat > conftest.$ac_ext <<EOF
14316 #line 14317 "configure"
14317 #include "confdefs.h"
14318 /* System header to define __stub macros and hopefully few prototypes,
14319 which can conflict with char $ac_func(); below. */
14320 #include <assert.h>
14321 /* Override any gcc2 internal prototype to avoid an error. */
14322 /* We use char because int might match the return type of a gcc2
14323 builtin and then its argument prototype would still apply. */
14324 char $ac_func();
14325
14326 int main() {
14327
14328 /* The GNU C library defines this for functions which it implements
14329 to always fail with ENOSYS. Some functions are actually named
14330 something starting with __ and the normal name is an alias. */
14331 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14332 choke me
14333 #else
14334 $ac_func();
14335 #endif
14336
14337 ; return 0; }
14338 EOF
14339 if { (eval echo configure:14340: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14340 rm -rf conftest*
14341 eval "ac_cv_func_$ac_func=yes"
14342 else
14343 echo "configure: failed program was:" >&5
14344 cat conftest.$ac_ext >&5
14345 rm -rf conftest*
14346 eval "ac_cv_func_$ac_func=no"
14347 fi
14348 rm -f conftest*
14349 fi
14350
14351 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14352 echo "$ac_t""yes" 1>&6
14353 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14354 cat >> confdefs.h <<EOF
14355 #define $ac_tr_func 1
14356 EOF
14357
14358 else
14359 echo "$ac_t""no" 1>&6
14360 fi
14361 done
14362
14363
14364 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
14365 echo "configure:14366: checking for vprintf" >&5
14366 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
14367 echo $ac_n "(cached) $ac_c" 1>&6
14368 else
14369 cat > conftest.$ac_ext <<EOF
14370 #line 14371 "configure"
14371 #include "confdefs.h"
14372 /* System header to define __stub macros and hopefully few prototypes,
14373 which can conflict with char vprintf(); below. */
14374 #include <assert.h>
14375 /* Override any gcc2 internal prototype to avoid an error. */
14376 /* We use char because int might match the return type of a gcc2
14377 builtin and then its argument prototype would still apply. */
14378 char vprintf();
14379
14380 int main() {
14381
14382 /* The GNU C library defines this for functions which it implements
14383 to always fail with ENOSYS. Some functions are actually named
14384 something starting with __ and the normal name is an alias. */
14385 #if defined (__stub_vprintf) || defined (__stub___vprintf)
14386 choke me
14387 #else
14388 vprintf();
14389 #endif
14390
14391 ; return 0; }
14392 EOF
14393 if { (eval echo configure:14394: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14394 rm -rf conftest*
14395 eval "ac_cv_func_vprintf=yes"
14396 else
14397 echo "configure: failed program was:" >&5
14398 cat conftest.$ac_ext >&5
14399 rm -rf conftest*
14400 eval "ac_cv_func_vprintf=no"
14401 fi
14402 rm -f conftest*
14403 fi
14404
14405 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
14406 echo "$ac_t""yes" 1>&6
14407 cat >> confdefs.h <<\EOF
14408 #define HAVE_VPRINTF 1
14409 EOF
14410
14411 else
14412 echo "$ac_t""no" 1>&6
14413 fi
14414
14415 if test "$ac_cv_func_vprintf" != yes; then
14416 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
14417 echo "configure:14418: checking for _doprnt" >&5
14418 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
14419 echo $ac_n "(cached) $ac_c" 1>&6
14420 else
14421 cat > conftest.$ac_ext <<EOF
14422 #line 14423 "configure"
14423 #include "confdefs.h"
14424 /* System header to define __stub macros and hopefully few prototypes,
14425 which can conflict with char _doprnt(); below. */
14426 #include <assert.h>
14427 /* Override any gcc2 internal prototype to avoid an error. */
14428 /* We use char because int might match the return type of a gcc2
14429 builtin and then its argument prototype would still apply. */
14430 char _doprnt();
14431
14432 int main() {
14433
14434 /* The GNU C library defines this for functions which it implements
14435 to always fail with ENOSYS. Some functions are actually named
14436 something starting with __ and the normal name is an alias. */
14437 #if defined (__stub__doprnt) || defined (__stub____doprnt)
14438 choke me
14439 #else
14440 _doprnt();
14441 #endif
14442
14443 ; return 0; }
14444 EOF
14445 if { (eval echo configure:14446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14446 rm -rf conftest*
14447 eval "ac_cv_func__doprnt=yes"
14448 else
14449 echo "configure: failed program was:" >&5
14450 cat conftest.$ac_ext >&5
14451 rm -rf conftest*
14452 eval "ac_cv_func__doprnt=no"
14453 fi
14454 rm -f conftest*
14455 fi
14456
14457 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
14458 echo "$ac_t""yes" 1>&6
14459 cat >> confdefs.h <<\EOF
14460 #define HAVE_DOPRNT 1
14461 EOF
14462
14463 else
14464 echo "$ac_t""no" 1>&6
14465 fi
14466
14467 fi
14468
14469
14470
14471
14472
14473
14474 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
14475 echo "configure:14476: checking for vsnprintf" >&5
14476 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
14477 echo $ac_n "(cached) $ac_c" 1>&6
14478 else
14479
14480 cat > conftest.$ac_ext <<EOF
14481 #line 14482 "configure"
14482 #include "confdefs.h"
14483
14484 #include <stdio.h>
14485 #include <stdarg.h>
14486
14487 int main() {
14488
14489 int wx_test_vsnprintf(const char *, ...);
14490
14491 wx_test_vsnprintf("%s");
14492 return 0;
14493 }
14494
14495 int wx_test_vsnprintf(const char *fmt, ...)
14496 {
14497 char *s;
14498
14499 va_list argp;
14500 va_start(argp, fmt);
14501 vsnprintf(s, 42, fmt, argp);
14502 va_end(argp);
14503
14504 ; return 0; }
14505 EOF
14506 if { (eval echo configure:14507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14507 rm -rf conftest*
14508
14509 wx_cv_func_vsnprintf=yes
14510
14511 else
14512 echo "configure: failed program was:" >&5
14513 cat conftest.$ac_ext >&5
14514 rm -rf conftest*
14515
14516 cat > conftest.$ac_ext <<EOF
14517 #line 14518 "configure"
14518 #include "confdefs.h"
14519
14520 #include <stdio.h>
14521 #include <stdarg.h>
14522
14523 int main() {
14524
14525 int wx_test_vsnprintf(const char *, ...);
14526
14527 wx_test_vsnprintf("%s");
14528 return 0;
14529 }
14530
14531 int wx_test_vsnprintf(const char *fmt, ...)
14532 {
14533 char *s;
14534
14535 va_list argp;
14536 va_start(argp, fmt);
14537 _vsnprintf(s, 42, fmt, argp);
14538 va_end(argp);
14539
14540 ; return 0; }
14541 EOF
14542 if { (eval echo configure:14543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14543 rm -rf conftest*
14544
14545 wx_cv_func_vsnprintf=yes
14546
14547 else
14548 echo "configure: failed program was:" >&5
14549 cat conftest.$ac_ext >&5
14550 rm -rf conftest*
14551
14552 wx_cv_func_vsnprintf=no
14553
14554 fi
14555 rm -f conftest*
14556
14557 fi
14558 rm -f conftest*
14559
14560 fi
14561
14562 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
14563
14564 if test "$wx_cv_func_vsnprintf" = yes; then
14565 cat >> confdefs.h <<\EOF
14566 #define HAVE_VSNPRINTF 1
14567 EOF
14568
14569 else
14570 echo "configure: warning: unsafe function vsprintf will be used instead of vsnprintf" 1>&2
14571 fi
14572
14573 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
14574 echo "configure:14575: checking for vsscanf" >&5
14575 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
14576 echo $ac_n "(cached) $ac_c" 1>&6
14577 else
14578
14579 cat > conftest.$ac_ext <<EOF
14580 #line 14581 "configure"
14581 #include "confdefs.h"
14582
14583 #include <stdio.h>
14584 #include <stdarg.h>
14585
14586 int main() {
14587
14588 int wx_test_vsscanf(const char *, ...);
14589
14590 wx_test_vsscanf("%d");
14591 return 0;
14592 }
14593
14594 int wx_test_vsscanf(const char *fmt, ...)
14595 {
14596 va_list argp;
14597 va_start(argp, fmt);
14598 vsscanf("42", fmt, argp);
14599 va_end(argp);
14600
14601 ; return 0; }
14602 EOF
14603 if { (eval echo configure:14604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14604 rm -rf conftest*
14605
14606 wx_cv_func_vsscanf=yes
14607
14608 else
14609 echo "configure: failed program was:" >&5
14610 cat conftest.$ac_ext >&5
14611 rm -rf conftest*
14612
14613 wx_cv_func_vsscanf=no
14614
14615 fi
14616 rm -f conftest*
14617
14618 fi
14619
14620 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
14621
14622 if test "$wx_cv_func_vsscanf" = yes; then
14623 cat >> confdefs.h <<\EOF
14624 #define HAVE_VSSCANF 1
14625 EOF
14626
14627 fi
14628
14629 if test "$TOOLKIT" != "MSW"; then
14630
14631
14632
14633 ac_ext=C
14634 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14635 ac_cpp='$CXXCPP $CPPFLAGS'
14636 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14637 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14638 cross_compiling=$ac_cv_prog_cxx_cross
14639
14640 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
14641 echo "configure:14642: checking if iconv() takes char**" >&5
14642 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
14643 echo $ac_n "(cached) $ac_c" 1>&6
14644 else
14645
14646 cat > conftest.$ac_ext <<EOF
14647 #line 14648 "configure"
14648 #include "confdefs.h"
14649 #include <iconv.h>
14650 int main() {
14651
14652 char **inbuf, **outbuf;
14653 iconv_t cd;
14654 size_t insz, outsz;
14655 iconv(cd, inbuf, &insz, outbuf, &outsz);
14656
14657 ; return 0; }
14658 EOF
14659 if { (eval echo configure:14660: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14660 rm -rf conftest*
14661 wx_cv_iconv_takes_char=yes
14662 else
14663 echo "configure: failed program was:" >&5
14664 cat conftest.$ac_ext >&5
14665 rm -rf conftest*
14666 wx_cv_iconv_takes_char=no
14667 fi
14668 rm -f conftest*
14669
14670 fi
14671
14672 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
14673 ac_ext=c
14674 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14675 ac_cpp='$CPP $CPPFLAGS'
14676 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14677 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14678 cross_compiling=$ac_cv_prog_cc_cross
14679
14680 if test "$wx_cv_iconv_takes_char" = yes ; then
14681 cat >> confdefs.h <<\EOF
14682 #define WX_ICONV_TAKES_CHAR 1
14683 EOF
14684
14685 fi
14686
14687
14688 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
14689 for ac_func in sigaction
14690 do
14691 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14692 echo "configure:14693: checking for $ac_func" >&5
14693 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14694 echo $ac_n "(cached) $ac_c" 1>&6
14695 else
14696 cat > conftest.$ac_ext <<EOF
14697 #line 14698 "configure"
14698 #include "confdefs.h"
14699 /* System header to define __stub macros and hopefully few prototypes,
14700 which can conflict with char $ac_func(); below. */
14701 #include <assert.h>
14702 /* Override any gcc2 internal prototype to avoid an error. */
14703 /* We use char because int might match the return type of a gcc2
14704 builtin and then its argument prototype would still apply. */
14705 char $ac_func();
14706
14707 int main() {
14708
14709 /* The GNU C library defines this for functions which it implements
14710 to always fail with ENOSYS. Some functions are actually named
14711 something starting with __ and the normal name is an alias. */
14712 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14713 choke me
14714 #else
14715 $ac_func();
14716 #endif
14717
14718 ; return 0; }
14719 EOF
14720 if { (eval echo configure:14721: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14721 rm -rf conftest*
14722 eval "ac_cv_func_$ac_func=yes"
14723 else
14724 echo "configure: failed program was:" >&5
14725 cat conftest.$ac_ext >&5
14726 rm -rf conftest*
14727 eval "ac_cv_func_$ac_func=no"
14728 fi
14729 rm -f conftest*
14730 fi
14731
14732 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14733 echo "$ac_t""yes" 1>&6
14734 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14735 cat >> confdefs.h <<EOF
14736 #define $ac_tr_func 1
14737 EOF
14738
14739 else
14740 echo "$ac_t""no" 1>&6
14741 fi
14742 done
14743
14744
14745 if test "$ac_cv_func_sigaction" = "no"; then
14746 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
14747 wxUSE_ON_FATAL_EXCEPTION=no
14748 fi
14749
14750 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
14751
14752 ac_ext=C
14753 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14754 ac_cpp='$CXXCPP $CPPFLAGS'
14755 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14756 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14757 cross_compiling=$ac_cv_prog_cxx_cross
14758
14759
14760 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
14761 echo "configure:14762: checking for sa_handler type" >&5
14762 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
14763 echo $ac_n "(cached) $ac_c" 1>&6
14764 else
14765
14766 cat > conftest.$ac_ext <<EOF
14767 #line 14768 "configure"
14768 #include "confdefs.h"
14769 #include <signal.h>
14770 int main() {
14771
14772 extern void testSigHandler(int);
14773
14774 struct sigaction sa;
14775 sa.sa_handler = testSigHandler;
14776
14777 ; return 0; }
14778 EOF
14779 if { (eval echo configure:14780: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14780 rm -rf conftest*
14781
14782 wx_cv_type_sa_handler=int
14783
14784 else
14785 echo "configure: failed program was:" >&5
14786 cat conftest.$ac_ext >&5
14787 rm -rf conftest*
14788
14789 wx_cv_type_sa_handler=void
14790
14791 fi
14792 rm -f conftest*
14793
14794 fi
14795
14796 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
14797
14798 ac_ext=c
14799 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
14800 ac_cpp='$CPP $CPPFLAGS'
14801 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
14802 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
14803 cross_compiling=$ac_cv_prog_cc_cross
14804
14805
14806 cat >> confdefs.h <<EOF
14807 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
14808 EOF
14809
14810 fi
14811 fi
14812
14813 for ac_func in vfork
14814 do
14815 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14816 echo "configure:14817: checking for $ac_func" >&5
14817 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14818 echo $ac_n "(cached) $ac_c" 1>&6
14819 else
14820 cat > conftest.$ac_ext <<EOF
14821 #line 14822 "configure"
14822 #include "confdefs.h"
14823 /* System header to define __stub macros and hopefully few prototypes,
14824 which can conflict with char $ac_func(); below. */
14825 #include <assert.h>
14826 /* Override any gcc2 internal prototype to avoid an error. */
14827 /* We use char because int might match the return type of a gcc2
14828 builtin and then its argument prototype would still apply. */
14829 char $ac_func();
14830
14831 int main() {
14832
14833 /* The GNU C library defines this for functions which it implements
14834 to always fail with ENOSYS. Some functions are actually named
14835 something starting with __ and the normal name is an alias. */
14836 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14837 choke me
14838 #else
14839 $ac_func();
14840 #endif
14841
14842 ; return 0; }
14843 EOF
14844 if { (eval echo configure:14845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14845 rm -rf conftest*
14846 eval "ac_cv_func_$ac_func=yes"
14847 else
14848 echo "configure: failed program was:" >&5
14849 cat conftest.$ac_ext >&5
14850 rm -rf conftest*
14851 eval "ac_cv_func_$ac_func=no"
14852 fi
14853 rm -f conftest*
14854 fi
14855
14856 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14857 echo "$ac_t""yes" 1>&6
14858 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14859 cat >> confdefs.h <<EOF
14860 #define $ac_tr_func 1
14861 EOF
14862
14863 else
14864 echo "$ac_t""no" 1>&6
14865 fi
14866 done
14867
14868
14869 for ac_func in mkstemp mktemp
14870 do
14871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14872 echo "configure:14873: checking for $ac_func" >&5
14873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14874 echo $ac_n "(cached) $ac_c" 1>&6
14875 else
14876 cat > conftest.$ac_ext <<EOF
14877 #line 14878 "configure"
14878 #include "confdefs.h"
14879 /* System header to define __stub macros and hopefully few prototypes,
14880 which can conflict with char $ac_func(); below. */
14881 #include <assert.h>
14882 /* Override any gcc2 internal prototype to avoid an error. */
14883 /* We use char because int might match the return type of a gcc2
14884 builtin and then its argument prototype would still apply. */
14885 char $ac_func();
14886
14887 int main() {
14888
14889 /* The GNU C library defines this for functions which it implements
14890 to always fail with ENOSYS. Some functions are actually named
14891 something starting with __ and the normal name is an alias. */
14892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14893 choke me
14894 #else
14895 $ac_func();
14896 #endif
14897
14898 ; return 0; }
14899 EOF
14900 if { (eval echo configure:14901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14901 rm -rf conftest*
14902 eval "ac_cv_func_$ac_func=yes"
14903 else
14904 echo "configure: failed program was:" >&5
14905 cat conftest.$ac_ext >&5
14906 rm -rf conftest*
14907 eval "ac_cv_func_$ac_func=no"
14908 fi
14909 rm -f conftest*
14910 fi
14911
14912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14913 echo "$ac_t""yes" 1>&6
14914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14915 cat >> confdefs.h <<EOF
14916 #define $ac_tr_func 1
14917 EOF
14918 break
14919 else
14920 echo "$ac_t""no" 1>&6
14921 fi
14922 done
14923
14924
14925 echo $ac_n "checking for statfs""... $ac_c" 1>&6
14926 echo "configure:14927: checking for statfs" >&5
14927 if eval "test \"`echo '$''{'wx_cv_func_statfs'+set}'`\" = set"; then
14928 echo $ac_n "(cached) $ac_c" 1>&6
14929 else
14930 cat > conftest.$ac_ext <<EOF
14931 #line 14932 "configure"
14932 #include "confdefs.h"
14933
14934 #if defined(__BSD__)
14935 #include <sys/param.h>
14936 #include <sys/mount.h>
14937 #else
14938 #include <sys/vfs.h>
14939 #endif
14940
14941 int main() {
14942
14943 long l;
14944 struct statfs fs;
14945 statfs("/", &fs);
14946 l = fs.f_bsize;
14947 l += fs.f_blocks;
14948 l += fs.f_bavail;
14949
14950 ; return 0; }
14951 EOF
14952 if { (eval echo configure:14953: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14953 rm -rf conftest*
14954
14955 wx_cv_func_statfs=yes
14956
14957 else
14958 echo "configure: failed program was:" >&5
14959 cat conftest.$ac_ext >&5
14960 rm -rf conftest*
14961
14962 wx_cv_func_statfs=no
14963
14964
14965 fi
14966 rm -f conftest*
14967
14968 fi
14969
14970 echo "$ac_t""$wx_cv_func_statfs" 1>&6
14971
14972 if test "$wx_cv_func_statfs" = "yes"; then
14973 cat >> confdefs.h <<\EOF
14974 #define HAVE_STATFS 1
14975 EOF
14976
14977 else
14978 echo $ac_n "checking for statvfs""... $ac_c" 1>&6
14979 echo "configure:14980: checking for statvfs" >&5
14980 if eval "test \"`echo '$''{'wx_cv_func_statvfs'+set}'`\" = set"; then
14981 echo $ac_n "(cached) $ac_c" 1>&6
14982 else
14983 cat > conftest.$ac_ext <<EOF
14984 #line 14985 "configure"
14985 #include "confdefs.h"
14986
14987 #include <sys/statvfs.h>
14988
14989 int main() {
14990
14991 long l;
14992 struct statvfs fs;
14993 statvfs("/", &fs);
14994 l = fs.f_bsize;
14995 l += fs.f_blocks;
14996 l += fs.f_bavail;
14997
14998 ; return 0; }
14999 EOF
15000 if { (eval echo configure:15001: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15001 rm -rf conftest*
15002
15003 wx_cv_func_statvfs=yes
15004
15005 else
15006 echo "configure: failed program was:" >&5
15007 cat conftest.$ac_ext >&5
15008 rm -rf conftest*
15009
15010 wx_cv_func_statvfs=no
15011
15012
15013 fi
15014 rm -f conftest*
15015
15016 fi
15017
15018 echo "$ac_t""$wx_cv_func_statvfs" 1>&6
15019
15020 if test "$wx_cv_func_statvfs" = "yes"; then
15021 cat >> confdefs.h <<\EOF
15022 #define HAVE_STATVFS 1
15023 EOF
15024
15025 else
15026 echo "configure: warning: wxGetDiskSpace() function won't work without statfs()" 1>&2
15027 fi
15028 fi
15029
15030 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15031 for ac_func in fcntl flock
15032 do
15033 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15034 echo "configure:15035: checking for $ac_func" >&5
15035 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15036 echo $ac_n "(cached) $ac_c" 1>&6
15037 else
15038 cat > conftest.$ac_ext <<EOF
15039 #line 15040 "configure"
15040 #include "confdefs.h"
15041 /* System header to define __stub macros and hopefully few prototypes,
15042 which can conflict with char $ac_func(); below. */
15043 #include <assert.h>
15044 /* Override any gcc2 internal prototype to avoid an error. */
15045 /* We use char because int might match the return type of a gcc2
15046 builtin and then its argument prototype would still apply. */
15047 char $ac_func();
15048
15049 int main() {
15050
15051 /* The GNU C library defines this for functions which it implements
15052 to always fail with ENOSYS. Some functions are actually named
15053 something starting with __ and the normal name is an alias. */
15054 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15055 choke me
15056 #else
15057 $ac_func();
15058 #endif
15059
15060 ; return 0; }
15061 EOF
15062 if { (eval echo configure:15063: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15063 rm -rf conftest*
15064 eval "ac_cv_func_$ac_func=yes"
15065 else
15066 echo "configure: failed program was:" >&5
15067 cat conftest.$ac_ext >&5
15068 rm -rf conftest*
15069 eval "ac_cv_func_$ac_func=no"
15070 fi
15071 rm -f conftest*
15072 fi
15073
15074 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15075 echo "$ac_t""yes" 1>&6
15076 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15077 cat >> confdefs.h <<EOF
15078 #define $ac_tr_func 1
15079 EOF
15080 break
15081 else
15082 echo "$ac_t""no" 1>&6
15083 fi
15084 done
15085
15086
15087 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
15088 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
15089 wxUSE_SNGLINST_CHECKER=no
15090 fi
15091 fi
15092
15093 for ac_func in timegm
15094 do
15095 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15096 echo "configure:15097: checking for $ac_func" >&5
15097 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15098 echo $ac_n "(cached) $ac_c" 1>&6
15099 else
15100 cat > conftest.$ac_ext <<EOF
15101 #line 15102 "configure"
15102 #include "confdefs.h"
15103 /* System header to define __stub macros and hopefully few prototypes,
15104 which can conflict with char $ac_func(); below. */
15105 #include <assert.h>
15106 /* Override any gcc2 internal prototype to avoid an error. */
15107 /* We use char because int might match the return type of a gcc2
15108 builtin and then its argument prototype would still apply. */
15109 char $ac_func();
15110
15111 int main() {
15112
15113 /* The GNU C library defines this for functions which it implements
15114 to always fail with ENOSYS. Some functions are actually named
15115 something starting with __ and the normal name is an alias. */
15116 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15117 choke me
15118 #else
15119 $ac_func();
15120 #endif
15121
15122 ; return 0; }
15123 EOF
15124 if { (eval echo configure:15125: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15125 rm -rf conftest*
15126 eval "ac_cv_func_$ac_func=yes"
15127 else
15128 echo "configure: failed program was:" >&5
15129 cat conftest.$ac_ext >&5
15130 rm -rf conftest*
15131 eval "ac_cv_func_$ac_func=no"
15132 fi
15133 rm -f conftest*
15134 fi
15135
15136 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15137 echo "$ac_t""yes" 1>&6
15138 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15139 cat >> confdefs.h <<EOF
15140 #define $ac_tr_func 1
15141 EOF
15142
15143 else
15144 echo "$ac_t""no" 1>&6
15145 fi
15146 done
15147
15148
15149 for ac_func in putenv setenv
15150 do
15151 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15152 echo "configure:15153: checking for $ac_func" >&5
15153 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15154 echo $ac_n "(cached) $ac_c" 1>&6
15155 else
15156 cat > conftest.$ac_ext <<EOF
15157 #line 15158 "configure"
15158 #include "confdefs.h"
15159 /* System header to define __stub macros and hopefully few prototypes,
15160 which can conflict with char $ac_func(); below. */
15161 #include <assert.h>
15162 /* Override any gcc2 internal prototype to avoid an error. */
15163 /* We use char because int might match the return type of a gcc2
15164 builtin and then its argument prototype would still apply. */
15165 char $ac_func();
15166
15167 int main() {
15168
15169 /* The GNU C library defines this for functions which it implements
15170 to always fail with ENOSYS. Some functions are actually named
15171 something starting with __ and the normal name is an alias. */
15172 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15173 choke me
15174 #else
15175 $ac_func();
15176 #endif
15177
15178 ; return 0; }
15179 EOF
15180 if { (eval echo configure:15181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15181 rm -rf conftest*
15182 eval "ac_cv_func_$ac_func=yes"
15183 else
15184 echo "configure: failed program was:" >&5
15185 cat conftest.$ac_ext >&5
15186 rm -rf conftest*
15187 eval "ac_cv_func_$ac_func=no"
15188 fi
15189 rm -f conftest*
15190 fi
15191
15192 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15193 echo "$ac_t""yes" 1>&6
15194 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15195 cat >> confdefs.h <<EOF
15196 #define $ac_tr_func 1
15197 EOF
15198 break
15199 else
15200 echo "$ac_t""no" 1>&6
15201 fi
15202 done
15203
15204
15205 HAVE_SOME_SLEEP_FUNC=0
15206 if test "$USE_BEOS" = 1; then
15207 cat >> confdefs.h <<\EOF
15208 #define HAVE_SLEEP 1
15209 EOF
15210
15211 HAVE_SOME_SLEEP_FUNC=1
15212 fi
15213
15214 if test "$USE_DARWIN" = 1; then
15215 cat >> confdefs.h <<\EOF
15216 #define HAVE_USLEEP 1
15217 EOF
15218
15219 HAVE_SOME_SLEEP_FUNC=1
15220 fi
15221
15222 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
15223 POSIX4_LINK=
15224 for ac_func in nanosleep
15225 do
15226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15227 echo "configure:15228: checking for $ac_func" >&5
15228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15229 echo $ac_n "(cached) $ac_c" 1>&6
15230 else
15231 cat > conftest.$ac_ext <<EOF
15232 #line 15233 "configure"
15233 #include "confdefs.h"
15234 /* System header to define __stub macros and hopefully few prototypes,
15235 which can conflict with char $ac_func(); below. */
15236 #include <assert.h>
15237 /* Override any gcc2 internal prototype to avoid an error. */
15238 /* We use char because int might match the return type of a gcc2
15239 builtin and then its argument prototype would still apply. */
15240 char $ac_func();
15241
15242 int main() {
15243
15244 /* The GNU C library defines this for functions which it implements
15245 to always fail with ENOSYS. Some functions are actually named
15246 something starting with __ and the normal name is an alias. */
15247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15248 choke me
15249 #else
15250 $ac_func();
15251 #endif
15252
15253 ; return 0; }
15254 EOF
15255 if { (eval echo configure:15256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15256 rm -rf conftest*
15257 eval "ac_cv_func_$ac_func=yes"
15258 else
15259 echo "configure: failed program was:" >&5
15260 cat conftest.$ac_ext >&5
15261 rm -rf conftest*
15262 eval "ac_cv_func_$ac_func=no"
15263 fi
15264 rm -f conftest*
15265 fi
15266
15267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15268 echo "$ac_t""yes" 1>&6
15269 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15270 cat >> confdefs.h <<EOF
15271 #define $ac_tr_func 1
15272 EOF
15273 cat >> confdefs.h <<\EOF
15274 #define HAVE_NANOSLEEP 1
15275 EOF
15276
15277 else
15278 echo "$ac_t""no" 1>&6
15279 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
15280 echo "configure:15281: checking for nanosleep in -lposix4" >&5
15281 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
15282 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15283 echo $ac_n "(cached) $ac_c" 1>&6
15284 else
15285 ac_save_LIBS="$LIBS"
15286 LIBS="-lposix4 $LIBS"
15287 cat > conftest.$ac_ext <<EOF
15288 #line 15289 "configure"
15289 #include "confdefs.h"
15290 /* Override any gcc2 internal prototype to avoid an error. */
15291 /* We use char because int might match the return type of a gcc2
15292 builtin and then its argument prototype would still apply. */
15293 char nanosleep();
15294
15295 int main() {
15296 nanosleep()
15297 ; return 0; }
15298 EOF
15299 if { (eval echo configure:15300: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15300 rm -rf conftest*
15301 eval "ac_cv_lib_$ac_lib_var=yes"
15302 else
15303 echo "configure: failed program was:" >&5
15304 cat conftest.$ac_ext >&5
15305 rm -rf conftest*
15306 eval "ac_cv_lib_$ac_lib_var=no"
15307 fi
15308 rm -f conftest*
15309 LIBS="$ac_save_LIBS"
15310
15311 fi
15312 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15313 echo "$ac_t""yes" 1>&6
15314
15315 cat >> confdefs.h <<\EOF
15316 #define HAVE_NANOSLEEP 1
15317 EOF
15318
15319 POSIX4_LINK=" -lposix4"
15320
15321 else
15322 echo "$ac_t""no" 1>&6
15323
15324 for ac_func in usleep
15325 do
15326 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15327 echo "configure:15328: checking for $ac_func" >&5
15328 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15329 echo $ac_n "(cached) $ac_c" 1>&6
15330 else
15331 cat > conftest.$ac_ext <<EOF
15332 #line 15333 "configure"
15333 #include "confdefs.h"
15334 /* System header to define __stub macros and hopefully few prototypes,
15335 which can conflict with char $ac_func(); below. */
15336 #include <assert.h>
15337 /* Override any gcc2 internal prototype to avoid an error. */
15338 /* We use char because int might match the return type of a gcc2
15339 builtin and then its argument prototype would still apply. */
15340 char $ac_func();
15341
15342 int main() {
15343
15344 /* The GNU C library defines this for functions which it implements
15345 to always fail with ENOSYS. Some functions are actually named
15346 something starting with __ and the normal name is an alias. */
15347 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15348 choke me
15349 #else
15350 $ac_func();
15351 #endif
15352
15353 ; return 0; }
15354 EOF
15355 if { (eval echo configure:15356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15356 rm -rf conftest*
15357 eval "ac_cv_func_$ac_func=yes"
15358 else
15359 echo "configure: failed program was:" >&5
15360 cat conftest.$ac_ext >&5
15361 rm -rf conftest*
15362 eval "ac_cv_func_$ac_func=no"
15363 fi
15364 rm -f conftest*
15365 fi
15366
15367 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15368 echo "$ac_t""yes" 1>&6
15369 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15370 cat >> confdefs.h <<EOF
15371 #define $ac_tr_func 1
15372 EOF
15373 cat >> confdefs.h <<\EOF
15374 #define HAVE_USLEEP 1
15375 EOF
15376
15377 else
15378 echo "$ac_t""no" 1>&6
15379 echo "configure: warning: wxSleep() function will not work" 1>&2
15380
15381 fi
15382 done
15383
15384
15385
15386 fi
15387
15388
15389
15390 fi
15391 done
15392
15393 fi
15394
15395 for ac_func in uname gethostname
15396 do
15397 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15398 echo "configure:15399: checking for $ac_func" >&5
15399 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15400 echo $ac_n "(cached) $ac_c" 1>&6
15401 else
15402 cat > conftest.$ac_ext <<EOF
15403 #line 15404 "configure"
15404 #include "confdefs.h"
15405 /* System header to define __stub macros and hopefully few prototypes,
15406 which can conflict with char $ac_func(); below. */
15407 #include <assert.h>
15408 /* Override any gcc2 internal prototype to avoid an error. */
15409 /* We use char because int might match the return type of a gcc2
15410 builtin and then its argument prototype would still apply. */
15411 char $ac_func();
15412
15413 int main() {
15414
15415 /* The GNU C library defines this for functions which it implements
15416 to always fail with ENOSYS. Some functions are actually named
15417 something starting with __ and the normal name is an alias. */
15418 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15419 choke me
15420 #else
15421 $ac_func();
15422 #endif
15423
15424 ; return 0; }
15425 EOF
15426 if { (eval echo configure:15427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15427 rm -rf conftest*
15428 eval "ac_cv_func_$ac_func=yes"
15429 else
15430 echo "configure: failed program was:" >&5
15431 cat conftest.$ac_ext >&5
15432 rm -rf conftest*
15433 eval "ac_cv_func_$ac_func=no"
15434 fi
15435 rm -f conftest*
15436 fi
15437
15438 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15439 echo "$ac_t""yes" 1>&6
15440 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15441 cat >> confdefs.h <<EOF
15442 #define $ac_tr_func 1
15443 EOF
15444 break
15445 else
15446 echo "$ac_t""no" 1>&6
15447 fi
15448 done
15449
15450
15451
15452 ac_ext=C
15453 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15454 ac_cpp='$CXXCPP $CPPFLAGS'
15455 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15456 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15457 cross_compiling=$ac_cv_prog_cxx_cross
15458
15459
15460 for ac_func in strtok_r
15461 do
15462 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15463 echo "configure:15464: checking for $ac_func" >&5
15464 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15465 echo $ac_n "(cached) $ac_c" 1>&6
15466 else
15467 cat > conftest.$ac_ext <<EOF
15468 #line 15469 "configure"
15469 #include "confdefs.h"
15470 /* System header to define __stub macros and hopefully few prototypes,
15471 which can conflict with char $ac_func(); below. */
15472 #include <assert.h>
15473 /* Override any gcc2 internal prototype to avoid an error. */
15474 #ifdef __cplusplus
15475 extern "C"
15476 #endif
15477 /* We use char because int might match the return type of a gcc2
15478 builtin and then its argument prototype would still apply. */
15479 char $ac_func();
15480
15481 int main() {
15482
15483 /* The GNU C library defines this for functions which it implements
15484 to always fail with ENOSYS. Some functions are actually named
15485 something starting with __ and the normal name is an alias. */
15486 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15487 choke me
15488 #else
15489 $ac_func();
15490 #endif
15491
15492 ; return 0; }
15493 EOF
15494 if { (eval echo configure:15495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15495 rm -rf conftest*
15496 eval "ac_cv_func_$ac_func=yes"
15497 else
15498 echo "configure: failed program was:" >&5
15499 cat conftest.$ac_ext >&5
15500 rm -rf conftest*
15501 eval "ac_cv_func_$ac_func=no"
15502 fi
15503 rm -f conftest*
15504 fi
15505
15506 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15507 echo "$ac_t""yes" 1>&6
15508 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15509 cat >> confdefs.h <<EOF
15510 #define $ac_tr_func 1
15511 EOF
15512
15513 else
15514 echo "$ac_t""no" 1>&6
15515 fi
15516 done
15517
15518
15519 ac_ext=c
15520 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
15521 ac_cpp='$CPP $CPPFLAGS'
15522 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
15523 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
15524 cross_compiling=$ac_cv_prog_cc_cross
15525
15526
15527 INET_LINK=
15528 for ac_func in inet_addr
15529 do
15530 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15531 echo "configure:15532: checking for $ac_func" >&5
15532 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15533 echo $ac_n "(cached) $ac_c" 1>&6
15534 else
15535 cat > conftest.$ac_ext <<EOF
15536 #line 15537 "configure"
15537 #include "confdefs.h"
15538 /* System header to define __stub macros and hopefully few prototypes,
15539 which can conflict with char $ac_func(); below. */
15540 #include <assert.h>
15541 /* Override any gcc2 internal prototype to avoid an error. */
15542 /* We use char because int might match the return type of a gcc2
15543 builtin and then its argument prototype would still apply. */
15544 char $ac_func();
15545
15546 int main() {
15547
15548 /* The GNU C library defines this for functions which it implements
15549 to always fail with ENOSYS. Some functions are actually named
15550 something starting with __ and the normal name is an alias. */
15551 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15552 choke me
15553 #else
15554 $ac_func();
15555 #endif
15556
15557 ; return 0; }
15558 EOF
15559 if { (eval echo configure:15560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15560 rm -rf conftest*
15561 eval "ac_cv_func_$ac_func=yes"
15562 else
15563 echo "configure: failed program was:" >&5
15564 cat conftest.$ac_ext >&5
15565 rm -rf conftest*
15566 eval "ac_cv_func_$ac_func=no"
15567 fi
15568 rm -f conftest*
15569 fi
15570
15571 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15572 echo "$ac_t""yes" 1>&6
15573 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15574 cat >> confdefs.h <<EOF
15575 #define $ac_tr_func 1
15576 EOF
15577 cat >> confdefs.h <<\EOF
15578 #define HAVE_INET_ADDR 1
15579 EOF
15580
15581 else
15582 echo "$ac_t""no" 1>&6
15583 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
15584 echo "configure:15585: checking for inet_addr in -lnsl" >&5
15585 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
15586 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15587 echo $ac_n "(cached) $ac_c" 1>&6
15588 else
15589 ac_save_LIBS="$LIBS"
15590 LIBS="-lnsl $LIBS"
15591 cat > conftest.$ac_ext <<EOF
15592 #line 15593 "configure"
15593 #include "confdefs.h"
15594 /* Override any gcc2 internal prototype to avoid an error. */
15595 /* We use char because int might match the return type of a gcc2
15596 builtin and then its argument prototype would still apply. */
15597 char inet_addr();
15598
15599 int main() {
15600 inet_addr()
15601 ; return 0; }
15602 EOF
15603 if { (eval echo configure:15604: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15604 rm -rf conftest*
15605 eval "ac_cv_lib_$ac_lib_var=yes"
15606 else
15607 echo "configure: failed program was:" >&5
15608 cat conftest.$ac_ext >&5
15609 rm -rf conftest*
15610 eval "ac_cv_lib_$ac_lib_var=no"
15611 fi
15612 rm -f conftest*
15613 LIBS="$ac_save_LIBS"
15614
15615 fi
15616 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15617 echo "$ac_t""yes" 1>&6
15618 INET_LINK="nsl"
15619 else
15620 echo "$ac_t""no" 1>&6
15621 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
15622 echo "configure:15623: checking for inet_addr in -lresolv" >&5
15623 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
15624 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15625 echo $ac_n "(cached) $ac_c" 1>&6
15626 else
15627 ac_save_LIBS="$LIBS"
15628 LIBS="-lresolv $LIBS"
15629 cat > conftest.$ac_ext <<EOF
15630 #line 15631 "configure"
15631 #include "confdefs.h"
15632 /* Override any gcc2 internal prototype to avoid an error. */
15633 /* We use char because int might match the return type of a gcc2
15634 builtin and then its argument prototype would still apply. */
15635 char inet_addr();
15636
15637 int main() {
15638 inet_addr()
15639 ; return 0; }
15640 EOF
15641 if { (eval echo configure:15642: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15642 rm -rf conftest*
15643 eval "ac_cv_lib_$ac_lib_var=yes"
15644 else
15645 echo "configure: failed program was:" >&5
15646 cat conftest.$ac_ext >&5
15647 rm -rf conftest*
15648 eval "ac_cv_lib_$ac_lib_var=no"
15649 fi
15650 rm -f conftest*
15651 LIBS="$ac_save_LIBS"
15652
15653 fi
15654 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15655 echo "$ac_t""yes" 1>&6
15656 INET_LINK="resolv"
15657
15658 else
15659 echo "$ac_t""no" 1>&6
15660 fi
15661
15662
15663 fi
15664
15665
15666
15667 fi
15668 done
15669
15670
15671 for ac_func in inet_aton
15672 do
15673 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15674 echo "configure:15675: checking for $ac_func" >&5
15675 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15676 echo $ac_n "(cached) $ac_c" 1>&6
15677 else
15678 cat > conftest.$ac_ext <<EOF
15679 #line 15680 "configure"
15680 #include "confdefs.h"
15681 /* System header to define __stub macros and hopefully few prototypes,
15682 which can conflict with char $ac_func(); below. */
15683 #include <assert.h>
15684 /* Override any gcc2 internal prototype to avoid an error. */
15685 /* We use char because int might match the return type of a gcc2
15686 builtin and then its argument prototype would still apply. */
15687 char $ac_func();
15688
15689 int main() {
15690
15691 /* The GNU C library defines this for functions which it implements
15692 to always fail with ENOSYS. Some functions are actually named
15693 something starting with __ and the normal name is an alias. */
15694 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15695 choke me
15696 #else
15697 $ac_func();
15698 #endif
15699
15700 ; return 0; }
15701 EOF
15702 if { (eval echo configure:15703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15703 rm -rf conftest*
15704 eval "ac_cv_func_$ac_func=yes"
15705 else
15706 echo "configure: failed program was:" >&5
15707 cat conftest.$ac_ext >&5
15708 rm -rf conftest*
15709 eval "ac_cv_func_$ac_func=no"
15710 fi
15711 rm -f conftest*
15712 fi
15713
15714 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15715 echo "$ac_t""yes" 1>&6
15716 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15717 cat >> confdefs.h <<EOF
15718 #define $ac_tr_func 1
15719 EOF
15720 cat >> confdefs.h <<\EOF
15721 #define HAVE_INET_ATON 1
15722 EOF
15723
15724 else
15725 echo "$ac_t""no" 1>&6
15726 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
15727 echo "configure:15728: checking for inet_aton in -l$INET_LINK" >&5
15728 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
15729 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15730 echo $ac_n "(cached) $ac_c" 1>&6
15731 else
15732 ac_save_LIBS="$LIBS"
15733 LIBS="-l$INET_LINK $LIBS"
15734 cat > conftest.$ac_ext <<EOF
15735 #line 15736 "configure"
15736 #include "confdefs.h"
15737 /* Override any gcc2 internal prototype to avoid an error. */
15738 /* We use char because int might match the return type of a gcc2
15739 builtin and then its argument prototype would still apply. */
15740 char inet_aton();
15741
15742 int main() {
15743 inet_aton()
15744 ; return 0; }
15745 EOF
15746 if { (eval echo configure:15747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15747 rm -rf conftest*
15748 eval "ac_cv_lib_$ac_lib_var=yes"
15749 else
15750 echo "configure: failed program was:" >&5
15751 cat conftest.$ac_ext >&5
15752 rm -rf conftest*
15753 eval "ac_cv_lib_$ac_lib_var=no"
15754 fi
15755 rm -f conftest*
15756 LIBS="$ac_save_LIBS"
15757
15758 fi
15759 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15760 echo "$ac_t""yes" 1>&6
15761 cat >> confdefs.h <<\EOF
15762 #define HAVE_INET_ATON 1
15763 EOF
15764
15765 else
15766 echo "$ac_t""no" 1>&6
15767 fi
15768
15769
15770 fi
15771 done
15772
15773
15774 if test "x$INET_LINK" != "x"; then
15775 cat >> confdefs.h <<\EOF
15776 #define HAVE_INET_ADDR 1
15777 EOF
15778
15779 INET_LINK=" -l$INET_LINK"
15780 fi
15781
15782 fi
15783
15784
15785 cat > confcache <<\EOF
15786 # This file is a shell script that caches the results of configure
15787 # tests run on this system so they can be shared between configure
15788 # scripts and configure runs. It is not useful on other systems.
15789 # If it contains results you don't want to keep, you may remove or edit it.
15790 #
15791 # By default, configure uses ./config.cache as the cache file,
15792 # creating it if it does not exist already. You can give configure
15793 # the --cache-file=FILE option to use a different cache file; that is
15794 # what configure does when it calls configure scripts in
15795 # subdirectories, so they share the cache.
15796 # Giving --cache-file=/dev/null disables caching, for debugging configure.
15797 # config.status only pays attention to the cache file if you give it the
15798 # --recheck option to rerun configure.
15799 #
15800 EOF
15801 # The following way of writing the cache mishandles newlines in values,
15802 # but we know of no workaround that is simple, portable, and efficient.
15803 # So, don't put newlines in cache variables' values.
15804 # Ultrix sh set writes to stderr and can't be redirected directly,
15805 # and sets the high bit in the cache file unless we assign to the vars.
15806 (set) 2>&1 |
15807 case `(ac_space=' '; set | grep ac_space) 2>&1` in
15808 *ac_space=\ *)
15809 # `set' does not quote correctly, so add quotes (double-quote substitution
15810 # turns \\\\ into \\, and sed turns \\ into \).
15811 sed -n \
15812 -e "s/'/'\\\\''/g" \
15813 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
15814 ;;
15815 *)
15816 # `set' quotes correctly as required by POSIX, so do not add quotes.
15817 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
15818 ;;
15819 esac >> confcache
15820 if cmp -s $cache_file confcache; then
15821 :
15822 else
15823 if test -w $cache_file; then
15824 echo "updating cache $cache_file"
15825 cat confcache > $cache_file
15826 else
15827 echo "not updating unwritable cache $cache_file"
15828 fi
15829 fi
15830 rm -f confcache
15831
15832
15833
15834 if test "$TOOLKIT" != "MSW"; then
15835
15836
15837 THREADS_LINK=
15838 THREADS_OBJ=
15839 CODE_GEN_FLAGS=
15840 CODE_GEN_FLAGS_CXX=
15841
15842 if test "$wxUSE_THREADS" = "yes" ; then
15843 if test "$wxUSE_WINE" = 1 ; then
15844 echo "configure: warning: Threads are not supported under WINE... disabled" 1>&2
15845 wxUSE_THREADS="no"
15846 elif test "$USE_BEOS" = 1; then
15847 echo "configure: warning: BeOS threads are not yet supported... disabled" 1>&2
15848 wxUSE_THREADS="no"
15849 fi
15850 fi
15851
15852 if test "$wxUSE_THREADS" = "yes" ; then
15853
15854 if test "$USE_AIX" = 1; then
15855 THREADS_LIB=pthreads
15856 else
15857 THREADS_LIB=pthread
15858 fi
15859
15860 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
15861 echo "configure:15862: checking for pthread_create in -l$THREADS_LIB" >&5
15862 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
15863 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15864 echo $ac_n "(cached) $ac_c" 1>&6
15865 else
15866 ac_save_LIBS="$LIBS"
15867 LIBS="-l$THREADS_LIB $LIBS"
15868 cat > conftest.$ac_ext <<EOF
15869 #line 15870 "configure"
15870 #include "confdefs.h"
15871 /* Override any gcc2 internal prototype to avoid an error. */
15872 /* We use char because int might match the return type of a gcc2
15873 builtin and then its argument prototype would still apply. */
15874 char pthread_create();
15875
15876 int main() {
15877 pthread_create()
15878 ; return 0; }
15879 EOF
15880 if { (eval echo configure:15881: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15881 rm -rf conftest*
15882 eval "ac_cv_lib_$ac_lib_var=yes"
15883 else
15884 echo "configure: failed program was:" >&5
15885 cat conftest.$ac_ext >&5
15886 rm -rf conftest*
15887 eval "ac_cv_lib_$ac_lib_var=no"
15888 fi
15889 rm -f conftest*
15890 LIBS="$ac_save_LIBS"
15891
15892 fi
15893 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15894 echo "$ac_t""yes" 1>&6
15895
15896 THREADS_OBJ="threadpsx.lo"
15897 THREADS_LINK=$THREADS_LIB
15898
15899 else
15900 echo "$ac_t""no" 1>&6
15901
15902 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
15903 echo "configure:15904: checking for pthread_create in -lc_r" >&5
15904 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
15905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15906 echo $ac_n "(cached) $ac_c" 1>&6
15907 else
15908 ac_save_LIBS="$LIBS"
15909 LIBS="-lc_r $LIBS"
15910 cat > conftest.$ac_ext <<EOF
15911 #line 15912 "configure"
15912 #include "confdefs.h"
15913 /* Override any gcc2 internal prototype to avoid an error. */
15914 /* We use char because int might match the return type of a gcc2
15915 builtin and then its argument prototype would still apply. */
15916 char pthread_create();
15917
15918 int main() {
15919 pthread_create()
15920 ; return 0; }
15921 EOF
15922 if { (eval echo configure:15923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15923 rm -rf conftest*
15924 eval "ac_cv_lib_$ac_lib_var=yes"
15925 else
15926 echo "configure: failed program was:" >&5
15927 cat conftest.$ac_ext >&5
15928 rm -rf conftest*
15929 eval "ac_cv_lib_$ac_lib_var=no"
15930 fi
15931 rm -f conftest*
15932 LIBS="$ac_save_LIBS"
15933
15934 fi
15935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15936 echo "$ac_t""yes" 1>&6
15937
15938 THREADS_OBJ="threadpsx.lo"
15939 THREADS_LINK="c_r"
15940
15941 else
15942 echo "$ac_t""no" 1>&6
15943
15944 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
15945 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
15946 echo "configure:15947: checking for sys/prctl.h" >&5
15947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15948 echo $ac_n "(cached) $ac_c" 1>&6
15949 else
15950 cat > conftest.$ac_ext <<EOF
15951 #line 15952 "configure"
15952 #include "confdefs.h"
15953 #include <sys/prctl.h>
15954 EOF
15955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15956 { (eval echo configure:15957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15958 if test -z "$ac_err"; then
15959 rm -rf conftest*
15960 eval "ac_cv_header_$ac_safe=yes"
15961 else
15962 echo "$ac_err" >&5
15963 echo "configure: failed program was:" >&5
15964 cat conftest.$ac_ext >&5
15965 rm -rf conftest*
15966 eval "ac_cv_header_$ac_safe=no"
15967 fi
15968 rm -f conftest*
15969 fi
15970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15971 echo "$ac_t""yes" 1>&6
15972
15973 THREADS_OBJ="threadsgi.lo"
15974
15975 else
15976 echo "$ac_t""no" 1>&6
15977 fi
15978
15979
15980 fi
15981
15982
15983 fi
15984
15985
15986 if test -z "$THREADS_OBJ" ; then
15987 wxUSE_THREADS=no
15988 echo "configure: warning: No thread support on this system... disabled" 1>&2
15989 fi
15990 fi
15991
15992 if test "$wxUSE_THREADS" = "yes" ; then
15993 for ac_func in thr_setconcurrency
15994 do
15995 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15996 echo "configure:15997: checking for $ac_func" >&5
15997 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15998 echo $ac_n "(cached) $ac_c" 1>&6
15999 else
16000 cat > conftest.$ac_ext <<EOF
16001 #line 16002 "configure"
16002 #include "confdefs.h"
16003 /* System header to define __stub macros and hopefully few prototypes,
16004 which can conflict with char $ac_func(); below. */
16005 #include <assert.h>
16006 /* Override any gcc2 internal prototype to avoid an error. */
16007 /* We use char because int might match the return type of a gcc2
16008 builtin and then its argument prototype would still apply. */
16009 char $ac_func();
16010
16011 int main() {
16012
16013 /* The GNU C library defines this for functions which it implements
16014 to always fail with ENOSYS. Some functions are actually named
16015 something starting with __ and the normal name is an alias. */
16016 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16017 choke me
16018 #else
16019 $ac_func();
16020 #endif
16021
16022 ; return 0; }
16023 EOF
16024 if { (eval echo configure:16025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16025 rm -rf conftest*
16026 eval "ac_cv_func_$ac_func=yes"
16027 else
16028 echo "configure: failed program was:" >&5
16029 cat conftest.$ac_ext >&5
16030 rm -rf conftest*
16031 eval "ac_cv_func_$ac_func=no"
16032 fi
16033 rm -f conftest*
16034 fi
16035
16036 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16037 echo "$ac_t""yes" 1>&6
16038 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16039 cat >> confdefs.h <<EOF
16040 #define $ac_tr_func 1
16041 EOF
16042
16043 else
16044 echo "$ac_t""no" 1>&6
16045 fi
16046 done
16047
16048
16049
16050 for ac_hdr in sched.h
16051 do
16052 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16053 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16054 echo "configure:16055: checking for $ac_hdr" >&5
16055 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16056 echo $ac_n "(cached) $ac_c" 1>&6
16057 else
16058 cat > conftest.$ac_ext <<EOF
16059 #line 16060 "configure"
16060 #include "confdefs.h"
16061 #include <$ac_hdr>
16062 EOF
16063 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16064 { (eval echo configure:16065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16065 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16066 if test -z "$ac_err"; then
16067 rm -rf conftest*
16068 eval "ac_cv_header_$ac_safe=yes"
16069 else
16070 echo "$ac_err" >&5
16071 echo "configure: failed program was:" >&5
16072 cat conftest.$ac_ext >&5
16073 rm -rf conftest*
16074 eval "ac_cv_header_$ac_safe=no"
16075 fi
16076 rm -f conftest*
16077 fi
16078 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16079 echo "$ac_t""yes" 1>&6
16080 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16081 cat >> confdefs.h <<EOF
16082 #define $ac_tr_hdr 1
16083 EOF
16084
16085 else
16086 echo "$ac_t""no" 1>&6
16087 fi
16088 done
16089
16090
16091 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
16092 echo "configure:16093: checking for sched_yield in -l$THREADS_LINK" >&5
16093 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
16094 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16095 echo $ac_n "(cached) $ac_c" 1>&6
16096 else
16097 ac_save_LIBS="$LIBS"
16098 LIBS="-l$THREADS_LINK $LIBS"
16099 cat > conftest.$ac_ext <<EOF
16100 #line 16101 "configure"
16101 #include "confdefs.h"
16102 /* Override any gcc2 internal prototype to avoid an error. */
16103 /* We use char because int might match the return type of a gcc2
16104 builtin and then its argument prototype would still apply. */
16105 char sched_yield();
16106
16107 int main() {
16108 sched_yield()
16109 ; return 0; }
16110 EOF
16111 if { (eval echo configure:16112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16112 rm -rf conftest*
16113 eval "ac_cv_lib_$ac_lib_var=yes"
16114 else
16115 echo "configure: failed program was:" >&5
16116 cat conftest.$ac_ext >&5
16117 rm -rf conftest*
16118 eval "ac_cv_lib_$ac_lib_var=no"
16119 fi
16120 rm -f conftest*
16121 LIBS="$ac_save_LIBS"
16122
16123 fi
16124 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16125 echo "$ac_t""yes" 1>&6
16126 cat >> confdefs.h <<\EOF
16127 #define HAVE_SCHED_YIELD 1
16128 EOF
16129
16130 else
16131 echo "$ac_t""no" 1>&6
16132 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
16133 echo "configure:16134: checking for sched_yield in -lposix4" >&5
16134 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
16135 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16136 echo $ac_n "(cached) $ac_c" 1>&6
16137 else
16138 ac_save_LIBS="$LIBS"
16139 LIBS="-lposix4 $LIBS"
16140 cat > conftest.$ac_ext <<EOF
16141 #line 16142 "configure"
16142 #include "confdefs.h"
16143 /* Override any gcc2 internal prototype to avoid an error. */
16144 /* We use char because int might match the return type of a gcc2
16145 builtin and then its argument prototype would still apply. */
16146 char sched_yield();
16147
16148 int main() {
16149 sched_yield()
16150 ; return 0; }
16151 EOF
16152 if { (eval echo configure:16153: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16153 rm -rf conftest*
16154 eval "ac_cv_lib_$ac_lib_var=yes"
16155 else
16156 echo "configure: failed program was:" >&5
16157 cat conftest.$ac_ext >&5
16158 rm -rf conftest*
16159 eval "ac_cv_lib_$ac_lib_var=no"
16160 fi
16161 rm -f conftest*
16162 LIBS="$ac_save_LIBS"
16163
16164 fi
16165 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16166 echo "$ac_t""yes" 1>&6
16167 cat >> confdefs.h <<\EOF
16168 #define HAVE_SCHED_YIELD 1
16169 EOF
16170 POSIX4_LINK=" -lposix4"
16171 else
16172 echo "$ac_t""no" 1>&6
16173 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
16174
16175 fi
16176
16177
16178 fi
16179
16180
16181 HAVE_PRIOR_FUNCS=0
16182 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
16183 echo "configure:16184: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
16184 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
16185 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16186 echo $ac_n "(cached) $ac_c" 1>&6
16187 else
16188 ac_save_LIBS="$LIBS"
16189 LIBS="-l$THREADS_LINK $LIBS"
16190 cat > conftest.$ac_ext <<EOF
16191 #line 16192 "configure"
16192 #include "confdefs.h"
16193 /* Override any gcc2 internal prototype to avoid an error. */
16194 /* We use char because int might match the return type of a gcc2
16195 builtin and then its argument prototype would still apply. */
16196 char pthread_attr_getschedpolicy();
16197
16198 int main() {
16199 pthread_attr_getschedpolicy()
16200 ; return 0; }
16201 EOF
16202 if { (eval echo configure:16203: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16203 rm -rf conftest*
16204 eval "ac_cv_lib_$ac_lib_var=yes"
16205 else
16206 echo "configure: failed program was:" >&5
16207 cat conftest.$ac_ext >&5
16208 rm -rf conftest*
16209 eval "ac_cv_lib_$ac_lib_var=no"
16210 fi
16211 rm -f conftest*
16212 LIBS="$ac_save_LIBS"
16213
16214 fi
16215 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16216 echo "$ac_t""yes" 1>&6
16217 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
16218 echo "configure:16219: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
16219 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
16220 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16221 echo $ac_n "(cached) $ac_c" 1>&6
16222 else
16223 ac_save_LIBS="$LIBS"
16224 LIBS="-l$THREADS_LINK $LIBS"
16225 cat > conftest.$ac_ext <<EOF
16226 #line 16227 "configure"
16227 #include "confdefs.h"
16228 /* Override any gcc2 internal prototype to avoid an error. */
16229 /* We use char because int might match the return type of a gcc2
16230 builtin and then its argument prototype would still apply. */
16231 char pthread_attr_setschedparam();
16232
16233 int main() {
16234 pthread_attr_setschedparam()
16235 ; return 0; }
16236 EOF
16237 if { (eval echo configure:16238: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16238 rm -rf conftest*
16239 eval "ac_cv_lib_$ac_lib_var=yes"
16240 else
16241 echo "configure: failed program was:" >&5
16242 cat conftest.$ac_ext >&5
16243 rm -rf conftest*
16244 eval "ac_cv_lib_$ac_lib_var=no"
16245 fi
16246 rm -f conftest*
16247 LIBS="$ac_save_LIBS"
16248
16249 fi
16250 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16251 echo "$ac_t""yes" 1>&6
16252 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
16253 echo "configure:16254: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
16254 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16256 echo $ac_n "(cached) $ac_c" 1>&6
16257 else
16258 ac_save_LIBS="$LIBS"
16259 LIBS="-l$THREADS_LINK $LIBS"
16260 cat > conftest.$ac_ext <<EOF
16261 #line 16262 "configure"
16262 #include "confdefs.h"
16263 /* Override any gcc2 internal prototype to avoid an error. */
16264 /* We use char because int might match the return type of a gcc2
16265 builtin and then its argument prototype would still apply. */
16266 char sched_get_priority_max();
16267
16268 int main() {
16269 sched_get_priority_max()
16270 ; return 0; }
16271 EOF
16272 if { (eval echo configure:16273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16273 rm -rf conftest*
16274 eval "ac_cv_lib_$ac_lib_var=yes"
16275 else
16276 echo "configure: failed program was:" >&5
16277 cat conftest.$ac_ext >&5
16278 rm -rf conftest*
16279 eval "ac_cv_lib_$ac_lib_var=no"
16280 fi
16281 rm -f conftest*
16282 LIBS="$ac_save_LIBS"
16283
16284 fi
16285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16286 echo "$ac_t""yes" 1>&6
16287 HAVE_PRIOR_FUNCS=1
16288 else
16289 echo "$ac_t""no" 1>&6
16290 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
16291 echo "configure:16292: checking for sched_get_priority_max in -lposix4" >&5
16292 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
16293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16294 echo $ac_n "(cached) $ac_c" 1>&6
16295 else
16296 ac_save_LIBS="$LIBS"
16297 LIBS="-lposix4 $LIBS"
16298 cat > conftest.$ac_ext <<EOF
16299 #line 16300 "configure"
16300 #include "confdefs.h"
16301 /* Override any gcc2 internal prototype to avoid an error. */
16302 /* We use char because int might match the return type of a gcc2
16303 builtin and then its argument prototype would still apply. */
16304 char sched_get_priority_max();
16305
16306 int main() {
16307 sched_get_priority_max()
16308 ; return 0; }
16309 EOF
16310 if { (eval echo configure:16311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16311 rm -rf conftest*
16312 eval "ac_cv_lib_$ac_lib_var=yes"
16313 else
16314 echo "configure: failed program was:" >&5
16315 cat conftest.$ac_ext >&5
16316 rm -rf conftest*
16317 eval "ac_cv_lib_$ac_lib_var=no"
16318 fi
16319 rm -f conftest*
16320 LIBS="$ac_save_LIBS"
16321
16322 fi
16323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16324 echo "$ac_t""yes" 1>&6
16325
16326 HAVE_PRIOR_FUNCS=1
16327 POSIX4_LINK=" -lposix4"
16328
16329 else
16330 echo "$ac_t""no" 1>&6
16331 fi
16332
16333
16334 fi
16335
16336
16337 else
16338 echo "$ac_t""no" 1>&6
16339 fi
16340
16341
16342 else
16343 echo "$ac_t""no" 1>&6
16344 fi
16345
16346
16347 if test "$HAVE_PRIOR_FUNCS" = 1; then
16348 cat >> confdefs.h <<\EOF
16349 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
16350 EOF
16351
16352 else
16353 echo "configure: warning: Setting thread priority will not work" 1>&2
16354 fi
16355
16356 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
16357 echo "configure:16358: checking for pthread_cancel in -l$THREADS_LINK" >&5
16358 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
16359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16360 echo $ac_n "(cached) $ac_c" 1>&6
16361 else
16362 ac_save_LIBS="$LIBS"
16363 LIBS="-l$THREADS_LINK $LIBS"
16364 cat > conftest.$ac_ext <<EOF
16365 #line 16366 "configure"
16366 #include "confdefs.h"
16367 /* Override any gcc2 internal prototype to avoid an error. */
16368 /* We use char because int might match the return type of a gcc2
16369 builtin and then its argument prototype would still apply. */
16370 char pthread_cancel();
16371
16372 int main() {
16373 pthread_cancel()
16374 ; return 0; }
16375 EOF
16376 if { (eval echo configure:16377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16377 rm -rf conftest*
16378 eval "ac_cv_lib_$ac_lib_var=yes"
16379 else
16380 echo "configure: failed program was:" >&5
16381 cat conftest.$ac_ext >&5
16382 rm -rf conftest*
16383 eval "ac_cv_lib_$ac_lib_var=no"
16384 fi
16385 rm -f conftest*
16386 LIBS="$ac_save_LIBS"
16387
16388 fi
16389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16390 echo "$ac_t""yes" 1>&6
16391 cat >> confdefs.h <<\EOF
16392 #define HAVE_PTHREAD_CANCEL 1
16393 EOF
16394
16395 else
16396 echo "$ac_t""no" 1>&6
16397 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
16398 fi
16399
16400
16401 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
16402 echo "configure:16403: checking for pthread_cleanup_push/pop" >&5
16403 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
16404 echo $ac_n "(cached) $ac_c" 1>&6
16405 else
16406
16407 cat > conftest.$ac_ext <<EOF
16408 #line 16409 "configure"
16409 #include "confdefs.h"
16410 #include <pthread.h>
16411 int main() {
16412
16413 pthread_cleanup_push(NULL, NULL);
16414 pthread_cleanup_pop(0);
16415
16416 ; return 0; }
16417 EOF
16418 if { (eval echo configure:16419: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16419 rm -rf conftest*
16420
16421 wx_cv_func_pthread_cleanup_push=yes
16422
16423 else
16424 echo "configure: failed program was:" >&5
16425 cat conftest.$ac_ext >&5
16426 rm -rf conftest*
16427
16428 wx_cv_func_pthread_cleanup_push=no
16429
16430 fi
16431 rm -f conftest*
16432
16433 fi
16434
16435 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
16436
16437 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
16438 cat >> confdefs.h <<\EOF
16439 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
16440 EOF
16441
16442 fi
16443
16444
16445 if test "x$wx_lib_glibc21" = "xyes"; then
16446 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
16447 fi
16448
16449 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
16450 echo "configure:16451: checking for pthread_mutexattr_t" >&5
16451 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
16452 echo $ac_n "(cached) $ac_c" 1>&6
16453 else
16454
16455 cat > conftest.$ac_ext <<EOF
16456 #line 16457 "configure"
16457 #include "confdefs.h"
16458 #include <pthread.h>
16459 int main() {
16460
16461 pthread_mutexattr_t attr;
16462 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
16463
16464 ; return 0; }
16465 EOF
16466 if { (eval echo configure:16467: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16467 rm -rf conftest*
16468
16469 wx_cv_type_pthread_mutexattr_t=yes
16470
16471 else
16472 echo "configure: failed program was:" >&5
16473 cat conftest.$ac_ext >&5
16474 rm -rf conftest*
16475
16476 wx_cv_type_pthread_mutexattr_t=no
16477
16478
16479 fi
16480 rm -f conftest*
16481
16482 fi
16483
16484 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
16485
16486 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
16487 cat >> confdefs.h <<\EOF
16488 #define HAVE_PTHREAD_MUTEXATTR_T 1
16489 EOF
16490
16491 else
16492 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
16493 echo "configure:16494: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
16494 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
16495 echo $ac_n "(cached) $ac_c" 1>&6
16496 else
16497
16498 cat > conftest.$ac_ext <<EOF
16499 #line 16500 "configure"
16500 #include "confdefs.h"
16501 #include <pthread.h>
16502 int main() {
16503
16504 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
16505
16506 ; return 0; }
16507 EOF
16508 if { (eval echo configure:16509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16509 rm -rf conftest*
16510
16511 wx_cv_type_pthread_rec_mutex_init=yes
16512
16513 else
16514 echo "configure: failed program was:" >&5
16515 cat conftest.$ac_ext >&5
16516 rm -rf conftest*
16517
16518 wx_cv_type_pthread_rec_mutex_init=no
16519
16520
16521 fi
16522 rm -f conftest*
16523
16524 fi
16525
16526 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
16527 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
16528 cat >> confdefs.h <<\EOF
16529 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
16530 EOF
16531
16532 else
16533 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
16534 fi
16535 fi
16536
16537 THREADS_LINK=" -l$THREADS_LINK"
16538
16539 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
16540 CPPFLAGS="$CFLAGS -mt"
16541 CXXFLAGS="$CXXFLAGS -mt"
16542 LDFLAGS="$LDFLAGS -mt"
16543 fi
16544 fi
16545
16546 fi
16547
16548 if test "$wxUSE_THREADS" = "yes"; then
16549 cat >> confdefs.h <<\EOF
16550 #define wxUSE_THREADS 1
16551 EOF
16552
16553
16554 TOOLCHAIN_DEFS="$TOOLCHAIN_DEFS $CPP_MT_FLAG"
16555
16556 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
16557 else
16558 if test "$ac_cv_func_strtok_r" = "yes"; then
16559 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
16560 echo "configure:16561: checking if -D_REENTRANT is needed" >&5
16561 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
16562 TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D_REENTRANT"
16563 echo "$ac_t""yes" 1>&6
16564 else
16565 echo "$ac_t""no" 1>&6
16566 fi
16567 fi
16568 fi
16569
16570 if test "$WXGTK20" = 1 ; then
16571 cat >> confdefs.h <<EOF
16572 #define __WXGTK20__ $WXGTK20
16573 EOF
16574
16575 WXGTK12=1
16576 fi
16577
16578 if test "$WXGTK12" = 1 ; then
16579 cat >> confdefs.h <<EOF
16580 #define __WXGTK12__ $WXGTK12
16581 EOF
16582
16583 fi
16584
16585 if test "$WXGTK127" = 1 ; then
16586 cat >> confdefs.h <<EOF
16587 #define __WXGTK127__ $WXGTK127
16588 EOF
16589
16590 fi
16591
16592 WXDEBUG=
16593
16594 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
16595 WXDEBUG="-g"
16596 wxUSE_OPTIMISE=no
16597 fi
16598
16599 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
16600 wxUSE_DEBUG_INFO=yes
16601 WXDEBUG="-ggdb"
16602 fi
16603
16604 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
16605 cat >> confdefs.h <<\EOF
16606 #define WXDEBUG 1
16607 EOF
16608
16609 WXDEBUG_DEFINE="-D__WXDEBUG__"
16610 else
16611 if test "$wxUSE_GTK" = 1 ; then
16612 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
16613 fi
16614 fi
16615
16616 if test "$wxUSE_MEM_TRACING" = "yes" ; then
16617 cat >> confdefs.h <<\EOF
16618 #define wxUSE_MEMORY_TRACING 1
16619 EOF
16620
16621 cat >> confdefs.h <<\EOF
16622 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
16623 EOF
16624
16625 cat >> confdefs.h <<\EOF
16626 #define wxUSE_DEBUG_NEW_ALWAYS 1
16627 EOF
16628
16629 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
16630 fi
16631
16632 if test "$wxUSE_DMALLOC" = "yes" ; then
16633 DMALLOC_LIBS="-ldmalloc"
16634 fi
16635
16636 PROFILE=
16637 if test "$wxUSE_PROFILE" = "yes" ; then
16638 PROFILE=" -pg"
16639 fi
16640
16641 if test "$GCC" = "yes" ; then
16642 if test "$wxUSE_NO_RTTI" = "yes" ; then
16643 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-rtti"
16644 fi
16645 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
16646 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fno-exceptions"
16647 fi
16648 if test "$wxUSE_PERMISSIVE" = "yes" ; then
16649 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
16650 fi
16651 if test "$USE_WIN32" = 1 ; then
16652 # I'm not even really sure what this was ever added to solve,
16653 # but someone added it for mingw native builds, so I guess
16654 # they had a reason, right??
16655 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fno-pcc-struct-return"
16656 fi
16657 fi
16658
16659
16660 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
16661 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
16662 if test "$wxUSE_OPTIMISE" = "no" ; then
16663 OPTIMISE=
16664 else
16665 if test "$GCC" = yes ; then
16666 OPTIMISE="-O2"
16667 case "${host}" in
16668 i586-*-*|i686-*-* )
16669 OPTIMISE="${OPTIMISE} "
16670 ;;
16671 esac
16672 else
16673 OPTIMISE="-O"
16674 fi
16675 fi
16676
16677 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
16678 cat >> confdefs.h <<\EOF
16679 #define WXWIN_COMPATIBILITY_2 1
16680 EOF
16681
16682
16683 WXWIN_COMPATIBILITY_2_2="yes"
16684 fi
16685
16686 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
16687 cat >> confdefs.h <<\EOF
16688 #define WXWIN_COMPATIBILITY_2_2 1
16689 EOF
16690
16691 fi
16692
16693
16694 if test "$wxUSE_GUI" = "yes"; then
16695 cat >> confdefs.h <<\EOF
16696 #define wxUSE_GUI 1
16697 EOF
16698
16699
16700 else
16701 cat >> confdefs.h <<\EOF
16702 #define wxUSE_NOGUI 1
16703 EOF
16704
16705 fi
16706
16707
16708 if test "$wxUSE_UNIX" = "yes"; then
16709 cat >> confdefs.h <<\EOF
16710 #define wxUSE_UNIX 1
16711 EOF
16712
16713 fi
16714
16715
16716 if test "$wxUSE_APPLE_IEEE" = "yes"; then
16717 cat >> confdefs.h <<\EOF
16718 #define wxUSE_APPLE_IEEE 1
16719 EOF
16720
16721 fi
16722
16723 if test "$wxUSE_TIMER" = "yes"; then
16724 cat >> confdefs.h <<\EOF
16725 #define wxUSE_TIMER 1
16726 EOF
16727
16728 fi
16729
16730 if test "$wxUSE_WAVE" = "yes"; then
16731 cat >> confdefs.h <<\EOF
16732 #define wxUSE_WAVE 1
16733 EOF
16734
16735 fi
16736
16737 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
16738 cat >> confdefs.h <<\EOF
16739 #define wxUSE_CMDLINE_PARSER 1
16740 EOF
16741
16742 fi
16743
16744 if test "$wxUSE_STOPWATCH" = "yes"; then
16745 cat >> confdefs.h <<\EOF
16746 #define wxUSE_STOPWATCH 1
16747 EOF
16748
16749 fi
16750
16751 if test "$wxUSE_DATETIME" = "yes"; then
16752 cat >> confdefs.h <<\EOF
16753 #define wxUSE_DATETIME 1
16754 EOF
16755
16756 fi
16757
16758 if test "$wxUSE_TIMEDATE" = "yes"; then
16759 cat >> confdefs.h <<\EOF
16760 #define wxUSE_TIMEDATE 1
16761 EOF
16762
16763 fi
16764
16765 if test "$wxUSE_FILE" = "yes"; then
16766 cat >> confdefs.h <<\EOF
16767 #define wxUSE_FILE 1
16768 EOF
16769
16770 fi
16771
16772 if test "$wxUSE_FFILE" = "yes"; then
16773 cat >> confdefs.h <<\EOF
16774 #define wxUSE_FFILE 1
16775 EOF
16776
16777 fi
16778
16779 if test "$wxUSE_FILESYSTEM" = "yes"; then
16780 cat >> confdefs.h <<\EOF
16781 #define wxUSE_FILESYSTEM 1
16782 EOF
16783
16784 fi
16785
16786 if test "$wxUSE_FS_INET" = "yes"; then
16787 cat >> confdefs.h <<\EOF
16788 #define wxUSE_FS_INET 1
16789 EOF
16790
16791 fi
16792
16793 if test "$wxUSE_FS_ZIP" = "yes"; then
16794 cat >> confdefs.h <<\EOF
16795 #define wxUSE_FS_ZIP 1
16796 EOF
16797
16798 fi
16799
16800 if test "$wxUSE_ZIPSTREAM" = "yes"; then
16801 cat >> confdefs.h <<\EOF
16802 #define wxUSE_ZIPSTREAM 1
16803 EOF
16804
16805 fi
16806
16807 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
16808 cat >> confdefs.h <<\EOF
16809 #define wxUSE_ON_FATAL_EXCEPTION 1
16810 EOF
16811
16812 fi
16813
16814 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
16815 cat >> confdefs.h <<\EOF
16816 #define wxUSE_SNGLINST_CHECKER 1
16817 EOF
16818
16819 fi
16820
16821 if test "$wxUSE_BUSYINFO" = "yes"; then
16822 cat >> confdefs.h <<\EOF
16823 #define wxUSE_BUSYINFO 1
16824 EOF
16825
16826 fi
16827
16828 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
16829 cat >> confdefs.h <<\EOF
16830 #define wxUSE_STD_IOSTREAM 1
16831 EOF
16832
16833 fi
16834
16835 if test "$wxUSE_TEXTBUFFER" = "yes"; then
16836 cat >> confdefs.h <<\EOF
16837 #define wxUSE_TEXTBUFFER 1
16838 EOF
16839
16840 fi
16841
16842 if test "$wxUSE_TEXTFILE" = "yes"; then
16843 if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
16844 echo "configure: warning: wxTextFile requires wxFile and wxTextBuffer... disabled" 1>&2
16845 else
16846 cat >> confdefs.h <<\EOF
16847 #define wxUSE_TEXTFILE 1
16848 EOF
16849
16850 fi
16851 fi
16852
16853 if test "$wxUSE_CONFIG" = "yes" ; then
16854 if test "$wxUSE_TEXTFILE" != "yes"; then
16855 echo "configure: warning: wxConfig requires wxTextFile... disabled" 1>&2
16856 else
16857 cat >> confdefs.h <<\EOF
16858 #define wxUSE_CONFIG 1
16859 EOF
16860
16861 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
16862 fi
16863 fi
16864
16865 if test "$wxUSE_INTL" = "yes" ; then
16866 if test "$wxUSE_FILE" != "yes"; then
16867 echo "configure: warning: I18n code requires wxFile... disabled" 1>&2
16868 else
16869 cat >> confdefs.h <<\EOF
16870 #define wxUSE_INTL 1
16871 EOF
16872
16873 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
16874 GUIDIST="$GUIDIST INTL_DIST"
16875 fi
16876 fi
16877
16878 if test "$wxUSE_LOG" = "yes"; then
16879 cat >> confdefs.h <<\EOF
16880 #define wxUSE_LOG 1
16881 EOF
16882
16883
16884 if test "$wxUSE_LOGGUI" = "yes"; then
16885 cat >> confdefs.h <<\EOF
16886 #define wxUSE_LOGGUI 1
16887 EOF
16888
16889 fi
16890
16891 if test "$wxUSE_LOGWINDOW" = "yes"; then
16892 cat >> confdefs.h <<\EOF
16893 #define wxUSE_LOGWINDOW 1
16894 EOF
16895
16896 fi
16897
16898 if test "$wxUSE_LOGDIALOG" = "yes"; then
16899 cat >> confdefs.h <<\EOF
16900 #define wxUSE_LOG_DIALOG 1
16901 EOF
16902
16903 fi
16904 fi
16905
16906 if test "$wxUSE_LONGLONG" = "yes"; then
16907 cat >> confdefs.h <<\EOF
16908 #define wxUSE_LONGLONG 1
16909 EOF
16910
16911 fi
16912
16913 if test "$wxUSE_GEOMETRY" = "yes"; then
16914 cat >> confdefs.h <<\EOF
16915 #define wxUSE_GEOMETRY 1
16916 EOF
16917
16918 fi
16919
16920 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
16921 cat >> confdefs.h <<\EOF
16922 #define wxUSE_DIALUP_MANAGER 1
16923 EOF
16924
16925 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
16926 fi
16927
16928 if test "$wxUSE_STREAMS" = "yes" ; then
16929 cat >> confdefs.h <<\EOF
16930 #define wxUSE_STREAMS 1
16931 EOF
16932
16933 fi
16934
16935
16936 if test "$wxUSE_DATETIME" = "yes"; then
16937 for ac_func in strptime
16938 do
16939 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16940 echo "configure:16941: checking for $ac_func" >&5
16941 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16942 echo $ac_n "(cached) $ac_c" 1>&6
16943 else
16944 cat > conftest.$ac_ext <<EOF
16945 #line 16946 "configure"
16946 #include "confdefs.h"
16947 /* System header to define __stub macros and hopefully few prototypes,
16948 which can conflict with char $ac_func(); below. */
16949 #include <assert.h>
16950 /* Override any gcc2 internal prototype to avoid an error. */
16951 /* We use char because int might match the return type of a gcc2
16952 builtin and then its argument prototype would still apply. */
16953 char $ac_func();
16954
16955 int main() {
16956
16957 /* The GNU C library defines this for functions which it implements
16958 to always fail with ENOSYS. Some functions are actually named
16959 something starting with __ and the normal name is an alias. */
16960 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16961 choke me
16962 #else
16963 $ac_func();
16964 #endif
16965
16966 ; return 0; }
16967 EOF
16968 if { (eval echo configure:16969: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16969 rm -rf conftest*
16970 eval "ac_cv_func_$ac_func=yes"
16971 else
16972 echo "configure: failed program was:" >&5
16973 cat conftest.$ac_ext >&5
16974 rm -rf conftest*
16975 eval "ac_cv_func_$ac_func=no"
16976 fi
16977 rm -f conftest*
16978 fi
16979
16980 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16981 echo "$ac_t""yes" 1>&6
16982 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16983 cat >> confdefs.h <<EOF
16984 #define $ac_tr_func 1
16985 EOF
16986
16987 else
16988 echo "$ac_t""no" 1>&6
16989 fi
16990 done
16991
16992
16993 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
16994 echo "configure:16995: checking for timezone variable in <time.h>" >&5
16995 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16996 echo $ac_n "(cached) $ac_c" 1>&6
16997 else
16998
16999 cat > conftest.$ac_ext <<EOF
17000 #line 17001 "configure"
17001 #include "confdefs.h"
17002
17003 #include <time.h>
17004
17005 int main() {
17006
17007 int tz;
17008 tz = timezone;
17009
17010 ; return 0; }
17011 EOF
17012 if { (eval echo configure:17013: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17013 rm -rf conftest*
17014
17015 wx_cv_var_timezone=timezone
17016
17017 else
17018 echo "configure: failed program was:" >&5
17019 cat conftest.$ac_ext >&5
17020 rm -rf conftest*
17021
17022 cat > conftest.$ac_ext <<EOF
17023 #line 17024 "configure"
17024 #include "confdefs.h"
17025
17026 #include <time.h>
17027
17028 int main() {
17029
17030 int tz;
17031 tz = _timezone;
17032
17033 ; return 0; }
17034 EOF
17035 if { (eval echo configure:17036: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17036 rm -rf conftest*
17037
17038 wx_cv_var_timezone=_timezone
17039
17040 else
17041 echo "configure: failed program was:" >&5
17042 cat conftest.$ac_ext >&5
17043 rm -rf conftest*
17044
17045 cat > conftest.$ac_ext <<EOF
17046 #line 17047 "configure"
17047 #include "confdefs.h"
17048
17049 #include <time.h>
17050
17051 int main() {
17052
17053 int tz;
17054 tz = __timezone;
17055
17056 ; return 0; }
17057 EOF
17058 if { (eval echo configure:17059: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17059 rm -rf conftest*
17060
17061 wx_cv_var_timezone=__timezone
17062
17063 else
17064 echo "configure: failed program was:" >&5
17065 cat conftest.$ac_ext >&5
17066 rm -rf conftest*
17067
17068 if test "$USE_DOS" = 0 ; then
17069 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
17070 fi
17071
17072
17073 fi
17074 rm -f conftest*
17075
17076
17077 fi
17078 rm -f conftest*
17079
17080
17081 fi
17082 rm -f conftest*
17083
17084
17085 fi
17086
17087 echo "$ac_t""$wx_cv_var_timezone" 1>&6
17088
17089 if test "x$wx_cv_var_timezone" != x ; then
17090 cat >> confdefs.h <<EOF
17091 #define WX_TIMEZONE $wx_cv_var_timezone
17092 EOF
17093
17094 fi
17095
17096 for ac_func in localtime
17097 do
17098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17099 echo "configure:17100: checking for $ac_func" >&5
17100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17101 echo $ac_n "(cached) $ac_c" 1>&6
17102 else
17103 cat > conftest.$ac_ext <<EOF
17104 #line 17105 "configure"
17105 #include "confdefs.h"
17106 /* System header to define __stub macros and hopefully few prototypes,
17107 which can conflict with char $ac_func(); below. */
17108 #include <assert.h>
17109 /* Override any gcc2 internal prototype to avoid an error. */
17110 /* We use char because int might match the return type of a gcc2
17111 builtin and then its argument prototype would still apply. */
17112 char $ac_func();
17113
17114 int main() {
17115
17116 /* The GNU C library defines this for functions which it implements
17117 to always fail with ENOSYS. Some functions are actually named
17118 something starting with __ and the normal name is an alias. */
17119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17120 choke me
17121 #else
17122 $ac_func();
17123 #endif
17124
17125 ; return 0; }
17126 EOF
17127 if { (eval echo configure:17128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17128 rm -rf conftest*
17129 eval "ac_cv_func_$ac_func=yes"
17130 else
17131 echo "configure: failed program was:" >&5
17132 cat conftest.$ac_ext >&5
17133 rm -rf conftest*
17134 eval "ac_cv_func_$ac_func=no"
17135 fi
17136 rm -f conftest*
17137 fi
17138
17139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17140 echo "$ac_t""yes" 1>&6
17141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17142 cat >> confdefs.h <<EOF
17143 #define $ac_tr_func 1
17144 EOF
17145
17146 else
17147 echo "$ac_t""no" 1>&6
17148 fi
17149 done
17150
17151
17152 if test "$ac_cv_func_localtime" = "yes"; then
17153 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
17154 echo "configure:17155: checking for tm_gmtoff in struct tm" >&5
17155 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
17156 echo $ac_n "(cached) $ac_c" 1>&6
17157 else
17158
17159 cat > conftest.$ac_ext <<EOF
17160 #line 17161 "configure"
17161 #include "confdefs.h"
17162
17163 #include <time.h>
17164
17165 int main() {
17166
17167 struct tm tm;
17168 tm.tm_gmtoff++;
17169
17170 ; return 0; }
17171 EOF
17172 if { (eval echo configure:17173: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17173 rm -rf conftest*
17174
17175 wx_cv_struct_tm_has_gmtoff=yes
17176
17177 else
17178 echo "configure: failed program was:" >&5
17179 cat conftest.$ac_ext >&5
17180 rm -rf conftest*
17181 wx_cv_struct_tm_has_gmtoff=no
17182
17183 fi
17184 rm -f conftest*
17185
17186 fi
17187
17188 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
17189 fi
17190
17191 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
17192 cat >> confdefs.h <<\EOF
17193 #define WX_GMTOFF_IN_TM 1
17194 EOF
17195
17196 fi
17197
17198 for ac_func in gettimeofday ftime
17199 do
17200 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17201 echo "configure:17202: checking for $ac_func" >&5
17202 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17203 echo $ac_n "(cached) $ac_c" 1>&6
17204 else
17205 cat > conftest.$ac_ext <<EOF
17206 #line 17207 "configure"
17207 #include "confdefs.h"
17208 /* System header to define __stub macros and hopefully few prototypes,
17209 which can conflict with char $ac_func(); below. */
17210 #include <assert.h>
17211 /* Override any gcc2 internal prototype to avoid an error. */
17212 /* We use char because int might match the return type of a gcc2
17213 builtin and then its argument prototype would still apply. */
17214 char $ac_func();
17215
17216 int main() {
17217
17218 /* The GNU C library defines this for functions which it implements
17219 to always fail with ENOSYS. Some functions are actually named
17220 something starting with __ and the normal name is an alias. */
17221 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17222 choke me
17223 #else
17224 $ac_func();
17225 #endif
17226
17227 ; return 0; }
17228 EOF
17229 if { (eval echo configure:17230: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17230 rm -rf conftest*
17231 eval "ac_cv_func_$ac_func=yes"
17232 else
17233 echo "configure: failed program was:" >&5
17234 cat conftest.$ac_ext >&5
17235 rm -rf conftest*
17236 eval "ac_cv_func_$ac_func=no"
17237 fi
17238 rm -f conftest*
17239 fi
17240
17241 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17242 echo "$ac_t""yes" 1>&6
17243 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17244 cat >> confdefs.h <<EOF
17245 #define $ac_tr_func 1
17246 EOF
17247 break
17248 else
17249 echo "$ac_t""no" 1>&6
17250 fi
17251 done
17252
17253
17254 if test "$ac_cv_func_gettimeofday" = "yes"; then
17255 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
17256 echo "configure:17257: checking whether gettimeofday takes two arguments" >&5
17257 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
17258 echo $ac_n "(cached) $ac_c" 1>&6
17259 else
17260
17261
17262 ac_ext=C
17263 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17264 ac_cpp='$CXXCPP $CPPFLAGS'
17265 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17266 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17267 cross_compiling=$ac_cv_prog_cxx_cross
17268
17269
17270 cat > conftest.$ac_ext <<EOF
17271 #line 17272 "configure"
17272 #include "confdefs.h"
17273
17274 #include <sys/time.h>
17275 #include <unistd.h>
17276
17277 int main() {
17278
17279 struct timeval tv;
17280 gettimeofday(&tv, NULL);
17281
17282 ; return 0; }
17283 EOF
17284 if { (eval echo configure:17285: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17285 rm -rf conftest*
17286 wx_cv_func_gettimeofday_has_2_args=yes
17287 else
17288 echo "configure: failed program was:" >&5
17289 cat conftest.$ac_ext >&5
17290 rm -rf conftest*
17291 cat > conftest.$ac_ext <<EOF
17292 #line 17293 "configure"
17293 #include "confdefs.h"
17294
17295 #include <sys/time.h>
17296 #include <unistd.h>
17297
17298 int main() {
17299
17300 struct timeval tv;
17301 gettimeofday(&tv);
17302
17303 ; return 0; }
17304 EOF
17305 if { (eval echo configure:17306: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17306 rm -rf conftest*
17307 wx_cv_func_gettimeofday_has_2_args=no
17308 else
17309 echo "configure: failed program was:" >&5
17310 cat conftest.$ac_ext >&5
17311 rm -rf conftest*
17312
17313 echo "configure: warning: failed to determine number of gettimeofday() arguments" 1>&2
17314 wx_cv_func_gettimeofday_has_2_args=unknown
17315
17316
17317 fi
17318 rm -f conftest*
17319
17320 fi
17321 rm -f conftest*
17322 ac_ext=c
17323 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17324 ac_cpp='$CPP $CPPFLAGS'
17325 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17326 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17327 cross_compiling=$ac_cv_prog_cc_cross
17328
17329
17330 fi
17331
17332 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
17333
17334 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
17335 cat >> confdefs.h <<\EOF
17336 #define WX_GETTIMEOFDAY_NO_TZ 1
17337 EOF
17338
17339 fi
17340 fi
17341
17342 cat >> confdefs.h <<\EOF
17343 #define wxUSE_TIMEDATE 1
17344 EOF
17345
17346 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
17347 fi
17348
17349
17350 if test "$TOOLKIT" != "MSW"; then
17351
17352 if test "$wxUSE_SOCKETS" = "yes"; then
17353 echo $ac_n "checking for socket""... $ac_c" 1>&6
17354 echo "configure:17355: checking for socket" >&5
17355 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
17356 echo $ac_n "(cached) $ac_c" 1>&6
17357 else
17358 cat > conftest.$ac_ext <<EOF
17359 #line 17360 "configure"
17360 #include "confdefs.h"
17361 /* System header to define __stub macros and hopefully few prototypes,
17362 which can conflict with char socket(); below. */
17363 #include <assert.h>
17364 /* Override any gcc2 internal prototype to avoid an error. */
17365 /* We use char because int might match the return type of a gcc2
17366 builtin and then its argument prototype would still apply. */
17367 char socket();
17368
17369 int main() {
17370
17371 /* The GNU C library defines this for functions which it implements
17372 to always fail with ENOSYS. Some functions are actually named
17373 something starting with __ and the normal name is an alias. */
17374 #if defined (__stub_socket) || defined (__stub___socket)
17375 choke me
17376 #else
17377 socket();
17378 #endif
17379
17380 ; return 0; }
17381 EOF
17382 if { (eval echo configure:17383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17383 rm -rf conftest*
17384 eval "ac_cv_func_socket=yes"
17385 else
17386 echo "configure: failed program was:" >&5
17387 cat conftest.$ac_ext >&5
17388 rm -rf conftest*
17389 eval "ac_cv_func_socket=no"
17390 fi
17391 rm -f conftest*
17392 fi
17393
17394 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
17395 echo "$ac_t""yes" 1>&6
17396 :
17397 else
17398 echo "$ac_t""no" 1>&6
17399 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
17400 echo "configure:17401: checking for socket in -lsocket" >&5
17401 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
17402 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17403 echo $ac_n "(cached) $ac_c" 1>&6
17404 else
17405 ac_save_LIBS="$LIBS"
17406 LIBS="-lsocket $LIBS"
17407 cat > conftest.$ac_ext <<EOF
17408 #line 17409 "configure"
17409 #include "confdefs.h"
17410 /* Override any gcc2 internal prototype to avoid an error. */
17411 /* We use char because int might match the return type of a gcc2
17412 builtin and then its argument prototype would still apply. */
17413 char socket();
17414
17415 int main() {
17416 socket()
17417 ; return 0; }
17418 EOF
17419 if { (eval echo configure:17420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17420 rm -rf conftest*
17421 eval "ac_cv_lib_$ac_lib_var=yes"
17422 else
17423 echo "configure: failed program was:" >&5
17424 cat conftest.$ac_ext >&5
17425 rm -rf conftest*
17426 eval "ac_cv_lib_$ac_lib_var=no"
17427 fi
17428 rm -f conftest*
17429 LIBS="$ac_save_LIBS"
17430
17431 fi
17432 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17433 echo "$ac_t""yes" 1>&6
17434 INET_LINK="$INET_LINK -lsocket"
17435 else
17436 echo "$ac_t""no" 1>&6
17437
17438 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
17439 wxUSE_SOCKETS=no
17440
17441
17442 fi
17443
17444
17445 fi
17446
17447 fi
17448
17449
17450 if test "$wxUSE_SOCKETS" = "yes" ; then
17451 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
17452 echo "configure:17453: checking what is the type of the third argument of getsockname" >&5
17453 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
17454 echo $ac_n "(cached) $ac_c" 1>&6
17455 else
17456
17457
17458 ac_ext=C
17459 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17460 ac_cpp='$CXXCPP $CPPFLAGS'
17461 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17462 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17463 cross_compiling=$ac_cv_prog_cxx_cross
17464
17465
17466 cat > conftest.$ac_ext <<EOF
17467 #line 17468 "configure"
17468 #include "confdefs.h"
17469
17470 #include <sys/types.h>
17471 #include <sys/socket.h>
17472
17473 int main() {
17474
17475 socklen_t len;
17476 getsockname(0, 0, &len);
17477
17478 ; return 0; }
17479 EOF
17480 if { (eval echo configure:17481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17481 rm -rf conftest*
17482 wx_cv_type_getsockname3=socklen_t
17483 else
17484 echo "configure: failed program was:" >&5
17485 cat conftest.$ac_ext >&5
17486 rm -rf conftest*
17487 cat > conftest.$ac_ext <<EOF
17488 #line 17489 "configure"
17489 #include "confdefs.h"
17490
17491 #include <sys/types.h>
17492 #include <sys/socket.h>
17493
17494 int main() {
17495
17496 size_t len;
17497 getsockname(0, 0, &len);
17498
17499 ; return 0; }
17500 EOF
17501 if { (eval echo configure:17502: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17502 rm -rf conftest*
17503 wx_cv_type_getsockname3=size_t
17504 else
17505 echo "configure: failed program was:" >&5
17506 cat conftest.$ac_ext >&5
17507 rm -rf conftest*
17508 cat > conftest.$ac_ext <<EOF
17509 #line 17510 "configure"
17510 #include "confdefs.h"
17511
17512 #include <sys/types.h>
17513 #include <sys/socket.h>
17514
17515 int main() {
17516
17517 int len;
17518 getsockname(0, 0, &len);
17519
17520 ; return 0; }
17521 EOF
17522 if { (eval echo configure:17523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
17523 rm -rf conftest*
17524 wx_cv_type_getsockname3=int
17525 else
17526 echo "configure: failed program was:" >&5
17527 cat conftest.$ac_ext >&5
17528 rm -rf conftest*
17529 wx_cv_type_getsockname3=unknown
17530
17531 fi
17532 rm -f conftest*
17533
17534 fi
17535 rm -f conftest*
17536
17537 fi
17538 rm -f conftest*
17539
17540 ac_ext=c
17541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
17542 ac_cpp='$CPP $CPPFLAGS'
17543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
17544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
17545 cross_compiling=$ac_cv_prog_cc_cross
17546
17547
17548 fi
17549
17550 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
17551
17552 if test "$wx_cv_type_getsockname3" = "unknown"; then
17553 wxUSE_SOCKETS=no
17554 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
17555 else
17556 cat >> confdefs.h <<EOF
17557 #define SOCKLEN_T $wx_cv_type_getsockname3
17558 EOF
17559
17560 fi
17561 fi
17562 fi
17563
17564 if test "$wxUSE_SOCKETS" = "yes" ; then
17565 cat >> confdefs.h <<\EOF
17566 #define wxUSE_SOCKETS 1
17567 EOF
17568
17569 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
17570 fi
17571
17572
17573 if test "$wxUSE_GUI" = "yes"; then
17574
17575 if test "$TOOLKIT" = "MAC"; then
17576 echo "configure: warning: Joystick not yet supported under Mac OS X... disabled" 1>&2
17577 wxUSE_JOYSTICK=no
17578 fi
17579 if test "$TOOLKIT" = "MOTIF"; then
17580 echo "configure: warning: Joystick not yet supported under Motif... disabled" 1>&2
17581 wxUSE_JOYSTICK=no
17582 fi
17583
17584 if test "$TOOLKIT" != "MSW"; then
17585 if test "$wxUSE_JOYSTICK" = "yes"; then
17586 for ac_hdr in linux/joystick.h
17587 do
17588 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17589 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17590 echo "configure:17591: checking for $ac_hdr" >&5
17591 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17592 echo $ac_n "(cached) $ac_c" 1>&6
17593 else
17594 cat > conftest.$ac_ext <<EOF
17595 #line 17596 "configure"
17596 #include "confdefs.h"
17597 #include <$ac_hdr>
17598 EOF
17599 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17600 { (eval echo configure:17601: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17601 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17602 if test -z "$ac_err"; then
17603 rm -rf conftest*
17604 eval "ac_cv_header_$ac_safe=yes"
17605 else
17606 echo "$ac_err" >&5
17607 echo "configure: failed program was:" >&5
17608 cat conftest.$ac_ext >&5
17609 rm -rf conftest*
17610 eval "ac_cv_header_$ac_safe=no"
17611 fi
17612 rm -f conftest*
17613 fi
17614 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17615 echo "$ac_t""yes" 1>&6
17616 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17617 cat >> confdefs.h <<EOF
17618 #define $ac_tr_hdr 1
17619 EOF
17620
17621 else
17622 echo "$ac_t""no" 1>&6
17623 fi
17624 done
17625
17626 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
17627 wxUSE_JOYSTICK=no
17628 echo "configure: warning: Joystick not supported by this system... disabled" 1>&2
17629 fi
17630 fi
17631 fi
17632
17633 if test "$wxUSE_JOYSTICK" = "yes"; then
17634 cat >> confdefs.h <<\EOF
17635 #define wxUSE_JOYSTICK 1
17636 EOF
17637
17638 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
17639 fi
17640 fi
17641
17642
17643 if test "$TOOLKIT" != "MSW"; then
17644
17645 HAVE_DL_FUNCS=0
17646 HAVE_SHL_FUNCS=0
17647 if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
17648 if test "$USE_DARWIN" = 1; then
17649 HAVE_DL_FUNCS=1
17650 else
17651 for ac_func in dlopen
17652 do
17653 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17654 echo "configure:17655: checking for $ac_func" >&5
17655 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17656 echo $ac_n "(cached) $ac_c" 1>&6
17657 else
17658 cat > conftest.$ac_ext <<EOF
17659 #line 17660 "configure"
17660 #include "confdefs.h"
17661 /* System header to define __stub macros and hopefully few prototypes,
17662 which can conflict with char $ac_func(); below. */
17663 #include <assert.h>
17664 /* Override any gcc2 internal prototype to avoid an error. */
17665 /* We use char because int might match the return type of a gcc2
17666 builtin and then its argument prototype would still apply. */
17667 char $ac_func();
17668
17669 int main() {
17670
17671 /* The GNU C library defines this for functions which it implements
17672 to always fail with ENOSYS. Some functions are actually named
17673 something starting with __ and the normal name is an alias. */
17674 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17675 choke me
17676 #else
17677 $ac_func();
17678 #endif
17679
17680 ; return 0; }
17681 EOF
17682 if { (eval echo configure:17683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17683 rm -rf conftest*
17684 eval "ac_cv_func_$ac_func=yes"
17685 else
17686 echo "configure: failed program was:" >&5
17687 cat conftest.$ac_ext >&5
17688 rm -rf conftest*
17689 eval "ac_cv_func_$ac_func=no"
17690 fi
17691 rm -f conftest*
17692 fi
17693
17694 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17695 echo "$ac_t""yes" 1>&6
17696 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17697 cat >> confdefs.h <<EOF
17698 #define $ac_tr_func 1
17699 EOF
17700
17701 cat >> confdefs.h <<\EOF
17702 #define HAVE_DLOPEN 1
17703 EOF
17704
17705 HAVE_DL_FUNCS=1
17706
17707 else
17708 echo "$ac_t""no" 1>&6
17709 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
17710 echo "configure:17711: checking for dlopen in -ldl" >&5
17711 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
17712 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17713 echo $ac_n "(cached) $ac_c" 1>&6
17714 else
17715 ac_save_LIBS="$LIBS"
17716 LIBS="-ldl $LIBS"
17717 cat > conftest.$ac_ext <<EOF
17718 #line 17719 "configure"
17719 #include "confdefs.h"
17720 /* Override any gcc2 internal prototype to avoid an error. */
17721 /* We use char because int might match the return type of a gcc2
17722 builtin and then its argument prototype would still apply. */
17723 char dlopen();
17724
17725 int main() {
17726 dlopen()
17727 ; return 0; }
17728 EOF
17729 if { (eval echo configure:17730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17730 rm -rf conftest*
17731 eval "ac_cv_lib_$ac_lib_var=yes"
17732 else
17733 echo "configure: failed program was:" >&5
17734 cat conftest.$ac_ext >&5
17735 rm -rf conftest*
17736 eval "ac_cv_lib_$ac_lib_var=no"
17737 fi
17738 rm -f conftest*
17739 LIBS="$ac_save_LIBS"
17740
17741 fi
17742 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17743 echo "$ac_t""yes" 1>&6
17744
17745 cat >> confdefs.h <<\EOF
17746 #define HAVE_DLOPEN 1
17747 EOF
17748
17749 HAVE_DL_FUNCS=1
17750 DL_LINK=" -ldl$DL_LINK"
17751
17752 else
17753 echo "$ac_t""no" 1>&6
17754
17755 for ac_func in shl_load
17756 do
17757 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17758 echo "configure:17759: checking for $ac_func" >&5
17759 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17760 echo $ac_n "(cached) $ac_c" 1>&6
17761 else
17762 cat > conftest.$ac_ext <<EOF
17763 #line 17764 "configure"
17764 #include "confdefs.h"
17765 /* System header to define __stub macros and hopefully few prototypes,
17766 which can conflict with char $ac_func(); below. */
17767 #include <assert.h>
17768 /* Override any gcc2 internal prototype to avoid an error. */
17769 /* We use char because int might match the return type of a gcc2
17770 builtin and then its argument prototype would still apply. */
17771 char $ac_func();
17772
17773 int main() {
17774
17775 /* The GNU C library defines this for functions which it implements
17776 to always fail with ENOSYS. Some functions are actually named
17777 something starting with __ and the normal name is an alias. */
17778 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17779 choke me
17780 #else
17781 $ac_func();
17782 #endif
17783
17784 ; return 0; }
17785 EOF
17786 if { (eval echo configure:17787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17787 rm -rf conftest*
17788 eval "ac_cv_func_$ac_func=yes"
17789 else
17790 echo "configure: failed program was:" >&5
17791 cat conftest.$ac_ext >&5
17792 rm -rf conftest*
17793 eval "ac_cv_func_$ac_func=no"
17794 fi
17795 rm -f conftest*
17796 fi
17797
17798 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17799 echo "$ac_t""yes" 1>&6
17800 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17801 cat >> confdefs.h <<EOF
17802 #define $ac_tr_func 1
17803 EOF
17804
17805 cat >> confdefs.h <<\EOF
17806 #define HAVE_SHL_LOAD 1
17807 EOF
17808
17809 HAVE_SHL_FUNCS=1
17810
17811 else
17812 echo "$ac_t""no" 1>&6
17813 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
17814 echo "configure:17815: checking for dld in -lshl_load" >&5
17815 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
17816 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17817 echo $ac_n "(cached) $ac_c" 1>&6
17818 else
17819 ac_save_LIBS="$LIBS"
17820 LIBS="-lshl_load $LIBS"
17821 cat > conftest.$ac_ext <<EOF
17822 #line 17823 "configure"
17823 #include "confdefs.h"
17824 /* Override any gcc2 internal prototype to avoid an error. */
17825 /* We use char because int might match the return type of a gcc2
17826 builtin and then its argument prototype would still apply. */
17827 char dld();
17828
17829 int main() {
17830 dld()
17831 ; return 0; }
17832 EOF
17833 if { (eval echo configure:17834: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17834 rm -rf conftest*
17835 eval "ac_cv_lib_$ac_lib_var=yes"
17836 else
17837 echo "configure: failed program was:" >&5
17838 cat conftest.$ac_ext >&5
17839 rm -rf conftest*
17840 eval "ac_cv_lib_$ac_lib_var=no"
17841 fi
17842 rm -f conftest*
17843 LIBS="$ac_save_LIBS"
17844
17845 fi
17846 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17847 echo "$ac_t""yes" 1>&6
17848
17849 HAVE_SHL_FUNCS=1
17850 DL_LINK=" -ldld$DL_LINK"
17851
17852 else
17853 echo "$ac_t""no" 1>&6
17854 fi
17855
17856
17857 fi
17858 done
17859
17860
17861 fi
17862
17863
17864 fi
17865 done
17866
17867
17868 if test "$HAVE_DL_FUNCS" = 1; then
17869 for ac_func in dlerror
17870 do
17871 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
17872 echo "configure:17873: checking for $ac_func" >&5
17873 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
17874 echo $ac_n "(cached) $ac_c" 1>&6
17875 else
17876 cat > conftest.$ac_ext <<EOF
17877 #line 17878 "configure"
17878 #include "confdefs.h"
17879 /* System header to define __stub macros and hopefully few prototypes,
17880 which can conflict with char $ac_func(); below. */
17881 #include <assert.h>
17882 /* Override any gcc2 internal prototype to avoid an error. */
17883 /* We use char because int might match the return type of a gcc2
17884 builtin and then its argument prototype would still apply. */
17885 char $ac_func();
17886
17887 int main() {
17888
17889 /* The GNU C library defines this for functions which it implements
17890 to always fail with ENOSYS. Some functions are actually named
17891 something starting with __ and the normal name is an alias. */
17892 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
17893 choke me
17894 #else
17895 $ac_func();
17896 #endif
17897
17898 ; return 0; }
17899 EOF
17900 if { (eval echo configure:17901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17901 rm -rf conftest*
17902 eval "ac_cv_func_$ac_func=yes"
17903 else
17904 echo "configure: failed program was:" >&5
17905 cat conftest.$ac_ext >&5
17906 rm -rf conftest*
17907 eval "ac_cv_func_$ac_func=no"
17908 fi
17909 rm -f conftest*
17910 fi
17911
17912 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
17913 echo "$ac_t""yes" 1>&6
17914 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
17915 cat >> confdefs.h <<EOF
17916 #define $ac_tr_func 1
17917 EOF
17918 cat >> confdefs.h <<\EOF
17919 #define HAVE_DLERROR 1
17920 EOF
17921
17922 else
17923 echo "$ac_t""no" 1>&6
17924 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
17925 echo "configure:17926: checking for dlerror in -ldl" >&5
17926 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
17927 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
17928 echo $ac_n "(cached) $ac_c" 1>&6
17929 else
17930 ac_save_LIBS="$LIBS"
17931 LIBS="-ldl $LIBS"
17932 cat > conftest.$ac_ext <<EOF
17933 #line 17934 "configure"
17934 #include "confdefs.h"
17935 /* Override any gcc2 internal prototype to avoid an error. */
17936 /* We use char because int might match the return type of a gcc2
17937 builtin and then its argument prototype would still apply. */
17938 char dlerror();
17939
17940 int main() {
17941 dlerror()
17942 ; return 0; }
17943 EOF
17944 if { (eval echo configure:17945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
17945 rm -rf conftest*
17946 eval "ac_cv_lib_$ac_lib_var=yes"
17947 else
17948 echo "configure: failed program was:" >&5
17949 cat conftest.$ac_ext >&5
17950 rm -rf conftest*
17951 eval "ac_cv_lib_$ac_lib_var=no"
17952 fi
17953 rm -f conftest*
17954 LIBS="$ac_save_LIBS"
17955
17956 fi
17957 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
17958 echo "$ac_t""yes" 1>&6
17959 cat >> confdefs.h <<\EOF
17960 #define HAVE_DLERROR 1
17961 EOF
17962
17963 else
17964 echo "$ac_t""no" 1>&6
17965 fi
17966
17967 fi
17968 done
17969
17970 fi
17971 fi
17972
17973 if test "$HAVE_DL_FUNCS" = 0; then
17974 if test "$HAVE_SHL_FUNCS" = 0; then
17975 if test "$USE_UNIX" = 1; then
17976 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
17977 wxUSE_DYNAMIC_LOADER=no
17978 wxUSE_DYNLIB_CLASS=no
17979 else
17980 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
17981 fi
17982 fi
17983 fi
17984 fi
17985 fi
17986
17987 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
17988 cat >> confdefs.h <<\EOF
17989 #define wxUSE_DYNAMIC_LOADER 1
17990 EOF
17991
17992 elif test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
17993 cat >> confdefs.h <<\EOF
17994 #define wxUSE_DYNLIB_CLASS 1
17995 EOF
17996
17997 fi
17998
17999
18000 if test "$wxUSE_FONTMAP" = "yes" ; then
18001 cat >> confdefs.h <<\EOF
18002 #define wxUSE_FONTMAP 1
18003 EOF
18004
18005 fi
18006
18007 if test "$wxUSE_UNICODE" = "yes" ; then
18008 cat >> confdefs.h <<\EOF
18009 #define wxUSE_UNICODE 1
18010 EOF
18011
18012
18013 if test "$wxUSE_MSW" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
18014 echo $ac_n "checking for main in -lunicows""... $ac_c" 1>&6
18015 echo "configure:18016: checking for main in -lunicows" >&5
18016 ac_lib_var=`echo unicows'_'main | sed 'y%./+-%__p_%'`
18017 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
18018 echo $ac_n "(cached) $ac_c" 1>&6
18019 else
18020 ac_save_LIBS="$LIBS"
18021 LIBS="-lunicows $LIBS"
18022 cat > conftest.$ac_ext <<EOF
18023 #line 18024 "configure"
18024 #include "confdefs.h"
18025
18026 int main() {
18027 main()
18028 ; return 0; }
18029 EOF
18030 if { (eval echo configure:18031: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
18031 rm -rf conftest*
18032 eval "ac_cv_lib_$ac_lib_var=yes"
18033 else
18034 echo "configure: failed program was:" >&5
18035 cat conftest.$ac_ext >&5
18036 rm -rf conftest*
18037 eval "ac_cv_lib_$ac_lib_var=no"
18038 fi
18039 rm -f conftest*
18040 LIBS="$ac_save_LIBS"
18041
18042 fi
18043 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
18044 echo "$ac_t""yes" 1>&6
18045
18046 cat >> confdefs.h <<\EOF
18047 #define wxUSE_UNICODE_MSLU 1
18048 EOF
18049
18050
18051 else
18052 echo "$ac_t""no" 1>&6
18053
18054 echo "configure: warning: Compiler doesn't support MSLU (libunicows.a), disabled.
18055 Applications will only run on Windows NT/2000/XP!" 1>&2
18056 wxUSE_UNICODE_MSLU=no
18057
18058 fi
18059
18060 fi
18061 fi
18062
18063 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
18064 cat >> confdefs.h <<\EOF
18065 #define wxUSE_EXPERIMENTAL_PRINTF 1
18066 EOF
18067
18068 fi
18069
18070
18071
18072 IODBC_C_SRC=""
18073 if test "$wxUSE_ODBC" = "yes" ; then
18074 cat >> confdefs.h <<\EOF
18075 #define wxUSE_ODBC 1
18076 EOF
18077
18078 WXODBCFLAG="-D_IODBC_"
18079 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
18080 fi
18081
18082
18083 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
18084 cat >> confdefs.h <<\EOF
18085 #define wxUSE_POSTSCRIPT 1
18086 EOF
18087
18088 fi
18089
18090 cat >> confdefs.h <<\EOF
18091 #define wxUSE_AFM_FOR_POSTSCRIPT 1
18092 EOF
18093
18094
18095 cat >> confdefs.h <<\EOF
18096 #define wxUSE_NORMALIZED_PS_FONTS 1
18097 EOF
18098
18099
18100
18101 if test "$wxUSE_CONSTRAINTS" = "yes"; then
18102 cat >> confdefs.h <<\EOF
18103 #define wxUSE_CONSTRAINTS 1
18104 EOF
18105
18106 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
18107 fi
18108
18109 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18110 if test "$wxUSE_UNIVERSAL" = "yes"; then
18111 echo "configure: warning: MDI not yet supported for wxUNIVERSAL... disabled" 1>&2
18112 wxUSE_MDI_ARCHITECTURE=no
18113 fi
18114
18115 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18116 cat >> confdefs.h <<\EOF
18117 #define wxUSE_MDI_ARCHITECTURE 1
18118 EOF
18119
18120 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
18121 fi
18122 fi
18123
18124 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
18125 cat >> confdefs.h <<\EOF
18126 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
18127 EOF
18128
18129 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
18130 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
18131 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
18132 fi
18133 fi
18134
18135 if test "$wxUSE_HELP" = "yes"; then
18136 cat >> confdefs.h <<\EOF
18137 #define wxUSE_HELP 1
18138 EOF
18139
18140 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
18141
18142 if test "$wxUSE_MSW" = 1; then
18143 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
18144 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
18145 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
18146 echo "configure:18147: checking for htmlhelp.h" >&5
18147 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18148 echo $ac_n "(cached) $ac_c" 1>&6
18149 else
18150 cat > conftest.$ac_ext <<EOF
18151 #line 18152 "configure"
18152 #include "confdefs.h"
18153 #include <htmlhelp.h>
18154 EOF
18155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18156 { (eval echo configure:18157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18158 if test -z "$ac_err"; then
18159 rm -rf conftest*
18160 eval "ac_cv_header_$ac_safe=yes"
18161 else
18162 echo "$ac_err" >&5
18163 echo "configure: failed program was:" >&5
18164 cat conftest.$ac_ext >&5
18165 rm -rf conftest*
18166 eval "ac_cv_header_$ac_safe=no"
18167 fi
18168 rm -f conftest*
18169 fi
18170 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18171 echo "$ac_t""yes" 1>&6
18172
18173 cat >> confdefs.h <<\EOF
18174 #define wxUSE_MS_HTML_HELP 1
18175 EOF
18176
18177
18178 else
18179 echo "$ac_t""no" 1>&6
18180
18181 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h... disabled" 1>&2
18182 wxUSE_MS_HTML_HELP=no
18183
18184 fi
18185
18186 fi
18187 fi
18188
18189 if test "$wxUSE_WXHTML_HELP" = "yes"; then
18190 if test "$wxUSE_HTML" = "yes"; then
18191 cat >> confdefs.h <<\EOF
18192 #define wxUSE_WXHTML_HELP 1
18193 EOF
18194
18195 else
18196 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
18197 wxUSE_WXHTML_HELP=no
18198 fi
18199 fi
18200 fi
18201
18202 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
18203 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18204 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
18205 else
18206 cat >> confdefs.h <<\EOF
18207 #define wxUSE_PRINTING_ARCHITECTURE 1
18208 EOF
18209
18210 fi
18211 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
18212 fi
18213
18214 if test "$wxUSE_PROLOGIO" = "yes" ; then
18215 cat >> confdefs.h <<\EOF
18216 #define wxUSE_PROLOGIO 1
18217 EOF
18218
18219 fi
18220
18221 if test "$wxUSE_RESOURCES" = "yes" ; then
18222 cat >> confdefs.h <<\EOF
18223 #define wxUSE_RESOURCES 1
18224 EOF
18225
18226 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
18227 fi
18228
18229 if test "$wxUSE_X_RESOURCES" = "yes"; then
18230 cat >> confdefs.h <<\EOF
18231 #define wxUSE_X_RESOURCES 1
18232 EOF
18233
18234 fi
18235
18236
18237 if test "$wxUSE_MSW" = 1 -a \( "$wxUSE_DATAOBJ" = "yes" \
18238 -o "$wxUSE_CLIPBOARD" = "yes" \
18239 -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
18240 for ac_hdr in ole2.h
18241 do
18242 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
18243 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
18244 echo "configure:18245: checking for $ac_hdr" >&5
18245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
18246 echo $ac_n "(cached) $ac_c" 1>&6
18247 else
18248 cat > conftest.$ac_ext <<EOF
18249 #line 18250 "configure"
18250 #include "confdefs.h"
18251 #include <$ac_hdr>
18252 EOF
18253 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
18254 { (eval echo configure:18255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
18255 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
18256 if test -z "$ac_err"; then
18257 rm -rf conftest*
18258 eval "ac_cv_header_$ac_safe=yes"
18259 else
18260 echo "$ac_err" >&5
18261 echo "configure: failed program was:" >&5
18262 cat conftest.$ac_ext >&5
18263 rm -rf conftest*
18264 eval "ac_cv_header_$ac_safe=no"
18265 fi
18266 rm -f conftest*
18267 fi
18268 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
18269 echo "$ac_t""yes" 1>&6
18270 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
18271 cat >> confdefs.h <<EOF
18272 #define $ac_tr_hdr 1
18273 EOF
18274
18275 else
18276 echo "$ac_t""no" 1>&6
18277 fi
18278 done
18279
18280
18281 if test "$ac_cv_header_ole2_h" = "yes" ; then
18282 if test "$GCC" = yes ; then
18283 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
18284 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
18285 LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
18286 cat >> confdefs.h <<\EOF
18287 #define wxUSE_OLE 1
18288 EOF
18289
18290
18291 fi
18292
18293 cat >> confdefs.h <<\EOF
18294 #define wxUSE_DATAOBJ 1
18295 EOF
18296
18297 else
18298 echo "configure: warning: Some features disabled because OLE headers not found" 1>&2
18299
18300 wxUSE_CLIPBOARD=no
18301 wxUSE_DRAG_AND_DROP=no
18302 wxUSE_DATAOBJ=no
18303 fi
18304
18305 if test "$wxUSE_METAFILE" = "yes"; then
18306 cat >> confdefs.h <<\EOF
18307 #define wxUSE_METAFILE 1
18308 EOF
18309
18310
18311 cat >> confdefs.h <<\EOF
18312 #define wxUSE_ENH_METAFILE 1
18313 EOF
18314
18315 fi
18316 fi
18317
18318 if test "$wxUSE_IPC" = "yes"; then
18319 if test "$wxUSE_SOCKETS" != "yes"; then
18320 echo "configure: warning: wxWindows IPC classes require sockets... disabled" 1>&2
18321 fi
18322
18323 cat >> confdefs.h <<\EOF
18324 #define wxUSE_IPC 1
18325 EOF
18326
18327 fi
18328
18329 if test "$wxUSE_CLIPBOARD" = "yes"; then
18330 cat >> confdefs.h <<\EOF
18331 #define wxUSE_CLIPBOARD 1
18332 EOF
18333
18334
18335 cat >> confdefs.h <<\EOF
18336 #define wxUSE_DATAOBJ 1
18337 EOF
18338
18339 fi
18340
18341 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
18342 if test "$wxUSE_GTK" = 1; then
18343 if test "$WXGTK12" != 1; then
18344 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2... disabled" 1>&2
18345 wxUSE_DRAG_AND_DROP=no
18346 fi
18347 fi
18348
18349 if test "$wxUSE_MOTIF" = 1; then
18350 echo "configure: warning: Drag and drop not yet supported under Motif... disabled" 1>&2
18351 wxUSE_DRAG_AND_DROP=no
18352 fi
18353
18354 if test "$wxUSE_MAC" = 1; then
18355 echo "configure: warning: Drag and drop not yet supported under Mac OS X... disabled" 1>&2
18356 wxUSE_DRAG_AND_DROP=no
18357 fi
18358
18359 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
18360 cat >> confdefs.h <<\EOF
18361 #define wxUSE_DRAG_AND_DROP 1
18362 EOF
18363
18364 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
18365 fi
18366
18367 fi
18368
18369 if test "$wxUSE_SPLINES" = "yes" ; then
18370 cat >> confdefs.h <<\EOF
18371 #define wxUSE_SPLINES 1
18372 EOF
18373
18374 fi
18375
18376
18377 USES_CONTROLS=0
18378 if test "$wxUSE_CONTROLS" = "yes"; then
18379 USES_CONTROLS=1
18380 fi
18381
18382 if test "$wxUSE_ACCEL" = "yes"; then
18383 cat >> confdefs.h <<\EOF
18384 #define wxUSE_ACCEL 1
18385 EOF
18386
18387 USES_CONTROLS=1
18388 fi
18389
18390 if test "$wxUSE_BUTTON" = "yes"; then
18391 cat >> confdefs.h <<\EOF
18392 #define wxUSE_BUTTON 1
18393 EOF
18394
18395 USES_CONTROLS=1
18396 fi
18397
18398 if test "$wxUSE_BMPBUTTON" = "yes"; then
18399 cat >> confdefs.h <<\EOF
18400 #define wxUSE_BMPBUTTON 1
18401 EOF
18402
18403 USES_CONTROLS=1
18404 fi
18405
18406 if test "$wxUSE_CALCTRL" = "yes"; then
18407 cat >> confdefs.h <<\EOF
18408 #define wxUSE_CALENDARCTRL 1
18409 EOF
18410
18411 USES_CONTROLS=1
18412 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
18413 fi
18414
18415 if test "$wxUSE_CARET" = "yes"; then
18416 cat >> confdefs.h <<\EOF
18417 #define wxUSE_CARET 1
18418 EOF
18419
18420 USES_CONTROLS=1
18421 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
18422 fi
18423
18424 if test "$wxUSE_COMBOBOX" = "yes"; then
18425 cat >> confdefs.h <<\EOF
18426 #define wxUSE_COMBOBOX 1
18427 EOF
18428
18429 USES_CONTROLS=1
18430 fi
18431
18432 if test "$wxUSE_CHOICE" = "yes"; then
18433 cat >> confdefs.h <<\EOF
18434 #define wxUSE_CHOICE 1
18435 EOF
18436
18437 USES_CONTROLS=1
18438 fi
18439
18440 if test "$wxUSE_CHECKBOX" = "yes"; then
18441 cat >> confdefs.h <<\EOF
18442 #define wxUSE_CHECKBOX 1
18443 EOF
18444
18445 USES_CONTROLS=1
18446 fi
18447
18448 if test "$wxUSE_CHECKLST" = "yes"; then
18449 cat >> confdefs.h <<\EOF
18450 #define wxUSE_CHECKLISTBOX 1
18451 EOF
18452
18453 USES_CONTROLS=1
18454 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
18455 fi
18456
18457 if test "$wxUSE_GAUGE" = "yes"; then
18458 cat >> confdefs.h <<\EOF
18459 #define wxUSE_GAUGE 1
18460 EOF
18461
18462 USES_CONTROLS=1
18463 fi
18464
18465 if test "$wxUSE_NEW_GRID" = "yes"; then
18466 wxUSE_GRID="yes"
18467 cat >> confdefs.h <<\EOF
18468 #define wxUSE_NEW_GRID 1
18469 EOF
18470
18471 USES_CONTROLS=1
18472 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
18473 fi
18474
18475 if test "$wxUSE_GRID" = "yes"; then
18476 cat >> confdefs.h <<\EOF
18477 #define wxUSE_GRID 1
18478 EOF
18479
18480 USES_CONTROLS=1
18481 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
18482 fi
18483
18484 if test "$wxUSE_IMAGLIST" = "yes"; then
18485 cat >> confdefs.h <<\EOF
18486 #define wxUSE_IMAGLIST 1
18487 EOF
18488
18489 fi
18490
18491 if test "$wxUSE_LISTBOX" = "yes"; then
18492 cat >> confdefs.h <<\EOF
18493 #define wxUSE_LISTBOX 1
18494 EOF
18495
18496 USES_CONTROLS=1
18497 fi
18498
18499 if test "$wxUSE_LISTCTRL" = "yes"; then
18500 if test "$wxUSE_IMAGLIST" = "yes"; then
18501 cat >> confdefs.h <<\EOF
18502 #define wxUSE_LISTCTRL 1
18503 EOF
18504
18505 USES_CONTROLS=1
18506 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
18507 else
18508 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
18509 fi
18510 fi
18511
18512 if test "$wxUSE_NOTEBOOK" = "yes"; then
18513 cat >> confdefs.h <<\EOF
18514 #define wxUSE_NOTEBOOK 1
18515 EOF
18516
18517 USES_CONTROLS=1
18518 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
18519 fi
18520
18521 if test "$wxUSE_PROPSHEET" = "yes"; then
18522 cat >> confdefs.h <<\EOF
18523 #define wxUSE_PROPSHEET 1
18524 EOF
18525
18526 USES_CONTROLS=1
18527 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
18528 fi
18529
18530 if test "$wxUSE_RADIOBOX" = "yes"; then
18531 cat >> confdefs.h <<\EOF
18532 #define wxUSE_RADIOBOX 1
18533 EOF
18534
18535 USES_CONTROLS=1
18536 fi
18537
18538 if test "$wxUSE_RADIOBTN" = "yes"; then
18539 cat >> confdefs.h <<\EOF
18540 #define wxUSE_RADIOBTN 1
18541 EOF
18542
18543 USES_CONTROLS=1
18544 fi
18545
18546 if test "$wxUSE_SASH" = "yes"; then
18547 cat >> confdefs.h <<\EOF
18548 #define wxUSE_SASH 1
18549 EOF
18550
18551 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
18552 fi
18553
18554 if test "$wxUSE_SCROLLBAR" = "yes"; then
18555 cat >> confdefs.h <<\EOF
18556 #define wxUSE_SCROLLBAR 1
18557 EOF
18558
18559 USES_CONTROLS=1
18560 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
18561 fi
18562
18563 if test "$wxUSE_SLIDER" = "yes"; then
18564 cat >> confdefs.h <<\EOF
18565 #define wxUSE_SLIDER 1
18566 EOF
18567
18568 USES_CONTROLS=1
18569 fi
18570
18571 if test "$wxUSE_SPINBTN" = "yes"; then
18572 cat >> confdefs.h <<\EOF
18573 #define wxUSE_SPINBTN 1
18574 EOF
18575
18576 USES_CONTROLS=1
18577 fi
18578
18579 if test "$wxUSE_SPINCTRL" = "yes"; then
18580 cat >> confdefs.h <<\EOF
18581 #define wxUSE_SPINCTRL 1
18582 EOF
18583
18584 USES_CONTROLS=1
18585 fi
18586
18587 if test "$wxUSE_SPLITTER" = "yes"; then
18588 cat >> confdefs.h <<\EOF
18589 #define wxUSE_SPLITTER 1
18590 EOF
18591
18592 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
18593 fi
18594
18595 if test "$wxUSE_STATBMP" = "yes"; then
18596 cat >> confdefs.h <<\EOF
18597 #define wxUSE_STATBMP 1
18598 EOF
18599
18600 USES_CONTROLS=1
18601 fi
18602
18603 if test "$wxUSE_STATBOX" = "yes"; then
18604 cat >> confdefs.h <<\EOF
18605 #define wxUSE_STATBOX 1
18606 EOF
18607
18608 USES_CONTROLS=1
18609 fi
18610
18611 if test "$wxUSE_STATTEXT" = "yes"; then
18612 cat >> confdefs.h <<\EOF
18613 #define wxUSE_STATTEXT 1
18614 EOF
18615
18616 USES_CONTROLS=1
18617 fi
18618
18619 if test "$wxUSE_STATLINE" = "yes"; then
18620 if test "$wxUSE_WINE" = 1 ; then
18621 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
18622 else
18623 cat >> confdefs.h <<\EOF
18624 #define wxUSE_STATLINE 1
18625 EOF
18626
18627 USES_CONTROLS=1
18628 fi
18629 fi
18630
18631 if test "$wxUSE_STATUSBAR" = "yes"; then
18632 cat >> confdefs.h <<\EOF
18633 #define wxUSE_STATUSBAR 1
18634 EOF
18635
18636 USES_CONTROLS=1
18637
18638 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
18639 fi
18640
18641 if test "$wxUSE_TABDIALOG" = "yes"; then
18642 cat >> confdefs.h <<\EOF
18643 #define wxUSE_TAB_DIALOG 1
18644 EOF
18645
18646 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
18647 fi
18648
18649 if test "$wxUSE_TEXTCTRL" = "yes"; then
18650 cat >> confdefs.h <<\EOF
18651 #define wxUSE_TEXTCTRL 1
18652 EOF
18653
18654 USES_CONTROLS=1
18655 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
18656 fi
18657
18658 if test "$wxUSE_TOGGLEBTN" = "yes"; then
18659 if test "$wxUSE_MAC" = 1; then
18660 echo "configure: warning: Toggle button not yet supported under Mac OS X... disabled" 1>&2
18661 wxUSE_TOGGLEBTN=no
18662 fi
18663 if test "$wxUSE_UNIVERSAL" = "yes"; then
18664 echo "configure: warning: Toggle button not yet supported under wxUNIVERSAL... disabled" 1>&2
18665 wxUSE_TOGGLEBTN=no
18666 fi
18667
18668 if test "$wxUSE_TOGGLEBTN" = "yes"; then
18669 cat >> confdefs.h <<\EOF
18670 #define wxUSE_TOGGLEBTN 1
18671 EOF
18672
18673 USES_CONTROLS=1
18674 fi
18675 fi
18676
18677 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
18678 cat >> confdefs.h <<\EOF
18679 #define wxUSE_TOOLBAR_SIMPLE 1
18680 EOF
18681
18682 wxUSE_TOOLBAR="yes"
18683 USES_CONTROLS=1
18684 fi
18685
18686 if test "$wxUSE_TOOLBAR" = "yes"; then
18687 cat >> confdefs.h <<\EOF
18688 #define wxUSE_TOOLBAR 1
18689 EOF
18690
18691 USES_CONTROLS=1
18692
18693 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
18694 wxUSE_TOOLBAR_NATIVE="yes"
18695 fi
18696
18697 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
18698 cat >> confdefs.h <<\EOF
18699 #define wxUSE_TOOLBAR_NATIVE 1
18700 EOF
18701
18702 USES_CONTROLS=1
18703 fi
18704
18705 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
18706 fi
18707
18708 if test "$wxUSE_TOOLTIPS" = "yes"; then
18709 if test "$wxUSE_MOTIF" = 1; then
18710 echo "configure: warning: wxTooltip not supported yet under Motif... disabled" 1>&2
18711 else
18712 if test "$wxUSE_WINE" = 1; then
18713 echo "configure: warning: wxTooltip not supported under WINE... disabled" 1>&2
18714 else
18715 if test "$wxUSE_UNIVERSAL" = "yes"; then
18716 echo "configure: warning: wxTooltip not supported yet in wxUNIVERSAL... disabled" 1>&2
18717 else
18718 cat >> confdefs.h <<\EOF
18719 #define wxUSE_TOOLTIPS 1
18720 EOF
18721
18722 fi
18723 fi
18724 fi
18725 fi
18726
18727 if test "$wxUSE_TREECTRL" = "yes"; then
18728 if test "$wxUSE_IMAGLIST" = "yes"; then
18729 cat >> confdefs.h <<\EOF
18730 #define wxUSE_TREECTRL 1
18731 EOF
18732
18733 USES_CONTROLS=1
18734 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
18735 else
18736 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
18737 fi
18738 fi
18739
18740 if test "$wxUSE_POPUPWIN" = "yes"; then
18741 if test "$wxUSE_MAC" = 1; then
18742 echo "configure: warning: Popup window not yet supported under Mac OS X... disabled" 1>&2
18743 else
18744 if test "$wxUSE_MOTIF" = 1; then
18745 echo "configure: warning: wxPopupWindow not yet supported under Motif... disabled" 1>&2
18746 else
18747 cat >> confdefs.h <<\EOF
18748 #define wxUSE_POPUPWIN 1
18749 EOF
18750
18751
18752 USES_CONTROLS=1
18753 fi
18754 fi
18755 fi
18756
18757 if test "$wxUSE_TIPWINDOW" = "yes"; then
18758 cat >> confdefs.h <<\EOF
18759 #define wxUSE_TIPWINDOW 1
18760 EOF
18761
18762 fi
18763
18764 if test "$USES_CONTROLS" = 1; then
18765 cat >> confdefs.h <<\EOF
18766 #define wxUSE_CONTROLS 1
18767 EOF
18768
18769 fi
18770
18771
18772 if test "$wxUSE_TREELAYOUT" = "yes"; then
18773 cat >> confdefs.h <<\EOF
18774 #define wxUSE_TREELAYOUT 1
18775 EOF
18776
18777 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
18778 fi
18779
18780 if test "$wxUSE_DRAGIMAGE" = "yes"; then
18781 cat >> confdefs.h <<\EOF
18782 #define wxUSE_DRAGIMAGE 1
18783 EOF
18784
18785 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
18786 fi
18787
18788 if test "$wxUSE_MENUS" = "yes"; then
18789 cat >> confdefs.h <<\EOF
18790 #define wxUSE_MENUS 1
18791 EOF
18792
18793 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
18794 fi
18795
18796 if test "$wxUSE_METAFILE" = "yes"; then
18797 cat >> confdefs.h <<\EOF
18798 #define wxUSE_METAFILE 1
18799 EOF
18800
18801 fi
18802
18803 if test "$wxUSE_MIMETYPE" = "yes"; then
18804 cat >> confdefs.h <<\EOF
18805 #define wxUSE_MIMETYPE 1
18806 EOF
18807
18808 fi
18809
18810 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
18811 cat >> confdefs.h <<\EOF
18812 #define wxUSE_SYSTEM_OPTIONS 1
18813 EOF
18814
18815 fi
18816
18817 if test "$wxUSE_MINIFRAME" = "yes"; then
18818 cat >> confdefs.h <<\EOF
18819 #define wxUSE_MINIFRAME 1
18820 EOF
18821
18822 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
18823 fi
18824
18825 if test "$wxUSE_HTML" = "yes"; then
18826 cat >> confdefs.h <<\EOF
18827 #define wxUSE_HTML 1
18828 EOF
18829
18830 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
18831 fi
18832
18833 if test "$wxUSE_VALIDATORS" = "yes"; then
18834 cat >> confdefs.h <<\EOF
18835 #define wxUSE_VALIDATORS 1
18836 EOF
18837
18838 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
18839 fi
18840
18841 if test "$wxUSE_PALETTE" = "yes" ; then
18842 cat >> confdefs.h <<\EOF
18843 #define wxUSE_PALETTE 1
18844 EOF
18845
18846 fi
18847
18848 if test "$wxUSE_IMAGE" = "yes" ; then
18849 cat >> confdefs.h <<\EOF
18850 #define wxUSE_IMAGE 1
18851 EOF
18852
18853 fi
18854
18855 if test "$wxUSE_GIF" = "yes" ; then
18856 cat >> confdefs.h <<\EOF
18857 #define wxUSE_GIF 1
18858 EOF
18859
18860 fi
18861
18862 if test "$wxUSE_PCX" = "yes" ; then
18863 cat >> confdefs.h <<\EOF
18864 #define wxUSE_PCX 1
18865 EOF
18866
18867 fi
18868
18869 if test "$wxUSE_PNM" = "yes" ; then
18870 cat >> confdefs.h <<\EOF
18871 #define wxUSE_PNM 1
18872 EOF
18873
18874 fi
18875
18876 if test "$wxUSE_XPM" = "yes" ; then
18877 cat >> confdefs.h <<\EOF
18878 #define wxUSE_XPM 1
18879 EOF
18880
18881 fi
18882
18883 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
18884 LIBS=" -lunicows $LIBS"
18885 fi
18886
18887
18888 if test "$wxUSE_CHOICEDLG" = "yes"; then
18889 cat >> confdefs.h <<\EOF
18890 #define wxUSE_CHOICEDLG 1
18891 EOF
18892
18893 fi
18894
18895 if test "$wxUSE_COLOURDLG" = "yes"; then
18896 cat >> confdefs.h <<\EOF
18897 #define wxUSE_COLOURDLG 1
18898 EOF
18899
18900 fi
18901
18902 if test "$wxUSE_FILEDLG" = "yes"; then
18903 cat >> confdefs.h <<\EOF
18904 #define wxUSE_FILEDLG 1
18905 EOF
18906
18907 fi
18908
18909 if test "$wxUSE_FINDREPLDLG" = "yes"; then
18910 cat >> confdefs.h <<\EOF
18911 #define wxUSE_FINDREPLDLG 1
18912 EOF
18913
18914 fi
18915
18916 if test "$wxUSE_FONTDLG" = "yes"; then
18917 cat >> confdefs.h <<\EOF
18918 #define wxUSE_FONTDLG 1
18919 EOF
18920
18921 fi
18922
18923 if test "$wxUSE_DIRDLG" = "yes"; then
18924 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18925 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
18926 else
18927 if test "$wxUSE_TREECTRL" != "yes"; then
18928 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
18929 else
18930 cat >> confdefs.h <<\EOF
18931 #define wxUSE_DIRDLG 1
18932 EOF
18933
18934 fi
18935 fi
18936 fi
18937
18938 if test "$wxUSE_MSGDLG" = "yes"; then
18939 cat >> confdefs.h <<\EOF
18940 #define wxUSE_MSGDLG 1
18941 EOF
18942
18943 fi
18944
18945 if test "$wxUSE_NUMBERDLG" = "yes"; then
18946 cat >> confdefs.h <<\EOF
18947 #define wxUSE_NUMBERDLG 1
18948 EOF
18949
18950 fi
18951
18952 if test "$wxUSE_PROGRESSDLG" = "yes"; then
18953 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18954 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
18955 else
18956 cat >> confdefs.h <<\EOF
18957 #define wxUSE_PROGRESSDLG 1
18958 EOF
18959
18960 fi
18961 fi
18962
18963 if test "$wxUSE_SPLASH" = "yes"; then
18964 cat >> confdefs.h <<\EOF
18965 #define wxUSE_SPLASH 1
18966 EOF
18967
18968 fi
18969
18970 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
18971 if test "$wxUSE_CONSTRAINTS" != "yes"; then
18972 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
18973 else
18974 cat >> confdefs.h <<\EOF
18975 #define wxUSE_STARTUP_TIPS 1
18976 EOF
18977
18978 fi
18979 fi
18980
18981 if test "$wxUSE_TEXTDLG" = "yes"; then
18982 cat >> confdefs.h <<\EOF
18983 #define wxUSE_TEXTDLG 1
18984 EOF
18985
18986 fi
18987
18988 if test "$wxUSE_WIZARDDLG" = "yes"; then
18989 cat >> confdefs.h <<\EOF
18990 #define wxUSE_WIZARDDLG 1
18991 EOF
18992
18993 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
18994 fi
18995
18996
18997 if test "$cross_compiling" = "yes"; then
18998 OSINFO="\"$host\""
18999 else
19000 OSINFO=`uname -s -r -m`
19001 OSINFO="\"$OSINFO\""
19002 fi
19003
19004 cat >> confdefs.h <<EOF
19005 #define WXWIN_OS_DESCRIPTION $OSINFO
19006 EOF
19007
19008
19009
19010 if test "x$prefix" != "xNONE"; then
19011 wxPREFIX=$prefix
19012 else
19013 wxPREFIX=$ac_default_prefix
19014 fi
19015
19016 cat >> confdefs.h <<EOF
19017 #define wxINSTALL_PREFIX "$wxPREFIX"
19018 EOF
19019
19020
19021
19022
19023
19024 if test "$wxUSE_MAC" = 1 ; then
19025 LDFLAGS="$LDFLAGS -framework Carbon -framework System"
19026 fi
19027
19028
19029 LIBS="$ZLIB_LINK$POSIX4_LINK$INET_LINK$WCHAR_LINK$THREADS_LINK$DL_LINK -lm$LIBS"
19030
19031 if test "$wxUSE_GUI" = "yes"; then
19032
19033 LIBS=" $GUI_TK_LIBRARY$PNG_LINK$JPEG_LINK$TIFF_LINK$FREETYPE_LINK$LIBS"
19034
19035
19036 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
19037 drawing dynamic erase event exec font image \
19038 minimal richedit rotate widgets"
19039
19040 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
19041 else
19042 SAMPLES_SUBDIRS="console"
19043 fi
19044
19045
19046 INCLUDES="-I\${top_builddir}/lib/wx/include/${TOOLCHAIN_NAME} -I\${top_srcdir}/include \
19047 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
19048 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
19049
19050 if test "$wxUSE_GTK" = 1; then
19051 WXCONFIG_INCLUDE=
19052 else
19053 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
19054 fi
19055
19056 if test "$GXX" = yes ; then
19057 CXXWARNINGS="-Wall"
19058
19059 if test "$wxUSE_NO_DEPS" = "no" ; then
19060 CFLAGS="-MMD $CFLAGS"
19061 CXXFLAGS="-MMD $CXXFLAGS"
19062 fi
19063 fi
19064
19065 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
19066
19067 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
19068 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
19069
19070 LDFLAGS="$LDFLAGS$PROFILE"
19071
19072 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131
19132
19133
19134
19135
19136
19137
19138
19139
19140
19141
19142
19143
19144
19145
19146
19147
19148
19149
19150
19151
19152
19153
19154
19155
19156
19157
19158 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
19159 echo "configure:19160: checking whether ${MAKE-make} sets \${MAKE}" >&5
19160 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
19161 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
19162 echo $ac_n "(cached) $ac_c" 1>&6
19163 else
19164 cat > conftestmake <<\EOF
19165 all:
19166 @echo 'ac_maketemp="${MAKE}"'
19167 EOF
19168 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19169 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
19170 if test -n "$ac_maketemp"; then
19171 eval ac_cv_prog_make_${ac_make}_set=yes
19172 else
19173 eval ac_cv_prog_make_${ac_make}_set=no
19174 fi
19175 rm -f conftestmake
19176 fi
19177 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19178 echo "$ac_t""yes" 1>&6
19179 SET_MAKE=
19180 else
19181 echo "$ac_t""no" 1>&6
19182 SET_MAKE="MAKE=${MAKE-make}"
19183 fi
19184
19185
19186 if test -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h; then
19187 mv -f lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h setup.h
19188 fi
19189
19190
19191
19192 if test "$wxUSE_GUI" = "yes"; then
19193 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
19194 wx_cv_path_ifs=$PATH_IFS
19195 wx_cv_program_ext=$PROGRAM_EXT
19196 wx_cv_target_library=$WX_TARGET_LIBRARY
19197 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
19198 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
19199 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
19200 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
19201 subdirs="demos samples utils contrib"
19202
19203 fi
19204
19205 trap '' 1 2 15
19206 cat > confcache <<\EOF
19207 # This file is a shell script that caches the results of configure
19208 # tests run on this system so they can be shared between configure
19209 # scripts and configure runs. It is not useful on other systems.
19210 # If it contains results you don't want to keep, you may remove or edit it.
19211 #
19212 # By default, configure uses ./config.cache as the cache file,
19213 # creating it if it does not exist already. You can give configure
19214 # the --cache-file=FILE option to use a different cache file; that is
19215 # what configure does when it calls configure scripts in
19216 # subdirectories, so they share the cache.
19217 # Giving --cache-file=/dev/null disables caching, for debugging configure.
19218 # config.status only pays attention to the cache file if you give it the
19219 # --recheck option to rerun configure.
19220 #
19221 EOF
19222 # The following way of writing the cache mishandles newlines in values,
19223 # but we know of no workaround that is simple, portable, and efficient.
19224 # So, don't put newlines in cache variables' values.
19225 # Ultrix sh set writes to stderr and can't be redirected directly,
19226 # and sets the high bit in the cache file unless we assign to the vars.
19227 (set) 2>&1 |
19228 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19229 *ac_space=\ *)
19230 # `set' does not quote correctly, so add quotes (double-quote substitution
19231 # turns \\\\ into \\, and sed turns \\ into \).
19232 sed -n \
19233 -e "s/'/'\\\\''/g" \
19234 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
19235 ;;
19236 *)
19237 # `set' quotes correctly as required by POSIX, so do not add quotes.
19238 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
19239 ;;
19240 esac >> confcache
19241 if cmp -s $cache_file confcache; then
19242 :
19243 else
19244 if test -w $cache_file; then
19245 echo "updating cache $cache_file"
19246 cat confcache > $cache_file
19247 else
19248 echo "not updating unwritable cache $cache_file"
19249 fi
19250 fi
19251 rm -f confcache
19252
19253 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
19254
19255 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19256 # Let make expand exec_prefix.
19257 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19258
19259 # Any assignment to VPATH causes Sun make to only execute
19260 # the first set of double-colon rules, so remove it if not needed.
19261 # If there is a colon in the path, we need to keep it.
19262 if test "x$srcdir" = x.; then
19263 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
19264 fi
19265
19266 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
19267
19268 DEFS=-DHAVE_CONFIG_H
19269
19270 # Without the "./", some shells look in PATH for config.status.
19271 : ${CONFIG_STATUS=./config.status}
19272
19273 echo creating $CONFIG_STATUS
19274 rm -f $CONFIG_STATUS
19275 cat > $CONFIG_STATUS <<EOF
19276 #! /bin/sh
19277 # Generated automatically by configure.
19278 # Run this file to recreate the current configuration.
19279 # This directory was configured as follows,
19280 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19281 #
19282 # $0 $ac_configure_args
19283 #
19284 # Compiler output produced by configure, useful for debugging
19285 # configure, is in ./config.log if it exists.
19286
19287 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
19288 for ac_option
19289 do
19290 case "\$ac_option" in
19291 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19292 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
19293 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
19294 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
19295 echo "$CONFIG_STATUS generated by autoconf version 2.13"
19296 exit 0 ;;
19297 -help | --help | --hel | --he | --h)
19298 echo "\$ac_cs_usage"; exit 0 ;;
19299 *) echo "\$ac_cs_usage"; exit 1 ;;
19300 esac
19301 done
19302
19303 ac_given_srcdir=$srcdir
19304 ac_given_INSTALL="$INSTALL"
19305
19306 trap 'rm -fr `echo "
19307 wx-config
19308 src/make.env
19309 src/makeprog.env
19310 src/makelib.env
19311 Makefile
19312 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
19313 EOF
19314 cat >> $CONFIG_STATUS <<EOF
19315
19316 # Protect against being on the right side of a sed subst in config.status.
19317 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
19318 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
19319 $ac_vpsub
19320 $extrasub
19321 s%@SHELL@%$SHELL%g
19322 s%@CFLAGS@%$CFLAGS%g
19323 s%@CPPFLAGS@%$CPPFLAGS%g
19324 s%@CXXFLAGS@%$CXXFLAGS%g
19325 s%@FFLAGS@%$FFLAGS%g
19326 s%@DEFS@%$DEFS%g
19327 s%@LDFLAGS@%$LDFLAGS%g
19328 s%@LIBS@%$LIBS%g
19329 s%@exec_prefix@%$exec_prefix%g
19330 s%@prefix@%$prefix%g
19331 s%@program_transform_name@%$program_transform_name%g
19332 s%@bindir@%$bindir%g
19333 s%@sbindir@%$sbindir%g
19334 s%@libexecdir@%$libexecdir%g
19335 s%@datadir@%$datadir%g
19336 s%@sysconfdir@%$sysconfdir%g
19337 s%@sharedstatedir@%$sharedstatedir%g
19338 s%@localstatedir@%$localstatedir%g
19339 s%@libdir@%$libdir%g
19340 s%@includedir@%$includedir%g
19341 s%@oldincludedir@%$oldincludedir%g
19342 s%@infodir@%$infodir%g
19343 s%@mandir@%$mandir%g
19344 s%@host@%$host%g
19345 s%@host_alias@%$host_alias%g
19346 s%@host_cpu@%$host_cpu%g
19347 s%@host_vendor@%$host_vendor%g
19348 s%@host_os@%$host_os%g
19349 s%@target@%$target%g
19350 s%@target_alias@%$target_alias%g
19351 s%@target_cpu@%$target_cpu%g
19352 s%@target_vendor@%$target_vendor%g
19353 s%@target_os@%$target_os%g
19354 s%@build@%$build%g
19355 s%@build_alias@%$build_alias%g
19356 s%@build_cpu@%$build_cpu%g
19357 s%@build_vendor@%$build_vendor%g
19358 s%@build_os@%$build_os%g
19359 s%@CC@%$CC%g
19360 s%@CPP@%$CPP%g
19361 s%@CXX@%$CXX%g
19362 s%@RANLIB@%$RANLIB%g
19363 s%@AR@%$AR%g
19364 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
19365 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
19366 s%@INSTALL_DATA@%$INSTALL_DATA%g
19367 s%@STRIP@%$STRIP%g
19368 s%@YACC@%$YACC%g
19369 s%@LEX@%$LEX%g
19370 s%@LEXLIB@%$LEXLIB%g
19371 s%@LN_S@%$LN_S%g
19372 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
19373 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
19374 s%@GTK_LIBS@%$GTK_LIBS%g
19375 s%@GTK_CONFIG@%$GTK_CONFIG%g
19376 s%@X_CFLAGS@%$X_CFLAGS%g
19377 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
19378 s%@X_LIBS@%$X_LIBS%g
19379 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
19380 s%@RESCOMP@%$RESCOMP%g
19381 s%@DEREZ@%$DEREZ%g
19382 s%@CXXCPP@%$CXXCPP%g
19383 s%@LEX_STEM@%$LEX_STEM%g
19384 s%@PATH_IFS@%$PATH_IFS%g
19385 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
19386 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
19387 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
19388 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
19389 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
19390 s%@WX_LIBRARY_IMPORTLIB@%$WX_LIBRARY_IMPORTLIB%g
19391 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
19392 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
19393 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
19394 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
19395 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
19396 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
19397 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
19398 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
19399 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
19400 s%@WX_ALL@%$WX_ALL%g
19401 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
19402 s%@SHARED_LD@%$SHARED_LD%g
19403 s%@PIC_FLAG@%$PIC_FLAG%g
19404 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
19405 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
19406 s%@SONAME_FLAGS@%$SONAME_FLAGS%g
19407 s%@SONAME_FLAGS_GL@%$SONAME_FLAGS_GL%g
19408 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
19409 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
19410 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
19411 s%@USE_GUI@%$USE_GUI%g
19412 s%@AFMINSTALL@%$AFMINSTALL%g
19413 s%@TOOLKIT@%$TOOLKIT%g
19414 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
19415 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
19416 s%@TOOLCHAIN_NAME@%$TOOLCHAIN_NAME%g
19417 s%@TOOLCHAIN_DEFS@%$TOOLCHAIN_DEFS%g
19418 s%@TOOLCHAIN_DLL_DEFS@%$TOOLCHAIN_DLL_DEFS%g
19419 s%@cross_compiling@%$cross_compiling%g
19420 s%@WXCONFIG_LIBS@%$WXCONFIG_LIBS%g
19421 s%@WXCONFIG_LIBS_GL@%$WXCONFIG_LIBS_GL%g
19422 s%@WXCONFIG_LIBS_STATIC@%$WXCONFIG_LIBS_STATIC%g
19423 s%@WXCONFIG_LIBS_STATIC_GL@%$WXCONFIG_LIBS_STATIC_GL%g
19424 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
19425 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
19426 s%@GUIDIST@%$GUIDIST%g
19427 s%@PORT_FILES@%$PORT_FILES%g
19428 s%@DISTDIR@%$DISTDIR%g
19429 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
19430 s%@LDFLAGS_GL@%$LDFLAGS_GL%g
19431 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
19432 s%@DMALLOC_LIBS@%$DMALLOC_LIBS%g
19433 s%@EXTRADEFS@%$EXTRADEFS%g
19434 s%@RESFLAGS@%$RESFLAGS%g
19435 s%@RESPROGRAMOBJ@%$RESPROGRAMOBJ%g
19436 s%@WX_RESOURCES_MACOSX@%$WX_RESOURCES_MACOSX%g
19437 s%@WX_RESOURCES_MACOSX_COMPILED@%$WX_RESOURCES_MACOSX_COMPILED%g
19438 s%@LIBWXMACRES@%$LIBWXMACRES%g
19439 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
19440 s%@LIBWXMACRESWXCONFIG@%$LIBWXMACRESWXCONFIG%g
19441 s%@DLLTOOL@%$DLLTOOL%g
19442 s%@AS@%$AS%g
19443 s%@NM@%$NM%g
19444 s%@LD@%$LD%g
19445 s%@MAKEINFO@%$MAKEINFO%g
19446 s%@INSTALL_LIBRARY@%$INSTALL_LIBRARY%g
19447 s%@SET_MAKE@%$SET_MAKE%g
19448 s%@subdirs@%$subdirs%g
19449
19450 CEOF
19451 EOF
19452
19453 cat >> $CONFIG_STATUS <<\EOF
19454
19455 # Split the substitutions into bite-sized pieces for seds with
19456 # small command number limits, like on Digital OSF/1 and HP-UX.
19457 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
19458 ac_file=1 # Number of current file.
19459 ac_beg=1 # First line for current file.
19460 ac_end=$ac_max_sed_cmds # Line after last line for current file.
19461 ac_more_lines=:
19462 ac_sed_cmds=""
19463 while $ac_more_lines; do
19464 if test $ac_beg -gt 1; then
19465 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
19466 else
19467 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
19468 fi
19469 if test ! -s conftest.s$ac_file; then
19470 ac_more_lines=false
19471 rm -f conftest.s$ac_file
19472 else
19473 if test -z "$ac_sed_cmds"; then
19474 ac_sed_cmds="sed -f conftest.s$ac_file"
19475 else
19476 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
19477 fi
19478 ac_file=`expr $ac_file + 1`
19479 ac_beg=$ac_end
19480 ac_end=`expr $ac_end + $ac_max_sed_cmds`
19481 fi
19482 done
19483 if test -z "$ac_sed_cmds"; then
19484 ac_sed_cmds=cat
19485 fi
19486 EOF
19487
19488 cat >> $CONFIG_STATUS <<EOF
19489
19490 CONFIG_FILES=\${CONFIG_FILES-"wx-config
19491 src/make.env
19492 src/makeprog.env
19493 src/makelib.env
19494 Makefile
19495 "}
19496 EOF
19497 cat >> $CONFIG_STATUS <<\EOF
19498 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
19499 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19500 case "$ac_file" in
19501 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19502 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19503 *) ac_file_in="${ac_file}.in" ;;
19504 esac
19505
19506 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
19507
19508 # Remove last slash and all that follows it. Not all systems have dirname.
19509 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19510 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19511 # The file is in a subdirectory.
19512 test ! -d "$ac_dir" && mkdir "$ac_dir"
19513 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
19514 # A "../" for each directory in $ac_dir_suffix.
19515 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
19516 else
19517 ac_dir_suffix= ac_dots=
19518 fi
19519
19520 case "$ac_given_srcdir" in
19521 .) srcdir=.
19522 if test -z "$ac_dots"; then top_srcdir=.
19523 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
19524 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
19525 *) # Relative path.
19526 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
19527 top_srcdir="$ac_dots$ac_given_srcdir" ;;
19528 esac
19529
19530 case "$ac_given_INSTALL" in
19531 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19532 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19533 esac
19534
19535 echo creating "$ac_file"
19536 rm -f "$ac_file"
19537 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
19538 case "$ac_file" in
19539 *Makefile*) ac_comsub="1i\\
19540 # $configure_input" ;;
19541 *) ac_comsub= ;;
19542 esac
19543
19544 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19545 sed -e "$ac_comsub
19546 s%@configure_input@%$configure_input%g
19547 s%@srcdir@%$srcdir%g
19548 s%@top_srcdir@%$top_srcdir%g
19549 s%@INSTALL@%$INSTALL%g
19550 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
19551 fi; done
19552 rm -f conftest.s*
19553
19554 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
19555 # NAME is the cpp macro being defined and VALUE is the value it is being given.
19556 #
19557 # ac_d sets the value in "#define NAME VALUE" lines.
19558 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
19559 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
19560 ac_dC='\3'
19561 ac_dD='%g'
19562 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
19563 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19564 ac_uB='\([ ]\)%\1#\2define\3'
19565 ac_uC=' '
19566 ac_uD='\4%g'
19567 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
19568 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
19569 ac_eB='$%\1#\2define\3'
19570 ac_eC=' '
19571 ac_eD='%g'
19572
19573 if test "${CONFIG_HEADERS+set}" != set; then
19574 EOF
19575 cat >> $CONFIG_STATUS <<EOF
19576 CONFIG_HEADERS="setup.h:setup.h.in"
19577 EOF
19578 cat >> $CONFIG_STATUS <<\EOF
19579 fi
19580 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
19581 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19582 case "$ac_file" in
19583 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
19584 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19585 *) ac_file_in="${ac_file}.in" ;;
19586 esac
19587
19588 echo creating $ac_file
19589
19590 rm -f conftest.frag conftest.in conftest.out
19591 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
19592 cat $ac_file_inputs > conftest.in
19593
19594 EOF
19595
19596 # Transform confdefs.h into a sed script conftest.vals that substitutes
19597 # the proper values into config.h.in to produce config.h. And first:
19598 # Protect against being on the right side of a sed subst in config.status.
19599 # Protect against being in an unquoted here document in config.status.
19600 rm -f conftest.vals
19601 cat > conftest.hdr <<\EOF
19602 s/[\\&%]/\\&/g
19603 s%[\\$`]%\\&%g
19604 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
19605 s%ac_d%ac_u%gp
19606 s%ac_u%ac_e%gp
19607 EOF
19608 sed -n -f conftest.hdr confdefs.h > conftest.vals
19609 rm -f conftest.hdr
19610
19611 # This sed command replaces #undef with comments. This is necessary, for
19612 # example, in the case of _POSIX_SOURCE, which is predefined and required
19613 # on some systems where configure will not decide to define it.
19614 cat >> conftest.vals <<\EOF
19615 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
19616 EOF
19617
19618 # Break up conftest.vals because some shells have a limit on
19619 # the size of here documents, and old seds have small limits too.
19620
19621 rm -f conftest.tail
19622 while :
19623 do
19624 ac_lines=`grep -c . conftest.vals`
19625 # grep -c gives empty output for an empty file on some AIX systems.
19626 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
19627 # Write a limited-size here document to conftest.frag.
19628 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
19629 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
19630 echo 'CEOF
19631 sed -f conftest.frag conftest.in > conftest.out
19632 rm -f conftest.in
19633 mv conftest.out conftest.in
19634 ' >> $CONFIG_STATUS
19635 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
19636 rm -f conftest.vals
19637 mv conftest.tail conftest.vals
19638 done
19639 rm -f conftest.vals
19640
19641 cat >> $CONFIG_STATUS <<\EOF
19642 rm -f conftest.frag conftest.h
19643 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
19644 cat conftest.in >> conftest.h
19645 rm -f conftest.in
19646 if cmp -s $ac_file conftest.h 2>/dev/null; then
19647 echo "$ac_file is unchanged"
19648 rm -f conftest.h
19649 else
19650 # Remove last slash and all that follows it. Not all systems have dirname.
19651 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
19652 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
19653 # The file is in a subdirectory.
19654 test ! -d "$ac_dir" && mkdir "$ac_dir"
19655 fi
19656 rm -f $ac_file
19657 mv conftest.h $ac_file
19658 fi
19659 fi; done
19660
19661 EOF
19662 cat >> $CONFIG_STATUS <<EOF
19663
19664 TOOLCHAIN_NAME="${TOOLCHAIN_NAME}"
19665 LN_S="${LN_S}"
19666
19667
19668 EOF
19669 cat >> $CONFIG_STATUS <<\EOF
19670
19671 if test ! -h wx-config; then
19672 chmod +x wx-config
19673 mv wx-config wx${TOOLCHAIN_NAME}-config
19674 ${LN_S} wx${TOOLCHAIN_NAME}-config wx-config
19675 fi
19676
19677 if test ! -d lib; then
19678 mkdir lib
19679 fi
19680 if test ! -d lib/wx; then
19681 mkdir lib/wx
19682 fi
19683 if test ! -d lib/wx/include; then
19684 mkdir lib/wx/include
19685 fi
19686 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}; then
19687 mkdir lib/wx/include/${TOOLCHAIN_NAME}
19688 fi
19689 if test ! -d lib/wx/include/${TOOLCHAIN_NAME}/wx; then
19690 mkdir lib/wx/include/${TOOLCHAIN_NAME}/wx
19691 fi
19692 if test -f setup.h; then
19693 mv -f setup.h lib/wx/include/${TOOLCHAIN_NAME}/wx/setup.h
19694 fi
19695
19696 exit 0
19697 EOF
19698 chmod +x $CONFIG_STATUS
19699 rm -fr confdefs* $ac_clean_files
19700 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
19701
19702 if test "$no_recursion" != yes; then
19703
19704 # Remove --cache-file and --srcdir arguments so they do not pile up.
19705 ac_sub_configure_args=
19706 ac_prev=
19707 for ac_arg in $ac_configure_args; do
19708 if test -n "$ac_prev"; then
19709 ac_prev=
19710 continue
19711 fi
19712 case "$ac_arg" in
19713 -cache-file | --cache-file | --cache-fil | --cache-fi \
19714 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
19715 ac_prev=cache_file ;;
19716 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
19717 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
19718 ;;
19719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
19720 ac_prev=srcdir ;;
19721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
19722 ;;
19723 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
19724 esac
19725 done
19726
19727 for ac_config_dir in demos samples utils contrib; do
19728
19729 # Do not complain, so a configure script can configure whichever
19730 # parts of a large source tree are present.
19731 if test ! -d $srcdir/$ac_config_dir; then
19732 continue
19733 fi
19734
19735 echo configuring in $ac_config_dir
19736
19737 case "$srcdir" in
19738 .) ;;
19739 *)
19740 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
19741 else
19742 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
19743 fi
19744 ;;
19745 esac
19746
19747 ac_popdir=`pwd`
19748 cd $ac_config_dir
19749
19750 # A "../" for each directory in /$ac_config_dir.
19751 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
19752
19753 case "$srcdir" in
19754 .) # No --srcdir option. We are building in place.
19755 ac_sub_srcdir=$srcdir ;;
19756 /*) # Absolute path.
19757 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
19758 *) # Relative path.
19759 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
19760 esac
19761
19762 # Check for guested configure; otherwise get Cygnus style configure.
19763 if test -f $ac_sub_srcdir/configure; then
19764 ac_sub_configure=$ac_sub_srcdir/configure
19765 elif test -f $ac_sub_srcdir/configure.in; then
19766 ac_sub_configure=$ac_configure
19767 else
19768 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
19769 ac_sub_configure=
19770 fi
19771
19772 # The recursion is here.
19773 if test -n "$ac_sub_configure"; then
19774
19775 # Make the cache file name correct relative to the subdirectory.
19776 case "$cache_file" in
19777 /*) ac_sub_cache_file=$cache_file ;;
19778 *) # Relative path.
19779 ac_sub_cache_file="$ac_dots$cache_file" ;;
19780 esac
19781 case "$ac_given_INSTALL" in
19782 [/$]*) INSTALL="$ac_given_INSTALL" ;;
19783 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
19784 esac
19785
19786 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
19787 # The eval makes quoting arguments work.
19788 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
19789 then :
19790 else
19791 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
19792 fi
19793 fi
19794
19795 cd $ac_popdir
19796 done
19797 fi
19798
19799