]> git.saurik.com Git - wxWidgets.git/blob - configure
1e507cec3897f485d530e2b564d71d02c56f88c8
[wxWidgets.git] / configure
1 #! /bin/sh
2
3 # From configure.in Id: configure.in
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 # Configure paths for GTK+
40 # Owen Taylor 97-11-3
41
42
43
44
45
46
47 # Guess values for system-dependent variables and create Makefiles.
48 # Generated automatically using autoconf version 2.13
49 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
50 #
51 # This configure script is free software; the Free Software Foundation
52 # gives unlimited permission to copy, distribute and modify it.
53
54 # Defaults:
55 ac_help=
56 ac_default_prefix=/usr/local
57 # Any additions from configure.in:
58 ac_help="$ac_help
59 --enable-gui use GUI classes"
60 ac_help="$ac_help
61 --enable-universal use wxWindows GUI controls instead of native ones"
62 ac_help="$ac_help
63 --with-gtk use GTK+"
64 ac_help="$ac_help
65 --with-motif use Motif/Lesstif"
66 ac_help="$ac_help
67 --with-mac use Mac OS X"
68 ac_help="$ac_help
69 --with-wine use WINE"
70 ac_help="$ac_help
71 --with-cygwin use Cygwin for MS-Windows"
72 ac_help="$ac_help
73 --with-mingw use GCC Minimal MS-Windows"
74 ac_help="$ac_help
75 --with-pm use OS/2 Presentation Manager"
76 ac_help="$ac_help
77 --with-mgl use MGL"
78 ac_help="$ac_help
79 --enable-gtk2 use GTK+ 2.0 if available (EXPERIMENTAL)"
80 ac_help="$ac_help
81 --with-libpng use libpng (PNG image format)"
82 ac_help="$ac_help
83 --with-libjpeg use libjpeg (JPEG file format)"
84 ac_help="$ac_help
85 --with-libtiff use libtiff (TIFF file format)"
86 ac_help="$ac_help
87 --with-freetype use freetype (font rasterizer)"
88 ac_help="$ac_help
89 --with-opengl use OpenGL (or Mesa)"
90 ac_help="$ac_help
91 --with-dmalloc use dmalloc library (www.letters.com/dmalloc)"
92 ac_help="$ac_help
93 --with-regex enable support for wxRegEx class"
94 ac_help="$ac_help
95 --with-zlib use zlib for LZW compression"
96 ac_help="$ac_help
97 --with-odbc use the IODBC and wxODBC classes"
98 ac_help="$ac_help
99 --enable-shared create shared library code"
100 ac_help="$ac_help
101 --enable-burnt_name create set name in shared library "
102 ac_help="$ac_help
103 --enable-optimise create optimised code"
104 ac_help="$ac_help
105 --enable-debug same as debug_flag and debug_info"
106 ac_help="$ac_help
107 --enable-debug_flag set __WXDEBUG__ flag (recommended for developers!)"
108 ac_help="$ac_help
109 --enable-debug_info create code with debugging information"
110 ac_help="$ac_help
111 --enable-debug_gdb create code with extra GDB debugging information"
112 ac_help="$ac_help
113 --enable-debug_cntxt use wxDebugContext"
114 ac_help="$ac_help
115 --enable-mem_tracing create code with memory tracing"
116 ac_help="$ac_help
117 --enable-profile create code with profiling information"
118 ac_help="$ac_help
119 --enable-no_rtti create code without RTTI information"
120 ac_help="$ac_help
121 --enable-no_exceptions create code without exceptions information"
122 ac_help="$ac_help
123 --enable-permissive compile code disregarding strict ANSI"
124 ac_help="$ac_help
125 --enable-no_deps create code without dependency information"
126 ac_help="$ac_help
127 --enable-compat20 enable wxWin 2.0 compatibility"
128 ac_help="$ac_help
129 --enable-compat22 enable wxWin 2.2 compatibility"
130 ac_help="$ac_help
131 --enable-intl use internationalization system"
132 ac_help="$ac_help
133 --enable-config use wxConfig (and derived) classes"
134 ac_help="$ac_help
135 --enable-sockets use socket/network classes"
136 ac_help="$ac_help
137 --enable-ipc use interprocess communication (wxSocket etc.)"
138 ac_help="$ac_help
139 --enable-cmdline use wxCmdLineParser class"
140 ac_help="$ac_help
141 --enable-datetime use wxDateTime class"
142 ac_help="$ac_help
143 --enable-timedate use obsolete wxDate/wxTime classes"
144 ac_help="$ac_help
145 --enable-stopwatch use wxStopWatch class"
146 ac_help="$ac_help
147 --enable-dialupman use dialup network classes"
148 ac_help="$ac_help
149 --enable-apple_ieee use the Apple IEEE codec"
150 ac_help="$ac_help
151 --enable-timer use wxTimer class"
152 ac_help="$ac_help
153 --enable-wave use wxWave class"
154 ac_help="$ac_help
155 --enable-fraction use wxFraction class"
156 ac_help="$ac_help
157 --enable-dynlib use wxLibrary class for DLL loading"
158 ac_help="$ac_help
159 --enable-longlong use wxLongLong class"
160 ac_help="$ac_help
161 --enable-geometry use geometry class"
162 ac_help="$ac_help
163 --enable-log use logging system"
164 ac_help="$ac_help
165 --enable-streams use wxStream etc classes"
166 ac_help="$ac_help
167 --enable-file use wxFile classes"
168 ac_help="$ac_help
169 --enable-ffile use wxFFile classes"
170 ac_help="$ac_help
171 --enable-textfile use wxTextFile classes"
172 ac_help="$ac_help
173 --enable-fontmap use font encodings conversion classes"
174 ac_help="$ac_help
175 --enable-unicode compile wxString with Unicode support"
176 ac_help="$ac_help
177 --enable-wcsrtombs use wcsrtombs instead of buggy (GNU libc1/Linux libc5) wcstombs"
178 ac_help="$ac_help
179 --enable-wxprintfv use wxWindows implementation of vprintf()"
180 ac_help="$ac_help
181 --enable-std_iostreams use standard C++ stream classes"
182 ac_help="$ac_help
183 --enable-filesystem use virtual file systems classes"
184 ac_help="$ac_help
185 --enable-fs_inet use virtual HTTP/FTP filesystems"
186 ac_help="$ac_help
187 --enable-fs_zip use virtual ZIP filesystems"
188 ac_help="$ac_help
189 --enable-zipstream use wxZipInputStream"
190 ac_help="$ac_help
191 --enable-catch_segvs catch signals and pass them to wxApp::OnFatalException"
192 ac_help="$ac_help
193 --enable-snglinst use wxSingleInstanceChecker class"
194 ac_help="$ac_help
195 --enable-mimetypes use wxMimeTypesManager"
196 ac_help="$ac_help
197 --enable-sysoptions use wxSystemOptions"
198 ac_help="$ac_help
199 --enable-threads use threads"
200 ac_help="$ac_help
201 --enable-serial use class serialization"
202 ac_help="$ac_help
203 --enable-docview use document view architecture"
204 ac_help="$ac_help
205 --enable-help use help subsystem"
206 ac_help="$ac_help
207 --enable-mshtmlhelp use MS HTML Help (win32)"
208 ac_help="$ac_help
209 --enable-html use wxHTML sub-library"
210 ac_help="$ac_help
211 --enable-htmlhelp use wxHTML-based help"
212 ac_help="$ac_help
213 --enable-constraints use layout-constraints system"
214 ac_help="$ac_help
215 --enable-printarch use printing architecture"
216 ac_help="$ac_help
217 --enable-mdi use multiple document interface architecture"
218 ac_help="$ac_help
219 --enable-loggui use standard GUI logger"
220 ac_help="$ac_help
221 --enable-logwin use wxLogWindow"
222 ac_help="$ac_help
223 --enable-postscript use wxPostscriptDC device context (default for gtk+)"
224 ac_help="$ac_help
225 --enable-prologio use Prolog IO library"
226 ac_help="$ac_help
227 --enable-resources use wxWindows resources"
228 ac_help="$ac_help
229 --enable-xresources use X resources for save (default for gtk+)"
230 ac_help="$ac_help
231 --enable-clipboard use wxClipboard classes"
232 ac_help="$ac_help
233 --enable-dnd use Drag'n'Drop classes"
234 ac_help="$ac_help
235 --enable-metafile use win32 metafiles"
236 ac_help="$ac_help
237 --enable-treelayout use wxTreeLayout classes"
238 ac_help="$ac_help
239 --enable-controls use all usual controls"
240 ac_help="$ac_help
241 --enable-accel use accelerators"
242 ac_help="$ac_help
243 --enable-button use wxButton class"
244 ac_help="$ac_help
245 --enable-bmpbutton use wxBitmapButton class"
246 ac_help="$ac_help
247 --enable-calendar use wxCalendarCtrl class"
248 ac_help="$ac_help
249 --enable-caret use wxCaret class"
250 ac_help="$ac_help
251 --enable-checkbox use wxCheckBox class"
252 ac_help="$ac_help
253 --enable-checklst use wxCheckListBox (listbox with checkboxes) class"
254 ac_help="$ac_help
255 --enable-choice use wxChoice class"
256 ac_help="$ac_help
257 --enable-combobox use wxComboBox classes"
258 ac_help="$ac_help
259 --enable-gauge use wxGauge class"
260 ac_help="$ac_help
261 --enable-grid use wxGrid class"
262 ac_help="$ac_help
263 --enable-newgrid use new wxGrid class"
264 ac_help="$ac_help
265 --enable-imaglist use wxImageList class"
266 ac_help="$ac_help
267 --enable-listbox use wxListBox class"
268 ac_help="$ac_help
269 --enable-listctrl use wxListCtrl class"
270 ac_help="$ac_help
271 --enable-notebook use wxNotebook class"
272 ac_help="$ac_help
273 --enable-propsheet use wxPropertySheet class"
274 ac_help="$ac_help
275 --enable-radiobox use wxRadioBox class"
276 ac_help="$ac_help
277 --enable-radiobtn use wxRadioButton class"
278 ac_help="$ac_help
279 --enable-sash use wxSashWindow class"
280 ac_help="$ac_help
281 --enable-scrollbar use wxScrollBar class and scrollable windows"
282 ac_help="$ac_help
283 --enable-slider use wxSlider class"
284 ac_help="$ac_help
285 --enable-spinbtn use wxSpinButton class"
286 ac_help="$ac_help
287 --enable-spinctrl use wxSpinCtrl class"
288 ac_help="$ac_help
289 --enable-splitter use wxSplitterWindow class"
290 ac_help="$ac_help
291 --enable-statbmp use wxStaticBitmap class"
292 ac_help="$ac_help
293 --enable-statbox use wxStaticBox class"
294 ac_help="$ac_help
295 --enable-statline use wxStaticLine class"
296 ac_help="$ac_help
297 --enable-stattext use wxStaticText class"
298 ac_help="$ac_help
299 --enable-statusbar use wxStatusBar class"
300 ac_help="$ac_help
301 --enable-tabdialog use wxTabControl class"
302 ac_help="$ac_help
303 --enable-textctrl use wxTextCtrl class"
304 ac_help="$ac_help
305 --enable-togglebtn use wxToggleButton class"
306 ac_help="$ac_help
307 --enable-toolbar use wxToolBar class"
308 ac_help="$ac_help
309 --enable-tbarnative use native wxToolBar class"
310 ac_help="$ac_help
311 --enable-tbarsmpl use wxToolBarSimple class"
312 ac_help="$ac_help
313 --enable-treectrl use wxTreeCtrl class"
314 ac_help="$ac_help
315 --enable-popupwin use wxPopUpWindow class"
316 ac_help="$ac_help
317 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
318 ac_help="$ac_help
319 --enable-choicedlg use wxChoiceDialog"
320 ac_help="$ac_help
321 --enable-coldlg use wxColourDialog"
322 ac_help="$ac_help
323 --enable-filedlg use wxFileDialog"
324 ac_help="$ac_help
325 --enable-finddlg use wxFindReplaceDialog"
326 ac_help="$ac_help
327 --enable-fontdlg use wxFontDialog"
328 ac_help="$ac_help
329 --enable-dirdlg use wxDirDialog"
330 ac_help="$ac_help
331 --enable-msgdlg use wxMessageDialog"
332 ac_help="$ac_help
333 --enable-numberdlg use wxNumberEntryDialog"
334 ac_help="$ac_help
335 --enable-splash use wxSplashScreen"
336 ac_help="$ac_help
337 --enable-textdlg use wxTextDialog"
338 ac_help="$ac_help
339 --enable-tipdlg use startup tips"
340 ac_help="$ac_help
341 --enable-progressdlg use wxProgressDialog"
342 ac_help="$ac_help
343 --enable-wizarddlg use wxWizard"
344 ac_help="$ac_help
345 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
346 ac_help="$ac_help
347 --enable-miniframe use wxMiniFrame class"
348 ac_help="$ac_help
349 --enable-tooltips use wxToolTip class"
350 ac_help="$ac_help
351 --enable-splines use spline drawing code"
352 ac_help="$ac_help
353 --enable-validators use wxValidator and derived classes"
354 ac_help="$ac_help
355 --enable-busyinfo use wxBusyInfo"
356 ac_help="$ac_help
357 --enable-joystick compile in joystick support (Linux only)"
358 ac_help="$ac_help
359 --enable-metafiles use wxMetaFile (Windows only)"
360 ac_help="$ac_help
361 --enable-dragimage use wxDragImage"
362 ac_help="$ac_help
363 --enable-image use wxImage class"
364 ac_help="$ac_help
365 --enable-gif use gif images (GIF file format)"
366 ac_help="$ac_help
367 --enable-pcx use pcx images (PCX file format)"
368 ac_help="$ac_help
369 --enable-pnm use pnm images (PNM file format)"
370 ac_help="$ac_help
371 --enable-xpm use xpm images (XPM file format)"
372 ac_help="$ac_help
373 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
374 ac_help="$ac_help
375 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
376 ac_help="$ac_help
377 --disable-gtktest Do not try to compile and run a test GTK program"
378 ac_help="$ac_help
379 --with-x use the X Window System"
380
381 # Initialize some variables set by options.
382 # The variables have the same names as the options, with
383 # dashes changed to underlines.
384 build=NONE
385 cache_file=./config.cache
386 exec_prefix=NONE
387 host=NONE
388 no_create=
389 nonopt=NONE
390 no_recursion=
391 prefix=NONE
392 program_prefix=NONE
393 program_suffix=NONE
394 program_transform_name=s,x,x,
395 silent=
396 site=
397 srcdir=
398 target=NONE
399 verbose=
400 x_includes=NONE
401 x_libraries=NONE
402 bindir='${exec_prefix}/bin'
403 sbindir='${exec_prefix}/sbin'
404 libexecdir='${exec_prefix}/libexec'
405 datadir='${prefix}/share'
406 sysconfdir='${prefix}/etc'
407 sharedstatedir='${prefix}/com'
408 localstatedir='${prefix}/var'
409 libdir='${exec_prefix}/lib'
410 includedir='${prefix}/include'
411 oldincludedir='/usr/include'
412 infodir='${prefix}/info'
413 mandir='${prefix}/man'
414
415 # Initialize some other variables.
416 subdirs=
417 MFLAGS= MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419 # Maximum number of lines to put in a shell here document.
420 ac_max_here_lines=12
421
422 ac_prev=
423 for ac_option
424 do
425
426 # If the previous option needs an argument, assign it.
427 if test -n "$ac_prev"; then
428 eval "$ac_prev=\$ac_option"
429 ac_prev=
430 continue
431 fi
432
433 case "$ac_option" in
434 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
435 *) ac_optarg= ;;
436 esac
437
438 # Accept the important Cygnus configure options, so we can diagnose typos.
439
440 case "$ac_option" in
441
442 -bindir | --bindir | --bindi | --bind | --bin | --bi)
443 ac_prev=bindir ;;
444 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
445 bindir="$ac_optarg" ;;
446
447 -build | --build | --buil | --bui | --bu)
448 ac_prev=build ;;
449 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
450 build="$ac_optarg" ;;
451
452 -cache-file | --cache-file | --cache-fil | --cache-fi \
453 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
454 ac_prev=cache_file ;;
455 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
456 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
457 cache_file="$ac_optarg" ;;
458
459 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
460 ac_prev=datadir ;;
461 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
462 | --da=*)
463 datadir="$ac_optarg" ;;
464
465 -disable-* | --disable-*)
466 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
467 # Reject names that are not valid shell variable names.
468 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
469 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
470 fi
471 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
472 eval "enable_${ac_feature}=no" ;;
473
474 -enable-* | --enable-*)
475 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
476 # Reject names that are not valid shell variable names.
477 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
478 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
479 fi
480 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
481 case "$ac_option" in
482 *=*) ;;
483 *) ac_optarg=yes ;;
484 esac
485 eval "enable_${ac_feature}='$ac_optarg'" ;;
486
487 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
488 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
489 | --exec | --exe | --ex)
490 ac_prev=exec_prefix ;;
491 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
492 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
493 | --exec=* | --exe=* | --ex=*)
494 exec_prefix="$ac_optarg" ;;
495
496 -gas | --gas | --ga | --g)
497 # Obsolete; use --with-gas.
498 with_gas=yes ;;
499
500 -help | --help | --hel | --he)
501 # Omit some internal or obsolete options to make the list less imposing.
502 # This message is too long to be a string in the A/UX 3.1 sh.
503 cat << EOF
504 Usage: configure [options] [host]
505 Options: [defaults in brackets after descriptions]
506 Configuration:
507 --cache-file=FILE cache test results in FILE
508 --help print this message
509 --no-create do not create output files
510 --quiet, --silent do not print \`checking...' messages
511 --version print the version of autoconf that created configure
512 Directory and file names:
513 --prefix=PREFIX install architecture-independent files in PREFIX
514 [$ac_default_prefix]
515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
516 [same as prefix]
517 --bindir=DIR user executables in DIR [EPREFIX/bin]
518 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
519 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
520 --datadir=DIR read-only architecture-independent data in DIR
521 [PREFIX/share]
522 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
523 --sharedstatedir=DIR modifiable architecture-independent data in DIR
524 [PREFIX/com]
525 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
526 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
527 --includedir=DIR C header files in DIR [PREFIX/include]
528 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
529 --infodir=DIR info documentation in DIR [PREFIX/info]
530 --mandir=DIR man documentation in DIR [PREFIX/man]
531 --srcdir=DIR find the sources in DIR [configure dir or ..]
532 --program-prefix=PREFIX prepend PREFIX to installed program names
533 --program-suffix=SUFFIX append SUFFIX to installed program names
534 --program-transform-name=PROGRAM
535 run sed PROGRAM on installed program names
536 EOF
537 cat << EOF
538 Host type:
539 --build=BUILD configure for building on BUILD [BUILD=HOST]
540 --host=HOST configure for HOST [guessed]
541 --target=TARGET configure for TARGET [TARGET=HOST]
542 Features and packages:
543 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
544 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
547 --x-includes=DIR X include files are in DIR
548 --x-libraries=DIR X library files are in DIR
549 EOF
550 if test -n "$ac_help"; then
551 echo "--enable and --with options recognized:$ac_help"
552 fi
553 exit 0 ;;
554
555 -host | --host | --hos | --ho)
556 ac_prev=host ;;
557 -host=* | --host=* | --hos=* | --ho=*)
558 host="$ac_optarg" ;;
559
560 -includedir | --includedir | --includedi | --included | --include \
561 | --includ | --inclu | --incl | --inc)
562 ac_prev=includedir ;;
563 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
564 | --includ=* | --inclu=* | --incl=* | --inc=*)
565 includedir="$ac_optarg" ;;
566
567 -infodir | --infodir | --infodi | --infod | --info | --inf)
568 ac_prev=infodir ;;
569 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
570 infodir="$ac_optarg" ;;
571
572 -libdir | --libdir | --libdi | --libd)
573 ac_prev=libdir ;;
574 -libdir=* | --libdir=* | --libdi=* | --libd=*)
575 libdir="$ac_optarg" ;;
576
577 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
578 | --libexe | --libex | --libe)
579 ac_prev=libexecdir ;;
580 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
581 | --libexe=* | --libex=* | --libe=*)
582 libexecdir="$ac_optarg" ;;
583
584 -localstatedir | --localstatedir | --localstatedi | --localstated \
585 | --localstate | --localstat | --localsta | --localst \
586 | --locals | --local | --loca | --loc | --lo)
587 ac_prev=localstatedir ;;
588 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
589 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
590 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
591 localstatedir="$ac_optarg" ;;
592
593 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
594 ac_prev=mandir ;;
595 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
596 mandir="$ac_optarg" ;;
597
598 -nfp | --nfp | --nf)
599 # Obsolete; use --without-fp.
600 with_fp=no ;;
601
602 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
603 | --no-cr | --no-c)
604 no_create=yes ;;
605
606 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
607 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
608 no_recursion=yes ;;
609
610 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
611 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
612 | --oldin | --oldi | --old | --ol | --o)
613 ac_prev=oldincludedir ;;
614 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
615 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
616 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
617 oldincludedir="$ac_optarg" ;;
618
619 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
620 ac_prev=prefix ;;
621 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
622 prefix="$ac_optarg" ;;
623
624 -program-prefix | --program-prefix | --program-prefi | --program-pref \
625 | --program-pre | --program-pr | --program-p)
626 ac_prev=program_prefix ;;
627 -program-prefix=* | --program-prefix=* | --program-prefi=* \
628 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
629 program_prefix="$ac_optarg" ;;
630
631 -program-suffix | --program-suffix | --program-suffi | --program-suff \
632 | --program-suf | --program-su | --program-s)
633 ac_prev=program_suffix ;;
634 -program-suffix=* | --program-suffix=* | --program-suffi=* \
635 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
636 program_suffix="$ac_optarg" ;;
637
638 -program-transform-name | --program-transform-name \
639 | --program-transform-nam | --program-transform-na \
640 | --program-transform-n | --program-transform- \
641 | --program-transform | --program-transfor \
642 | --program-transfo | --program-transf \
643 | --program-trans | --program-tran \
644 | --progr-tra | --program-tr | --program-t)
645 ac_prev=program_transform_name ;;
646 -program-transform-name=* | --program-transform-name=* \
647 | --program-transform-nam=* | --program-transform-na=* \
648 | --program-transform-n=* | --program-transform-=* \
649 | --program-transform=* | --program-transfor=* \
650 | --program-transfo=* | --program-transf=* \
651 | --program-trans=* | --program-tran=* \
652 | --progr-tra=* | --program-tr=* | --program-t=*)
653 program_transform_name="$ac_optarg" ;;
654
655 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
656 | -silent | --silent | --silen | --sile | --sil)
657 silent=yes ;;
658
659 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
660 ac_prev=sbindir ;;
661 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
662 | --sbi=* | --sb=*)
663 sbindir="$ac_optarg" ;;
664
665 -sharedstatedir | --sharedstatedir | --sharedstatedi \
666 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
667 | --sharedst | --shareds | --shared | --share | --shar \
668 | --sha | --sh)
669 ac_prev=sharedstatedir ;;
670 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
671 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
672 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
673 | --sha=* | --sh=*)
674 sharedstatedir="$ac_optarg" ;;
675
676 -site | --site | --sit)
677 ac_prev=site ;;
678 -site=* | --site=* | --sit=*)
679 site="$ac_optarg" ;;
680
681 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
682 ac_prev=srcdir ;;
683 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
684 srcdir="$ac_optarg" ;;
685
686 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
687 | --syscon | --sysco | --sysc | --sys | --sy)
688 ac_prev=sysconfdir ;;
689 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
690 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
691 sysconfdir="$ac_optarg" ;;
692
693 -target | --target | --targe | --targ | --tar | --ta | --t)
694 ac_prev=target ;;
695 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
696 target="$ac_optarg" ;;
697
698 -v | -verbose | --verbose | --verbos | --verbo | --verb)
699 verbose=yes ;;
700
701 -version | --version | --versio | --versi | --vers)
702 echo "configure generated by autoconf version 2.13"
703 exit 0 ;;
704
705 -with-* | --with-*)
706 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
707 # Reject names that are not valid shell variable names.
708 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
709 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
710 fi
711 ac_package=`echo $ac_package| sed 's/-/_/g'`
712 case "$ac_option" in
713 *=*) ;;
714 *) ac_optarg=yes ;;
715 esac
716 eval "with_${ac_package}='$ac_optarg'" ;;
717
718 -without-* | --without-*)
719 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
720 # Reject names that are not valid shell variable names.
721 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
722 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
723 fi
724 ac_package=`echo $ac_package| sed 's/-/_/g'`
725 eval "with_${ac_package}=no" ;;
726
727 --x)
728 # Obsolete; use --with-x.
729 with_x=yes ;;
730
731 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
732 | --x-incl | --x-inc | --x-in | --x-i)
733 ac_prev=x_includes ;;
734 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
735 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
736 x_includes="$ac_optarg" ;;
737
738 -x-libraries | --x-libraries | --x-librarie | --x-librari \
739 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
740 ac_prev=x_libraries ;;
741 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
742 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
743 x_libraries="$ac_optarg" ;;
744
745 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
746 ;;
747
748 *)
749 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
750 echo "configure: warning: $ac_option: invalid host type" 1>&2
751 fi
752 if test "x$nonopt" != xNONE; then
753 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
754 fi
755 nonopt="$ac_option"
756 ;;
757
758 esac
759 done
760
761 if test -n "$ac_prev"; then
762 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
763 fi
764
765 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
766
767 # File descriptor usage:
768 # 0 standard input
769 # 1 file creation
770 # 2 errors and warnings
771 # 3 some systems may open it to /dev/tty
772 # 4 used on the Kubota Titan
773 # 6 checking for... messages and results
774 # 5 compiler messages saved in config.log
775 if test "$silent" = yes; then
776 exec 6>/dev/null
777 else
778 exec 6>&1
779 fi
780 exec 5>./config.log
781
782 echo "\
783 This file contains any messages produced by compilers while
784 running configure, to aid debugging if configure makes a mistake.
785 " 1>&5
786
787 # Strip out --no-create and --no-recursion so they do not pile up.
788 # Also quote any args containing shell metacharacters.
789 ac_configure_args=
790 for ac_arg
791 do
792 case "$ac_arg" in
793 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
794 | --no-cr | --no-c) ;;
795 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
796 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
797 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
798 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
799 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
800 esac
801 done
802
803 # NLS nuisances.
804 # Only set these to C if already set. These must not be set unconditionally
805 # because not all systems understand e.g. LANG=C (notably SCO).
806 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
807 # Non-C LC_CTYPE values break the ctype check.
808 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
809 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
810 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
811 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
812
813 # confdefs.h avoids OS command line length limits that DEFS can exceed.
814 rm -rf conftest* confdefs.h
815 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
816 echo > confdefs.h
817
818 # A filename unique to this package, relative to the directory that
819 # configure is in, which we can look for to find out if srcdir is correct.
820 ac_unique_file=wx-config.in
821
822 # Find the source files, if location was not specified.
823 if test -z "$srcdir"; then
824 ac_srcdir_defaulted=yes
825 # Try the directory containing this script, then its parent.
826 ac_prog=$0
827 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
828 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
829 srcdir=$ac_confdir
830 if test ! -r $srcdir/$ac_unique_file; then
831 srcdir=..
832 fi
833 else
834 ac_srcdir_defaulted=no
835 fi
836 if test ! -r $srcdir/$ac_unique_file; then
837 if test "$ac_srcdir_defaulted" = yes; then
838 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
839 else
840 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
841 fi
842 fi
843 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
844
845 # Prefer explicitly selected file to automatically selected ones.
846 if test -z "$CONFIG_SITE"; then
847 if test "x$prefix" != xNONE; then
848 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
849 else
850 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
851 fi
852 fi
853 for ac_site_file in $CONFIG_SITE; do
854 if test -r "$ac_site_file"; then
855 echo "loading site script $ac_site_file"
856 . "$ac_site_file"
857 fi
858 done
859
860 if test -r "$cache_file"; then
861 echo "loading cache $cache_file"
862 . $cache_file
863 else
864 echo "creating cache $cache_file"
865 > $cache_file
866 fi
867
868 ac_ext=c
869 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
870 ac_cpp='$CPP $CPPFLAGS'
871 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
872 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
873 cross_compiling=$ac_cv_prog_cc_cross
874
875 ac_exeext=
876 ac_objext=o
877 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
878 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
879 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
880 ac_n= ac_c='
881 ' ac_t=' '
882 else
883 ac_n=-n ac_c= ac_t=
884 fi
885 else
886 ac_n= ac_c='\c' ac_t=
887 fi
888
889
890
891 ac_aux_dir=
892 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
893 if test -f $ac_dir/install-sh; then
894 ac_aux_dir=$ac_dir
895 ac_install_sh="$ac_aux_dir/install-sh -c"
896 break
897 elif test -f $ac_dir/install.sh; then
898 ac_aux_dir=$ac_dir
899 ac_install_sh="$ac_aux_dir/install.sh -c"
900 break
901 fi
902 done
903 if test -z "$ac_aux_dir"; then
904 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
905 fi
906 ac_config_guess=$ac_aux_dir/config.guess
907 ac_config_sub=$ac_aux_dir/config.sub
908 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
909
910
911 # Do some error checking and defaulting for the host and target type.
912 # The inputs are:
913 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
914 #
915 # The rules are:
916 # 1. You are not allowed to specify --host, --target, and nonopt at the
917 # same time.
918 # 2. Host defaults to nonopt.
919 # 3. If nonopt is not specified, then host defaults to the current host,
920 # as determined by config.guess.
921 # 4. Target and build default to nonopt.
922 # 5. If nonopt is not specified, then target and build default to host.
923
924 # The aliases save the names the user supplied, while $host etc.
925 # will get canonicalized.
926 case $host---$target---$nonopt in
927 NONE---*---* | *---NONE---* | *---*---NONE) ;;
928 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
929 esac
930
931
932 # Make sure we can run config.sub.
933 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
934 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
935 fi
936
937 echo $ac_n "checking host system type""... $ac_c" 1>&6
938 echo "configure:939: checking host system type" >&5
939
940 host_alias=$host
941 case "$host_alias" in
942 NONE)
943 case $nonopt in
944 NONE)
945 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
946 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
947 fi ;;
948 *) host_alias=$nonopt ;;
949 esac ;;
950 esac
951
952 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
953 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
954 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
955 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
956 echo "$ac_t""$host" 1>&6
957
958 echo $ac_n "checking target system type""... $ac_c" 1>&6
959 echo "configure:960: checking target system type" >&5
960
961 target_alias=$target
962 case "$target_alias" in
963 NONE)
964 case $nonopt in
965 NONE) target_alias=$host_alias ;;
966 *) target_alias=$nonopt ;;
967 esac ;;
968 esac
969
970 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
971 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
972 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
973 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
974 echo "$ac_t""$target" 1>&6
975
976 echo $ac_n "checking build system type""... $ac_c" 1>&6
977 echo "configure:978: checking build system type" >&5
978
979 build_alias=$build
980 case "$build_alias" in
981 NONE)
982 case $nonopt in
983 NONE) build_alias=$host_alias ;;
984 *) build_alias=$nonopt ;;
985 esac ;;
986 esac
987
988 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
989 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
990 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
991 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
992 echo "$ac_t""$build" 1>&6
993
994 test "$host_alias" != "$target_alias" &&
995 test "$program_prefix$program_suffix$program_transform_name" = \
996 NONENONEs,x,x, &&
997 program_prefix=${target_alias}-
998
999
1000
1001 WX_MAJOR_VERSION_NUMBER=2
1002 WX_MINOR_VERSION_NUMBER=3
1003 WX_RELEASE_NUMBER=2
1004
1005 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1006 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1007
1008 WX_CURRENT=1
1009 WX_REVISION=0
1010 WX_AGE=0
1011
1012
1013
1014 USE_UNIX=1
1015 USE_WIN32=0
1016 USE_BEOS=0
1017 USE_MAC=0
1018
1019 USE_LINUX=
1020 USE_SGI=
1021 USE_HPUX=
1022 USE_SYSV=
1023 USE_SVR4=
1024 USE_AIX=
1025 USE_SUN=
1026 USE_SOLARIS=
1027 USE_SUNOS=
1028 USE_ALPHA=
1029 USE_OSF=
1030 USE_BSD=
1031 USE_DARWIN=
1032 USE_FREEBSD=
1033 USE_OPENBSD=
1034 USE_NETBSD=
1035 USE_VMS=
1036 USE_ULTRIX=
1037 USE_CYGWIN=
1038 USE_MINGW=
1039 USE_DATA_GENERAL=
1040
1041 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1042
1043 ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1044
1045 DEFAULT_wxUSE_GTK=0
1046 DEFAULT_wxUSE_MAC=0
1047 DEFAULT_wxUSE_MGL=0
1048 DEFAULT_wxUSE_MOTIF=0
1049 DEFAULT_wxUSE_MSW=0
1050 DEFAULT_wxUSE_PM=0
1051 DEFAULT_wxUSE_WINE=0
1052
1053 DEFAULT_DEFAULT_wxUSE_GTK=0
1054 DEFAULT_DEFAULT_wxUSE_MAC=0
1055 DEFAULT_DEFAULT_wxUSE_MGL=0
1056 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1057 DEFAULT_DEFAULT_wxUSE_MSW=0
1058 DEFAULT_DEFAULT_wxUSE_PM=0
1059 DEFAULT_DEFAULT_wxUSE_WINE=0
1060
1061 PROGRAM_EXT=
1062
1063 case "${host}" in
1064 *-hp-hpux* )
1065 USE_HPUX=1
1066 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1067 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1068 cat >> confdefs.h <<\EOF
1069 #define __HPUX__ 1
1070 EOF
1071
1072 ;;
1073 *-*-linux* )
1074 USE_LINUX=1
1075 cat >> confdefs.h <<\EOF
1076 #define __LINUX__ 1
1077 EOF
1078
1079 TMP=`uname -m`
1080 if test "x$TMP" = "xalpha"; then
1081 USE_ALPHA=1
1082 cat >> confdefs.h <<\EOF
1083 #define __ALPHA__ 1
1084 EOF
1085
1086 fi
1087 DEFAULT_DEFAULT_wxUSE_GTK=1
1088 ;;
1089 *-*-irix5* | *-*-irix6* )
1090 USE_SGI=1
1091 USE_SVR4=1
1092 cat >> confdefs.h <<\EOF
1093 #define __SGI__ 1
1094 EOF
1095
1096 cat >> confdefs.h <<\EOF
1097 #define __SVR4__ 1
1098 EOF
1099
1100 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1101 ;;
1102 *-*-solaris2* )
1103 USE_SUN=1
1104 USE_SOLARIS=1
1105 USE_SVR4=1
1106 cat >> confdefs.h <<\EOF
1107 #define __SUN__ 1
1108 EOF
1109
1110 cat >> confdefs.h <<\EOF
1111 #define __SOLARIS__ 1
1112 EOF
1113
1114 cat >> confdefs.h <<\EOF
1115 #define __SVR4__ 1
1116 EOF
1117
1118 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1119 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1120 ;;
1121 *-*-sunos4* )
1122 USE_SUN=1
1123 USE_SUNOS=1
1124 USE_BSD=1
1125 cat >> confdefs.h <<\EOF
1126 #define __SUN__ 1
1127 EOF
1128
1129 cat >> confdefs.h <<\EOF
1130 #define __SUNOS__ 1
1131 EOF
1132
1133 cat >> confdefs.h <<\EOF
1134 #define __BSD__ 1
1135 EOF
1136
1137 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1138 ;;
1139 *-*-freebsd*)
1140 USE_BSD=1
1141 USE_FREEBSD=1
1142 cat >> confdefs.h <<\EOF
1143 #define __FREEBSD__ 1
1144 EOF
1145
1146 cat >> confdefs.h <<\EOF
1147 #define __BSD__ 1
1148 EOF
1149
1150 DEFAULT_DEFAULT_wxUSE_GTK=1
1151 ;;
1152 *-*-openbsd*)
1153 USE_BSD=1
1154 USE_OPENBSD=1
1155 cat >> confdefs.h <<\EOF
1156 #define __FREEBSD__ 1
1157 EOF
1158
1159 cat >> confdefs.h <<\EOF
1160 #define __OPENBSD__ 1
1161 EOF
1162
1163 DEFAULT_DEFAULT_wxUSE_GTK=1
1164 ;;
1165 *-*-netbsd*)
1166 USE_BSD=1
1167 USE_NETBSD=1
1168 cat >> confdefs.h <<\EOF
1169 #define __FREEBSD__ 1
1170 EOF
1171
1172 cat >> confdefs.h <<\EOF
1173 #define __NETBSD__ 1
1174 EOF
1175
1176 DEFAULT_DEFAULT_wxUSE_GTK=1
1177 ;;
1178 *-*-osf* )
1179 USE_ALPHA=1
1180 USE_OSF=1
1181 cat >> confdefs.h <<\EOF
1182 #define __ALPHA__ 1
1183 EOF
1184
1185 cat >> confdefs.h <<\EOF
1186 #define __OSF__ 1
1187 EOF
1188
1189 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1190 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1191 ;;
1192 *-*-dgux5* )
1193 USE_ALPHA=1
1194 USE_SVR4=1
1195 cat >> confdefs.h <<\EOF
1196 #define __ALPHA__ 1
1197 EOF
1198
1199 cat >> confdefs.h <<\EOF
1200 #define __SVR4__ 1
1201 EOF
1202
1203 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1204 ;;
1205 *-*-sysv5* )
1206 USE_SYSV=1
1207 USE_SVR4=1
1208 cat >> confdefs.h <<\EOF
1209 #define __SYSV__ 1
1210 EOF
1211
1212 cat >> confdefs.h <<\EOF
1213 #define __SVR4__ 1
1214 EOF
1215
1216 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1217 ;;
1218 *-*-aix* )
1219 USE_AIX=1
1220 USE_SYSV=1
1221 USE_SVR4=1
1222 cat >> confdefs.h <<\EOF
1223 #define __AIX__ 1
1224 EOF
1225
1226 cat >> confdefs.h <<\EOF
1227 #define __SYSV__ 1
1228 EOF
1229
1230 cat >> confdefs.h <<\EOF
1231 #define __SVR4__ 1
1232 EOF
1233
1234 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1235 ;;
1236
1237 *-*-cygwin* | *-*-mingw32* )
1238 USE_UNIX=0
1239 USE_WIN32=1
1240 cat >> confdefs.h <<\EOF
1241 #define __WIN32__ 1
1242 EOF
1243
1244 cat >> confdefs.h <<\EOF
1245 #define __WIN95__ 1
1246 EOF
1247
1248 cat >> confdefs.h <<\EOF
1249 #define __WINDOWS__ 1
1250 EOF
1251
1252 cat >> confdefs.h <<\EOF
1253 #define __GNUWIN32__ 1
1254 EOF
1255
1256 cat >> confdefs.h <<\EOF
1257 #define STRICT 1
1258 EOF
1259
1260 cat >> confdefs.h <<\EOF
1261 #define WINVER 0x0400
1262 EOF
1263
1264 PROGRAM_EXT=".exe"
1265 DEFAULT_DEFAULT_wxUSE_MSW=1
1266 ;;
1267
1268 *-pc-os2_emx )
1269 cat >> confdefs.h <<\EOF
1270 #define __EMX__ 1
1271 EOF
1272
1273 PROGRAM_EXT=".exe"
1274 DEFAULT_DEFAULT_wxUSE_PM=1
1275 ;;
1276
1277 *-*-darwin* )
1278 USE_BSD=1
1279 USE_DARWIN=1
1280 cat >> confdefs.h <<\EOF
1281 #define __BSD__ 1
1282 EOF
1283
1284 cat >> confdefs.h <<\EOF
1285 #define __DARWIN__ 1
1286 EOF
1287
1288 cat >> confdefs.h <<\EOF
1289 #define __UNIX__ 1
1290 EOF
1291
1292 DEFAULT_DEFAULT_wxUSE_MAC=1
1293 ;;
1294
1295 *-*-beos* )
1296 USE_BEOS=1
1297 cat >> confdefs.h <<\EOF
1298 #define __BEOS__ 1
1299 EOF
1300
1301 ;;
1302
1303 *)
1304 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1305 esac
1306
1307 if test "$USE_UNIX" = 1 ; then
1308 wxUSE_UNIX=yes
1309 cat >> confdefs.h <<\EOF
1310 #define __UNIX__ 1
1311 EOF
1312
1313
1314 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1315 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1316 fi
1317
1318 if test "$USE_BEOS" = 1; then
1319 SRC_SUBDIRS="$SRC_SUBDIRS be"
1320 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1321 fi
1322
1323 if test "$USE_LINUX" = 1; then
1324 echo $ac_n "checking for glibc version""... $ac_c" 1>&6
1325 echo "configure:1326: checking for glibc version" >&5
1326 if eval "test \"`echo '$''{'wx_lib_glibc21'+set}'`\" = set"; then
1327 echo $ac_n "(cached) $ac_c" 1>&6
1328 else
1329 cat > conftest.$ac_ext <<EOF
1330 #line 1331 "configure"
1331 #include "confdefs.h"
1332 #include <features.h>
1333 int main() {
1334
1335 #if !__GLIBC_PREREQ(2, 1)
1336 #error not glibc2.1
1337 #endif
1338
1339 ; return 0; }
1340 EOF
1341 if { (eval echo configure:1342: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1342 rm -rf conftest*
1343
1344 echo "$ac_t""2.1 or later" 1>&6
1345 fi
1346
1347 echo "$ac_t""$wx_lib_glibc21" 1>&6
1348
1349 if test "$wx_lib_glibc21" = "yes"; then
1350 cat >> confdefs.h <<\EOF
1351 #define wxHAVE_GLIBC2 1
1352 EOF
1353 )
1354 fi
1355 fi
1356
1357
1358
1359
1360 wx_arg_cache_file="configarg.cache"
1361 echo "loading argument cache $wx_arg_cache_file"
1362 rm -f ${wx_arg_cache_file}.tmp
1363 touch ${wx_arg_cache_file}.tmp
1364 touch ${wx_arg_cache_file}
1365
1366
1367 DEBUG_CONFIGURE=0
1368 if test $DEBUG_CONFIGURE = 1; then
1369 DEFAULT_wxUSE_UNIVERSAL=no
1370
1371 DEFAULT_wxUSE_THREADS=yes
1372
1373 DEFAULT_wxUSE_SHARED=yes
1374 DEFAULT_wxUSE_BURNT_NAME=no
1375 DEFAULT_wxUSE_OPTIMISE=no
1376 DEFAULT_wxUSE_PROFILE=no
1377 DEFAULT_wxUSE_NO_DEPS=no
1378 DEFAULT_wxUSE_NO_RTTI=no
1379 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1380 DEFAULT_wxUSE_PERMISSIVE=no
1381 DEFAULT_wxUSE_DEBUG_FLAG=yes
1382 DEFAULT_wxUSE_DEBUG_INFO=yes
1383 DEFAULT_wxUSE_DEBUG_GDB=yes
1384 DEFAULT_wxUSE_MEM_TRACING=no
1385 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1386 DEFAULT_wxUSE_DMALLOC=no
1387 DEFAULT_wxUSE_APPLE_IEEE=no
1388
1389 DEFAULT_wxUSE_LOG=yes
1390 DEFAULT_wxUSE_LOGWINDOW=no
1391 DEFAULT_wxUSE_LOGGUI=no
1392
1393 DEFAULT_wxUSE_GUI=yes
1394 DEFAULT_wxUSE_CONTROLS=no
1395
1396 DEFAULT_wxUSE_REGEX=no
1397 DEFAULT_wxUSE_ZLIB=no
1398 DEFAULT_wxUSE_LIBPNG=no
1399 DEFAULT_wxUSE_LIBJPEG=no
1400 DEFAULT_wxUSE_LIBTIFF=no
1401 DEFAULT_wxUSE_ODBC=no
1402 DEFAULT_wxUSE_FREETYPE=no
1403 DEFAULT_wxUSE_OPENGL=no
1404
1405 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1406 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1407 DEFAULT_wxUSE_STD_IOSTREAM=no
1408 DEFAULT_wxUSE_CMDLINE_PARSER=no
1409 DEFAULT_wxUSE_DATETIME=no
1410 DEFAULT_wxUSE_TIMEDATE=no
1411 DEFAULT_wxUSE_TIMER=no
1412 DEFAULT_wxUSE_STOPWATCH=no
1413 DEFAULT_wxUSE_FILE=no
1414 DEFAULT_wxUSE_FFILE=no
1415 DEFAULT_wxUSE_TEXTFILE=no
1416 DEFAULT_wxUSE_WAVE=no
1417 DEFAULT_wxUSE_INTL=no
1418 DEFAULT_wxUSE_CONFIG=no
1419 DEFAULT_wxUSE_FONTMAP=no
1420 DEFAULT_wxUSE_STREAMS=no
1421 DEFAULT_wxUSE_SOCKETS=no
1422 DEFAULT_wxUSE_DIALUP_MANAGER=no
1423 DEFAULT_wxUSE_SERIAL=no
1424 DEFAULT_wxUSE_JOYSTICK=no
1425 DEFAULT_wxUSE_DYNLIB_CLASS=no
1426 DEFAULT_wxUSE_LONGLONG=no
1427 DEFAULT_wxUSE_GEOMETRY=no
1428
1429 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1430 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1431 DEFAULT_wxUSE_POSTSCRIPT=no
1432
1433 DEFAULT_wxUSE_X_RESOURCES=no
1434 DEFAULT_wxUSE_CLIPBOARD=no
1435 DEFAULT_wxUSE_TOOLTIPS=no
1436 DEFAULT_wxUSE_DRAG_AND_DROP=no
1437 DEFAULT_wxUSE_DRAGIMAGE=no
1438 DEFAULT_wxUSE_SPLINES=no
1439
1440 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1441 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1442 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1443
1444 DEFAULT_wxUSE_PROLOGIO=no
1445 DEFAULT_wxUSE_RESOURCES=no
1446 DEFAULT_wxUSE_CONSTRAINTS=no
1447 DEFAULT_wxUSE_IPC=no
1448 DEFAULT_wxUSE_HELP=no
1449 DEFAULT_wxUSE_MS_HTML_HELP=no
1450 DEFAULT_wxUSE_WXHTML_HELP=no
1451 DEFAULT_wxUSE_TREELAYOUT=no
1452 DEFAULT_wxUSE_METAFILE=no
1453 DEFAULT_wxUSE_MIMETYPE=no
1454 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1455
1456 DEFAULT_wxUSE_COMMONDLGS=no
1457 DEFAULT_wxUSE_CHOICEDLG=no
1458 DEFAULT_wxUSE_COLOURDLG=no
1459 DEFAULT_wxUSE_DIRDLG=no
1460 DEFAULT_wxUSE_FILEDLG=no
1461 DEFAULT_wxUSE_FINDREPLDLG=no
1462 DEFAULT_wxUSE_FONTDLG=no
1463 DEFAULT_wxUSE_MSGDLG=no
1464 DEFAULT_wxUSE_NUMBERDLG=no
1465 DEFAULT_wxUSE_TEXTDLG=no
1466 DEFAULT_wxUSE_SPLASH=no
1467 DEFAULT_wxUSE_STARTUP_TIPS=no
1468 DEFAULT_wxUSE_PROGRESSDLG=no
1469 DEFAULT_wxUSE_WIZARDDLG=no
1470
1471 DEFAULT_wxUSE_MENUS=no
1472 DEFAULT_wxUSE_MINIFRAME=no
1473 DEFAULT_wxUSE_HTML=no
1474 DEFAULT_wxUSE_FILESYSTEM=no
1475 DEFAULT_wxUSE_FS_INET=no
1476 DEFAULT_wxUSE_FS_ZIP=no
1477 DEFAULT_wxUSE_BUSYINFO=no
1478 DEFAULT_wxUSE_ZIPSTREAM=no
1479 DEFAULT_wxUSE_VALIDATORS=no
1480
1481 DEFAULT_wxUSE_ACCEL=no
1482 DEFAULT_wxUSE_BUTTON=no
1483 DEFAULT_wxUSE_BMPBUTTON=no
1484 DEFAULT_wxUSE_CALCTRL=no
1485 DEFAULT_wxUSE_CARET=no
1486 DEFAULT_wxUSE_CHECKBOX=no
1487 DEFAULT_wxUSE_CHECKLST=no
1488 DEFAULT_wxUSE_CHOICE=no
1489 DEFAULT_wxUSE_COMBOBOX=no
1490 DEFAULT_wxUSE_GAUGE=no
1491 DEFAULT_wxUSE_GRID=no
1492 DEFAULT_wxUSE_NEW_GRID=no
1493 DEFAULT_wxUSE_IMAGLIST=no
1494 DEFAULT_wxUSE_LISTBOX=no
1495 DEFAULT_wxUSE_LISTCTRL=no
1496 DEFAULT_wxUSE_NOTEBOOK=no
1497 DEFAULT_wxUSE_PROPSHEET=no
1498 DEFAULT_wxUSE_RADIOBOX=no
1499 DEFAULT_wxUSE_RADIOBTN=no
1500 DEFAULT_wxUSE_SASH=no
1501 DEFAULT_wxUSE_SCROLLBAR=no
1502 DEFAULT_wxUSE_SLIDER=no
1503 DEFAULT_wxUSE_SPINBTN=no
1504 DEFAULT_wxUSE_SPINCTRL=no
1505 DEFAULT_wxUSE_SPLITTER=no
1506 DEFAULT_wxUSE_STATBMP=no
1507 DEFAULT_wxUSE_STATBOX=no
1508 DEFAULT_wxUSE_STATLINE=no
1509 DEFAULT_wxUSE_STATTEXT=no
1510 DEFAULT_wxUSE_STATUSBAR=yes
1511 DEFAULT_wxUSE_TABDIALOG=no
1512 DEFAULT_wxUSE_TEXTCTRL=no
1513 DEFAULT_wxUSE_TOGGLEBTN=no
1514 DEFAULT_wxUSE_TOOLBAR=no
1515 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1516 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1517 DEFAULT_wxUSE_TREECTRL=no
1518 DEFAULT_wxUSE_POPUPWIN=no
1519
1520 DEFAULT_wxUSE_UNICODE=no
1521 DEFAULT_wxUSE_WCSRTOMBS=no
1522
1523 DEFAULT_wxUSE_IMAGE=no
1524 DEFAULT_wxUSE_GIF=no
1525 DEFAULT_wxUSE_PCX=no
1526 DEFAULT_wxUSE_PNM=no
1527 DEFAULT_wxUSE_XPM=no
1528 else
1529 DEFAULT_wxUSE_UNIVERSAL=no
1530
1531 DEFAULT_wxUSE_THREADS=yes
1532
1533 DEFAULT_wxUSE_SHARED=yes
1534 DEFAULT_wxUSE_BURNT_NAME=no
1535 DEFAULT_wxUSE_OPTIMISE=yes
1536 DEFAULT_wxUSE_PROFILE=no
1537 DEFAULT_wxUSE_NO_DEPS=no
1538 DEFAULT_wxUSE_NO_RTTI=no
1539 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1540 DEFAULT_wxUSE_PERMISSIVE=no
1541 DEFAULT_wxUSE_DEBUG_FLAG=no
1542 DEFAULT_wxUSE_DEBUG_INFO=no
1543 DEFAULT_wxUSE_DEBUG_GDB=no
1544 DEFAULT_wxUSE_MEM_TRACING=no
1545 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1546 DEFAULT_wxUSE_DMALLOC=no
1547 DEFAULT_wxUSE_APPLE_IEEE=yes
1548
1549 DEFAULT_wxUSE_LOG=yes
1550 DEFAULT_wxUSE_LOGWINDOW=yes
1551 DEFAULT_wxUSE_LOGGUI=yes
1552
1553 DEFAULT_wxUSE_GUI=yes
1554
1555 DEFAULT_wxUSE_REGEX=yes
1556 DEFAULT_wxUSE_ZLIB=yes
1557 DEFAULT_wxUSE_LIBPNG=yes
1558 DEFAULT_wxUSE_LIBJPEG=yes
1559 DEFAULT_wxUSE_LIBTIFF=yes
1560 DEFAULT_wxUSE_ODBC=no
1561 DEFAULT_wxUSE_FREETYPE=no
1562 DEFAULT_wxUSE_OPENGL=no
1563
1564 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1565 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1566 DEFAULT_wxUSE_STD_IOSTREAM=no
1567 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1568 DEFAULT_wxUSE_DATETIME=yes
1569 DEFAULT_wxUSE_TIMEDATE=no
1570 DEFAULT_wxUSE_TIMER=yes
1571 DEFAULT_wxUSE_STOPWATCH=yes
1572 DEFAULT_wxUSE_FILE=yes
1573 DEFAULT_wxUSE_FFILE=yes
1574 DEFAULT_wxUSE_TEXTFILE=yes
1575 DEFAULT_wxUSE_WAVE=no
1576 DEFAULT_wxUSE_INTL=yes
1577 DEFAULT_wxUSE_CONFIG=yes
1578 DEFAULT_wxUSE_FONTMAP=yes
1579 DEFAULT_wxUSE_STREAMS=yes
1580 DEFAULT_wxUSE_SOCKETS=yes
1581 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1582 DEFAULT_wxUSE_SERIAL=yes
1583 DEFAULT_wxUSE_JOYSTICK=yes
1584 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1585 DEFAULT_wxUSE_LONGLONG=yes
1586 DEFAULT_wxUSE_GEOMETRY=yes
1587
1588 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1589 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1590 DEFAULT_wxUSE_POSTSCRIPT=yes
1591
1592 DEFAULT_wxUSE_X_RESOURCES=no
1593 DEFAULT_wxUSE_CLIPBOARD=yes
1594 DEFAULT_wxUSE_TOOLTIPS=yes
1595 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1596 DEFAULT_wxUSE_DRAGIMAGE=yes
1597 DEFAULT_wxUSE_SPLINES=yes
1598
1599 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1600 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1601 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1602
1603 DEFAULT_wxUSE_PROLOGIO=yes
1604 DEFAULT_wxUSE_RESOURCES=yes
1605 DEFAULT_wxUSE_CONSTRAINTS=yes
1606 DEFAULT_wxUSE_IPC=yes
1607 DEFAULT_wxUSE_HELP=yes
1608 DEFAULT_wxUSE_MS_HTML_HELP=yes
1609 DEFAULT_wxUSE_WXHTML_HELP=yes
1610 DEFAULT_wxUSE_TREELAYOUT=yes
1611 DEFAULT_wxUSE_METAFILE=yes
1612 DEFAULT_wxUSE_MIMETYPE=yes
1613 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1614
1615 DEFAULT_wxUSE_COMMONDLGS=yes
1616 DEFAULT_wxUSE_CHOICEDLG=yes
1617 DEFAULT_wxUSE_COLOURDLG=yes
1618 DEFAULT_wxUSE_DIRDLG=yes
1619 DEFAULT_wxUSE_FILEDLG=yes
1620 DEFAULT_wxUSE_FINDREPLDLG=yes
1621 DEFAULT_wxUSE_FONTDLG=yes
1622 DEFAULT_wxUSE_MSGDLG=yes
1623 DEFAULT_wxUSE_NUMBERDLG=yes
1624 DEFAULT_wxUSE_TEXTDLG=yes
1625 DEFAULT_wxUSE_SPLASH=yes
1626 DEFAULT_wxUSE_STARTUP_TIPS=yes
1627 DEFAULT_wxUSE_PROGRESSDLG=yes
1628 DEFAULT_wxUSE_WIZARDDLG=yes
1629
1630 DEFAULT_wxUSE_MENUS=yes
1631 DEFAULT_wxUSE_MINIFRAME=yes
1632 DEFAULT_wxUSE_HTML=yes
1633 DEFAULT_wxUSE_FILESYSTEM=yes
1634 DEFAULT_wxUSE_FS_INET=yes
1635 DEFAULT_wxUSE_FS_ZIP=yes
1636 DEFAULT_wxUSE_BUSYINFO=yes
1637 DEFAULT_wxUSE_ZIPSTREAM=yes
1638 DEFAULT_wxUSE_VALIDATORS=yes
1639
1640 DEFAULT_wxUSE_ACCEL=yes
1641 DEFAULT_wxUSE_BUTTON=yes
1642 DEFAULT_wxUSE_BMPBUTTON=yes
1643 DEFAULT_wxUSE_CALCTRL=yes
1644 DEFAULT_wxUSE_CARET=yes
1645 DEFAULT_wxUSE_CHECKBOX=yes
1646 DEFAULT_wxUSE_CHECKLST=yes
1647 DEFAULT_wxUSE_CHOICE=yes
1648 DEFAULT_wxUSE_COMBOBOX=yes
1649 DEFAULT_wxUSE_GAUGE=yes
1650 DEFAULT_wxUSE_GRID=yes
1651 DEFAULT_wxUSE_NEW_GRID=yes
1652 DEFAULT_wxUSE_IMAGLIST=yes
1653 DEFAULT_wxUSE_LISTBOX=yes
1654 DEFAULT_wxUSE_LISTCTRL=yes
1655 DEFAULT_wxUSE_NOTEBOOK=yes
1656 DEFAULT_wxUSE_PROPSHEET=yes
1657 DEFAULT_wxUSE_RADIOBOX=yes
1658 DEFAULT_wxUSE_RADIOBTN=yes
1659 DEFAULT_wxUSE_SASH=yes
1660 DEFAULT_wxUSE_SCROLLBAR=yes
1661 DEFAULT_wxUSE_SLIDER=yes
1662 DEFAULT_wxUSE_SPINBTN=yes
1663 DEFAULT_wxUSE_SPINCTRL=yes
1664 DEFAULT_wxUSE_SPLITTER=yes
1665 DEFAULT_wxUSE_STATBMP=yes
1666 DEFAULT_wxUSE_STATBOX=yes
1667 DEFAULT_wxUSE_STATLINE=yes
1668 DEFAULT_wxUSE_STATTEXT=yes
1669 DEFAULT_wxUSE_STATUSBAR=yes
1670 DEFAULT_wxUSE_TABDIALOG=no
1671 DEFAULT_wxUSE_TEXTCTRL=yes
1672 DEFAULT_wxUSE_TOGGLEBTN=yes
1673 DEFAULT_wxUSE_TOOLBAR=yes
1674 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1675 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1676 DEFAULT_wxUSE_TREECTRL=yes
1677 DEFAULT_wxUSE_POPUPWIN=yes
1678
1679 DEFAULT_wxUSE_UNICODE=no
1680 DEFAULT_wxUSE_WCSRTOMBS=no
1681
1682 DEFAULT_wxUSE_IMAGE=yes
1683 DEFAULT_wxUSE_GIF=yes
1684 DEFAULT_wxUSE_PCX=yes
1685 DEFAULT_wxUSE_PNM=yes
1686 DEFAULT_wxUSE_XPM=yes
1687 fi
1688
1689
1690
1691 for toolkit in `echo $ALL_TOOLKITS`; do
1692 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1693 if test "x$LINE" != x ; then
1694 has_toolkit_in_cache=1
1695 eval "DEFAULT_$LINE"
1696 eval "CACHE_$toolkit=1"
1697 fi
1698 done
1699
1700
1701
1702 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1703 echo "configure:1704: checking for --enable-gui" >&5
1704 no_cache=0
1705 # Check whether --enable-gui or --disable-gui was given.
1706 if test "${enable_gui+set}" = set; then
1707 enableval="$enable_gui"
1708
1709 if test "$enableval" = yes; then
1710 ac_cv_use_gui='wxUSE_GUI=yes'
1711 else
1712 ac_cv_use_gui='wxUSE_GUI=no'
1713 fi
1714
1715 else
1716
1717 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1718 if test "x$LINE" != x ; then
1719 eval "DEFAULT_$LINE"
1720 else
1721 no_cache=1
1722 fi
1723
1724 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1725
1726 fi
1727
1728
1729 eval "$ac_cv_use_gui"
1730 if test "$no_cache" != 1; then
1731 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1732 fi
1733
1734 if test "$wxUSE_GUI" = yes; then
1735 echo "$ac_t""yes" 1>&6
1736 else
1737 echo "$ac_t""no" 1>&6
1738 fi
1739
1740
1741 if test "$wxUSE_GUI" = "yes"; then
1742
1743
1744 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1745 echo "configure:1746: checking for --enable-universal" >&5
1746 no_cache=0
1747 # Check whether --enable-universal or --disable-universal was given.
1748 if test "${enable_universal+set}" = set; then
1749 enableval="$enable_universal"
1750
1751 if test "$enableval" = yes; then
1752 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1753 else
1754 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1755 fi
1756
1757 else
1758
1759 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1760 if test "x$LINE" != x ; then
1761 eval "DEFAULT_$LINE"
1762 else
1763 no_cache=1
1764 fi
1765
1766 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1767
1768 fi
1769
1770
1771 eval "$ac_cv_use_universal"
1772 if test "$no_cache" != 1; then
1773 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1774 fi
1775
1776 if test "$wxUSE_UNIVERSAL" = yes; then
1777 echo "$ac_t""yes" 1>&6
1778 else
1779 echo "$ac_t""no" 1>&6
1780 fi
1781
1782 # Check whether --with-gtk or --without-gtk was given.
1783 if test "${with_gtk+set}" = set; then
1784 withval="$with_gtk"
1785 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1786 fi
1787
1788 # Check whether --with-motif or --without-motif was given.
1789 if test "${with_motif+set}" = set; then
1790 withval="$with_motif"
1791 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1792 fi
1793
1794 # Check whether --with-mac or --without-mac was given.
1795 if test "${with_mac+set}" = set; then
1796 withval="$with_mac"
1797 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1798 fi
1799
1800 # Check whether --with-wine or --without-wine was given.
1801 if test "${with_wine+set}" = set; then
1802 withval="$with_wine"
1803 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1804 fi
1805
1806 # Check whether --with-cygwin or --without-cygwin was given.
1807 if test "${with_cygwin+set}" = set; then
1808 withval="$with_cygwin"
1809 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1810 fi
1811
1812 # Check whether --with-mingw or --without-mingw was given.
1813 if test "${with_mingw+set}" = set; then
1814 withval="$with_mingw"
1815 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1816 fi
1817
1818 # Check whether --with-pm or --without-pm was given.
1819 if test "${with_pm+set}" = set; then
1820 withval="$with_pm"
1821 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1822 fi
1823
1824 # Check whether --with-mgl or --without-mgl was given.
1825 if test "${with_mgl+set}" = set; then
1826 withval="$with_mgl"
1827 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1828 fi
1829
1830
1831 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1832 if test "${enable_gtk2+set}" = set; then
1833 enableval="$enable_gtk2"
1834 wxUSE_GTK2=1
1835 else
1836 wxUSE_GTK2=0
1837 fi
1838
1839
1840
1841 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1842 echo "configure:1843: checking for --with-libpng" >&5
1843 no_cache=0
1844 # Check whether --with-libpng or --without-libpng was given.
1845 if test "${with_libpng+set}" = set; then
1846 withval="$with_libpng"
1847
1848 if test "$withval" = yes; then
1849 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1850 elif test "$withval" = no; then
1851 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1852 elif test "$withval" = sys; then
1853 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1854 else
1855 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1856 fi
1857
1858 else
1859
1860 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1861 if test "x$LINE" != x ; then
1862 eval "DEFAULT_$LINE"
1863 else
1864 no_cache=1
1865 fi
1866
1867 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1868
1869 fi
1870
1871
1872 eval "$ac_cv_use_libpng"
1873 if test "$no_cache" != 1; then
1874 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1875 fi
1876
1877 if test "$wxUSE_LIBPNG" = yes; then
1878 echo "$ac_t""yes" 1>&6
1879 elif test "$wxUSE_LIBPNG" = no; then
1880 echo "$ac_t""no" 1>&6
1881 elif test "$wxUSE_LIBPNG" = sys; then
1882 echo "$ac_t""system version" 1>&6
1883 else
1884 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1885 fi
1886
1887
1888 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1889 echo "configure:1890: checking for --with-libjpeg" >&5
1890 no_cache=0
1891 # Check whether --with-libjpeg or --without-libjpeg was given.
1892 if test "${with_libjpeg+set}" = set; then
1893 withval="$with_libjpeg"
1894
1895 if test "$withval" = yes; then
1896 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1897 elif test "$withval" = no; then
1898 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1899 elif test "$withval" = sys; then
1900 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1901 else
1902 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1903 fi
1904
1905 else
1906
1907 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1908 if test "x$LINE" != x ; then
1909 eval "DEFAULT_$LINE"
1910 else
1911 no_cache=1
1912 fi
1913
1914 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1915
1916 fi
1917
1918
1919 eval "$ac_cv_use_libjpeg"
1920 if test "$no_cache" != 1; then
1921 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1922 fi
1923
1924 if test "$wxUSE_LIBJPEG" = yes; then
1925 echo "$ac_t""yes" 1>&6
1926 elif test "$wxUSE_LIBJPEG" = no; then
1927 echo "$ac_t""no" 1>&6
1928 elif test "$wxUSE_LIBJPEG" = sys; then
1929 echo "$ac_t""system version" 1>&6
1930 else
1931 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1932 fi
1933
1934
1935 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1936 echo "configure:1937: checking for --with-libtiff" >&5
1937 no_cache=0
1938 # Check whether --with-libtiff or --without-libtiff was given.
1939 if test "${with_libtiff+set}" = set; then
1940 withval="$with_libtiff"
1941
1942 if test "$withval" = yes; then
1943 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1944 elif test "$withval" = no; then
1945 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1946 elif test "$withval" = sys; then
1947 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1948 else
1949 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1950 fi
1951
1952 else
1953
1954 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1955 if test "x$LINE" != x ; then
1956 eval "DEFAULT_$LINE"
1957 else
1958 no_cache=1
1959 fi
1960
1961 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1962
1963 fi
1964
1965
1966 eval "$ac_cv_use_libtiff"
1967 if test "$no_cache" != 1; then
1968 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1969 fi
1970
1971 if test "$wxUSE_LIBTIFF" = yes; then
1972 echo "$ac_t""yes" 1>&6
1973 elif test "$wxUSE_LIBTIFF" = no; then
1974 echo "$ac_t""no" 1>&6
1975 elif test "$wxUSE_LIBTIFF" = sys; then
1976 echo "$ac_t""system version" 1>&6
1977 else
1978 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1979 fi
1980
1981
1982 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1983 echo "configure:1984: checking for --with-freetype" >&5
1984 no_cache=0
1985 # Check whether --with-freetype or --without-freetype was given.
1986 if test "${with_freetype+set}" = set; then
1987 withval="$with_freetype"
1988
1989 if test "$withval" = yes; then
1990 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1991 elif test "$withval" = no; then
1992 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1993 elif test "$withval" = sys; then
1994 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1995 else
1996 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1997 fi
1998
1999 else
2000
2001 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2002 if test "x$LINE" != x ; then
2003 eval "DEFAULT_$LINE"
2004 else
2005 no_cache=1
2006 fi
2007
2008 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2009
2010 fi
2011
2012
2013 eval "$ac_cv_use_freetype"
2014 if test "$no_cache" != 1; then
2015 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2016 fi
2017
2018 if test "$wxUSE_FREETYPE" = yes; then
2019 echo "$ac_t""yes" 1>&6
2020 elif test "$wxUSE_FREETYPE" = no; then
2021 echo "$ac_t""no" 1>&6
2022 elif test "$wxUSE_FREETYPE" = sys; then
2023 echo "$ac_t""system version" 1>&6
2024 else
2025 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2026 fi
2027
2028
2029 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2030 echo "configure:2031: checking for --with-opengl" >&5
2031 no_cache=0
2032 # Check whether --with-opengl or --without-opengl was given.
2033 if test "${with_opengl+set}" = set; then
2034 withval="$with_opengl"
2035
2036 if test "$withval" = yes; then
2037 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2038 else
2039 ac_cv_use_opengl='wxUSE_OPENGL=no'
2040 fi
2041
2042 else
2043
2044 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2045 if test "x$LINE" != x ; then
2046 eval "DEFAULT_$LINE"
2047 else
2048 no_cache=1
2049 fi
2050
2051 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2052
2053 fi
2054
2055
2056 eval "$ac_cv_use_opengl"
2057 if test "$no_cache" != 1; then
2058 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2059 fi
2060
2061 if test "$wxUSE_OPENGL" = yes; then
2062 echo "$ac_t""yes" 1>&6
2063 else
2064 echo "$ac_t""no" 1>&6
2065 fi
2066
2067
2068 fi
2069
2070
2071 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2072 echo "configure:2073: checking for --with-dmalloc" >&5
2073 no_cache=0
2074 # Check whether --with-dmalloc or --without-dmalloc was given.
2075 if test "${with_dmalloc+set}" = set; then
2076 withval="$with_dmalloc"
2077
2078 if test "$withval" = yes; then
2079 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2080 else
2081 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2082 fi
2083
2084 else
2085
2086 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2087 if test "x$LINE" != x ; then
2088 eval "DEFAULT_$LINE"
2089 else
2090 no_cache=1
2091 fi
2092
2093 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2094
2095 fi
2096
2097
2098 eval "$ac_cv_use_dmalloc"
2099 if test "$no_cache" != 1; then
2100 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2101 fi
2102
2103 if test "$wxUSE_DMALLOC" = yes; then
2104 echo "$ac_t""yes" 1>&6
2105 else
2106 echo "$ac_t""no" 1>&6
2107 fi
2108
2109
2110 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2111 echo "configure:2112: checking for --with-regex" >&5
2112 no_cache=0
2113 # Check whether --with-regex or --without-regex was given.
2114 if test "${with_regex+set}" = set; then
2115 withval="$with_regex"
2116
2117 if test "$withval" = yes; then
2118 ac_cv_use_regex='wxUSE_REGEX=yes'
2119 elif test "$withval" = no; then
2120 ac_cv_use_regex='wxUSE_REGEX=no'
2121 elif test "$withval" = sys; then
2122 ac_cv_use_regex='wxUSE_REGEX=sys'
2123 else
2124 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2125 fi
2126
2127 else
2128
2129 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2130 if test "x$LINE" != x ; then
2131 eval "DEFAULT_$LINE"
2132 else
2133 no_cache=1
2134 fi
2135
2136 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2137
2138 fi
2139
2140
2141 eval "$ac_cv_use_regex"
2142 if test "$no_cache" != 1; then
2143 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2144 fi
2145
2146 if test "$wxUSE_REGEX" = yes; then
2147 echo "$ac_t""yes" 1>&6
2148 elif test "$wxUSE_REGEX" = no; then
2149 echo "$ac_t""no" 1>&6
2150 elif test "$wxUSE_REGEX" = sys; then
2151 echo "$ac_t""system version" 1>&6
2152 else
2153 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2154 fi
2155
2156
2157 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2158 echo "configure:2159: checking for --with-zlib" >&5
2159 no_cache=0
2160 # Check whether --with-zlib or --without-zlib was given.
2161 if test "${with_zlib+set}" = set; then
2162 withval="$with_zlib"
2163
2164 if test "$withval" = yes; then
2165 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2166 elif test "$withval" = no; then
2167 ac_cv_use_zlib='wxUSE_ZLIB=no'
2168 elif test "$withval" = sys; then
2169 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2170 else
2171 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2172 fi
2173
2174 else
2175
2176 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2177 if test "x$LINE" != x ; then
2178 eval "DEFAULT_$LINE"
2179 else
2180 no_cache=1
2181 fi
2182
2183 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2184
2185 fi
2186
2187
2188 eval "$ac_cv_use_zlib"
2189 if test "$no_cache" != 1; then
2190 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2191 fi
2192
2193 if test "$wxUSE_ZLIB" = yes; then
2194 echo "$ac_t""yes" 1>&6
2195 elif test "$wxUSE_ZLIB" = no; then
2196 echo "$ac_t""no" 1>&6
2197 elif test "$wxUSE_ZLIB" = sys; then
2198 echo "$ac_t""system version" 1>&6
2199 else
2200 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2201 fi
2202
2203
2204 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2205 echo "configure:2206: checking for --with-odbc" >&5
2206 no_cache=0
2207 # Check whether --with-odbc or --without-odbc was given.
2208 if test "${with_odbc+set}" = set; then
2209 withval="$with_odbc"
2210
2211 if test "$withval" = yes; then
2212 ac_cv_use_odbc='wxUSE_ODBC=yes'
2213 else
2214 ac_cv_use_odbc='wxUSE_ODBC=no'
2215 fi
2216
2217 else
2218
2219 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2220 if test "x$LINE" != x ; then
2221 eval "DEFAULT_$LINE"
2222 else
2223 no_cache=1
2224 fi
2225
2226 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2227
2228 fi
2229
2230
2231 eval "$ac_cv_use_odbc"
2232 if test "$no_cache" != 1; then
2233 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2234 fi
2235
2236 if test "$wxUSE_ODBC" = yes; then
2237 echo "$ac_t""yes" 1>&6
2238 else
2239 echo "$ac_t""no" 1>&6
2240 fi
2241
2242
2243
2244
2245
2246 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2247 echo "configure:2248: checking for --enable-shared" >&5
2248 no_cache=0
2249 # Check whether --enable-shared or --disable-shared was given.
2250 if test "${enable_shared+set}" = set; then
2251 enableval="$enable_shared"
2252
2253 if test "$enableval" = yes; then
2254 ac_cv_use_shared='wxUSE_SHARED=yes'
2255 else
2256 ac_cv_use_shared='wxUSE_SHARED=no'
2257 fi
2258
2259 else
2260
2261 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2262 if test "x$LINE" != x ; then
2263 eval "DEFAULT_$LINE"
2264 else
2265 no_cache=1
2266 fi
2267
2268 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2269
2270 fi
2271
2272
2273 eval "$ac_cv_use_shared"
2274 if test "$no_cache" != 1; then
2275 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2276 fi
2277
2278 if test "$wxUSE_SHARED" = yes; then
2279 echo "$ac_t""yes" 1>&6
2280 else
2281 echo "$ac_t""no" 1>&6
2282 fi
2283
2284
2285 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
2286 echo "configure:2287: checking for --enable-burnt_name" >&5
2287 no_cache=0
2288 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2289 if test "${enable_burnt_name+set}" = set; then
2290 enableval="$enable_burnt_name"
2291
2292 if test "$enableval" = yes; then
2293 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2294 else
2295 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2296 fi
2297
2298 else
2299
2300 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2301 if test "x$LINE" != x ; then
2302 eval "DEFAULT_$LINE"
2303 else
2304 no_cache=1
2305 fi
2306
2307 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2308
2309 fi
2310
2311
2312 eval "$ac_cv_use_burnt_name"
2313 if test "$no_cache" != 1; then
2314 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2315 fi
2316
2317 if test "$wxUSE_BURNT_NAME" = yes; then
2318 echo "$ac_t""yes" 1>&6
2319 else
2320 echo "$ac_t""no" 1>&6
2321 fi
2322
2323
2324 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2325 echo "configure:2326: checking for --enable-optimise" >&5
2326 no_cache=0
2327 # Check whether --enable-optimise or --disable-optimise was given.
2328 if test "${enable_optimise+set}" = set; then
2329 enableval="$enable_optimise"
2330
2331 if test "$enableval" = yes; then
2332 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2333 else
2334 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2335 fi
2336
2337 else
2338
2339 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2340 if test "x$LINE" != x ; then
2341 eval "DEFAULT_$LINE"
2342 else
2343 no_cache=1
2344 fi
2345
2346 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2347
2348 fi
2349
2350
2351 eval "$ac_cv_use_optimise"
2352 if test "$no_cache" != 1; then
2353 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2354 fi
2355
2356 if test "$wxUSE_OPTIMISE" = yes; then
2357 echo "$ac_t""yes" 1>&6
2358 else
2359 echo "$ac_t""no" 1>&6
2360 fi
2361
2362
2363 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2364 echo "configure:2365: checking for --enable-debug" >&5
2365 no_cache=0
2366 # Check whether --enable-debug or --disable-debug was given.
2367 if test "${enable_debug+set}" = set; then
2368 enableval="$enable_debug"
2369
2370 if test "$enableval" = yes; then
2371 ac_cv_use_debug='wxUSE_DEBUG=yes'
2372 else
2373 ac_cv_use_debug='wxUSE_DEBUG=no'
2374 fi
2375
2376 else
2377
2378 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2379 if test "x$LINE" != x ; then
2380 eval "DEFAULT_$LINE"
2381 else
2382 no_cache=1
2383 fi
2384
2385 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2386
2387 fi
2388
2389
2390 eval "$ac_cv_use_debug"
2391 if test "$no_cache" != 1; then
2392 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2393 fi
2394
2395 if test "$wxUSE_DEBUG" = yes; then
2396 echo "$ac_t""yes" 1>&6
2397 else
2398 echo "$ac_t""no" 1>&6
2399 fi
2400
2401
2402 if test "$wxUSE_DEBUG" = "yes"; then
2403 DEFAULT_wxUSE_DEBUG_FLAG=yes
2404 DEFAULT_wxUSE_DEBUG_INFO=yes
2405 elif test "$wxUSE_DEBUG" = "no"; then
2406 DEFAULT_wxUSE_DEBUG_FLAG=no
2407 DEFAULT_wxUSE_DEBUG_INFO=no
2408 fi
2409
2410
2411 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2412 echo "configure:2413: checking for --enable-debug_flag" >&5
2413 no_cache=0
2414 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2415 if test "${enable_debug_flag+set}" = set; then
2416 enableval="$enable_debug_flag"
2417
2418 if test "$enableval" = yes; then
2419 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2420 else
2421 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2422 fi
2423
2424 else
2425
2426 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2427 if test "x$LINE" != x ; then
2428 eval "DEFAULT_$LINE"
2429 else
2430 no_cache=1
2431 fi
2432
2433 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2434
2435 fi
2436
2437
2438 eval "$ac_cv_use_debug_flag"
2439 if test "$no_cache" != 1; then
2440 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2441 fi
2442
2443 if test "$wxUSE_DEBUG_FLAG" = yes; then
2444 echo "$ac_t""yes" 1>&6
2445 else
2446 echo "$ac_t""no" 1>&6
2447 fi
2448
2449
2450 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2451 echo "configure:2452: checking for --enable-debug_info" >&5
2452 no_cache=0
2453 # Check whether --enable-debug_info or --disable-debug_info was given.
2454 if test "${enable_debug_info+set}" = set; then
2455 enableval="$enable_debug_info"
2456
2457 if test "$enableval" = yes; then
2458 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2459 else
2460 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2461 fi
2462
2463 else
2464
2465 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2466 if test "x$LINE" != x ; then
2467 eval "DEFAULT_$LINE"
2468 else
2469 no_cache=1
2470 fi
2471
2472 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2473
2474 fi
2475
2476
2477 eval "$ac_cv_use_debug_info"
2478 if test "$no_cache" != 1; then
2479 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2480 fi
2481
2482 if test "$wxUSE_DEBUG_INFO" = yes; then
2483 echo "$ac_t""yes" 1>&6
2484 else
2485 echo "$ac_t""no" 1>&6
2486 fi
2487
2488
2489 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2490 echo "configure:2491: checking for --enable-debug_gdb" >&5
2491 no_cache=0
2492 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2493 if test "${enable_debug_gdb+set}" = set; then
2494 enableval="$enable_debug_gdb"
2495
2496 if test "$enableval" = yes; then
2497 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2498 else
2499 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2500 fi
2501
2502 else
2503
2504 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2505 if test "x$LINE" != x ; then
2506 eval "DEFAULT_$LINE"
2507 else
2508 no_cache=1
2509 fi
2510
2511 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2512
2513 fi
2514
2515
2516 eval "$ac_cv_use_debug_gdb"
2517 if test "$no_cache" != 1; then
2518 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2519 fi
2520
2521 if test "$wxUSE_DEBUG_GDB" = yes; then
2522 echo "$ac_t""yes" 1>&6
2523 else
2524 echo "$ac_t""no" 1>&6
2525 fi
2526
2527
2528 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2529 echo "configure:2530: checking for --enable-debug_cntxt" >&5
2530 no_cache=0
2531 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2532 if test "${enable_debug_cntxt+set}" = set; then
2533 enableval="$enable_debug_cntxt"
2534
2535 if test "$enableval" = yes; then
2536 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2537 else
2538 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2539 fi
2540
2541 else
2542
2543 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2544 if test "x$LINE" != x ; then
2545 eval "DEFAULT_$LINE"
2546 else
2547 no_cache=1
2548 fi
2549
2550 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2551
2552 fi
2553
2554
2555 eval "$ac_cv_use_debug_cntxt"
2556 if test "$no_cache" != 1; then
2557 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2558 fi
2559
2560 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2561 echo "$ac_t""yes" 1>&6
2562 else
2563 echo "$ac_t""no" 1>&6
2564 fi
2565
2566
2567 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2568 echo "configure:2569: checking for --enable-mem_tracing" >&5
2569 no_cache=0
2570 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2571 if test "${enable_mem_tracing+set}" = set; then
2572 enableval="$enable_mem_tracing"
2573
2574 if test "$enableval" = yes; then
2575 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2576 else
2577 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2578 fi
2579
2580 else
2581
2582 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2583 if test "x$LINE" != x ; then
2584 eval "DEFAULT_$LINE"
2585 else
2586 no_cache=1
2587 fi
2588
2589 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2590
2591 fi
2592
2593
2594 eval "$ac_cv_use_mem_tracing"
2595 if test "$no_cache" != 1; then
2596 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2597 fi
2598
2599 if test "$wxUSE_MEM_TRACING" = yes; then
2600 echo "$ac_t""yes" 1>&6
2601 else
2602 echo "$ac_t""no" 1>&6
2603 fi
2604
2605
2606 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2607 echo "configure:2608: checking for --enable-profile" >&5
2608 no_cache=0
2609 # Check whether --enable-profile or --disable-profile was given.
2610 if test "${enable_profile+set}" = set; then
2611 enableval="$enable_profile"
2612
2613 if test "$enableval" = yes; then
2614 ac_cv_use_profile='wxUSE_PROFILE=yes'
2615 else
2616 ac_cv_use_profile='wxUSE_PROFILE=no'
2617 fi
2618
2619 else
2620
2621 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2622 if test "x$LINE" != x ; then
2623 eval "DEFAULT_$LINE"
2624 else
2625 no_cache=1
2626 fi
2627
2628 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2629
2630 fi
2631
2632
2633 eval "$ac_cv_use_profile"
2634 if test "$no_cache" != 1; then
2635 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2636 fi
2637
2638 if test "$wxUSE_PROFILE" = yes; then
2639 echo "$ac_t""yes" 1>&6
2640 else
2641 echo "$ac_t""no" 1>&6
2642 fi
2643
2644
2645 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2646 echo "configure:2647: checking for --enable-no_rtti" >&5
2647 no_cache=0
2648 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2649 if test "${enable_no_rtti+set}" = set; then
2650 enableval="$enable_no_rtti"
2651
2652 if test "$enableval" = yes; then
2653 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2654 else
2655 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2656 fi
2657
2658 else
2659
2660 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2661 if test "x$LINE" != x ; then
2662 eval "DEFAULT_$LINE"
2663 else
2664 no_cache=1
2665 fi
2666
2667 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2668
2669 fi
2670
2671
2672 eval "$ac_cv_use_no_rtti"
2673 if test "$no_cache" != 1; then
2674 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2675 fi
2676
2677 if test "$wxUSE_NO_RTTI" = yes; then
2678 echo "$ac_t""yes" 1>&6
2679 else
2680 echo "$ac_t""no" 1>&6
2681 fi
2682
2683
2684 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2685 echo "configure:2686: checking for --enable-no_exceptions" >&5
2686 no_cache=0
2687 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2688 if test "${enable_no_exceptions+set}" = set; then
2689 enableval="$enable_no_exceptions"
2690
2691 if test "$enableval" = yes; then
2692 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2693 else
2694 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2695 fi
2696
2697 else
2698
2699 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2700 if test "x$LINE" != x ; then
2701 eval "DEFAULT_$LINE"
2702 else
2703 no_cache=1
2704 fi
2705
2706 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2707
2708 fi
2709
2710
2711 eval "$ac_cv_use_no_exceptions"
2712 if test "$no_cache" != 1; then
2713 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2714 fi
2715
2716 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2717 echo "$ac_t""yes" 1>&6
2718 else
2719 echo "$ac_t""no" 1>&6
2720 fi
2721
2722
2723 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2724 echo "configure:2725: checking for --enable-permissive" >&5
2725 no_cache=0
2726 # Check whether --enable-permissive or --disable-permissive was given.
2727 if test "${enable_permissive+set}" = set; then
2728 enableval="$enable_permissive"
2729
2730 if test "$enableval" = yes; then
2731 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2732 else
2733 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2734 fi
2735
2736 else
2737
2738 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2739 if test "x$LINE" != x ; then
2740 eval "DEFAULT_$LINE"
2741 else
2742 no_cache=1
2743 fi
2744
2745 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2746
2747 fi
2748
2749
2750 eval "$ac_cv_use_permissive"
2751 if test "$no_cache" != 1; then
2752 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2753 fi
2754
2755 if test "$wxUSE_PERMISSIVE" = yes; then
2756 echo "$ac_t""yes" 1>&6
2757 else
2758 echo "$ac_t""no" 1>&6
2759 fi
2760
2761
2762 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2763 echo "configure:2764: checking for --enable-no_deps" >&5
2764 no_cache=0
2765 # Check whether --enable-no_deps or --disable-no_deps was given.
2766 if test "${enable_no_deps+set}" = set; then
2767 enableval="$enable_no_deps"
2768
2769 if test "$enableval" = yes; then
2770 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2771 else
2772 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2773 fi
2774
2775 else
2776
2777 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2778 if test "x$LINE" != x ; then
2779 eval "DEFAULT_$LINE"
2780 else
2781 no_cache=1
2782 fi
2783
2784 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2785
2786 fi
2787
2788
2789 eval "$ac_cv_use_no_deps"
2790 if test "$no_cache" != 1; then
2791 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2792 fi
2793
2794 if test "$wxUSE_NO_DEPS" = yes; then
2795 echo "$ac_t""yes" 1>&6
2796 else
2797 echo "$ac_t""no" 1>&6
2798 fi
2799
2800
2801
2802 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2803 echo "configure:2804: checking for --enable-compat20" >&5
2804 no_cache=0
2805 # Check whether --enable-compat20 or --disable-compat20 was given.
2806 if test "${enable_compat20+set}" = set; then
2807 enableval="$enable_compat20"
2808
2809 if test "$enableval" = yes; then
2810 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2811 else
2812 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2813 fi
2814
2815 else
2816
2817 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2818 if test "x$LINE" != x ; then
2819 eval "DEFAULT_$LINE"
2820 else
2821 no_cache=1
2822 fi
2823
2824 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2825
2826 fi
2827
2828
2829 eval "$ac_cv_use_compat20"
2830 if test "$no_cache" != 1; then
2831 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2832 fi
2833
2834 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2835 echo "$ac_t""yes" 1>&6
2836 else
2837 echo "$ac_t""no" 1>&6
2838 fi
2839
2840
2841 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2842 echo "configure:2843: checking for --enable-compat22" >&5
2843 no_cache=0
2844 # Check whether --enable-compat22 or --disable-compat22 was given.
2845 if test "${enable_compat22+set}" = set; then
2846 enableval="$enable_compat22"
2847
2848 if test "$enableval" = yes; then
2849 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2850 else
2851 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2852 fi
2853
2854 else
2855
2856 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2857 if test "x$LINE" != x ; then
2858 eval "DEFAULT_$LINE"
2859 else
2860 no_cache=1
2861 fi
2862
2863 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2864
2865 fi
2866
2867
2868 eval "$ac_cv_use_compat22"
2869 if test "$no_cache" != 1; then
2870 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2871 fi
2872
2873 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2874 echo "$ac_t""yes" 1>&6
2875 else
2876 echo "$ac_t""no" 1>&6
2877 fi
2878
2879
2880
2881
2882 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2883 echo "configure:2884: checking for --enable-intl" >&5
2884 no_cache=0
2885 # Check whether --enable-intl or --disable-intl was given.
2886 if test "${enable_intl+set}" = set; then
2887 enableval="$enable_intl"
2888
2889 if test "$enableval" = yes; then
2890 ac_cv_use_intl='wxUSE_INTL=yes'
2891 else
2892 ac_cv_use_intl='wxUSE_INTL=no'
2893 fi
2894
2895 else
2896
2897 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2898 if test "x$LINE" != x ; then
2899 eval "DEFAULT_$LINE"
2900 else
2901 no_cache=1
2902 fi
2903
2904 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2905
2906 fi
2907
2908
2909 eval "$ac_cv_use_intl"
2910 if test "$no_cache" != 1; then
2911 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2912 fi
2913
2914 if test "$wxUSE_INTL" = yes; then
2915 echo "$ac_t""yes" 1>&6
2916 else
2917 echo "$ac_t""no" 1>&6
2918 fi
2919
2920
2921 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2922 echo "configure:2923: checking for --enable-config" >&5
2923 no_cache=0
2924 # Check whether --enable-config or --disable-config was given.
2925 if test "${enable_config+set}" = set; then
2926 enableval="$enable_config"
2927
2928 if test "$enableval" = yes; then
2929 ac_cv_use_config='wxUSE_CONFIG=yes'
2930 else
2931 ac_cv_use_config='wxUSE_CONFIG=no'
2932 fi
2933
2934 else
2935
2936 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2937 if test "x$LINE" != x ; then
2938 eval "DEFAULT_$LINE"
2939 else
2940 no_cache=1
2941 fi
2942
2943 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2944
2945 fi
2946
2947
2948 eval "$ac_cv_use_config"
2949 if test "$no_cache" != 1; then
2950 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2951 fi
2952
2953 if test "$wxUSE_CONFIG" = yes; then
2954 echo "$ac_t""yes" 1>&6
2955 else
2956 echo "$ac_t""no" 1>&6
2957 fi
2958
2959
2960
2961 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2962 echo "configure:2963: checking for --enable-sockets" >&5
2963 no_cache=0
2964 # Check whether --enable-sockets or --disable-sockets was given.
2965 if test "${enable_sockets+set}" = set; then
2966 enableval="$enable_sockets"
2967
2968 if test "$enableval" = yes; then
2969 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2970 else
2971 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2972 fi
2973
2974 else
2975
2976 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2977 if test "x$LINE" != x ; then
2978 eval "DEFAULT_$LINE"
2979 else
2980 no_cache=1
2981 fi
2982
2983 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2984
2985 fi
2986
2987
2988 eval "$ac_cv_use_sockets"
2989 if test "$no_cache" != 1; then
2990 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2991 fi
2992
2993 if test "$wxUSE_SOCKETS" = yes; then
2994 echo "$ac_t""yes" 1>&6
2995 else
2996 echo "$ac_t""no" 1>&6
2997 fi
2998
2999
3000
3001 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3002 echo "configure:3003: checking for --enable-ipc" >&5
3003 no_cache=0
3004 # Check whether --enable-ipc or --disable-ipc was given.
3005 if test "${enable_ipc+set}" = set; then
3006 enableval="$enable_ipc"
3007
3008 if test "$enableval" = yes; then
3009 ac_cv_use_ipc='wxUSE_IPC=yes'
3010 else
3011 ac_cv_use_ipc='wxUSE_IPC=no'
3012 fi
3013
3014 else
3015
3016 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3017 if test "x$LINE" != x ; then
3018 eval "DEFAULT_$LINE"
3019 else
3020 no_cache=1
3021 fi
3022
3023 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3024
3025 fi
3026
3027
3028 eval "$ac_cv_use_ipc"
3029 if test "$no_cache" != 1; then
3030 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3031 fi
3032
3033 if test "$wxUSE_IPC" = yes; then
3034 echo "$ac_t""yes" 1>&6
3035 else
3036 echo "$ac_t""no" 1>&6
3037 fi
3038
3039
3040
3041 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3042 echo "configure:3043: checking for --enable-cmdline" >&5
3043 no_cache=0
3044 # Check whether --enable-cmdline or --disable-cmdline was given.
3045 if test "${enable_cmdline+set}" = set; then
3046 enableval="$enable_cmdline"
3047
3048 if test "$enableval" = yes; then
3049 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3050 else
3051 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3052 fi
3053
3054 else
3055
3056 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3057 if test "x$LINE" != x ; then
3058 eval "DEFAULT_$LINE"
3059 else
3060 no_cache=1
3061 fi
3062
3063 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3064
3065 fi
3066
3067
3068 eval "$ac_cv_use_cmdline"
3069 if test "$no_cache" != 1; then
3070 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3071 fi
3072
3073 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3074 echo "$ac_t""yes" 1>&6
3075 else
3076 echo "$ac_t""no" 1>&6
3077 fi
3078
3079
3080 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3081 echo "configure:3082: checking for --enable-datetime" >&5
3082 no_cache=0
3083 # Check whether --enable-datetime or --disable-datetime was given.
3084 if test "${enable_datetime+set}" = set; then
3085 enableval="$enable_datetime"
3086
3087 if test "$enableval" = yes; then
3088 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3089 else
3090 ac_cv_use_datetime='wxUSE_DATETIME=no'
3091 fi
3092
3093 else
3094
3095 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3096 if test "x$LINE" != x ; then
3097 eval "DEFAULT_$LINE"
3098 else
3099 no_cache=1
3100 fi
3101
3102 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3103
3104 fi
3105
3106
3107 eval "$ac_cv_use_datetime"
3108 if test "$no_cache" != 1; then
3109 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3110 fi
3111
3112 if test "$wxUSE_DATETIME" = yes; then
3113 echo "$ac_t""yes" 1>&6
3114 else
3115 echo "$ac_t""no" 1>&6
3116 fi
3117
3118
3119 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3120 echo "configure:3121: checking for --enable-timedate" >&5
3121 no_cache=0
3122 # Check whether --enable-timedate or --disable-timedate was given.
3123 if test "${enable_timedate+set}" = set; then
3124 enableval="$enable_timedate"
3125
3126 if test "$enableval" = yes; then
3127 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3128 else
3129 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3130 fi
3131
3132 else
3133
3134 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3135 if test "x$LINE" != x ; then
3136 eval "DEFAULT_$LINE"
3137 else
3138 no_cache=1
3139 fi
3140
3141 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3142
3143 fi
3144
3145
3146 eval "$ac_cv_use_timedate"
3147 if test "$no_cache" != 1; then
3148 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3149 fi
3150
3151 if test "$wxUSE_TIMEDATE" = yes; then
3152 echo "$ac_t""yes" 1>&6
3153 else
3154 echo "$ac_t""no" 1>&6
3155 fi
3156
3157
3158 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3159 echo "configure:3160: checking for --enable-stopwatch" >&5
3160 no_cache=0
3161 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3162 if test "${enable_stopwatch+set}" = set; then
3163 enableval="$enable_stopwatch"
3164
3165 if test "$enableval" = yes; then
3166 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3167 else
3168 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3169 fi
3170
3171 else
3172
3173 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3174 if test "x$LINE" != x ; then
3175 eval "DEFAULT_$LINE"
3176 else
3177 no_cache=1
3178 fi
3179
3180 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3181
3182 fi
3183
3184
3185 eval "$ac_cv_use_stopwatch"
3186 if test "$no_cache" != 1; then
3187 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3188 fi
3189
3190 if test "$wxUSE_STOPWATCH" = yes; then
3191 echo "$ac_t""yes" 1>&6
3192 else
3193 echo "$ac_t""no" 1>&6
3194 fi
3195
3196
3197 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3198 echo "configure:3199: checking for --enable-dialupman" >&5
3199 no_cache=0
3200 # Check whether --enable-dialupman or --disable-dialupman was given.
3201 if test "${enable_dialupman+set}" = set; then
3202 enableval="$enable_dialupman"
3203
3204 if test "$enableval" = yes; then
3205 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3206 else
3207 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3208 fi
3209
3210 else
3211
3212 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3213 if test "x$LINE" != x ; then
3214 eval "DEFAULT_$LINE"
3215 else
3216 no_cache=1
3217 fi
3218
3219 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3220
3221 fi
3222
3223
3224 eval "$ac_cv_use_dialupman"
3225 if test "$no_cache" != 1; then
3226 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3227 fi
3228
3229 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3230 echo "$ac_t""yes" 1>&6
3231 else
3232 echo "$ac_t""no" 1>&6
3233 fi
3234
3235
3236 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3237 echo "configure:3238: checking for --enable-apple_ieee" >&5
3238 no_cache=0
3239 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3240 if test "${enable_apple_ieee+set}" = set; then
3241 enableval="$enable_apple_ieee"
3242
3243 if test "$enableval" = yes; then
3244 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3245 else
3246 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3247 fi
3248
3249 else
3250
3251 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3252 if test "x$LINE" != x ; then
3253 eval "DEFAULT_$LINE"
3254 else
3255 no_cache=1
3256 fi
3257
3258 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3259
3260 fi
3261
3262
3263 eval "$ac_cv_use_apple_ieee"
3264 if test "$no_cache" != 1; then
3265 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3266 fi
3267
3268 if test "$wxUSE_APPLE_IEEE" = yes; then
3269 echo "$ac_t""yes" 1>&6
3270 else
3271 echo "$ac_t""no" 1>&6
3272 fi
3273
3274
3275 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3276 echo "configure:3277: checking for --enable-timer" >&5
3277 no_cache=0
3278 # Check whether --enable-timer or --disable-timer was given.
3279 if test "${enable_timer+set}" = set; then
3280 enableval="$enable_timer"
3281
3282 if test "$enableval" = yes; then
3283 ac_cv_use_timer='wxUSE_TIMER=yes'
3284 else
3285 ac_cv_use_timer='wxUSE_TIMER=no'
3286 fi
3287
3288 else
3289
3290 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3291 if test "x$LINE" != x ; then
3292 eval "DEFAULT_$LINE"
3293 else
3294 no_cache=1
3295 fi
3296
3297 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3298
3299 fi
3300
3301
3302 eval "$ac_cv_use_timer"
3303 if test "$no_cache" != 1; then
3304 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3305 fi
3306
3307 if test "$wxUSE_TIMER" = yes; then
3308 echo "$ac_t""yes" 1>&6
3309 else
3310 echo "$ac_t""no" 1>&6
3311 fi
3312
3313
3314 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3315 echo "configure:3316: checking for --enable-wave" >&5
3316 no_cache=0
3317 # Check whether --enable-wave or --disable-wave was given.
3318 if test "${enable_wave+set}" = set; then
3319 enableval="$enable_wave"
3320
3321 if test "$enableval" = yes; then
3322 ac_cv_use_wave='wxUSE_WAVE=yes'
3323 else
3324 ac_cv_use_wave='wxUSE_WAVE=no'
3325 fi
3326
3327 else
3328
3329 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3330 if test "x$LINE" != x ; then
3331 eval "DEFAULT_$LINE"
3332 else
3333 no_cache=1
3334 fi
3335
3336 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3337
3338 fi
3339
3340
3341 eval "$ac_cv_use_wave"
3342 if test "$no_cache" != 1; then
3343 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3344 fi
3345
3346 if test "$wxUSE_WAVE" = yes; then
3347 echo "$ac_t""yes" 1>&6
3348 else
3349 echo "$ac_t""no" 1>&6
3350 fi
3351
3352
3353 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3354 echo "configure:3355: checking for --enable-fraction" >&5
3355 no_cache=0
3356 # Check whether --enable-fraction or --disable-fraction was given.
3357 if test "${enable_fraction+set}" = set; then
3358 enableval="$enable_fraction"
3359
3360 if test "$enableval" = yes; then
3361 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3362 else
3363 ac_cv_use_fraction='wxUSE_FRACTION=no'
3364 fi
3365
3366 else
3367
3368 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3369 if test "x$LINE" != x ; then
3370 eval "DEFAULT_$LINE"
3371 else
3372 no_cache=1
3373 fi
3374
3375 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3376
3377 fi
3378
3379
3380 eval "$ac_cv_use_fraction"
3381 if test "$no_cache" != 1; then
3382 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3383 fi
3384
3385 if test "$wxUSE_FRACTION" = yes; then
3386 echo "$ac_t""yes" 1>&6
3387 else
3388 echo "$ac_t""no" 1>&6
3389 fi
3390
3391
3392 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3393 echo "configure:3394: checking for --enable-dynlib" >&5
3394 no_cache=0
3395 # Check whether --enable-dynlib or --disable-dynlib was given.
3396 if test "${enable_dynlib+set}" = set; then
3397 enableval="$enable_dynlib"
3398
3399 if test "$enableval" = yes; then
3400 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3401 else
3402 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3403 fi
3404
3405 else
3406
3407 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3408 if test "x$LINE" != x ; then
3409 eval "DEFAULT_$LINE"
3410 else
3411 no_cache=1
3412 fi
3413
3414 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3415
3416 fi
3417
3418
3419 eval "$ac_cv_use_dynlib"
3420 if test "$no_cache" != 1; then
3421 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3422 fi
3423
3424 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3425 echo "$ac_t""yes" 1>&6
3426 else
3427 echo "$ac_t""no" 1>&6
3428 fi
3429
3430
3431 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3432 echo "configure:3433: checking for --enable-longlong" >&5
3433 no_cache=0
3434 # Check whether --enable-longlong or --disable-longlong was given.
3435 if test "${enable_longlong+set}" = set; then
3436 enableval="$enable_longlong"
3437
3438 if test "$enableval" = yes; then
3439 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3440 else
3441 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3442 fi
3443
3444 else
3445
3446 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3447 if test "x$LINE" != x ; then
3448 eval "DEFAULT_$LINE"
3449 else
3450 no_cache=1
3451 fi
3452
3453 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3454
3455 fi
3456
3457
3458 eval "$ac_cv_use_longlong"
3459 if test "$no_cache" != 1; then
3460 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3461 fi
3462
3463 if test "$wxUSE_LONGLONG" = yes; then
3464 echo "$ac_t""yes" 1>&6
3465 else
3466 echo "$ac_t""no" 1>&6
3467 fi
3468
3469
3470 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3471 echo "configure:3472: checking for --enable-geometry" >&5
3472 no_cache=0
3473 # Check whether --enable-geometry or --disable-geometry was given.
3474 if test "${enable_geometry+set}" = set; then
3475 enableval="$enable_geometry"
3476
3477 if test "$enableval" = yes; then
3478 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3479 else
3480 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3481 fi
3482
3483 else
3484
3485 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3486 if test "x$LINE" != x ; then
3487 eval "DEFAULT_$LINE"
3488 else
3489 no_cache=1
3490 fi
3491
3492 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3493
3494 fi
3495
3496
3497 eval "$ac_cv_use_geometry"
3498 if test "$no_cache" != 1; then
3499 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3500 fi
3501
3502 if test "$wxUSE_GEOMETRY" = yes; then
3503 echo "$ac_t""yes" 1>&6
3504 else
3505 echo "$ac_t""no" 1>&6
3506 fi
3507
3508
3509 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3510 echo "configure:3511: checking for --enable-log" >&5
3511 no_cache=0
3512 # Check whether --enable-log or --disable-log was given.
3513 if test "${enable_log+set}" = set; then
3514 enableval="$enable_log"
3515
3516 if test "$enableval" = yes; then
3517 ac_cv_use_log='wxUSE_LOG=yes'
3518 else
3519 ac_cv_use_log='wxUSE_LOG=no'
3520 fi
3521
3522 else
3523
3524 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3525 if test "x$LINE" != x ; then
3526 eval "DEFAULT_$LINE"
3527 else
3528 no_cache=1
3529 fi
3530
3531 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3532
3533 fi
3534
3535
3536 eval "$ac_cv_use_log"
3537 if test "$no_cache" != 1; then
3538 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3539 fi
3540
3541 if test "$wxUSE_LOG" = yes; then
3542 echo "$ac_t""yes" 1>&6
3543 else
3544 echo "$ac_t""no" 1>&6
3545 fi
3546
3547
3548 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3549 echo "configure:3550: checking for --enable-streams" >&5
3550 no_cache=0
3551 # Check whether --enable-streams or --disable-streams was given.
3552 if test "${enable_streams+set}" = set; then
3553 enableval="$enable_streams"
3554
3555 if test "$enableval" = yes; then
3556 ac_cv_use_streams='wxUSE_STREAMS=yes'
3557 else
3558 ac_cv_use_streams='wxUSE_STREAMS=no'
3559 fi
3560
3561 else
3562
3563 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3564 if test "x$LINE" != x ; then
3565 eval "DEFAULT_$LINE"
3566 else
3567 no_cache=1
3568 fi
3569
3570 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3571
3572 fi
3573
3574
3575 eval "$ac_cv_use_streams"
3576 if test "$no_cache" != 1; then
3577 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3578 fi
3579
3580 if test "$wxUSE_STREAMS" = yes; then
3581 echo "$ac_t""yes" 1>&6
3582 else
3583 echo "$ac_t""no" 1>&6
3584 fi
3585
3586
3587 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3588 echo "configure:3589: checking for --enable-file" >&5
3589 no_cache=0
3590 # Check whether --enable-file or --disable-file was given.
3591 if test "${enable_file+set}" = set; then
3592 enableval="$enable_file"
3593
3594 if test "$enableval" = yes; then
3595 ac_cv_use_file='wxUSE_FILE=yes'
3596 else
3597 ac_cv_use_file='wxUSE_FILE=no'
3598 fi
3599
3600 else
3601
3602 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3603 if test "x$LINE" != x ; then
3604 eval "DEFAULT_$LINE"
3605 else
3606 no_cache=1
3607 fi
3608
3609 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3610
3611 fi
3612
3613
3614 eval "$ac_cv_use_file"
3615 if test "$no_cache" != 1; then
3616 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3617 fi
3618
3619 if test "$wxUSE_FILE" = yes; then
3620 echo "$ac_t""yes" 1>&6
3621 else
3622 echo "$ac_t""no" 1>&6
3623 fi
3624
3625
3626 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3627 echo "configure:3628: checking for --enable-ffile" >&5
3628 no_cache=0
3629 # Check whether --enable-ffile or --disable-ffile was given.
3630 if test "${enable_ffile+set}" = set; then
3631 enableval="$enable_ffile"
3632
3633 if test "$enableval" = yes; then
3634 ac_cv_use_ffile='wxUSE_FFILE=yes'
3635 else
3636 ac_cv_use_ffile='wxUSE_FFILE=no'
3637 fi
3638
3639 else
3640
3641 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3642 if test "x$LINE" != x ; then
3643 eval "DEFAULT_$LINE"
3644 else
3645 no_cache=1
3646 fi
3647
3648 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3649
3650 fi
3651
3652
3653 eval "$ac_cv_use_ffile"
3654 if test "$no_cache" != 1; then
3655 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3656 fi
3657
3658 if test "$wxUSE_FFILE" = yes; then
3659 echo "$ac_t""yes" 1>&6
3660 else
3661 echo "$ac_t""no" 1>&6
3662 fi
3663
3664
3665 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3666 echo "configure:3667: checking for --enable-textfile" >&5
3667 no_cache=0
3668 # Check whether --enable-textfile or --disable-textfile was given.
3669 if test "${enable_textfile+set}" = set; then
3670 enableval="$enable_textfile"
3671
3672 if test "$enableval" = yes; then
3673 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3674 else
3675 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3676 fi
3677
3678 else
3679
3680 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3681 if test "x$LINE" != x ; then
3682 eval "DEFAULT_$LINE"
3683 else
3684 no_cache=1
3685 fi
3686
3687 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3688
3689 fi
3690
3691
3692 eval "$ac_cv_use_textfile"
3693 if test "$no_cache" != 1; then
3694 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3695 fi
3696
3697 if test "$wxUSE_TEXTFILE" = yes; then
3698 echo "$ac_t""yes" 1>&6
3699 else
3700 echo "$ac_t""no" 1>&6
3701 fi
3702
3703
3704 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3705 echo "configure:3706: checking for --enable-fontmap" >&5
3706 no_cache=0
3707 # Check whether --enable-fontmap or --disable-fontmap was given.
3708 if test "${enable_fontmap+set}" = set; then
3709 enableval="$enable_fontmap"
3710
3711 if test "$enableval" = yes; then
3712 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3713 else
3714 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3715 fi
3716
3717 else
3718
3719 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3720 if test "x$LINE" != x ; then
3721 eval "DEFAULT_$LINE"
3722 else
3723 no_cache=1
3724 fi
3725
3726 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3727
3728 fi
3729
3730
3731 eval "$ac_cv_use_fontmap"
3732 if test "$no_cache" != 1; then
3733 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3734 fi
3735
3736 if test "$wxUSE_FONTMAP" = yes; then
3737 echo "$ac_t""yes" 1>&6
3738 else
3739 echo "$ac_t""no" 1>&6
3740 fi
3741
3742
3743 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3744 echo "configure:3745: checking for --enable-unicode" >&5
3745 no_cache=0
3746 # Check whether --enable-unicode or --disable-unicode was given.
3747 if test "${enable_unicode+set}" = set; then
3748 enableval="$enable_unicode"
3749
3750 if test "$enableval" = yes; then
3751 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3752 else
3753 ac_cv_use_unicode='wxUSE_UNICODE=no'
3754 fi
3755
3756 else
3757
3758 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3759 if test "x$LINE" != x ; then
3760 eval "DEFAULT_$LINE"
3761 else
3762 no_cache=1
3763 fi
3764
3765 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3766
3767 fi
3768
3769
3770 eval "$ac_cv_use_unicode"
3771 if test "$no_cache" != 1; then
3772 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3773 fi
3774
3775 if test "$wxUSE_UNICODE" = yes; then
3776 echo "$ac_t""yes" 1>&6
3777 else
3778 echo "$ac_t""no" 1>&6
3779 fi
3780
3781
3782 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
3783 echo "configure:3784: checking for --enable-wcsrtombs" >&5
3784 no_cache=0
3785 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3786 if test "${enable_wcsrtombs+set}" = set; then
3787 enableval="$enable_wcsrtombs"
3788
3789 if test "$enableval" = yes; then
3790 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3791 else
3792 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3793 fi
3794
3795 else
3796
3797 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3798 if test "x$LINE" != x ; then
3799 eval "DEFAULT_$LINE"
3800 else
3801 no_cache=1
3802 fi
3803
3804 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3805
3806 fi
3807
3808
3809 eval "$ac_cv_use_wcsrtombs"
3810 if test "$no_cache" != 1; then
3811 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3812 fi
3813
3814 if test "$wxUSE_WCSRTOMBS" = yes; then
3815 echo "$ac_t""yes" 1>&6
3816 else
3817 echo "$ac_t""no" 1>&6
3818 fi
3819
3820
3821 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3822 echo "configure:3823: checking for --enable-wxprintfv" >&5
3823 no_cache=0
3824 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3825 if test "${enable_wxprintfv+set}" = set; then
3826 enableval="$enable_wxprintfv"
3827
3828 if test "$enableval" = yes; then
3829 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3830 else
3831 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3832 fi
3833
3834 else
3835
3836 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3837 if test "x$LINE" != x ; then
3838 eval "DEFAULT_$LINE"
3839 else
3840 no_cache=1
3841 fi
3842
3843 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3844
3845 fi
3846
3847
3848 eval "$ac_cv_use_wxprintfv"
3849 if test "$no_cache" != 1; then
3850 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3851 fi
3852
3853 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3854 echo "$ac_t""yes" 1>&6
3855 else
3856 echo "$ac_t""no" 1>&6
3857 fi
3858
3859
3860 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3861 echo "configure:3862: checking for --enable-std_iostreams" >&5
3862 no_cache=0
3863 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3864 if test "${enable_std_iostreams+set}" = set; then
3865 enableval="$enable_std_iostreams"
3866
3867 if test "$enableval" = yes; then
3868 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3869 else
3870 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3871 fi
3872
3873 else
3874
3875 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3876 if test "x$LINE" != x ; then
3877 eval "DEFAULT_$LINE"
3878 else
3879 no_cache=1
3880 fi
3881
3882 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3883
3884 fi
3885
3886
3887 eval "$ac_cv_use_std_iostreams"
3888 if test "$no_cache" != 1; then
3889 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3890 fi
3891
3892 if test "$wxUSE_STD_IOSTREAM" = yes; then
3893 echo "$ac_t""yes" 1>&6
3894 else
3895 echo "$ac_t""no" 1>&6
3896 fi
3897
3898
3899 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3900 echo "configure:3901: checking for --enable-filesystem" >&5
3901 no_cache=0
3902 # Check whether --enable-filesystem or --disable-filesystem was given.
3903 if test "${enable_filesystem+set}" = set; then
3904 enableval="$enable_filesystem"
3905
3906 if test "$enableval" = yes; then
3907 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3908 else
3909 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3910 fi
3911
3912 else
3913
3914 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3915 if test "x$LINE" != x ; then
3916 eval "DEFAULT_$LINE"
3917 else
3918 no_cache=1
3919 fi
3920
3921 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3922
3923 fi
3924
3925
3926 eval "$ac_cv_use_filesystem"
3927 if test "$no_cache" != 1; then
3928 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3929 fi
3930
3931 if test "$wxUSE_FILESYSTEM" = yes; then
3932 echo "$ac_t""yes" 1>&6
3933 else
3934 echo "$ac_t""no" 1>&6
3935 fi
3936
3937
3938 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3939 echo "configure:3940: checking for --enable-fs_inet" >&5
3940 no_cache=0
3941 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3942 if test "${enable_fs_inet+set}" = set; then
3943 enableval="$enable_fs_inet"
3944
3945 if test "$enableval" = yes; then
3946 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3947 else
3948 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3949 fi
3950
3951 else
3952
3953 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3954 if test "x$LINE" != x ; then
3955 eval "DEFAULT_$LINE"
3956 else
3957 no_cache=1
3958 fi
3959
3960 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3961
3962 fi
3963
3964
3965 eval "$ac_cv_use_fs_inet"
3966 if test "$no_cache" != 1; then
3967 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3968 fi
3969
3970 if test "$wxUSE_FS_INET" = yes; then
3971 echo "$ac_t""yes" 1>&6
3972 else
3973 echo "$ac_t""no" 1>&6
3974 fi
3975
3976
3977 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3978 echo "configure:3979: checking for --enable-fs_zip" >&5
3979 no_cache=0
3980 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3981 if test "${enable_fs_zip+set}" = set; then
3982 enableval="$enable_fs_zip"
3983
3984 if test "$enableval" = yes; then
3985 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3986 else
3987 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3988 fi
3989
3990 else
3991
3992 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3993 if test "x$LINE" != x ; then
3994 eval "DEFAULT_$LINE"
3995 else
3996 no_cache=1
3997 fi
3998
3999 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4000
4001 fi
4002
4003
4004 eval "$ac_cv_use_fs_zip"
4005 if test "$no_cache" != 1; then
4006 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4007 fi
4008
4009 if test "$wxUSE_FS_ZIP" = yes; then
4010 echo "$ac_t""yes" 1>&6
4011 else
4012 echo "$ac_t""no" 1>&6
4013 fi
4014
4015
4016 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4017 echo "configure:4018: checking for --enable-zipstream" >&5
4018 no_cache=0
4019 # Check whether --enable-zipstream or --disable-zipstream was given.
4020 if test "${enable_zipstream+set}" = set; then
4021 enableval="$enable_zipstream"
4022
4023 if test "$enableval" = yes; then
4024 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4025 else
4026 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4027 fi
4028
4029 else
4030
4031 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4032 if test "x$LINE" != x ; then
4033 eval "DEFAULT_$LINE"
4034 else
4035 no_cache=1
4036 fi
4037
4038 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4039
4040 fi
4041
4042
4043 eval "$ac_cv_use_zipstream"
4044 if test "$no_cache" != 1; then
4045 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4046 fi
4047
4048 if test "$wxUSE_ZIPSTREAM" = yes; then
4049 echo "$ac_t""yes" 1>&6
4050 else
4051 echo "$ac_t""no" 1>&6
4052 fi
4053
4054
4055
4056 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4057 echo "configure:4058: checking for --enable-catch_segvs" >&5
4058 no_cache=0
4059 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4060 if test "${enable_catch_segvs+set}" = set; then
4061 enableval="$enable_catch_segvs"
4062
4063 if test "$enableval" = yes; then
4064 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4065 else
4066 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4067 fi
4068
4069 else
4070
4071 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4072 if test "x$LINE" != x ; then
4073 eval "DEFAULT_$LINE"
4074 else
4075 no_cache=1
4076 fi
4077
4078 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4079
4080 fi
4081
4082
4083 eval "$ac_cv_use_catch_segvs"
4084 if test "$no_cache" != 1; then
4085 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4086 fi
4087
4088 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4089 echo "$ac_t""yes" 1>&6
4090 else
4091 echo "$ac_t""no" 1>&6
4092 fi
4093
4094
4095 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4096 echo "configure:4097: checking for --enable-snglinst" >&5
4097 no_cache=0
4098 # Check whether --enable-snglinst or --disable-snglinst was given.
4099 if test "${enable_snglinst+set}" = set; then
4100 enableval="$enable_snglinst"
4101
4102 if test "$enableval" = yes; then
4103 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4104 else
4105 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4106 fi
4107
4108 else
4109
4110 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4111 if test "x$LINE" != x ; then
4112 eval "DEFAULT_$LINE"
4113 else
4114 no_cache=1
4115 fi
4116
4117 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4118
4119 fi
4120
4121
4122 eval "$ac_cv_use_snglinst"
4123 if test "$no_cache" != 1; then
4124 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4125 fi
4126
4127 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4128 echo "$ac_t""yes" 1>&6
4129 else
4130 echo "$ac_t""no" 1>&6
4131 fi
4132
4133
4134
4135 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4136 echo "configure:4137: checking for --enable-mimetype" >&5
4137 no_cache=0
4138 # Check whether --enable-mimetype or --disable-mimetype was given.
4139 if test "${enable_mimetype+set}" = set; then
4140 enableval="$enable_mimetype"
4141
4142 if test "$enableval" = yes; then
4143 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4144 else
4145 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4146 fi
4147
4148 else
4149
4150 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4151 if test "x$LINE" != x ; then
4152 eval "DEFAULT_$LINE"
4153 else
4154 no_cache=1
4155 fi
4156
4157 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4158
4159 fi
4160
4161
4162 eval "$ac_cv_use_mimetype"
4163 if test "$no_cache" != 1; then
4164 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4165 fi
4166
4167 if test "$wxUSE_MIMETYPE" = yes; then
4168 echo "$ac_t""yes" 1>&6
4169 else
4170 echo "$ac_t""no" 1>&6
4171 fi
4172
4173
4174 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4175 echo "configure:4176: checking for --enable-system_options" >&5
4176 no_cache=0
4177 # Check whether --enable-system_options or --disable-system_options was given.
4178 if test "${enable_system_options+set}" = set; then
4179 enableval="$enable_system_options"
4180
4181 if test "$enableval" = yes; then
4182 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4183 else
4184 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4185 fi
4186
4187 else
4188
4189 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4190 if test "x$LINE" != x ; then
4191 eval "DEFAULT_$LINE"
4192 else
4193 no_cache=1
4194 fi
4195
4196 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4197
4198 fi
4199
4200
4201 eval "$ac_cv_use_system_options"
4202 if test "$no_cache" != 1; then
4203 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4204 fi
4205
4206 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4207 echo "$ac_t""yes" 1>&6
4208 else
4209 echo "$ac_t""no" 1>&6
4210 fi
4211
4212
4213
4214
4215 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4216 echo "configure:4217: checking for --enable-threads" >&5
4217 no_cache=0
4218 # Check whether --enable-threads or --disable-threads was given.
4219 if test "${enable_threads+set}" = set; then
4220 enableval="$enable_threads"
4221
4222 if test "$enableval" = yes; then
4223 ac_cv_use_threads='wxUSE_THREADS=yes'
4224 else
4225 ac_cv_use_threads='wxUSE_THREADS=no'
4226 fi
4227
4228 else
4229
4230 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4231 if test "x$LINE" != x ; then
4232 eval "DEFAULT_$LINE"
4233 else
4234 no_cache=1
4235 fi
4236
4237 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4238
4239 fi
4240
4241
4242 eval "$ac_cv_use_threads"
4243 if test "$no_cache" != 1; then
4244 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4245 fi
4246
4247 if test "$wxUSE_THREADS" = yes; then
4248 echo "$ac_t""yes" 1>&6
4249 else
4250 echo "$ac_t""no" 1>&6
4251 fi
4252
4253
4254 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4255 echo "configure:4256: checking for --enable-serial" >&5
4256 no_cache=0
4257 # Check whether --enable-serial or --disable-serial was given.
4258 if test "${enable_serial+set}" = set; then
4259 enableval="$enable_serial"
4260
4261 if test "$enableval" = yes; then
4262 ac_cv_use_serial='wxUSE_SERIAL=yes'
4263 else
4264 ac_cv_use_serial='wxUSE_SERIAL=no'
4265 fi
4266
4267 else
4268
4269 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4270 if test "x$LINE" != x ; then
4271 eval "DEFAULT_$LINE"
4272 else
4273 no_cache=1
4274 fi
4275
4276 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4277
4278 fi
4279
4280
4281 eval "$ac_cv_use_serial"
4282 if test "$no_cache" != 1; then
4283 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4284 fi
4285
4286 if test "$wxUSE_SERIAL" = yes; then
4287 echo "$ac_t""yes" 1>&6
4288 else
4289 echo "$ac_t""no" 1>&6
4290 fi
4291
4292
4293 if test "$wxUSE_GUI" = "yes"; then
4294
4295
4296
4297 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4298 echo "configure:4299: checking for --enable-docview" >&5
4299 no_cache=0
4300 # Check whether --enable-docview or --disable-docview was given.
4301 if test "${enable_docview+set}" = set; then
4302 enableval="$enable_docview"
4303
4304 if test "$enableval" = yes; then
4305 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4306 else
4307 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4308 fi
4309
4310 else
4311
4312 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4313 if test "x$LINE" != x ; then
4314 eval "DEFAULT_$LINE"
4315 else
4316 no_cache=1
4317 fi
4318
4319 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4320
4321 fi
4322
4323
4324 eval "$ac_cv_use_docview"
4325 if test "$no_cache" != 1; then
4326 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4327 fi
4328
4329 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4330 echo "$ac_t""yes" 1>&6
4331 else
4332 echo "$ac_t""no" 1>&6
4333 fi
4334
4335
4336 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4337 echo "configure:4338: checking for --enable-help" >&5
4338 no_cache=0
4339 # Check whether --enable-help or --disable-help was given.
4340 if test "${enable_help+set}" = set; then
4341 enableval="$enable_help"
4342
4343 if test "$enableval" = yes; then
4344 ac_cv_use_help='wxUSE_HELP=yes'
4345 else
4346 ac_cv_use_help='wxUSE_HELP=no'
4347 fi
4348
4349 else
4350
4351 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4352 if test "x$LINE" != x ; then
4353 eval "DEFAULT_$LINE"
4354 else
4355 no_cache=1
4356 fi
4357
4358 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4359
4360 fi
4361
4362
4363 eval "$ac_cv_use_help"
4364 if test "$no_cache" != 1; then
4365 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4366 fi
4367
4368 if test "$wxUSE_HELP" = yes; then
4369 echo "$ac_t""yes" 1>&6
4370 else
4371 echo "$ac_t""no" 1>&6
4372 fi
4373
4374
4375 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4376 echo "configure:4377: checking for --enable-mshtmlhelp" >&5
4377 no_cache=0
4378 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4379 if test "${enable_mshtmlhelp+set}" = set; then
4380 enableval="$enable_mshtmlhelp"
4381
4382 if test "$enableval" = yes; then
4383 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4384 else
4385 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4386 fi
4387
4388 else
4389
4390 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4391 if test "x$LINE" != x ; then
4392 eval "DEFAULT_$LINE"
4393 else
4394 no_cache=1
4395 fi
4396
4397 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4398
4399 fi
4400
4401
4402 eval "$ac_cv_use_mshtmlhelp"
4403 if test "$no_cache" != 1; then
4404 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4405 fi
4406
4407 if test "$wxUSE_MS_HTML_HELP" = yes; then
4408 echo "$ac_t""yes" 1>&6
4409 else
4410 echo "$ac_t""no" 1>&6
4411 fi
4412
4413
4414 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4415 echo "configure:4416: checking for --enable-html" >&5
4416 no_cache=0
4417 # Check whether --enable-html or --disable-html was given.
4418 if test "${enable_html+set}" = set; then
4419 enableval="$enable_html"
4420
4421 if test "$enableval" = yes; then
4422 ac_cv_use_html='wxUSE_HTML=yes'
4423 else
4424 ac_cv_use_html='wxUSE_HTML=no'
4425 fi
4426
4427 else
4428
4429 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4430 if test "x$LINE" != x ; then
4431 eval "DEFAULT_$LINE"
4432 else
4433 no_cache=1
4434 fi
4435
4436 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4437
4438 fi
4439
4440
4441 eval "$ac_cv_use_html"
4442 if test "$no_cache" != 1; then
4443 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4444 fi
4445
4446 if test "$wxUSE_HTML" = yes; then
4447 echo "$ac_t""yes" 1>&6
4448 else
4449 echo "$ac_t""no" 1>&6
4450 fi
4451
4452
4453 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4454 echo "configure:4455: checking for --enable-htmlhelp" >&5
4455 no_cache=0
4456 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4457 if test "${enable_htmlhelp+set}" = set; then
4458 enableval="$enable_htmlhelp"
4459
4460 if test "$enableval" = yes; then
4461 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4462 else
4463 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4464 fi
4465
4466 else
4467
4468 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4469 if test "x$LINE" != x ; then
4470 eval "DEFAULT_$LINE"
4471 else
4472 no_cache=1
4473 fi
4474
4475 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4476
4477 fi
4478
4479
4480 eval "$ac_cv_use_htmlhelp"
4481 if test "$no_cache" != 1; then
4482 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4483 fi
4484
4485 if test "$wxUSE_WXHTML_HELP" = yes; then
4486 echo "$ac_t""yes" 1>&6
4487 else
4488 echo "$ac_t""no" 1>&6
4489 fi
4490
4491
4492 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4493 echo "configure:4494: checking for --enable-constraints" >&5
4494 no_cache=0
4495 # Check whether --enable-constraints or --disable-constraints was given.
4496 if test "${enable_constraints+set}" = set; then
4497 enableval="$enable_constraints"
4498
4499 if test "$enableval" = yes; then
4500 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4501 else
4502 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4503 fi
4504
4505 else
4506
4507 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4508 if test "x$LINE" != x ; then
4509 eval "DEFAULT_$LINE"
4510 else
4511 no_cache=1
4512 fi
4513
4514 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4515
4516 fi
4517
4518
4519 eval "$ac_cv_use_constraints"
4520 if test "$no_cache" != 1; then
4521 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4522 fi
4523
4524 if test "$wxUSE_CONSTRAINTS" = yes; then
4525 echo "$ac_t""yes" 1>&6
4526 else
4527 echo "$ac_t""no" 1>&6
4528 fi
4529
4530
4531 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4532 echo "configure:4533: checking for --enable-printarch" >&5
4533 no_cache=0
4534 # Check whether --enable-printarch or --disable-printarch was given.
4535 if test "${enable_printarch+set}" = set; then
4536 enableval="$enable_printarch"
4537
4538 if test "$enableval" = yes; then
4539 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4540 else
4541 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4542 fi
4543
4544 else
4545
4546 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4547 if test "x$LINE" != x ; then
4548 eval "DEFAULT_$LINE"
4549 else
4550 no_cache=1
4551 fi
4552
4553 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4554
4555 fi
4556
4557
4558 eval "$ac_cv_use_printarch"
4559 if test "$no_cache" != 1; then
4560 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4561 fi
4562
4563 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4564 echo "$ac_t""yes" 1>&6
4565 else
4566 echo "$ac_t""no" 1>&6
4567 fi
4568
4569
4570 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4571 echo "configure:4572: checking for --enable-mdi" >&5
4572 no_cache=0
4573 # Check whether --enable-mdi or --disable-mdi was given.
4574 if test "${enable_mdi+set}" = set; then
4575 enableval="$enable_mdi"
4576
4577 if test "$enableval" = yes; then
4578 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4579 else
4580 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4581 fi
4582
4583 else
4584
4585 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4586 if test "x$LINE" != x ; then
4587 eval "DEFAULT_$LINE"
4588 else
4589 no_cache=1
4590 fi
4591
4592 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4593
4594 fi
4595
4596
4597 eval "$ac_cv_use_mdi"
4598 if test "$no_cache" != 1; then
4599 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4600 fi
4601
4602 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4603 echo "$ac_t""yes" 1>&6
4604 else
4605 echo "$ac_t""no" 1>&6
4606 fi
4607
4608
4609 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4610 echo "configure:4611: checking for --enable-loggui" >&5
4611 no_cache=0
4612 # Check whether --enable-loggui or --disable-loggui was given.
4613 if test "${enable_loggui+set}" = set; then
4614 enableval="$enable_loggui"
4615
4616 if test "$enableval" = yes; then
4617 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4618 else
4619 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4620 fi
4621
4622 else
4623
4624 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4625 if test "x$LINE" != x ; then
4626 eval "DEFAULT_$LINE"
4627 else
4628 no_cache=1
4629 fi
4630
4631 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4632
4633 fi
4634
4635
4636 eval "$ac_cv_use_loggui"
4637 if test "$no_cache" != 1; then
4638 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4639 fi
4640
4641 if test "$wxUSE_LOGGUI" = yes; then
4642 echo "$ac_t""yes" 1>&6
4643 else
4644 echo "$ac_t""no" 1>&6
4645 fi
4646
4647
4648 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4649 echo "configure:4650: checking for --enable-logwin" >&5
4650 no_cache=0
4651 # Check whether --enable-logwin or --disable-logwin was given.
4652 if test "${enable_logwin+set}" = set; then
4653 enableval="$enable_logwin"
4654
4655 if test "$enableval" = yes; then
4656 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4657 else
4658 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4659 fi
4660
4661 else
4662
4663 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4664 if test "x$LINE" != x ; then
4665 eval "DEFAULT_$LINE"
4666 else
4667 no_cache=1
4668 fi
4669
4670 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4671
4672 fi
4673
4674
4675 eval "$ac_cv_use_logwin"
4676 if test "$no_cache" != 1; then
4677 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4678 fi
4679
4680 if test "$wxUSE_LOGWINDOW" = yes; then
4681 echo "$ac_t""yes" 1>&6
4682 else
4683 echo "$ac_t""no" 1>&6
4684 fi
4685
4686
4687
4688 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4689 echo "configure:4690: checking for --enable-postscript" >&5
4690 no_cache=0
4691 # Check whether --enable-postscript or --disable-postscript was given.
4692 if test "${enable_postscript+set}" = set; then
4693 enableval="$enable_postscript"
4694
4695 if test "$enableval" = yes; then
4696 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4697 else
4698 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4699 fi
4700
4701 else
4702
4703 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4704 if test "x$LINE" != x ; then
4705 eval "DEFAULT_$LINE"
4706 else
4707 no_cache=1
4708 fi
4709
4710 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4711
4712 fi
4713
4714
4715 eval "$ac_cv_use_postscript"
4716 if test "$no_cache" != 1; then
4717 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4718 fi
4719
4720 if test "$wxUSE_POSTSCRIPT" = yes; then
4721 echo "$ac_t""yes" 1>&6
4722 else
4723 echo "$ac_t""no" 1>&6
4724 fi
4725
4726
4727
4728
4729
4730 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4731 echo "configure:4732: checking for --enable-prologio" >&5
4732 no_cache=0
4733 # Check whether --enable-prologio or --disable-prologio was given.
4734 if test "${enable_prologio+set}" = set; then
4735 enableval="$enable_prologio"
4736
4737 if test "$enableval" = yes; then
4738 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4739 else
4740 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4741 fi
4742
4743 else
4744
4745 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4746 if test "x$LINE" != x ; then
4747 eval "DEFAULT_$LINE"
4748 else
4749 no_cache=1
4750 fi
4751
4752 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4753
4754 fi
4755
4756
4757 eval "$ac_cv_use_prologio"
4758 if test "$no_cache" != 1; then
4759 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4760 fi
4761
4762 if test "$wxUSE_PROLOGIO" = yes; then
4763 echo "$ac_t""yes" 1>&6
4764 else
4765 echo "$ac_t""no" 1>&6
4766 fi
4767
4768
4769 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4770 echo "configure:4771: checking for --enable-resources" >&5
4771 no_cache=0
4772 # Check whether --enable-resources or --disable-resources was given.
4773 if test "${enable_resources+set}" = set; then
4774 enableval="$enable_resources"
4775
4776 if test "$enableval" = yes; then
4777 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4778 else
4779 ac_cv_use_resources='wxUSE_RESOURCES=no'
4780 fi
4781
4782 else
4783
4784 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4785 if test "x$LINE" != x ; then
4786 eval "DEFAULT_$LINE"
4787 else
4788 no_cache=1
4789 fi
4790
4791 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4792
4793 fi
4794
4795
4796 eval "$ac_cv_use_resources"
4797 if test "$no_cache" != 1; then
4798 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4799 fi
4800
4801 if test "$wxUSE_RESOURCES" = yes; then
4802 echo "$ac_t""yes" 1>&6
4803 else
4804 echo "$ac_t""no" 1>&6
4805 fi
4806
4807
4808
4809 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4810 echo "configure:4811: checking for --enable-xresources" >&5
4811 no_cache=0
4812 # Check whether --enable-xresources or --disable-xresources was given.
4813 if test "${enable_xresources+set}" = set; then
4814 enableval="$enable_xresources"
4815
4816 if test "$enableval" = yes; then
4817 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4818 else
4819 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4820 fi
4821
4822 else
4823
4824 LINE=`grep "wxUSE_X_RESOURCES" ${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_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4832
4833 fi
4834
4835
4836 eval "$ac_cv_use_xresources"
4837 if test "$no_cache" != 1; then
4838 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4839 fi
4840
4841 if test "$wxUSE_X_RESOURCES" = yes; then
4842 echo "$ac_t""yes" 1>&6
4843 else
4844 echo "$ac_t""no" 1>&6
4845 fi
4846
4847
4848
4849
4850 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4851 echo "configure:4852: checking for --enable-clipboard" >&5
4852 no_cache=0
4853 # Check whether --enable-clipboard or --disable-clipboard was given.
4854 if test "${enable_clipboard+set}" = set; then
4855 enableval="$enable_clipboard"
4856
4857 if test "$enableval" = yes; then
4858 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4859 else
4860 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4861 fi
4862
4863 else
4864
4865 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4866 if test "x$LINE" != x ; then
4867 eval "DEFAULT_$LINE"
4868 else
4869 no_cache=1
4870 fi
4871
4872 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4873
4874 fi
4875
4876
4877 eval "$ac_cv_use_clipboard"
4878 if test "$no_cache" != 1; then
4879 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4880 fi
4881
4882 if test "$wxUSE_CLIPBOARD" = yes; then
4883 echo "$ac_t""yes" 1>&6
4884 else
4885 echo "$ac_t""no" 1>&6
4886 fi
4887
4888
4889 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4890 echo "configure:4891: checking for --enable-dnd" >&5
4891 no_cache=0
4892 # Check whether --enable-dnd or --disable-dnd was given.
4893 if test "${enable_dnd+set}" = set; then
4894 enableval="$enable_dnd"
4895
4896 if test "$enableval" = yes; then
4897 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4898 else
4899 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4900 fi
4901
4902 else
4903
4904 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4905 if test "x$LINE" != x ; then
4906 eval "DEFAULT_$LINE"
4907 else
4908 no_cache=1
4909 fi
4910
4911 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4912
4913 fi
4914
4915
4916 eval "$ac_cv_use_dnd"
4917 if test "$no_cache" != 1; then
4918 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4919 fi
4920
4921 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4922 echo "$ac_t""yes" 1>&6
4923 else
4924 echo "$ac_t""no" 1>&6
4925 fi
4926
4927
4928 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4929 echo "configure:4930: checking for --enable-metafile" >&5
4930 no_cache=0
4931 # Check whether --enable-metafile or --disable-metafile was given.
4932 if test "${enable_metafile+set}" = set; then
4933 enableval="$enable_metafile"
4934
4935 if test "$enableval" = yes; then
4936 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4937 else
4938 ac_cv_use_metafile='wxUSE_METAFILE=no'
4939 fi
4940
4941 else
4942
4943 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4944 if test "x$LINE" != x ; then
4945 eval "DEFAULT_$LINE"
4946 else
4947 no_cache=1
4948 fi
4949
4950 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4951
4952 fi
4953
4954
4955 eval "$ac_cv_use_metafile"
4956 if test "$no_cache" != 1; then
4957 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4958 fi
4959
4960 if test "$wxUSE_METAFILE" = yes; then
4961 echo "$ac_t""yes" 1>&6
4962 else
4963 echo "$ac_t""no" 1>&6
4964 fi
4965
4966
4967
4968 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
4969 echo "configure:4970: checking for --enable-treelayout" >&5
4970 no_cache=0
4971 # Check whether --enable-treelayout or --disable-treelayout was given.
4972 if test "${enable_treelayout+set}" = set; then
4973 enableval="$enable_treelayout"
4974
4975 if test "$enableval" = yes; then
4976 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
4977 else
4978 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
4979 fi
4980
4981 else
4982
4983 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
4984 if test "x$LINE" != x ; then
4985 eval "DEFAULT_$LINE"
4986 else
4987 no_cache=1
4988 fi
4989
4990 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
4991
4992 fi
4993
4994
4995 eval "$ac_cv_use_treelayout"
4996 if test "$no_cache" != 1; then
4997 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
4998 fi
4999
5000 if test "$wxUSE_TREELAYOUT" = yes; then
5001 echo "$ac_t""yes" 1>&6
5002 else
5003 echo "$ac_t""no" 1>&6
5004 fi
5005
5006
5007
5008
5009 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5010 echo "configure:5011: checking for --enable-controls" >&5
5011 no_cache=0
5012 # Check whether --enable-controls or --disable-controls was given.
5013 if test "${enable_controls+set}" = set; then
5014 enableval="$enable_controls"
5015
5016 if test "$enableval" = yes; then
5017 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5018 else
5019 ac_cv_use_controls='wxUSE_CONTROLS=no'
5020 fi
5021
5022 else
5023
5024 LINE=`grep "wxUSE_CONTROLS" ${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_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5032
5033 fi
5034
5035
5036 eval "$ac_cv_use_controls"
5037 if test "$no_cache" != 1; then
5038 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5039 fi
5040
5041 if test "$wxUSE_CONTROLS" = yes; then
5042 echo "$ac_t""yes" 1>&6
5043 else
5044 echo "$ac_t""no" 1>&6
5045 fi
5046
5047
5048 if test "$wxUSE_CONTROLS" = "yes"; then
5049 DEFAULT_wxUSE_ACCEL=yes
5050 DEFAULT_wxUSE_BMPBUTTON=yes
5051 DEFAULT_wxUSE_BUTTON=yes
5052 DEFAULT_wxUSE_CALCTRL=no
5053 DEFAULT_wxUSE_CARET=yes
5054 DEFAULT_wxUSE_COMBOBOX=yes
5055 DEFAULT_wxUSE_CHECKBOX=yes
5056 DEFAULT_wxUSE_CHECKLISTBOX=yes
5057 DEFAULT_wxUSE_CHOICE=yes
5058 DEFAULT_wxUSE_GAUGE=yes
5059 DEFAULT_wxUSE_GRID=yes
5060 DEFAULT_wxUSE_NEW_GRID=yes
5061 DEFAULT_wxUSE_IMAGLIST=yes
5062 DEFAULT_wxUSE_LISTBOX=yes
5063 DEFAULT_wxUSE_LISTCTRL=yes
5064 DEFAULT_wxUSE_NOTEBOOK=yes
5065 DEFAULT_wxUSE_PROPSHEET=yes
5066 DEFAULT_wxUSE_RADIOBOX=yes
5067 DEFAULT_wxUSE_RADIOBTN=yes
5068 DEFAULT_wxUSE_SASH=yes
5069 DEFAULT_wxUSE_SCROLLBAR=yes
5070 DEFAULT_wxUSE_SLIDER=yes
5071 DEFAULT_wxUSE_SPINBTN=yes
5072 DEFAULT_wxUSE_SPINCTRL=yes
5073 DEFAULT_wxUSE_SPLITTER=yes
5074 DEFAULT_wxUSE_STATBMP=yes
5075 DEFAULT_wxUSE_STATBOX=yes
5076 DEFAULT_wxUSE_STATLINE=yes
5077 DEFAULT_wxUSE_STATUSBAR=yes
5078 DEFAULT_wxUSE_TAB_DIALOG=yes
5079 DEFAULT_wxUSE_TOGGLEBTN=yes
5080 DEFAULT_wxUSE_TOOLBAR=yes
5081 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5082 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5083 DEFAULT_wxUSE_TOOLTIPS=yes
5084 DEFAULT_wxUSE_TREECTRL=yes
5085 DEFAULT_wxUSE_POPUPWIN=yes
5086 elif test "$wxUSE_CONTROLS" = "no"; then
5087 DEFAULT_wxUSE_ACCEL=no
5088 DEFAULT_wxUSE_BMPBUTTON=no
5089 DEFAULT_wxUSE_BUTTON=no
5090 DEFAULT_wxUSE_CALCTRL=no
5091 DEFAULT_wxUSE_CARET=no
5092 DEFAULT_wxUSE_COMBOBOX=no
5093 DEFAULT_wxUSE_CHECKBOX=no
5094 DEFAULT_wxUSE_CHECKLISTBOX=no
5095 DEFAULT_wxUSE_CHOICE=no
5096 DEFAULT_wxUSE_GAUGE=no
5097 DEFAULT_wxUSE_GRID=no
5098 DEFAULT_wxUSE_NEW_GRID=no
5099 DEFAULT_wxUSE_IMAGLIST=no
5100 DEFAULT_wxUSE_LISTBOX=no
5101 DEFAULT_wxUSE_LISTCTRL=no
5102 DEFAULT_wxUSE_NOTEBOOK=no
5103 DEFAULT_wxUSE_PROPSHEET=no
5104 DEFAULT_wxUSE_RADIOBOX=no
5105 DEFAULT_wxUSE_RADIOBTN=no
5106 DEFAULT_wxUSE_SASH=no
5107 DEFAULT_wxUSE_SCROLLBAR=no
5108 DEFAULT_wxUSE_SLIDER=no
5109 DEFAULT_wxUSE_SPINBTN=no
5110 DEFAULT_wxUSE_SPINCTRL=no
5111 DEFAULT_wxUSE_SPLITTER=no
5112 DEFAULT_wxUSE_STATBMP=no
5113 DEFAULT_wxUSE_STATBOX=no
5114 DEFAULT_wxUSE_STATLINE=no
5115 DEFAULT_wxUSE_STATUSBAR=no
5116 DEFAULT_wxUSE_TAB_DIALOG=no
5117 DEFAULT_wxUSE_TOGGLEBTN=no
5118 DEFAULT_wxUSE_TOOLBAR=no
5119 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5120 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5121 DEFAULT_wxUSE_TOOLTIPS=no
5122 DEFAULT_wxUSE_TREECTRL=no
5123 DEFAULT_wxUSE_POPUPWIN=no
5124 fi
5125
5126
5127 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5128 echo "configure:5129: checking for --enable-accel" >&5
5129 no_cache=0
5130 # Check whether --enable-accel or --disable-accel was given.
5131 if test "${enable_accel+set}" = set; then
5132 enableval="$enable_accel"
5133
5134 if test "$enableval" = yes; then
5135 ac_cv_use_accel='wxUSE_ACCEL=yes'
5136 else
5137 ac_cv_use_accel='wxUSE_ACCEL=no'
5138 fi
5139
5140 else
5141
5142 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5143 if test "x$LINE" != x ; then
5144 eval "DEFAULT_$LINE"
5145 else
5146 no_cache=1
5147 fi
5148
5149 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5150
5151 fi
5152
5153
5154 eval "$ac_cv_use_accel"
5155 if test "$no_cache" != 1; then
5156 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5157 fi
5158
5159 if test "$wxUSE_ACCEL" = yes; then
5160 echo "$ac_t""yes" 1>&6
5161 else
5162 echo "$ac_t""no" 1>&6
5163 fi
5164
5165
5166 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5167 echo "configure:5168: checking for --enable-button" >&5
5168 no_cache=0
5169 # Check whether --enable-button or --disable-button was given.
5170 if test "${enable_button+set}" = set; then
5171 enableval="$enable_button"
5172
5173 if test "$enableval" = yes; then
5174 ac_cv_use_button='wxUSE_BUTTON=yes'
5175 else
5176 ac_cv_use_button='wxUSE_BUTTON=no'
5177 fi
5178
5179 else
5180
5181 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5182 if test "x$LINE" != x ; then
5183 eval "DEFAULT_$LINE"
5184 else
5185 no_cache=1
5186 fi
5187
5188 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5189
5190 fi
5191
5192
5193 eval "$ac_cv_use_button"
5194 if test "$no_cache" != 1; then
5195 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5196 fi
5197
5198 if test "$wxUSE_BUTTON" = yes; then
5199 echo "$ac_t""yes" 1>&6
5200 else
5201 echo "$ac_t""no" 1>&6
5202 fi
5203
5204
5205 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5206 echo "configure:5207: checking for --enable-bmpbutton" >&5
5207 no_cache=0
5208 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5209 if test "${enable_bmpbutton+set}" = set; then
5210 enableval="$enable_bmpbutton"
5211
5212 if test "$enableval" = yes; then
5213 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5214 else
5215 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5216 fi
5217
5218 else
5219
5220 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5221 if test "x$LINE" != x ; then
5222 eval "DEFAULT_$LINE"
5223 else
5224 no_cache=1
5225 fi
5226
5227 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5228
5229 fi
5230
5231
5232 eval "$ac_cv_use_bmpbutton"
5233 if test "$no_cache" != 1; then
5234 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5235 fi
5236
5237 if test "$wxUSE_BMPBUTTON" = yes; then
5238 echo "$ac_t""yes" 1>&6
5239 else
5240 echo "$ac_t""no" 1>&6
5241 fi
5242
5243
5244 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5245 echo "configure:5246: checking for --enable-calendar" >&5
5246 no_cache=0
5247 # Check whether --enable-calendar or --disable-calendar was given.
5248 if test "${enable_calendar+set}" = set; then
5249 enableval="$enable_calendar"
5250
5251 if test "$enableval" = yes; then
5252 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5253 else
5254 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5255 fi
5256
5257 else
5258
5259 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5260 if test "x$LINE" != x ; then
5261 eval "DEFAULT_$LINE"
5262 else
5263 no_cache=1
5264 fi
5265
5266 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5267
5268 fi
5269
5270
5271 eval "$ac_cv_use_calendar"
5272 if test "$no_cache" != 1; then
5273 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5274 fi
5275
5276 if test "$wxUSE_CALCTRL" = yes; then
5277 echo "$ac_t""yes" 1>&6
5278 else
5279 echo "$ac_t""no" 1>&6
5280 fi
5281
5282
5283 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5284 echo "configure:5285: checking for --enable-caret" >&5
5285 no_cache=0
5286 # Check whether --enable-caret or --disable-caret was given.
5287 if test "${enable_caret+set}" = set; then
5288 enableval="$enable_caret"
5289
5290 if test "$enableval" = yes; then
5291 ac_cv_use_caret='wxUSE_CARET=yes'
5292 else
5293 ac_cv_use_caret='wxUSE_CARET=no'
5294 fi
5295
5296 else
5297
5298 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5299 if test "x$LINE" != x ; then
5300 eval "DEFAULT_$LINE"
5301 else
5302 no_cache=1
5303 fi
5304
5305 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5306
5307 fi
5308
5309
5310 eval "$ac_cv_use_caret"
5311 if test "$no_cache" != 1; then
5312 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5313 fi
5314
5315 if test "$wxUSE_CARET" = yes; then
5316 echo "$ac_t""yes" 1>&6
5317 else
5318 echo "$ac_t""no" 1>&6
5319 fi
5320
5321
5322 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5323 echo "configure:5324: checking for --enable-checkbox" >&5
5324 no_cache=0
5325 # Check whether --enable-checkbox or --disable-checkbox was given.
5326 if test "${enable_checkbox+set}" = set; then
5327 enableval="$enable_checkbox"
5328
5329 if test "$enableval" = yes; then
5330 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5331 else
5332 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5333 fi
5334
5335 else
5336
5337 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5338 if test "x$LINE" != x ; then
5339 eval "DEFAULT_$LINE"
5340 else
5341 no_cache=1
5342 fi
5343
5344 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5345
5346 fi
5347
5348
5349 eval "$ac_cv_use_checkbox"
5350 if test "$no_cache" != 1; then
5351 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5352 fi
5353
5354 if test "$wxUSE_CHECKBOX" = yes; then
5355 echo "$ac_t""yes" 1>&6
5356 else
5357 echo "$ac_t""no" 1>&6
5358 fi
5359
5360
5361 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5362 echo "configure:5363: checking for --enable-checklst" >&5
5363 no_cache=0
5364 # Check whether --enable-checklst or --disable-checklst was given.
5365 if test "${enable_checklst+set}" = set; then
5366 enableval="$enable_checklst"
5367
5368 if test "$enableval" = yes; then
5369 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5370 else
5371 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5372 fi
5373
5374 else
5375
5376 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5377 if test "x$LINE" != x ; then
5378 eval "DEFAULT_$LINE"
5379 else
5380 no_cache=1
5381 fi
5382
5383 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5384
5385 fi
5386
5387
5388 eval "$ac_cv_use_checklst"
5389 if test "$no_cache" != 1; then
5390 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5391 fi
5392
5393 if test "$wxUSE_CHECKLST" = yes; then
5394 echo "$ac_t""yes" 1>&6
5395 else
5396 echo "$ac_t""no" 1>&6
5397 fi
5398
5399
5400 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5401 echo "configure:5402: checking for --enable-choice" >&5
5402 no_cache=0
5403 # Check whether --enable-choice or --disable-choice was given.
5404 if test "${enable_choice+set}" = set; then
5405 enableval="$enable_choice"
5406
5407 if test "$enableval" = yes; then
5408 ac_cv_use_choice='wxUSE_CHOICE=yes'
5409 else
5410 ac_cv_use_choice='wxUSE_CHOICE=no'
5411 fi
5412
5413 else
5414
5415 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5416 if test "x$LINE" != x ; then
5417 eval "DEFAULT_$LINE"
5418 else
5419 no_cache=1
5420 fi
5421
5422 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5423
5424 fi
5425
5426
5427 eval "$ac_cv_use_choice"
5428 if test "$no_cache" != 1; then
5429 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5430 fi
5431
5432 if test "$wxUSE_CHOICE" = yes; then
5433 echo "$ac_t""yes" 1>&6
5434 else
5435 echo "$ac_t""no" 1>&6
5436 fi
5437
5438
5439 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5440 echo "configure:5441: checking for --enable-combobox" >&5
5441 no_cache=0
5442 # Check whether --enable-combobox or --disable-combobox was given.
5443 if test "${enable_combobox+set}" = set; then
5444 enableval="$enable_combobox"
5445
5446 if test "$enableval" = yes; then
5447 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5448 else
5449 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5450 fi
5451
5452 else
5453
5454 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5455 if test "x$LINE" != x ; then
5456 eval "DEFAULT_$LINE"
5457 else
5458 no_cache=1
5459 fi
5460
5461 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5462
5463 fi
5464
5465
5466 eval "$ac_cv_use_combobox"
5467 if test "$no_cache" != 1; then
5468 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5469 fi
5470
5471 if test "$wxUSE_COMBOBOX" = yes; then
5472 echo "$ac_t""yes" 1>&6
5473 else
5474 echo "$ac_t""no" 1>&6
5475 fi
5476
5477
5478 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5479 echo "configure:5480: checking for --enable-gauge" >&5
5480 no_cache=0
5481 # Check whether --enable-gauge or --disable-gauge was given.
5482 if test "${enable_gauge+set}" = set; then
5483 enableval="$enable_gauge"
5484
5485 if test "$enableval" = yes; then
5486 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5487 else
5488 ac_cv_use_gauge='wxUSE_GAUGE=no'
5489 fi
5490
5491 else
5492
5493 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5494 if test "x$LINE" != x ; then
5495 eval "DEFAULT_$LINE"
5496 else
5497 no_cache=1
5498 fi
5499
5500 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5501
5502 fi
5503
5504
5505 eval "$ac_cv_use_gauge"
5506 if test "$no_cache" != 1; then
5507 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5508 fi
5509
5510 if test "$wxUSE_GAUGE" = yes; then
5511 echo "$ac_t""yes" 1>&6
5512 else
5513 echo "$ac_t""no" 1>&6
5514 fi
5515
5516
5517 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5518 echo "configure:5519: checking for --enable-grid" >&5
5519 no_cache=0
5520 # Check whether --enable-grid or --disable-grid was given.
5521 if test "${enable_grid+set}" = set; then
5522 enableval="$enable_grid"
5523
5524 if test "$enableval" = yes; then
5525 ac_cv_use_grid='wxUSE_GRID=yes'
5526 else
5527 ac_cv_use_grid='wxUSE_GRID=no'
5528 fi
5529
5530 else
5531
5532 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5533 if test "x$LINE" != x ; then
5534 eval "DEFAULT_$LINE"
5535 else
5536 no_cache=1
5537 fi
5538
5539 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5540
5541 fi
5542
5543
5544 eval "$ac_cv_use_grid"
5545 if test "$no_cache" != 1; then
5546 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5547 fi
5548
5549 if test "$wxUSE_GRID" = yes; then
5550 echo "$ac_t""yes" 1>&6
5551 else
5552 echo "$ac_t""no" 1>&6
5553 fi
5554
5555
5556 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5557 echo "configure:5558: checking for --enable-newgrid" >&5
5558 no_cache=0
5559 # Check whether --enable-newgrid or --disable-newgrid was given.
5560 if test "${enable_newgrid+set}" = set; then
5561 enableval="$enable_newgrid"
5562
5563 if test "$enableval" = yes; then
5564 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5565 else
5566 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5567 fi
5568
5569 else
5570
5571 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5572 if test "x$LINE" != x ; then
5573 eval "DEFAULT_$LINE"
5574 else
5575 no_cache=1
5576 fi
5577
5578 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5579
5580 fi
5581
5582
5583 eval "$ac_cv_use_newgrid"
5584 if test "$no_cache" != 1; then
5585 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5586 fi
5587
5588 if test "$wxUSE_NEW_GRID" = yes; then
5589 echo "$ac_t""yes" 1>&6
5590 else
5591 echo "$ac_t""no" 1>&6
5592 fi
5593
5594
5595 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5596 echo "configure:5597: checking for --enable-imaglist" >&5
5597 no_cache=0
5598 # Check whether --enable-imaglist or --disable-imaglist was given.
5599 if test "${enable_imaglist+set}" = set; then
5600 enableval="$enable_imaglist"
5601
5602 if test "$enableval" = yes; then
5603 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5604 else
5605 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5606 fi
5607
5608 else
5609
5610 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5611 if test "x$LINE" != x ; then
5612 eval "DEFAULT_$LINE"
5613 else
5614 no_cache=1
5615 fi
5616
5617 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5618
5619 fi
5620
5621
5622 eval "$ac_cv_use_imaglist"
5623 if test "$no_cache" != 1; then
5624 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5625 fi
5626
5627 if test "$wxUSE_IMAGLIST" = yes; then
5628 echo "$ac_t""yes" 1>&6
5629 else
5630 echo "$ac_t""no" 1>&6
5631 fi
5632
5633
5634 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5635 echo "configure:5636: checking for --enable-listbox" >&5
5636 no_cache=0
5637 # Check whether --enable-listbox or --disable-listbox was given.
5638 if test "${enable_listbox+set}" = set; then
5639 enableval="$enable_listbox"
5640
5641 if test "$enableval" = yes; then
5642 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5643 else
5644 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5645 fi
5646
5647 else
5648
5649 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5650 if test "x$LINE" != x ; then
5651 eval "DEFAULT_$LINE"
5652 else
5653 no_cache=1
5654 fi
5655
5656 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5657
5658 fi
5659
5660
5661 eval "$ac_cv_use_listbox"
5662 if test "$no_cache" != 1; then
5663 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5664 fi
5665
5666 if test "$wxUSE_LISTBOX" = yes; then
5667 echo "$ac_t""yes" 1>&6
5668 else
5669 echo "$ac_t""no" 1>&6
5670 fi
5671
5672
5673 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5674 echo "configure:5675: checking for --enable-listctrl" >&5
5675 no_cache=0
5676 # Check whether --enable-listctrl or --disable-listctrl was given.
5677 if test "${enable_listctrl+set}" = set; then
5678 enableval="$enable_listctrl"
5679
5680 if test "$enableval" = yes; then
5681 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5682 else
5683 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5684 fi
5685
5686 else
5687
5688 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5689 if test "x$LINE" != x ; then
5690 eval "DEFAULT_$LINE"
5691 else
5692 no_cache=1
5693 fi
5694
5695 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5696
5697 fi
5698
5699
5700 eval "$ac_cv_use_listctrl"
5701 if test "$no_cache" != 1; then
5702 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5703 fi
5704
5705 if test "$wxUSE_LISTCTRL" = yes; then
5706 echo "$ac_t""yes" 1>&6
5707 else
5708 echo "$ac_t""no" 1>&6
5709 fi
5710
5711
5712 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5713 echo "configure:5714: checking for --enable-notebook" >&5
5714 no_cache=0
5715 # Check whether --enable-notebook or --disable-notebook was given.
5716 if test "${enable_notebook+set}" = set; then
5717 enableval="$enable_notebook"
5718
5719 if test "$enableval" = yes; then
5720 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5721 else
5722 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5723 fi
5724
5725 else
5726
5727 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5728 if test "x$LINE" != x ; then
5729 eval "DEFAULT_$LINE"
5730 else
5731 no_cache=1
5732 fi
5733
5734 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5735
5736 fi
5737
5738
5739 eval "$ac_cv_use_notebook"
5740 if test "$no_cache" != 1; then
5741 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5742 fi
5743
5744 if test "$wxUSE_NOTEBOOK" = yes; then
5745 echo "$ac_t""yes" 1>&6
5746 else
5747 echo "$ac_t""no" 1>&6
5748 fi
5749
5750
5751 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5752 echo "configure:5753: checking for --enable-propsheet" >&5
5753 no_cache=0
5754 # Check whether --enable-propsheet or --disable-propsheet was given.
5755 if test "${enable_propsheet+set}" = set; then
5756 enableval="$enable_propsheet"
5757
5758 if test "$enableval" = yes; then
5759 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5760 else
5761 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5762 fi
5763
5764 else
5765
5766 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5767 if test "x$LINE" != x ; then
5768 eval "DEFAULT_$LINE"
5769 else
5770 no_cache=1
5771 fi
5772
5773 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5774
5775 fi
5776
5777
5778 eval "$ac_cv_use_propsheet"
5779 if test "$no_cache" != 1; then
5780 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5781 fi
5782
5783 if test "$wxUSE_PROPSHEET" = yes; then
5784 echo "$ac_t""yes" 1>&6
5785 else
5786 echo "$ac_t""no" 1>&6
5787 fi
5788
5789
5790 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5791 echo "configure:5792: checking for --enable-radiobox" >&5
5792 no_cache=0
5793 # Check whether --enable-radiobox or --disable-radiobox was given.
5794 if test "${enable_radiobox+set}" = set; then
5795 enableval="$enable_radiobox"
5796
5797 if test "$enableval" = yes; then
5798 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5799 else
5800 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5801 fi
5802
5803 else
5804
5805 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5806 if test "x$LINE" != x ; then
5807 eval "DEFAULT_$LINE"
5808 else
5809 no_cache=1
5810 fi
5811
5812 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5813
5814 fi
5815
5816
5817 eval "$ac_cv_use_radiobox"
5818 if test "$no_cache" != 1; then
5819 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5820 fi
5821
5822 if test "$wxUSE_RADIOBOX" = yes; then
5823 echo "$ac_t""yes" 1>&6
5824 else
5825 echo "$ac_t""no" 1>&6
5826 fi
5827
5828
5829 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5830 echo "configure:5831: checking for --enable-radiobtn" >&5
5831 no_cache=0
5832 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5833 if test "${enable_radiobtn+set}" = set; then
5834 enableval="$enable_radiobtn"
5835
5836 if test "$enableval" = yes; then
5837 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5838 else
5839 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5840 fi
5841
5842 else
5843
5844 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5845 if test "x$LINE" != x ; then
5846 eval "DEFAULT_$LINE"
5847 else
5848 no_cache=1
5849 fi
5850
5851 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5852
5853 fi
5854
5855
5856 eval "$ac_cv_use_radiobtn"
5857 if test "$no_cache" != 1; then
5858 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5859 fi
5860
5861 if test "$wxUSE_RADIOBTN" = yes; then
5862 echo "$ac_t""yes" 1>&6
5863 else
5864 echo "$ac_t""no" 1>&6
5865 fi
5866
5867
5868 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5869 echo "configure:5870: checking for --enable-sash" >&5
5870 no_cache=0
5871 # Check whether --enable-sash or --disable-sash was given.
5872 if test "${enable_sash+set}" = set; then
5873 enableval="$enable_sash"
5874
5875 if test "$enableval" = yes; then
5876 ac_cv_use_sash='wxUSE_SASH=yes'
5877 else
5878 ac_cv_use_sash='wxUSE_SASH=no'
5879 fi
5880
5881 else
5882
5883 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5884 if test "x$LINE" != x ; then
5885 eval "DEFAULT_$LINE"
5886 else
5887 no_cache=1
5888 fi
5889
5890 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5891
5892 fi
5893
5894
5895 eval "$ac_cv_use_sash"
5896 if test "$no_cache" != 1; then
5897 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5898 fi
5899
5900 if test "$wxUSE_SASH" = yes; then
5901 echo "$ac_t""yes" 1>&6
5902 else
5903 echo "$ac_t""no" 1>&6
5904 fi
5905
5906
5907 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5908 echo "configure:5909: checking for --enable-scrollbar" >&5
5909 no_cache=0
5910 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5911 if test "${enable_scrollbar+set}" = set; then
5912 enableval="$enable_scrollbar"
5913
5914 if test "$enableval" = yes; then
5915 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5916 else
5917 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5918 fi
5919
5920 else
5921
5922 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5923 if test "x$LINE" != x ; then
5924 eval "DEFAULT_$LINE"
5925 else
5926 no_cache=1
5927 fi
5928
5929 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5930
5931 fi
5932
5933
5934 eval "$ac_cv_use_scrollbar"
5935 if test "$no_cache" != 1; then
5936 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5937 fi
5938
5939 if test "$wxUSE_SCROLLBAR" = yes; then
5940 echo "$ac_t""yes" 1>&6
5941 else
5942 echo "$ac_t""no" 1>&6
5943 fi
5944
5945
5946 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5947 echo "configure:5948: checking for --enable-slider" >&5
5948 no_cache=0
5949 # Check whether --enable-slider or --disable-slider was given.
5950 if test "${enable_slider+set}" = set; then
5951 enableval="$enable_slider"
5952
5953 if test "$enableval" = yes; then
5954 ac_cv_use_slider='wxUSE_SLIDER=yes'
5955 else
5956 ac_cv_use_slider='wxUSE_SLIDER=no'
5957 fi
5958
5959 else
5960
5961 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5962 if test "x$LINE" != x ; then
5963 eval "DEFAULT_$LINE"
5964 else
5965 no_cache=1
5966 fi
5967
5968 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5969
5970 fi
5971
5972
5973 eval "$ac_cv_use_slider"
5974 if test "$no_cache" != 1; then
5975 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5976 fi
5977
5978 if test "$wxUSE_SLIDER" = yes; then
5979 echo "$ac_t""yes" 1>&6
5980 else
5981 echo "$ac_t""no" 1>&6
5982 fi
5983
5984
5985 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5986 echo "configure:5987: checking for --enable-spinbtn" >&5
5987 no_cache=0
5988 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5989 if test "${enable_spinbtn+set}" = set; then
5990 enableval="$enable_spinbtn"
5991
5992 if test "$enableval" = yes; then
5993 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5994 else
5995 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5996 fi
5997
5998 else
5999
6000 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6001 if test "x$LINE" != x ; then
6002 eval "DEFAULT_$LINE"
6003 else
6004 no_cache=1
6005 fi
6006
6007 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6008
6009 fi
6010
6011
6012 eval "$ac_cv_use_spinbtn"
6013 if test "$no_cache" != 1; then
6014 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6015 fi
6016
6017 if test "$wxUSE_SPINBTN" = yes; then
6018 echo "$ac_t""yes" 1>&6
6019 else
6020 echo "$ac_t""no" 1>&6
6021 fi
6022
6023
6024 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6025 echo "configure:6026: checking for --enable-spinctrl" >&5
6026 no_cache=0
6027 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6028 if test "${enable_spinctrl+set}" = set; then
6029 enableval="$enable_spinctrl"
6030
6031 if test "$enableval" = yes; then
6032 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6033 else
6034 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6035 fi
6036
6037 else
6038
6039 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6040 if test "x$LINE" != x ; then
6041 eval "DEFAULT_$LINE"
6042 else
6043 no_cache=1
6044 fi
6045
6046 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6047
6048 fi
6049
6050
6051 eval "$ac_cv_use_spinctrl"
6052 if test "$no_cache" != 1; then
6053 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6054 fi
6055
6056 if test "$wxUSE_SPINCTRL" = yes; then
6057 echo "$ac_t""yes" 1>&6
6058 else
6059 echo "$ac_t""no" 1>&6
6060 fi
6061
6062
6063 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6064 echo "configure:6065: checking for --enable-splitter" >&5
6065 no_cache=0
6066 # Check whether --enable-splitter or --disable-splitter was given.
6067 if test "${enable_splitter+set}" = set; then
6068 enableval="$enable_splitter"
6069
6070 if test "$enableval" = yes; then
6071 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6072 else
6073 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6074 fi
6075
6076 else
6077
6078 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6079 if test "x$LINE" != x ; then
6080 eval "DEFAULT_$LINE"
6081 else
6082 no_cache=1
6083 fi
6084
6085 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6086
6087 fi
6088
6089
6090 eval "$ac_cv_use_splitter"
6091 if test "$no_cache" != 1; then
6092 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6093 fi
6094
6095 if test "$wxUSE_SPLITTER" = yes; then
6096 echo "$ac_t""yes" 1>&6
6097 else
6098 echo "$ac_t""no" 1>&6
6099 fi
6100
6101
6102 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6103 echo "configure:6104: checking for --enable-statbmp" >&5
6104 no_cache=0
6105 # Check whether --enable-statbmp or --disable-statbmp was given.
6106 if test "${enable_statbmp+set}" = set; then
6107 enableval="$enable_statbmp"
6108
6109 if test "$enableval" = yes; then
6110 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6111 else
6112 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6113 fi
6114
6115 else
6116
6117 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6118 if test "x$LINE" != x ; then
6119 eval "DEFAULT_$LINE"
6120 else
6121 no_cache=1
6122 fi
6123
6124 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6125
6126 fi
6127
6128
6129 eval "$ac_cv_use_statbmp"
6130 if test "$no_cache" != 1; then
6131 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6132 fi
6133
6134 if test "$wxUSE_STATBMP" = yes; then
6135 echo "$ac_t""yes" 1>&6
6136 else
6137 echo "$ac_t""no" 1>&6
6138 fi
6139
6140
6141 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6142 echo "configure:6143: checking for --enable-statbox" >&5
6143 no_cache=0
6144 # Check whether --enable-statbox or --disable-statbox was given.
6145 if test "${enable_statbox+set}" = set; then
6146 enableval="$enable_statbox"
6147
6148 if test "$enableval" = yes; then
6149 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6150 else
6151 ac_cv_use_statbox='wxUSE_STATBOX=no'
6152 fi
6153
6154 else
6155
6156 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6157 if test "x$LINE" != x ; then
6158 eval "DEFAULT_$LINE"
6159 else
6160 no_cache=1
6161 fi
6162
6163 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6164
6165 fi
6166
6167
6168 eval "$ac_cv_use_statbox"
6169 if test "$no_cache" != 1; then
6170 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6171 fi
6172
6173 if test "$wxUSE_STATBOX" = yes; then
6174 echo "$ac_t""yes" 1>&6
6175 else
6176 echo "$ac_t""no" 1>&6
6177 fi
6178
6179
6180 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6181 echo "configure:6182: checking for --enable-statline" >&5
6182 no_cache=0
6183 # Check whether --enable-statline or --disable-statline was given.
6184 if test "${enable_statline+set}" = set; then
6185 enableval="$enable_statline"
6186
6187 if test "$enableval" = yes; then
6188 ac_cv_use_statline='wxUSE_STATLINE=yes'
6189 else
6190 ac_cv_use_statline='wxUSE_STATLINE=no'
6191 fi
6192
6193 else
6194
6195 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6196 if test "x$LINE" != x ; then
6197 eval "DEFAULT_$LINE"
6198 else
6199 no_cache=1
6200 fi
6201
6202 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6203
6204 fi
6205
6206
6207 eval "$ac_cv_use_statline"
6208 if test "$no_cache" != 1; then
6209 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6210 fi
6211
6212 if test "$wxUSE_STATLINE" = yes; then
6213 echo "$ac_t""yes" 1>&6
6214 else
6215 echo "$ac_t""no" 1>&6
6216 fi
6217
6218
6219 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6220 echo "configure:6221: checking for --enable-stattext" >&5
6221 no_cache=0
6222 # Check whether --enable-stattext or --disable-stattext was given.
6223 if test "${enable_stattext+set}" = set; then
6224 enableval="$enable_stattext"
6225
6226 if test "$enableval" = yes; then
6227 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6228 else
6229 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6230 fi
6231
6232 else
6233
6234 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6235 if test "x$LINE" != x ; then
6236 eval "DEFAULT_$LINE"
6237 else
6238 no_cache=1
6239 fi
6240
6241 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6242
6243 fi
6244
6245
6246 eval "$ac_cv_use_stattext"
6247 if test "$no_cache" != 1; then
6248 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6249 fi
6250
6251 if test "$wxUSE_STATTEXT" = yes; then
6252 echo "$ac_t""yes" 1>&6
6253 else
6254 echo "$ac_t""no" 1>&6
6255 fi
6256
6257
6258 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6259 echo "configure:6260: checking for --enable-statusbar" >&5
6260 no_cache=0
6261 # Check whether --enable-statusbar or --disable-statusbar was given.
6262 if test "${enable_statusbar+set}" = set; then
6263 enableval="$enable_statusbar"
6264
6265 if test "$enableval" = yes; then
6266 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6267 else
6268 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6269 fi
6270
6271 else
6272
6273 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6274 if test "x$LINE" != x ; then
6275 eval "DEFAULT_$LINE"
6276 else
6277 no_cache=1
6278 fi
6279
6280 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6281
6282 fi
6283
6284
6285 eval "$ac_cv_use_statusbar"
6286 if test "$no_cache" != 1; then
6287 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6288 fi
6289
6290 if test "$wxUSE_STATUSBAR" = yes; then
6291 echo "$ac_t""yes" 1>&6
6292 else
6293 echo "$ac_t""no" 1>&6
6294 fi
6295
6296
6297 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6298 echo "configure:6299: checking for --enable-tabdialog" >&5
6299 no_cache=0
6300 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6301 if test "${enable_tabdialog+set}" = set; then
6302 enableval="$enable_tabdialog"
6303
6304 if test "$enableval" = yes; then
6305 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6306 else
6307 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6308 fi
6309
6310 else
6311
6312 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6313 if test "x$LINE" != x ; then
6314 eval "DEFAULT_$LINE"
6315 else
6316 no_cache=1
6317 fi
6318
6319 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6320
6321 fi
6322
6323
6324 eval "$ac_cv_use_tabdialog"
6325 if test "$no_cache" != 1; then
6326 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6327 fi
6328
6329 if test "$wxUSE_TABDIALOG" = yes; then
6330 echo "$ac_t""yes" 1>&6
6331 else
6332 echo "$ac_t""no" 1>&6
6333 fi
6334
6335
6336 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6337 echo "configure:6338: checking for --enable-textctrl" >&5
6338 no_cache=0
6339 # Check whether --enable-textctrl or --disable-textctrl was given.
6340 if test "${enable_textctrl+set}" = set; then
6341 enableval="$enable_textctrl"
6342
6343 if test "$enableval" = yes; then
6344 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6345 else
6346 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6347 fi
6348
6349 else
6350
6351 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6352 if test "x$LINE" != x ; then
6353 eval "DEFAULT_$LINE"
6354 else
6355 no_cache=1
6356 fi
6357
6358 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6359
6360 fi
6361
6362
6363 eval "$ac_cv_use_textctrl"
6364 if test "$no_cache" != 1; then
6365 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6366 fi
6367
6368 if test "$wxUSE_TEXTCTRL" = yes; then
6369 echo "$ac_t""yes" 1>&6
6370 else
6371 echo "$ac_t""no" 1>&6
6372 fi
6373
6374
6375 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6376 echo "configure:6377: checking for --enable-togglebtn" >&5
6377 no_cache=0
6378 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6379 if test "${enable_togglebtn+set}" = set; then
6380 enableval="$enable_togglebtn"
6381
6382 if test "$enableval" = yes; then
6383 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6384 else
6385 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6386 fi
6387
6388 else
6389
6390 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6391 if test "x$LINE" != x ; then
6392 eval "DEFAULT_$LINE"
6393 else
6394 no_cache=1
6395 fi
6396
6397 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6398
6399 fi
6400
6401
6402 eval "$ac_cv_use_togglebtn"
6403 if test "$no_cache" != 1; then
6404 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6405 fi
6406
6407 if test "$wxUSE_TOGGLEBTN" = yes; then
6408 echo "$ac_t""yes" 1>&6
6409 else
6410 echo "$ac_t""no" 1>&6
6411 fi
6412
6413
6414 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6415 echo "configure:6416: checking for --enable-toolbar" >&5
6416 no_cache=0
6417 # Check whether --enable-toolbar or --disable-toolbar was given.
6418 if test "${enable_toolbar+set}" = set; then
6419 enableval="$enable_toolbar"
6420
6421 if test "$enableval" = yes; then
6422 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6423 else
6424 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6425 fi
6426
6427 else
6428
6429 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6430 if test "x$LINE" != x ; then
6431 eval "DEFAULT_$LINE"
6432 else
6433 no_cache=1
6434 fi
6435
6436 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6437
6438 fi
6439
6440
6441 eval "$ac_cv_use_toolbar"
6442 if test "$no_cache" != 1; then
6443 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6444 fi
6445
6446 if test "$wxUSE_TOOLBAR" = yes; then
6447 echo "$ac_t""yes" 1>&6
6448 else
6449 echo "$ac_t""no" 1>&6
6450 fi
6451
6452
6453 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6454 echo "configure:6455: checking for --enable-tbarnative" >&5
6455 no_cache=0
6456 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6457 if test "${enable_tbarnative+set}" = set; then
6458 enableval="$enable_tbarnative"
6459
6460 if test "$enableval" = yes; then
6461 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6462 else
6463 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6464 fi
6465
6466 else
6467
6468 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6469 if test "x$LINE" != x ; then
6470 eval "DEFAULT_$LINE"
6471 else
6472 no_cache=1
6473 fi
6474
6475 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6476
6477 fi
6478
6479
6480 eval "$ac_cv_use_tbarnative"
6481 if test "$no_cache" != 1; then
6482 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6483 fi
6484
6485 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6486 echo "$ac_t""yes" 1>&6
6487 else
6488 echo "$ac_t""no" 1>&6
6489 fi
6490
6491
6492 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6493 echo "configure:6494: checking for --enable-tbarsmpl" >&5
6494 no_cache=0
6495 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6496 if test "${enable_tbarsmpl+set}" = set; then
6497 enableval="$enable_tbarsmpl"
6498
6499 if test "$enableval" = yes; then
6500 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6501 else
6502 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6503 fi
6504
6505 else
6506
6507 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6508 if test "x$LINE" != x ; then
6509 eval "DEFAULT_$LINE"
6510 else
6511 no_cache=1
6512 fi
6513
6514 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6515
6516 fi
6517
6518
6519 eval "$ac_cv_use_tbarsmpl"
6520 if test "$no_cache" != 1; then
6521 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6522 fi
6523
6524 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6525 echo "$ac_t""yes" 1>&6
6526 else
6527 echo "$ac_t""no" 1>&6
6528 fi
6529
6530
6531 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6532 echo "configure:6533: checking for --enable-treectrl" >&5
6533 no_cache=0
6534 # Check whether --enable-treectrl or --disable-treectrl was given.
6535 if test "${enable_treectrl+set}" = set; then
6536 enableval="$enable_treectrl"
6537
6538 if test "$enableval" = yes; then
6539 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6540 else
6541 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6542 fi
6543
6544 else
6545
6546 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6547 if test "x$LINE" != x ; then
6548 eval "DEFAULT_$LINE"
6549 else
6550 no_cache=1
6551 fi
6552
6553 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6554
6555 fi
6556
6557
6558 eval "$ac_cv_use_treectrl"
6559 if test "$no_cache" != 1; then
6560 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6561 fi
6562
6563 if test "$wxUSE_TREECTRL" = yes; then
6564 echo "$ac_t""yes" 1>&6
6565 else
6566 echo "$ac_t""no" 1>&6
6567 fi
6568
6569
6570 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6571 echo "configure:6572: checking for --enable-popupwin" >&5
6572 no_cache=0
6573 # Check whether --enable-popupwin or --disable-popupwin was given.
6574 if test "${enable_popupwin+set}" = set; then
6575 enableval="$enable_popupwin"
6576
6577 if test "$enableval" = yes; then
6578 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6579 else
6580 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6581 fi
6582
6583 else
6584
6585 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6586 if test "x$LINE" != x ; then
6587 eval "DEFAULT_$LINE"
6588 else
6589 no_cache=1
6590 fi
6591
6592 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6593
6594 fi
6595
6596
6597 eval "$ac_cv_use_popupwin"
6598 if test "$no_cache" != 1; then
6599 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6600 fi
6601
6602 if test "$wxUSE_POPUPWIN" = yes; then
6603 echo "$ac_t""yes" 1>&6
6604 else
6605 echo "$ac_t""no" 1>&6
6606 fi
6607
6608
6609
6610
6611 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6612 echo "configure:6613: checking for --enable-commondlg" >&5
6613 no_cache=0
6614 # Check whether --enable-commondlg or --disable-commondlg was given.
6615 if test "${enable_commondlg+set}" = set; then
6616 enableval="$enable_commondlg"
6617
6618 if test "$enableval" = yes; then
6619 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6620 else
6621 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6622 fi
6623
6624 else
6625
6626 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6627 if test "x$LINE" != x ; then
6628 eval "DEFAULT_$LINE"
6629 else
6630 no_cache=1
6631 fi
6632
6633 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6634
6635 fi
6636
6637
6638 eval "$ac_cv_use_commondlg"
6639 if test "$no_cache" != 1; then
6640 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6641 fi
6642
6643 if test "$wxUSE_COMMONDLGS" = yes; then
6644 echo "$ac_t""yes" 1>&6
6645 else
6646 echo "$ac_t""no" 1>&6
6647 fi
6648
6649
6650 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6651 echo "configure:6652: checking for --enable-choicedlg" >&5
6652 no_cache=0
6653 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6654 if test "${enable_choicedlg+set}" = set; then
6655 enableval="$enable_choicedlg"
6656
6657 if test "$enableval" = yes; then
6658 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6659 else
6660 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6661 fi
6662
6663 else
6664
6665 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6666 if test "x$LINE" != x ; then
6667 eval "DEFAULT_$LINE"
6668 else
6669 no_cache=1
6670 fi
6671
6672 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6673
6674 fi
6675
6676
6677 eval "$ac_cv_use_choicedlg"
6678 if test "$no_cache" != 1; then
6679 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6680 fi
6681
6682 if test "$wxUSE_CHOICEDLG" = yes; then
6683 echo "$ac_t""yes" 1>&6
6684 else
6685 echo "$ac_t""no" 1>&6
6686 fi
6687
6688
6689 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6690 echo "configure:6691: checking for --enable-coldlg" >&5
6691 no_cache=0
6692 # Check whether --enable-coldlg or --disable-coldlg was given.
6693 if test "${enable_coldlg+set}" = set; then
6694 enableval="$enable_coldlg"
6695
6696 if test "$enableval" = yes; then
6697 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6698 else
6699 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6700 fi
6701
6702 else
6703
6704 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6705 if test "x$LINE" != x ; then
6706 eval "DEFAULT_$LINE"
6707 else
6708 no_cache=1
6709 fi
6710
6711 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6712
6713 fi
6714
6715
6716 eval "$ac_cv_use_coldlg"
6717 if test "$no_cache" != 1; then
6718 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6719 fi
6720
6721 if test "$wxUSE_COLOURDLG" = yes; then
6722 echo "$ac_t""yes" 1>&6
6723 else
6724 echo "$ac_t""no" 1>&6
6725 fi
6726
6727
6728 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6729 echo "configure:6730: checking for --enable-filedlg" >&5
6730 no_cache=0
6731 # Check whether --enable-filedlg or --disable-filedlg was given.
6732 if test "${enable_filedlg+set}" = set; then
6733 enableval="$enable_filedlg"
6734
6735 if test "$enableval" = yes; then
6736 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6737 else
6738 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6739 fi
6740
6741 else
6742
6743 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6744 if test "x$LINE" != x ; then
6745 eval "DEFAULT_$LINE"
6746 else
6747 no_cache=1
6748 fi
6749
6750 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6751
6752 fi
6753
6754
6755 eval "$ac_cv_use_filedlg"
6756 if test "$no_cache" != 1; then
6757 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6758 fi
6759
6760 if test "$wxUSE_FILEDLG" = yes; then
6761 echo "$ac_t""yes" 1>&6
6762 else
6763 echo "$ac_t""no" 1>&6
6764 fi
6765
6766
6767 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6768 echo "configure:6769: checking for --enable-filedlg" >&5
6769 no_cache=0
6770 # Check whether --enable-filedlg or --disable-filedlg was given.
6771 if test "${enable_filedlg+set}" = set; then
6772 enableval="$enable_filedlg"
6773
6774 if test "$enableval" = yes; then
6775 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=yes'
6776 else
6777 ac_cv_use_filedlg='wxUSE_FINDREPLDLG=no'
6778 fi
6779
6780 else
6781
6782 LINE=`grep "wxUSE_FINDREPLDLG" ${wx_arg_cache_file}`
6783 if test "x$LINE" != x ; then
6784 eval "DEFAULT_$LINE"
6785 else
6786 no_cache=1
6787 fi
6788
6789 ac_cv_use_filedlg='wxUSE_FINDREPLDLG='$DEFAULT_wxUSE_FINDREPLDLG
6790
6791 fi
6792
6793
6794 eval "$ac_cv_use_filedlg"
6795 if test "$no_cache" != 1; then
6796 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6797 fi
6798
6799 if test "$wxUSE_FINDREPLDLG" = yes; then
6800 echo "$ac_t""yes" 1>&6
6801 else
6802 echo "$ac_t""no" 1>&6
6803 fi
6804
6805
6806 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6807 echo "configure:6808: checking for --enable-fontdlg" >&5
6808 no_cache=0
6809 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6810 if test "${enable_fontdlg+set}" = set; then
6811 enableval="$enable_fontdlg"
6812
6813 if test "$enableval" = yes; then
6814 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6815 else
6816 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6817 fi
6818
6819 else
6820
6821 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6822 if test "x$LINE" != x ; then
6823 eval "DEFAULT_$LINE"
6824 else
6825 no_cache=1
6826 fi
6827
6828 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6829
6830 fi
6831
6832
6833 eval "$ac_cv_use_fontdlg"
6834 if test "$no_cache" != 1; then
6835 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6836 fi
6837
6838 if test "$wxUSE_FONTDLG" = yes; then
6839 echo "$ac_t""yes" 1>&6
6840 else
6841 echo "$ac_t""no" 1>&6
6842 fi
6843
6844
6845 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6846 echo "configure:6847: checking for --enable-dirdlg" >&5
6847 no_cache=0
6848 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6849 if test "${enable_dirdlg+set}" = set; then
6850 enableval="$enable_dirdlg"
6851
6852 if test "$enableval" = yes; then
6853 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6854 else
6855 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6856 fi
6857
6858 else
6859
6860 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6861 if test "x$LINE" != x ; then
6862 eval "DEFAULT_$LINE"
6863 else
6864 no_cache=1
6865 fi
6866
6867 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6868
6869 fi
6870
6871
6872 eval "$ac_cv_use_dirdlg"
6873 if test "$no_cache" != 1; then
6874 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6875 fi
6876
6877 if test "$wxUSE_DIRDLG" = yes; then
6878 echo "$ac_t""yes" 1>&6
6879 else
6880 echo "$ac_t""no" 1>&6
6881 fi
6882
6883
6884 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6885 echo "configure:6886: checking for --enable-msgdlg" >&5
6886 no_cache=0
6887 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6888 if test "${enable_msgdlg+set}" = set; then
6889 enableval="$enable_msgdlg"
6890
6891 if test "$enableval" = yes; then
6892 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6893 else
6894 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6895 fi
6896
6897 else
6898
6899 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6900 if test "x$LINE" != x ; then
6901 eval "DEFAULT_$LINE"
6902 else
6903 no_cache=1
6904 fi
6905
6906 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6907
6908 fi
6909
6910
6911 eval "$ac_cv_use_msgdlg"
6912 if test "$no_cache" != 1; then
6913 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6914 fi
6915
6916 if test "$wxUSE_MSGDLG" = yes; then
6917 echo "$ac_t""yes" 1>&6
6918 else
6919 echo "$ac_t""no" 1>&6
6920 fi
6921
6922
6923 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6924 echo "configure:6925: checking for --enable-numberdlg" >&5
6925 no_cache=0
6926 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6927 if test "${enable_numberdlg+set}" = set; then
6928 enableval="$enable_numberdlg"
6929
6930 if test "$enableval" = yes; then
6931 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6932 else
6933 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6934 fi
6935
6936 else
6937
6938 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6939 if test "x$LINE" != x ; then
6940 eval "DEFAULT_$LINE"
6941 else
6942 no_cache=1
6943 fi
6944
6945 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6946
6947 fi
6948
6949
6950 eval "$ac_cv_use_numberdlg"
6951 if test "$no_cache" != 1; then
6952 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6953 fi
6954
6955 if test "$wxUSE_NUMBERDLG" = yes; then
6956 echo "$ac_t""yes" 1>&6
6957 else
6958 echo "$ac_t""no" 1>&6
6959 fi
6960
6961
6962 echo $ac_n "checking for --enable-splash""... $ac_c" 1>&6
6963 echo "configure:6964: checking for --enable-splash" >&5
6964 no_cache=0
6965 # Check whether --enable-splash or --disable-splash was given.
6966 if test "${enable_splash+set}" = set; then
6967 enableval="$enable_splash"
6968
6969 if test "$enableval" = yes; then
6970 ac_cv_use_splash='wxUSE_SPLASH=yes'
6971 else
6972 ac_cv_use_splash='wxUSE_SPLASH=no'
6973 fi
6974
6975 else
6976
6977 LINE=`grep "wxUSE_SPLASH" ${wx_arg_cache_file}`
6978 if test "x$LINE" != x ; then
6979 eval "DEFAULT_$LINE"
6980 else
6981 no_cache=1
6982 fi
6983
6984 ac_cv_use_splash='wxUSE_SPLASH='$DEFAULT_wxUSE_SPLASH
6985
6986 fi
6987
6988
6989 eval "$ac_cv_use_splash"
6990 if test "$no_cache" != 1; then
6991 echo $ac_cv_use_splash >> ${wx_arg_cache_file}.tmp
6992 fi
6993
6994 if test "$wxUSE_SPLASH" = yes; then
6995 echo "$ac_t""yes" 1>&6
6996 else
6997 echo "$ac_t""no" 1>&6
6998 fi
6999
7000
7001 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
7002 echo "configure:7003: checking for --enable-textdlg" >&5
7003 no_cache=0
7004 # Check whether --enable-textdlg or --disable-textdlg was given.
7005 if test "${enable_textdlg+set}" = set; then
7006 enableval="$enable_textdlg"
7007
7008 if test "$enableval" = yes; then
7009 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
7010 else
7011 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
7012 fi
7013
7014 else
7015
7016 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
7017 if test "x$LINE" != x ; then
7018 eval "DEFAULT_$LINE"
7019 else
7020 no_cache=1
7021 fi
7022
7023 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
7024
7025 fi
7026
7027
7028 eval "$ac_cv_use_textdlg"
7029 if test "$no_cache" != 1; then
7030 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
7031 fi
7032
7033 if test "$wxUSE_TEXTDLG" = yes; then
7034 echo "$ac_t""yes" 1>&6
7035 else
7036 echo "$ac_t""no" 1>&6
7037 fi
7038
7039
7040 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
7041 echo "configure:7042: checking for --enable-tipdlg" >&5
7042 no_cache=0
7043 # Check whether --enable-tipdlg or --disable-tipdlg was given.
7044 if test "${enable_tipdlg+set}" = set; then
7045 enableval="$enable_tipdlg"
7046
7047 if test "$enableval" = yes; then
7048 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
7049 else
7050 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
7051 fi
7052
7053 else
7054
7055 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
7056 if test "x$LINE" != x ; then
7057 eval "DEFAULT_$LINE"
7058 else
7059 no_cache=1
7060 fi
7061
7062 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
7063
7064 fi
7065
7066
7067 eval "$ac_cv_use_tipdlg"
7068 if test "$no_cache" != 1; then
7069 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
7070 fi
7071
7072 if test "$wxUSE_STARTUP_TIPS" = yes; then
7073 echo "$ac_t""yes" 1>&6
7074 else
7075 echo "$ac_t""no" 1>&6
7076 fi
7077
7078
7079 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7080 echo "configure:7081: checking for --enable-progressdlg" >&5
7081 no_cache=0
7082 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7083 if test "${enable_progressdlg+set}" = set; then
7084 enableval="$enable_progressdlg"
7085
7086 if test "$enableval" = yes; then
7087 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7088 else
7089 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7090 fi
7091
7092 else
7093
7094 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7095 if test "x$LINE" != x ; then
7096 eval "DEFAULT_$LINE"
7097 else
7098 no_cache=1
7099 fi
7100
7101 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7102
7103 fi
7104
7105
7106 eval "$ac_cv_use_progressdlg"
7107 if test "$no_cache" != 1; then
7108 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7109 fi
7110
7111 if test "$wxUSE_PROGRESSDLG" = yes; then
7112 echo "$ac_t""yes" 1>&6
7113 else
7114 echo "$ac_t""no" 1>&6
7115 fi
7116
7117
7118 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7119 echo "configure:7120: checking for --enable-wizarddlg" >&5
7120 no_cache=0
7121 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7122 if test "${enable_wizarddlg+set}" = set; then
7123 enableval="$enable_wizarddlg"
7124
7125 if test "$enableval" = yes; then
7126 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7127 else
7128 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7129 fi
7130
7131 else
7132
7133 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7134 if test "x$LINE" != x ; then
7135 eval "DEFAULT_$LINE"
7136 else
7137 no_cache=1
7138 fi
7139
7140 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7141
7142 fi
7143
7144
7145 eval "$ac_cv_use_wizarddlg"
7146 if test "$no_cache" != 1; then
7147 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7148 fi
7149
7150 if test "$wxUSE_WIZARDDLG" = yes; then
7151 echo "$ac_t""yes" 1>&6
7152 else
7153 echo "$ac_t""no" 1>&6
7154 fi
7155
7156
7157
7158
7159 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7160 echo "configure:7161: checking for --enable-menus" >&5
7161 no_cache=0
7162 # Check whether --enable-menus or --disable-menus was given.
7163 if test "${enable_menus+set}" = set; then
7164 enableval="$enable_menus"
7165
7166 if test "$enableval" = yes; then
7167 ac_cv_use_menus='wxUSE_MENUS=yes'
7168 else
7169 ac_cv_use_menus='wxUSE_MENUS=no'
7170 fi
7171
7172 else
7173
7174 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7175 if test "x$LINE" != x ; then
7176 eval "DEFAULT_$LINE"
7177 else
7178 no_cache=1
7179 fi
7180
7181 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7182
7183 fi
7184
7185
7186 eval "$ac_cv_use_menus"
7187 if test "$no_cache" != 1; then
7188 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7189 fi
7190
7191 if test "$wxUSE_MENUS" = yes; then
7192 echo "$ac_t""yes" 1>&6
7193 else
7194 echo "$ac_t""no" 1>&6
7195 fi
7196
7197
7198 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7199 echo "configure:7200: checking for --enable-miniframe" >&5
7200 no_cache=0
7201 # Check whether --enable-miniframe or --disable-miniframe was given.
7202 if test "${enable_miniframe+set}" = set; then
7203 enableval="$enable_miniframe"
7204
7205 if test "$enableval" = yes; then
7206 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7207 else
7208 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7209 fi
7210
7211 else
7212
7213 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7214 if test "x$LINE" != x ; then
7215 eval "DEFAULT_$LINE"
7216 else
7217 no_cache=1
7218 fi
7219
7220 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7221
7222 fi
7223
7224
7225 eval "$ac_cv_use_miniframe"
7226 if test "$no_cache" != 1; then
7227 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7228 fi
7229
7230 if test "$wxUSE_MINIFRAME" = yes; then
7231 echo "$ac_t""yes" 1>&6
7232 else
7233 echo "$ac_t""no" 1>&6
7234 fi
7235
7236
7237 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7238 echo "configure:7239: checking for --enable-tooltips" >&5
7239 no_cache=0
7240 # Check whether --enable-tooltips or --disable-tooltips was given.
7241 if test "${enable_tooltips+set}" = set; then
7242 enableval="$enable_tooltips"
7243
7244 if test "$enableval" = yes; then
7245 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7246 else
7247 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7248 fi
7249
7250 else
7251
7252 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7253 if test "x$LINE" != x ; then
7254 eval "DEFAULT_$LINE"
7255 else
7256 no_cache=1
7257 fi
7258
7259 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7260
7261 fi
7262
7263
7264 eval "$ac_cv_use_tooltips"
7265 if test "$no_cache" != 1; then
7266 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7267 fi
7268
7269 if test "$wxUSE_TOOLTIPS" = yes; then
7270 echo "$ac_t""yes" 1>&6
7271 else
7272 echo "$ac_t""no" 1>&6
7273 fi
7274
7275
7276 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7277 echo "configure:7278: checking for --enable-splines" >&5
7278 no_cache=0
7279 # Check whether --enable-splines or --disable-splines was given.
7280 if test "${enable_splines+set}" = set; then
7281 enableval="$enable_splines"
7282
7283 if test "$enableval" = yes; then
7284 ac_cv_use_splines='wxUSE_SPLINES=yes'
7285 else
7286 ac_cv_use_splines='wxUSE_SPLINES=no'
7287 fi
7288
7289 else
7290
7291 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7292 if test "x$LINE" != x ; then
7293 eval "DEFAULT_$LINE"
7294 else
7295 no_cache=1
7296 fi
7297
7298 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7299
7300 fi
7301
7302
7303 eval "$ac_cv_use_splines"
7304 if test "$no_cache" != 1; then
7305 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7306 fi
7307
7308 if test "$wxUSE_SPLINES" = yes; then
7309 echo "$ac_t""yes" 1>&6
7310 else
7311 echo "$ac_t""no" 1>&6
7312 fi
7313
7314
7315 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7316 echo "configure:7317: checking for --enable-validators" >&5
7317 no_cache=0
7318 # Check whether --enable-validators or --disable-validators was given.
7319 if test "${enable_validators+set}" = set; then
7320 enableval="$enable_validators"
7321
7322 if test "$enableval" = yes; then
7323 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7324 else
7325 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7326 fi
7327
7328 else
7329
7330 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7331 if test "x$LINE" != x ; then
7332 eval "DEFAULT_$LINE"
7333 else
7334 no_cache=1
7335 fi
7336
7337 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7338
7339 fi
7340
7341
7342 eval "$ac_cv_use_validators"
7343 if test "$no_cache" != 1; then
7344 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7345 fi
7346
7347 if test "$wxUSE_VALIDATORS" = yes; then
7348 echo "$ac_t""yes" 1>&6
7349 else
7350 echo "$ac_t""no" 1>&6
7351 fi
7352
7353
7354 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7355 echo "configure:7356: checking for --enable-busyinfo" >&5
7356 no_cache=0
7357 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7358 if test "${enable_busyinfo+set}" = set; then
7359 enableval="$enable_busyinfo"
7360
7361 if test "$enableval" = yes; then
7362 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7363 else
7364 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7365 fi
7366
7367 else
7368
7369 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7370 if test "x$LINE" != x ; then
7371 eval "DEFAULT_$LINE"
7372 else
7373 no_cache=1
7374 fi
7375
7376 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7377
7378 fi
7379
7380
7381 eval "$ac_cv_use_busyinfo"
7382 if test "$no_cache" != 1; then
7383 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7384 fi
7385
7386 if test "$wxUSE_BUSYINFO" = yes; then
7387 echo "$ac_t""yes" 1>&6
7388 else
7389 echo "$ac_t""no" 1>&6
7390 fi
7391
7392
7393 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7394 echo "configure:7395: checking for --enable-joystick" >&5
7395 no_cache=0
7396 # Check whether --enable-joystick or --disable-joystick was given.
7397 if test "${enable_joystick+set}" = set; then
7398 enableval="$enable_joystick"
7399
7400 if test "$enableval" = yes; then
7401 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7402 else
7403 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7404 fi
7405
7406 else
7407
7408 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7409 if test "x$LINE" != x ; then
7410 eval "DEFAULT_$LINE"
7411 else
7412 no_cache=1
7413 fi
7414
7415 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7416
7417 fi
7418
7419
7420 eval "$ac_cv_use_joystick"
7421 if test "$no_cache" != 1; then
7422 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7423 fi
7424
7425 if test "$wxUSE_JOYSTICK" = yes; then
7426 echo "$ac_t""yes" 1>&6
7427 else
7428 echo "$ac_t""no" 1>&6
7429 fi
7430
7431
7432 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7433 echo "configure:7434: checking for --enable-metafile" >&5
7434 no_cache=0
7435 # Check whether --enable-metafile or --disable-metafile was given.
7436 if test "${enable_metafile+set}" = set; then
7437 enableval="$enable_metafile"
7438
7439 if test "$enableval" = yes; then
7440 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7441 else
7442 ac_cv_use_metafile='wxUSE_METAFILE=no'
7443 fi
7444
7445 else
7446
7447 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7448 if test "x$LINE" != x ; then
7449 eval "DEFAULT_$LINE"
7450 else
7451 no_cache=1
7452 fi
7453
7454 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7455
7456 fi
7457
7458
7459 eval "$ac_cv_use_metafile"
7460 if test "$no_cache" != 1; then
7461 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7462 fi
7463
7464 if test "$wxUSE_METAFILE" = yes; then
7465 echo "$ac_t""yes" 1>&6
7466 else
7467 echo "$ac_t""no" 1>&6
7468 fi
7469
7470
7471 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7472 echo "configure:7473: checking for --enable-dragimage" >&5
7473 no_cache=0
7474 # Check whether --enable-dragimage or --disable-dragimage was given.
7475 if test "${enable_dragimage+set}" = set; then
7476 enableval="$enable_dragimage"
7477
7478 if test "$enableval" = yes; then
7479 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7480 else
7481 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7482 fi
7483
7484 else
7485
7486 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7487 if test "x$LINE" != x ; then
7488 eval "DEFAULT_$LINE"
7489 else
7490 no_cache=1
7491 fi
7492
7493 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7494
7495 fi
7496
7497
7498 eval "$ac_cv_use_dragimage"
7499 if test "$no_cache" != 1; then
7500 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7501 fi
7502
7503 if test "$wxUSE_DRAGIMAGE" = yes; then
7504 echo "$ac_t""yes" 1>&6
7505 else
7506 echo "$ac_t""no" 1>&6
7507 fi
7508
7509
7510
7511
7512 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7513 echo "configure:7514: checking for --enable-image" >&5
7514 no_cache=0
7515 # Check whether --enable-image or --disable-image was given.
7516 if test "${enable_image+set}" = set; then
7517 enableval="$enable_image"
7518
7519 if test "$enableval" = yes; then
7520 ac_cv_use_image='wxUSE_IMAGE=yes'
7521 else
7522 ac_cv_use_image='wxUSE_IMAGE=no'
7523 fi
7524
7525 else
7526
7527 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7528 if test "x$LINE" != x ; then
7529 eval "DEFAULT_$LINE"
7530 else
7531 no_cache=1
7532 fi
7533
7534 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7535
7536 fi
7537
7538
7539 eval "$ac_cv_use_image"
7540 if test "$no_cache" != 1; then
7541 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7542 fi
7543
7544 if test "$wxUSE_IMAGE" = yes; then
7545 echo "$ac_t""yes" 1>&6
7546 else
7547 echo "$ac_t""no" 1>&6
7548 fi
7549
7550
7551 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7552 echo "configure:7553: checking for --enable-gif" >&5
7553 no_cache=0
7554 # Check whether --enable-gif or --disable-gif was given.
7555 if test "${enable_gif+set}" = set; then
7556 enableval="$enable_gif"
7557
7558 if test "$enableval" = yes; then
7559 ac_cv_use_gif='wxUSE_GIF=yes'
7560 else
7561 ac_cv_use_gif='wxUSE_GIF=no'
7562 fi
7563
7564 else
7565
7566 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7567 if test "x$LINE" != x ; then
7568 eval "DEFAULT_$LINE"
7569 else
7570 no_cache=1
7571 fi
7572
7573 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7574
7575 fi
7576
7577
7578 eval "$ac_cv_use_gif"
7579 if test "$no_cache" != 1; then
7580 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7581 fi
7582
7583 if test "$wxUSE_GIF" = yes; then
7584 echo "$ac_t""yes" 1>&6
7585 else
7586 echo "$ac_t""no" 1>&6
7587 fi
7588
7589
7590 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7591 echo "configure:7592: checking for --enable-pcx" >&5
7592 no_cache=0
7593 # Check whether --enable-pcx or --disable-pcx was given.
7594 if test "${enable_pcx+set}" = set; then
7595 enableval="$enable_pcx"
7596
7597 if test "$enableval" = yes; then
7598 ac_cv_use_pcx='wxUSE_PCX=yes'
7599 else
7600 ac_cv_use_pcx='wxUSE_PCX=no'
7601 fi
7602
7603 else
7604
7605 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7606 if test "x$LINE" != x ; then
7607 eval "DEFAULT_$LINE"
7608 else
7609 no_cache=1
7610 fi
7611
7612 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7613
7614 fi
7615
7616
7617 eval "$ac_cv_use_pcx"
7618 if test "$no_cache" != 1; then
7619 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7620 fi
7621
7622 if test "$wxUSE_PCX" = yes; then
7623 echo "$ac_t""yes" 1>&6
7624 else
7625 echo "$ac_t""no" 1>&6
7626 fi
7627
7628
7629 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7630 echo "configure:7631: checking for --enable-pnm" >&5
7631 no_cache=0
7632 # Check whether --enable-pnm or --disable-pnm was given.
7633 if test "${enable_pnm+set}" = set; then
7634 enableval="$enable_pnm"
7635
7636 if test "$enableval" = yes; then
7637 ac_cv_use_pnm='wxUSE_PNM=yes'
7638 else
7639 ac_cv_use_pnm='wxUSE_PNM=no'
7640 fi
7641
7642 else
7643
7644 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7645 if test "x$LINE" != x ; then
7646 eval "DEFAULT_$LINE"
7647 else
7648 no_cache=1
7649 fi
7650
7651 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7652
7653 fi
7654
7655
7656 eval "$ac_cv_use_pnm"
7657 if test "$no_cache" != 1; then
7658 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7659 fi
7660
7661 if test "$wxUSE_PNM" = yes; then
7662 echo "$ac_t""yes" 1>&6
7663 else
7664 echo "$ac_t""no" 1>&6
7665 fi
7666
7667
7668 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7669 echo "configure:7670: checking for --enable-pnm" >&5
7670 no_cache=0
7671 # Check whether --enable-pnm or --disable-pnm was given.
7672 if test "${enable_pnm+set}" = set; then
7673 enableval="$enable_pnm"
7674
7675 if test "$enableval" = yes; then
7676 ac_cv_use_pnm='wxUSE_XPM=yes'
7677 else
7678 ac_cv_use_pnm='wxUSE_XPM=no'
7679 fi
7680
7681 else
7682
7683 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7684 if test "x$LINE" != x ; then
7685 eval "DEFAULT_$LINE"
7686 else
7687 no_cache=1
7688 fi
7689
7690 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7691
7692 fi
7693
7694
7695 eval "$ac_cv_use_pnm"
7696 if test "$no_cache" != 1; then
7697 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7698 fi
7699
7700 if test "$wxUSE_XPM" = yes; then
7701 echo "$ac_t""yes" 1>&6
7702 else
7703 echo "$ac_t""no" 1>&6
7704 fi
7705
7706
7707 fi
7708
7709
7710 echo "saving argument cache $wx_arg_cache_file"
7711 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7712
7713
7714
7715 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7716 echo "configure:7717: checking for toolkit" >&5
7717
7718 if test "$wxUSE_GUI" = "yes"; then
7719
7720 if test "$USE_BEOS" = 1; then
7721 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7722 fi
7723
7724 if test "$TOOLKIT_GIVEN" = 1; then
7725 for toolkit in `echo $ALL_TOOLKITS`; do
7726 var=wxUSE_$toolkit
7727 eval "value=\$${var}"
7728 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7729 done
7730 else
7731 for toolkit in `echo $ALL_TOOLKITS`; do
7732 if test "$has_toolkit_in_cache" != 1; then
7733 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7734 else
7735 var=DEFAULT_wxUSE_$toolkit
7736 fi
7737 eval "wxUSE_$toolkit=\$${var}"
7738 done
7739 fi
7740
7741 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
7742
7743 case "${host}" in
7744 *-pc-os2_emx )
7745 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7746 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7747 LEX_STEM="lexyy"
7748 ;;
7749 *)
7750 PATH_IFS=':'
7751 LEX_STEM="lex.yy"
7752 ;;
7753 esac
7754
7755 case "$NUM_TOOLKITS" in
7756 1)
7757 ;;
7758 0)
7759 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7760 ;;
7761 *)
7762 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7763 esac
7764
7765 for toolkit in `echo $ALL_TOOLKITS`; do
7766 var=wxUSE_$toolkit
7767 eval "value=\$${var}"
7768 if test "x$value" != x; then
7769 cache_var=CACHE_$toolkit
7770 eval "cache=\$${cache_var}"
7771 if test "$cache" = 1; then
7772 echo "$var=$value" >> ${wx_arg_cache_file}
7773 fi
7774 if test "$value" = 1; then
7775 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7776 echo "$ac_t""$toolkit_echo" 1>&6
7777 fi
7778 fi
7779 done
7780
7781 else
7782 PATH_IFS=':'
7783 echo "$ac_t""base only" 1>&6
7784 fi
7785
7786
7787 cat > confcache <<\EOF
7788 # This file is a shell script that caches the results of configure
7789 # tests run on this system so they can be shared between configure
7790 # scripts and configure runs. It is not useful on other systems.
7791 # If it contains results you don't want to keep, you may remove or edit it.
7792 #
7793 # By default, configure uses ./config.cache as the cache file,
7794 # creating it if it does not exist already. You can give configure
7795 # the --cache-file=FILE option to use a different cache file; that is
7796 # what configure does when it calls configure scripts in
7797 # subdirectories, so they share the cache.
7798 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7799 # config.status only pays attention to the cache file if you give it the
7800 # --recheck option to rerun configure.
7801 #
7802 EOF
7803 # The following way of writing the cache mishandles newlines in values,
7804 # but we know of no workaround that is simple, portable, and efficient.
7805 # So, don't put newlines in cache variables' values.
7806 # Ultrix sh set writes to stderr and can't be redirected directly,
7807 # and sets the high bit in the cache file unless we assign to the vars.
7808 (set) 2>&1 |
7809 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7810 *ac_space=\ *)
7811 # `set' does not quote correctly, so add quotes (double-quote substitution
7812 # turns \\\\ into \\, and sed turns \\ into \).
7813 sed -n \
7814 -e "s/'/'\\\\''/g" \
7815 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7816 ;;
7817 *)
7818 # `set' quotes correctly as required by POSIX, so do not add quotes.
7819 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7820 ;;
7821 esac >> confcache
7822 if cmp -s $cache_file confcache; then
7823 :
7824 else
7825 if test -w $cache_file; then
7826 echo "updating cache $cache_file"
7827 cat confcache > $cache_file
7828 else
7829 echo "not updating unwritable cache $cache_file"
7830 fi
7831 fi
7832 rm -f confcache
7833
7834
7835 if test "$build" != "$host" ; then
7836 CC=$host_alias-gcc
7837 CXX=$host_alias-c++
7838 AR=$host_alias-ar
7839 RANLIB=$host_alias-ranlib
7840 DLLTOOL=$host_alias-dlltool
7841 RESCOMP=$host_alias-windres
7842 LD=$host_alias-ld
7843 NM=$host_alias-nm
7844 STRIP=$host_alias-strip
7845 fi
7846
7847 # Extract the first word of "gcc", so it can be a program name with args.
7848 set dummy gcc; ac_word=$2
7849 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7850 echo "configure:7851: checking for $ac_word" >&5
7851 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7852 echo $ac_n "(cached) $ac_c" 1>&6
7853 else
7854 if test -n "$CC"; then
7855 ac_cv_prog_CC="$CC" # Let the user override the test.
7856 else
7857 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7858 ac_dummy="$PATH"
7859 for ac_dir in $ac_dummy; do
7860 test -z "$ac_dir" && ac_dir=.
7861 if test -f $ac_dir/$ac_word; then
7862 ac_cv_prog_CC="gcc"
7863 break
7864 fi
7865 done
7866 IFS="$ac_save_ifs"
7867 fi
7868 fi
7869 CC="$ac_cv_prog_CC"
7870 if test -n "$CC"; then
7871 echo "$ac_t""$CC" 1>&6
7872 else
7873 echo "$ac_t""no" 1>&6
7874 fi
7875
7876 if test -z "$CC"; then
7877 # Extract the first word of "cc", so it can be a program name with args.
7878 set dummy cc; ac_word=$2
7879 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7880 echo "configure:7881: checking for $ac_word" >&5
7881 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7882 echo $ac_n "(cached) $ac_c" 1>&6
7883 else
7884 if test -n "$CC"; then
7885 ac_cv_prog_CC="$CC" # Let the user override the test.
7886 else
7887 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7888 ac_prog_rejected=no
7889 ac_dummy="$PATH"
7890 for ac_dir in $ac_dummy; do
7891 test -z "$ac_dir" && ac_dir=.
7892 if test -f $ac_dir/$ac_word; then
7893 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7894 ac_prog_rejected=yes
7895 continue
7896 fi
7897 ac_cv_prog_CC="cc"
7898 break
7899 fi
7900 done
7901 IFS="$ac_save_ifs"
7902 if test $ac_prog_rejected = yes; then
7903 # We found a bogon in the path, so make sure we never use it.
7904 set dummy $ac_cv_prog_CC
7905 shift
7906 if test $# -gt 0; then
7907 # We chose a different compiler from the bogus one.
7908 # However, it has the same basename, so the bogon will be chosen
7909 # first if we set CC to just the basename; use the full file name.
7910 shift
7911 set dummy "$ac_dir/$ac_word" "$@"
7912 shift
7913 ac_cv_prog_CC="$@"
7914 fi
7915 fi
7916 fi
7917 fi
7918 CC="$ac_cv_prog_CC"
7919 if test -n "$CC"; then
7920 echo "$ac_t""$CC" 1>&6
7921 else
7922 echo "$ac_t""no" 1>&6
7923 fi
7924
7925 if test -z "$CC"; then
7926 case "`uname -s`" in
7927 *win32* | *WIN32*)
7928 # Extract the first word of "cl", so it can be a program name with args.
7929 set dummy cl; ac_word=$2
7930 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7931 echo "configure:7932: checking for $ac_word" >&5
7932 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7933 echo $ac_n "(cached) $ac_c" 1>&6
7934 else
7935 if test -n "$CC"; then
7936 ac_cv_prog_CC="$CC" # Let the user override the test.
7937 else
7938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7939 ac_dummy="$PATH"
7940 for ac_dir in $ac_dummy; do
7941 test -z "$ac_dir" && ac_dir=.
7942 if test -f $ac_dir/$ac_word; then
7943 ac_cv_prog_CC="cl"
7944 break
7945 fi
7946 done
7947 IFS="$ac_save_ifs"
7948 fi
7949 fi
7950 CC="$ac_cv_prog_CC"
7951 if test -n "$CC"; then
7952 echo "$ac_t""$CC" 1>&6
7953 else
7954 echo "$ac_t""no" 1>&6
7955 fi
7956 ;;
7957 esac
7958 fi
7959 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7960 fi
7961
7962 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7963 echo "configure:7964: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7964
7965 ac_ext=c
7966 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7967 ac_cpp='$CPP $CPPFLAGS'
7968 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7969 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7970 cross_compiling=$ac_cv_prog_cc_cross
7971
7972 cat > conftest.$ac_ext << EOF
7973
7974 #line 7975 "configure"
7975 #include "confdefs.h"
7976
7977 main(){return(0);}
7978 EOF
7979 if { (eval echo configure:7980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7980 ac_cv_prog_cc_works=yes
7981 # If we can't run a trivial program, we are probably using a cross compiler.
7982 if (./conftest; exit) 2>/dev/null; then
7983 ac_cv_prog_cc_cross=no
7984 else
7985 ac_cv_prog_cc_cross=yes
7986 fi
7987 else
7988 echo "configure: failed program was:" >&5
7989 cat conftest.$ac_ext >&5
7990 ac_cv_prog_cc_works=no
7991 fi
7992 rm -fr conftest*
7993 ac_ext=c
7994 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7995 ac_cpp='$CPP $CPPFLAGS'
7996 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7997 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7998 cross_compiling=$ac_cv_prog_cc_cross
7999
8000 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
8001 if test $ac_cv_prog_cc_works = no; then
8002 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
8003 fi
8004 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8005 echo "configure:8006: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
8006 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
8007 cross_compiling=$ac_cv_prog_cc_cross
8008
8009 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
8010 echo "configure:8011: checking whether we are using GNU C" >&5
8011 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
8012 echo $ac_n "(cached) $ac_c" 1>&6
8013 else
8014 cat > conftest.c <<EOF
8015 #ifdef __GNUC__
8016 yes;
8017 #endif
8018 EOF
8019 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8020: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8020 ac_cv_prog_gcc=yes
8021 else
8022 ac_cv_prog_gcc=no
8023 fi
8024 fi
8025
8026 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
8027
8028 if test $ac_cv_prog_gcc = yes; then
8029 GCC=yes
8030 else
8031 GCC=
8032 fi
8033
8034 ac_test_CFLAGS="${CFLAGS+set}"
8035 ac_save_CFLAGS="$CFLAGS"
8036 CFLAGS=
8037 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
8038 echo "configure:8039: checking whether ${CC-cc} accepts -g" >&5
8039 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
8040 echo $ac_n "(cached) $ac_c" 1>&6
8041 else
8042 echo 'void f(){}' > conftest.c
8043 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
8044 ac_cv_prog_cc_g=yes
8045 else
8046 ac_cv_prog_cc_g=no
8047 fi
8048 rm -f conftest*
8049
8050 fi
8051
8052 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
8053 if test "$ac_test_CFLAGS" = set; then
8054 CFLAGS="$ac_save_CFLAGS"
8055 elif test $ac_cv_prog_cc_g = yes; then
8056 if test "$GCC" = yes; then
8057 CFLAGS="-g -O2"
8058 else
8059 CFLAGS="-g"
8060 fi
8061 else
8062 if test "$GCC" = yes; then
8063 CFLAGS="-O2"
8064 else
8065 CFLAGS=
8066 fi
8067 fi
8068
8069
8070 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
8071
8072 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
8073 echo "configure:8074: checking how to run the C preprocessor" >&5
8074 # On Suns, sometimes $CPP names a directory.
8075 if test -n "$CPP" && test -d "$CPP"; then
8076 CPP=
8077 fi
8078 if test -z "$CPP"; then
8079 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8080 echo $ac_n "(cached) $ac_c" 1>&6
8081 else
8082 # This must be in double quotes, not single quotes, because CPP may get
8083 # substituted into the Makefile and "${CC-cc}" will confuse make.
8084 CPP="${CC-cc} -E"
8085 # On the NeXT, cc -E runs the code through the compiler's parser,
8086 # not just through cpp.
8087 cat > conftest.$ac_ext <<EOF
8088 #line 8089 "configure"
8089 #include "confdefs.h"
8090 #include <assert.h>
8091 Syntax Error
8092 EOF
8093 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8094 { (eval echo configure:8095: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8095 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8096 if test -z "$ac_err"; then
8097 :
8098 else
8099 echo "$ac_err" >&5
8100 echo "configure: failed program was:" >&5
8101 cat conftest.$ac_ext >&5
8102 rm -rf conftest*
8103 CPP="${CC-cc} -E -traditional-cpp"
8104 cat > conftest.$ac_ext <<EOF
8105 #line 8106 "configure"
8106 #include "confdefs.h"
8107 #include <assert.h>
8108 Syntax Error
8109 EOF
8110 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8111 { (eval echo configure:8112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8112 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8113 if test -z "$ac_err"; then
8114 :
8115 else
8116 echo "$ac_err" >&5
8117 echo "configure: failed program was:" >&5
8118 cat conftest.$ac_ext >&5
8119 rm -rf conftest*
8120 CPP="${CC-cc} -nologo -E"
8121 cat > conftest.$ac_ext <<EOF
8122 #line 8123 "configure"
8123 #include "confdefs.h"
8124 #include <assert.h>
8125 Syntax Error
8126 EOF
8127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8128 { (eval echo configure:8129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8130 if test -z "$ac_err"; then
8131 :
8132 else
8133 echo "$ac_err" >&5
8134 echo "configure: failed program was:" >&5
8135 cat conftest.$ac_ext >&5
8136 rm -rf conftest*
8137 CPP=/lib/cpp
8138 fi
8139 rm -f conftest*
8140 fi
8141 rm -f conftest*
8142 fi
8143 rm -f conftest*
8144 ac_cv_prog_CPP="$CPP"
8145 fi
8146 CPP="$ac_cv_prog_CPP"
8147 else
8148 ac_cv_prog_CPP="$CPP"
8149 fi
8150 echo "$ac_t""$CPP" 1>&6
8151
8152
8153 if test $ac_cv_prog_gcc = yes; then
8154 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8155 echo "configure:8156: checking whether ${CC-cc} needs -traditional" >&5
8156 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8157 echo $ac_n "(cached) $ac_c" 1>&6
8158 else
8159 ac_pattern="Autoconf.*'x'"
8160 cat > conftest.$ac_ext <<EOF
8161 #line 8162 "configure"
8162 #include "confdefs.h"
8163 #include <sgtty.h>
8164 Autoconf TIOCGETP
8165 EOF
8166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8167 egrep "$ac_pattern" >/dev/null 2>&1; then
8168 rm -rf conftest*
8169 ac_cv_prog_gcc_traditional=yes
8170 else
8171 rm -rf conftest*
8172 ac_cv_prog_gcc_traditional=no
8173 fi
8174 rm -f conftest*
8175
8176
8177 if test $ac_cv_prog_gcc_traditional = no; then
8178 cat > conftest.$ac_ext <<EOF
8179 #line 8180 "configure"
8180 #include "confdefs.h"
8181 #include <termio.h>
8182 Autoconf TCGETA
8183 EOF
8184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8185 egrep "$ac_pattern" >/dev/null 2>&1; then
8186 rm -rf conftest*
8187 ac_cv_prog_gcc_traditional=yes
8188 fi
8189 rm -f conftest*
8190
8191 fi
8192 fi
8193
8194 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8195 if test $ac_cv_prog_gcc_traditional = yes; then
8196 CC="$CC -traditional"
8197 fi
8198 fi
8199
8200
8201
8202 ac_ext=C
8203 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8204 ac_cpp='$CXXCPP $CPPFLAGS'
8205 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8206 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8207 cross_compiling=$ac_cv_prog_cxx_cross
8208
8209
8210 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8211 do
8212 # Extract the first word of "$ac_prog", so it can be a program name with args.
8213 set dummy $ac_prog; 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_CXX'+set}'`\" = set"; then
8217 echo $ac_n "(cached) $ac_c" 1>&6
8218 else
8219 if test -n "$CXX"; then
8220 ac_cv_prog_CXX="$CXX" # 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_CXX="$ac_prog"
8228 break
8229 fi
8230 done
8231 IFS="$ac_save_ifs"
8232 fi
8233 fi
8234 CXX="$ac_cv_prog_CXX"
8235 if test -n "$CXX"; then
8236 echo "$ac_t""$CXX" 1>&6
8237 else
8238 echo "$ac_t""no" 1>&6
8239 fi
8240
8241 test -n "$CXX" && break
8242 done
8243 test -n "$CXX" || CXX="gcc"
8244
8245
8246 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8247 echo "configure:8248: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8248
8249 ac_ext=C
8250 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8251 ac_cpp='$CXXCPP $CPPFLAGS'
8252 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8253 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8254 cross_compiling=$ac_cv_prog_cxx_cross
8255
8256 cat > conftest.$ac_ext << EOF
8257
8258 #line 8259 "configure"
8259 #include "confdefs.h"
8260
8261 int 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_cxx_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_cxx_cross=no
8268 else
8269 ac_cv_prog_cxx_cross=yes
8270 fi
8271 else
8272 echo "configure: failed program was:" >&5
8273 cat conftest.$ac_ext >&5
8274 ac_cv_prog_cxx_works=no
8275 fi
8276 rm -fr conftest*
8277 ac_ext=C
8278 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8279 ac_cpp='$CXXCPP $CPPFLAGS'
8280 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8281 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8282 cross_compiling=$ac_cv_prog_cxx_cross
8283
8284 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8285 if test $ac_cv_prog_cxx_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 ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8289 echo "configure:8290: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8290 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8291 cross_compiling=$ac_cv_prog_cxx_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_gxx'+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='${CXX-g++} -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_gxx=yes
8305 else
8306 ac_cv_prog_gxx=no
8307 fi
8308 fi
8309
8310 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8311
8312 if test $ac_cv_prog_gxx = yes; then
8313 GXX=yes
8314 else
8315 GXX=
8316 fi
8317
8318 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8319 ac_save_CXXFLAGS="$CXXFLAGS"
8320 CXXFLAGS=
8321 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8322 echo "configure:8323: checking whether ${CXX-g++} accepts -g" >&5
8323 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8324 echo $ac_n "(cached) $ac_c" 1>&6
8325 else
8326 echo 'void f(){}' > conftest.cc
8327 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8328 ac_cv_prog_cxx_g=yes
8329 else
8330 ac_cv_prog_cxx_g=no
8331 fi
8332 rm -f conftest*
8333
8334 fi
8335
8336 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8337 if test "$ac_test_CXXFLAGS" = set; then
8338 CXXFLAGS="$ac_save_CXXFLAGS"
8339 elif test $ac_cv_prog_cxx_g = yes; then
8340 if test "$GXX" = yes; then
8341 CXXFLAGS="-g -O2"
8342 else
8343 CXXFLAGS="-g"
8344 fi
8345 else
8346 if test "$GXX" = yes; then
8347 CXXFLAGS="-O2"
8348 else
8349 CXXFLAGS=
8350 fi
8351 fi
8352
8353
8354 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
8355 echo "configure:8356: checking how to run the C++ preprocessor" >&5
8356 if test -z "$CXXCPP"; then
8357 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
8358 echo $ac_n "(cached) $ac_c" 1>&6
8359 else
8360 ac_ext=C
8361 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8362 ac_cpp='$CXXCPP $CPPFLAGS'
8363 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8364 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8365 cross_compiling=$ac_cv_prog_cxx_cross
8366 CXXCPP="${CXX-g++} -E"
8367 cat > conftest.$ac_ext <<EOF
8368 #line 8369 "configure"
8369 #include "confdefs.h"
8370 #include <stdlib.h>
8371 EOF
8372 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8373 { (eval echo configure:8374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8374 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8375 if test -z "$ac_err"; then
8376 :
8377 else
8378 echo "$ac_err" >&5
8379 echo "configure: failed program was:" >&5
8380 cat conftest.$ac_ext >&5
8381 rm -rf conftest*
8382 CXXCPP=/lib/cpp
8383 fi
8384 rm -f conftest*
8385 ac_cv_prog_CXXCPP="$CXXCPP"
8386 ac_ext=C
8387 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8388 ac_cpp='$CXXCPP $CPPFLAGS'
8389 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8390 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8391 cross_compiling=$ac_cv_prog_cxx_cross
8392 fi
8393 fi
8394 CXXCPP="$ac_cv_prog_CXXCPP"
8395 echo "$ac_t""$CXXCPP" 1>&6
8396
8397
8398 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8399
8400 ac_ext=c
8401 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8402 ac_cpp='$CPP $CPPFLAGS'
8403 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8404 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8405 cross_compiling=$ac_cv_prog_cc_cross
8406
8407
8408 # Extract the first word of "ranlib", so it can be a program name with args.
8409 set dummy ranlib; ac_word=$2
8410 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8411 echo "configure:8412: checking for $ac_word" >&5
8412 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8413 echo $ac_n "(cached) $ac_c" 1>&6
8414 else
8415 if test -n "$RANLIB"; then
8416 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8417 else
8418 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8419 ac_dummy="$PATH"
8420 for ac_dir in $ac_dummy; do
8421 test -z "$ac_dir" && ac_dir=.
8422 if test -f $ac_dir/$ac_word; then
8423 ac_cv_prog_RANLIB="ranlib"
8424 break
8425 fi
8426 done
8427 IFS="$ac_save_ifs"
8428 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8429 fi
8430 fi
8431 RANLIB="$ac_cv_prog_RANLIB"
8432 if test -n "$RANLIB"; then
8433 echo "$ac_t""$RANLIB" 1>&6
8434 else
8435 echo "$ac_t""no" 1>&6
8436 fi
8437
8438
8439 # Extract the first word of "ar", so it can be a program name with args.
8440 set dummy ar; ac_word=$2
8441 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8442 echo "configure:8443: checking for $ac_word" >&5
8443 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8444 echo $ac_n "(cached) $ac_c" 1>&6
8445 else
8446 if test -n "$AR"; then
8447 ac_cv_prog_AR="$AR" # Let the user override the test.
8448 else
8449 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8450 ac_dummy="$PATH"
8451 for ac_dir in $ac_dummy; do
8452 test -z "$ac_dir" && ac_dir=.
8453 if test -f $ac_dir/$ac_word; then
8454 ac_cv_prog_AR="ar"
8455 break
8456 fi
8457 done
8458 IFS="$ac_save_ifs"
8459 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8460 fi
8461 fi
8462 AR="$ac_cv_prog_AR"
8463 if test -n "$AR"; then
8464 echo "$ac_t""$AR" 1>&6
8465 else
8466 echo "$ac_t""no" 1>&6
8467 fi
8468
8469
8470 # Find a good install program. We prefer a C program (faster),
8471 # so one script is as good as another. But avoid the broken or
8472 # incompatible versions:
8473 # SysV /etc/install, /usr/sbin/install
8474 # SunOS /usr/etc/install
8475 # IRIX /sbin/install
8476 # AIX /bin/install
8477 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8478 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8479 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8480 # ./install, which can be erroneously created by make from ./install.sh.
8481 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8482 echo "configure:8483: checking for a BSD compatible install" >&5
8483 if test -z "$INSTALL"; then
8484 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8485 echo $ac_n "(cached) $ac_c" 1>&6
8486 else
8487 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8488 for ac_dir in $PATH; do
8489 # Account for people who put trailing slashes in PATH elements.
8490 case "$ac_dir/" in
8491 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8492 *)
8493 # OSF1 and SCO ODT 3.0 have their own names for install.
8494 # Don't use installbsd from OSF since it installs stuff as root
8495 # by default.
8496 for ac_prog in ginstall scoinst install; do
8497 if test -f $ac_dir/$ac_prog; then
8498 if test $ac_prog = install &&
8499 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8500 # AIX install. It has an incompatible calling convention.
8501 :
8502 else
8503 ac_cv_path_install="$ac_dir/$ac_prog -c"
8504 break 2
8505 fi
8506 fi
8507 done
8508 ;;
8509 esac
8510 done
8511 IFS="$ac_save_IFS"
8512
8513 fi
8514 if test "${ac_cv_path_install+set}" = set; then
8515 INSTALL="$ac_cv_path_install"
8516 else
8517 # As a last resort, use the slow shell script. We don't cache a
8518 # path for INSTALL within a source directory, because that will
8519 # break other packages using the cache if that directory is
8520 # removed, or if the path is relative.
8521 INSTALL="$ac_install_sh"
8522 fi
8523 fi
8524 echo "$ac_t""$INSTALL" 1>&6
8525
8526 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8527 # It thinks the first close brace ends the variable substitution.
8528 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8529
8530 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8531
8532 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8533
8534
8535 # Extract the first word of "strip", so it can be a program name with args.
8536 set dummy strip; ac_word=$2
8537 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8538 echo "configure:8539: checking for $ac_word" >&5
8539 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8540 echo $ac_n "(cached) $ac_c" 1>&6
8541 else
8542 if test -n "$STRIP"; then
8543 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8544 else
8545 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8546 ac_dummy="$PATH"
8547 for ac_dir in $ac_dummy; do
8548 test -z "$ac_dir" && ac_dir=.
8549 if test -f $ac_dir/$ac_word; then
8550 ac_cv_prog_STRIP="strip"
8551 break
8552 fi
8553 done
8554 IFS="$ac_save_ifs"
8555 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8556 fi
8557 fi
8558 STRIP="$ac_cv_prog_STRIP"
8559 if test -n "$STRIP"; then
8560 echo "$ac_t""$STRIP" 1>&6
8561 else
8562 echo "$ac_t""no" 1>&6
8563 fi
8564
8565
8566 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8567 echo "configure:8568: checking make for VPATH support" >&5
8568 cat - << EOF > confMake
8569 check : file
8570 cp \$? \$@
8571 cp \$? final_file
8572 EOF
8573
8574 if test ! -d sub ; then
8575 mkdir sub
8576 fi
8577 echo dummy > sub/file
8578 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8579 RESULT=$?
8580 rm -f sub/file check final_file confMake
8581 rmdir sub
8582 if test "$RESULT" = 0; then
8583 echo "$ac_t""yes" 1>&6
8584 else
8585 echo "$ac_t""no" 1>&6
8586 { echo "configure: error:
8587 You need a make-utility that is able to use the variable
8588 VPATH correctly.
8589 If your version of make does not support VPATH correctly,
8590 please install GNU-make (possibly as gmake), and start
8591 configure with the following command:
8592 export MAKE=gmake; ./configure for sh-type shells
8593 setenv MAKE gmake; ./configure for csh-type shells
8594 Also please do remember to use gmake in this case every time
8595 you are trying to compile.
8596 " 1>&2; exit 1; }
8597 fi
8598
8599 for ac_prog in 'bison -y' byacc
8600 do
8601 # Extract the first word of "$ac_prog", so it can be a program name with args.
8602 set dummy $ac_prog; ac_word=$2
8603 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8604 echo "configure:8605: checking for $ac_word" >&5
8605 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8606 echo $ac_n "(cached) $ac_c" 1>&6
8607 else
8608 if test -n "$YACC"; then
8609 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8610 else
8611 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8612 ac_dummy="$PATH"
8613 for ac_dir in $ac_dummy; do
8614 test -z "$ac_dir" && ac_dir=.
8615 if test -f $ac_dir/$ac_word; then
8616 ac_cv_prog_YACC="$ac_prog"
8617 break
8618 fi
8619 done
8620 IFS="$ac_save_ifs"
8621 fi
8622 fi
8623 YACC="$ac_cv_prog_YACC"
8624 if test -n "$YACC"; then
8625 echo "$ac_t""$YACC" 1>&6
8626 else
8627 echo "$ac_t""no" 1>&6
8628 fi
8629
8630 test -n "$YACC" && break
8631 done
8632 test -n "$YACC" || YACC="yacc"
8633
8634
8635 # Extract the first word of "flex", so it can be a program name with args.
8636 set dummy flex; ac_word=$2
8637 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8638 echo "configure:8639: checking for $ac_word" >&5
8639 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8640 echo $ac_n "(cached) $ac_c" 1>&6
8641 else
8642 if test -n "$LEX"; then
8643 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8644 else
8645 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8646 ac_dummy="$PATH"
8647 for ac_dir in $ac_dummy; do
8648 test -z "$ac_dir" && ac_dir=.
8649 if test -f $ac_dir/$ac_word; then
8650 ac_cv_prog_LEX="flex"
8651 break
8652 fi
8653 done
8654 IFS="$ac_save_ifs"
8655 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8656 fi
8657 fi
8658 LEX="$ac_cv_prog_LEX"
8659 if test -n "$LEX"; then
8660 echo "$ac_t""$LEX" 1>&6
8661 else
8662 echo "$ac_t""no" 1>&6
8663 fi
8664
8665 if test -z "$LEXLIB"
8666 then
8667 case "$LEX" in
8668 flex*) ac_lib=fl ;;
8669 *) ac_lib=l ;;
8670 esac
8671 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8672 echo "configure:8673: checking for yywrap in -l$ac_lib" >&5
8673 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8674 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8675 echo $ac_n "(cached) $ac_c" 1>&6
8676 else
8677 ac_save_LIBS="$LIBS"
8678 LIBS="-l$ac_lib $LIBS"
8679 cat > conftest.$ac_ext <<EOF
8680 #line 8681 "configure"
8681 #include "confdefs.h"
8682 /* Override any gcc2 internal prototype to avoid an error. */
8683 /* We use char because int might match the return type of a gcc2
8684 builtin and then its argument prototype would still apply. */
8685 char yywrap();
8686
8687 int main() {
8688 yywrap()
8689 ; return 0; }
8690 EOF
8691 if { (eval echo configure:8692: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8692 rm -rf conftest*
8693 eval "ac_cv_lib_$ac_lib_var=yes"
8694 else
8695 echo "configure: failed program was:" >&5
8696 cat conftest.$ac_ext >&5
8697 rm -rf conftest*
8698 eval "ac_cv_lib_$ac_lib_var=no"
8699 fi
8700 rm -f conftest*
8701 LIBS="$ac_save_LIBS"
8702
8703 fi
8704 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8705 echo "$ac_t""yes" 1>&6
8706 LEXLIB="-l$ac_lib"
8707 else
8708 echo "$ac_t""no" 1>&6
8709 fi
8710
8711 fi
8712
8713
8714 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8715 echo "configure:8716: checking whether ln -s works" >&5
8716 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8717 echo $ac_n "(cached) $ac_c" 1>&6
8718 else
8719 rm -f conftestdata
8720 if ln -s X conftestdata 2>/dev/null
8721 then
8722 rm -f conftestdata
8723 ac_cv_prog_LN_S="ln -s"
8724 else
8725 ac_cv_prog_LN_S=ln
8726 fi
8727 fi
8728 LN_S="$ac_cv_prog_LN_S"
8729 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8730 echo "$ac_t""yes" 1>&6
8731 else
8732 echo "$ac_t""no" 1>&6
8733 fi
8734
8735
8736
8737 SEARCH_INCLUDE="\
8738 /usr/local/include \
8739 \
8740 /usr/Motif-1.2/include \
8741 /usr/Motif-2.1/include \
8742 \
8743 /usr/include/Motif1.2 \
8744 /opt/xpm/include/X11 \
8745 /opt/GBxpm/include/ \
8746 /opt/GBxpm/X11/include/ \
8747 \
8748 /usr/Motif1.2/include \
8749 /usr/dt/include \
8750 /usr/openwin/include \
8751 \
8752 /usr/include/Xm \
8753 \
8754 /usr/X11R6/include \
8755 /usr/X11R6.4/include \
8756 /usr/X11R5/include \
8757 /usr/X11R4/include \
8758 \
8759 /usr/include/X11R6 \
8760 /usr/include/X11R5 \
8761 /usr/include/X11R4 \
8762 \
8763 /usr/local/X11R6/include \
8764 /usr/local/X11R5/include \
8765 /usr/local/X11R4/include \
8766 \
8767 /usr/local/include/X11R6 \
8768 /usr/local/include/X11R5 \
8769 /usr/local/include/X11R4 \
8770 \
8771 /usr/X11/include \
8772 /usr/include/X11 \
8773 /usr/local/X11/include \
8774 /usr/local/include/X11 \
8775 \
8776 /usr/X386/include \
8777 /usr/x386/include \
8778 /usr/XFree86/include/X11 \
8779 \
8780 X:/XFree86/include \
8781 X:/XFree86/include/X11 \
8782 \
8783 /usr/include/gtk \
8784 /usr/local/include/gtk \
8785 /usr/include/glib \
8786 /usr/local/include/glib \
8787 \
8788 /usr/include/qt \
8789 /usr/local/include/qt \
8790 \
8791 /usr/include/windows \
8792 /usr/include/wine \
8793 /usr/local/include/wine \
8794 \
8795 /usr/unsupported/include \
8796 /usr/athena/include \
8797 /usr/local/x11r5/include \
8798 /usr/lpp/Xamples/include \
8799 \
8800 /usr/openwin/share/include \
8801 \
8802 /usr/include"
8803
8804 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8805
8806
8807 cat > confcache <<\EOF
8808 # This file is a shell script that caches the results of configure
8809 # tests run on this system so they can be shared between configure
8810 # scripts and configure runs. It is not useful on other systems.
8811 # If it contains results you don't want to keep, you may remove or edit it.
8812 #
8813 # By default, configure uses ./config.cache as the cache file,
8814 # creating it if it does not exist already. You can give configure
8815 # the --cache-file=FILE option to use a different cache file; that is
8816 # what configure does when it calls configure scripts in
8817 # subdirectories, so they share the cache.
8818 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8819 # config.status only pays attention to the cache file if you give it the
8820 # --recheck option to rerun configure.
8821 #
8822 EOF
8823 # The following way of writing the cache mishandles newlines in values,
8824 # but we know of no workaround that is simple, portable, and efficient.
8825 # So, don't put newlines in cache variables' values.
8826 # Ultrix sh set writes to stderr and can't be redirected directly,
8827 # and sets the high bit in the cache file unless we assign to the vars.
8828 (set) 2>&1 |
8829 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8830 *ac_space=\ *)
8831 # `set' does not quote correctly, so add quotes (double-quote substitution
8832 # turns \\\\ into \\, and sed turns \\ into \).
8833 sed -n \
8834 -e "s/'/'\\\\''/g" \
8835 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8836 ;;
8837 *)
8838 # `set' quotes correctly as required by POSIX, so do not add quotes.
8839 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8840 ;;
8841 esac >> confcache
8842 if cmp -s $cache_file confcache; then
8843 :
8844 else
8845 if test -w $cache_file; then
8846 echo "updating cache $cache_file"
8847 cat confcache > $cache_file
8848 else
8849 echo "not updating unwritable cache $cache_file"
8850 fi
8851 fi
8852 rm -f confcache
8853
8854
8855
8856 REGEX_INCLUDE=
8857 if test "$wxUSE_REGEX" != "no"; then
8858 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
8859 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
8860 echo "configure:8861: checking for regex.h" >&5
8861 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8862 echo $ac_n "(cached) $ac_c" 1>&6
8863 else
8864 cat > conftest.$ac_ext <<EOF
8865 #line 8866 "configure"
8866 #include "confdefs.h"
8867 #include <regex.h>
8868 EOF
8869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8870 { (eval echo configure:8871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8872 if test -z "$ac_err"; then
8873 rm -rf conftest*
8874 eval "ac_cv_header_$ac_safe=yes"
8875 else
8876 echo "$ac_err" >&5
8877 echo "configure: failed program was:" >&5
8878 cat conftest.$ac_ext >&5
8879 rm -rf conftest*
8880 eval "ac_cv_header_$ac_safe=no"
8881 fi
8882 rm -f conftest*
8883 fi
8884 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8885 echo "$ac_t""yes" 1>&6
8886 for ac_func in regcomp
8887 do
8888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
8889 echo "configure:8890: checking for $ac_func" >&5
8890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
8891 echo $ac_n "(cached) $ac_c" 1>&6
8892 else
8893 cat > conftest.$ac_ext <<EOF
8894 #line 8895 "configure"
8895 #include "confdefs.h"
8896 /* System header to define __stub macros and hopefully few prototypes,
8897 which can conflict with char $ac_func(); below. */
8898 #include <assert.h>
8899 /* Override any gcc2 internal prototype to avoid an error. */
8900 /* We use char because int might match the return type of a gcc2
8901 builtin and then its argument prototype would still apply. */
8902 char $ac_func();
8903
8904 int main() {
8905
8906 /* The GNU C library defines this for functions which it implements
8907 to always fail with ENOSYS. Some functions are actually named
8908 something starting with __ and the normal name is an alias. */
8909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8910 choke me
8911 #else
8912 $ac_func();
8913 #endif
8914
8915 ; return 0; }
8916 EOF
8917 if { (eval echo configure:8918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8918 rm -rf conftest*
8919 eval "ac_cv_func_$ac_func=yes"
8920 else
8921 echo "configure: failed program was:" >&5
8922 cat conftest.$ac_ext >&5
8923 rm -rf conftest*
8924 eval "ac_cv_func_$ac_func=no"
8925 fi
8926 rm -f conftest*
8927 fi
8928
8929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
8930 echo "$ac_t""yes" 1>&6
8931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
8932 cat >> confdefs.h <<EOF
8933 #define $ac_tr_func 1
8934 EOF
8935
8936 else
8937 echo "$ac_t""no" 1>&6
8938 fi
8939 done
8940
8941 else
8942 echo "$ac_t""no" 1>&6
8943 fi
8944
8945
8946 if test "x$ac_cv_func_regcomp" != "xyes"; then
8947 if test "$wxUSE_REGEX" = "sys"; then
8948 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
8949 fi
8950
8951 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
8952 fi
8953
8954 cat >> confdefs.h <<\EOF
8955 #define wxUSE_REGEX 1
8956 EOF
8957
8958 fi
8959
8960
8961 AFMINSTALL=
8962
8963 if test "$wxUSE_GUI" = "yes"; then
8964 USE_GUI=1
8965
8966 TOOLKIT=
8967 TOOLKIT_INCLUDE=
8968
8969 GUI_TK_LIBRARY=
8970 GUI_TK_LINK=
8971
8972 WXGTK12=
8973 WXGTK127=
8974 WXGTK20=
8975
8976 WXWINE=
8977
8978 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8979 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8980 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
8981 echo "configure:8982: checking for windows.h" >&5
8982 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8983 echo $ac_n "(cached) $ac_c" 1>&6
8984 else
8985 cat > conftest.$ac_ext <<EOF
8986 #line 8987 "configure"
8987 #include "confdefs.h"
8988 #include <windows.h>
8989 EOF
8990 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8991 { (eval echo configure:8992: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8992 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8993 if test -z "$ac_err"; then
8994 rm -rf conftest*
8995 eval "ac_cv_header_$ac_safe=yes"
8996 else
8997 echo "$ac_err" >&5
8998 echo "configure: failed program was:" >&5
8999 cat conftest.$ac_ext >&5
9000 rm -rf conftest*
9001 eval "ac_cv_header_$ac_safe=no"
9002 fi
9003 rm -f conftest*
9004 fi
9005 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
9006 echo "$ac_t""yes" 1>&6
9007 :
9008 else
9009 echo "$ac_t""no" 1>&6
9010
9011 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9012
9013 fi
9014
9015
9016 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
9017
9018 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
9019
9020 if test "$wxUSE_ODBC" = "yes" ; then
9021 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
9022 fi
9023
9024 if test "$wxUSE_MINGW" = 1; then
9025 LDFLAGS="$LDFLAGS -mwindows"
9026 fi
9027
9028 TOOLKIT=MSW
9029 GUIDIST=MSW_DIST
9030
9031 RCINCSWITCH="--include-dir"
9032 RCDEFSWITCH="--define"
9033 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
9034 RCINPUTSWITCH="-i"
9035 RCOUTPUTSWITCH="-o"
9036 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
9037
9038 RESPROGRAM="\$(RES_PROGRAM)"
9039 fi
9040
9041 if test "$wxUSE_GTK" = 1; then
9042 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
9043 echo "configure:9044: checking for GTK+ version" >&5
9044
9045 gtk_version_cached=1
9046 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
9047 echo $ac_n "(cached) $ac_c" 1>&6
9048 else
9049
9050 gtk_version_cached=0
9051 echo "$ac_t""""" 1>&6
9052
9053 wx_cv_lib_gtk=
9054 if test "x$wxUSE_GTK2" = "xyes"; then
9055 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
9056 if test "${with_gtk_prefix+set}" = set; then
9057 withval="$with_gtk_prefix"
9058 gtk_config_prefix="$withval"
9059 else
9060 gtk_config_prefix=""
9061 fi
9062
9063 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
9064 if test "${with_gtk_exec_prefix+set}" = set; then
9065 withval="$with_gtk_exec_prefix"
9066 gtk_config_exec_prefix="$withval"
9067 else
9068 gtk_config_exec_prefix=""
9069 fi
9070
9071 # Check whether --enable-gtktest or --disable-gtktest was given.
9072 if test "${enable_gtktest+set}" = set; then
9073 enableval="$enable_gtktest"
9074 :
9075 else
9076 enable_gtktest=yes
9077 fi
9078
9079
9080 for module in .
9081 do
9082 case "$module" in
9083 gthread)
9084 gtk_config_args="$gtk_config_args gthread"
9085 ;;
9086 esac
9087 done
9088
9089 if test x$gtk_config_exec_prefix != x ; then
9090 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9091 if test x${GTK_CONFIG_2_0+set} != xset ; then
9092 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
9093 fi
9094 fi
9095 if test x$gtk_config_prefix != x ; then
9096 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9097 if test x${GTK_CONFIG_2_0+set} != xset ; then
9098 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
9099 fi
9100 fi
9101
9102 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
9103 set dummy gtk-config-2.0; ac_word=$2
9104 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9105 echo "configure:9106: checking for $ac_word" >&5
9106 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
9107 echo $ac_n "(cached) $ac_c" 1>&6
9108 else
9109 case "$GTK_CONFIG_2_0" in
9110 /*)
9111 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
9112 ;;
9113 ?:/*)
9114 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
9115 ;;
9116 *)
9117 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9118 ac_dummy="$PATH"
9119 for ac_dir in $ac_dummy; do
9120 test -z "$ac_dir" && ac_dir=.
9121 if test -f $ac_dir/$ac_word; then
9122 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
9123 break
9124 fi
9125 done
9126 IFS="$ac_save_ifs"
9127 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
9128 ;;
9129 esac
9130 fi
9131 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
9132 if test -n "$GTK_CONFIG_2_0"; then
9133 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
9134 else
9135 echo "$ac_t""no" 1>&6
9136 fi
9137
9138 min_gtk_version=1.3.1
9139 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9140 echo "configure:9141: checking for GTK - version >= $min_gtk_version" >&5
9141 no_gtk=""
9142 if test "$GTK_CONFIG_2_0" = "no" ; then
9143 no_gtk=yes
9144 else
9145 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
9146 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
9147 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9148 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
9149 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9150 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
9151 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
9152 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
9153 if test "x$enable_gtktest" = "xyes" ; then
9154 ac_save_CFLAGS="$CFLAGS"
9155 ac_save_LIBS="$LIBS"
9156 CFLAGS="$CFLAGS $GTK_CFLAGS"
9157 LIBS="$GTK_LIBS $LIBS"
9158 rm -f conf.gtktest
9159 if test "$cross_compiling" = yes; then
9160 echo $ac_n "cross compiling; assumed OK... $ac_c"
9161 else
9162 cat > conftest.$ac_ext <<EOF
9163 #line 9164 "configure"
9164 #include "confdefs.h"
9165
9166 #include <gtk/gtk.h>
9167 #include <stdio.h>
9168 #include <stdlib.h>
9169
9170 int
9171 main ()
9172 {
9173 int major, minor, micro;
9174 char *tmp_version;
9175
9176 system ("touch conf.gtktest");
9177
9178 /* HP/UX 9 (%@#!) writes to sscanf strings */
9179 tmp_version = g_strdup("$min_gtk_version");
9180 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9181 printf("%s, bad version string\n", "$min_gtk_version");
9182 exit(1);
9183 }
9184
9185 if ((gtk_major_version != $gtk_config_major_version) ||
9186 (gtk_minor_version != $gtk_config_minor_version) ||
9187 (gtk_micro_version != $gtk_config_micro_version))
9188 {
9189 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
9190 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9191 gtk_major_version, gtk_minor_version, gtk_micro_version);
9192 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9193 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9194 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9195 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9196 printf("*** required on your system.\n");
9197 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9198 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9199 printf("*** before re-running configure\n");
9200 }
9201 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9202 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9203 (gtk_minor_version != GTK_MINOR_VERSION) ||
9204 (gtk_micro_version != GTK_MICRO_VERSION))
9205 {
9206 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9207 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9208 printf("*** library (version %d.%d.%d)\n",
9209 gtk_major_version, gtk_minor_version, gtk_micro_version);
9210 }
9211 #endif /* defined (GTK_MAJOR_VERSION) ... */
9212 else
9213 {
9214 if ((gtk_major_version > major) ||
9215 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9216 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9217 {
9218 return 0;
9219 }
9220 else
9221 {
9222 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9223 gtk_major_version, gtk_minor_version, gtk_micro_version);
9224 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9225 major, minor, micro);
9226 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9227 printf("***\n");
9228 printf("*** If you have already installed a sufficiently new version, this error\n");
9229 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9230 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9231 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9232 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9233 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9234 printf("*** so that the correct libraries are found at run-time))\n");
9235 }
9236 }
9237 return 1;
9238 }
9239
9240 EOF
9241 if { (eval echo configure:9242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9242 then
9243 :
9244 else
9245 echo "configure: failed program was:" >&5
9246 cat conftest.$ac_ext >&5
9247 rm -fr conftest*
9248 no_gtk=yes
9249 fi
9250 rm -fr conftest*
9251 fi
9252
9253 CFLAGS="$ac_save_CFLAGS"
9254 LIBS="$ac_save_LIBS"
9255 fi
9256 fi
9257 if test "x$no_gtk" = x ; then
9258 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9259 wx_cv_lib_gtk=2.0
9260 else
9261 echo "$ac_t""no" 1>&6
9262 if test "$GTK_CONFIG_2_0" = "no" ; then
9263 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9264 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9265 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9266 echo "*** full path to gtk-config-2.0."
9267 else
9268 if test -f conf.gtktest ; then
9269 :
9270 else
9271 echo "*** Could not run GTK test program, checking why..."
9272 CFLAGS="$CFLAGS $GTK_CFLAGS"
9273 LIBS="$LIBS $GTK_LIBS"
9274 cat > conftest.$ac_ext <<EOF
9275 #line 9276 "configure"
9276 #include "confdefs.h"
9277
9278 #include <gtk/gtk.h>
9279 #include <stdio.h>
9280
9281 int main() {
9282 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9283 ; return 0; }
9284 EOF
9285 if { (eval echo configure:9286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9286 rm -rf conftest*
9287 echo "*** The test program compiled, but did not run. This usually means"
9288 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9289 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9290 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9291 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9292 echo "*** is required on your system"
9293 echo "***"
9294 echo "*** If you have an old version installed, it is best to remove it, although"
9295 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9296 echo "***"
9297 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9298 echo "*** came with the system with the command"
9299 echo "***"
9300 echo "*** rpm --erase --nodeps gtk gtk-devel"
9301 else
9302 echo "configure: failed program was:" >&5
9303 cat conftest.$ac_ext >&5
9304 rm -rf conftest*
9305 echo "*** The test program failed to compile or link. See the file config.log for the"
9306 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9307 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
9308 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
9309 fi
9310 rm -f conftest*
9311 CFLAGS="$ac_save_CFLAGS"
9312 LIBS="$ac_save_LIBS"
9313 fi
9314 fi
9315 GTK_CFLAGS=""
9316 GTK_LIBS=""
9317 gthread
9318 fi
9319
9320
9321 rm -f conf.gtktest
9322
9323 fi
9324
9325 if test -z "$wx_cv_lib_gtk"; then
9326
9327 if test x$gtk_config_exec_prefix != x ; then
9328 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9329 if test x${GTK_CONFIG+set} != xset ; then
9330 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9331 fi
9332 fi
9333 if test x$gtk_config_prefix != x ; then
9334 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9335 if test x${GTK_CONFIG+set} != xset ; then
9336 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9337 fi
9338 fi
9339
9340 # Extract the first word of "gtk-config", so it can be a program name with args.
9341 set dummy gtk-config; ac_word=$2
9342 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9343 echo "configure:9344: checking for $ac_word" >&5
9344 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9345 echo $ac_n "(cached) $ac_c" 1>&6
9346 else
9347 case "$GTK_CONFIG" in
9348 /*)
9349 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9350 ;;
9351 ?:/*)
9352 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9353 ;;
9354 *)
9355 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9356 ac_dummy="$PATH"
9357 for ac_dir in $ac_dummy; do
9358 test -z "$ac_dir" && ac_dir=.
9359 if test -f $ac_dir/$ac_word; then
9360 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9361 break
9362 fi
9363 done
9364 IFS="$ac_save_ifs"
9365 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9366 ;;
9367 esac
9368 fi
9369 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9370 if test -n "$GTK_CONFIG"; then
9371 echo "$ac_t""$GTK_CONFIG" 1>&6
9372 else
9373 echo "$ac_t""no" 1>&6
9374 fi
9375
9376 min_gtk_version=1.2.7
9377 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9378 echo "configure:9379: checking for GTK - version >= $min_gtk_version" >&5
9379 no_gtk=""
9380 if test "$GTK_CONFIG" != "no" ; then
9381 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9382 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9383 ac_save_CFLAGS="$CFLAGS"
9384 ac_save_LIBS="$LIBS"
9385 CFLAGS="$CFLAGS $GTK_CFLAGS"
9386 LIBS="$LIBS $GTK_LIBS"
9387 if test "$cross_compiling" = yes; then
9388 echo $ac_n "cross compiling; assumed OK... $ac_c"
9389 else
9390 cat > conftest.$ac_ext <<EOF
9391 #line 9392 "configure"
9392 #include "confdefs.h"
9393
9394 #include <gtk/gtk.h>
9395 #include <gtk/gtkfeatures.h>
9396 #include <stdio.h>
9397 #include <stdlib.h>
9398
9399 int
9400 main ()
9401 {
9402 int major, minor, micro;
9403
9404 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9405 printf("%s, bad version string\n", "$min_gtk_version");
9406 exit(1);
9407 }
9408
9409 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9410 (GTK_MINOR_VERSION != gtk_minor_version) ||
9411 (GTK_MICRO_VERSION != gtk_micro_version)) {
9412 printf("Headers vs. library version mismatch!\n");
9413 exit(1);
9414 }
9415
9416 if (gtk_minor_version == 1) return FALSE;
9417
9418 return !((gtk_major_version > major) ||
9419 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9420 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9421 }
9422
9423 EOF
9424 if { (eval echo configure:9425: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9425 then
9426 :
9427 else
9428 echo "configure: failed program was:" >&5
9429 cat conftest.$ac_ext >&5
9430 rm -fr conftest*
9431 no_gtk=yes
9432 fi
9433 rm -fr conftest*
9434 fi
9435
9436 CFLAGS="$ac_save_CFLAGS"
9437 LIBS="$ac_save_LIBS"
9438 else
9439 no_gtk=yes
9440 fi
9441 if test "x$no_gtk" = x ; then
9442 echo "$ac_t""yes" 1>&6
9443 wx_cv_lib_gtk=1.2.7
9444 else
9445 echo "$ac_t""no" 1>&6
9446 GTK_CFLAGS=""
9447 GTK_LIBS=""
9448 :
9449 fi
9450
9451
9452
9453 fi
9454
9455 if test -z "$wx_cv_lib_gtk"; then
9456
9457 if test x$gtk_config_exec_prefix != x ; then
9458 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9459 if test x${GTK_CONFIG+set} != xset ; then
9460 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9461 fi
9462 fi
9463 if test x$gtk_config_prefix != x ; then
9464 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9465 if test x${GTK_CONFIG+set} != xset ; then
9466 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9467 fi
9468 fi
9469
9470 # Extract the first word of "gtk-config", so it can be a program name with args.
9471 set dummy gtk-config; ac_word=$2
9472 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9473 echo "configure:9474: checking for $ac_word" >&5
9474 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9475 echo $ac_n "(cached) $ac_c" 1>&6
9476 else
9477 case "$GTK_CONFIG" in
9478 /*)
9479 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9480 ;;
9481 ?:/*)
9482 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9483 ;;
9484 *)
9485 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9486 ac_dummy="$PATH"
9487 for ac_dir in $ac_dummy; do
9488 test -z "$ac_dir" && ac_dir=.
9489 if test -f $ac_dir/$ac_word; then
9490 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9491 break
9492 fi
9493 done
9494 IFS="$ac_save_ifs"
9495 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9496 ;;
9497 esac
9498 fi
9499 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9500 if test -n "$GTK_CONFIG"; then
9501 echo "$ac_t""$GTK_CONFIG" 1>&6
9502 else
9503 echo "$ac_t""no" 1>&6
9504 fi
9505
9506 min_gtk_version=1.2.3
9507 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9508 echo "configure:9509: checking for GTK - version >= $min_gtk_version" >&5
9509 no_gtk=""
9510 if test "$GTK_CONFIG" != "no" ; then
9511 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9512 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9513 ac_save_CFLAGS="$CFLAGS"
9514 ac_save_LIBS="$LIBS"
9515 CFLAGS="$CFLAGS $GTK_CFLAGS"
9516 LIBS="$LIBS $GTK_LIBS"
9517 if test "$cross_compiling" = yes; then
9518 echo $ac_n "cross compiling; assumed OK... $ac_c"
9519 else
9520 cat > conftest.$ac_ext <<EOF
9521 #line 9522 "configure"
9522 #include "confdefs.h"
9523
9524 #include <gtk/gtk.h>
9525 #include <gtk/gtkfeatures.h>
9526 #include <stdio.h>
9527 #include <stdlib.h>
9528
9529 int
9530 main ()
9531 {
9532 int major, minor, micro;
9533
9534 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9535 printf("%s, bad version string\n", "$min_gtk_version");
9536 exit(1);
9537 }
9538
9539 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9540 (GTK_MINOR_VERSION != gtk_minor_version) ||
9541 (GTK_MICRO_VERSION != gtk_micro_version)) {
9542 printf("Headers vs. library version mismatch!\n");
9543 exit(1);
9544 }
9545
9546 if (gtk_minor_version == 1) return FALSE;
9547
9548 return !((gtk_major_version > major) ||
9549 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9550 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9551 }
9552
9553 EOF
9554 if { (eval echo configure:9555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9555 then
9556 :
9557 else
9558 echo "configure: failed program was:" >&5
9559 cat conftest.$ac_ext >&5
9560 rm -fr conftest*
9561 no_gtk=yes
9562 fi
9563 rm -fr conftest*
9564 fi
9565
9566 CFLAGS="$ac_save_CFLAGS"
9567 LIBS="$ac_save_LIBS"
9568 else
9569 no_gtk=yes
9570 fi
9571 if test "x$no_gtk" = x ; then
9572 echo "$ac_t""yes" 1>&6
9573 wx_cv_lib_gtk=1.2.3
9574 else
9575 echo "$ac_t""no" 1>&6
9576 GTK_CFLAGS=""
9577 GTK_LIBS=""
9578 :
9579 fi
9580
9581
9582
9583 fi
9584
9585 if test -z "$wx_cv_lib_gtk"; then
9586 wx_cv_lib_gtk=none
9587 else
9588 wx_cv_cflags_gtk=$GTK_CFLAGS
9589 wx_cv_libs_gtk=$GTK_LIBS
9590 fi
9591
9592
9593 fi
9594
9595
9596 if test "$gtk_version_cached" = 1; then
9597 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
9598 fi
9599
9600 case "$wx_cv_lib_gtk" in
9601 2.0) WXGTK20=1
9602 ;;
9603 1.2.7) WXGTK127=1
9604 WXGTK12=1
9605 ;;
9606 1.2.3) WXGTK12=1
9607 ;;
9608 *) { echo "configure: error:
9609 Please check that gtk-config is in path, the directory
9610 where GTK+ libraries are installed (returned by
9611 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9612 equivalent variable and GTK+ is version 1.2.3 or above.
9613 " 1>&2; exit 1; }
9614 ;;
9615 esac
9616
9617 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
9618 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
9619
9620 AFMINSTALL=afminstall
9621 TOOLKIT=GTK
9622 GUIDIST=GTK_DIST
9623
9624 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9625 echo "configure:9626: checking for gdk_im_open in -lgdk" >&5
9626 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9628 echo $ac_n "(cached) $ac_c" 1>&6
9629 else
9630 ac_save_LIBS="$LIBS"
9631 LIBS="-lgdk $LIBS"
9632 cat > conftest.$ac_ext <<EOF
9633 #line 9634 "configure"
9634 #include "confdefs.h"
9635 /* Override any gcc2 internal prototype to avoid an error. */
9636 /* We use char because int might match the return type of a gcc2
9637 builtin and then its argument prototype would still apply. */
9638 char gdk_im_open();
9639
9640 int main() {
9641 gdk_im_open()
9642 ; return 0; }
9643 EOF
9644 if { (eval echo configure:9645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9645 rm -rf conftest*
9646 eval "ac_cv_lib_$ac_lib_var=yes"
9647 else
9648 echo "configure: failed program was:" >&5
9649 cat conftest.$ac_ext >&5
9650 rm -rf conftest*
9651 eval "ac_cv_lib_$ac_lib_var=no"
9652 fi
9653 rm -f conftest*
9654 LIBS="$ac_save_LIBS"
9655
9656 fi
9657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9658 echo "$ac_t""yes" 1>&6
9659 cat >> confdefs.h <<\EOF
9660 #define HAVE_XIM 1
9661 EOF
9662
9663 else
9664 echo "$ac_t""no" 1>&6
9665 fi
9666
9667 fi
9668
9669 if test "$wxUSE_MGL" = 1; then
9670
9671 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9672 echo "configure:9673: checking for SciTech MGL library" >&5
9673 if test "x$MGL_ROOT" = x ; then
9674 echo "$ac_t""not found" 1>&6
9675 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9676 else
9677 echo "$ac_t""$MGL_ROOT" 1>&6
9678 fi
9679
9680 MGL_OS=linux/gcc/glibc
9681 MGL_LIB_TYPE=""
9682
9683 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9684 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9685 MGL_LIB_TYPE=debug
9686 fi
9687 fi
9688 if test "x$MGL_LIB_TYPE" = x ; then
9689 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9690 MGL_LIB_TYPE=release
9691 else
9692 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9693 fi
9694 fi
9695
9696 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9697 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9698
9699 AFMINSTALL=afminstall
9700 TOOLKIT=MGL
9701 GUIDIST=MGL_DIST
9702 fi
9703
9704 if test "$wxUSE_WINE" = 1; then
9705 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
9706 echo "configure:9707: checking for WINE includes" >&5
9707
9708 ac_find_includes=
9709 for ac_dir in $SEARCH_INCLUDE;
9710 do
9711 if test -f "$ac_dir/windows.h"; then
9712 ac_find_includes=$ac_dir
9713 break
9714 fi
9715 done
9716
9717 if test "$ac_find_includes" != "" ; then
9718 echo "$ac_t""found $ac_find_includes" 1>&6
9719 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9720 else
9721 echo "$ac_t""no" 1>&6
9722 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9723 fi
9724
9725 XPM_LINK=""
9726 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9727 echo "configure:9728: checking for Xpm library" >&5
9728
9729 ac_find_libraries=
9730 for ac_dir in $SEARCH_LIB;
9731 do
9732 for ac_extension in a so sl dylib; do
9733 if test -f "$ac_dir/libXpm.$ac_extension"; then
9734 ac_find_libraries=$ac_dir
9735 break 2
9736 fi
9737 done
9738 done
9739
9740 if test "$ac_find_libraries" != "" ; then
9741 GUI_TK_LIBRARY="-L$ac_find_libraries"
9742 XPM_LINK="-lXpm"
9743 cat >> confdefs.h <<\EOF
9744 #define wxHAVE_LIB_XPM 1
9745 EOF
9746
9747 echo "$ac_t""found at $ac_find_libraries" 1>&6
9748 else
9749 echo "$ac_t""no" 1>&6
9750 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9751 fi
9752
9753 MESA_LINK=""
9754 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9755 echo "configure:9756: checking for Mesa library" >&5
9756
9757 ac_find_libraries=
9758 for ac_dir in $SEARCH_LIB;
9759 do
9760 for ac_extension in a so sl dylib; do
9761 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9762 ac_find_libraries=$ac_dir
9763 break 2
9764 fi
9765 done
9766 done
9767
9768 if test "$ac_find_libraries" != "" ; then
9769 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9770 MESA_LINK="-lMesaGL"
9771 echo "$ac_t""found at $ac_find_libraries" 1>&6
9772 else
9773 { echo "configure: error: no" 1>&2; exit 1; }
9774 fi
9775
9776 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9777 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9778 WXWINE=1
9779 TOOLKIT=MSW
9780 GUIDIST=MSW_DIST
9781 fi
9782
9783
9784 # If we find X, set shell vars x_includes and x_libraries to the
9785 # paths, otherwise set no_x=yes.
9786 # Uses ac_ vars as temps to allow command line to override cache and checks.
9787 # --without-x overrides everything else, but does not touch the cache.
9788 echo $ac_n "checking for X""... $ac_c" 1>&6
9789 echo "configure:9790: checking for X" >&5
9790
9791 # Check whether --with-x or --without-x was given.
9792 if test "${with_x+set}" = set; then
9793 withval="$with_x"
9794 :
9795 fi
9796
9797 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9798 if test "x$with_x" = xno; then
9799 # The user explicitly disabled X.
9800 have_x=disabled
9801 else
9802 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9803 # Both variables are already set.
9804 have_x=yes
9805 else
9806 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9807 echo $ac_n "(cached) $ac_c" 1>&6
9808 else
9809 # One or both of the vars are not set, and there is no cached value.
9810 ac_x_includes=NO ac_x_libraries=NO
9811 rm -fr conftestdir
9812 if mkdir conftestdir; then
9813 cd conftestdir
9814 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9815 cat > Imakefile <<'EOF'
9816 acfindx:
9817 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9818 EOF
9819 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9820 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9821 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9822 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9823 for ac_extension in a so sl; do
9824 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9825 test -f $ac_im_libdir/libX11.$ac_extension; then
9826 ac_im_usrlibdir=$ac_im_libdir; break
9827 fi
9828 done
9829 # Screen out bogus values from the imake configuration. They are
9830 # bogus both because they are the default anyway, and because
9831 # using them would break gcc on systems where it needs fixed includes.
9832 case "$ac_im_incroot" in
9833 /usr/include) ;;
9834 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9835 esac
9836 case "$ac_im_usrlibdir" in
9837 /usr/lib | /lib) ;;
9838 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9839 esac
9840 fi
9841 cd ..
9842 rm -fr conftestdir
9843 fi
9844
9845 if test "$ac_x_includes" = NO; then
9846 # Guess where to find include files, by looking for this one X11 .h file.
9847 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9848
9849 # First, try using that file with no special directory specified.
9850 cat > conftest.$ac_ext <<EOF
9851 #line 9852 "configure"
9852 #include "confdefs.h"
9853 #include <$x_direct_test_include>
9854 EOF
9855 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9856 { (eval echo configure:9857: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9857 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9858 if test -z "$ac_err"; then
9859 rm -rf conftest*
9860 # We can compile using X headers with no special include directory.
9861 ac_x_includes=
9862 else
9863 echo "$ac_err" >&5
9864 echo "configure: failed program was:" >&5
9865 cat conftest.$ac_ext >&5
9866 rm -rf conftest*
9867 # Look for the header file in a standard set of common directories.
9868 # Check X11 before X11Rn because it is often a symlink to the current release.
9869 for ac_dir in \
9870 /usr/X11/include \
9871 /usr/X11R6/include \
9872 /usr/X11R5/include \
9873 /usr/X11R4/include \
9874 \
9875 /usr/include/X11 \
9876 /usr/include/X11R6 \
9877 /usr/include/X11R5 \
9878 /usr/include/X11R4 \
9879 \
9880 /usr/local/X11/include \
9881 /usr/local/X11R6/include \
9882 /usr/local/X11R5/include \
9883 /usr/local/X11R4/include \
9884 \
9885 /usr/local/include/X11 \
9886 /usr/local/include/X11R6 \
9887 /usr/local/include/X11R5 \
9888 /usr/local/include/X11R4 \
9889 \
9890 /usr/X386/include \
9891 /usr/x386/include \
9892 /usr/XFree86/include/X11 \
9893 \
9894 /usr/include \
9895 /usr/local/include \
9896 /usr/unsupported/include \
9897 /usr/athena/include \
9898 /usr/local/x11r5/include \
9899 /usr/lpp/Xamples/include \
9900 \
9901 /usr/openwin/include \
9902 /usr/openwin/share/include \
9903 ; \
9904 do
9905 if test -r "$ac_dir/$x_direct_test_include"; then
9906 ac_x_includes=$ac_dir
9907 break
9908 fi
9909 done
9910 fi
9911 rm -f conftest*
9912 fi # $ac_x_includes = NO
9913
9914 if test "$ac_x_libraries" = NO; then
9915 # Check for the libraries.
9916
9917 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9918 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9919
9920 # See if we find them without any special options.
9921 # Don't add to $LIBS permanently.
9922 ac_save_LIBS="$LIBS"
9923 LIBS="-l$x_direct_test_library $LIBS"
9924 cat > conftest.$ac_ext <<EOF
9925 #line 9926 "configure"
9926 #include "confdefs.h"
9927
9928 int main() {
9929 ${x_direct_test_function}()
9930 ; return 0; }
9931 EOF
9932 if { (eval echo configure:9933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9933 rm -rf conftest*
9934 LIBS="$ac_save_LIBS"
9935 # We can link X programs with no special library path.
9936 ac_x_libraries=
9937 else
9938 echo "configure: failed program was:" >&5
9939 cat conftest.$ac_ext >&5
9940 rm -rf conftest*
9941 LIBS="$ac_save_LIBS"
9942 # First see if replacing the include by lib works.
9943 # Check X11 before X11Rn because it is often a symlink to the current release.
9944 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9945 /usr/X11/lib \
9946 /usr/X11R6/lib \
9947 /usr/X11R5/lib \
9948 /usr/X11R4/lib \
9949 \
9950 /usr/lib/X11 \
9951 /usr/lib/X11R6 \
9952 /usr/lib/X11R5 \
9953 /usr/lib/X11R4 \
9954 \
9955 /usr/local/X11/lib \
9956 /usr/local/X11R6/lib \
9957 /usr/local/X11R5/lib \
9958 /usr/local/X11R4/lib \
9959 \
9960 /usr/local/lib/X11 \
9961 /usr/local/lib/X11R6 \
9962 /usr/local/lib/X11R5 \
9963 /usr/local/lib/X11R4 \
9964 \
9965 /usr/X386/lib \
9966 /usr/x386/lib \
9967 /usr/XFree86/lib/X11 \
9968 \
9969 /usr/lib \
9970 /usr/local/lib \
9971 /usr/unsupported/lib \
9972 /usr/athena/lib \
9973 /usr/local/x11r5/lib \
9974 /usr/lpp/Xamples/lib \
9975 /lib/usr/lib/X11 \
9976 \
9977 /usr/openwin/lib \
9978 /usr/openwin/share/lib \
9979 ; \
9980 do
9981 for ac_extension in a so sl; do
9982 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
9983 ac_x_libraries=$ac_dir
9984 break 2
9985 fi
9986 done
9987 done
9988 fi
9989 rm -f conftest*
9990 fi # $ac_x_libraries = NO
9991
9992 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
9993 # Didn't find X anywhere. Cache the known absence of X.
9994 ac_cv_have_x="have_x=no"
9995 else
9996 # Record where we found X for the cache.
9997 ac_cv_have_x="have_x=yes \
9998 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9999 fi
10000 fi
10001 fi
10002 eval "$ac_cv_have_x"
10003 fi # $with_x != no
10004
10005 if test "$have_x" != yes; then
10006 echo "$ac_t""$have_x" 1>&6
10007 no_x=yes
10008 else
10009 # If each of the values was on the command line, it overrides each guess.
10010 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10011 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10012 # Update the cache value to reflect the command line values.
10013 ac_cv_have_x="have_x=yes \
10014 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
10015 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
10016 fi
10017
10018 if test "$no_x" = yes; then
10019 # Not all programs may use this symbol, but it does not hurt to define it.
10020 cat >> confdefs.h <<\EOF
10021 #define X_DISPLAY_MISSING 1
10022 EOF
10023
10024 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
10025 else
10026 if test -n "$x_includes"; then
10027 X_CFLAGS="$X_CFLAGS -I$x_includes"
10028 fi
10029
10030 # It would also be nice to do this for all -L options, not just this one.
10031 if test -n "$x_libraries"; then
10032 X_LIBS="$X_LIBS -L$x_libraries"
10033 # For Solaris; some versions of Sun CC require a space after -R and
10034 # others require no space. Words are not sufficient . . . .
10035 case "`(uname -sr) 2>/dev/null`" in
10036 "SunOS 5"*)
10037 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
10038 echo "configure:10039: checking whether -R must be followed by a space" >&5
10039 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
10040 cat > conftest.$ac_ext <<EOF
10041 #line 10042 "configure"
10042 #include "confdefs.h"
10043
10044 int main() {
10045
10046 ; return 0; }
10047 EOF
10048 if { (eval echo configure:10049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10049 rm -rf conftest*
10050 ac_R_nospace=yes
10051 else
10052 echo "configure: failed program was:" >&5
10053 cat conftest.$ac_ext >&5
10054 rm -rf conftest*
10055 ac_R_nospace=no
10056 fi
10057 rm -f conftest*
10058 if test $ac_R_nospace = yes; then
10059 echo "$ac_t""no" 1>&6
10060 X_LIBS="$X_LIBS -R$x_libraries"
10061 else
10062 LIBS="$ac_xsave_LIBS -R $x_libraries"
10063 cat > conftest.$ac_ext <<EOF
10064 #line 10065 "configure"
10065 #include "confdefs.h"
10066
10067 int main() {
10068
10069 ; return 0; }
10070 EOF
10071 if { (eval echo configure:10072: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10072 rm -rf conftest*
10073 ac_R_space=yes
10074 else
10075 echo "configure: failed program was:" >&5
10076 cat conftest.$ac_ext >&5
10077 rm -rf conftest*
10078 ac_R_space=no
10079 fi
10080 rm -f conftest*
10081 if test $ac_R_space = yes; then
10082 echo "$ac_t""yes" 1>&6
10083 X_LIBS="$X_LIBS -R $x_libraries"
10084 else
10085 echo "$ac_t""neither works" 1>&6
10086 fi
10087 fi
10088 LIBS="$ac_xsave_LIBS"
10089 esac
10090 fi
10091
10092 # Check for system-dependent libraries X programs must link with.
10093 # Do this before checking for the system-independent R6 libraries
10094 # (-lICE), since we may need -lsocket or whatever for X linking.
10095
10096 if test "$ISC" = yes; then
10097 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
10098 else
10099 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
10100 # libraries were built with DECnet support. And karl@cs.umb.edu says
10101 # the Alpha needs dnet_stub (dnet does not exist).
10102 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
10103 echo "configure:10104: checking for dnet_ntoa in -ldnet" >&5
10104 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10105 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10106 echo $ac_n "(cached) $ac_c" 1>&6
10107 else
10108 ac_save_LIBS="$LIBS"
10109 LIBS="-ldnet $LIBS"
10110 cat > conftest.$ac_ext <<EOF
10111 #line 10112 "configure"
10112 #include "confdefs.h"
10113 /* Override any gcc2 internal prototype to avoid an error. */
10114 /* We use char because int might match the return type of a gcc2
10115 builtin and then its argument prototype would still apply. */
10116 char dnet_ntoa();
10117
10118 int main() {
10119 dnet_ntoa()
10120 ; return 0; }
10121 EOF
10122 if { (eval echo configure:10123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10123 rm -rf conftest*
10124 eval "ac_cv_lib_$ac_lib_var=yes"
10125 else
10126 echo "configure: failed program was:" >&5
10127 cat conftest.$ac_ext >&5
10128 rm -rf conftest*
10129 eval "ac_cv_lib_$ac_lib_var=no"
10130 fi
10131 rm -f conftest*
10132 LIBS="$ac_save_LIBS"
10133
10134 fi
10135 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10136 echo "$ac_t""yes" 1>&6
10137 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
10138 else
10139 echo "$ac_t""no" 1>&6
10140 fi
10141
10142 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
10143 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
10144 echo "configure:10145: checking for dnet_ntoa in -ldnet_stub" >&5
10145 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
10146 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10147 echo $ac_n "(cached) $ac_c" 1>&6
10148 else
10149 ac_save_LIBS="$LIBS"
10150 LIBS="-ldnet_stub $LIBS"
10151 cat > conftest.$ac_ext <<EOF
10152 #line 10153 "configure"
10153 #include "confdefs.h"
10154 /* Override any gcc2 internal prototype to avoid an error. */
10155 /* We use char because int might match the return type of a gcc2
10156 builtin and then its argument prototype would still apply. */
10157 char dnet_ntoa();
10158
10159 int main() {
10160 dnet_ntoa()
10161 ; return 0; }
10162 EOF
10163 if { (eval echo configure:10164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10164 rm -rf conftest*
10165 eval "ac_cv_lib_$ac_lib_var=yes"
10166 else
10167 echo "configure: failed program was:" >&5
10168 cat conftest.$ac_ext >&5
10169 rm -rf conftest*
10170 eval "ac_cv_lib_$ac_lib_var=no"
10171 fi
10172 rm -f conftest*
10173 LIBS="$ac_save_LIBS"
10174
10175 fi
10176 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10177 echo "$ac_t""yes" 1>&6
10178 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10179 else
10180 echo "$ac_t""no" 1>&6
10181 fi
10182
10183 fi
10184
10185 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10186 # to get the SysV transport functions.
10187 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10188 # needs -lnsl.
10189 # The nsl library prevents programs from opening the X display
10190 # on Irix 5.2, according to dickey@clark.net.
10191 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
10192 echo "configure:10193: checking for gethostbyname" >&5
10193 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10194 echo $ac_n "(cached) $ac_c" 1>&6
10195 else
10196 cat > conftest.$ac_ext <<EOF
10197 #line 10198 "configure"
10198 #include "confdefs.h"
10199 /* System header to define __stub macros and hopefully few prototypes,
10200 which can conflict with char gethostbyname(); below. */
10201 #include <assert.h>
10202 /* Override any gcc2 internal prototype to avoid an error. */
10203 /* We use char because int might match the return type of a gcc2
10204 builtin and then its argument prototype would still apply. */
10205 char gethostbyname();
10206
10207 int main() {
10208
10209 /* The GNU C library defines this for functions which it implements
10210 to always fail with ENOSYS. Some functions are actually named
10211 something starting with __ and the normal name is an alias. */
10212 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10213 choke me
10214 #else
10215 gethostbyname();
10216 #endif
10217
10218 ; return 0; }
10219 EOF
10220 if { (eval echo configure:10221: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10221 rm -rf conftest*
10222 eval "ac_cv_func_gethostbyname=yes"
10223 else
10224 echo "configure: failed program was:" >&5
10225 cat conftest.$ac_ext >&5
10226 rm -rf conftest*
10227 eval "ac_cv_func_gethostbyname=no"
10228 fi
10229 rm -f conftest*
10230 fi
10231
10232 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10233 echo "$ac_t""yes" 1>&6
10234 :
10235 else
10236 echo "$ac_t""no" 1>&6
10237 fi
10238
10239 if test $ac_cv_func_gethostbyname = no; then
10240 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
10241 echo "configure:10242: checking for gethostbyname in -lnsl" >&5
10242 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10244 echo $ac_n "(cached) $ac_c" 1>&6
10245 else
10246 ac_save_LIBS="$LIBS"
10247 LIBS="-lnsl $LIBS"
10248 cat > conftest.$ac_ext <<EOF
10249 #line 10250 "configure"
10250 #include "confdefs.h"
10251 /* Override any gcc2 internal prototype to avoid an error. */
10252 /* We use char because int might match the return type of a gcc2
10253 builtin and then its argument prototype would still apply. */
10254 char gethostbyname();
10255
10256 int main() {
10257 gethostbyname()
10258 ; return 0; }
10259 EOF
10260 if { (eval echo configure:10261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10261 rm -rf conftest*
10262 eval "ac_cv_lib_$ac_lib_var=yes"
10263 else
10264 echo "configure: failed program was:" >&5
10265 cat conftest.$ac_ext >&5
10266 rm -rf conftest*
10267 eval "ac_cv_lib_$ac_lib_var=no"
10268 fi
10269 rm -f conftest*
10270 LIBS="$ac_save_LIBS"
10271
10272 fi
10273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10274 echo "$ac_t""yes" 1>&6
10275 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10276 else
10277 echo "$ac_t""no" 1>&6
10278 fi
10279
10280 fi
10281
10282 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10283 # socket/setsockopt and other routines are undefined under SCO ODT
10284 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10285 # on later versions), says simon@lia.di.epfl.ch: it contains
10286 # gethostby* variants that don't use the nameserver (or something).
10287 # -lsocket must be given before -lnsl if both are needed.
10288 # We assume that if connect needs -lnsl, so does gethostbyname.
10289 echo $ac_n "checking for connect""... $ac_c" 1>&6
10290 echo "configure:10291: checking for connect" >&5
10291 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10292 echo $ac_n "(cached) $ac_c" 1>&6
10293 else
10294 cat > conftest.$ac_ext <<EOF
10295 #line 10296 "configure"
10296 #include "confdefs.h"
10297 /* System header to define __stub macros and hopefully few prototypes,
10298 which can conflict with char connect(); below. */
10299 #include <assert.h>
10300 /* Override any gcc2 internal prototype to avoid an error. */
10301 /* We use char because int might match the return type of a gcc2
10302 builtin and then its argument prototype would still apply. */
10303 char connect();
10304
10305 int main() {
10306
10307 /* The GNU C library defines this for functions which it implements
10308 to always fail with ENOSYS. Some functions are actually named
10309 something starting with __ and the normal name is an alias. */
10310 #if defined (__stub_connect) || defined (__stub___connect)
10311 choke me
10312 #else
10313 connect();
10314 #endif
10315
10316 ; return 0; }
10317 EOF
10318 if { (eval echo configure:10319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10319 rm -rf conftest*
10320 eval "ac_cv_func_connect=yes"
10321 else
10322 echo "configure: failed program was:" >&5
10323 cat conftest.$ac_ext >&5
10324 rm -rf conftest*
10325 eval "ac_cv_func_connect=no"
10326 fi
10327 rm -f conftest*
10328 fi
10329
10330 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10331 echo "$ac_t""yes" 1>&6
10332 :
10333 else
10334 echo "$ac_t""no" 1>&6
10335 fi
10336
10337 if test $ac_cv_func_connect = no; then
10338 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
10339 echo "configure:10340: checking for connect in -lsocket" >&5
10340 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10341 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10342 echo $ac_n "(cached) $ac_c" 1>&6
10343 else
10344 ac_save_LIBS="$LIBS"
10345 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10346 cat > conftest.$ac_ext <<EOF
10347 #line 10348 "configure"
10348 #include "confdefs.h"
10349 /* Override any gcc2 internal prototype to avoid an error. */
10350 /* We use char because int might match the return type of a gcc2
10351 builtin and then its argument prototype would still apply. */
10352 char connect();
10353
10354 int main() {
10355 connect()
10356 ; return 0; }
10357 EOF
10358 if { (eval echo configure:10359: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10359 rm -rf conftest*
10360 eval "ac_cv_lib_$ac_lib_var=yes"
10361 else
10362 echo "configure: failed program was:" >&5
10363 cat conftest.$ac_ext >&5
10364 rm -rf conftest*
10365 eval "ac_cv_lib_$ac_lib_var=no"
10366 fi
10367 rm -f conftest*
10368 LIBS="$ac_save_LIBS"
10369
10370 fi
10371 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10372 echo "$ac_t""yes" 1>&6
10373 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10374 else
10375 echo "$ac_t""no" 1>&6
10376 fi
10377
10378 fi
10379
10380 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10381 echo $ac_n "checking for remove""... $ac_c" 1>&6
10382 echo "configure:10383: checking for remove" >&5
10383 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10384 echo $ac_n "(cached) $ac_c" 1>&6
10385 else
10386 cat > conftest.$ac_ext <<EOF
10387 #line 10388 "configure"
10388 #include "confdefs.h"
10389 /* System header to define __stub macros and hopefully few prototypes,
10390 which can conflict with char remove(); below. */
10391 #include <assert.h>
10392 /* Override any gcc2 internal prototype to avoid an error. */
10393 /* We use char because int might match the return type of a gcc2
10394 builtin and then its argument prototype would still apply. */
10395 char remove();
10396
10397 int main() {
10398
10399 /* The GNU C library defines this for functions which it implements
10400 to always fail with ENOSYS. Some functions are actually named
10401 something starting with __ and the normal name is an alias. */
10402 #if defined (__stub_remove) || defined (__stub___remove)
10403 choke me
10404 #else
10405 remove();
10406 #endif
10407
10408 ; return 0; }
10409 EOF
10410 if { (eval echo configure:10411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10411 rm -rf conftest*
10412 eval "ac_cv_func_remove=yes"
10413 else
10414 echo "configure: failed program was:" >&5
10415 cat conftest.$ac_ext >&5
10416 rm -rf conftest*
10417 eval "ac_cv_func_remove=no"
10418 fi
10419 rm -f conftest*
10420 fi
10421
10422 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10423 echo "$ac_t""yes" 1>&6
10424 :
10425 else
10426 echo "$ac_t""no" 1>&6
10427 fi
10428
10429 if test $ac_cv_func_remove = no; then
10430 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
10431 echo "configure:10432: checking for remove in -lposix" >&5
10432 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10433 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10434 echo $ac_n "(cached) $ac_c" 1>&6
10435 else
10436 ac_save_LIBS="$LIBS"
10437 LIBS="-lposix $LIBS"
10438 cat > conftest.$ac_ext <<EOF
10439 #line 10440 "configure"
10440 #include "confdefs.h"
10441 /* Override any gcc2 internal prototype to avoid an error. */
10442 /* We use char because int might match the return type of a gcc2
10443 builtin and then its argument prototype would still apply. */
10444 char remove();
10445
10446 int main() {
10447 remove()
10448 ; return 0; }
10449 EOF
10450 if { (eval echo configure:10451: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10451 rm -rf conftest*
10452 eval "ac_cv_lib_$ac_lib_var=yes"
10453 else
10454 echo "configure: failed program was:" >&5
10455 cat conftest.$ac_ext >&5
10456 rm -rf conftest*
10457 eval "ac_cv_lib_$ac_lib_var=no"
10458 fi
10459 rm -f conftest*
10460 LIBS="$ac_save_LIBS"
10461
10462 fi
10463 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10464 echo "$ac_t""yes" 1>&6
10465 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10466 else
10467 echo "$ac_t""no" 1>&6
10468 fi
10469
10470 fi
10471
10472 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10473 echo $ac_n "checking for shmat""... $ac_c" 1>&6
10474 echo "configure:10475: checking for shmat" >&5
10475 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10476 echo $ac_n "(cached) $ac_c" 1>&6
10477 else
10478 cat > conftest.$ac_ext <<EOF
10479 #line 10480 "configure"
10480 #include "confdefs.h"
10481 /* System header to define __stub macros and hopefully few prototypes,
10482 which can conflict with char shmat(); below. */
10483 #include <assert.h>
10484 /* Override any gcc2 internal prototype to avoid an error. */
10485 /* We use char because int might match the return type of a gcc2
10486 builtin and then its argument prototype would still apply. */
10487 char shmat();
10488
10489 int main() {
10490
10491 /* The GNU C library defines this for functions which it implements
10492 to always fail with ENOSYS. Some functions are actually named
10493 something starting with __ and the normal name is an alias. */
10494 #if defined (__stub_shmat) || defined (__stub___shmat)
10495 choke me
10496 #else
10497 shmat();
10498 #endif
10499
10500 ; return 0; }
10501 EOF
10502 if { (eval echo configure:10503: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10503 rm -rf conftest*
10504 eval "ac_cv_func_shmat=yes"
10505 else
10506 echo "configure: failed program was:" >&5
10507 cat conftest.$ac_ext >&5
10508 rm -rf conftest*
10509 eval "ac_cv_func_shmat=no"
10510 fi
10511 rm -f conftest*
10512 fi
10513
10514 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10515 echo "$ac_t""yes" 1>&6
10516 :
10517 else
10518 echo "$ac_t""no" 1>&6
10519 fi
10520
10521 if test $ac_cv_func_shmat = no; then
10522 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
10523 echo "configure:10524: checking for shmat in -lipc" >&5
10524 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10525 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10526 echo $ac_n "(cached) $ac_c" 1>&6
10527 else
10528 ac_save_LIBS="$LIBS"
10529 LIBS="-lipc $LIBS"
10530 cat > conftest.$ac_ext <<EOF
10531 #line 10532 "configure"
10532 #include "confdefs.h"
10533 /* Override any gcc2 internal prototype to avoid an error. */
10534 /* We use char because int might match the return type of a gcc2
10535 builtin and then its argument prototype would still apply. */
10536 char shmat();
10537
10538 int main() {
10539 shmat()
10540 ; return 0; }
10541 EOF
10542 if { (eval echo configure:10543: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10543 rm -rf conftest*
10544 eval "ac_cv_lib_$ac_lib_var=yes"
10545 else
10546 echo "configure: failed program was:" >&5
10547 cat conftest.$ac_ext >&5
10548 rm -rf conftest*
10549 eval "ac_cv_lib_$ac_lib_var=no"
10550 fi
10551 rm -f conftest*
10552 LIBS="$ac_save_LIBS"
10553
10554 fi
10555 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10556 echo "$ac_t""yes" 1>&6
10557 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10558 else
10559 echo "$ac_t""no" 1>&6
10560 fi
10561
10562 fi
10563 fi
10564
10565 # Check for libraries that X11R6 Xt/Xaw programs need.
10566 ac_save_LDFLAGS="$LDFLAGS"
10567 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10568 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10569 # check for ICE first), but we must link in the order -lSM -lICE or
10570 # we get undefined symbols. So assume we have SM if we have ICE.
10571 # These have to be linked with before -lX11, unlike the other
10572 # libraries we check for below, so use a different variable.
10573 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10574 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
10575 echo "configure:10576: checking for IceConnectionNumber in -lICE" >&5
10576 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10577 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10578 echo $ac_n "(cached) $ac_c" 1>&6
10579 else
10580 ac_save_LIBS="$LIBS"
10581 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10582 cat > conftest.$ac_ext <<EOF
10583 #line 10584 "configure"
10584 #include "confdefs.h"
10585 /* Override any gcc2 internal prototype to avoid an error. */
10586 /* We use char because int might match the return type of a gcc2
10587 builtin and then its argument prototype would still apply. */
10588 char IceConnectionNumber();
10589
10590 int main() {
10591 IceConnectionNumber()
10592 ; return 0; }
10593 EOF
10594 if { (eval echo configure:10595: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10595 rm -rf conftest*
10596 eval "ac_cv_lib_$ac_lib_var=yes"
10597 else
10598 echo "configure: failed program was:" >&5
10599 cat conftest.$ac_ext >&5
10600 rm -rf conftest*
10601 eval "ac_cv_lib_$ac_lib_var=no"
10602 fi
10603 rm -f conftest*
10604 LIBS="$ac_save_LIBS"
10605
10606 fi
10607 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10608 echo "$ac_t""yes" 1>&6
10609 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10610 else
10611 echo "$ac_t""no" 1>&6
10612 fi
10613
10614 LDFLAGS="$ac_save_LDFLAGS"
10615
10616 fi
10617
10618 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10619 LDFLAGS="$LDFLAGS $X_LIBS"
10620
10621 if test "$wxUSE_MOTIF" = 1; then
10622 if test "$no_x" = "yes"; then
10623 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10624 fi
10625
10626 GUI_TK_LIBRARY="$X_LIBS"
10627 TOOLKIT_INCLUDE="$X_CFLAGS"
10628
10629 AFMINSTALL=afminstall
10630
10631
10632 COMPILED_X_PROGRAM=0
10633
10634 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
10635 echo "configure:10636: checking for Motif/Lesstif headers" >&5
10636
10637 ac_find_includes=
10638 for ac_dir in $SEARCH_INCLUDE;
10639 do
10640 if test -f "$ac_dir/Xm/Xm.h"; then
10641 ac_find_includes=$ac_dir
10642 break
10643 fi
10644 done
10645
10646 if test "$ac_find_includes" != "" ; then
10647 echo "$ac_t""found $ac_find_includes" 1>&6
10648 else
10649 cat > conftest.$ac_ext <<EOF
10650 #line 10651 "configure"
10651 #include "confdefs.h"
10652
10653 #include <Xm/Xm.h>
10654
10655 int main() {
10656
10657 int version;
10658
10659 version = xmUseVersion;
10660
10661 ; return 0; }
10662 EOF
10663 if { (eval echo configure:10664: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10664 rm -rf conftest*
10665
10666 echo "$ac_t""found in default search path" 1>&6
10667 COMPILED_X_PROGRAM=1
10668
10669 else
10670 echo "configure: failed program was:" >&5
10671 cat conftest.$ac_ext >&5
10672 rm -rf conftest*
10673
10674 echo "$ac_t""no" 1>&6
10675 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10676
10677
10678 fi
10679 rm -f conftest*
10680 fi
10681
10682 if test "$COMPILED_X_PROGRAM" = 0; then
10683 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10684 echo "configure:10685: checking for Motif/Lesstif library" >&5
10685
10686 ac_find_libraries=
10687 for ac_dir in $SEARCH_LIB;
10688 do
10689 for ac_extension in a so sl dylib; do
10690 if test -f "$ac_dir/libXm.$ac_extension"; then
10691 ac_find_libraries=$ac_dir
10692 break 2
10693 fi
10694 done
10695 done
10696
10697 if test "$ac_find_libraries" != "" ; then
10698
10699 ac_path_to_include=$ac_find_includes
10700 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10701 result=$?
10702 if test $result = 0; then
10703 ac_path_to_include=""
10704 else
10705 ac_path_to_include="-I$ac_find_includes"
10706 fi
10707
10708
10709 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10710 result=$?
10711 if test $result = 0; then
10712 ac_path_to_link=""
10713 else
10714 ac_path_to_link="-L$ac_find_libraries"
10715 fi
10716
10717
10718 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10719 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10720 echo "$ac_t""found at $ac_find_libraries" 1>&6
10721 else
10722 cat > conftest.$ac_ext <<EOF
10723 #line 10724 "configure"
10724 #include "confdefs.h"
10725
10726 #include <Xm/Xm.h>
10727
10728 int main() {
10729
10730 int version;
10731
10732 version = xmUseVersion;
10733
10734 ; return 0; }
10735 EOF
10736 if { (eval echo configure:10737: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10737 rm -rf conftest*
10738
10739 echo "$ac_t""found in default search path" 1>&6
10740 COMPILED_X_PROGRAM=1
10741
10742 else
10743 echo "configure: failed program was:" >&5
10744 cat conftest.$ac_ext >&5
10745 rm -rf conftest*
10746
10747 echo "$ac_t""no" 1>&6
10748 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10749
10750
10751 fi
10752 rm -f conftest*
10753 fi
10754 fi
10755
10756
10757 XPM_LINK=""
10758 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10759 echo "configure:10760: checking for Xpm library" >&5
10760
10761 ac_find_libraries=
10762 for ac_dir in $SEARCH_LIB;
10763 do
10764 for ac_extension in a so sl dylib; do
10765 if test -f "$ac_dir/libXpm.$ac_extension"; then
10766 ac_find_libraries=$ac_dir
10767 break 2
10768 fi
10769 done
10770 done
10771
10772 if test "$ac_find_libraries" != "" ; then
10773
10774 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10775 result=$?
10776 if test $result = 0; then
10777 ac_path_to_link=""
10778 else
10779 ac_path_to_link="-L$ac_find_libraries"
10780 fi
10781
10782 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10783 XPM_LINK="-lXpm "
10784 cat >> confdefs.h <<\EOF
10785 #define wxHAVE_LIB_XPM 1
10786 EOF
10787
10788 echo "$ac_t""found at $ac_find_libraries" 1>&6
10789 else
10790 cat > conftest.$ac_ext <<EOF
10791 #line 10792 "configure"
10792 #include "confdefs.h"
10793
10794 #include <X11/xpm.h>
10795
10796 int main() {
10797
10798 int version;
10799
10800 version = XpmLibraryVersion();
10801
10802 ; return 0; }
10803 EOF
10804 if { (eval echo configure:10805: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10805 rm -rf conftest*
10806
10807 XPM_LINK="-lXpm "
10808 cat >> confdefs.h <<\EOF
10809 #define wxHAVE_LIB_XPM 1
10810 EOF
10811
10812 echo "$ac_t""found in default search path" 1>&6
10813 COMPILED_X_PROGRAM=0
10814
10815 else
10816 echo "configure: failed program was:" >&5
10817 cat conftest.$ac_ext >&5
10818 rm -rf conftest*
10819
10820 echo "$ac_t""no" 1>&6
10821 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10822
10823
10824 fi
10825 rm -f conftest*
10826 fi
10827
10828 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10829 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10830 TOOLKIT=MOTIF
10831 GUIDIST=MOTIF_DIST
10832 fi
10833
10834 if test "$wxUSE_MAC" = 1; then
10835 TOOLKIT=MAC
10836 GUIDIST=MACX_DIST
10837 fi
10838
10839 if test "$wxUSE_PM" = 1; then
10840 TOOLKIT=PM
10841 GUIDIST=GTK_DIST
10842 fi
10843
10844 if test "$TOOLKIT" != "PM" ; then
10845 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10846 else
10847 TOOLKIT_DIR="os2"
10848 fi
10849
10850 TOOLKIT_NAME="${TOOLKIT_DIR}"
10851
10852 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10853
10854 if test "$TOOLKIT_NAME" = "motif"; then
10855 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10856 fi
10857
10858 if test "$wxUSE_UNIVERSAL" = "yes"; then
10859 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10860 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10861 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10862 SETUPH_DIR="univ"
10863 else
10864 SETUPH_DIR="${TOOLKIT_DIR}"
10865 fi
10866
10867 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10868 TOOLKIT_NAME="${TOOLKIT_NAME}d"
10869 fi
10870
10871 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10872 if test "$wxUSE_UNIVERSAL" = "yes"; then
10873 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10874 fi
10875
10876 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10877
10878 if test "$wxUSE_UNIVERSAL" = "yes"; then
10879 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10880 else
10881 ALL_OBJECTS="\$(GUIOBJS)"
10882 fi
10883
10884 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10885
10886 if test "$TOOLKIT" != "MSW"; then
10887 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10888 fi
10889
10890 if test "$wxUSE_HTML" = "yes"; then
10891 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10892 fi
10893
10894 if test "$TOOLKIT" != "MSW"; then
10895 if test "$wxUSE_ODBC" = "yes" ; then
10896 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10897 fi
10898 fi
10899
10900 if test "x$REGEX_INCLUDE" != "x" ; then
10901 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10902 fi
10903
10904 if test "$wxUSE_LIBJPEG" = "yes" ; then
10905 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10906 fi
10907 if test "$wxUSE_LIBTIFF" = "yes" ; then
10908 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10909 fi
10910 if test "$wxUSE_LIBPNG" = "yes" ; then
10911 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10912 fi
10913 if test "$wxUSE_ZLIB" = "yes" ; then
10914 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10915 fi
10916 if test "$wxUSE_FREETYPE" = "yes" ; then
10917 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10918 fi
10919
10920 if test "$wxUSE_UNIVERSAL" = "yes"; then
10921 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10922 else
10923 ALL_DEPFILES="\$(GUIDEPS)"
10924 fi
10925
10926 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10927
10928 if test "$TOOLKIT" != "MSW"; then
10929 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10930 fi
10931
10932 if test "$wxUSE_HTML" = "yes"; then
10933 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10934 fi
10935
10936 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
10937 if test "$wxUSE_UNIVERSAL" = "yes"; then
10938 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10939 fi
10940 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10941 RPM_SPEC="wx\$(TOOLKIT).spec"
10942
10943 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10944 DISTDIR="wx\$(TOOLKIT)"
10945 else
10946 USE_GUI=0
10947
10948 TOOLKIT_DIR="base"
10949
10950 TOOLKIT_VPATH="."
10951
10952 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10953 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10954 else
10955 TOOLKIT_NAME="${TOOLKIT_DIR}"
10956 fi
10957
10958 TOOLKIT_DEF="-D__WXBASE__"
10959
10960 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10961 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10962
10963 if test "x$REGEX_INCLUDE" != "x" ; then
10964 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10965 fi
10966
10967 if test "$wxUSE_ZLIB" = "yes" ; then
10968 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10969 fi
10970
10971 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10972
10973 PORT_FILES="\${top_srcdir}/src/files.lst"
10974 RPM_FILES="src/rpmfiles.lst"
10975 RPM_SPEC="wxBase.spec"
10976
10977 GUIDIST="BASE_DIST"
10978 DISTDIR="wxBase"
10979 fi
10980
10981 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
10982 WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10983
10984 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
10985 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10986
10987 case "${host}" in
10988 *-*-mingw32* )
10989 WX_LIBRARY_NAME_SHARED="wx${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}_${WX_RELEASE_NUMBER}.dll"
10990 ;;
10991 * )
10992 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10993 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10994 ;;
10995 esac
10996
10997 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10998 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10999 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
11000 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
11001 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
11002 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
11003
11004 SHARED_LD=
11005 PIC_FLAG=
11006 WX_ALL=
11007 WX_ALL_INSTALLED=
11008 BURNT_LIBRARY_NAME=
11009 WX_TARGET_LIBRARY_SONAME=
11010
11011
11012 if test "$wxUSE_SHARED" = "yes"; then
11013 case "${host}" in
11014 *-hp-hpux* )
11015 if test "$GCC" = yes ; then
11016 SHARED_LD="${CXX} -shared -fPIC -o"
11017 PIC_FLAG="-fPIC"
11018 else
11019 LDFLAGS="-L/usr/lib"
11020
11021 SHARED_LD="${CXX} -b -o"
11022 PIC_FLAG="+Z"
11023 fi
11024 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
11025 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
11026 if test "$wxUSE_OPENGL" = "yes"; then
11027 WX_ALL_INSTALLED="preinstall_gl"
11028 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
11029 else
11030 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
11031 fi
11032 ;;
11033
11034 *-*-linux* )
11035 SHARED_LD="${CXX} -shared -o"
11036 PIC_FLAG="-fPIC"
11037 if test "$wxUSE_BURNT_NAME" = "yes" ; then
11038 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
11039 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
11040 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
11041 fi
11042 if test "$wxUSE_OPENGL" = "yes"; then
11043 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11044 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11045 else
11046 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11047 WX_ALL="CREATE_LINKS"
11048 fi
11049 ;;
11050 *-*-irix5* | *-*-irix6* )
11051 if test "$GCC" = yes ; then
11052 SHARED_LD="${CXX} -shared -o"
11053 PIC_FLAG="-fPIC"
11054 else
11055 SHARED_LD="${CXX} -shared -o"
11056 fi
11057 if test "$wxUSE_OPENGL" = "yes"; then
11058 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11059 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11060 else
11061 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11062 WX_ALL="CREATE_LINKS"
11063 fi
11064 ;;
11065 *-*-solaris2* )
11066 if test "$GCC" = yes ; then
11067 SHARED_LD="${CXX} -shared -o"
11068 PIC_FLAG="-fPIC"
11069
11070 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
11071 else
11072 SHARED_LD="${CXX} -G -o"
11073 PIC_FLAG="-KPIC"
11074 fi
11075 if test "$wxUSE_OPENGL" = "yes"; then
11076 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11077 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11078 else
11079 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11080 WX_ALL="CREATE_LINKS"
11081 fi
11082 ;;
11083 *-*-sunos4* )
11084 SHARED_LD="${CXX} -shared -o"
11085 PIC_FLAG="-fPIC"
11086 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11087 WX_ALL="CREATE_LINKS"
11088 ;;
11089 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
11090 SHARED_LD="${CXX} -shared -o"
11091 PIC_FLAG="-fPIC"
11092 if test "$wxUSE_OPENGL" = "yes"; then
11093 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11094 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11095 else
11096 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11097 WX_ALL="CREATE_LINKS"
11098 fi
11099 ;;
11100 *-*-darwin* )
11101 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__DARWIN__ -D__POWERPC__"
11102 CFLAGS="${CFLAGS} -fno-common"
11103 CPPFLAGS="${CPPFLAGS} -fno-common"
11104 SHARED_LD="${CXX} -dynamiclib -o"
11105 PIC_FLAG="-dynamic -fPIC"
11106 if test "$wxUSE_OPENGL" = "yes"; then
11107 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
11108 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
11109 else
11110 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11111 WX_ALL="CREATE_LINKS"
11112 fi
11113 if test "$wxUSE_MAC" = 1 ; then
11114 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
11115 fi
11116 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11117 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
11118 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
11119 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
11120 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
11121 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
11122 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
11123 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
11124 ;;
11125 *-*-osf* )
11126 SHARED_LD="${CXX} -shared -o"
11127 PIC_FLAG="-fPIC"
11128 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11129 WX_ALL="CREATE_LINKS"
11130 ;;
11131 *-*-dgux5* )
11132 SHARED_LD="${CXX} -shared -o"
11133 PIC_FLAG="-fPIC"
11134 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11135 WX_ALL="CREATE_LINKS"
11136 ;;
11137 *-*-sysv5* )
11138 SHARED_LD="${CXX} -shared -o"
11139 PIC_FLAG="-fPIC"
11140 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11141 WX_ALL="CREATE_LINKS"
11142 ;;
11143 *-*-aix* )
11144 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
11145 WX_ALL=${WX_LIBRARY_NAME_SHARED}
11146 ;;
11147 *-*-cygwin* )
11148 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11149 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11150 if test "$wxUSE_OPENGL" = "yes"; then
11151 WX_ALL_INSTALLED="preinstall_gl"
11152 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11153 else
11154 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11155 fi
11156 ;;
11157 *-*-mingw32* )
11158 WX_LIBRARY_NAME_STATIC="lib/libwx${WX_MAJOR_VERSION_NUMBER}${WX_MINOR_VERSION_NUMBER}_${WX_RELEASE_NUMBER}.a"
11159 SHARED_LD="${CC} -shared -Wl,--out-implib,${WX_LIBRARY_NAME_STATIC} -o"
11160 TOOLKIT_DEF="${TOOLKIT_DEF} -DWXUSINGDLL=1"
11161 WXMSW_DLL_DEFINES="-UWXUSINGDLL -DWXMAKINGDLL=1 -D_DLL=1 -D_WINDLL=1"
11162 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11163 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11164 if test "$wxUSE_OPENGL" = "yes"; then
11165 WX_ALL_INSTALLED="preinstall_gl"
11166 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
11167 else
11168 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
11169 fi
11170 ;;
11171 *-pc-os2_emx )
11172 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11173 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11174 ;;
11175 *-*-beos* )
11176 SHARED_LD="${LD} -shared -o"
11177 PIC_FLAG="-fPIC"
11178 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
11179 WX_ALL="CREATE_LINKS"
11180 ;;
11181 *)
11182 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
11183 esac
11184
11185 if test "x$WX_TARGET_LIBRARY" = "x"; then
11186 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
11187 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11188 fi
11189 WX_TARGET_LIBRARY_TYPE="so"
11190 else
11191 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11192 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11193
11194 if test "$wxUSE_OPENGL" = "yes"; then
11195 WX_ALL_INSTALLED="preinstall_gl"
11196 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11197 else
11198 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11199 fi
11200
11201 if test "$wxUSE_GUI" = "no"; then
11202 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11203 fi
11204
11205 WX_TARGET_LIBRARY_TYPE="a"
11206 fi
11207
11208
11209 for ac_hdr in strings.h
11210 do
11211 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11212 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11213 echo "configure:11214: checking for $ac_hdr" >&5
11214 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11215 echo $ac_n "(cached) $ac_c" 1>&6
11216 else
11217 cat > conftest.$ac_ext <<EOF
11218 #line 11219 "configure"
11219 #include "confdefs.h"
11220 #include <$ac_hdr>
11221 EOF
11222 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11223 { (eval echo configure:11224: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11224 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11225 if test -z "$ac_err"; then
11226 rm -rf conftest*
11227 eval "ac_cv_header_$ac_safe=yes"
11228 else
11229 echo "$ac_err" >&5
11230 echo "configure: failed program was:" >&5
11231 cat conftest.$ac_ext >&5
11232 rm -rf conftest*
11233 eval "ac_cv_header_$ac_safe=no"
11234 fi
11235 rm -f conftest*
11236 fi
11237 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11238 echo "$ac_t""yes" 1>&6
11239 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11240 cat >> confdefs.h <<EOF
11241 #define $ac_tr_hdr 1
11242 EOF
11243
11244 else
11245 echo "$ac_t""no" 1>&6
11246 fi
11247 done
11248
11249 for ac_hdr in stdlib.h
11250 do
11251 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11252 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11253 echo "configure:11254: checking for $ac_hdr" >&5
11254 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11255 echo $ac_n "(cached) $ac_c" 1>&6
11256 else
11257 cat > conftest.$ac_ext <<EOF
11258 #line 11259 "configure"
11259 #include "confdefs.h"
11260 #include <$ac_hdr>
11261 EOF
11262 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11263 { (eval echo configure:11264: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11264 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11265 if test -z "$ac_err"; then
11266 rm -rf conftest*
11267 eval "ac_cv_header_$ac_safe=yes"
11268 else
11269 echo "$ac_err" >&5
11270 echo "configure: failed program was:" >&5
11271 cat conftest.$ac_ext >&5
11272 rm -rf conftest*
11273 eval "ac_cv_header_$ac_safe=no"
11274 fi
11275 rm -f conftest*
11276 fi
11277 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11278 echo "$ac_t""yes" 1>&6
11279 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11280 cat >> confdefs.h <<EOF
11281 #define $ac_tr_hdr 1
11282 EOF
11283
11284 else
11285 echo "$ac_t""no" 1>&6
11286 fi
11287 done
11288
11289 for ac_hdr in unistd.h
11290 do
11291 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11292 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11293 echo "configure:11294: checking for $ac_hdr" >&5
11294 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11295 echo $ac_n "(cached) $ac_c" 1>&6
11296 else
11297 cat > conftest.$ac_ext <<EOF
11298 #line 11299 "configure"
11299 #include "confdefs.h"
11300 #include <$ac_hdr>
11301 EOF
11302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11303 { (eval echo configure:11304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11304 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11305 if test -z "$ac_err"; then
11306 rm -rf conftest*
11307 eval "ac_cv_header_$ac_safe=yes"
11308 else
11309 echo "$ac_err" >&5
11310 echo "configure: failed program was:" >&5
11311 cat conftest.$ac_ext >&5
11312 rm -rf conftest*
11313 eval "ac_cv_header_$ac_safe=no"
11314 fi
11315 rm -f conftest*
11316 fi
11317 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11318 echo "$ac_t""yes" 1>&6
11319 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11320 cat >> confdefs.h <<EOF
11321 #define $ac_tr_hdr 1
11322 EOF
11323
11324 else
11325 echo "$ac_t""no" 1>&6
11326 fi
11327 done
11328
11329 for ac_hdr in wchar.h
11330 do
11331 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11332 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11333 echo "configure:11334: checking for $ac_hdr" >&5
11334 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11335 echo $ac_n "(cached) $ac_c" 1>&6
11336 else
11337 cat > conftest.$ac_ext <<EOF
11338 #line 11339 "configure"
11339 #include "confdefs.h"
11340 #include <$ac_hdr>
11341 EOF
11342 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11343 { (eval echo configure:11344: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11344 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11345 if test -z "$ac_err"; then
11346 rm -rf conftest*
11347 eval "ac_cv_header_$ac_safe=yes"
11348 else
11349 echo "$ac_err" >&5
11350 echo "configure: failed program was:" >&5
11351 cat conftest.$ac_ext >&5
11352 rm -rf conftest*
11353 eval "ac_cv_header_$ac_safe=no"
11354 fi
11355 rm -f conftest*
11356 fi
11357 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11358 echo "$ac_t""yes" 1>&6
11359 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11360 cat >> confdefs.h <<EOF
11361 #define $ac_tr_hdr 1
11362 EOF
11363
11364 else
11365 echo "$ac_t""no" 1>&6
11366 fi
11367 done
11368
11369 for ac_hdr in wcstr.h
11370 do
11371 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11372 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11373 echo "configure:11374: checking for $ac_hdr" >&5
11374 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11375 echo $ac_n "(cached) $ac_c" 1>&6
11376 else
11377 cat > conftest.$ac_ext <<EOF
11378 #line 11379 "configure"
11379 #include "confdefs.h"
11380 #include <$ac_hdr>
11381 EOF
11382 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11383 { (eval echo configure:11384: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11384 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11385 if test -z "$ac_err"; then
11386 rm -rf conftest*
11387 eval "ac_cv_header_$ac_safe=yes"
11388 else
11389 echo "$ac_err" >&5
11390 echo "configure: failed program was:" >&5
11391 cat conftest.$ac_ext >&5
11392 rm -rf conftest*
11393 eval "ac_cv_header_$ac_safe=no"
11394 fi
11395 rm -f conftest*
11396 fi
11397 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11398 echo "$ac_t""yes" 1>&6
11399 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11400 cat >> confdefs.h <<EOF
11401 #define $ac_tr_hdr 1
11402 EOF
11403
11404 else
11405 echo "$ac_t""no" 1>&6
11406 fi
11407 done
11408
11409 for ac_hdr in fnmatch.h
11410 do
11411 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11412 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11413 echo "configure:11414: checking for $ac_hdr" >&5
11414 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11415 echo $ac_n "(cached) $ac_c" 1>&6
11416 else
11417 cat > conftest.$ac_ext <<EOF
11418 #line 11419 "configure"
11419 #include "confdefs.h"
11420 #include <$ac_hdr>
11421 EOF
11422 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11423 { (eval echo configure:11424: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11424 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11425 if test -z "$ac_err"; then
11426 rm -rf conftest*
11427 eval "ac_cv_header_$ac_safe=yes"
11428 else
11429 echo "$ac_err" >&5
11430 echo "configure: failed program was:" >&5
11431 cat conftest.$ac_ext >&5
11432 rm -rf conftest*
11433 eval "ac_cv_header_$ac_safe=no"
11434 fi
11435 rm -f conftest*
11436 fi
11437 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11438 echo "$ac_t""yes" 1>&6
11439 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11440 cat >> confdefs.h <<EOF
11441 #define $ac_tr_hdr 1
11442 EOF
11443
11444 else
11445 echo "$ac_t""no" 1>&6
11446 fi
11447 done
11448
11449 for ac_hdr in iconv.h
11450 do
11451 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11452 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11453 echo "configure:11454: checking for $ac_hdr" >&5
11454 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11455 echo $ac_n "(cached) $ac_c" 1>&6
11456 else
11457 cat > conftest.$ac_ext <<EOF
11458 #line 11459 "configure"
11459 #include "confdefs.h"
11460 #include <$ac_hdr>
11461 EOF
11462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11463 { (eval echo configure:11464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11465 if test -z "$ac_err"; then
11466 rm -rf conftest*
11467 eval "ac_cv_header_$ac_safe=yes"
11468 else
11469 echo "$ac_err" >&5
11470 echo "configure: failed program was:" >&5
11471 cat conftest.$ac_ext >&5
11472 rm -rf conftest*
11473 eval "ac_cv_header_$ac_safe=no"
11474 fi
11475 rm -f conftest*
11476 fi
11477 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11478 echo "$ac_t""yes" 1>&6
11479 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11480 cat >> confdefs.h <<EOF
11481 #define $ac_tr_hdr 1
11482 EOF
11483
11484 else
11485 echo "$ac_t""no" 1>&6
11486 fi
11487 done
11488
11489 for ac_hdr in langinfo.h
11490 do
11491 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11492 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11493 echo "configure:11494: checking for $ac_hdr" >&5
11494 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11495 echo $ac_n "(cached) $ac_c" 1>&6
11496 else
11497 cat > conftest.$ac_ext <<EOF
11498 #line 11499 "configure"
11499 #include "confdefs.h"
11500 #include <$ac_hdr>
11501 EOF
11502 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11503 { (eval echo configure:11504: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11504 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11505 if test -z "$ac_err"; then
11506 rm -rf conftest*
11507 eval "ac_cv_header_$ac_safe=yes"
11508 else
11509 echo "$ac_err" >&5
11510 echo "configure: failed program was:" >&5
11511 cat conftest.$ac_ext >&5
11512 rm -rf conftest*
11513 eval "ac_cv_header_$ac_safe=no"
11514 fi
11515 rm -f conftest*
11516 fi
11517 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11518 echo "$ac_t""yes" 1>&6
11519 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11520 cat >> confdefs.h <<EOF
11521 #define $ac_tr_hdr 1
11522 EOF
11523
11524 else
11525 echo "$ac_t""no" 1>&6
11526 fi
11527 done
11528
11529
11530 if test "$wxUSE_GUI" = "yes"; then
11531 if test "$wxUSE_UNIX" = "yes"; then
11532 for ac_hdr in X11/XKBlib.h
11533 do
11534 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11535 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11536 echo "configure:11537: checking for $ac_hdr" >&5
11537 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11538 echo $ac_n "(cached) $ac_c" 1>&6
11539 else
11540 cat > conftest.$ac_ext <<EOF
11541 #line 11542 "configure"
11542 #include "confdefs.h"
11543 #include <$ac_hdr>
11544 EOF
11545 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11546 { (eval echo configure:11547: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11547 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11548 if test -z "$ac_err"; then
11549 rm -rf conftest*
11550 eval "ac_cv_header_$ac_safe=yes"
11551 else
11552 echo "$ac_err" >&5
11553 echo "configure: failed program was:" >&5
11554 cat conftest.$ac_ext >&5
11555 rm -rf conftest*
11556 eval "ac_cv_header_$ac_safe=no"
11557 fi
11558 rm -f conftest*
11559 fi
11560 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11561 echo "$ac_t""yes" 1>&6
11562 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11563 cat >> confdefs.h <<EOF
11564 #define $ac_tr_hdr 1
11565 EOF
11566
11567 else
11568 echo "$ac_t""no" 1>&6
11569 fi
11570 done
11571
11572 fi
11573 fi
11574
11575 if test "$USE_WIN32" = 1; then
11576 for ac_hdr in w32api.h
11577 do
11578 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11579 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11580 echo "configure:11581: checking for $ac_hdr" >&5
11581 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11582 echo $ac_n "(cached) $ac_c" 1>&6
11583 else
11584 cat > conftest.$ac_ext <<EOF
11585 #line 11586 "configure"
11586 #include "confdefs.h"
11587 #include <$ac_hdr>
11588 EOF
11589 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11590 { (eval echo configure:11591: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11591 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11592 if test -z "$ac_err"; then
11593 rm -rf conftest*
11594 eval "ac_cv_header_$ac_safe=yes"
11595 else
11596 echo "$ac_err" >&5
11597 echo "configure: failed program was:" >&5
11598 cat conftest.$ac_ext >&5
11599 rm -rf conftest*
11600 eval "ac_cv_header_$ac_safe=no"
11601 fi
11602 rm -f conftest*
11603 fi
11604 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11605 echo "$ac_t""yes" 1>&6
11606 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11607 cat >> confdefs.h <<EOF
11608 #define $ac_tr_hdr 1
11609 EOF
11610
11611 else
11612 echo "$ac_t""no" 1>&6
11613 fi
11614 done
11615
11616 fi
11617
11618
11619 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11620 echo "configure:11621: checking for ANSI C header files" >&5
11621 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11622 echo $ac_n "(cached) $ac_c" 1>&6
11623 else
11624 cat > conftest.$ac_ext <<EOF
11625 #line 11626 "configure"
11626 #include "confdefs.h"
11627 #include <stdlib.h>
11628 #include <stdarg.h>
11629 #include <string.h>
11630 #include <float.h>
11631 EOF
11632 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11633 { (eval echo configure:11634: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11634 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11635 if test -z "$ac_err"; then
11636 rm -rf conftest*
11637 ac_cv_header_stdc=yes
11638 else
11639 echo "$ac_err" >&5
11640 echo "configure: failed program was:" >&5
11641 cat conftest.$ac_ext >&5
11642 rm -rf conftest*
11643 ac_cv_header_stdc=no
11644 fi
11645 rm -f conftest*
11646
11647 if test $ac_cv_header_stdc = yes; then
11648 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11649 cat > conftest.$ac_ext <<EOF
11650 #line 11651 "configure"
11651 #include "confdefs.h"
11652 #include <string.h>
11653 EOF
11654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11655 egrep "memchr" >/dev/null 2>&1; then
11656 :
11657 else
11658 rm -rf conftest*
11659 ac_cv_header_stdc=no
11660 fi
11661 rm -f conftest*
11662
11663 fi
11664
11665 if test $ac_cv_header_stdc = yes; then
11666 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11667 cat > conftest.$ac_ext <<EOF
11668 #line 11669 "configure"
11669 #include "confdefs.h"
11670 #include <stdlib.h>
11671 EOF
11672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11673 egrep "free" >/dev/null 2>&1; then
11674 :
11675 else
11676 rm -rf conftest*
11677 ac_cv_header_stdc=no
11678 fi
11679 rm -f conftest*
11680
11681 fi
11682
11683 if test $ac_cv_header_stdc = yes; then
11684 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11685 if test "$cross_compiling" = yes; then
11686 :
11687 else
11688 cat > conftest.$ac_ext <<EOF
11689 #line 11690 "configure"
11690 #include "confdefs.h"
11691 #include <ctype.h>
11692 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11693 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11695 int main () { int i; for (i = 0; i < 256; i++)
11696 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11697 exit (0); }
11698
11699 EOF
11700 if { (eval echo configure:11701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11701 then
11702 :
11703 else
11704 echo "configure: failed program was:" >&5
11705 cat conftest.$ac_ext >&5
11706 rm -fr conftest*
11707 ac_cv_header_stdc=no
11708 fi
11709 rm -fr conftest*
11710 fi
11711
11712 fi
11713 fi
11714
11715 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11716 if test $ac_cv_header_stdc = yes; then
11717 cat >> confdefs.h <<\EOF
11718 #define STDC_HEADERS 1
11719 EOF
11720
11721 fi
11722
11723 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11724 echo "configure:11725: checking for mode_t" >&5
11725 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11726 echo $ac_n "(cached) $ac_c" 1>&6
11727 else
11728 cat > conftest.$ac_ext <<EOF
11729 #line 11730 "configure"
11730 #include "confdefs.h"
11731 #include <sys/types.h>
11732 #if STDC_HEADERS
11733 #include <stdlib.h>
11734 #include <stddef.h>
11735 #endif
11736 EOF
11737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11738 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11739 rm -rf conftest*
11740 ac_cv_type_mode_t=yes
11741 else
11742 rm -rf conftest*
11743 ac_cv_type_mode_t=no
11744 fi
11745 rm -f conftest*
11746
11747 fi
11748 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11749 if test $ac_cv_type_mode_t = no; then
11750 cat >> confdefs.h <<\EOF
11751 #define mode_t int
11752 EOF
11753
11754 fi
11755
11756 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11757 echo "configure:11758: checking for off_t" >&5
11758 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11759 echo $ac_n "(cached) $ac_c" 1>&6
11760 else
11761 cat > conftest.$ac_ext <<EOF
11762 #line 11763 "configure"
11763 #include "confdefs.h"
11764 #include <sys/types.h>
11765 #if STDC_HEADERS
11766 #include <stdlib.h>
11767 #include <stddef.h>
11768 #endif
11769 EOF
11770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11771 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11772 rm -rf conftest*
11773 ac_cv_type_off_t=yes
11774 else
11775 rm -rf conftest*
11776 ac_cv_type_off_t=no
11777 fi
11778 rm -f conftest*
11779
11780 fi
11781 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11782 if test $ac_cv_type_off_t = no; then
11783 cat >> confdefs.h <<\EOF
11784 #define off_t long
11785 EOF
11786
11787 fi
11788
11789 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11790 echo "configure:11791: checking for pid_t" >&5
11791 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11792 echo $ac_n "(cached) $ac_c" 1>&6
11793 else
11794 cat > conftest.$ac_ext <<EOF
11795 #line 11796 "configure"
11796 #include "confdefs.h"
11797 #include <sys/types.h>
11798 #if STDC_HEADERS
11799 #include <stdlib.h>
11800 #include <stddef.h>
11801 #endif
11802 EOF
11803 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11804 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11805 rm -rf conftest*
11806 ac_cv_type_pid_t=yes
11807 else
11808 rm -rf conftest*
11809 ac_cv_type_pid_t=no
11810 fi
11811 rm -f conftest*
11812
11813 fi
11814 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11815 if test $ac_cv_type_pid_t = no; then
11816 cat >> confdefs.h <<\EOF
11817 #define pid_t int
11818 EOF
11819
11820 fi
11821
11822 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11823 echo "configure:11824: checking for size_t" >&5
11824 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11825 echo $ac_n "(cached) $ac_c" 1>&6
11826 else
11827 cat > conftest.$ac_ext <<EOF
11828 #line 11829 "configure"
11829 #include "confdefs.h"
11830 #include <sys/types.h>
11831 #if STDC_HEADERS
11832 #include <stdlib.h>
11833 #include <stddef.h>
11834 #endif
11835 EOF
11836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11837 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11838 rm -rf conftest*
11839 ac_cv_type_size_t=yes
11840 else
11841 rm -rf conftest*
11842 ac_cv_type_size_t=no
11843 fi
11844 rm -f conftest*
11845
11846 fi
11847 echo "$ac_t""$ac_cv_type_size_t" 1>&6
11848 if test $ac_cv_type_size_t = no; then
11849 cat >> confdefs.h <<\EOF
11850 #define size_t unsigned
11851 EOF
11852
11853 fi
11854
11855 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
11856 echo "configure:11857: checking for uid_t in sys/types.h" >&5
11857 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11858 echo $ac_n "(cached) $ac_c" 1>&6
11859 else
11860 cat > conftest.$ac_ext <<EOF
11861 #line 11862 "configure"
11862 #include "confdefs.h"
11863 #include <sys/types.h>
11864 EOF
11865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11866 egrep "uid_t" >/dev/null 2>&1; then
11867 rm -rf conftest*
11868 ac_cv_type_uid_t=yes
11869 else
11870 rm -rf conftest*
11871 ac_cv_type_uid_t=no
11872 fi
11873 rm -f conftest*
11874
11875 fi
11876
11877 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11878 if test $ac_cv_type_uid_t = no; then
11879 cat >> confdefs.h <<\EOF
11880 #define uid_t int
11881 EOF
11882
11883 cat >> confdefs.h <<\EOF
11884 #define gid_t int
11885 EOF
11886
11887 fi
11888
11889
11890 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
11891 echo "configure:11892: checking for wchar_t" >&5
11892 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11893 echo $ac_n "(cached) $ac_c" 1>&6
11894 else
11895
11896 cat > conftest.$ac_ext <<EOF
11897 #line 11898 "configure"
11898 #include "confdefs.h"
11899 #include <wchar.h>
11900 int main() {
11901
11902 wchar_t wc, *ws;
11903 wc = L'a';
11904 ws = L"Hello, world!";
11905
11906 ; return 0; }
11907 EOF
11908 if { (eval echo configure:11909: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11909 rm -rf conftest*
11910 wx_cv_type_wchar_t=yes
11911 else
11912 echo "configure: failed program was:" >&5
11913 cat conftest.$ac_ext >&5
11914 rm -rf conftest*
11915 cat > conftest.$ac_ext <<EOF
11916 #line 11917 "configure"
11917 #include "confdefs.h"
11918 #include <stdlib.h>
11919 int main() {
11920
11921 wchar_t wc, *ws;
11922 wc = L'a';
11923 ws = L"Hello, world!";
11924
11925 ; return 0; }
11926 EOF
11927 if { (eval echo configure:11928: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11928 rm -rf conftest*
11929 wx_cv_type_wchar_t=yes
11930 else
11931 echo "configure: failed program was:" >&5
11932 cat conftest.$ac_ext >&5
11933 rm -rf conftest*
11934 wx_cv_type_wchar_t=no
11935 fi
11936 rm -f conftest*
11937
11938 fi
11939 rm -f conftest*
11940
11941 fi
11942
11943 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
11944
11945 if test "$wx_cv_type_wchar_t" = "yes"; then
11946 cat >> confdefs.h <<\EOF
11947 #define wxUSE_WCHAR_T 1
11948 EOF
11949
11950 fi
11951
11952
11953 ac_ext=C
11954 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11955 ac_cpp='$CXXCPP $CPPFLAGS'
11956 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11957 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11958 cross_compiling=$ac_cv_prog_cxx_cross
11959
11960 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
11961 echo "configure:11962: checking if size_t is unsigned int" >&5
11962 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11963 echo $ac_n "(cached) $ac_c" 1>&6
11964 else
11965 cat > conftest.$ac_ext <<EOF
11966 #line 11967 "configure"
11967 #include "confdefs.h"
11968 #include <stddef.h>
11969 int main() {
11970
11971 return 0; }
11972
11973 struct Foo { void foo(size_t); void foo(unsigned int); };
11974
11975 int bar() {
11976
11977 ; return 0; }
11978 EOF
11979 if { (eval echo configure:11980: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11980 rm -rf conftest*
11981 wx_cv_size_t_is_uint=no
11982 else
11983 echo "configure: failed program was:" >&5
11984 cat conftest.$ac_ext >&5
11985 rm -rf conftest*
11986 wx_cv_size_t_is_uint=yes
11987
11988 fi
11989 rm -f conftest*
11990
11991 fi
11992
11993 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11994
11995 if test "$wx_cv_size_t_is_uint" = "yes"; then
11996 cat >> confdefs.h <<\EOF
11997 #define wxSIZE_T_IS_UINT 1
11998 EOF
11999
12000 else
12001 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
12002 echo "configure:12003: checking if size_t is unsigned long" >&5
12003 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
12004 echo $ac_n "(cached) $ac_c" 1>&6
12005 else
12006 cat > conftest.$ac_ext <<EOF
12007 #line 12008 "configure"
12008 #include "confdefs.h"
12009 #include <stddef.h>
12010 int main() {
12011
12012 return 0; }
12013
12014 struct Foo { void foo(size_t); void foo(unsigned long); };
12015
12016 int bar() {
12017
12018 ; return 0; }
12019 EOF
12020 if { (eval echo configure:12021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12021 rm -rf conftest*
12022 wx_cv_size_t_is_ulong=no
12023 else
12024 echo "configure: failed program was:" >&5
12025 cat conftest.$ac_ext >&5
12026 rm -rf conftest*
12027 wx_cv_size_t_is_ulong=yes
12028
12029 fi
12030 rm -f conftest*
12031
12032 fi
12033
12034 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
12035
12036 if test "$wx_cv_size_t_is_ulong" = "yes"; then
12037 cat >> confdefs.h <<\EOF
12038 #define wxSIZE_T_IS_ULONG 1
12039 EOF
12040
12041 fi
12042 fi
12043
12044 ac_ext=c
12045 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12046 ac_cpp='$CPP $CPPFLAGS'
12047 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12048 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12049 cross_compiling=$ac_cv_prog_cc_cross
12050
12051
12052
12053 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
12054 echo "configure:12055: checking for pw_gecos in struct passwd" >&5
12055 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
12056 echo $ac_n "(cached) $ac_c" 1>&6
12057 else
12058
12059 cat > conftest.$ac_ext <<EOF
12060 #line 12061 "configure"
12061 #include "confdefs.h"
12062 #include <pwd.h>
12063 int main() {
12064
12065 char *p;
12066 struct passwd *pw;
12067 p = pw->pw_gecos;
12068
12069 ; return 0; }
12070 EOF
12071 if { (eval echo configure:12072: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12072 rm -rf conftest*
12073
12074 wx_cv_struct_pw_gecos=yes
12075
12076 else
12077 echo "configure: failed program was:" >&5
12078 cat conftest.$ac_ext >&5
12079 rm -rf conftest*
12080
12081 wx_cv_struct_pw_gecos=no
12082
12083
12084 fi
12085 rm -f conftest*
12086
12087
12088 fi
12089
12090 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
12091
12092 if test "$wx_cv_struct_pw_gecos" = "yes"; then
12093 cat >> confdefs.h <<\EOF
12094 #define HAVE_PW_GECOS 1
12095 EOF
12096
12097 fi
12098
12099
12100 echo $ac_n "checking for working const""... $ac_c" 1>&6
12101 echo "configure:12102: checking for working const" >&5
12102 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
12103 echo $ac_n "(cached) $ac_c" 1>&6
12104 else
12105 cat > conftest.$ac_ext <<EOF
12106 #line 12107 "configure"
12107 #include "confdefs.h"
12108
12109 int main() {
12110
12111 /* Ultrix mips cc rejects this. */
12112 typedef int charset[2]; const charset x;
12113 /* SunOS 4.1.1 cc rejects this. */
12114 char const *const *ccp;
12115 char **p;
12116 /* NEC SVR4.0.2 mips cc rejects this. */
12117 struct point {int x, y;};
12118 static struct point const zero = {0,0};
12119 /* AIX XL C 1.02.0.0 rejects this.
12120 It does not let you subtract one const X* pointer from another in an arm
12121 of an if-expression whose if-part is not a constant expression */
12122 const char *g = "string";
12123 ccp = &g + (g ? g-g : 0);
12124 /* HPUX 7.0 cc rejects these. */
12125 ++ccp;
12126 p = (char**) ccp;
12127 ccp = (char const *const *) p;
12128 { /* SCO 3.2v4 cc rejects this. */
12129 char *t;
12130 char const *s = 0 ? (char *) 0 : (char const *) 0;
12131
12132 *t++ = 0;
12133 }
12134 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12135 int x[] = {25, 17};
12136 const int *foo = &x[0];
12137 ++foo;
12138 }
12139 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12140 typedef const int *iptr;
12141 iptr p = 0;
12142 ++p;
12143 }
12144 { /* AIX XL C 1.02.0.0 rejects this saying
12145 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12146 struct s { int j; const int *ap[3]; };
12147 struct s *b; b->j = 5;
12148 }
12149 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12150 const int foo = 10;
12151 }
12152
12153 ; return 0; }
12154 EOF
12155 if { (eval echo configure:12156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12156 rm -rf conftest*
12157 ac_cv_c_const=yes
12158 else
12159 echo "configure: failed program was:" >&5
12160 cat conftest.$ac_ext >&5
12161 rm -rf conftest*
12162 ac_cv_c_const=no
12163 fi
12164 rm -f conftest*
12165 fi
12166
12167 echo "$ac_t""$ac_cv_c_const" 1>&6
12168 if test $ac_cv_c_const = no; then
12169 cat >> confdefs.h <<\EOF
12170 #define const
12171 EOF
12172
12173 fi
12174
12175 echo $ac_n "checking for inline""... $ac_c" 1>&6
12176 echo "configure:12177: checking for inline" >&5
12177 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
12178 echo $ac_n "(cached) $ac_c" 1>&6
12179 else
12180 ac_cv_c_inline=no
12181 for ac_kw in inline __inline__ __inline; do
12182 cat > conftest.$ac_ext <<EOF
12183 #line 12184 "configure"
12184 #include "confdefs.h"
12185
12186 int main() {
12187 } $ac_kw foo() {
12188 ; return 0; }
12189 EOF
12190 if { (eval echo configure:12191: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12191 rm -rf conftest*
12192 ac_cv_c_inline=$ac_kw; break
12193 else
12194 echo "configure: failed program was:" >&5
12195 cat conftest.$ac_ext >&5
12196 fi
12197 rm -f conftest*
12198 done
12199
12200 fi
12201
12202 echo "$ac_t""$ac_cv_c_inline" 1>&6
12203 case "$ac_cv_c_inline" in
12204 inline | yes) ;;
12205 no) cat >> confdefs.h <<\EOF
12206 #define inline
12207 EOF
12208 ;;
12209 *) cat >> confdefs.h <<EOF
12210 #define inline $ac_cv_c_inline
12211 EOF
12212 ;;
12213 esac
12214
12215
12216 echo $ac_n "checking size of char""... $ac_c" 1>&6
12217 echo "configure:12218: checking size of char" >&5
12218 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12219 echo $ac_n "(cached) $ac_c" 1>&6
12220 else
12221 if test "$cross_compiling" = yes; then
12222 ac_cv_sizeof_char=1
12223 else
12224 cat > conftest.$ac_ext <<EOF
12225 #line 12226 "configure"
12226 #include "confdefs.h"
12227 #include <stdio.h>
12228 main()
12229 {
12230 FILE *f=fopen("conftestval", "w");
12231 if (!f) exit(1);
12232 fprintf(f, "%d\n", sizeof(char));
12233 exit(0);
12234 }
12235 EOF
12236 if { (eval echo configure:12237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12237 then
12238 ac_cv_sizeof_char=`cat conftestval`
12239 else
12240 echo "configure: failed program was:" >&5
12241 cat conftest.$ac_ext >&5
12242 rm -fr conftest*
12243 ac_cv_sizeof_char=0
12244 fi
12245 rm -fr conftest*
12246 fi
12247
12248 fi
12249 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12250 cat >> confdefs.h <<EOF
12251 #define SIZEOF_CHAR $ac_cv_sizeof_char
12252 EOF
12253
12254
12255 echo $ac_n "checking size of short""... $ac_c" 1>&6
12256 echo "configure:12257: checking size of short" >&5
12257 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12258 echo $ac_n "(cached) $ac_c" 1>&6
12259 else
12260 if test "$cross_compiling" = yes; then
12261 ac_cv_sizeof_short=2
12262 else
12263 cat > conftest.$ac_ext <<EOF
12264 #line 12265 "configure"
12265 #include "confdefs.h"
12266 #include <stdio.h>
12267 main()
12268 {
12269 FILE *f=fopen("conftestval", "w");
12270 if (!f) exit(1);
12271 fprintf(f, "%d\n", sizeof(short));
12272 exit(0);
12273 }
12274 EOF
12275 if { (eval echo configure:12276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12276 then
12277 ac_cv_sizeof_short=`cat conftestval`
12278 else
12279 echo "configure: failed program was:" >&5
12280 cat conftest.$ac_ext >&5
12281 rm -fr conftest*
12282 ac_cv_sizeof_short=0
12283 fi
12284 rm -fr conftest*
12285 fi
12286
12287 fi
12288 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12289 cat >> confdefs.h <<EOF
12290 #define SIZEOF_SHORT $ac_cv_sizeof_short
12291 EOF
12292
12293
12294 echo $ac_n "checking size of int *""... $ac_c" 1>&6
12295 echo "configure:12296: checking size of int *" >&5
12296 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12297 echo $ac_n "(cached) $ac_c" 1>&6
12298 else
12299 if test "$cross_compiling" = yes; then
12300 ac_cv_sizeof_int_p=4
12301 else
12302 cat > conftest.$ac_ext <<EOF
12303 #line 12304 "configure"
12304 #include "confdefs.h"
12305 #include <stdio.h>
12306 main()
12307 {
12308 FILE *f=fopen("conftestval", "w");
12309 if (!f) exit(1);
12310 fprintf(f, "%d\n", sizeof(int *));
12311 exit(0);
12312 }
12313 EOF
12314 if { (eval echo configure:12315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12315 then
12316 ac_cv_sizeof_int_p=`cat conftestval`
12317 else
12318 echo "configure: failed program was:" >&5
12319 cat conftest.$ac_ext >&5
12320 rm -fr conftest*
12321 ac_cv_sizeof_int_p=0
12322 fi
12323 rm -fr conftest*
12324 fi
12325
12326 fi
12327 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12328 cat >> confdefs.h <<EOF
12329 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
12330 EOF
12331
12332
12333 echo $ac_n "checking size of int""... $ac_c" 1>&6
12334 echo "configure:12335: checking size of int" >&5
12335 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12336 echo $ac_n "(cached) $ac_c" 1>&6
12337 else
12338 if test "$cross_compiling" = yes; then
12339 ac_cv_sizeof_int=4
12340 else
12341 cat > conftest.$ac_ext <<EOF
12342 #line 12343 "configure"
12343 #include "confdefs.h"
12344 #include <stdio.h>
12345 main()
12346 {
12347 FILE *f=fopen("conftestval", "w");
12348 if (!f) exit(1);
12349 fprintf(f, "%d\n", sizeof(int));
12350 exit(0);
12351 }
12352 EOF
12353 if { (eval echo configure:12354: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12354 then
12355 ac_cv_sizeof_int=`cat conftestval`
12356 else
12357 echo "configure: failed program was:" >&5
12358 cat conftest.$ac_ext >&5
12359 rm -fr conftest*
12360 ac_cv_sizeof_int=0
12361 fi
12362 rm -fr conftest*
12363 fi
12364
12365 fi
12366 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12367 cat >> confdefs.h <<EOF
12368 #define SIZEOF_INT $ac_cv_sizeof_int
12369 EOF
12370
12371
12372 echo $ac_n "checking size of long""... $ac_c" 1>&6
12373 echo "configure:12374: checking size of long" >&5
12374 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12375 echo $ac_n "(cached) $ac_c" 1>&6
12376 else
12377 if test "$cross_compiling" = yes; then
12378 ac_cv_sizeof_long=4
12379 else
12380 cat > conftest.$ac_ext <<EOF
12381 #line 12382 "configure"
12382 #include "confdefs.h"
12383 #include <stdio.h>
12384 main()
12385 {
12386 FILE *f=fopen("conftestval", "w");
12387 if (!f) exit(1);
12388 fprintf(f, "%d\n", sizeof(long));
12389 exit(0);
12390 }
12391 EOF
12392 if { (eval echo configure:12393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12393 then
12394 ac_cv_sizeof_long=`cat conftestval`
12395 else
12396 echo "configure: failed program was:" >&5
12397 cat conftest.$ac_ext >&5
12398 rm -fr conftest*
12399 ac_cv_sizeof_long=0
12400 fi
12401 rm -fr conftest*
12402 fi
12403
12404 fi
12405 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12406 cat >> confdefs.h <<EOF
12407 #define SIZEOF_LONG $ac_cv_sizeof_long
12408 EOF
12409
12410
12411 echo $ac_n "checking size of long long""... $ac_c" 1>&6
12412 echo "configure:12413: checking size of long long" >&5
12413 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12414 echo $ac_n "(cached) $ac_c" 1>&6
12415 else
12416 if test "$cross_compiling" = yes; then
12417 ac_cv_sizeof_long_long=0
12418 else
12419 cat > conftest.$ac_ext <<EOF
12420 #line 12421 "configure"
12421 #include "confdefs.h"
12422 #include <stdio.h>
12423 main()
12424 {
12425 FILE *f=fopen("conftestval", "w");
12426 if (!f) exit(1);
12427 fprintf(f, "%d\n", sizeof(long long));
12428 exit(0);
12429 }
12430 EOF
12431 if { (eval echo configure:12432: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12432 then
12433 ac_cv_sizeof_long_long=`cat conftestval`
12434 else
12435 echo "configure: failed program was:" >&5
12436 cat conftest.$ac_ext >&5
12437 rm -fr conftest*
12438 ac_cv_sizeof_long_long=0
12439 fi
12440 rm -fr conftest*
12441 fi
12442
12443 fi
12444 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12445 cat >> confdefs.h <<EOF
12446 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12447 EOF
12448
12449
12450
12451 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
12452 echo "configure:12453: checking size of wchar_t" >&5
12453 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12454 echo $ac_n "(cached) $ac_c" 1>&6
12455 else
12456
12457 if test "$cross_compiling" = yes; then
12458 wx_cv_sizeof_wchar_t=4
12459
12460 else
12461 cat > conftest.$ac_ext <<EOF
12462 #line 12463 "configure"
12463 #include "confdefs.h"
12464
12465 #ifdef HAVE_WCHAR_H
12466 # include <wchar.h>
12467 #endif
12468 #ifdef HAVE_STDLIB_H
12469 # include <stdlib.h>
12470 #endif
12471 #include <stdio.h>
12472 int main()
12473 {
12474 FILE *f=fopen("conftestval", "w");
12475 if (!f) exit(1);
12476 fprintf(f, "%i", sizeof(wchar_t));
12477 exit(0);
12478 }
12479
12480 EOF
12481 if { (eval echo configure:12482: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12482 then
12483 wx_cv_sizeof_wchar_t=`cat conftestval`
12484 else
12485 echo "configure: failed program was:" >&5
12486 cat conftest.$ac_ext >&5
12487 rm -fr conftest*
12488 wx_cv_sizeof_wchar_t=0
12489 fi
12490 rm -fr conftest*
12491 fi
12492
12493
12494 fi
12495
12496 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12497
12498 cat >> confdefs.h <<EOF
12499 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
12500 EOF
12501
12502
12503 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
12504 echo "configure:12505: checking whether byte ordering is bigendian" >&5
12505 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12506 echo $ac_n "(cached) $ac_c" 1>&6
12507 else
12508 ac_cv_c_bigendian=unknown
12509 # See if sys/param.h defines the BYTE_ORDER macro.
12510 cat > conftest.$ac_ext <<EOF
12511 #line 12512 "configure"
12512 #include "confdefs.h"
12513 #include <sys/types.h>
12514 #include <sys/param.h>
12515 int main() {
12516
12517 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12518 bogus endian macros
12519 #endif
12520 ; return 0; }
12521 EOF
12522 if { (eval echo configure:12523: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12523 rm -rf conftest*
12524 # It does; now see whether it defined to BIG_ENDIAN or not.
12525 cat > conftest.$ac_ext <<EOF
12526 #line 12527 "configure"
12527 #include "confdefs.h"
12528 #include <sys/types.h>
12529 #include <sys/param.h>
12530 int main() {
12531
12532 #if BYTE_ORDER != BIG_ENDIAN
12533 not big endian
12534 #endif
12535 ; return 0; }
12536 EOF
12537 if { (eval echo configure:12538: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12538 rm -rf conftest*
12539 ac_cv_c_bigendian=yes
12540 else
12541 echo "configure: failed program was:" >&5
12542 cat conftest.$ac_ext >&5
12543 rm -rf conftest*
12544 ac_cv_c_bigendian=no
12545 fi
12546 rm -f conftest*
12547 else
12548 echo "configure: failed program was:" >&5
12549 cat conftest.$ac_ext >&5
12550 fi
12551 rm -f conftest*
12552 if test $ac_cv_c_bigendian = unknown; then
12553 if test "$cross_compiling" = yes; then
12554 ac_cv_c_bigendian=unknown
12555 else
12556 cat > conftest.$ac_ext <<EOF
12557 #line 12558 "configure"
12558 #include "confdefs.h"
12559 main () {
12560 /* Are we little or big endian? From Harbison&Steele. */
12561 union
12562 {
12563 long l;
12564 char c[sizeof (long)];
12565 } u;
12566 u.l = 1;
12567 exit (u.c[sizeof (long) - 1] == 1);
12568 }
12569 EOF
12570 if { (eval echo configure:12571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12571 then
12572 ac_cv_c_bigendian=no
12573 else
12574 echo "configure: failed program was:" >&5
12575 cat conftest.$ac_ext >&5
12576 rm -fr conftest*
12577 ac_cv_c_bigendian=yes
12578 fi
12579 rm -fr conftest*
12580 fi
12581
12582 fi
12583 fi
12584
12585 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
12586 if test $ac_cv_c_bigendian = unknown; then
12587 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
12588 fi
12589 if test $ac_cv_c_bigendian = yes; then
12590 cat >> confdefs.h <<\EOF
12591 #define WORDS_BIGENDIAN 1
12592 EOF
12593
12594 fi
12595
12596
12597
12598 if test "$cross_compiling" = "yes"; then
12599 cat >> confdefs.h <<\EOF
12600 #define wxUSE_IOSTREAMH 1
12601 EOF
12602
12603 else
12604
12605 ac_ext=C
12606 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12607 ac_cpp='$CXXCPP $CPPFLAGS'
12608 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12609 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12610 cross_compiling=$ac_cv_prog_cxx_cross
12611
12612
12613 for ac_hdr in iostream
12614 do
12615 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12616 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12617 echo "configure:12618: checking for $ac_hdr" >&5
12618 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12619 echo $ac_n "(cached) $ac_c" 1>&6
12620 else
12621 cat > conftest.$ac_ext <<EOF
12622 #line 12623 "configure"
12623 #include "confdefs.h"
12624 #include <$ac_hdr>
12625 EOF
12626 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12627 { (eval echo configure:12628: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12628 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12629 if test -z "$ac_err"; then
12630 rm -rf conftest*
12631 eval "ac_cv_header_$ac_safe=yes"
12632 else
12633 echo "$ac_err" >&5
12634 echo "configure: failed program was:" >&5
12635 cat conftest.$ac_ext >&5
12636 rm -rf conftest*
12637 eval "ac_cv_header_$ac_safe=no"
12638 fi
12639 rm -f conftest*
12640 fi
12641 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12642 echo "$ac_t""yes" 1>&6
12643 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12644 cat >> confdefs.h <<EOF
12645 #define $ac_tr_hdr 1
12646 EOF
12647
12648 else
12649 echo "$ac_t""no" 1>&6
12650 fi
12651 done
12652
12653
12654 if test "$ac_cv_header_iostream" = "yes" ; then
12655 :
12656 else
12657 cat >> confdefs.h <<\EOF
12658 #define wxUSE_IOSTREAMH 1
12659 EOF
12660
12661 fi
12662
12663 ac_ext=c
12664 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12665 ac_cpp='$CPP $CPPFLAGS'
12666 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12667 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12668 cross_compiling=$ac_cv_prog_cc_cross
12669
12670 fi
12671
12672
12673
12674 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
12675 echo "configure:12676: checking if C++ compiler supports bool" >&5
12676 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12677 echo $ac_n "(cached) $ac_c" 1>&6
12678 else
12679
12680
12681 ac_ext=C
12682 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12683 ac_cpp='$CXXCPP $CPPFLAGS'
12684 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12685 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12686 cross_compiling=$ac_cv_prog_cxx_cross
12687
12688
12689 cat > conftest.$ac_ext <<EOF
12690 #line 12691 "configure"
12691 #include "confdefs.h"
12692
12693
12694 int main() {
12695
12696 bool b = true;
12697
12698 return 0;
12699
12700 ; return 0; }
12701 EOF
12702 if { (eval echo configure:12703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12703 rm -rf conftest*
12704
12705 wx_cv_cpp_bool=yes
12706
12707 else
12708 echo "configure: failed program was:" >&5
12709 cat conftest.$ac_ext >&5
12710 rm -rf conftest*
12711
12712 wx_cv_cpp_bool=no
12713
12714
12715 fi
12716 rm -f conftest*
12717
12718 ac_ext=c
12719 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12720 ac_cpp='$CPP $CPPFLAGS'
12721 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12722 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12723 cross_compiling=$ac_cv_prog_cc_cross
12724
12725
12726 fi
12727
12728 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
12729
12730 if test "$wx_cv_cpp_bool" = "yes"; then
12731 cat >> confdefs.h <<\EOF
12732 #define HAVE_BOOL 1
12733 EOF
12734
12735 fi
12736
12737
12738
12739 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12740 echo "configure:12741: checking for wcslen in -lc" >&5
12741 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12742 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12743 echo $ac_n "(cached) $ac_c" 1>&6
12744 else
12745 ac_save_LIBS="$LIBS"
12746 LIBS="-lc $LIBS"
12747 cat > conftest.$ac_ext <<EOF
12748 #line 12749 "configure"
12749 #include "confdefs.h"
12750 /* Override any gcc2 internal prototype to avoid an error. */
12751 /* We use char because int might match the return type of a gcc2
12752 builtin and then its argument prototype would still apply. */
12753 char wcslen();
12754
12755 int main() {
12756 wcslen()
12757 ; return 0; }
12758 EOF
12759 if { (eval echo configure:12760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12760 rm -rf conftest*
12761 eval "ac_cv_lib_$ac_lib_var=yes"
12762 else
12763 echo "configure: failed program was:" >&5
12764 cat conftest.$ac_ext >&5
12765 rm -rf conftest*
12766 eval "ac_cv_lib_$ac_lib_var=no"
12767 fi
12768 rm -f conftest*
12769 LIBS="$ac_save_LIBS"
12770
12771 fi
12772 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12773 echo "$ac_t""yes" 1>&6
12774
12775 cat >> confdefs.h <<\EOF
12776 #define HAVE_WCSLEN 1
12777 EOF
12778
12779 WCHAR_LINK=""
12780
12781 else
12782 echo "$ac_t""no" 1>&6
12783
12784 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12785 echo "configure:12786: checking for wcslen in -lw" >&5
12786 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12787 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12788 echo $ac_n "(cached) $ac_c" 1>&6
12789 else
12790 ac_save_LIBS="$LIBS"
12791 LIBS="-lw $LIBS"
12792 cat > conftest.$ac_ext <<EOF
12793 #line 12794 "configure"
12794 #include "confdefs.h"
12795 /* Override any gcc2 internal prototype to avoid an error. */
12796 /* We use char because int might match the return type of a gcc2
12797 builtin and then its argument prototype would still apply. */
12798 char wcslen();
12799
12800 int main() {
12801 wcslen()
12802 ; return 0; }
12803 EOF
12804 if { (eval echo configure:12805: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12805 rm -rf conftest*
12806 eval "ac_cv_lib_$ac_lib_var=yes"
12807 else
12808 echo "configure: failed program was:" >&5
12809 cat conftest.$ac_ext >&5
12810 rm -rf conftest*
12811 eval "ac_cv_lib_$ac_lib_var=no"
12812 fi
12813 rm -f conftest*
12814 LIBS="$ac_save_LIBS"
12815
12816 fi
12817 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12818 echo "$ac_t""yes" 1>&6
12819
12820 cat >> confdefs.h <<\EOF
12821 #define HAVE_WCSLEN 1
12822 EOF
12823
12824 WCHAR_LINK="-lw"
12825
12826 else
12827 echo "$ac_t""no" 1>&6
12828
12829 echo $ac_n "checking for wcslen in -lmsvcrt""... $ac_c" 1>&6
12830 echo "configure:12831: checking for wcslen in -lmsvcrt" >&5
12831 ac_lib_var=`echo msvcrt'_'wcslen | sed 'y%./+-%__p_%'`
12832 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12833 echo $ac_n "(cached) $ac_c" 1>&6
12834 else
12835 ac_save_LIBS="$LIBS"
12836 LIBS="-lmsvcrt $LIBS"
12837 cat > conftest.$ac_ext <<EOF
12838 #line 12839 "configure"
12839 #include "confdefs.h"
12840 /* Override any gcc2 internal prototype to avoid an error. */
12841 /* We use char because int might match the return type of a gcc2
12842 builtin and then its argument prototype would still apply. */
12843 char wcslen();
12844
12845 int main() {
12846 wcslen()
12847 ; return 0; }
12848 EOF
12849 if { (eval echo configure:12850: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12850 rm -rf conftest*
12851 eval "ac_cv_lib_$ac_lib_var=yes"
12852 else
12853 echo "configure: failed program was:" >&5
12854 cat conftest.$ac_ext >&5
12855 rm -rf conftest*
12856 eval "ac_cv_lib_$ac_lib_var=no"
12857 fi
12858 rm -f conftest*
12859 LIBS="$ac_save_LIBS"
12860
12861 fi
12862 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12863 echo "$ac_t""yes" 1>&6
12864
12865 cat >> confdefs.h <<\EOF
12866 #define HAVE_WCSLEN 1
12867 EOF
12868
12869 WCHAR_LINK=""
12870
12871 else
12872 echo "$ac_t""no" 1>&6
12873 fi
12874
12875
12876 fi
12877
12878
12879 fi
12880
12881
12882 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12883 echo "configure:12884: checking for vprintf" >&5
12884 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12885 echo $ac_n "(cached) $ac_c" 1>&6
12886 else
12887 cat > conftest.$ac_ext <<EOF
12888 #line 12889 "configure"
12889 #include "confdefs.h"
12890 /* System header to define __stub macros and hopefully few prototypes,
12891 which can conflict with char vprintf(); below. */
12892 #include <assert.h>
12893 /* Override any gcc2 internal prototype to avoid an error. */
12894 /* We use char because int might match the return type of a gcc2
12895 builtin and then its argument prototype would still apply. */
12896 char vprintf();
12897
12898 int main() {
12899
12900 /* The GNU C library defines this for functions which it implements
12901 to always fail with ENOSYS. Some functions are actually named
12902 something starting with __ and the normal name is an alias. */
12903 #if defined (__stub_vprintf) || defined (__stub___vprintf)
12904 choke me
12905 #else
12906 vprintf();
12907 #endif
12908
12909 ; return 0; }
12910 EOF
12911 if { (eval echo configure:12912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12912 rm -rf conftest*
12913 eval "ac_cv_func_vprintf=yes"
12914 else
12915 echo "configure: failed program was:" >&5
12916 cat conftest.$ac_ext >&5
12917 rm -rf conftest*
12918 eval "ac_cv_func_vprintf=no"
12919 fi
12920 rm -f conftest*
12921 fi
12922
12923 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12924 echo "$ac_t""yes" 1>&6
12925 cat >> confdefs.h <<\EOF
12926 #define HAVE_VPRINTF 1
12927 EOF
12928
12929 else
12930 echo "$ac_t""no" 1>&6
12931 fi
12932
12933 if test "$ac_cv_func_vprintf" != yes; then
12934 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12935 echo "configure:12936: checking for _doprnt" >&5
12936 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12937 echo $ac_n "(cached) $ac_c" 1>&6
12938 else
12939 cat > conftest.$ac_ext <<EOF
12940 #line 12941 "configure"
12941 #include "confdefs.h"
12942 /* System header to define __stub macros and hopefully few prototypes,
12943 which can conflict with char _doprnt(); below. */
12944 #include <assert.h>
12945 /* Override any gcc2 internal prototype to avoid an error. */
12946 /* We use char because int might match the return type of a gcc2
12947 builtin and then its argument prototype would still apply. */
12948 char _doprnt();
12949
12950 int main() {
12951
12952 /* The GNU C library defines this for functions which it implements
12953 to always fail with ENOSYS. Some functions are actually named
12954 something starting with __ and the normal name is an alias. */
12955 #if defined (__stub__doprnt) || defined (__stub____doprnt)
12956 choke me
12957 #else
12958 _doprnt();
12959 #endif
12960
12961 ; return 0; }
12962 EOF
12963 if { (eval echo configure:12964: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12964 rm -rf conftest*
12965 eval "ac_cv_func__doprnt=yes"
12966 else
12967 echo "configure: failed program was:" >&5
12968 cat conftest.$ac_ext >&5
12969 rm -rf conftest*
12970 eval "ac_cv_func__doprnt=no"
12971 fi
12972 rm -f conftest*
12973 fi
12974
12975 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12976 echo "$ac_t""yes" 1>&6
12977 cat >> confdefs.h <<\EOF
12978 #define HAVE_DOPRNT 1
12979 EOF
12980
12981 else
12982 echo "$ac_t""no" 1>&6
12983 fi
12984
12985 fi
12986
12987
12988
12989
12990
12991
12992
12993 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
12994 echo "configure:12995: checking for vsnprintf" >&5
12995 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12996 echo $ac_n "(cached) $ac_c" 1>&6
12997 else
12998
12999 cat > conftest.$ac_ext <<EOF
13000 #line 13001 "configure"
13001 #include "confdefs.h"
13002
13003 #include <stdio.h>
13004 #include <stdarg.h>
13005
13006 int main() {
13007
13008 int wx_test_vsnprintf(const char *, ...);
13009
13010 wx_test_vsnprintf("%s");
13011 return 0;
13012 }
13013
13014 int wx_test_vsnprintf(const char *fmt, ...)
13015 {
13016 char *s;
13017
13018 va_list argp;
13019 va_start(argp, fmt);
13020 vsnprintf(s, 42, fmt, argp);
13021 va_end(argp);
13022
13023 ; return 0; }
13024 EOF
13025 if { (eval echo configure:13026: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13026 rm -rf conftest*
13027
13028 wx_cv_func_vsnprintf=yes
13029
13030 else
13031 echo "configure: failed program was:" >&5
13032 cat conftest.$ac_ext >&5
13033 rm -rf conftest*
13034
13035 cat > conftest.$ac_ext <<EOF
13036 #line 13037 "configure"
13037 #include "confdefs.h"
13038
13039 #include <stdio.h>
13040 #include <stdarg.h>
13041
13042 int main() {
13043
13044 int wx_test_vsnprintf(const char *, ...);
13045
13046 wx_test_vsnprintf("%s");
13047 return 0;
13048 }
13049
13050 int wx_test_vsnprintf(const char *fmt, ...)
13051 {
13052 char *s;
13053
13054 va_list argp;
13055 va_start(argp, fmt);
13056 _vsnprintf(s, 42, fmt, argp);
13057 va_end(argp);
13058
13059 ; return 0; }
13060 EOF
13061 if { (eval echo configure:13062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13062 rm -rf conftest*
13063
13064 wx_cv_func_vsnprintf=yes
13065
13066 else
13067 echo "configure: failed program was:" >&5
13068 cat conftest.$ac_ext >&5
13069 rm -rf conftest*
13070
13071 wx_cv_func_vsnprintf=no
13072
13073 fi
13074 rm -f conftest*
13075
13076 fi
13077 rm -f conftest*
13078
13079 fi
13080
13081 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
13082
13083 if test "$wx_cv_func_vsnprintf" = yes; then
13084 cat >> confdefs.h <<\EOF
13085 #define HAVE_VSNPRINTF 1
13086 EOF
13087
13088 else
13089 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
13090 fi
13091
13092 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
13093 echo "configure:13094: checking for vsscanf" >&5
13094 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
13095 echo $ac_n "(cached) $ac_c" 1>&6
13096 else
13097
13098 cat > conftest.$ac_ext <<EOF
13099 #line 13100 "configure"
13100 #include "confdefs.h"
13101
13102 #include <stdio.h>
13103 #include <stdarg.h>
13104
13105 int main() {
13106
13107 int wx_test_vsscanf(const char *, ...);
13108
13109 wx_test_vsscanf("%d");
13110 return 0;
13111 }
13112
13113 int wx_test_vsscanf(const char *fmt, ...)
13114 {
13115 va_list argp;
13116 va_start(argp, fmt);
13117 vsscanf("42", fmt, argp);
13118 va_end(argp);
13119
13120 ; return 0; }
13121 EOF
13122 if { (eval echo configure:13123: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13123 rm -rf conftest*
13124
13125 wx_cv_func_vsscanf=yes
13126
13127 else
13128 echo "configure: failed program was:" >&5
13129 cat conftest.$ac_ext >&5
13130 rm -rf conftest*
13131
13132 wx_cv_func_vsscanf=no
13133
13134 fi
13135 rm -f conftest*
13136
13137 fi
13138
13139 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
13140
13141 if test "$wx_cv_func_vsscanf" = yes; then
13142 cat >> confdefs.h <<\EOF
13143 #define HAVE_VSSCANF 1
13144 EOF
13145
13146 fi
13147
13148 if test "$TOOLKIT" != "MSW"; then
13149
13150
13151
13152 ac_ext=C
13153 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13154 ac_cpp='$CXXCPP $CPPFLAGS'
13155 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13156 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13157 cross_compiling=$ac_cv_prog_cxx_cross
13158
13159 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
13160 echo "configure:13161: checking if iconv() takes char**" >&5
13161 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
13162 echo $ac_n "(cached) $ac_c" 1>&6
13163 else
13164
13165 cat > conftest.$ac_ext <<EOF
13166 #line 13167 "configure"
13167 #include "confdefs.h"
13168 #include <iconv.h>
13169 int main() {
13170
13171 char **inbuf, **outbuf;
13172 iconv_t cd;
13173 size_t insz, outsz;
13174 iconv(cd, inbuf, &insz, outbuf, &outsz);
13175
13176 ; return 0; }
13177 EOF
13178 if { (eval echo configure:13179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13179 rm -rf conftest*
13180 wx_cv_iconv_takes_char=yes
13181 else
13182 echo "configure: failed program was:" >&5
13183 cat conftest.$ac_ext >&5
13184 rm -rf conftest*
13185 wx_cv_iconv_takes_char=no
13186 fi
13187 rm -f conftest*
13188
13189 fi
13190
13191 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
13192 ac_ext=c
13193 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13194 ac_cpp='$CPP $CPPFLAGS'
13195 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13196 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13197 cross_compiling=$ac_cv_prog_cc_cross
13198
13199 if test "$wx_cv_iconv_takes_char" = yes ; then
13200 cat >> confdefs.h <<\EOF
13201 #define WX_ICONV_TAKES_CHAR 1
13202 EOF
13203
13204 fi
13205
13206
13207 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
13208 for ac_func in sigaction
13209 do
13210 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13211 echo "configure:13212: checking for $ac_func" >&5
13212 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13213 echo $ac_n "(cached) $ac_c" 1>&6
13214 else
13215 cat > conftest.$ac_ext <<EOF
13216 #line 13217 "configure"
13217 #include "confdefs.h"
13218 /* System header to define __stub macros and hopefully few prototypes,
13219 which can conflict with char $ac_func(); below. */
13220 #include <assert.h>
13221 /* Override any gcc2 internal prototype to avoid an error. */
13222 /* We use char because int might match the return type of a gcc2
13223 builtin and then its argument prototype would still apply. */
13224 char $ac_func();
13225
13226 int main() {
13227
13228 /* The GNU C library defines this for functions which it implements
13229 to always fail with ENOSYS. Some functions are actually named
13230 something starting with __ and the normal name is an alias. */
13231 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13232 choke me
13233 #else
13234 $ac_func();
13235 #endif
13236
13237 ; return 0; }
13238 EOF
13239 if { (eval echo configure:13240: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13240 rm -rf conftest*
13241 eval "ac_cv_func_$ac_func=yes"
13242 else
13243 echo "configure: failed program was:" >&5
13244 cat conftest.$ac_ext >&5
13245 rm -rf conftest*
13246 eval "ac_cv_func_$ac_func=no"
13247 fi
13248 rm -f conftest*
13249 fi
13250
13251 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13252 echo "$ac_t""yes" 1>&6
13253 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13254 cat >> confdefs.h <<EOF
13255 #define $ac_tr_func 1
13256 EOF
13257
13258 else
13259 echo "$ac_t""no" 1>&6
13260 fi
13261 done
13262
13263
13264 if test "$ac_cv_func_sigaction" = "no"; then
13265 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
13266 wxUSE_ON_FATAL_EXCEPTION=no
13267 fi
13268
13269 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13270
13271 ac_ext=C
13272 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13273 ac_cpp='$CXXCPP $CPPFLAGS'
13274 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13275 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13276 cross_compiling=$ac_cv_prog_cxx_cross
13277
13278
13279 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
13280 echo "configure:13281: checking for sa_handler type" >&5
13281 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13282 echo $ac_n "(cached) $ac_c" 1>&6
13283 else
13284
13285 cat > conftest.$ac_ext <<EOF
13286 #line 13287 "configure"
13287 #include "confdefs.h"
13288 #include <signal.h>
13289 int main() {
13290
13291 extern void testSigHandler(int);
13292
13293 struct sigaction sa;
13294 sa.sa_handler = testSigHandler;
13295
13296 ; return 0; }
13297 EOF
13298 if { (eval echo configure:13299: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13299 rm -rf conftest*
13300
13301 wx_cv_type_sa_handler=int
13302
13303 else
13304 echo "configure: failed program was:" >&5
13305 cat conftest.$ac_ext >&5
13306 rm -rf conftest*
13307
13308 wx_cv_type_sa_handler=void
13309
13310 fi
13311 rm -f conftest*
13312
13313 fi
13314
13315 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
13316
13317 ac_ext=c
13318 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13319 ac_cpp='$CPP $CPPFLAGS'
13320 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13321 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13322 cross_compiling=$ac_cv_prog_cc_cross
13323
13324
13325 cat >> confdefs.h <<EOF
13326 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13327 EOF
13328
13329 fi
13330 fi
13331
13332 for ac_func in vfork
13333 do
13334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13335 echo "configure:13336: checking for $ac_func" >&5
13336 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13337 echo $ac_n "(cached) $ac_c" 1>&6
13338 else
13339 cat > conftest.$ac_ext <<EOF
13340 #line 13341 "configure"
13341 #include "confdefs.h"
13342 /* System header to define __stub macros and hopefully few prototypes,
13343 which can conflict with char $ac_func(); below. */
13344 #include <assert.h>
13345 /* Override any gcc2 internal prototype to avoid an error. */
13346 /* We use char because int might match the return type of a gcc2
13347 builtin and then its argument prototype would still apply. */
13348 char $ac_func();
13349
13350 int main() {
13351
13352 /* The GNU C library defines this for functions which it implements
13353 to always fail with ENOSYS. Some functions are actually named
13354 something starting with __ and the normal name is an alias. */
13355 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13356 choke me
13357 #else
13358 $ac_func();
13359 #endif
13360
13361 ; return 0; }
13362 EOF
13363 if { (eval echo configure:13364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13364 rm -rf conftest*
13365 eval "ac_cv_func_$ac_func=yes"
13366 else
13367 echo "configure: failed program was:" >&5
13368 cat conftest.$ac_ext >&5
13369 rm -rf conftest*
13370 eval "ac_cv_func_$ac_func=no"
13371 fi
13372 rm -f conftest*
13373 fi
13374
13375 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13376 echo "$ac_t""yes" 1>&6
13377 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13378 cat >> confdefs.h <<EOF
13379 #define $ac_tr_func 1
13380 EOF
13381
13382 else
13383 echo "$ac_t""no" 1>&6
13384 fi
13385 done
13386
13387
13388 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13389 for ac_func in fcntl flock
13390 do
13391 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13392 echo "configure:13393: checking for $ac_func" >&5
13393 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13394 echo $ac_n "(cached) $ac_c" 1>&6
13395 else
13396 cat > conftest.$ac_ext <<EOF
13397 #line 13398 "configure"
13398 #include "confdefs.h"
13399 /* System header to define __stub macros and hopefully few prototypes,
13400 which can conflict with char $ac_func(); below. */
13401 #include <assert.h>
13402 /* Override any gcc2 internal prototype to avoid an error. */
13403 /* We use char because int might match the return type of a gcc2
13404 builtin and then its argument prototype would still apply. */
13405 char $ac_func();
13406
13407 int main() {
13408
13409 /* The GNU C library defines this for functions which it implements
13410 to always fail with ENOSYS. Some functions are actually named
13411 something starting with __ and the normal name is an alias. */
13412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13413 choke me
13414 #else
13415 $ac_func();
13416 #endif
13417
13418 ; return 0; }
13419 EOF
13420 if { (eval echo configure:13421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13421 rm -rf conftest*
13422 eval "ac_cv_func_$ac_func=yes"
13423 else
13424 echo "configure: failed program was:" >&5
13425 cat conftest.$ac_ext >&5
13426 rm -rf conftest*
13427 eval "ac_cv_func_$ac_func=no"
13428 fi
13429 rm -f conftest*
13430 fi
13431
13432 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13433 echo "$ac_t""yes" 1>&6
13434 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13435 cat >> confdefs.h <<EOF
13436 #define $ac_tr_func 1
13437 EOF
13438 break
13439 else
13440 echo "$ac_t""no" 1>&6
13441 fi
13442 done
13443
13444
13445 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
13446 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
13447 wxUSE_SNGLINST_CHECKER=no
13448 fi
13449 fi
13450
13451 for ac_func in timegm
13452 do
13453 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13454 echo "configure:13455: checking for $ac_func" >&5
13455 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13456 echo $ac_n "(cached) $ac_c" 1>&6
13457 else
13458 cat > conftest.$ac_ext <<EOF
13459 #line 13460 "configure"
13460 #include "confdefs.h"
13461 /* System header to define __stub macros and hopefully few prototypes,
13462 which can conflict with char $ac_func(); below. */
13463 #include <assert.h>
13464 /* Override any gcc2 internal prototype to avoid an error. */
13465 /* We use char because int might match the return type of a gcc2
13466 builtin and then its argument prototype would still apply. */
13467 char $ac_func();
13468
13469 int main() {
13470
13471 /* The GNU C library defines this for functions which it implements
13472 to always fail with ENOSYS. Some functions are actually named
13473 something starting with __ and the normal name is an alias. */
13474 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13475 choke me
13476 #else
13477 $ac_func();
13478 #endif
13479
13480 ; return 0; }
13481 EOF
13482 if { (eval echo configure:13483: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13483 rm -rf conftest*
13484 eval "ac_cv_func_$ac_func=yes"
13485 else
13486 echo "configure: failed program was:" >&5
13487 cat conftest.$ac_ext >&5
13488 rm -rf conftest*
13489 eval "ac_cv_func_$ac_func=no"
13490 fi
13491 rm -f conftest*
13492 fi
13493
13494 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13495 echo "$ac_t""yes" 1>&6
13496 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13497 cat >> confdefs.h <<EOF
13498 #define $ac_tr_func 1
13499 EOF
13500
13501 else
13502 echo "$ac_t""no" 1>&6
13503 fi
13504 done
13505
13506
13507 for ac_func in putenv setenv
13508 do
13509 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13510 echo "configure:13511: checking for $ac_func" >&5
13511 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13512 echo $ac_n "(cached) $ac_c" 1>&6
13513 else
13514 cat > conftest.$ac_ext <<EOF
13515 #line 13516 "configure"
13516 #include "confdefs.h"
13517 /* System header to define __stub macros and hopefully few prototypes,
13518 which can conflict with char $ac_func(); below. */
13519 #include <assert.h>
13520 /* Override any gcc2 internal prototype to avoid an error. */
13521 /* We use char because int might match the return type of a gcc2
13522 builtin and then its argument prototype would still apply. */
13523 char $ac_func();
13524
13525 int main() {
13526
13527 /* The GNU C library defines this for functions which it implements
13528 to always fail with ENOSYS. Some functions are actually named
13529 something starting with __ and the normal name is an alias. */
13530 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13531 choke me
13532 #else
13533 $ac_func();
13534 #endif
13535
13536 ; return 0; }
13537 EOF
13538 if { (eval echo configure:13539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13539 rm -rf conftest*
13540 eval "ac_cv_func_$ac_func=yes"
13541 else
13542 echo "configure: failed program was:" >&5
13543 cat conftest.$ac_ext >&5
13544 rm -rf conftest*
13545 eval "ac_cv_func_$ac_func=no"
13546 fi
13547 rm -f conftest*
13548 fi
13549
13550 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13551 echo "$ac_t""yes" 1>&6
13552 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13553 cat >> confdefs.h <<EOF
13554 #define $ac_tr_func 1
13555 EOF
13556 break
13557 else
13558 echo "$ac_t""no" 1>&6
13559 fi
13560 done
13561
13562
13563 HAVE_SOME_SLEEP_FUNC=0
13564 if test "$USE_BEOS" = 1; then
13565 cat >> confdefs.h <<\EOF
13566 #define HAVE_SLEEP 1
13567 EOF
13568
13569 HAVE_SOME_SLEEP_FUNC=1
13570 fi
13571
13572 if test "$USE_DARWIN" = 1; then
13573 cat >> confdefs.h <<\EOF
13574 #define HAVE_USLEEP 1
13575 EOF
13576
13577 HAVE_SOME_SLEEP_FUNC=1
13578 fi
13579
13580 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13581 POSIX4_LINK=
13582 for ac_func in nanosleep
13583 do
13584 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13585 echo "configure:13586: checking for $ac_func" >&5
13586 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13587 echo $ac_n "(cached) $ac_c" 1>&6
13588 else
13589 cat > conftest.$ac_ext <<EOF
13590 #line 13591 "configure"
13591 #include "confdefs.h"
13592 /* System header to define __stub macros and hopefully few prototypes,
13593 which can conflict with char $ac_func(); below. */
13594 #include <assert.h>
13595 /* Override any gcc2 internal prototype to avoid an error. */
13596 /* We use char because int might match the return type of a gcc2
13597 builtin and then its argument prototype would still apply. */
13598 char $ac_func();
13599
13600 int main() {
13601
13602 /* The GNU C library defines this for functions which it implements
13603 to always fail with ENOSYS. Some functions are actually named
13604 something starting with __ and the normal name is an alias. */
13605 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13606 choke me
13607 #else
13608 $ac_func();
13609 #endif
13610
13611 ; return 0; }
13612 EOF
13613 if { (eval echo configure:13614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13614 rm -rf conftest*
13615 eval "ac_cv_func_$ac_func=yes"
13616 else
13617 echo "configure: failed program was:" >&5
13618 cat conftest.$ac_ext >&5
13619 rm -rf conftest*
13620 eval "ac_cv_func_$ac_func=no"
13621 fi
13622 rm -f conftest*
13623 fi
13624
13625 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13626 echo "$ac_t""yes" 1>&6
13627 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13628 cat >> confdefs.h <<EOF
13629 #define $ac_tr_func 1
13630 EOF
13631 cat >> confdefs.h <<\EOF
13632 #define HAVE_NANOSLEEP 1
13633 EOF
13634
13635 else
13636 echo "$ac_t""no" 1>&6
13637 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
13638 echo "configure:13639: checking for nanosleep in -lposix4" >&5
13639 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13640 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13641 echo $ac_n "(cached) $ac_c" 1>&6
13642 else
13643 ac_save_LIBS="$LIBS"
13644 LIBS="-lposix4 $LIBS"
13645 cat > conftest.$ac_ext <<EOF
13646 #line 13647 "configure"
13647 #include "confdefs.h"
13648 /* Override any gcc2 internal prototype to avoid an error. */
13649 /* We use char because int might match the return type of a gcc2
13650 builtin and then its argument prototype would still apply. */
13651 char nanosleep();
13652
13653 int main() {
13654 nanosleep()
13655 ; return 0; }
13656 EOF
13657 if { (eval echo configure:13658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13658 rm -rf conftest*
13659 eval "ac_cv_lib_$ac_lib_var=yes"
13660 else
13661 echo "configure: failed program was:" >&5
13662 cat conftest.$ac_ext >&5
13663 rm -rf conftest*
13664 eval "ac_cv_lib_$ac_lib_var=no"
13665 fi
13666 rm -f conftest*
13667 LIBS="$ac_save_LIBS"
13668
13669 fi
13670 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13671 echo "$ac_t""yes" 1>&6
13672
13673 cat >> confdefs.h <<\EOF
13674 #define HAVE_NANOSLEEP 1
13675 EOF
13676
13677 POSIX4_LINK="-lposix4"
13678
13679 else
13680 echo "$ac_t""no" 1>&6
13681
13682 for ac_func in usleep
13683 do
13684 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13685 echo "configure:13686: checking for $ac_func" >&5
13686 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13687 echo $ac_n "(cached) $ac_c" 1>&6
13688 else
13689 cat > conftest.$ac_ext <<EOF
13690 #line 13691 "configure"
13691 #include "confdefs.h"
13692 /* System header to define __stub macros and hopefully few prototypes,
13693 which can conflict with char $ac_func(); below. */
13694 #include <assert.h>
13695 /* Override any gcc2 internal prototype to avoid an error. */
13696 /* We use char because int might match the return type of a gcc2
13697 builtin and then its argument prototype would still apply. */
13698 char $ac_func();
13699
13700 int main() {
13701
13702 /* The GNU C library defines this for functions which it implements
13703 to always fail with ENOSYS. Some functions are actually named
13704 something starting with __ and the normal name is an alias. */
13705 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13706 choke me
13707 #else
13708 $ac_func();
13709 #endif
13710
13711 ; return 0; }
13712 EOF
13713 if { (eval echo configure:13714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13714 rm -rf conftest*
13715 eval "ac_cv_func_$ac_func=yes"
13716 else
13717 echo "configure: failed program was:" >&5
13718 cat conftest.$ac_ext >&5
13719 rm -rf conftest*
13720 eval "ac_cv_func_$ac_func=no"
13721 fi
13722 rm -f conftest*
13723 fi
13724
13725 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13726 echo "$ac_t""yes" 1>&6
13727 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13728 cat >> confdefs.h <<EOF
13729 #define $ac_tr_func 1
13730 EOF
13731 cat >> confdefs.h <<\EOF
13732 #define HAVE_USLEEP 1
13733 EOF
13734
13735 else
13736 echo "$ac_t""no" 1>&6
13737 echo "configure: warning: wxSleep() function will not work" 1>&2
13738
13739 fi
13740 done
13741
13742
13743
13744 fi
13745
13746
13747
13748 fi
13749 done
13750
13751 fi
13752
13753 for ac_func in uname gethostname
13754 do
13755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13756 echo "configure:13757: checking for $ac_func" >&5
13757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13758 echo $ac_n "(cached) $ac_c" 1>&6
13759 else
13760 cat > conftest.$ac_ext <<EOF
13761 #line 13762 "configure"
13762 #include "confdefs.h"
13763 /* System header to define __stub macros and hopefully few prototypes,
13764 which can conflict with char $ac_func(); below. */
13765 #include <assert.h>
13766 /* Override any gcc2 internal prototype to avoid an error. */
13767 /* We use char because int might match the return type of a gcc2
13768 builtin and then its argument prototype would still apply. */
13769 char $ac_func();
13770
13771 int main() {
13772
13773 /* The GNU C library defines this for functions which it implements
13774 to always fail with ENOSYS. Some functions are actually named
13775 something starting with __ and the normal name is an alias. */
13776 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13777 choke me
13778 #else
13779 $ac_func();
13780 #endif
13781
13782 ; return 0; }
13783 EOF
13784 if { (eval echo configure:13785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13785 rm -rf conftest*
13786 eval "ac_cv_func_$ac_func=yes"
13787 else
13788 echo "configure: failed program was:" >&5
13789 cat conftest.$ac_ext >&5
13790 rm -rf conftest*
13791 eval "ac_cv_func_$ac_func=no"
13792 fi
13793 rm -f conftest*
13794 fi
13795
13796 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13797 echo "$ac_t""yes" 1>&6
13798 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13799 cat >> confdefs.h <<EOF
13800 #define $ac_tr_func 1
13801 EOF
13802 break
13803 else
13804 echo "$ac_t""no" 1>&6
13805 fi
13806 done
13807
13808
13809
13810 ac_ext=C
13811 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13812 ac_cpp='$CXXCPP $CPPFLAGS'
13813 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13814 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13815 cross_compiling=$ac_cv_prog_cxx_cross
13816
13817
13818 for ac_func in strtok_r
13819 do
13820 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13821 echo "configure:13822: checking for $ac_func" >&5
13822 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13823 echo $ac_n "(cached) $ac_c" 1>&6
13824 else
13825 cat > conftest.$ac_ext <<EOF
13826 #line 13827 "configure"
13827 #include "confdefs.h"
13828 /* System header to define __stub macros and hopefully few prototypes,
13829 which can conflict with char $ac_func(); below. */
13830 #include <assert.h>
13831 /* Override any gcc2 internal prototype to avoid an error. */
13832 #ifdef __cplusplus
13833 extern "C"
13834 #endif
13835 /* We use char because int might match the return type of a gcc2
13836 builtin and then its argument prototype would still apply. */
13837 char $ac_func();
13838
13839 int main() {
13840
13841 /* The GNU C library defines this for functions which it implements
13842 to always fail with ENOSYS. Some functions are actually named
13843 something starting with __ and the normal name is an alias. */
13844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13845 choke me
13846 #else
13847 $ac_func();
13848 #endif
13849
13850 ; return 0; }
13851 EOF
13852 if { (eval echo configure:13853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13853 rm -rf conftest*
13854 eval "ac_cv_func_$ac_func=yes"
13855 else
13856 echo "configure: failed program was:" >&5
13857 cat conftest.$ac_ext >&5
13858 rm -rf conftest*
13859 eval "ac_cv_func_$ac_func=no"
13860 fi
13861 rm -f conftest*
13862 fi
13863
13864 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13865 echo "$ac_t""yes" 1>&6
13866 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13867 cat >> confdefs.h <<EOF
13868 #define $ac_tr_func 1
13869 EOF
13870
13871 else
13872 echo "$ac_t""no" 1>&6
13873 fi
13874 done
13875
13876
13877 ac_ext=c
13878 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13879 ac_cpp='$CPP $CPPFLAGS'
13880 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13881 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13882 cross_compiling=$ac_cv_prog_cc_cross
13883
13884
13885 INET_LINK=
13886 for ac_func in inet_addr
13887 do
13888 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13889 echo "configure:13890: checking for $ac_func" >&5
13890 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13891 echo $ac_n "(cached) $ac_c" 1>&6
13892 else
13893 cat > conftest.$ac_ext <<EOF
13894 #line 13895 "configure"
13895 #include "confdefs.h"
13896 /* System header to define __stub macros and hopefully few prototypes,
13897 which can conflict with char $ac_func(); below. */
13898 #include <assert.h>
13899 /* Override any gcc2 internal prototype to avoid an error. */
13900 /* We use char because int might match the return type of a gcc2
13901 builtin and then its argument prototype would still apply. */
13902 char $ac_func();
13903
13904 int main() {
13905
13906 /* The GNU C library defines this for functions which it implements
13907 to always fail with ENOSYS. Some functions are actually named
13908 something starting with __ and the normal name is an alias. */
13909 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13910 choke me
13911 #else
13912 $ac_func();
13913 #endif
13914
13915 ; return 0; }
13916 EOF
13917 if { (eval echo configure:13918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13918 rm -rf conftest*
13919 eval "ac_cv_func_$ac_func=yes"
13920 else
13921 echo "configure: failed program was:" >&5
13922 cat conftest.$ac_ext >&5
13923 rm -rf conftest*
13924 eval "ac_cv_func_$ac_func=no"
13925 fi
13926 rm -f conftest*
13927 fi
13928
13929 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13930 echo "$ac_t""yes" 1>&6
13931 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13932 cat >> confdefs.h <<EOF
13933 #define $ac_tr_func 1
13934 EOF
13935 cat >> confdefs.h <<\EOF
13936 #define HAVE_INET_ADDR 1
13937 EOF
13938
13939 else
13940 echo "$ac_t""no" 1>&6
13941 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
13942 echo "configure:13943: checking for inet_addr in -lnsl" >&5
13943 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13944 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13945 echo $ac_n "(cached) $ac_c" 1>&6
13946 else
13947 ac_save_LIBS="$LIBS"
13948 LIBS="-lnsl $LIBS"
13949 cat > conftest.$ac_ext <<EOF
13950 #line 13951 "configure"
13951 #include "confdefs.h"
13952 /* Override any gcc2 internal prototype to avoid an error. */
13953 /* We use char because int might match the return type of a gcc2
13954 builtin and then its argument prototype would still apply. */
13955 char inet_addr();
13956
13957 int main() {
13958 inet_addr()
13959 ; return 0; }
13960 EOF
13961 if { (eval echo configure:13962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13962 rm -rf conftest*
13963 eval "ac_cv_lib_$ac_lib_var=yes"
13964 else
13965 echo "configure: failed program was:" >&5
13966 cat conftest.$ac_ext >&5
13967 rm -rf conftest*
13968 eval "ac_cv_lib_$ac_lib_var=no"
13969 fi
13970 rm -f conftest*
13971 LIBS="$ac_save_LIBS"
13972
13973 fi
13974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13975 echo "$ac_t""yes" 1>&6
13976 INET_LINK="nsl"
13977 else
13978 echo "$ac_t""no" 1>&6
13979 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
13980 echo "configure:13981: checking for inet_addr in -lresolv" >&5
13981 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13983 echo $ac_n "(cached) $ac_c" 1>&6
13984 else
13985 ac_save_LIBS="$LIBS"
13986 LIBS="-lresolv $LIBS"
13987 cat > conftest.$ac_ext <<EOF
13988 #line 13989 "configure"
13989 #include "confdefs.h"
13990 /* Override any gcc2 internal prototype to avoid an error. */
13991 /* We use char because int might match the return type of a gcc2
13992 builtin and then its argument prototype would still apply. */
13993 char inet_addr();
13994
13995 int main() {
13996 inet_addr()
13997 ; return 0; }
13998 EOF
13999 if { (eval echo configure:14000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14000 rm -rf conftest*
14001 eval "ac_cv_lib_$ac_lib_var=yes"
14002 else
14003 echo "configure: failed program was:" >&5
14004 cat conftest.$ac_ext >&5
14005 rm -rf conftest*
14006 eval "ac_cv_lib_$ac_lib_var=no"
14007 fi
14008 rm -f conftest*
14009 LIBS="$ac_save_LIBS"
14010
14011 fi
14012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14013 echo "$ac_t""yes" 1>&6
14014 INET_LINK="resolv"
14015
14016 else
14017 echo "$ac_t""no" 1>&6
14018 fi
14019
14020
14021 fi
14022
14023
14024
14025 fi
14026 done
14027
14028
14029 for ac_func in inet_aton
14030 do
14031 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14032 echo "configure:14033: checking for $ac_func" >&5
14033 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14034 echo $ac_n "(cached) $ac_c" 1>&6
14035 else
14036 cat > conftest.$ac_ext <<EOF
14037 #line 14038 "configure"
14038 #include "confdefs.h"
14039 /* System header to define __stub macros and hopefully few prototypes,
14040 which can conflict with char $ac_func(); below. */
14041 #include <assert.h>
14042 /* Override any gcc2 internal prototype to avoid an error. */
14043 /* We use char because int might match the return type of a gcc2
14044 builtin and then its argument prototype would still apply. */
14045 char $ac_func();
14046
14047 int main() {
14048
14049 /* The GNU C library defines this for functions which it implements
14050 to always fail with ENOSYS. Some functions are actually named
14051 something starting with __ and the normal name is an alias. */
14052 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14053 choke me
14054 #else
14055 $ac_func();
14056 #endif
14057
14058 ; return 0; }
14059 EOF
14060 if { (eval echo configure:14061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14061 rm -rf conftest*
14062 eval "ac_cv_func_$ac_func=yes"
14063 else
14064 echo "configure: failed program was:" >&5
14065 cat conftest.$ac_ext >&5
14066 rm -rf conftest*
14067 eval "ac_cv_func_$ac_func=no"
14068 fi
14069 rm -f conftest*
14070 fi
14071
14072 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14073 echo "$ac_t""yes" 1>&6
14074 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14075 cat >> confdefs.h <<EOF
14076 #define $ac_tr_func 1
14077 EOF
14078 cat >> confdefs.h <<\EOF
14079 #define HAVE_INET_ATON 1
14080 EOF
14081
14082 else
14083 echo "$ac_t""no" 1>&6
14084 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
14085 echo "configure:14086: checking for inet_aton in -l$INET_LINK" >&5
14086 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
14087 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14088 echo $ac_n "(cached) $ac_c" 1>&6
14089 else
14090 ac_save_LIBS="$LIBS"
14091 LIBS="-l$INET_LINK $LIBS"
14092 cat > conftest.$ac_ext <<EOF
14093 #line 14094 "configure"
14094 #include "confdefs.h"
14095 /* Override any gcc2 internal prototype to avoid an error. */
14096 /* We use char because int might match the return type of a gcc2
14097 builtin and then its argument prototype would still apply. */
14098 char inet_aton();
14099
14100 int main() {
14101 inet_aton()
14102 ; return 0; }
14103 EOF
14104 if { (eval echo configure:14105: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14105 rm -rf conftest*
14106 eval "ac_cv_lib_$ac_lib_var=yes"
14107 else
14108 echo "configure: failed program was:" >&5
14109 cat conftest.$ac_ext >&5
14110 rm -rf conftest*
14111 eval "ac_cv_lib_$ac_lib_var=no"
14112 fi
14113 rm -f conftest*
14114 LIBS="$ac_save_LIBS"
14115
14116 fi
14117 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14118 echo "$ac_t""yes" 1>&6
14119 cat >> confdefs.h <<\EOF
14120 #define HAVE_INET_ATON 1
14121 EOF
14122
14123 else
14124 echo "$ac_t""no" 1>&6
14125 fi
14126
14127
14128 fi
14129 done
14130
14131
14132 if test "x$INET_LINK" != "x"; then
14133 cat >> confdefs.h <<\EOF
14134 #define HAVE_INET_ADDR 1
14135 EOF
14136
14137 INET_LINK="-l$INET_LINK"
14138 fi
14139
14140 fi
14141
14142
14143 cat > confcache <<\EOF
14144 # This file is a shell script that caches the results of configure
14145 # tests run on this system so they can be shared between configure
14146 # scripts and configure runs. It is not useful on other systems.
14147 # If it contains results you don't want to keep, you may remove or edit it.
14148 #
14149 # By default, configure uses ./config.cache as the cache file,
14150 # creating it if it does not exist already. You can give configure
14151 # the --cache-file=FILE option to use a different cache file; that is
14152 # what configure does when it calls configure scripts in
14153 # subdirectories, so they share the cache.
14154 # Giving --cache-file=/dev/null disables caching, for debugging configure.
14155 # config.status only pays attention to the cache file if you give it the
14156 # --recheck option to rerun configure.
14157 #
14158 EOF
14159 # The following way of writing the cache mishandles newlines in values,
14160 # but we know of no workaround that is simple, portable, and efficient.
14161 # So, don't put newlines in cache variables' values.
14162 # Ultrix sh set writes to stderr and can't be redirected directly,
14163 # and sets the high bit in the cache file unless we assign to the vars.
14164 (set) 2>&1 |
14165 case `(ac_space=' '; set | grep ac_space) 2>&1` in
14166 *ac_space=\ *)
14167 # `set' does not quote correctly, so add quotes (double-quote substitution
14168 # turns \\\\ into \\, and sed turns \\ into \).
14169 sed -n \
14170 -e "s/'/'\\\\''/g" \
14171 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
14172 ;;
14173 *)
14174 # `set' quotes correctly as required by POSIX, so do not add quotes.
14175 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
14176 ;;
14177 esac >> confcache
14178 if cmp -s $cache_file confcache; then
14179 :
14180 else
14181 if test -w $cache_file; then
14182 echo "updating cache $cache_file"
14183 cat confcache > $cache_file
14184 else
14185 echo "not updating unwritable cache $cache_file"
14186 fi
14187 fi
14188 rm -f confcache
14189
14190
14191
14192 if test "$TOOLKIT" != "MSW"; then
14193
14194
14195 THREADS_LINK=""
14196 THREADS_OBJ=""
14197
14198 if test "$wxUSE_THREADS" = "yes" ; then
14199 if test "$wxUSE_WINE" = 1 ; then
14200 echo "configure: warning: Threads are not supported under WINE" 1>&2
14201 wxUSE_THREADS="no"
14202 elif test "$USE_BEOS" = 1; then
14203 echo "configure: warning: BeOS threads are not yet supported" 1>&2
14204 wxUSE_THREADS="no"
14205 fi
14206 fi
14207
14208 if test "$wxUSE_THREADS" = "yes" ; then
14209
14210 if test "$USE_AIX" = 1; then
14211 THREADS_LIB=pthreads
14212 else
14213 THREADS_LIB=pthread
14214 fi
14215
14216 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
14217 echo "configure:14218: checking for pthread_create in -l$THREADS_LIB" >&5
14218 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
14219 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14220 echo $ac_n "(cached) $ac_c" 1>&6
14221 else
14222 ac_save_LIBS="$LIBS"
14223 LIBS="-l$THREADS_LIB $LIBS"
14224 cat > conftest.$ac_ext <<EOF
14225 #line 14226 "configure"
14226 #include "confdefs.h"
14227 /* Override any gcc2 internal prototype to avoid an error. */
14228 /* We use char because int might match the return type of a gcc2
14229 builtin and then its argument prototype would still apply. */
14230 char pthread_create();
14231
14232 int main() {
14233 pthread_create()
14234 ; return 0; }
14235 EOF
14236 if { (eval echo configure:14237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14237 rm -rf conftest*
14238 eval "ac_cv_lib_$ac_lib_var=yes"
14239 else
14240 echo "configure: failed program was:" >&5
14241 cat conftest.$ac_ext >&5
14242 rm -rf conftest*
14243 eval "ac_cv_lib_$ac_lib_var=no"
14244 fi
14245 rm -f conftest*
14246 LIBS="$ac_save_LIBS"
14247
14248 fi
14249 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14250 echo "$ac_t""yes" 1>&6
14251
14252 THREADS_OBJ="threadpsx.lo"
14253 THREADS_LINK=$THREADS_LIB
14254
14255 else
14256 echo "$ac_t""no" 1>&6
14257
14258 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
14259 echo "configure:14260: checking for pthread_create in -lc_r" >&5
14260 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14261 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14262 echo $ac_n "(cached) $ac_c" 1>&6
14263 else
14264 ac_save_LIBS="$LIBS"
14265 LIBS="-lc_r $LIBS"
14266 cat > conftest.$ac_ext <<EOF
14267 #line 14268 "configure"
14268 #include "confdefs.h"
14269 /* Override any gcc2 internal prototype to avoid an error. */
14270 /* We use char because int might match the return type of a gcc2
14271 builtin and then its argument prototype would still apply. */
14272 char pthread_create();
14273
14274 int main() {
14275 pthread_create()
14276 ; return 0; }
14277 EOF
14278 if { (eval echo configure:14279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14279 rm -rf conftest*
14280 eval "ac_cv_lib_$ac_lib_var=yes"
14281 else
14282 echo "configure: failed program was:" >&5
14283 cat conftest.$ac_ext >&5
14284 rm -rf conftest*
14285 eval "ac_cv_lib_$ac_lib_var=no"
14286 fi
14287 rm -f conftest*
14288 LIBS="$ac_save_LIBS"
14289
14290 fi
14291 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14292 echo "$ac_t""yes" 1>&6
14293
14294 THREADS_OBJ="threadpsx.lo"
14295 THREADS_LINK="c_r"
14296
14297 else
14298 echo "$ac_t""no" 1>&6
14299
14300 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14301 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
14302 echo "configure:14303: checking for sys/prctl.h" >&5
14303 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14304 echo $ac_n "(cached) $ac_c" 1>&6
14305 else
14306 cat > conftest.$ac_ext <<EOF
14307 #line 14308 "configure"
14308 #include "confdefs.h"
14309 #include <sys/prctl.h>
14310 EOF
14311 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14312 { (eval echo configure:14313: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14313 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14314 if test -z "$ac_err"; then
14315 rm -rf conftest*
14316 eval "ac_cv_header_$ac_safe=yes"
14317 else
14318 echo "$ac_err" >&5
14319 echo "configure: failed program was:" >&5
14320 cat conftest.$ac_ext >&5
14321 rm -rf conftest*
14322 eval "ac_cv_header_$ac_safe=no"
14323 fi
14324 rm -f conftest*
14325 fi
14326 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14327 echo "$ac_t""yes" 1>&6
14328
14329 THREADS_OBJ="threadsgi.lo"
14330
14331 else
14332 echo "$ac_t""no" 1>&6
14333 fi
14334
14335
14336 fi
14337
14338
14339 fi
14340
14341
14342 if test -z "$THREADS_OBJ" ; then
14343 wxUSE_THREADS=no
14344 echo "configure: warning: No thread support on this system" 1>&2
14345 fi
14346 fi
14347
14348 if test "$wxUSE_THREADS" = "yes" ; then
14349 for ac_func in thr_setconcurrency
14350 do
14351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14352 echo "configure:14353: checking for $ac_func" >&5
14353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14354 echo $ac_n "(cached) $ac_c" 1>&6
14355 else
14356 cat > conftest.$ac_ext <<EOF
14357 #line 14358 "configure"
14358 #include "confdefs.h"
14359 /* System header to define __stub macros and hopefully few prototypes,
14360 which can conflict with char $ac_func(); below. */
14361 #include <assert.h>
14362 /* Override any gcc2 internal prototype to avoid an error. */
14363 /* We use char because int might match the return type of a gcc2
14364 builtin and then its argument prototype would still apply. */
14365 char $ac_func();
14366
14367 int main() {
14368
14369 /* The GNU C library defines this for functions which it implements
14370 to always fail with ENOSYS. Some functions are actually named
14371 something starting with __ and the normal name is an alias. */
14372 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14373 choke me
14374 #else
14375 $ac_func();
14376 #endif
14377
14378 ; return 0; }
14379 EOF
14380 if { (eval echo configure:14381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14381 rm -rf conftest*
14382 eval "ac_cv_func_$ac_func=yes"
14383 else
14384 echo "configure: failed program was:" >&5
14385 cat conftest.$ac_ext >&5
14386 rm -rf conftest*
14387 eval "ac_cv_func_$ac_func=no"
14388 fi
14389 rm -f conftest*
14390 fi
14391
14392 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14393 echo "$ac_t""yes" 1>&6
14394 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14395 cat >> confdefs.h <<EOF
14396 #define $ac_tr_func 1
14397 EOF
14398
14399 else
14400 echo "$ac_t""no" 1>&6
14401 fi
14402 done
14403
14404
14405
14406 for ac_hdr in sched.h
14407 do
14408 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14409 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14410 echo "configure:14411: checking for $ac_hdr" >&5
14411 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14412 echo $ac_n "(cached) $ac_c" 1>&6
14413 else
14414 cat > conftest.$ac_ext <<EOF
14415 #line 14416 "configure"
14416 #include "confdefs.h"
14417 #include <$ac_hdr>
14418 EOF
14419 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14420 { (eval echo configure:14421: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14421 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14422 if test -z "$ac_err"; then
14423 rm -rf conftest*
14424 eval "ac_cv_header_$ac_safe=yes"
14425 else
14426 echo "$ac_err" >&5
14427 echo "configure: failed program was:" >&5
14428 cat conftest.$ac_ext >&5
14429 rm -rf conftest*
14430 eval "ac_cv_header_$ac_safe=no"
14431 fi
14432 rm -f conftest*
14433 fi
14434 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14435 echo "$ac_t""yes" 1>&6
14436 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14437 cat >> confdefs.h <<EOF
14438 #define $ac_tr_hdr 1
14439 EOF
14440
14441 else
14442 echo "$ac_t""no" 1>&6
14443 fi
14444 done
14445
14446
14447 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
14448 echo "configure:14449: checking for sched_yield in -l$THREADS_LINK" >&5
14449 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14451 echo $ac_n "(cached) $ac_c" 1>&6
14452 else
14453 ac_save_LIBS="$LIBS"
14454 LIBS="-l$THREADS_LINK $LIBS"
14455 cat > conftest.$ac_ext <<EOF
14456 #line 14457 "configure"
14457 #include "confdefs.h"
14458 /* Override any gcc2 internal prototype to avoid an error. */
14459 /* We use char because int might match the return type of a gcc2
14460 builtin and then its argument prototype would still apply. */
14461 char sched_yield();
14462
14463 int main() {
14464 sched_yield()
14465 ; return 0; }
14466 EOF
14467 if { (eval echo configure:14468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14468 rm -rf conftest*
14469 eval "ac_cv_lib_$ac_lib_var=yes"
14470 else
14471 echo "configure: failed program was:" >&5
14472 cat conftest.$ac_ext >&5
14473 rm -rf conftest*
14474 eval "ac_cv_lib_$ac_lib_var=no"
14475 fi
14476 rm -f conftest*
14477 LIBS="$ac_save_LIBS"
14478
14479 fi
14480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14481 echo "$ac_t""yes" 1>&6
14482 cat >> confdefs.h <<\EOF
14483 #define HAVE_SCHED_YIELD 1
14484 EOF
14485
14486 else
14487 echo "$ac_t""no" 1>&6
14488 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
14489 echo "configure:14490: checking for sched_yield in -lposix4" >&5
14490 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14491 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14492 echo $ac_n "(cached) $ac_c" 1>&6
14493 else
14494 ac_save_LIBS="$LIBS"
14495 LIBS="-lposix4 $LIBS"
14496 cat > conftest.$ac_ext <<EOF
14497 #line 14498 "configure"
14498 #include "confdefs.h"
14499 /* Override any gcc2 internal prototype to avoid an error. */
14500 /* We use char because int might match the return type of a gcc2
14501 builtin and then its argument prototype would still apply. */
14502 char sched_yield();
14503
14504 int main() {
14505 sched_yield()
14506 ; return 0; }
14507 EOF
14508 if { (eval echo configure:14509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14509 rm -rf conftest*
14510 eval "ac_cv_lib_$ac_lib_var=yes"
14511 else
14512 echo "configure: failed program was:" >&5
14513 cat conftest.$ac_ext >&5
14514 rm -rf conftest*
14515 eval "ac_cv_lib_$ac_lib_var=no"
14516 fi
14517 rm -f conftest*
14518 LIBS="$ac_save_LIBS"
14519
14520 fi
14521 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14522 echo "$ac_t""yes" 1>&6
14523 cat >> confdefs.h <<\EOF
14524 #define HAVE_SCHED_YIELD 1
14525 EOF
14526 POSIX4_LINK="-lposix4"
14527 else
14528 echo "$ac_t""no" 1>&6
14529 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14530
14531 fi
14532
14533
14534 fi
14535
14536
14537 HAVE_PRIOR_FUNCS=0
14538 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
14539 echo "configure:14540: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
14540 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14541 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14542 echo $ac_n "(cached) $ac_c" 1>&6
14543 else
14544 ac_save_LIBS="$LIBS"
14545 LIBS="-l$THREADS_LINK $LIBS"
14546 cat > conftest.$ac_ext <<EOF
14547 #line 14548 "configure"
14548 #include "confdefs.h"
14549 /* Override any gcc2 internal prototype to avoid an error. */
14550 /* We use char because int might match the return type of a gcc2
14551 builtin and then its argument prototype would still apply. */
14552 char pthread_attr_getschedpolicy();
14553
14554 int main() {
14555 pthread_attr_getschedpolicy()
14556 ; return 0; }
14557 EOF
14558 if { (eval echo configure:14559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14559 rm -rf conftest*
14560 eval "ac_cv_lib_$ac_lib_var=yes"
14561 else
14562 echo "configure: failed program was:" >&5
14563 cat conftest.$ac_ext >&5
14564 rm -rf conftest*
14565 eval "ac_cv_lib_$ac_lib_var=no"
14566 fi
14567 rm -f conftest*
14568 LIBS="$ac_save_LIBS"
14569
14570 fi
14571 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14572 echo "$ac_t""yes" 1>&6
14573 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
14574 echo "configure:14575: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
14575 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14577 echo $ac_n "(cached) $ac_c" 1>&6
14578 else
14579 ac_save_LIBS="$LIBS"
14580 LIBS="-l$THREADS_LINK $LIBS"
14581 cat > conftest.$ac_ext <<EOF
14582 #line 14583 "configure"
14583 #include "confdefs.h"
14584 /* Override any gcc2 internal prototype to avoid an error. */
14585 /* We use char because int might match the return type of a gcc2
14586 builtin and then its argument prototype would still apply. */
14587 char pthread_attr_setschedparam();
14588
14589 int main() {
14590 pthread_attr_setschedparam()
14591 ; return 0; }
14592 EOF
14593 if { (eval echo configure:14594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14594 rm -rf conftest*
14595 eval "ac_cv_lib_$ac_lib_var=yes"
14596 else
14597 echo "configure: failed program was:" >&5
14598 cat conftest.$ac_ext >&5
14599 rm -rf conftest*
14600 eval "ac_cv_lib_$ac_lib_var=no"
14601 fi
14602 rm -f conftest*
14603 LIBS="$ac_save_LIBS"
14604
14605 fi
14606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14607 echo "$ac_t""yes" 1>&6
14608 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
14609 echo "configure:14610: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
14610 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14611 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14612 echo $ac_n "(cached) $ac_c" 1>&6
14613 else
14614 ac_save_LIBS="$LIBS"
14615 LIBS="-l$THREADS_LINK $LIBS"
14616 cat > conftest.$ac_ext <<EOF
14617 #line 14618 "configure"
14618 #include "confdefs.h"
14619 /* Override any gcc2 internal prototype to avoid an error. */
14620 /* We use char because int might match the return type of a gcc2
14621 builtin and then its argument prototype would still apply. */
14622 char sched_get_priority_max();
14623
14624 int main() {
14625 sched_get_priority_max()
14626 ; return 0; }
14627 EOF
14628 if { (eval echo configure:14629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14629 rm -rf conftest*
14630 eval "ac_cv_lib_$ac_lib_var=yes"
14631 else
14632 echo "configure: failed program was:" >&5
14633 cat conftest.$ac_ext >&5
14634 rm -rf conftest*
14635 eval "ac_cv_lib_$ac_lib_var=no"
14636 fi
14637 rm -f conftest*
14638 LIBS="$ac_save_LIBS"
14639
14640 fi
14641 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14642 echo "$ac_t""yes" 1>&6
14643 HAVE_PRIOR_FUNCS=1
14644 else
14645 echo "$ac_t""no" 1>&6
14646 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
14647 echo "configure:14648: checking for sched_get_priority_max in -lposix4" >&5
14648 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14649 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14650 echo $ac_n "(cached) $ac_c" 1>&6
14651 else
14652 ac_save_LIBS="$LIBS"
14653 LIBS="-lposix4 $LIBS"
14654 cat > conftest.$ac_ext <<EOF
14655 #line 14656 "configure"
14656 #include "confdefs.h"
14657 /* Override any gcc2 internal prototype to avoid an error. */
14658 /* We use char because int might match the return type of a gcc2
14659 builtin and then its argument prototype would still apply. */
14660 char sched_get_priority_max();
14661
14662 int main() {
14663 sched_get_priority_max()
14664 ; return 0; }
14665 EOF
14666 if { (eval echo configure:14667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14667 rm -rf conftest*
14668 eval "ac_cv_lib_$ac_lib_var=yes"
14669 else
14670 echo "configure: failed program was:" >&5
14671 cat conftest.$ac_ext >&5
14672 rm -rf conftest*
14673 eval "ac_cv_lib_$ac_lib_var=no"
14674 fi
14675 rm -f conftest*
14676 LIBS="$ac_save_LIBS"
14677
14678 fi
14679 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14680 echo "$ac_t""yes" 1>&6
14681
14682 HAVE_PRIOR_FUNCS=1
14683 POSIX4_LINK="-lposix4"
14684
14685 else
14686 echo "$ac_t""no" 1>&6
14687 fi
14688
14689
14690 fi
14691
14692
14693 else
14694 echo "$ac_t""no" 1>&6
14695 fi
14696
14697
14698 else
14699 echo "$ac_t""no" 1>&6
14700 fi
14701
14702
14703 if test "$HAVE_PRIOR_FUNCS" = 1; then
14704 cat >> confdefs.h <<\EOF
14705 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14706 EOF
14707
14708 else
14709 echo "configure: warning: Setting thread priority will not work" 1>&2
14710 fi
14711
14712 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
14713 echo "configure:14714: checking for pthread_cancel in -l$THREADS_LINK" >&5
14714 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14715 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14716 echo $ac_n "(cached) $ac_c" 1>&6
14717 else
14718 ac_save_LIBS="$LIBS"
14719 LIBS="-l$THREADS_LINK $LIBS"
14720 cat > conftest.$ac_ext <<EOF
14721 #line 14722 "configure"
14722 #include "confdefs.h"
14723 /* Override any gcc2 internal prototype to avoid an error. */
14724 /* We use char because int might match the return type of a gcc2
14725 builtin and then its argument prototype would still apply. */
14726 char pthread_cancel();
14727
14728 int main() {
14729 pthread_cancel()
14730 ; return 0; }
14731 EOF
14732 if { (eval echo configure:14733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14733 rm -rf conftest*
14734 eval "ac_cv_lib_$ac_lib_var=yes"
14735 else
14736 echo "configure: failed program was:" >&5
14737 cat conftest.$ac_ext >&5
14738 rm -rf conftest*
14739 eval "ac_cv_lib_$ac_lib_var=no"
14740 fi
14741 rm -f conftest*
14742 LIBS="$ac_save_LIBS"
14743
14744 fi
14745 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14746 echo "$ac_t""yes" 1>&6
14747 cat >> confdefs.h <<\EOF
14748 #define HAVE_PTHREAD_CANCEL 1
14749 EOF
14750
14751 else
14752 echo "$ac_t""no" 1>&6
14753 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
14754 fi
14755
14756
14757 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
14758 echo "configure:14759: checking for pthread_cleanup_push/pop" >&5
14759 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14760 echo $ac_n "(cached) $ac_c" 1>&6
14761 else
14762
14763 cat > conftest.$ac_ext <<EOF
14764 #line 14765 "configure"
14765 #include "confdefs.h"
14766 #include <pthread.h>
14767 int main() {
14768
14769 pthread_cleanup_push(NULL, NULL);
14770 pthread_cleanup_pop(0);
14771
14772 ; return 0; }
14773 EOF
14774 if { (eval echo configure:14775: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14775 rm -rf conftest*
14776
14777 wx_cv_func_pthread_cleanup_push=yes
14778
14779 else
14780 echo "configure: failed program was:" >&5
14781 cat conftest.$ac_ext >&5
14782 rm -rf conftest*
14783
14784 wx_cv_func_pthread_cleanup_push=no
14785
14786 fi
14787 rm -f conftest*
14788
14789 fi
14790
14791 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
14792
14793 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
14794 cat >> confdefs.h <<\EOF
14795 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14796 EOF
14797
14798 fi
14799
14800
14801 if test "x$wx_lib_glibc21" = "xyes"; then
14802 CFLAGS="$CFLAGS -D_XOPEN_SOURCE=500"
14803 fi
14804
14805 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
14806 echo "configure:14807: checking for pthread_mutexattr_t" >&5
14807 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14808 echo $ac_n "(cached) $ac_c" 1>&6
14809 else
14810
14811 cat > conftest.$ac_ext <<EOF
14812 #line 14813 "configure"
14813 #include "confdefs.h"
14814 #include <pthread.h>
14815 int main() {
14816
14817 pthread_mutexattr_t attr;
14818 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
14819
14820 ; return 0; }
14821 EOF
14822 if { (eval echo configure:14823: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14823 rm -rf conftest*
14824
14825 wx_cv_type_pthread_mutexattr_t=yes
14826
14827 else
14828 echo "configure: failed program was:" >&5
14829 cat conftest.$ac_ext >&5
14830 rm -rf conftest*
14831
14832 wx_cv_type_pthread_mutexattr_t=no
14833
14834
14835 fi
14836 rm -f conftest*
14837
14838 fi
14839
14840 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
14841
14842 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
14843 cat >> confdefs.h <<\EOF
14844 #define HAVE_PTHREAD_MUTEXATTR_T 1
14845 EOF
14846
14847 else
14848 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
14849 echo "configure:14850: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
14850 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14851 echo $ac_n "(cached) $ac_c" 1>&6
14852 else
14853
14854 cat > conftest.$ac_ext <<EOF
14855 #line 14856 "configure"
14856 #include "confdefs.h"
14857 #include <pthread.h>
14858 int main() {
14859
14860 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
14861
14862 ; return 0; }
14863 EOF
14864 if { (eval echo configure:14865: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14865 rm -rf conftest*
14866
14867 wx_cv_type_pthread_rec_mutex_init=yes
14868
14869 else
14870 echo "configure: failed program was:" >&5
14871 cat conftest.$ac_ext >&5
14872 rm -rf conftest*
14873
14874 wx_cv_type_pthread_rec_mutex_init=no
14875
14876
14877 fi
14878 rm -f conftest*
14879
14880 fi
14881
14882 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
14883 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
14884 cat >> confdefs.h <<\EOF
14885 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14886 EOF
14887
14888 else
14889 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
14890 fi
14891 fi
14892
14893 THREADS_LINK="-l$THREADS_LINK"
14894
14895 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14896 CFLAGS="${CFLAGS} -mt"
14897 CXXFLAGS="${CXXFLAGS} -mt"
14898 LDFLAGS="${LDFLAGS} -mt"
14899 fi
14900 fi
14901
14902 fi
14903
14904 if test "$wxUSE_THREADS" = "yes"; then
14905 cat >> confdefs.h <<\EOF
14906 #define wxUSE_THREADS 1
14907 EOF
14908
14909
14910 if test "$USE_DARWIN" != 1; then
14911 CFLAGS="${CFLAGS} -D_REENTRANT"
14912 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14913 fi
14914
14915 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14916 else
14917 if test "$ac_cv_func_strtok_r" = "yes"; then
14918 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
14919 echo "configure:14920: checking if -D_REENTRANT is needed" >&5
14920 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14921 CFLAGS="${CFLAGS} -D_REENTRANT"
14922 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14923 echo "$ac_t""yes" 1>&6
14924 else
14925 echo "$ac_t""no" 1>&6
14926 fi
14927 fi
14928 fi
14929
14930 if test "$WXGTK20" = 1 ; then
14931 cat >> confdefs.h <<EOF
14932 #define __WXGTK20__ $WXGTK20
14933 EOF
14934
14935 WXGTK12=1
14936 fi
14937
14938 if test "$WXGTK12" = 1 ; then
14939 cat >> confdefs.h <<EOF
14940 #define __WXGTK12__ $WXGTK12
14941 EOF
14942
14943 fi
14944
14945 if test "$WXGTK127" = 1 ; then
14946 cat >> confdefs.h <<EOF
14947 #define __WXGTK127__ $WXGTK127
14948 EOF
14949
14950 fi
14951
14952 if test "$WXWINE" = 1 ; then
14953 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14954 fi
14955
14956 if test "$wxUSE_MAC" = 1 ; then
14957 TOOLKIT_DEF="${TOOLKIT_DEF} -DTARGET_CARBON"
14958 CFLAGS="${CFLAGS} -fpascal-strings"
14959 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fpascal-strings"
14960 # Extract the first word of "Rez", so it can be a program name with args.
14961 set dummy Rez; ac_word=$2
14962 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14963 echo "configure:14964: checking for $ac_word" >&5
14964 if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14965 echo $ac_n "(cached) $ac_c" 1>&6
14966 else
14967 if test -n "$REZ"; then
14968 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14969 else
14970 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14971 ac_dummy="$PATH"
14972 for ac_dir in $ac_dummy; do
14973 test -z "$ac_dir" && ac_dir=.
14974 if test -f $ac_dir/$ac_word; then
14975 ac_cv_prog_REZ="Rez"
14976 break
14977 fi
14978 done
14979 IFS="$ac_save_ifs"
14980 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14981 fi
14982 fi
14983 REZ="$ac_cv_prog_REZ"
14984 if test -n "$REZ"; then
14985 echo "$ac_t""$REZ" 1>&6
14986 else
14987 echo "$ac_t""no" 1>&6
14988 fi
14989
14990 # Extract the first word of "Derez", so it can be a program name with args.
14991 set dummy Derez; ac_word=$2
14992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14993 echo "configure:14994: checking for $ac_word" >&5
14994 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14995 echo $ac_n "(cached) $ac_c" 1>&6
14996 else
14997 if test -n "$DEREZ"; then
14998 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14999 else
15000 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
15001 ac_dummy="$PATH"
15002 for ac_dir in $ac_dummy; do
15003 test -z "$ac_dir" && ac_dir=.
15004 if test -f $ac_dir/$ac_word; then
15005 ac_cv_prog_DEREZ="Derez"
15006 break
15007 fi
15008 done
15009 IFS="$ac_save_ifs"
15010 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
15011 fi
15012 fi
15013 DEREZ="$ac_cv_prog_DEREZ"
15014 if test -n "$DEREZ"; then
15015 echo "$ac_t""$DEREZ" 1>&6
15016 else
15017 echo "$ac_t""no" 1>&6
15018 fi
15019
15020 RESCOMP=${REZ}
15021 REZFLAGS="-d __UNIX__ -useDF"
15022 DEREZFLAGS="Carbon.r -useDF"
15023 RESFLAGS="Carbon.r -t APPL"
15024 LIBWXMACRES="\$(LIBWX_MACRES)"
15025 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
15026 fi
15027
15028 if test "$wxUSE_CYGWIN" = 1 ; then
15029 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
15030 fi
15031
15032 WXDEBUG=
15033
15034 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
15035 WXDEBUG="-g"
15036 wxUSE_OPTIMISE=no
15037 fi
15038
15039 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
15040 wxUSE_DEBUG_INFO=yes
15041 WXDEBUG="-ggdb"
15042 fi
15043
15044 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
15045 cat >> confdefs.h <<\EOF
15046 #define WXDEBUG 1
15047 EOF
15048
15049 WXDEBUG_DEFINE="-D__WXDEBUG__"
15050 else
15051 if test "$wxUSE_GTK" = 1 ; then
15052 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
15053 fi
15054 fi
15055
15056 if test "$wxUSE_MEM_TRACING" = "yes" ; then
15057 cat >> confdefs.h <<\EOF
15058 #define wxUSE_MEMORY_TRACING 1
15059 EOF
15060
15061 cat >> confdefs.h <<\EOF
15062 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
15063 EOF
15064
15065 cat >> confdefs.h <<\EOF
15066 #define wxUSE_DEBUG_NEW_ALWAYS 1
15067 EOF
15068
15069 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
15070 fi
15071
15072 if test "$wxUSE_DMALLOC" = "yes" ; then
15073 DMALLOC_LINK="-ldmalloc"
15074 fi
15075
15076 PROFILE=
15077 if test "$wxUSE_PROFILE" = "yes" ; then
15078 PROFILE="-pg"
15079 fi
15080
15081 DEP_INFO_FLAGS=
15082 CODE_GEN_FLAGS=
15083 CODE_GEN_FLAGS_CXX=
15084 if test "$GCC" = yes ; then
15085 if test "$wxUSE_NO_RTTI" = "yes" ; then
15086 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
15087 fi
15088 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
15089 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
15090 fi
15091 if test "$wxUSE_PERMISSIVE" = "yes" ; then
15092 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
15093 fi
15094 if test "$wxUSE_NO_DEPS" = "no" ; then
15095 DEP_INFO_FLAGS="-MMD"
15096 fi
15097 fi
15098
15099
15100 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
15101 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
15102 if test "$wxUSE_OPTIMISE" = "no" ; then
15103 OPTIMISE=
15104 else
15105 if test "$GCC" = yes ; then
15106 OPTIMISE="-O2"
15107 case "${host}" in
15108 i586-*-*|i686-*-* )
15109 OPTIMISE="${OPTIMISE} "
15110 ;;
15111 esac
15112 else
15113 OPTIMISE="-O"
15114 fi
15115 fi
15116
15117 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
15118 cat >> confdefs.h <<\EOF
15119 #define WXWIN_COMPATIBILITY_2 1
15120 EOF
15121
15122
15123 WXWIN_COMPATIBILITY_2_2="yes"
15124 fi
15125
15126 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
15127 cat >> confdefs.h <<\EOF
15128 #define WXWIN_COMPATIBILITY_2_2 1
15129 EOF
15130
15131 fi
15132
15133
15134 ZLIB_INCLUDE=
15135 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
15136 cat >> confdefs.h <<\EOF
15137 #define wxUSE_ZLIB 1
15138 EOF
15139
15140 if test "$wxUSE_ZLIB" = "yes" ; then
15141 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15142 else
15143 ZLIB_LINK=
15144 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15145 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
15146 echo "configure:15147: checking for zlib.h" >&5
15147 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15148 echo $ac_n "(cached) $ac_c" 1>&6
15149 else
15150 cat > conftest.$ac_ext <<EOF
15151 #line 15152 "configure"
15152 #include "confdefs.h"
15153 #include <zlib.h>
15154 EOF
15155 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15156 { (eval echo configure:15157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15157 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15158 if test -z "$ac_err"; then
15159 rm -rf conftest*
15160 eval "ac_cv_header_$ac_safe=yes"
15161 else
15162 echo "$ac_err" >&5
15163 echo "configure: failed program was:" >&5
15164 cat conftest.$ac_ext >&5
15165 rm -rf conftest*
15166 eval "ac_cv_header_$ac_safe=no"
15167 fi
15168 rm -f conftest*
15169 fi
15170 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15171 echo "$ac_t""yes" 1>&6
15172 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
15173 echo "configure:15174: checking for deflate in -lz" >&5
15174 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15175 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15176 echo $ac_n "(cached) $ac_c" 1>&6
15177 else
15178 ac_save_LIBS="$LIBS"
15179 LIBS="-lz $LIBS"
15180 cat > conftest.$ac_ext <<EOF
15181 #line 15182 "configure"
15182 #include "confdefs.h"
15183 /* Override any gcc2 internal prototype to avoid an error. */
15184 /* We use char because int might match the return type of a gcc2
15185 builtin and then its argument prototype would still apply. */
15186 char deflate();
15187
15188 int main() {
15189 deflate()
15190 ; return 0; }
15191 EOF
15192 if { (eval echo configure:15193: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15193 rm -rf conftest*
15194 eval "ac_cv_lib_$ac_lib_var=yes"
15195 else
15196 echo "configure: failed program was:" >&5
15197 cat conftest.$ac_ext >&5
15198 rm -rf conftest*
15199 eval "ac_cv_lib_$ac_lib_var=no"
15200 fi
15201 rm -f conftest*
15202 LIBS="$ac_save_LIBS"
15203
15204 fi
15205 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15206 echo "$ac_t""yes" 1>&6
15207 ZLIB_LINK="-lz"
15208 else
15209 echo "$ac_t""no" 1>&6
15210 fi
15211
15212 else
15213 echo "$ac_t""no" 1>&6
15214 fi
15215
15216 if test "x$ZLIB_LINK" = "x" ; then
15217 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
15218 fi
15219 fi
15220 fi
15221
15222 PNG_INCLUDE=
15223 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
15224 cat >> confdefs.h <<\EOF
15225 #define wxUSE_LIBPNG 1
15226 EOF
15227
15228 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
15229 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
15230 wxUSE_LIBPNG=yes
15231 fi
15232
15233 if test "$wxUSE_LIBPNG" = "yes" ; then
15234 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15235 else
15236 PNG_LINK=
15237 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15238 echo $ac_n "checking for png.h""... $ac_c" 1>&6
15239 echo "configure:15240: checking for png.h" >&5
15240 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15241 echo $ac_n "(cached) $ac_c" 1>&6
15242 else
15243 cat > conftest.$ac_ext <<EOF
15244 #line 15245 "configure"
15245 #include "confdefs.h"
15246 #include <png.h>
15247 EOF
15248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15249 { (eval echo configure:15250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15251 if test -z "$ac_err"; then
15252 rm -rf conftest*
15253 eval "ac_cv_header_$ac_safe=yes"
15254 else
15255 echo "$ac_err" >&5
15256 echo "configure: failed program was:" >&5
15257 cat conftest.$ac_ext >&5
15258 rm -rf conftest*
15259 eval "ac_cv_header_$ac_safe=no"
15260 fi
15261 rm -f conftest*
15262 fi
15263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15264 echo "$ac_t""yes" 1>&6
15265 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
15266 echo "configure:15267: checking for png_check_sig in -lpng" >&5
15267 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15268 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15269 echo $ac_n "(cached) $ac_c" 1>&6
15270 else
15271 ac_save_LIBS="$LIBS"
15272 LIBS="-lpng -lz -lm $LIBS"
15273 cat > conftest.$ac_ext <<EOF
15274 #line 15275 "configure"
15275 #include "confdefs.h"
15276 /* Override any gcc2 internal prototype to avoid an error. */
15277 /* We use char because int might match the return type of a gcc2
15278 builtin and then its argument prototype would still apply. */
15279 char png_check_sig();
15280
15281 int main() {
15282 png_check_sig()
15283 ; return 0; }
15284 EOF
15285 if { (eval echo configure:15286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15286 rm -rf conftest*
15287 eval "ac_cv_lib_$ac_lib_var=yes"
15288 else
15289 echo "configure: failed program was:" >&5
15290 cat conftest.$ac_ext >&5
15291 rm -rf conftest*
15292 eval "ac_cv_lib_$ac_lib_var=no"
15293 fi
15294 rm -f conftest*
15295 LIBS="$ac_save_LIBS"
15296
15297 fi
15298 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15299 echo "$ac_t""yes" 1>&6
15300 PNG_LINK="-lpng"
15301 else
15302 echo "$ac_t""no" 1>&6
15303 fi
15304
15305
15306 else
15307 echo "$ac_t""no" 1>&6
15308 fi
15309
15310 if test "x$PNG_LINK" = "x" ; then
15311 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
15312 fi
15313 fi
15314
15315 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15316 fi
15317
15318 JPEG_INCLUDE=
15319 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
15320 cat >> confdefs.h <<\EOF
15321 #define wxUSE_LIBJPEG 1
15322 EOF
15323
15324 if test "$wxUSE_LIBJPEG" = "yes" ; then
15325 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15326 else
15327 JPEG_LINK=
15328 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
15329 echo "configure:15330: checking for jpeglib.h" >&5
15330 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
15331 echo $ac_n "(cached) $ac_c" 1>&6
15332 else
15333 cat > conftest.$ac_ext <<EOF
15334 #line 15335 "configure"
15335 #include "confdefs.h"
15336
15337 #undef HAVE_STDLIB_H
15338 #include <stdio.h>
15339 #include <jpeglib.h>
15340
15341 int main() {
15342
15343
15344 ; return 0; }
15345 EOF
15346 if { (eval echo configure:15347: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15347 rm -rf conftest*
15348 ac_cv_header_jpeglib_h=yes
15349 else
15350 echo "configure: failed program was:" >&5
15351 cat conftest.$ac_ext >&5
15352 rm -rf conftest*
15353 ac_cv_header_jpeglib_h=no
15354
15355 fi
15356 rm -f conftest*
15357
15358 fi
15359
15360 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15361
15362 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15363 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
15364 echo "configure:15365: checking for jpeg_read_header in -ljpeg" >&5
15365 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15367 echo $ac_n "(cached) $ac_c" 1>&6
15368 else
15369 ac_save_LIBS="$LIBS"
15370 LIBS="-ljpeg $LIBS"
15371 cat > conftest.$ac_ext <<EOF
15372 #line 15373 "configure"
15373 #include "confdefs.h"
15374 /* Override any gcc2 internal prototype to avoid an error. */
15375 /* We use char because int might match the return type of a gcc2
15376 builtin and then its argument prototype would still apply. */
15377 char jpeg_read_header();
15378
15379 int main() {
15380 jpeg_read_header()
15381 ; return 0; }
15382 EOF
15383 if { (eval echo configure:15384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15384 rm -rf conftest*
15385 eval "ac_cv_lib_$ac_lib_var=yes"
15386 else
15387 echo "configure: failed program was:" >&5
15388 cat conftest.$ac_ext >&5
15389 rm -rf conftest*
15390 eval "ac_cv_lib_$ac_lib_var=no"
15391 fi
15392 rm -f conftest*
15393 LIBS="$ac_save_LIBS"
15394
15395 fi
15396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15397 echo "$ac_t""yes" 1>&6
15398 JPEG_LINK="-ljpeg"
15399 else
15400 echo "$ac_t""no" 1>&6
15401 fi
15402
15403 fi
15404
15405 if test "x$JPEG_LINK" = "x" ; then
15406 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
15407 fi
15408 fi
15409 fi
15410
15411 TIFF_INCLUDE=
15412 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
15413 cat >> confdefs.h <<\EOF
15414 #define wxUSE_LIBTIFF 1
15415 EOF
15416
15417 if test "$wxUSE_LIBTIFF" = "yes" ; then
15418 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15419 else
15420 TIFF_LINK=
15421 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15422 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
15423 echo "configure:15424: checking for tiffio.h" >&5
15424 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15425 echo $ac_n "(cached) $ac_c" 1>&6
15426 else
15427 cat > conftest.$ac_ext <<EOF
15428 #line 15429 "configure"
15429 #include "confdefs.h"
15430 #include <tiffio.h>
15431 EOF
15432 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15433 { (eval echo configure:15434: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15434 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15435 if test -z "$ac_err"; then
15436 rm -rf conftest*
15437 eval "ac_cv_header_$ac_safe=yes"
15438 else
15439 echo "$ac_err" >&5
15440 echo "configure: failed program was:" >&5
15441 cat conftest.$ac_ext >&5
15442 rm -rf conftest*
15443 eval "ac_cv_header_$ac_safe=no"
15444 fi
15445 rm -f conftest*
15446 fi
15447 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15448 echo "$ac_t""yes" 1>&6
15449 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
15450 echo "configure:15451: checking for TIFFError in -ltiff" >&5
15451 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15452 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15453 echo $ac_n "(cached) $ac_c" 1>&6
15454 else
15455 ac_save_LIBS="$LIBS"
15456 LIBS="-ltiff -lm $LIBS"
15457 cat > conftest.$ac_ext <<EOF
15458 #line 15459 "configure"
15459 #include "confdefs.h"
15460 /* Override any gcc2 internal prototype to avoid an error. */
15461 /* We use char because int might match the return type of a gcc2
15462 builtin and then its argument prototype would still apply. */
15463 char TIFFError();
15464
15465 int main() {
15466 TIFFError()
15467 ; return 0; }
15468 EOF
15469 if { (eval echo configure:15470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15470 rm -rf conftest*
15471 eval "ac_cv_lib_$ac_lib_var=yes"
15472 else
15473 echo "configure: failed program was:" >&5
15474 cat conftest.$ac_ext >&5
15475 rm -rf conftest*
15476 eval "ac_cv_lib_$ac_lib_var=no"
15477 fi
15478 rm -f conftest*
15479 LIBS="$ac_save_LIBS"
15480
15481 fi
15482 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15483 echo "$ac_t""yes" 1>&6
15484 TIFF_LINK="-ltiff"
15485 else
15486 echo "$ac_t""no" 1>&6
15487 fi
15488
15489 else
15490 echo "$ac_t""no" 1>&6
15491 fi
15492
15493 if test "x$TIFF_LINK" = "x" ; then
15494 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
15495 fi
15496 fi
15497 fi
15498
15499 FREETYPE_INCLUDE=
15500 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
15501 cat >> confdefs.h <<\EOF
15502 #define wxUSE_FREETYPE 1
15503 EOF
15504
15505 if test "$wxUSE_FREETYPE" = "yes" ; then
15506 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15507 else
15508 FREETYPE_LINK=
15509 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15510 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
15511 echo "configure:15512: checking for freetype.h" >&5
15512 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15513 echo $ac_n "(cached) $ac_c" 1>&6
15514 else
15515 cat > conftest.$ac_ext <<EOF
15516 #line 15517 "configure"
15517 #include "confdefs.h"
15518 #include <freetype.h>
15519 EOF
15520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15521 { (eval echo configure:15522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15523 if test -z "$ac_err"; then
15524 rm -rf conftest*
15525 eval "ac_cv_header_$ac_safe=yes"
15526 else
15527 echo "$ac_err" >&5
15528 echo "configure: failed program was:" >&5
15529 cat conftest.$ac_ext >&5
15530 rm -rf conftest*
15531 eval "ac_cv_header_$ac_safe=no"
15532 fi
15533 rm -f conftest*
15534 fi
15535 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15536 echo "$ac_t""yes" 1>&6
15537 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
15538 echo "configure:15539: checking for FT_Render_Glyph in -lfreetype" >&5
15539 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15541 echo $ac_n "(cached) $ac_c" 1>&6
15542 else
15543 ac_save_LIBS="$LIBS"
15544 LIBS="-lfreetype -lm $LIBS"
15545 cat > conftest.$ac_ext <<EOF
15546 #line 15547 "configure"
15547 #include "confdefs.h"
15548 /* Override any gcc2 internal prototype to avoid an error. */
15549 /* We use char because int might match the return type of a gcc2
15550 builtin and then its argument prototype would still apply. */
15551 char FT_Render_Glyph();
15552
15553 int main() {
15554 FT_Render_Glyph()
15555 ; return 0; }
15556 EOF
15557 if { (eval echo configure:15558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15558 rm -rf conftest*
15559 eval "ac_cv_lib_$ac_lib_var=yes"
15560 else
15561 echo "configure: failed program was:" >&5
15562 cat conftest.$ac_ext >&5
15563 rm -rf conftest*
15564 eval "ac_cv_lib_$ac_lib_var=no"
15565 fi
15566 rm -f conftest*
15567 LIBS="$ac_save_LIBS"
15568
15569 fi
15570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15571 echo "$ac_t""yes" 1>&6
15572 FREETYPE_LINK="-lfreetype"
15573 else
15574 echo "$ac_t""no" 1>&6
15575 fi
15576
15577
15578 else
15579 echo "$ac_t""no" 1>&6
15580 fi
15581
15582 if test "x$FREETYPE_LINK" = "x" ; then
15583 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15584 fi
15585 fi
15586 fi
15587
15588 if test "$wxUSE_OPENGL" = "yes"; then
15589 if test "$wxUSE_MAC" = 1; then
15590 cat >> confdefs.h <<\EOF
15591 #define wxUSE_OPENGL 1
15592 EOF
15593
15594 cat >> confdefs.h <<\EOF
15595 #define wxUSE_GLCANVAS 1
15596 EOF
15597
15598 OPENGL_LINK="-framework OpenGL -framework AGL"
15599 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15600 else
15601 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15602 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15603 echo "configure:15604: checking for GL/gl.h" >&5
15604 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15605 echo $ac_n "(cached) $ac_c" 1>&6
15606 else
15607 cat > conftest.$ac_ext <<EOF
15608 #line 15609 "configure"
15609 #include "confdefs.h"
15610 #include <GL/gl.h>
15611 EOF
15612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15613 { (eval echo configure:15614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15615 if test -z "$ac_err"; then
15616 rm -rf conftest*
15617 eval "ac_cv_header_$ac_safe=yes"
15618 else
15619 echo "$ac_err" >&5
15620 echo "configure: failed program was:" >&5
15621 cat conftest.$ac_ext >&5
15622 rm -rf conftest*
15623 eval "ac_cv_header_$ac_safe=no"
15624 fi
15625 rm -f conftest*
15626 fi
15627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15628 echo "$ac_t""yes" 1>&6
15629
15630 cat >> confdefs.h <<\EOF
15631 #define wxUSE_OPENGL 1
15632 EOF
15633
15634 cat >> confdefs.h <<\EOF
15635 #define wxUSE_GLCANVAS 1
15636 EOF
15637
15638 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15639 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
15640 echo "configure:15641: checking for glFlush in -lGL" >&5
15641 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
15642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15643 echo $ac_n "(cached) $ac_c" 1>&6
15644 else
15645 ac_save_LIBS="$LIBS"
15646 LIBS="-lGL $LIBS"
15647 cat > conftest.$ac_ext <<EOF
15648 #line 15649 "configure"
15649 #include "confdefs.h"
15650 /* Override any gcc2 internal prototype to avoid an error. */
15651 /* We use char because int might match the return type of a gcc2
15652 builtin and then its argument prototype would still apply. */
15653 char glFlush();
15654
15655 int main() {
15656 glFlush()
15657 ; return 0; }
15658 EOF
15659 if { (eval echo configure:15660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15660 rm -rf conftest*
15661 eval "ac_cv_lib_$ac_lib_var=yes"
15662 else
15663 echo "configure: failed program was:" >&5
15664 cat conftest.$ac_ext >&5
15665 rm -rf conftest*
15666 eval "ac_cv_lib_$ac_lib_var=no"
15667 fi
15668 rm -f conftest*
15669 LIBS="$ac_save_LIBS"
15670
15671 fi
15672 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15673 echo "$ac_t""yes" 1>&6
15674
15675 OPENGL_LINK="-lGL -lGLU"
15676
15677 else
15678 echo "$ac_t""no" 1>&6
15679
15680 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
15681 echo "configure:15682: checking for glFlush in -lMesaGL" >&5
15682 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
15683 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15684 echo $ac_n "(cached) $ac_c" 1>&6
15685 else
15686 ac_save_LIBS="$LIBS"
15687 LIBS="-lMesaGL $LIBS"
15688 cat > conftest.$ac_ext <<EOF
15689 #line 15690 "configure"
15690 #include "confdefs.h"
15691 /* Override any gcc2 internal prototype to avoid an error. */
15692 /* We use char because int might match the return type of a gcc2
15693 builtin and then its argument prototype would still apply. */
15694 char glFlush();
15695
15696 int main() {
15697 glFlush()
15698 ; return 0; }
15699 EOF
15700 if { (eval echo configure:15701: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15701 rm -rf conftest*
15702 eval "ac_cv_lib_$ac_lib_var=yes"
15703 else
15704 echo "configure: failed program was:" >&5
15705 cat conftest.$ac_ext >&5
15706 rm -rf conftest*
15707 eval "ac_cv_lib_$ac_lib_var=no"
15708 fi
15709 rm -f conftest*
15710 LIBS="$ac_save_LIBS"
15711
15712 fi
15713 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15714 echo "$ac_t""yes" 1>&6
15715
15716 OPENGL_LINK="-lMesaGL -lMesaGLU"
15717
15718 else
15719 echo "$ac_t""no" 1>&6
15720 fi
15721
15722
15723 fi
15724
15725
15726 else
15727 echo "$ac_t""no" 1>&6
15728 wxUSE_OPENGL=0
15729 fi
15730
15731 fi
15732 fi
15733
15734
15735 if test "$wxUSE_GUI" = "yes"; then
15736 cat >> confdefs.h <<\EOF
15737 #define wxUSE_GUI 1
15738 EOF
15739
15740
15741 else
15742 cat >> confdefs.h <<\EOF
15743 #define wxUSE_NOGUI 1
15744 EOF
15745
15746 fi
15747
15748
15749 if test "$wxUSE_UNIX" = "yes"; then
15750 cat >> confdefs.h <<\EOF
15751 #define wxUSE_UNIX 1
15752 EOF
15753
15754 fi
15755
15756
15757 if test "$wxUSE_APPLE_IEEE" = "yes"; then
15758 cat >> confdefs.h <<\EOF
15759 #define wxUSE_APPLE_IEEE 1
15760 EOF
15761
15762 fi
15763
15764 if test "$wxUSE_TIMER" = "yes"; then
15765 cat >> confdefs.h <<\EOF
15766 #define wxUSE_TIMER 1
15767 EOF
15768
15769 fi
15770
15771 if test "$wxUSE_WAVE" = "yes"; then
15772 cat >> confdefs.h <<\EOF
15773 #define wxUSE_WAVE 1
15774 EOF
15775
15776 fi
15777
15778 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15779 cat >> confdefs.h <<\EOF
15780 #define wxUSE_CMDLINE_PARSER 1
15781 EOF
15782
15783 fi
15784
15785 if test "$wxUSE_STOPWATCH" = "yes"; then
15786 cat >> confdefs.h <<\EOF
15787 #define wxUSE_STOPWATCH 1
15788 EOF
15789
15790 fi
15791
15792 if test "$wxUSE_DATETIME" = "yes"; then
15793 cat >> confdefs.h <<\EOF
15794 #define wxUSE_DATETIME 1
15795 EOF
15796
15797 fi
15798
15799 if test "$wxUSE_TIMEDATE" = "yes"; then
15800 cat >> confdefs.h <<\EOF
15801 #define wxUSE_TIMEDATE 1
15802 EOF
15803
15804 fi
15805
15806 if test "$wxUSE_FILE" = "yes"; then
15807 cat >> confdefs.h <<\EOF
15808 #define wxUSE_FILE 1
15809 EOF
15810
15811 fi
15812
15813 if test "$wxUSE_FFILE" = "yes"; then
15814 cat >> confdefs.h <<\EOF
15815 #define wxUSE_FFILE 1
15816 EOF
15817
15818 fi
15819
15820 if test "$wxUSE_FILESYSTEM" = "yes"; then
15821 cat >> confdefs.h <<\EOF
15822 #define wxUSE_FILESYSTEM 1
15823 EOF
15824
15825 fi
15826
15827 if test "$wxUSE_FS_INET" = "yes"; then
15828 cat >> confdefs.h <<\EOF
15829 #define wxUSE_FS_INET 1
15830 EOF
15831
15832 fi
15833
15834 if test "$wxUSE_FS_ZIP" = "yes"; then
15835 cat >> confdefs.h <<\EOF
15836 #define wxUSE_FS_ZIP 1
15837 EOF
15838
15839 fi
15840
15841 if test "$wxUSE_ZIPSTREAM" = "yes"; then
15842 cat >> confdefs.h <<\EOF
15843 #define wxUSE_ZIPSTREAM 1
15844 EOF
15845
15846 fi
15847
15848 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15849 cat >> confdefs.h <<\EOF
15850 #define wxUSE_ON_FATAL_EXCEPTION 1
15851 EOF
15852
15853 fi
15854
15855 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15856 cat >> confdefs.h <<\EOF
15857 #define wxUSE_SNGLINST_CHECKER 1
15858 EOF
15859
15860 fi
15861
15862 if test "$wxUSE_BUSYINFO" = "yes"; then
15863 cat >> confdefs.h <<\EOF
15864 #define wxUSE_BUSYINFO 1
15865 EOF
15866
15867 fi
15868
15869 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15870 cat >> confdefs.h <<\EOF
15871 #define wxUSE_STD_IOSTREAM 1
15872 EOF
15873
15874 fi
15875
15876 if test "$wxUSE_TEXTFILE" = "yes"; then
15877 if test "$wxUSE_FILE" != "yes"; then
15878 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15879 else
15880 cat >> confdefs.h <<\EOF
15881 #define wxUSE_TEXTFILE 1
15882 EOF
15883
15884 fi
15885 fi
15886
15887 if test "$wxUSE_CONFIG" = "yes" ; then
15888 if test "$wxUSE_TEXTFILE" != "yes"; then
15889 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15890 else
15891 cat >> confdefs.h <<\EOF
15892 #define wxUSE_CONFIG 1
15893 EOF
15894
15895 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15896 fi
15897 fi
15898
15899 if test "$wxUSE_INTL" = "yes" ; then
15900 if test "$wxUSE_FILE" != "yes"; then
15901 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
15902 else
15903 cat >> confdefs.h <<\EOF
15904 #define wxUSE_INTL 1
15905 EOF
15906
15907 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
15908 GUIDIST="$GUIDIST INTL_DIST"
15909 fi
15910 fi
15911
15912 if test "$wxUSE_LOG" = "yes"; then
15913 cat >> confdefs.h <<\EOF
15914 #define wxUSE_LOG 1
15915 EOF
15916
15917
15918 if test "$wxUSE_LOGGUI" = "yes"; then
15919 cat >> confdefs.h <<\EOF
15920 #define wxUSE_LOGGUI 1
15921 EOF
15922
15923 fi
15924
15925 if test "$wxUSE_LOGWINDOW" = "yes"; then
15926 cat >> confdefs.h <<\EOF
15927 #define wxUSE_LOGWINDOW 1
15928 EOF
15929
15930 fi
15931 fi
15932
15933 if test "$wxUSE_LONGLONG" = "yes"; then
15934 cat >> confdefs.h <<\EOF
15935 #define wxUSE_LONGLONG 1
15936 EOF
15937
15938 fi
15939
15940 if test "$wxUSE_GEOMETRY" = "yes"; then
15941 cat >> confdefs.h <<\EOF
15942 #define wxUSE_GEOMETRY 1
15943 EOF
15944
15945 fi
15946
15947 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
15948 cat >> confdefs.h <<\EOF
15949 #define wxUSE_DIALUP_MANAGER 1
15950 EOF
15951
15952 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
15953 fi
15954
15955 if test "$wxUSE_STREAMS" = "yes" ; then
15956 cat >> confdefs.h <<\EOF
15957 #define wxUSE_STREAMS 1
15958 EOF
15959
15960 fi
15961
15962
15963 if test "$wxUSE_DATETIME" = "yes"; then
15964 for ac_func in strptime
15965 do
15966 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15967 echo "configure:15968: checking for $ac_func" >&5
15968 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15969 echo $ac_n "(cached) $ac_c" 1>&6
15970 else
15971 cat > conftest.$ac_ext <<EOF
15972 #line 15973 "configure"
15973 #include "confdefs.h"
15974 /* System header to define __stub macros and hopefully few prototypes,
15975 which can conflict with char $ac_func(); below. */
15976 #include <assert.h>
15977 /* Override any gcc2 internal prototype to avoid an error. */
15978 /* We use char because int might match the return type of a gcc2
15979 builtin and then its argument prototype would still apply. */
15980 char $ac_func();
15981
15982 int main() {
15983
15984 /* The GNU C library defines this for functions which it implements
15985 to always fail with ENOSYS. Some functions are actually named
15986 something starting with __ and the normal name is an alias. */
15987 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15988 choke me
15989 #else
15990 $ac_func();
15991 #endif
15992
15993 ; return 0; }
15994 EOF
15995 if { (eval echo configure:15996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15996 rm -rf conftest*
15997 eval "ac_cv_func_$ac_func=yes"
15998 else
15999 echo "configure: failed program was:" >&5
16000 cat conftest.$ac_ext >&5
16001 rm -rf conftest*
16002 eval "ac_cv_func_$ac_func=no"
16003 fi
16004 rm -f conftest*
16005 fi
16006
16007 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16008 echo "$ac_t""yes" 1>&6
16009 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16010 cat >> confdefs.h <<EOF
16011 #define $ac_tr_func 1
16012 EOF
16013
16014 else
16015 echo "$ac_t""no" 1>&6
16016 fi
16017 done
16018
16019
16020 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
16021 echo "configure:16022: checking for timezone variable in <time.h>" >&5
16022 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
16023 echo $ac_n "(cached) $ac_c" 1>&6
16024 else
16025
16026 cat > conftest.$ac_ext <<EOF
16027 #line 16028 "configure"
16028 #include "confdefs.h"
16029
16030 #include <time.h>
16031
16032 int main() {
16033
16034 int tz;
16035 tz = timezone;
16036
16037 ; return 0; }
16038 EOF
16039 if { (eval echo configure:16040: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16040 rm -rf conftest*
16041
16042 wx_cv_var_timezone=timezone
16043
16044 else
16045 echo "configure: failed program was:" >&5
16046 cat conftest.$ac_ext >&5
16047 rm -rf conftest*
16048
16049 cat > conftest.$ac_ext <<EOF
16050 #line 16051 "configure"
16051 #include "confdefs.h"
16052
16053 #include <time.h>
16054
16055 int main() {
16056
16057 int tz;
16058 tz = _timezone;
16059
16060 ; return 0; }
16061 EOF
16062 if { (eval echo configure:16063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16063 rm -rf conftest*
16064
16065 wx_cv_var_timezone=_timezone
16066
16067 else
16068 echo "configure: failed program was:" >&5
16069 cat conftest.$ac_ext >&5
16070 rm -rf conftest*
16071
16072 cat > conftest.$ac_ext <<EOF
16073 #line 16074 "configure"
16074 #include "confdefs.h"
16075
16076 #include <time.h>
16077
16078 int main() {
16079
16080 int tz;
16081 tz = __timezone;
16082
16083 ; return 0; }
16084 EOF
16085 if { (eval echo configure:16086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16086 rm -rf conftest*
16087
16088 wx_cv_var_timezone=__timezone
16089
16090 else
16091 echo "configure: failed program was:" >&5
16092 cat conftest.$ac_ext >&5
16093 rm -rf conftest*
16094 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
16095
16096 fi
16097 rm -f conftest*
16098
16099
16100 fi
16101 rm -f conftest*
16102
16103
16104 fi
16105 rm -f conftest*
16106
16107
16108 fi
16109
16110 echo "$ac_t""$wx_cv_var_timezone" 1>&6
16111
16112 cat >> confdefs.h <<EOF
16113 #define WX_TIMEZONE $wx_cv_var_timezone
16114 EOF
16115
16116
16117 for ac_func in localtime
16118 do
16119 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16120 echo "configure:16121: checking for $ac_func" >&5
16121 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16122 echo $ac_n "(cached) $ac_c" 1>&6
16123 else
16124 cat > conftest.$ac_ext <<EOF
16125 #line 16126 "configure"
16126 #include "confdefs.h"
16127 /* System header to define __stub macros and hopefully few prototypes,
16128 which can conflict with char $ac_func(); below. */
16129 #include <assert.h>
16130 /* Override any gcc2 internal prototype to avoid an error. */
16131 /* We use char because int might match the return type of a gcc2
16132 builtin and then its argument prototype would still apply. */
16133 char $ac_func();
16134
16135 int main() {
16136
16137 /* The GNU C library defines this for functions which it implements
16138 to always fail with ENOSYS. Some functions are actually named
16139 something starting with __ and the normal name is an alias. */
16140 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16141 choke me
16142 #else
16143 $ac_func();
16144 #endif
16145
16146 ; return 0; }
16147 EOF
16148 if { (eval echo configure:16149: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16149 rm -rf conftest*
16150 eval "ac_cv_func_$ac_func=yes"
16151 else
16152 echo "configure: failed program was:" >&5
16153 cat conftest.$ac_ext >&5
16154 rm -rf conftest*
16155 eval "ac_cv_func_$ac_func=no"
16156 fi
16157 rm -f conftest*
16158 fi
16159
16160 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16161 echo "$ac_t""yes" 1>&6
16162 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16163 cat >> confdefs.h <<EOF
16164 #define $ac_tr_func 1
16165 EOF
16166
16167 else
16168 echo "$ac_t""no" 1>&6
16169 fi
16170 done
16171
16172
16173 if test "$ac_cv_func_localtime" = "yes"; then
16174 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
16175 echo "configure:16176: checking for tm_gmtoff in struct tm" >&5
16176 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16177 echo $ac_n "(cached) $ac_c" 1>&6
16178 else
16179
16180 cat > conftest.$ac_ext <<EOF
16181 #line 16182 "configure"
16182 #include "confdefs.h"
16183
16184 #include <time.h>
16185
16186 int main() {
16187
16188 struct tm tm;
16189 tm.tm_gmtoff++;
16190
16191 ; return 0; }
16192 EOF
16193 if { (eval echo configure:16194: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16194 rm -rf conftest*
16195
16196 wx_cv_struct_tm_has_gmtoff=yes
16197
16198 else
16199 echo "configure: failed program was:" >&5
16200 cat conftest.$ac_ext >&5
16201 rm -rf conftest*
16202 wx_cv_struct_tm_has_gmtoff=no
16203
16204 fi
16205 rm -f conftest*
16206
16207 fi
16208
16209 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
16210 fi
16211
16212 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16213 cat >> confdefs.h <<\EOF
16214 #define WX_GMTOFF_IN_TM 1
16215 EOF
16216
16217 fi
16218
16219 for ac_func in gettimeofday ftime
16220 do
16221 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16222 echo "configure:16223: checking for $ac_func" >&5
16223 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16224 echo $ac_n "(cached) $ac_c" 1>&6
16225 else
16226 cat > conftest.$ac_ext <<EOF
16227 #line 16228 "configure"
16228 #include "confdefs.h"
16229 /* System header to define __stub macros and hopefully few prototypes,
16230 which can conflict with char $ac_func(); below. */
16231 #include <assert.h>
16232 /* Override any gcc2 internal prototype to avoid an error. */
16233 /* We use char because int might match the return type of a gcc2
16234 builtin and then its argument prototype would still apply. */
16235 char $ac_func();
16236
16237 int main() {
16238
16239 /* The GNU C library defines this for functions which it implements
16240 to always fail with ENOSYS. Some functions are actually named
16241 something starting with __ and the normal name is an alias. */
16242 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16243 choke me
16244 #else
16245 $ac_func();
16246 #endif
16247
16248 ; return 0; }
16249 EOF
16250 if { (eval echo configure:16251: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16251 rm -rf conftest*
16252 eval "ac_cv_func_$ac_func=yes"
16253 else
16254 echo "configure: failed program was:" >&5
16255 cat conftest.$ac_ext >&5
16256 rm -rf conftest*
16257 eval "ac_cv_func_$ac_func=no"
16258 fi
16259 rm -f conftest*
16260 fi
16261
16262 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16263 echo "$ac_t""yes" 1>&6
16264 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16265 cat >> confdefs.h <<EOF
16266 #define $ac_tr_func 1
16267 EOF
16268 break
16269 else
16270 echo "$ac_t""no" 1>&6
16271 fi
16272 done
16273
16274
16275 if test "$ac_cv_func_gettimeofday" = "yes"; then
16276 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16277 echo "configure:16278: checking whether gettimeofday takes two arguments" >&5
16278 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16279 echo $ac_n "(cached) $ac_c" 1>&6
16280 else
16281
16282
16283 ac_ext=C
16284 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16285 ac_cpp='$CXXCPP $CPPFLAGS'
16286 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16287 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16288 cross_compiling=$ac_cv_prog_cxx_cross
16289
16290
16291 cat > conftest.$ac_ext <<EOF
16292 #line 16293 "configure"
16293 #include "confdefs.h"
16294
16295 #include <sys/time.h>
16296 #include <unistd.h>
16297
16298 int main() {
16299
16300 struct timeval tv;
16301 struct timezone tz;
16302 gettimeofday(&tv, &tz);
16303
16304 ; return 0; }
16305 EOF
16306 if { (eval echo configure:16307: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16307 rm -rf conftest*
16308 wx_cv_func_gettimeofday_has_2_args=yes
16309 else
16310 echo "configure: failed program was:" >&5
16311 cat conftest.$ac_ext >&5
16312 rm -rf conftest*
16313 cat > conftest.$ac_ext <<EOF
16314 #line 16315 "configure"
16315 #include "confdefs.h"
16316
16317 #include <sys/time.h>
16318 #include <unistd.h>
16319
16320 int main() {
16321
16322 struct timeval tv;
16323 gettimeofday(&tv);
16324
16325 ; return 0; }
16326 EOF
16327 if { (eval echo configure:16328: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16328 rm -rf conftest*
16329 wx_cv_func_gettimeofday_has_2_args=no
16330 else
16331 echo "configure: failed program was:" >&5
16332 cat conftest.$ac_ext >&5
16333 rm -rf conftest*
16334 wx_cv_func_gettimeofday_has_2_args=unknown
16335
16336 fi
16337 rm -f conftest*
16338
16339 fi
16340 rm -f conftest*
16341 ac_ext=c
16342 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16343 ac_cpp='$CPP $CPPFLAGS'
16344 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16345 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16346 cross_compiling=$ac_cv_prog_cc_cross
16347
16348
16349 fi
16350
16351 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16352
16353 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16354 cat >> confdefs.h <<\EOF
16355 #define WX_GETTIMEOFDAY_NO_TZ 1
16356 EOF
16357
16358 fi
16359 fi
16360
16361 cat >> confdefs.h <<\EOF
16362 #define wxUSE_TIMEDATE 1
16363 EOF
16364
16365 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16366 fi
16367
16368
16369 if test "$TOOLKIT" != "MSW"; then
16370
16371 if test "$wxUSE_SOCKETS" = "yes"; then
16372 echo $ac_n "checking for socket""... $ac_c" 1>&6
16373 echo "configure:16374: checking for socket" >&5
16374 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16375 echo $ac_n "(cached) $ac_c" 1>&6
16376 else
16377 cat > conftest.$ac_ext <<EOF
16378 #line 16379 "configure"
16379 #include "confdefs.h"
16380 /* System header to define __stub macros and hopefully few prototypes,
16381 which can conflict with char socket(); below. */
16382 #include <assert.h>
16383 /* Override any gcc2 internal prototype to avoid an error. */
16384 /* We use char because int might match the return type of a gcc2
16385 builtin and then its argument prototype would still apply. */
16386 char socket();
16387
16388 int main() {
16389
16390 /* The GNU C library defines this for functions which it implements
16391 to always fail with ENOSYS. Some functions are actually named
16392 something starting with __ and the normal name is an alias. */
16393 #if defined (__stub_socket) || defined (__stub___socket)
16394 choke me
16395 #else
16396 socket();
16397 #endif
16398
16399 ; return 0; }
16400 EOF
16401 if { (eval echo configure:16402: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16402 rm -rf conftest*
16403 eval "ac_cv_func_socket=yes"
16404 else
16405 echo "configure: failed program was:" >&5
16406 cat conftest.$ac_ext >&5
16407 rm -rf conftest*
16408 eval "ac_cv_func_socket=no"
16409 fi
16410 rm -f conftest*
16411 fi
16412
16413 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16414 echo "$ac_t""yes" 1>&6
16415 :
16416 else
16417 echo "$ac_t""no" 1>&6
16418 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16419 echo "configure:16420: checking for socket in -lsocket" >&5
16420 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16422 echo $ac_n "(cached) $ac_c" 1>&6
16423 else
16424 ac_save_LIBS="$LIBS"
16425 LIBS="-lsocket $LIBS"
16426 cat > conftest.$ac_ext <<EOF
16427 #line 16428 "configure"
16428 #include "confdefs.h"
16429 /* Override any gcc2 internal prototype to avoid an error. */
16430 /* We use char because int might match the return type of a gcc2
16431 builtin and then its argument prototype would still apply. */
16432 char socket();
16433
16434 int main() {
16435 socket()
16436 ; return 0; }
16437 EOF
16438 if { (eval echo configure:16439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16439 rm -rf conftest*
16440 eval "ac_cv_lib_$ac_lib_var=yes"
16441 else
16442 echo "configure: failed program was:" >&5
16443 cat conftest.$ac_ext >&5
16444 rm -rf conftest*
16445 eval "ac_cv_lib_$ac_lib_var=no"
16446 fi
16447 rm -f conftest*
16448 LIBS="$ac_save_LIBS"
16449
16450 fi
16451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16452 echo "$ac_t""yes" 1>&6
16453 INET_LINK="$INET_LINK -lsocket"
16454 else
16455 echo "$ac_t""no" 1>&6
16456
16457 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16458 wxUSE_SOCKETS=no
16459
16460
16461 fi
16462
16463
16464 fi
16465
16466 fi
16467
16468
16469 if test "$wxUSE_SOCKETS" = "yes" ; then
16470 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16471 echo "configure:16472: checking what is the type of the third argument of getsockname" >&5
16472 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16473 echo $ac_n "(cached) $ac_c" 1>&6
16474 else
16475
16476
16477 ac_ext=C
16478 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16479 ac_cpp='$CXXCPP $CPPFLAGS'
16480 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16481 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16482 cross_compiling=$ac_cv_prog_cxx_cross
16483
16484
16485 cat > conftest.$ac_ext <<EOF
16486 #line 16487 "configure"
16487 #include "confdefs.h"
16488
16489 #include <sys/types.h>
16490 #include <sys/socket.h>
16491
16492 int main() {
16493
16494 socklen_t len;
16495 getsockname(0, 0, &len);
16496
16497 ; return 0; }
16498 EOF
16499 if { (eval echo configure:16500: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16500 rm -rf conftest*
16501 wx_cv_type_getsockname3=socklen_t
16502 else
16503 echo "configure: failed program was:" >&5
16504 cat conftest.$ac_ext >&5
16505 rm -rf conftest*
16506 cat > conftest.$ac_ext <<EOF
16507 #line 16508 "configure"
16508 #include "confdefs.h"
16509
16510 #include <sys/types.h>
16511 #include <sys/socket.h>
16512
16513 int main() {
16514
16515 size_t len;
16516 getsockname(0, 0, &len);
16517
16518 ; return 0; }
16519 EOF
16520 if { (eval echo configure:16521: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16521 rm -rf conftest*
16522 wx_cv_type_getsockname3=size_t
16523 else
16524 echo "configure: failed program was:" >&5
16525 cat conftest.$ac_ext >&5
16526 rm -rf conftest*
16527 cat > conftest.$ac_ext <<EOF
16528 #line 16529 "configure"
16529 #include "confdefs.h"
16530
16531 #include <sys/types.h>
16532 #include <sys/socket.h>
16533
16534 int main() {
16535
16536 int len;
16537 getsockname(0, 0, &len);
16538
16539 ; return 0; }
16540 EOF
16541 if { (eval echo configure:16542: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16542 rm -rf conftest*
16543 wx_cv_type_getsockname3=int
16544 else
16545 echo "configure: failed program was:" >&5
16546 cat conftest.$ac_ext >&5
16547 rm -rf conftest*
16548 wx_cv_type_getsockname3=unknown
16549
16550 fi
16551 rm -f conftest*
16552
16553 fi
16554 rm -f conftest*
16555
16556 fi
16557 rm -f conftest*
16558
16559 ac_ext=c
16560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16561 ac_cpp='$CPP $CPPFLAGS'
16562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16564 cross_compiling=$ac_cv_prog_cc_cross
16565
16566
16567 fi
16568
16569 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
16570
16571 if test "$wx_cv_type_getsockname3" = "unknown"; then
16572 wxUSE_SOCKETS=no
16573 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16574 else
16575 cat >> confdefs.h <<EOF
16576 #define SOCKLEN_T $wx_cv_type_getsockname3
16577 EOF
16578
16579 fi
16580 fi
16581
16582 fi
16583
16584 if test "$wxUSE_SOCKETS" = "yes" ; then
16585 cat >> confdefs.h <<\EOF
16586 #define wxUSE_SOCKETS 1
16587 EOF
16588
16589 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
16590 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
16591 fi
16592
16593
16594 if test "$wxUSE_GUI" = "yes"; then
16595
16596 if test "$TOOLKIT" != "MSW"; then
16597
16598 if test "$wxUSE_JOYSTICK" = "yes"; then
16599 for ac_hdr in linux/joystick.h
16600 do
16601 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16602 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16603 echo "configure:16604: checking for $ac_hdr" >&5
16604 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16605 echo $ac_n "(cached) $ac_c" 1>&6
16606 else
16607 cat > conftest.$ac_ext <<EOF
16608 #line 16609 "configure"
16609 #include "confdefs.h"
16610 #include <$ac_hdr>
16611 EOF
16612 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16613 { (eval echo configure:16614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16614 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16615 if test -z "$ac_err"; then
16616 rm -rf conftest*
16617 eval "ac_cv_header_$ac_safe=yes"
16618 else
16619 echo "$ac_err" >&5
16620 echo "configure: failed program was:" >&5
16621 cat conftest.$ac_ext >&5
16622 rm -rf conftest*
16623 eval "ac_cv_header_$ac_safe=no"
16624 fi
16625 rm -f conftest*
16626 fi
16627 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16628 echo "$ac_t""yes" 1>&6
16629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16630 cat >> confdefs.h <<EOF
16631 #define $ac_tr_hdr 1
16632 EOF
16633
16634 else
16635 echo "$ac_t""no" 1>&6
16636 fi
16637 done
16638
16639 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16640 wxUSE_JOYSTICK=no
16641 echo "configure: warning: Joystick not supported by this system" 1>&2
16642 fi
16643 fi
16644
16645 fi
16646
16647 if test "$wxUSE_JOYSTICK" = "yes"; then
16648 cat >> confdefs.h <<\EOF
16649 #define wxUSE_JOYSTICK 1
16650 EOF
16651
16652 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16653 fi
16654
16655 fi
16656
16657
16658 if test "$TOOLKIT" != "MSW"; then
16659
16660 HAVE_DL_FUNCS=0
16661 HAVE_SHL_FUNCS=0
16662 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16663 if test "$USE_DARWIN" = 1; then
16664 HAVE_DL_FUNCS=1
16665 else
16666 for ac_func in dlopen
16667 do
16668 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16669 echo "configure:16670: checking for $ac_func" >&5
16670 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16671 echo $ac_n "(cached) $ac_c" 1>&6
16672 else
16673 cat > conftest.$ac_ext <<EOF
16674 #line 16675 "configure"
16675 #include "confdefs.h"
16676 /* System header to define __stub macros and hopefully few prototypes,
16677 which can conflict with char $ac_func(); below. */
16678 #include <assert.h>
16679 /* Override any gcc2 internal prototype to avoid an error. */
16680 /* We use char because int might match the return type of a gcc2
16681 builtin and then its argument prototype would still apply. */
16682 char $ac_func();
16683
16684 int main() {
16685
16686 /* The GNU C library defines this for functions which it implements
16687 to always fail with ENOSYS. Some functions are actually named
16688 something starting with __ and the normal name is an alias. */
16689 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16690 choke me
16691 #else
16692 $ac_func();
16693 #endif
16694
16695 ; return 0; }
16696 EOF
16697 if { (eval echo configure:16698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16698 rm -rf conftest*
16699 eval "ac_cv_func_$ac_func=yes"
16700 else
16701 echo "configure: failed program was:" >&5
16702 cat conftest.$ac_ext >&5
16703 rm -rf conftest*
16704 eval "ac_cv_func_$ac_func=no"
16705 fi
16706 rm -f conftest*
16707 fi
16708
16709 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16710 echo "$ac_t""yes" 1>&6
16711 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16712 cat >> confdefs.h <<EOF
16713 #define $ac_tr_func 1
16714 EOF
16715
16716 cat >> confdefs.h <<\EOF
16717 #define HAVE_DLOPEN 1
16718 EOF
16719
16720 HAVE_DL_FUNCS=1
16721
16722 else
16723 echo "$ac_t""no" 1>&6
16724 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
16725 echo "configure:16726: checking for dlopen in -ldl" >&5
16726 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16727 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16728 echo $ac_n "(cached) $ac_c" 1>&6
16729 else
16730 ac_save_LIBS="$LIBS"
16731 LIBS="-ldl $LIBS"
16732 cat > conftest.$ac_ext <<EOF
16733 #line 16734 "configure"
16734 #include "confdefs.h"
16735 /* Override any gcc2 internal prototype to avoid an error. */
16736 /* We use char because int might match the return type of a gcc2
16737 builtin and then its argument prototype would still apply. */
16738 char dlopen();
16739
16740 int main() {
16741 dlopen()
16742 ; return 0; }
16743 EOF
16744 if { (eval echo configure:16745: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16745 rm -rf conftest*
16746 eval "ac_cv_lib_$ac_lib_var=yes"
16747 else
16748 echo "configure: failed program was:" >&5
16749 cat conftest.$ac_ext >&5
16750 rm -rf conftest*
16751 eval "ac_cv_lib_$ac_lib_var=no"
16752 fi
16753 rm -f conftest*
16754 LIBS="$ac_save_LIBS"
16755
16756 fi
16757 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16758 echo "$ac_t""yes" 1>&6
16759
16760 cat >> confdefs.h <<\EOF
16761 #define HAVE_DLOPEN 1
16762 EOF
16763
16764 HAVE_DL_FUNCS=1
16765 LIBS="$LIBS -ldl"
16766
16767 else
16768 echo "$ac_t""no" 1>&6
16769
16770 for ac_func in shl_load
16771 do
16772 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16773 echo "configure:16774: checking for $ac_func" >&5
16774 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16775 echo $ac_n "(cached) $ac_c" 1>&6
16776 else
16777 cat > conftest.$ac_ext <<EOF
16778 #line 16779 "configure"
16779 #include "confdefs.h"
16780 /* System header to define __stub macros and hopefully few prototypes,
16781 which can conflict with char $ac_func(); below. */
16782 #include <assert.h>
16783 /* Override any gcc2 internal prototype to avoid an error. */
16784 /* We use char because int might match the return type of a gcc2
16785 builtin and then its argument prototype would still apply. */
16786 char $ac_func();
16787
16788 int main() {
16789
16790 /* The GNU C library defines this for functions which it implements
16791 to always fail with ENOSYS. Some functions are actually named
16792 something starting with __ and the normal name is an alias. */
16793 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16794 choke me
16795 #else
16796 $ac_func();
16797 #endif
16798
16799 ; return 0; }
16800 EOF
16801 if { (eval echo configure:16802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16802 rm -rf conftest*
16803 eval "ac_cv_func_$ac_func=yes"
16804 else
16805 echo "configure: failed program was:" >&5
16806 cat conftest.$ac_ext >&5
16807 rm -rf conftest*
16808 eval "ac_cv_func_$ac_func=no"
16809 fi
16810 rm -f conftest*
16811 fi
16812
16813 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16814 echo "$ac_t""yes" 1>&6
16815 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16816 cat >> confdefs.h <<EOF
16817 #define $ac_tr_func 1
16818 EOF
16819
16820 cat >> confdefs.h <<\EOF
16821 #define HAVE_SHL_LOAD 1
16822 EOF
16823
16824 HAVE_SHL_FUNCS=1
16825
16826 else
16827 echo "$ac_t""no" 1>&6
16828 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16829 echo "configure:16830: checking for dld in -lshl_load" >&5
16830 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16832 echo $ac_n "(cached) $ac_c" 1>&6
16833 else
16834 ac_save_LIBS="$LIBS"
16835 LIBS="-lshl_load $LIBS"
16836 cat > conftest.$ac_ext <<EOF
16837 #line 16838 "configure"
16838 #include "confdefs.h"
16839 /* Override any gcc2 internal prototype to avoid an error. */
16840 /* We use char because int might match the return type of a gcc2
16841 builtin and then its argument prototype would still apply. */
16842 char dld();
16843
16844 int main() {
16845 dld()
16846 ; return 0; }
16847 EOF
16848 if { (eval echo configure:16849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16849 rm -rf conftest*
16850 eval "ac_cv_lib_$ac_lib_var=yes"
16851 else
16852 echo "configure: failed program was:" >&5
16853 cat conftest.$ac_ext >&5
16854 rm -rf conftest*
16855 eval "ac_cv_lib_$ac_lib_var=no"
16856 fi
16857 rm -f conftest*
16858 LIBS="$ac_save_LIBS"
16859
16860 fi
16861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16862 echo "$ac_t""yes" 1>&6
16863
16864 HAVE_SHL_FUNCS=1
16865 LIBS="$LIBS -ldld"
16866
16867 else
16868 echo "$ac_t""no" 1>&6
16869 fi
16870
16871
16872 fi
16873 done
16874
16875
16876 fi
16877
16878
16879 fi
16880 done
16881
16882
16883 if test "$HAVE_DL_FUNCS" = 1; then
16884 for ac_func in dlerror
16885 do
16886 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16887 echo "configure:16888: checking for $ac_func" >&5
16888 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16889 echo $ac_n "(cached) $ac_c" 1>&6
16890 else
16891 cat > conftest.$ac_ext <<EOF
16892 #line 16893 "configure"
16893 #include "confdefs.h"
16894 /* System header to define __stub macros and hopefully few prototypes,
16895 which can conflict with char $ac_func(); below. */
16896 #include <assert.h>
16897 /* Override any gcc2 internal prototype to avoid an error. */
16898 /* We use char because int might match the return type of a gcc2
16899 builtin and then its argument prototype would still apply. */
16900 char $ac_func();
16901
16902 int main() {
16903
16904 /* The GNU C library defines this for functions which it implements
16905 to always fail with ENOSYS. Some functions are actually named
16906 something starting with __ and the normal name is an alias. */
16907 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16908 choke me
16909 #else
16910 $ac_func();
16911 #endif
16912
16913 ; return 0; }
16914 EOF
16915 if { (eval echo configure:16916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16916 rm -rf conftest*
16917 eval "ac_cv_func_$ac_func=yes"
16918 else
16919 echo "configure: failed program was:" >&5
16920 cat conftest.$ac_ext >&5
16921 rm -rf conftest*
16922 eval "ac_cv_func_$ac_func=no"
16923 fi
16924 rm -f conftest*
16925 fi
16926
16927 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16928 echo "$ac_t""yes" 1>&6
16929 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16930 cat >> confdefs.h <<EOF
16931 #define $ac_tr_func 1
16932 EOF
16933 cat >> confdefs.h <<\EOF
16934 #define HAVE_DLERROR 1
16935 EOF
16936
16937 else
16938 echo "$ac_t""no" 1>&6
16939 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
16940 echo "configure:16941: checking for dlerror in -ldl" >&5
16941 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16943 echo $ac_n "(cached) $ac_c" 1>&6
16944 else
16945 ac_save_LIBS="$LIBS"
16946 LIBS="-ldl $LIBS"
16947 cat > conftest.$ac_ext <<EOF
16948 #line 16949 "configure"
16949 #include "confdefs.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 dlerror();
16954
16955 int main() {
16956 dlerror()
16957 ; return 0; }
16958 EOF
16959 if { (eval echo configure:16960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16960 rm -rf conftest*
16961 eval "ac_cv_lib_$ac_lib_var=yes"
16962 else
16963 echo "configure: failed program was:" >&5
16964 cat conftest.$ac_ext >&5
16965 rm -rf conftest*
16966 eval "ac_cv_lib_$ac_lib_var=no"
16967 fi
16968 rm -f conftest*
16969 LIBS="$ac_save_LIBS"
16970
16971 fi
16972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16973 echo "$ac_t""yes" 1>&6
16974 cat >> confdefs.h <<\EOF
16975 #define HAVE_DLERROR 1
16976 EOF
16977
16978 else
16979 echo "$ac_t""no" 1>&6
16980 fi
16981
16982 fi
16983 done
16984
16985 fi
16986 fi
16987
16988 if test "$HAVE_DL_FUNCS" = 0; then
16989 if test "$HAVE_SHL_FUNCS" = 0; then
16990 if test "$USE_UNIX" = 1; then
16991 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
16992 wxUSE_DYNLIB_CLASS=no
16993 else
16994 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
16995 fi
16996 fi
16997 fi
16998 fi
16999
17000 fi
17001
17002 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
17003 cat >> confdefs.h <<\EOF
17004 #define wxUSE_DYNLIB_CLASS 1
17005 EOF
17006
17007 else
17008 wxUSE_ODBC=no
17009 wxUSE_SERIAL=no
17010 fi
17011
17012
17013 if test "$wxUSE_FONTMAP" = "yes" ; then
17014 cat >> confdefs.h <<\EOF
17015 #define wxUSE_FONTMAP 1
17016 EOF
17017
17018 fi
17019
17020 if test "$wxUSE_UNICODE" = "yes" ; then
17021 cat >> confdefs.h <<\EOF
17022 #define wxUSE_UNICODE 1
17023 EOF
17024
17025 fi
17026
17027 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
17028 cat >> confdefs.h <<\EOF
17029 #define wxUSE_WCSRTOMBS 1
17030 EOF
17031
17032 fi
17033
17034 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
17035 cat >> confdefs.h <<\EOF
17036 #define wxUSE_EXPERIMENTAL_PRINTF 1
17037 EOF
17038
17039 fi
17040
17041
17042 if test "$wxUSE_SERIAL" = "yes" ; then
17043 cat >> confdefs.h <<\EOF
17044 #define wxUSE_SERIAL 1
17045 EOF
17046
17047 fi
17048
17049
17050 IODBC_C_SRC=""
17051 if test "$wxUSE_ODBC" = "yes" ; then
17052 cat >> confdefs.h <<\EOF
17053 #define wxUSE_ODBC 1
17054 EOF
17055
17056 WXODBCFLAG="-D_IODBC_"
17057 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
17058 fi
17059
17060
17061 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
17062 cat >> confdefs.h <<\EOF
17063 #define wxUSE_POSTSCRIPT 1
17064 EOF
17065
17066 fi
17067
17068 cat >> confdefs.h <<\EOF
17069 #define wxUSE_AFM_FOR_POSTSCRIPT 1
17070 EOF
17071
17072
17073 cat >> confdefs.h <<\EOF
17074 #define wxUSE_NORMALIZED_PS_FONTS 1
17075 EOF
17076
17077
17078
17079 if test "$wxUSE_CONSTRAINTS" = "yes"; then
17080 cat >> confdefs.h <<\EOF
17081 #define wxUSE_CONSTRAINTS 1
17082 EOF
17083
17084 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
17085 fi
17086
17087 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17088 cat >> confdefs.h <<\EOF
17089 #define wxUSE_MDI_ARCHITECTURE 1
17090 EOF
17091
17092 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
17093 fi
17094
17095 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
17096 cat >> confdefs.h <<\EOF
17097 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
17098 EOF
17099
17100 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
17101 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
17102 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
17103 fi
17104 fi
17105
17106 if test "$wxUSE_HELP" = "yes"; then
17107 cat >> confdefs.h <<\EOF
17108 #define wxUSE_HELP 1
17109 EOF
17110
17111 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
17112
17113 if test "$USE_WIN32" = 1; then
17114 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
17115 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
17116 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
17117 echo "configure:17118: checking for htmlhelp.h" >&5
17118 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17119 echo $ac_n "(cached) $ac_c" 1>&6
17120 else
17121 cat > conftest.$ac_ext <<EOF
17122 #line 17123 "configure"
17123 #include "confdefs.h"
17124 #include <htmlhelp.h>
17125 EOF
17126 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17127 { (eval echo configure:17128: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17128 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17129 if test -z "$ac_err"; then
17130 rm -rf conftest*
17131 eval "ac_cv_header_$ac_safe=yes"
17132 else
17133 echo "$ac_err" >&5
17134 echo "configure: failed program was:" >&5
17135 cat conftest.$ac_ext >&5
17136 rm -rf conftest*
17137 eval "ac_cv_header_$ac_safe=no"
17138 fi
17139 rm -f conftest*
17140 fi
17141 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17142 echo "$ac_t""yes" 1>&6
17143
17144 cat >> confdefs.h <<\EOF
17145 #define wxUSE_MS_HTML_HELP 1
17146 EOF
17147
17148
17149 else
17150 echo "$ac_t""no" 1>&6
17151
17152 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h so it won't be compiled without it" 1>&2
17153 wxUSE_MS_HTML_HELP=no
17154
17155 fi
17156
17157 fi
17158 fi
17159
17160 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17161 if test "$wxUSE_HTML" = "yes"; then
17162 cat >> confdefs.h <<\EOF
17163 #define wxUSE_WXHTML_HELP 1
17164 EOF
17165
17166 else
17167 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17168 wxUSE_WXHTML_HELP=no
17169 fi
17170 fi
17171 fi
17172
17173 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17174 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17175 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
17176 else
17177 cat >> confdefs.h <<\EOF
17178 #define wxUSE_PRINTING_ARCHITECTURE 1
17179 EOF
17180
17181 fi
17182 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17183 fi
17184
17185 if test "$wxUSE_PROLOGIO" = "yes" ; then
17186 cat >> confdefs.h <<\EOF
17187 #define wxUSE_PROLOGIO 1
17188 EOF
17189
17190 fi
17191
17192 if test "$wxUSE_RESOURCES" = "yes" ; then
17193 cat >> confdefs.h <<\EOF
17194 #define wxUSE_RESOURCES 1
17195 EOF
17196
17197 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
17198 fi
17199
17200 if test "$wxUSE_X_RESOURCES" = "yes"; then
17201 cat >> confdefs.h <<\EOF
17202 #define wxUSE_X_RESOURCES 1
17203 EOF
17204
17205 fi
17206
17207
17208 if test "$wxUSE_IPC" = "yes"; then
17209 if test "$wxUSE_SOCKETS" != "yes"; then
17210 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17211 fi
17212
17213 cat >> confdefs.h <<\EOF
17214 #define wxUSE_IPC 1
17215 EOF
17216
17217 fi
17218
17219 if test "$wxUSE_CLIPBOARD" = "yes"; then
17220 cat >> confdefs.h <<\EOF
17221 #define wxUSE_CLIPBOARD 1
17222 EOF
17223
17224 cat >> confdefs.h <<\EOF
17225 #define wxUSE_DATAOBJ 1
17226 EOF
17227
17228 fi
17229
17230 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17231 if test "$wxUSE_GTK" = 1; then
17232 if test "$WXGTK12" != 1; then
17233 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
17234 wxUSE_DRAG_AND_DROP=no
17235 fi
17236 fi
17237
17238 if test "$wxUSE_MOTIF" = 1; then
17239 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17240 wxUSE_DRAG_AND_DROP=no
17241 fi
17242
17243 if test "$wxUSE_MAC" = 1; then
17244 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17245 wxUSE_DRAG_AND_DROP=no
17246 fi
17247
17248 if test "$USE_WIN32" = 1; then
17249
17250 for ac_hdr in ole2.h
17251 do
17252 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17253 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17254 echo "configure:17255: checking for $ac_hdr" >&5
17255 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17256 echo $ac_n "(cached) $ac_c" 1>&6
17257 else
17258 cat > conftest.$ac_ext <<EOF
17259 #line 17260 "configure"
17260 #include "confdefs.h"
17261 #include <$ac_hdr>
17262 EOF
17263 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17264 { (eval echo configure:17265: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17265 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17266 if test -z "$ac_err"; then
17267 rm -rf conftest*
17268 eval "ac_cv_header_$ac_safe=yes"
17269 else
17270 echo "$ac_err" >&5
17271 echo "configure: failed program was:" >&5
17272 cat conftest.$ac_ext >&5
17273 rm -rf conftest*
17274 eval "ac_cv_header_$ac_safe=no"
17275 fi
17276 rm -f conftest*
17277 fi
17278 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17279 echo "$ac_t""yes" 1>&6
17280 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17281 cat >> confdefs.h <<EOF
17282 #define $ac_tr_hdr 1
17283 EOF
17284
17285 else
17286 echo "$ac_t""no" 1>&6
17287 fi
17288 done
17289
17290
17291 if test "$ac_cv_header_ole2_h" = "yes" ; then
17292 if test "$GCC" = yes ; then
17293 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17294 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
17295 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17296 LIBS="$LIBS -lrpcrt4 -loleaut32 -lole32 -luuid"
17297 cat >> confdefs.h <<\EOF
17298 #define wxUSE_OLE 1
17299 EOF
17300
17301
17302 if test "$wxUSE_METAFILE" = "yes"; then
17303 cat >> confdefs.h <<\EOF
17304 #define wxUSE_METAFILE 1
17305 EOF
17306
17307 cat >> confdefs.h <<\EOF
17308 #define wxUSE_ENH_METAFILE 1
17309 EOF
17310
17311 fi
17312 fi
17313 else
17314 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
17315 wxUSE_DRAG_AND_DROP=no
17316 fi
17317 fi
17318
17319 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17320 cat >> confdefs.h <<\EOF
17321 #define wxUSE_DRAG_AND_DROP 1
17322 EOF
17323
17324 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17325 fi
17326
17327 fi
17328
17329 if test "$wxUSE_SPLINES" = "yes" ; then
17330 cat >> confdefs.h <<\EOF
17331 #define wxUSE_SPLINES 1
17332 EOF
17333
17334 fi
17335
17336
17337 USES_CONTROLS=0
17338 if test "$wxUSE_CONTROLS" = "yes"; then
17339 USES_CONTROLS=1
17340 fi
17341
17342 if test "$wxUSE_ACCEL" = "yes"; then
17343 cat >> confdefs.h <<\EOF
17344 #define wxUSE_ACCEL 1
17345 EOF
17346
17347 USES_CONTROLS=1
17348 fi
17349
17350 if test "$wxUSE_BUTTON" = "yes"; then
17351 cat >> confdefs.h <<\EOF
17352 #define wxUSE_BUTTON 1
17353 EOF
17354
17355 USES_CONTROLS=1
17356 fi
17357
17358 if test "$wxUSE_BMPBUTTON" = "yes"; then
17359 cat >> confdefs.h <<\EOF
17360 #define wxUSE_BMPBUTTON 1
17361 EOF
17362
17363 USES_CONTROLS=1
17364 fi
17365
17366 if test "$wxUSE_CALCTRL" = "yes"; then
17367 cat >> confdefs.h <<\EOF
17368 #define wxUSE_CALENDARCTRL 1
17369 EOF
17370
17371 USES_CONTROLS=1
17372 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17373 fi
17374
17375 if test "$wxUSE_CARET" = "yes"; then
17376 cat >> confdefs.h <<\EOF
17377 #define wxUSE_CARET 1
17378 EOF
17379
17380 USES_CONTROLS=1
17381 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17382 fi
17383
17384 if test "$wxUSE_COMBOBOX" = "yes"; then
17385 cat >> confdefs.h <<\EOF
17386 #define wxUSE_COMBOBOX 1
17387 EOF
17388
17389 USES_CONTROLS=1
17390 fi
17391
17392 if test "$wxUSE_CHOICE" = "yes"; then
17393 cat >> confdefs.h <<\EOF
17394 #define wxUSE_CHOICE 1
17395 EOF
17396
17397 USES_CONTROLS=1
17398 fi
17399
17400 if test "$wxUSE_CHECKBOX" = "yes"; then
17401 cat >> confdefs.h <<\EOF
17402 #define wxUSE_CHECKBOX 1
17403 EOF
17404
17405 USES_CONTROLS=1
17406 fi
17407
17408 if test "$wxUSE_CHECKLST" = "yes"; then
17409 cat >> confdefs.h <<\EOF
17410 #define wxUSE_CHECKLISTBOX 1
17411 EOF
17412
17413 USES_CONTROLS=1
17414 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17415 fi
17416
17417 if test "$wxUSE_GAUGE" = "yes"; then
17418 cat >> confdefs.h <<\EOF
17419 #define wxUSE_GAUGE 1
17420 EOF
17421
17422 USES_CONTROLS=1
17423 fi
17424
17425 if test "$wxUSE_NEW_GRID" = "yes"; then
17426 wxUSE_GRID="yes"
17427 cat >> confdefs.h <<\EOF
17428 #define wxUSE_NEW_GRID 1
17429 EOF
17430
17431 USES_CONTROLS=1
17432 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17433 fi
17434
17435 if test "$wxUSE_GRID" = "yes"; then
17436 cat >> confdefs.h <<\EOF
17437 #define wxUSE_GRID 1
17438 EOF
17439
17440 USES_CONTROLS=1
17441 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17442 fi
17443
17444 if test "$wxUSE_IMAGLIST" = "yes"; then
17445 cat >> confdefs.h <<\EOF
17446 #define wxUSE_IMAGLIST 1
17447 EOF
17448
17449 fi
17450
17451 if test "$wxUSE_LISTBOX" = "yes"; then
17452 cat >> confdefs.h <<\EOF
17453 #define wxUSE_LISTBOX 1
17454 EOF
17455
17456 USES_CONTROLS=1
17457 fi
17458
17459 if test "$wxUSE_LISTCTRL" = "yes"; then
17460 if test "$wxUSE_IMAGLIST" = "yes"; then
17461 cat >> confdefs.h <<\EOF
17462 #define wxUSE_LISTCTRL 1
17463 EOF
17464
17465 USES_CONTROLS=1
17466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17467 else
17468 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
17469 fi
17470 fi
17471
17472 if test "$wxUSE_NOTEBOOK" = "yes"; then
17473 cat >> confdefs.h <<\EOF
17474 #define wxUSE_NOTEBOOK 1
17475 EOF
17476
17477 USES_CONTROLS=1
17478 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17479 fi
17480
17481 if test "$wxUSE_PROPSHEET" = "yes"; then
17482 cat >> confdefs.h <<\EOF
17483 #define wxUSE_PROPSHEET 1
17484 EOF
17485
17486 USES_CONTROLS=1
17487 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17488 fi
17489
17490 if test "$wxUSE_RADIOBOX" = "yes"; then
17491 cat >> confdefs.h <<\EOF
17492 #define wxUSE_RADIOBOX 1
17493 EOF
17494
17495 USES_CONTROLS=1
17496 fi
17497
17498 if test "$wxUSE_RADIOBTN" = "yes"; then
17499 cat >> confdefs.h <<\EOF
17500 #define wxUSE_RADIOBTN 1
17501 EOF
17502
17503 USES_CONTROLS=1
17504 fi
17505
17506 if test "$wxUSE_SASH" = "yes"; then
17507 cat >> confdefs.h <<\EOF
17508 #define wxUSE_SASH 1
17509 EOF
17510
17511 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17512 fi
17513
17514 if test "$wxUSE_SCROLLBAR" = "yes"; then
17515 cat >> confdefs.h <<\EOF
17516 #define wxUSE_SCROLLBAR 1
17517 EOF
17518
17519 USES_CONTROLS=1
17520 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
17521 fi
17522
17523 if test "$wxUSE_SLIDER" = "yes"; then
17524 cat >> confdefs.h <<\EOF
17525 #define wxUSE_SLIDER 1
17526 EOF
17527
17528 USES_CONTROLS=1
17529 fi
17530
17531 if test "$wxUSE_SPINBTN" = "yes"; then
17532 cat >> confdefs.h <<\EOF
17533 #define wxUSE_SPINBTN 1
17534 EOF
17535
17536 USES_CONTROLS=1
17537 fi
17538
17539 if test "$wxUSE_SPINCTRL" = "yes"; then
17540 cat >> confdefs.h <<\EOF
17541 #define wxUSE_SPINCTRL 1
17542 EOF
17543
17544 USES_CONTROLS=1
17545 fi
17546
17547 if test "$wxUSE_SPLITTER" = "yes"; then
17548 cat >> confdefs.h <<\EOF
17549 #define wxUSE_SPLITTER 1
17550 EOF
17551
17552 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17553 fi
17554
17555 if test "$wxUSE_STATBMP" = "yes"; then
17556 cat >> confdefs.h <<\EOF
17557 #define wxUSE_STATBMP 1
17558 EOF
17559
17560 USES_CONTROLS=1
17561 fi
17562
17563 if test "$wxUSE_STATBOX" = "yes"; then
17564 cat >> confdefs.h <<\EOF
17565 #define wxUSE_STATBOX 1
17566 EOF
17567
17568 USES_CONTROLS=1
17569 fi
17570
17571 if test "$wxUSE_STATTEXT" = "yes"; then
17572 cat >> confdefs.h <<\EOF
17573 #define wxUSE_STATTEXT 1
17574 EOF
17575
17576 USES_CONTROLS=1
17577 fi
17578
17579 if test "$wxUSE_STATLINE" = "yes"; then
17580 if test "$wxUSE_WINE" = 1 ; then
17581 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
17582 else
17583 cat >> confdefs.h <<\EOF
17584 #define wxUSE_STATLINE 1
17585 EOF
17586
17587 USES_CONTROLS=1
17588 fi
17589 fi
17590
17591 if test "$wxUSE_STATUSBAR" = "yes"; then
17592 cat >> confdefs.h <<\EOF
17593 #define wxUSE_STATUSBAR 1
17594 EOF
17595
17596 USES_CONTROLS=1
17597
17598 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
17599 fi
17600
17601 if test "$wxUSE_TABDIALOG" = "yes"; then
17602 cat >> confdefs.h <<\EOF
17603 #define wxUSE_TAB_DIALOG 1
17604 EOF
17605
17606 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17607 fi
17608
17609 if test "$wxUSE_TEXTCTRL" = "yes"; then
17610 cat >> confdefs.h <<\EOF
17611 #define wxUSE_TEXTCTRL 1
17612 EOF
17613
17614 USES_CONTROLS=1
17615 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17616 fi
17617
17618 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17619 if test "$wxUSE_MAC" = 1; then
17620 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17621 wxUSE_TOGGLEBTN=no
17622 fi
17623
17624 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17625 cat >> confdefs.h <<\EOF
17626 #define wxUSE_TOGGLEBTN 1
17627 EOF
17628
17629 USES_CONTROLS=1
17630 fi
17631 fi
17632
17633 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
17634 cat >> confdefs.h <<\EOF
17635 #define wxUSE_TOOLBAR_SIMPLE 1
17636 EOF
17637
17638 wxUSE_TOOLBAR="yes"
17639 USES_CONTROLS=1
17640 fi
17641
17642 if test "$wxUSE_TOOLBAR" = "yes"; then
17643 cat >> confdefs.h <<\EOF
17644 #define wxUSE_TOOLBAR 1
17645 EOF
17646
17647 USES_CONTROLS=1
17648
17649 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17650 wxUSE_TOOLBAR_NATIVE="yes"
17651 fi
17652
17653 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17654 cat >> confdefs.h <<\EOF
17655 #define wxUSE_TOOLBAR_NATIVE 1
17656 EOF
17657
17658 USES_CONTROLS=1
17659 fi
17660
17661 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
17662 fi
17663
17664 if test "$wxUSE_TOOLTIPS" = "yes"; then
17665 if test "$wxUSE_MOTIF" = 1; then
17666 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
17667 else
17668 if test "$wxUSE_WINE" = 1; then
17669 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
17670 else
17671 cat >> confdefs.h <<\EOF
17672 #define wxUSE_TOOLTIPS 1
17673 EOF
17674
17675 fi
17676 fi
17677 fi
17678
17679 if test "$wxUSE_TREECTRL" = "yes"; then
17680 if test "$wxUSE_IMAGLIST" = "yes"; then
17681 cat >> confdefs.h <<\EOF
17682 #define wxUSE_TREECTRL 1
17683 EOF
17684
17685 USES_CONTROLS=1
17686 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17687 else
17688 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
17689 fi
17690 fi
17691
17692 if test "$wxUSE_POPUPWIN" = "yes"; then
17693 if test "$wxUSE_MAC" = 1; then
17694 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17695 else
17696 cat >> confdefs.h <<\EOF
17697 #define wxUSE_POPUPWIN 1
17698 EOF
17699
17700 USES_CONTROLS=1
17701 fi
17702 fi
17703
17704 if test "$USES_CONTROLS" = 1; then
17705 cat >> confdefs.h <<\EOF
17706 #define wxUSE_CONTROLS 1
17707 EOF
17708
17709 fi
17710
17711
17712 if test "$wxUSE_TREELAYOUT" = "yes"; then
17713 cat >> confdefs.h <<\EOF
17714 #define wxUSE_TREELAYOUT 1
17715 EOF
17716
17717 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17718 fi
17719
17720 if test "$wxUSE_DRAGIMAGE" = "yes"; then
17721 cat >> confdefs.h <<\EOF
17722 #define wxUSE_DRAGIMAGE 1
17723 EOF
17724
17725 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17726 fi
17727
17728 if test "$wxUSE_MENUS" = "yes"; then
17729 cat >> confdefs.h <<\EOF
17730 #define wxUSE_MENUS 1
17731 EOF
17732
17733 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
17734 fi
17735
17736 if test "$wxUSE_METAFILE" = "yes"; then
17737 cat >> confdefs.h <<\EOF
17738 #define wxUSE_METAFILE 1
17739 EOF
17740
17741 fi
17742
17743 if test "$wxUSE_MIMETYPE" = "yes"; then
17744 cat >> confdefs.h <<\EOF
17745 #define wxUSE_MIMETYPE 1
17746 EOF
17747
17748 fi
17749
17750 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17751 cat >> confdefs.h <<\EOF
17752 #define wxUSE_SYSTEM_OPTIONS 1
17753 EOF
17754
17755 fi
17756
17757 if test "$wxUSE_MINIFRAME" = "yes"; then
17758 cat >> confdefs.h <<\EOF
17759 #define wxUSE_MINIFRAME 1
17760 EOF
17761
17762 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17763 fi
17764
17765 if test "$wxUSE_HTML" = "yes"; then
17766 cat >> confdefs.h <<\EOF
17767 #define wxUSE_HTML 1
17768 EOF
17769
17770 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17771 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
17772 fi
17773
17774 if test "$wxUSE_VALIDATORS" = "yes"; then
17775 cat >> confdefs.h <<\EOF
17776 #define wxUSE_VALIDATORS 1
17777 EOF
17778
17779 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17780 fi
17781
17782 if test "$wxUSE_IMAGE" = "yes" ; then
17783 cat >> confdefs.h <<\EOF
17784 #define wxUSE_IMAGE 1
17785 EOF
17786
17787 fi
17788
17789 if test "$wxUSE_GIF" = "yes" ; then
17790 cat >> confdefs.h <<\EOF
17791 #define wxUSE_GIF 1
17792 EOF
17793
17794 fi
17795
17796 if test "$wxUSE_PCX" = "yes" ; then
17797 cat >> confdefs.h <<\EOF
17798 #define wxUSE_PCX 1
17799 EOF
17800
17801 fi
17802
17803 if test "$wxUSE_PNM" = "yes" ; then
17804 cat >> confdefs.h <<\EOF
17805 #define wxUSE_PNM 1
17806 EOF
17807
17808 fi
17809
17810 if test "$wxUSE_XPM" = "yes" ; then
17811 cat >> confdefs.h <<\EOF
17812 #define wxUSE_XPM 1
17813 EOF
17814
17815 fi
17816
17817
17818 if test "$wxUSE_CHOICEDLG" = "yes"; then
17819 cat >> confdefs.h <<\EOF
17820 #define wxUSE_CHOICEDLG 1
17821 EOF
17822
17823 fi
17824
17825 if test "$wxUSE_COLOURDLG" = "yes"; then
17826 cat >> confdefs.h <<\EOF
17827 #define wxUSE_COLOURDLG 1
17828 EOF
17829
17830 fi
17831
17832 if test "$wxUSE_FILEDLG" = "yes"; then
17833 cat >> confdefs.h <<\EOF
17834 #define wxUSE_FILEDLG 1
17835 EOF
17836
17837 fi
17838
17839 if test "$wxUSE_FINDREPLDLG" = "yes"; then
17840 cat >> confdefs.h <<\EOF
17841 #define wxUSE_FINDREPLDLG 1
17842 EOF
17843
17844 fi
17845
17846 if test "$wxUSE_FONTDLG" = "yes"; then
17847 cat >> confdefs.h <<\EOF
17848 #define wxUSE_FONTDLG 1
17849 EOF
17850
17851 fi
17852
17853 if test "$wxUSE_DIRDLG" = "yes"; then
17854 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17855 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17856 else
17857 if test "$wxUSE_TREECTRL" != "yes"; then
17858 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17859 else
17860 cat >> confdefs.h <<\EOF
17861 #define wxUSE_DIRDLG 1
17862 EOF
17863
17864 fi
17865 fi
17866 fi
17867
17868 if test "$wxUSE_MSGDLG" = "yes"; then
17869 cat >> confdefs.h <<\EOF
17870 #define wxUSE_MSGDLG 1
17871 EOF
17872
17873 fi
17874
17875 if test "$wxUSE_NUMBERDLG" = "yes"; then
17876 cat >> confdefs.h <<\EOF
17877 #define wxUSE_NUMBERDLG 1
17878 EOF
17879
17880 fi
17881
17882 if test "$wxUSE_PROGRESSDLG" = "yes"; then
17883 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17884 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17885 else
17886 cat >> confdefs.h <<\EOF
17887 #define wxUSE_PROGRESSDLG 1
17888 EOF
17889
17890 fi
17891 fi
17892
17893 if test "$wxUSE_SPLASH" = "yes"; then
17894 cat >> confdefs.h <<\EOF
17895 #define wxUSE_SPLASH 1
17896 EOF
17897
17898 fi
17899
17900 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17901 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17902 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17903 else
17904 cat >> confdefs.h <<\EOF
17905 #define wxUSE_STARTUP_TIPS 1
17906 EOF
17907
17908 fi
17909 fi
17910
17911 if test "$wxUSE_TEXTDLG" = "yes"; then
17912 cat >> confdefs.h <<\EOF
17913 #define wxUSE_TEXTDLG 1
17914 EOF
17915
17916 fi
17917
17918 if test "$wxUSE_WIZARDDLG" = "yes"; then
17919 cat >> confdefs.h <<\EOF
17920 #define wxUSE_WIZARDDLG 1
17921 EOF
17922
17923 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17924 fi
17925
17926
17927 if test "$cross_compiling" = "yes"; then
17928 OSINFO="\"$host\""
17929 else
17930 OSINFO=`uname -s -r -m`
17931 OSINFO="\"$OSINFO\""
17932 fi
17933
17934 cat >> confdefs.h <<EOF
17935 #define WXWIN_OS_DESCRIPTION $OSINFO
17936 EOF
17937
17938
17939
17940 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17941 OPENGL_LIBS="$OPENGL_LINK"
17942
17943 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17944 if test "$wxUSE_MAC" = 1 ; then
17945 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17946 fi
17947 if test "$wxUSE_GUI" = "yes"; then
17948 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17949 fi
17950
17951 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17952
17953 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include \
17954 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
17955 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17956
17957 if test "$wxUSE_GTK" = 1; then
17958 WXCONFIG_INCLUDE=""
17959 else
17960 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17961 fi
17962
17963 if test "$GXX" = yes ; then
17964 CXXWARNINGS="-Wall"
17965 fi
17966 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17967
17968 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17969 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17970
17971 LDFLAGS="$LDFLAGS $PROFILE"
17972
17973 if test "$wxUSE_GUI" = "yes"; then
17974
17975 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
17976 drawing dynamic erase event exec font image \
17977 minimal richedit rotate widgets"
17978
17979 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17980 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17981 fi
17982
17983 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17984 else
17985 SAMPLES_SUBDIRS="console"
17986 fi
17987
17988 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
18085 echo "configure:18086: checking whether ${MAKE-make} sets \${MAKE}" >&5
18086 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
18087 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
18088 echo $ac_n "(cached) $ac_c" 1>&6
18089 else
18090 cat > conftestmake <<\EOF
18091 all:
18092 @echo 'ac_maketemp="${MAKE}"'
18093 EOF
18094 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18095 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
18096 if test -n "$ac_maketemp"; then
18097 eval ac_cv_prog_make_${ac_make}_set=yes
18098 else
18099 eval ac_cv_prog_make_${ac_make}_set=no
18100 fi
18101 rm -f conftestmake
18102 fi
18103 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18104 echo "$ac_t""yes" 1>&6
18105 SET_MAKE=
18106 else
18107 echo "$ac_t""no" 1>&6
18108 SET_MAKE="MAKE=${MAKE-make}"
18109 fi
18110
18111
18112 if test -d include; then
18113 if test -d include/wx; then
18114 if test -d include/wx/${SETUPH_DIR}; then
18115 if test -f include/wx/${SETUPH_DIR}/setup.h; then
18116 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
18117 fi
18118 fi
18119 fi
18120 fi
18121
18122
18123
18124 if test "$wxUSE_GUI" = "yes"; then
18125 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
18126 wx_cv_path_ifs=$PATH_IFS
18127 wx_cv_program_ext=$PROGRAM_EXT
18128 wx_cv_target_library=$WX_TARGET_LIBRARY
18129 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
18130 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
18131 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
18132 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
18133 subdirs="demos samples utils contrib"
18134
18135 fi
18136
18137 trap '' 1 2 15
18138 cat > confcache <<\EOF
18139 # This file is a shell script that caches the results of configure
18140 # tests run on this system so they can be shared between configure
18141 # scripts and configure runs. It is not useful on other systems.
18142 # If it contains results you don't want to keep, you may remove or edit it.
18143 #
18144 # By default, configure uses ./config.cache as the cache file,
18145 # creating it if it does not exist already. You can give configure
18146 # the --cache-file=FILE option to use a different cache file; that is
18147 # what configure does when it calls configure scripts in
18148 # subdirectories, so they share the cache.
18149 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18150 # config.status only pays attention to the cache file if you give it the
18151 # --recheck option to rerun configure.
18152 #
18153 EOF
18154 # The following way of writing the cache mishandles newlines in values,
18155 # but we know of no workaround that is simple, portable, and efficient.
18156 # So, don't put newlines in cache variables' values.
18157 # Ultrix sh set writes to stderr and can't be redirected directly,
18158 # and sets the high bit in the cache file unless we assign to the vars.
18159 (set) 2>&1 |
18160 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18161 *ac_space=\ *)
18162 # `set' does not quote correctly, so add quotes (double-quote substitution
18163 # turns \\\\ into \\, and sed turns \\ into \).
18164 sed -n \
18165 -e "s/'/'\\\\''/g" \
18166 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18167 ;;
18168 *)
18169 # `set' quotes correctly as required by POSIX, so do not add quotes.
18170 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18171 ;;
18172 esac >> confcache
18173 if cmp -s $cache_file confcache; then
18174 :
18175 else
18176 if test -w $cache_file; then
18177 echo "updating cache $cache_file"
18178 cat confcache > $cache_file
18179 else
18180 echo "not updating unwritable cache $cache_file"
18181 fi
18182 fi
18183 rm -f confcache
18184
18185 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18186
18187 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18188 # Let make expand exec_prefix.
18189 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18190
18191 # Any assignment to VPATH causes Sun make to only execute
18192 # the first set of double-colon rules, so remove it if not needed.
18193 # If there is a colon in the path, we need to keep it.
18194 if test "x$srcdir" = x.; then
18195 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18196 fi
18197
18198 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18199
18200 DEFS=-DHAVE_CONFIG_H
18201
18202 # Without the "./", some shells look in PATH for config.status.
18203 : ${CONFIG_STATUS=./config.status}
18204
18205 echo creating $CONFIG_STATUS
18206 rm -f $CONFIG_STATUS
18207 cat > $CONFIG_STATUS <<EOF
18208 #! /bin/sh
18209 # Generated automatically by configure.
18210 # Run this file to recreate the current configuration.
18211 # This directory was configured as follows,
18212 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18213 #
18214 # $0 $ac_configure_args
18215 #
18216 # Compiler output produced by configure, useful for debugging
18217 # configure, is in ./config.log if it exists.
18218
18219 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18220 for ac_option
18221 do
18222 case "\$ac_option" in
18223 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18224 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18225 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18226 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18227 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18228 exit 0 ;;
18229 -help | --help | --hel | --he | --h)
18230 echo "\$ac_cs_usage"; exit 0 ;;
18231 *) echo "\$ac_cs_usage"; exit 1 ;;
18232 esac
18233 done
18234
18235 ac_given_srcdir=$srcdir
18236 ac_given_INSTALL="$INSTALL"
18237
18238 trap 'rm -fr `echo "
18239 wx-config
18240 src/make.env
18241 src/makeprog.env
18242 src/makelib.env
18243 Makefile
18244 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18245 EOF
18246 cat >> $CONFIG_STATUS <<EOF
18247
18248 # Protect against being on the right side of a sed subst in config.status.
18249 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18250 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18251 $ac_vpsub
18252 $extrasub
18253 s%@SHELL@%$SHELL%g
18254 s%@CFLAGS@%$CFLAGS%g
18255 s%@CPPFLAGS@%$CPPFLAGS%g
18256 s%@CXXFLAGS@%$CXXFLAGS%g
18257 s%@FFLAGS@%$FFLAGS%g
18258 s%@DEFS@%$DEFS%g
18259 s%@LDFLAGS@%$LDFLAGS%g
18260 s%@LIBS@%$LIBS%g
18261 s%@exec_prefix@%$exec_prefix%g
18262 s%@prefix@%$prefix%g
18263 s%@program_transform_name@%$program_transform_name%g
18264 s%@bindir@%$bindir%g
18265 s%@sbindir@%$sbindir%g
18266 s%@libexecdir@%$libexecdir%g
18267 s%@datadir@%$datadir%g
18268 s%@sysconfdir@%$sysconfdir%g
18269 s%@sharedstatedir@%$sharedstatedir%g
18270 s%@localstatedir@%$localstatedir%g
18271 s%@libdir@%$libdir%g
18272 s%@includedir@%$includedir%g
18273 s%@oldincludedir@%$oldincludedir%g
18274 s%@infodir@%$infodir%g
18275 s%@mandir@%$mandir%g
18276 s%@host@%$host%g
18277 s%@host_alias@%$host_alias%g
18278 s%@host_cpu@%$host_cpu%g
18279 s%@host_vendor@%$host_vendor%g
18280 s%@host_os@%$host_os%g
18281 s%@target@%$target%g
18282 s%@target_alias@%$target_alias%g
18283 s%@target_cpu@%$target_cpu%g
18284 s%@target_vendor@%$target_vendor%g
18285 s%@target_os@%$target_os%g
18286 s%@build@%$build%g
18287 s%@build_alias@%$build_alias%g
18288 s%@build_cpu@%$build_cpu%g
18289 s%@build_vendor@%$build_vendor%g
18290 s%@build_os@%$build_os%g
18291 s%@CC@%$CC%g
18292 s%@CPP@%$CPP%g
18293 s%@CXX@%$CXX%g
18294 s%@CXXCPP@%$CXXCPP%g
18295 s%@RANLIB@%$RANLIB%g
18296 s%@AR@%$AR%g
18297 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18298 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18299 s%@INSTALL_DATA@%$INSTALL_DATA%g
18300 s%@STRIP@%$STRIP%g
18301 s%@YACC@%$YACC%g
18302 s%@LEX@%$LEX%g
18303 s%@LEXLIB@%$LEXLIB%g
18304 s%@LN_S@%$LN_S%g
18305 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18306 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18307 s%@GTK_LIBS@%$GTK_LIBS%g
18308 s%@GTK_CONFIG@%$GTK_CONFIG%g
18309 s%@X_CFLAGS@%$X_CFLAGS%g
18310 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18311 s%@X_LIBS@%$X_LIBS%g
18312 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18313 s%@REZ@%$REZ%g
18314 s%@DEREZ@%$DEREZ%g
18315 s%@LEX_STEM@%$LEX_STEM%g
18316 s%@PATH_IFS@%$PATH_IFS%g
18317 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18318 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18319 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18320 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
18321 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18322 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18323 s%@WX_LIBRARY@%$WX_LIBRARY%g
18324 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18325 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18326 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18327 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
18328 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18329 s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
18330 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18331 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18332 s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
18333 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18334 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18335 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18336 s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
18337 s%@WX_ALL@%$WX_ALL%g
18338 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18339 s%@SHARED_LD@%$SHARED_LD%g
18340 s%@PIC_FLAG@%$PIC_FLAG%g
18341 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
18342 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18343 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18344 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
18345 s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
18346 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18347 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18348 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18349 s%@USE_GUI@%$USE_GUI%g
18350 s%@AFMINSTALL@%$AFMINSTALL%g
18351 s%@SETUPH_DIR@%$SETUPH_DIR%g
18352 s%@TOOLKIT@%$TOOLKIT%g
18353 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
18354 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18355 s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
18356 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
18357 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18358 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18359 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18360 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
18361 s%@GUIDIST@%$GUIDIST%g
18362 s%@PORT_FILES@%$PORT_FILES%g
18363 s%@DISTDIR@%$DISTDIR%g
18364 s%@RPM_SPEC@%$RPM_SPEC%g
18365 s%@RPM_FILES@%$RPM_FILES%g
18366 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
18367 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
18368 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
18369 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
18370 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18371 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
18372 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18373 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18374 s%@EXTRADEFS@%$EXTRADEFS%g
18375 s%@LD_LIBS@%$LD_LIBS%g
18376 s%@WXMSW_DLL_DEFINES@%$WXMSW_DLL_DEFINES%g
18377 s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
18378 s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
18379 s%@RESPROGRAM@%$RESPROGRAM%g
18380 s%@RESCOMP@%$RESCOMP%g
18381 s%@RESFLAGS@%$RESFLAGS%g
18382 s%@REZFLAGS@%$REZFLAGS%g
18383 s%@DEREZFLAGS@%$DEREZFLAGS%g
18384 s%@LIBWXMACRES@%$LIBWXMACRES%g
18385 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18386 s%@DLLTOOL@%$DLLTOOL%g
18387 s%@AS@%$AS%g
18388 s%@NM@%$NM%g
18389 s%@LD@%$LD%g
18390 s%@MAKEINFO@%$MAKEINFO%g
18391 s%@SET_MAKE@%$SET_MAKE%g
18392 s%@subdirs@%$subdirs%g
18393
18394 CEOF
18395 EOF
18396
18397 cat >> $CONFIG_STATUS <<\EOF
18398
18399 # Split the substitutions into bite-sized pieces for seds with
18400 # small command number limits, like on Digital OSF/1 and HP-UX.
18401 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18402 ac_file=1 # Number of current file.
18403 ac_beg=1 # First line for current file.
18404 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18405 ac_more_lines=:
18406 ac_sed_cmds=""
18407 while $ac_more_lines; do
18408 if test $ac_beg -gt 1; then
18409 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18410 else
18411 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18412 fi
18413 if test ! -s conftest.s$ac_file; then
18414 ac_more_lines=false
18415 rm -f conftest.s$ac_file
18416 else
18417 if test -z "$ac_sed_cmds"; then
18418 ac_sed_cmds="sed -f conftest.s$ac_file"
18419 else
18420 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18421 fi
18422 ac_file=`expr $ac_file + 1`
18423 ac_beg=$ac_end
18424 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18425 fi
18426 done
18427 if test -z "$ac_sed_cmds"; then
18428 ac_sed_cmds=cat
18429 fi
18430 EOF
18431
18432 cat >> $CONFIG_STATUS <<EOF
18433
18434 CONFIG_FILES=\${CONFIG_FILES-"wx-config
18435 src/make.env
18436 src/makeprog.env
18437 src/makelib.env
18438 Makefile
18439 "}
18440 EOF
18441 cat >> $CONFIG_STATUS <<\EOF
18442 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18443 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18444 case "$ac_file" in
18445 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18446 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18447 *) ac_file_in="${ac_file}.in" ;;
18448 esac
18449
18450 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18451
18452 # Remove last slash and all that follows it. Not all systems have dirname.
18453 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18454 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18455 # The file is in a subdirectory.
18456 test ! -d "$ac_dir" && mkdir "$ac_dir"
18457 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18458 # A "../" for each directory in $ac_dir_suffix.
18459 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18460 else
18461 ac_dir_suffix= ac_dots=
18462 fi
18463
18464 case "$ac_given_srcdir" in
18465 .) srcdir=.
18466 if test -z "$ac_dots"; then top_srcdir=.
18467 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18468 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18469 *) # Relative path.
18470 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18471 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18472 esac
18473
18474 case "$ac_given_INSTALL" in
18475 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18476 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18477 esac
18478
18479 echo creating "$ac_file"
18480 rm -f "$ac_file"
18481 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18482 case "$ac_file" in
18483 *Makefile*) ac_comsub="1i\\
18484 # $configure_input" ;;
18485 *) ac_comsub= ;;
18486 esac
18487
18488 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18489 sed -e "$ac_comsub
18490 s%@configure_input@%$configure_input%g
18491 s%@srcdir@%$srcdir%g
18492 s%@top_srcdir@%$top_srcdir%g
18493 s%@INSTALL@%$INSTALL%g
18494 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18495 fi; done
18496 rm -f conftest.s*
18497
18498 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18499 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18500 #
18501 # ac_d sets the value in "#define NAME VALUE" lines.
18502 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18503 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18504 ac_dC='\3'
18505 ac_dD='%g'
18506 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18507 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18508 ac_uB='\([ ]\)%\1#\2define\3'
18509 ac_uC=' '
18510 ac_uD='\4%g'
18511 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18512 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18513 ac_eB='$%\1#\2define\3'
18514 ac_eC=' '
18515 ac_eD='%g'
18516
18517 if test "${CONFIG_HEADERS+set}" != set; then
18518 EOF
18519 cat >> $CONFIG_STATUS <<EOF
18520 CONFIG_HEADERS="setup.h:setup.h.in"
18521 EOF
18522 cat >> $CONFIG_STATUS <<\EOF
18523 fi
18524 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18525 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18526 case "$ac_file" in
18527 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18528 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18529 *) ac_file_in="${ac_file}.in" ;;
18530 esac
18531
18532 echo creating $ac_file
18533
18534 rm -f conftest.frag conftest.in conftest.out
18535 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18536 cat $ac_file_inputs > conftest.in
18537
18538 EOF
18539
18540 # Transform confdefs.h into a sed script conftest.vals that substitutes
18541 # the proper values into config.h.in to produce config.h. And first:
18542 # Protect against being on the right side of a sed subst in config.status.
18543 # Protect against being in an unquoted here document in config.status.
18544 rm -f conftest.vals
18545 cat > conftest.hdr <<\EOF
18546 s/[\\&%]/\\&/g
18547 s%[\\$`]%\\&%g
18548 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18549 s%ac_d%ac_u%gp
18550 s%ac_u%ac_e%gp
18551 EOF
18552 sed -n -f conftest.hdr confdefs.h > conftest.vals
18553 rm -f conftest.hdr
18554
18555 # This sed command replaces #undef with comments. This is necessary, for
18556 # example, in the case of _POSIX_SOURCE, which is predefined and required
18557 # on some systems where configure will not decide to define it.
18558 cat >> conftest.vals <<\EOF
18559 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18560 EOF
18561
18562 # Break up conftest.vals because some shells have a limit on
18563 # the size of here documents, and old seds have small limits too.
18564
18565 rm -f conftest.tail
18566 while :
18567 do
18568 ac_lines=`grep -c . conftest.vals`
18569 # grep -c gives empty output for an empty file on some AIX systems.
18570 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18571 # Write a limited-size here document to conftest.frag.
18572 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18573 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18574 echo 'CEOF
18575 sed -f conftest.frag conftest.in > conftest.out
18576 rm -f conftest.in
18577 mv conftest.out conftest.in
18578 ' >> $CONFIG_STATUS
18579 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18580 rm -f conftest.vals
18581 mv conftest.tail conftest.vals
18582 done
18583 rm -f conftest.vals
18584
18585 cat >> $CONFIG_STATUS <<\EOF
18586 rm -f conftest.frag conftest.h
18587 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18588 cat conftest.in >> conftest.h
18589 rm -f conftest.in
18590 if cmp -s $ac_file conftest.h 2>/dev/null; then
18591 echo "$ac_file is unchanged"
18592 rm -f conftest.h
18593 else
18594 # Remove last slash and all that follows it. Not all systems have dirname.
18595 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18596 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18597 # The file is in a subdirectory.
18598 test ! -d "$ac_dir" && mkdir "$ac_dir"
18599 fi
18600 rm -f $ac_file
18601 mv conftest.h $ac_file
18602 fi
18603 fi; done
18604
18605 EOF
18606 cat >> $CONFIG_STATUS <<EOF
18607
18608 SETUPH_DIR="${SETUPH_DIR}"
18609 TOOLKIT_NAME="${TOOLKIT_NAME}"
18610 LN_S="${LN_S}"
18611
18612
18613 EOF
18614 cat >> $CONFIG_STATUS <<\EOF
18615
18616 if test ! -f wx${TOOLKIT_NAME}-config; then
18617 chmod +x wx-config
18618 mv wx-config wx${TOOLKIT_NAME}-config
18619 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
18620 fi
18621
18622
18623 if test ! -d lib; then
18624 mkdir lib
18625 fi
18626 if test ! -d lib/wx; then
18627 mkdir lib/wx
18628 fi
18629 if test ! -d lib/wx/include; then
18630 mkdir lib/wx/include
18631 fi
18632 if test ! -d lib/wx/include/wx; then
18633 mkdir lib/wx/include/wx
18634 fi
18635 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
18636 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
18637 fi
18638 if test -f setup.h; then
18639 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
18640 fi
18641
18642
18643 if test ! -d include; then
18644 mkdir include
18645 fi
18646 if test ! -d include/wx; then
18647 mkdir include/wx
18648 fi
18649 if test ! -d include/wx/${SETUPH_DIR}; then
18650 mkdir include/wx/${SETUPH_DIR}
18651 fi
18652 if test -f setup.h; then
18653 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
18654 fi
18655
18656
18657 exit 0
18658 EOF
18659 chmod +x $CONFIG_STATUS
18660 rm -fr confdefs* $ac_clean_files
18661 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18662
18663 if test "$no_recursion" != yes; then
18664
18665 # Remove --cache-file and --srcdir arguments so they do not pile up.
18666 ac_sub_configure_args=
18667 ac_prev=
18668 for ac_arg in $ac_configure_args; do
18669 if test -n "$ac_prev"; then
18670 ac_prev=
18671 continue
18672 fi
18673 case "$ac_arg" in
18674 -cache-file | --cache-file | --cache-fil | --cache-fi \
18675 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18676 ac_prev=cache_file ;;
18677 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18678 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
18679 ;;
18680 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18681 ac_prev=srcdir ;;
18682 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18683 ;;
18684 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18685 esac
18686 done
18687
18688 for ac_config_dir in demos samples utils contrib; do
18689
18690 # Do not complain, so a configure script can configure whichever
18691 # parts of a large source tree are present.
18692 if test ! -d $srcdir/$ac_config_dir; then
18693 continue
18694 fi
18695
18696 echo configuring in $ac_config_dir
18697
18698 case "$srcdir" in
18699 .) ;;
18700 *)
18701 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18702 else
18703 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18704 fi
18705 ;;
18706 esac
18707
18708 ac_popdir=`pwd`
18709 cd $ac_config_dir
18710
18711 # A "../" for each directory in /$ac_config_dir.
18712 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
18713
18714 case "$srcdir" in
18715 .) # No --srcdir option. We are building in place.
18716 ac_sub_srcdir=$srcdir ;;
18717 /*) # Absolute path.
18718 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
18719 *) # Relative path.
18720 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
18721 esac
18722
18723 # Check for guested configure; otherwise get Cygnus style configure.
18724 if test -f $ac_sub_srcdir/configure; then
18725 ac_sub_configure=$ac_sub_srcdir/configure
18726 elif test -f $ac_sub_srcdir/configure.in; then
18727 ac_sub_configure=$ac_configure
18728 else
18729 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
18730 ac_sub_configure=
18731 fi
18732
18733 # The recursion is here.
18734 if test -n "$ac_sub_configure"; then
18735
18736 # Make the cache file name correct relative to the subdirectory.
18737 case "$cache_file" in
18738 /*) ac_sub_cache_file=$cache_file ;;
18739 *) # Relative path.
18740 ac_sub_cache_file="$ac_dots$cache_file" ;;
18741 esac
18742 case "$ac_given_INSTALL" in
18743 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18744 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18745 esac
18746
18747 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
18748 # The eval makes quoting arguments work.
18749 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18750 then :
18751 else
18752 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18753 fi
18754 fi
18755
18756 cd $ac_popdir
18757 done
18758 fi
18759
18760