]> git.saurik.com Git - wxWidgets.git/blob - configure
Added fl (frame layout) to wxWindows, from source tidied by Hans Van Leemputten ...
[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-fontdlg use wxFontDialog"
326 ac_help="$ac_help
327 --enable-dirdlg use wxDirDialog"
328 ac_help="$ac_help
329 --enable-msgdlg use wxMessageDialog"
330 ac_help="$ac_help
331 --enable-numberdlg use wxNumberEntryDialog"
332 ac_help="$ac_help
333 --enable-textdlg use wxTextDialog"
334 ac_help="$ac_help
335 --enable-tipdlg use startup tips"
336 ac_help="$ac_help
337 --enable-progressdlg use wxProgressDialog"
338 ac_help="$ac_help
339 --enable-wizarddlg use wxWizard"
340 ac_help="$ac_help
341 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
342 ac_help="$ac_help
343 --enable-miniframe use wxMiniFrame class"
344 ac_help="$ac_help
345 --enable-tooltips use wxToolTip class"
346 ac_help="$ac_help
347 --enable-splines use spline drawing code"
348 ac_help="$ac_help
349 --enable-validators use wxValidator and derived classes"
350 ac_help="$ac_help
351 --enable-busyinfo use wxBusyInfo"
352 ac_help="$ac_help
353 --enable-joystick compile in joystick support (Linux only)"
354 ac_help="$ac_help
355 --enable-metafiles use wxMetaFile (Windows only)"
356 ac_help="$ac_help
357 --enable-dragimage use wxDragImage"
358 ac_help="$ac_help
359 --enable-image use wxImage class"
360 ac_help="$ac_help
361 --enable-gif use gif images (GIF file format)"
362 ac_help="$ac_help
363 --enable-pcx use pcx images (PCX file format)"
364 ac_help="$ac_help
365 --enable-pnm use pnm images (PNM file format)"
366 ac_help="$ac_help
367 --enable-xpm use xpm images (XPM file format)"
368 ac_help="$ac_help
369 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
370 ac_help="$ac_help
371 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
372 ac_help="$ac_help
373 --disable-gtktest Do not try to compile and run a test GTK program"
374 ac_help="$ac_help
375 --with-x use the X Window System"
376
377 # Initialize some variables set by options.
378 # The variables have the same names as the options, with
379 # dashes changed to underlines.
380 build=NONE
381 cache_file=./config.cache
382 exec_prefix=NONE
383 host=NONE
384 no_create=
385 nonopt=NONE
386 no_recursion=
387 prefix=NONE
388 program_prefix=NONE
389 program_suffix=NONE
390 program_transform_name=s,x,x,
391 silent=
392 site=
393 srcdir=
394 target=NONE
395 verbose=
396 x_includes=NONE
397 x_libraries=NONE
398 bindir='${exec_prefix}/bin'
399 sbindir='${exec_prefix}/sbin'
400 libexecdir='${exec_prefix}/libexec'
401 datadir='${prefix}/share'
402 sysconfdir='${prefix}/etc'
403 sharedstatedir='${prefix}/com'
404 localstatedir='${prefix}/var'
405 libdir='${exec_prefix}/lib'
406 includedir='${prefix}/include'
407 oldincludedir='/usr/include'
408 infodir='${prefix}/info'
409 mandir='${prefix}/man'
410
411 # Initialize some other variables.
412 subdirs=
413 MFLAGS= MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415 # Maximum number of lines to put in a shell here document.
416 ac_max_here_lines=12
417
418 ac_prev=
419 for ac_option
420 do
421
422 # If the previous option needs an argument, assign it.
423 if test -n "$ac_prev"; then
424 eval "$ac_prev=\$ac_option"
425 ac_prev=
426 continue
427 fi
428
429 case "$ac_option" in
430 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
431 *) ac_optarg= ;;
432 esac
433
434 # Accept the important Cygnus configure options, so we can diagnose typos.
435
436 case "$ac_option" in
437
438 -bindir | --bindir | --bindi | --bind | --bin | --bi)
439 ac_prev=bindir ;;
440 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
441 bindir="$ac_optarg" ;;
442
443 -build | --build | --buil | --bui | --bu)
444 ac_prev=build ;;
445 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
446 build="$ac_optarg" ;;
447
448 -cache-file | --cache-file | --cache-fil | --cache-fi \
449 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
450 ac_prev=cache_file ;;
451 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
452 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
453 cache_file="$ac_optarg" ;;
454
455 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
456 ac_prev=datadir ;;
457 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
458 | --da=*)
459 datadir="$ac_optarg" ;;
460
461 -disable-* | --disable-*)
462 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
463 # Reject names that are not valid shell variable names.
464 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
465 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
466 fi
467 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
468 eval "enable_${ac_feature}=no" ;;
469
470 -enable-* | --enable-*)
471 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
472 # Reject names that are not valid shell variable names.
473 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
474 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
475 fi
476 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
477 case "$ac_option" in
478 *=*) ;;
479 *) ac_optarg=yes ;;
480 esac
481 eval "enable_${ac_feature}='$ac_optarg'" ;;
482
483 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
484 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
485 | --exec | --exe | --ex)
486 ac_prev=exec_prefix ;;
487 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
488 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
489 | --exec=* | --exe=* | --ex=*)
490 exec_prefix="$ac_optarg" ;;
491
492 -gas | --gas | --ga | --g)
493 # Obsolete; use --with-gas.
494 with_gas=yes ;;
495
496 -help | --help | --hel | --he)
497 # Omit some internal or obsolete options to make the list less imposing.
498 # This message is too long to be a string in the A/UX 3.1 sh.
499 cat << EOF
500 Usage: configure [options] [host]
501 Options: [defaults in brackets after descriptions]
502 Configuration:
503 --cache-file=FILE cache test results in FILE
504 --help print this message
505 --no-create do not create output files
506 --quiet, --silent do not print \`checking...' messages
507 --version print the version of autoconf that created configure
508 Directory and file names:
509 --prefix=PREFIX install architecture-independent files in PREFIX
510 [$ac_default_prefix]
511 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
512 [same as prefix]
513 --bindir=DIR user executables in DIR [EPREFIX/bin]
514 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
515 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
516 --datadir=DIR read-only architecture-independent data in DIR
517 [PREFIX/share]
518 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
519 --sharedstatedir=DIR modifiable architecture-independent data in DIR
520 [PREFIX/com]
521 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
522 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
523 --includedir=DIR C header files in DIR [PREFIX/include]
524 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
525 --infodir=DIR info documentation in DIR [PREFIX/info]
526 --mandir=DIR man documentation in DIR [PREFIX/man]
527 --srcdir=DIR find the sources in DIR [configure dir or ..]
528 --program-prefix=PREFIX prepend PREFIX to installed program names
529 --program-suffix=SUFFIX append SUFFIX to installed program names
530 --program-transform-name=PROGRAM
531 run sed PROGRAM on installed program names
532 EOF
533 cat << EOF
534 Host type:
535 --build=BUILD configure for building on BUILD [BUILD=HOST]
536 --host=HOST configure for HOST [guessed]
537 --target=TARGET configure for TARGET [TARGET=HOST]
538 Features and packages:
539 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
540 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
541 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
542 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
543 --x-includes=DIR X include files are in DIR
544 --x-libraries=DIR X library files are in DIR
545 EOF
546 if test -n "$ac_help"; then
547 echo "--enable and --with options recognized:$ac_help"
548 fi
549 exit 0 ;;
550
551 -host | --host | --hos | --ho)
552 ac_prev=host ;;
553 -host=* | --host=* | --hos=* | --ho=*)
554 host="$ac_optarg" ;;
555
556 -includedir | --includedir | --includedi | --included | --include \
557 | --includ | --inclu | --incl | --inc)
558 ac_prev=includedir ;;
559 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
560 | --includ=* | --inclu=* | --incl=* | --inc=*)
561 includedir="$ac_optarg" ;;
562
563 -infodir | --infodir | --infodi | --infod | --info | --inf)
564 ac_prev=infodir ;;
565 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
566 infodir="$ac_optarg" ;;
567
568 -libdir | --libdir | --libdi | --libd)
569 ac_prev=libdir ;;
570 -libdir=* | --libdir=* | --libdi=* | --libd=*)
571 libdir="$ac_optarg" ;;
572
573 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
574 | --libexe | --libex | --libe)
575 ac_prev=libexecdir ;;
576 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
577 | --libexe=* | --libex=* | --libe=*)
578 libexecdir="$ac_optarg" ;;
579
580 -localstatedir | --localstatedir | --localstatedi | --localstated \
581 | --localstate | --localstat | --localsta | --localst \
582 | --locals | --local | --loca | --loc | --lo)
583 ac_prev=localstatedir ;;
584 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
585 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
586 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
587 localstatedir="$ac_optarg" ;;
588
589 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
590 ac_prev=mandir ;;
591 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
592 mandir="$ac_optarg" ;;
593
594 -nfp | --nfp | --nf)
595 # Obsolete; use --without-fp.
596 with_fp=no ;;
597
598 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
599 | --no-cr | --no-c)
600 no_create=yes ;;
601
602 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
603 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
604 no_recursion=yes ;;
605
606 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
607 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
608 | --oldin | --oldi | --old | --ol | --o)
609 ac_prev=oldincludedir ;;
610 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
611 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
612 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
613 oldincludedir="$ac_optarg" ;;
614
615 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
616 ac_prev=prefix ;;
617 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
618 prefix="$ac_optarg" ;;
619
620 -program-prefix | --program-prefix | --program-prefi | --program-pref \
621 | --program-pre | --program-pr | --program-p)
622 ac_prev=program_prefix ;;
623 -program-prefix=* | --program-prefix=* | --program-prefi=* \
624 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
625 program_prefix="$ac_optarg" ;;
626
627 -program-suffix | --program-suffix | --program-suffi | --program-suff \
628 | --program-suf | --program-su | --program-s)
629 ac_prev=program_suffix ;;
630 -program-suffix=* | --program-suffix=* | --program-suffi=* \
631 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
632 program_suffix="$ac_optarg" ;;
633
634 -program-transform-name | --program-transform-name \
635 | --program-transform-nam | --program-transform-na \
636 | --program-transform-n | --program-transform- \
637 | --program-transform | --program-transfor \
638 | --program-transfo | --program-transf \
639 | --program-trans | --program-tran \
640 | --progr-tra | --program-tr | --program-t)
641 ac_prev=program_transform_name ;;
642 -program-transform-name=* | --program-transform-name=* \
643 | --program-transform-nam=* | --program-transform-na=* \
644 | --program-transform-n=* | --program-transform-=* \
645 | --program-transform=* | --program-transfor=* \
646 | --program-transfo=* | --program-transf=* \
647 | --program-trans=* | --program-tran=* \
648 | --progr-tra=* | --program-tr=* | --program-t=*)
649 program_transform_name="$ac_optarg" ;;
650
651 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
652 | -silent | --silent | --silen | --sile | --sil)
653 silent=yes ;;
654
655 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
656 ac_prev=sbindir ;;
657 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
658 | --sbi=* | --sb=*)
659 sbindir="$ac_optarg" ;;
660
661 -sharedstatedir | --sharedstatedir | --sharedstatedi \
662 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
663 | --sharedst | --shareds | --shared | --share | --shar \
664 | --sha | --sh)
665 ac_prev=sharedstatedir ;;
666 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
667 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
668 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
669 | --sha=* | --sh=*)
670 sharedstatedir="$ac_optarg" ;;
671
672 -site | --site | --sit)
673 ac_prev=site ;;
674 -site=* | --site=* | --sit=*)
675 site="$ac_optarg" ;;
676
677 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
678 ac_prev=srcdir ;;
679 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
680 srcdir="$ac_optarg" ;;
681
682 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
683 | --syscon | --sysco | --sysc | --sys | --sy)
684 ac_prev=sysconfdir ;;
685 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
686 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
687 sysconfdir="$ac_optarg" ;;
688
689 -target | --target | --targe | --targ | --tar | --ta | --t)
690 ac_prev=target ;;
691 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
692 target="$ac_optarg" ;;
693
694 -v | -verbose | --verbose | --verbos | --verbo | --verb)
695 verbose=yes ;;
696
697 -version | --version | --versio | --versi | --vers)
698 echo "configure generated by autoconf version 2.13"
699 exit 0 ;;
700
701 -with-* | --with-*)
702 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
703 # Reject names that are not valid shell variable names.
704 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
705 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
706 fi
707 ac_package=`echo $ac_package| sed 's/-/_/g'`
708 case "$ac_option" in
709 *=*) ;;
710 *) ac_optarg=yes ;;
711 esac
712 eval "with_${ac_package}='$ac_optarg'" ;;
713
714 -without-* | --without-*)
715 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
716 # Reject names that are not valid shell variable names.
717 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
718 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
719 fi
720 ac_package=`echo $ac_package| sed 's/-/_/g'`
721 eval "with_${ac_package}=no" ;;
722
723 --x)
724 # Obsolete; use --with-x.
725 with_x=yes ;;
726
727 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
728 | --x-incl | --x-inc | --x-in | --x-i)
729 ac_prev=x_includes ;;
730 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
731 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
732 x_includes="$ac_optarg" ;;
733
734 -x-libraries | --x-libraries | --x-librarie | --x-librari \
735 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
736 ac_prev=x_libraries ;;
737 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
738 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
739 x_libraries="$ac_optarg" ;;
740
741 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
742 ;;
743
744 *)
745 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
746 echo "configure: warning: $ac_option: invalid host type" 1>&2
747 fi
748 if test "x$nonopt" != xNONE; then
749 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
750 fi
751 nonopt="$ac_option"
752 ;;
753
754 esac
755 done
756
757 if test -n "$ac_prev"; then
758 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
759 fi
760
761 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
762
763 # File descriptor usage:
764 # 0 standard input
765 # 1 file creation
766 # 2 errors and warnings
767 # 3 some systems may open it to /dev/tty
768 # 4 used on the Kubota Titan
769 # 6 checking for... messages and results
770 # 5 compiler messages saved in config.log
771 if test "$silent" = yes; then
772 exec 6>/dev/null
773 else
774 exec 6>&1
775 fi
776 exec 5>./config.log
777
778 echo "\
779 This file contains any messages produced by compilers while
780 running configure, to aid debugging if configure makes a mistake.
781 " 1>&5
782
783 # Strip out --no-create and --no-recursion so they do not pile up.
784 # Also quote any args containing shell metacharacters.
785 ac_configure_args=
786 for ac_arg
787 do
788 case "$ac_arg" in
789 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
790 | --no-cr | --no-c) ;;
791 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
792 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
793 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
794 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
795 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
796 esac
797 done
798
799 # NLS nuisances.
800 # Only set these to C if already set. These must not be set unconditionally
801 # because not all systems understand e.g. LANG=C (notably SCO).
802 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
803 # Non-C LC_CTYPE values break the ctype check.
804 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
805 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
806 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
807 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
808
809 # confdefs.h avoids OS command line length limits that DEFS can exceed.
810 rm -rf conftest* confdefs.h
811 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
812 echo > confdefs.h
813
814 # A filename unique to this package, relative to the directory that
815 # configure is in, which we can look for to find out if srcdir is correct.
816 ac_unique_file=wx-config.in
817
818 # Find the source files, if location was not specified.
819 if test -z "$srcdir"; then
820 ac_srcdir_defaulted=yes
821 # Try the directory containing this script, then its parent.
822 ac_prog=$0
823 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
824 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
825 srcdir=$ac_confdir
826 if test ! -r $srcdir/$ac_unique_file; then
827 srcdir=..
828 fi
829 else
830 ac_srcdir_defaulted=no
831 fi
832 if test ! -r $srcdir/$ac_unique_file; then
833 if test "$ac_srcdir_defaulted" = yes; then
834 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
835 else
836 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
837 fi
838 fi
839 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
840
841 # Prefer explicitly selected file to automatically selected ones.
842 if test -z "$CONFIG_SITE"; then
843 if test "x$prefix" != xNONE; then
844 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
845 else
846 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
847 fi
848 fi
849 for ac_site_file in $CONFIG_SITE; do
850 if test -r "$ac_site_file"; then
851 echo "loading site script $ac_site_file"
852 . "$ac_site_file"
853 fi
854 done
855
856 if test -r "$cache_file"; then
857 echo "loading cache $cache_file"
858 . $cache_file
859 else
860 echo "creating cache $cache_file"
861 > $cache_file
862 fi
863
864 ac_ext=c
865 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
866 ac_cpp='$CPP $CPPFLAGS'
867 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
868 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
869 cross_compiling=$ac_cv_prog_cc_cross
870
871 ac_exeext=
872 ac_objext=o
873 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
874 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
875 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
876 ac_n= ac_c='
877 ' ac_t=' '
878 else
879 ac_n=-n ac_c= ac_t=
880 fi
881 else
882 ac_n= ac_c='\c' ac_t=
883 fi
884
885
886
887 ac_aux_dir=
888 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
889 if test -f $ac_dir/install-sh; then
890 ac_aux_dir=$ac_dir
891 ac_install_sh="$ac_aux_dir/install-sh -c"
892 break
893 elif 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 fi
898 done
899 if test -z "$ac_aux_dir"; then
900 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
901 fi
902 ac_config_guess=$ac_aux_dir/config.guess
903 ac_config_sub=$ac_aux_dir/config.sub
904 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
905
906
907 # Do some error checking and defaulting for the host and target type.
908 # The inputs are:
909 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
910 #
911 # The rules are:
912 # 1. You are not allowed to specify --host, --target, and nonopt at the
913 # same time.
914 # 2. Host defaults to nonopt.
915 # 3. If nonopt is not specified, then host defaults to the current host,
916 # as determined by config.guess.
917 # 4. Target and build default to nonopt.
918 # 5. If nonopt is not specified, then target and build default to host.
919
920 # The aliases save the names the user supplied, while $host etc.
921 # will get canonicalized.
922 case $host---$target---$nonopt in
923 NONE---*---* | *---NONE---* | *---*---NONE) ;;
924 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
925 esac
926
927
928 # Make sure we can run config.sub.
929 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
930 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
931 fi
932
933 echo $ac_n "checking host system type""... $ac_c" 1>&6
934 echo "configure:935: checking host system type" >&5
935
936 host_alias=$host
937 case "$host_alias" in
938 NONE)
939 case $nonopt in
940 NONE)
941 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
942 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
943 fi ;;
944 *) host_alias=$nonopt ;;
945 esac ;;
946 esac
947
948 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
949 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
950 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
951 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
952 echo "$ac_t""$host" 1>&6
953
954 echo $ac_n "checking target system type""... $ac_c" 1>&6
955 echo "configure:956: checking target system type" >&5
956
957 target_alias=$target
958 case "$target_alias" in
959 NONE)
960 case $nonopt in
961 NONE) target_alias=$host_alias ;;
962 *) target_alias=$nonopt ;;
963 esac ;;
964 esac
965
966 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
967 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
968 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
969 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
970 echo "$ac_t""$target" 1>&6
971
972 echo $ac_n "checking build system type""... $ac_c" 1>&6
973 echo "configure:974: checking build system type" >&5
974
975 build_alias=$build
976 case "$build_alias" in
977 NONE)
978 case $nonopt in
979 NONE) build_alias=$host_alias ;;
980 *) build_alias=$nonopt ;;
981 esac ;;
982 esac
983
984 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
985 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
986 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
987 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
988 echo "$ac_t""$build" 1>&6
989
990 test "$host_alias" != "$target_alias" &&
991 test "$program_prefix$program_suffix$program_transform_name" = \
992 NONENONEs,x,x, &&
993 program_prefix=${target_alias}-
994
995
996
997 WX_MAJOR_VERSION_NUMBER=2
998 WX_MINOR_VERSION_NUMBER=3
999 WX_RELEASE_NUMBER=2
1000
1001 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1002 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1003
1004 WX_CURRENT=1
1005 WX_REVISION=0
1006 WX_AGE=0
1007
1008
1009
1010 USE_UNIX=1
1011 USE_WIN32=0
1012 USE_BEOS=0
1013 USE_MAC=0
1014
1015 USE_LINUX=
1016 USE_SGI=
1017 USE_HPUX=
1018 USE_SYSV=
1019 USE_SVR4=
1020 USE_AIX=
1021 USE_SUN=
1022 USE_SOLARIS=
1023 USE_SUNOS=
1024 USE_ALPHA=
1025 USE_OSF=
1026 USE_BSD=
1027 USE_DARWIN=
1028 USE_FREEBSD=
1029 USE_OPENBSD=
1030 USE_NETBSD=
1031 USE_VMS=
1032 USE_ULTRIX=
1033 USE_CYGWIN=
1034 USE_MINGW=
1035 USE_DATA_GENERAL=
1036
1037 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1038
1039 ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1040
1041 DEFAULT_wxUSE_GTK=0
1042 DEFAULT_wxUSE_MAC=0
1043 DEFAULT_wxUSE_MGL=0
1044 DEFAULT_wxUSE_MOTIF=0
1045 DEFAULT_wxUSE_MSW=0
1046 DEFAULT_wxUSE_PM=0
1047 DEFAULT_wxUSE_WINE=0
1048
1049 DEFAULT_DEFAULT_wxUSE_GTK=0
1050 DEFAULT_DEFAULT_wxUSE_MAC=0
1051 DEFAULT_DEFAULT_wxUSE_MGL=0
1052 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1053 DEFAULT_DEFAULT_wxUSE_MSW=0
1054 DEFAULT_DEFAULT_wxUSE_PM=0
1055 DEFAULT_DEFAULT_wxUSE_WINE=0
1056
1057 PROGRAM_EXT=
1058
1059 case "${host}" in
1060 *-hp-hpux* )
1061 USE_HPUX=1
1062 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1063 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1064 cat >> confdefs.h <<\EOF
1065 #define __HPUX__ 1
1066 EOF
1067
1068 ;;
1069 *-*-linux* )
1070 USE_LINUX=1
1071 cat >> confdefs.h <<\EOF
1072 #define __LINUX__ 1
1073 EOF
1074
1075 TMP=`uname -m`
1076 if test "x$TMP" = "xalpha"; then
1077 USE_ALPHA=1
1078 cat >> confdefs.h <<\EOF
1079 #define __ALPHA__ 1
1080 EOF
1081
1082 fi
1083 DEFAULT_DEFAULT_wxUSE_GTK=1
1084 ;;
1085 *-*-irix5* | *-*-irix6* )
1086 USE_SGI=1
1087 USE_SVR4=1
1088 cat >> confdefs.h <<\EOF
1089 #define __SGI__ 1
1090 EOF
1091
1092 cat >> confdefs.h <<\EOF
1093 #define __SVR4__ 1
1094 EOF
1095
1096 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1097 ;;
1098 *-*-solaris2* )
1099 USE_SUN=1
1100 USE_SOLARIS=1
1101 USE_SVR4=1
1102 cat >> confdefs.h <<\EOF
1103 #define __SUN__ 1
1104 EOF
1105
1106 cat >> confdefs.h <<\EOF
1107 #define __SOLARIS__ 1
1108 EOF
1109
1110 cat >> confdefs.h <<\EOF
1111 #define __SVR4__ 1
1112 EOF
1113
1114 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1115 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1116 ;;
1117 *-*-sunos4* )
1118 USE_SUN=1
1119 USE_SUNOS=1
1120 USE_BSD=1
1121 cat >> confdefs.h <<\EOF
1122 #define __SUN__ 1
1123 EOF
1124
1125 cat >> confdefs.h <<\EOF
1126 #define __SUNOS__ 1
1127 EOF
1128
1129 cat >> confdefs.h <<\EOF
1130 #define __BSD__ 1
1131 EOF
1132
1133 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1134 ;;
1135 *-*-freebsd*)
1136 USE_BSD=1
1137 USE_FREEBSD=1
1138 cat >> confdefs.h <<\EOF
1139 #define __FREEBSD__ 1
1140 EOF
1141
1142 cat >> confdefs.h <<\EOF
1143 #define __BSD__ 1
1144 EOF
1145
1146 DEFAULT_DEFAULT_wxUSE_GTK=1
1147 ;;
1148 *-*-openbsd*)
1149 USE_BSD=1
1150 USE_OPENBSD=1
1151 cat >> confdefs.h <<\EOF
1152 #define __FREEBSD__ 1
1153 EOF
1154
1155 cat >> confdefs.h <<\EOF
1156 #define __OPENBSD__ 1
1157 EOF
1158
1159 DEFAULT_DEFAULT_wxUSE_GTK=1
1160 ;;
1161 *-*-netbsd*)
1162 USE_BSD=1
1163 USE_NETBSD=1
1164 cat >> confdefs.h <<\EOF
1165 #define __FREEBSD__ 1
1166 EOF
1167
1168 cat >> confdefs.h <<\EOF
1169 #define __NETBSD__ 1
1170 EOF
1171
1172 DEFAULT_DEFAULT_wxUSE_GTK=1
1173 ;;
1174 *-*-osf* )
1175 USE_ALPHA=1
1176 USE_OSF=1
1177 cat >> confdefs.h <<\EOF
1178 #define __ALPHA__ 1
1179 EOF
1180
1181 cat >> confdefs.h <<\EOF
1182 #define __OSF__ 1
1183 EOF
1184
1185 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1186 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1187 ;;
1188 *-*-dgux5* )
1189 USE_ALPHA=1
1190 USE_SVR4=1
1191 cat >> confdefs.h <<\EOF
1192 #define __ALPHA__ 1
1193 EOF
1194
1195 cat >> confdefs.h <<\EOF
1196 #define __SVR4__ 1
1197 EOF
1198
1199 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1200 ;;
1201 *-*-sysv5* )
1202 USE_SYSV=1
1203 USE_SVR4=1
1204 cat >> confdefs.h <<\EOF
1205 #define __SYSV__ 1
1206 EOF
1207
1208 cat >> confdefs.h <<\EOF
1209 #define __SVR4__ 1
1210 EOF
1211
1212 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1213 ;;
1214 *-*-aix* )
1215 USE_AIX=1
1216 USE_SYSV=1
1217 USE_SVR4=1
1218 cat >> confdefs.h <<\EOF
1219 #define __AIX__ 1
1220 EOF
1221
1222 cat >> confdefs.h <<\EOF
1223 #define __SYSV__ 1
1224 EOF
1225
1226 cat >> confdefs.h <<\EOF
1227 #define __SVR4__ 1
1228 EOF
1229
1230 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1231 ;;
1232
1233 *-*-cygwin* | *-*-mingw32* )
1234 USE_UNIX=0
1235 USE_WIN32=1
1236 cat >> confdefs.h <<\EOF
1237 #define __WIN32__ 1
1238 EOF
1239
1240 cat >> confdefs.h <<\EOF
1241 #define __WIN95__ 1
1242 EOF
1243
1244 cat >> confdefs.h <<\EOF
1245 #define __WINDOWS__ 1
1246 EOF
1247
1248 cat >> confdefs.h <<\EOF
1249 #define __GNUWIN32__ 1
1250 EOF
1251
1252 cat >> confdefs.h <<\EOF
1253 #define STRICT 1
1254 EOF
1255
1256 cat >> confdefs.h <<\EOF
1257 #define WINVER 0x0400
1258 EOF
1259
1260 PROGRAM_EXT=".exe"
1261 DEFAULT_DEFAULT_wxUSE_MSW=1
1262 ;;
1263
1264 *-pc-os2_emx )
1265 cat >> confdefs.h <<\EOF
1266 #define __EMX__ 1
1267 EOF
1268
1269 PROGRAM_EXT=".exe"
1270 DEFAULT_DEFAULT_wxUSE_PM=1
1271 ;;
1272
1273 *-*-darwin* )
1274 USE_BSD=1
1275 USE_DARWIN=1
1276 cat >> confdefs.h <<\EOF
1277 #define __BSD__ 1
1278 EOF
1279
1280 cat >> confdefs.h <<\EOF
1281 #define __DARWIN__ 1
1282 EOF
1283
1284 cat >> confdefs.h <<\EOF
1285 #define __UNIX__ 1
1286 EOF
1287
1288 DEFAULT_DEFAULT_wxUSE_MAC=1
1289 ;;
1290
1291 *-*-beos* )
1292 USE_BEOS=1
1293 cat >> confdefs.h <<\EOF
1294 #define __BEOS__ 1
1295 EOF
1296
1297 ;;
1298
1299 *)
1300 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1301 esac
1302
1303 if test "$USE_UNIX" = 1 ; then
1304 wxUSE_UNIX=yes
1305 cat >> confdefs.h <<\EOF
1306 #define __UNIX__ 1
1307 EOF
1308
1309
1310 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1311 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1312 fi
1313
1314 if test "$USE_BEOS" = 1; then
1315 SRC_SUBDIRS="$SRC_SUBDIRS be"
1316 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1317 fi
1318
1319 if test "$USE_LINUX" = 1; then
1320 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1321 echo "configure:1322: checking for gettext in -lc" >&5
1322 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1323 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1324 echo $ac_n "(cached) $ac_c" 1>&6
1325 else
1326 ac_save_LIBS="$LIBS"
1327 LIBS="-lc $LIBS"
1328 cat > conftest.$ac_ext <<EOF
1329 #line 1330 "configure"
1330 #include "confdefs.h"
1331 /* Override any gcc2 internal prototype to avoid an error. */
1332 /* We use char because int might match the return type of a gcc2
1333 builtin and then its argument prototype would still apply. */
1334 char gettext();
1335
1336 int main() {
1337 gettext()
1338 ; return 0; }
1339 EOF
1340 if { (eval echo configure:1341: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1341 rm -rf conftest*
1342 eval "ac_cv_lib_$ac_lib_var=yes"
1343 else
1344 echo "configure: failed program was:" >&5
1345 cat conftest.$ac_ext >&5
1346 rm -rf conftest*
1347 eval "ac_cv_lib_$ac_lib_var=no"
1348 fi
1349 rm -f conftest*
1350 LIBS="$ac_save_LIBS"
1351
1352 fi
1353 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1354 echo "$ac_t""yes" 1>&6
1355 cat >> confdefs.h <<\EOF
1356 #define wxHAVE_GLIBC2 1
1357 EOF
1358
1359 else
1360 echo "$ac_t""no" 1>&6
1361 fi
1362
1363 fi
1364
1365
1366
1367
1368 wx_arg_cache_file="configarg.cache"
1369 echo "loading argument cache $wx_arg_cache_file"
1370 rm -f ${wx_arg_cache_file}.tmp
1371 touch ${wx_arg_cache_file}.tmp
1372 touch ${wx_arg_cache_file}
1373
1374
1375 DEBUG_CONFIGURE=0
1376 if test $DEBUG_CONFIGURE = 1; then
1377 DEFAULT_wxUSE_UNIVERSAL=no
1378
1379 DEFAULT_wxUSE_THREADS=yes
1380
1381 DEFAULT_wxUSE_SHARED=yes
1382 DEFAULT_wxUSE_BURNT_NAME=no
1383 DEFAULT_wxUSE_OPTIMISE=no
1384 DEFAULT_wxUSE_PROFILE=no
1385 DEFAULT_wxUSE_NO_DEPS=no
1386 DEFAULT_wxUSE_NO_RTTI=no
1387 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1388 DEFAULT_wxUSE_PERMISSIVE=no
1389 DEFAULT_wxUSE_DEBUG_FLAG=yes
1390 DEFAULT_wxUSE_DEBUG_INFO=yes
1391 DEFAULT_wxUSE_DEBUG_GDB=yes
1392 DEFAULT_wxUSE_MEM_TRACING=no
1393 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1394 DEFAULT_wxUSE_DMALLOC=no
1395 DEFAULT_wxUSE_APPLE_IEEE=no
1396
1397 DEFAULT_wxUSE_LOG=yes
1398 DEFAULT_wxUSE_LOGWINDOW=no
1399 DEFAULT_wxUSE_LOGGUI=no
1400
1401 DEFAULT_wxUSE_GUI=yes
1402 DEFAULT_wxUSE_CONTROLS=no
1403
1404 DEFAULT_wxUSE_REGEX=no
1405 DEFAULT_wxUSE_ZLIB=no
1406 DEFAULT_wxUSE_LIBPNG=no
1407 DEFAULT_wxUSE_LIBJPEG=no
1408 DEFAULT_wxUSE_LIBTIFF=no
1409 DEFAULT_wxUSE_ODBC=no
1410 DEFAULT_wxUSE_FREETYPE=no
1411 DEFAULT_wxUSE_OPENGL=no
1412
1413 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1414 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1415 DEFAULT_wxUSE_STD_IOSTREAM=no
1416 DEFAULT_wxUSE_CMDLINE_PARSER=no
1417 DEFAULT_wxUSE_DATETIME=no
1418 DEFAULT_wxUSE_TIMEDATE=no
1419 DEFAULT_wxUSE_TIMER=no
1420 DEFAULT_wxUSE_STOPWATCH=no
1421 DEFAULT_wxUSE_FILE=no
1422 DEFAULT_wxUSE_FFILE=no
1423 DEFAULT_wxUSE_TEXTFILE=no
1424 DEFAULT_wxUSE_WAVE=no
1425 DEFAULT_wxUSE_INTL=no
1426 DEFAULT_wxUSE_CONFIG=no
1427 DEFAULT_wxUSE_FONTMAP=no
1428 DEFAULT_wxUSE_STREAMS=no
1429 DEFAULT_wxUSE_SOCKETS=no
1430 DEFAULT_wxUSE_DIALUP_MANAGER=no
1431 DEFAULT_wxUSE_SERIAL=no
1432 DEFAULT_wxUSE_JOYSTICK=no
1433 DEFAULT_wxUSE_DYNLIB_CLASS=no
1434 DEFAULT_wxUSE_LONGLONG=no
1435 DEFAULT_wxUSE_GEOMETRY=no
1436
1437 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1438 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1439 DEFAULT_wxUSE_POSTSCRIPT=no
1440
1441 DEFAULT_wxUSE_X_RESOURCES=no
1442 DEFAULT_wxUSE_CLIPBOARD=no
1443 DEFAULT_wxUSE_TOOLTIPS=no
1444 DEFAULT_wxUSE_DRAG_AND_DROP=no
1445 DEFAULT_wxUSE_DRAGIMAGE=no
1446 DEFAULT_wxUSE_SPLINES=no
1447
1448 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1449 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1450 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1451
1452 DEFAULT_wxUSE_PROLOGIO=no
1453 DEFAULT_wxUSE_RESOURCES=no
1454 DEFAULT_wxUSE_CONSTRAINTS=no
1455 DEFAULT_wxUSE_IPC=no
1456 DEFAULT_wxUSE_HELP=no
1457 DEFAULT_wxUSE_MS_HTML_HELP=no
1458 DEFAULT_wxUSE_WXHTML_HELP=no
1459 DEFAULT_wxUSE_TREELAYOUT=no
1460 DEFAULT_wxUSE_METAFILE=no
1461 DEFAULT_wxUSE_MIMETYPE=no
1462 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1463
1464 DEFAULT_wxUSE_COMMONDLGS=no
1465 DEFAULT_wxUSE_CHOICEDLG=no
1466 DEFAULT_wxUSE_COLOURDLG=no
1467 DEFAULT_wxUSE_DIRDLG=no
1468 DEFAULT_wxUSE_FILEDLG=no
1469 DEFAULT_wxUSE_FONTDLG=no
1470 DEFAULT_wxUSE_MSGDLG=no
1471 DEFAULT_wxUSE_NUMBERDLG=no
1472 DEFAULT_wxUSE_TEXTDLG=no
1473 DEFAULT_wxUSE_STARTUP_TIPS=no
1474 DEFAULT_wxUSE_PROGRESSDLG=no
1475 DEFAULT_wxUSE_WIZARDDLG=no
1476
1477 DEFAULT_wxUSE_MENUS=no
1478 DEFAULT_wxUSE_MINIFRAME=no
1479 DEFAULT_wxUSE_HTML=no
1480 DEFAULT_wxUSE_FILESYSTEM=no
1481 DEFAULT_wxUSE_FS_INET=no
1482 DEFAULT_wxUSE_FS_ZIP=no
1483 DEFAULT_wxUSE_BUSYINFO=no
1484 DEFAULT_wxUSE_ZIPSTREAM=no
1485 DEFAULT_wxUSE_VALIDATORS=no
1486
1487 DEFAULT_wxUSE_ACCEL=no
1488 DEFAULT_wxUSE_BUTTON=no
1489 DEFAULT_wxUSE_BMPBUTTON=no
1490 DEFAULT_wxUSE_CALCTRL=no
1491 DEFAULT_wxUSE_CARET=no
1492 DEFAULT_wxUSE_CHECKBOX=no
1493 DEFAULT_wxUSE_CHECKLST=no
1494 DEFAULT_wxUSE_CHOICE=no
1495 DEFAULT_wxUSE_COMBOBOX=no
1496 DEFAULT_wxUSE_GAUGE=no
1497 DEFAULT_wxUSE_GRID=no
1498 DEFAULT_wxUSE_NEW_GRID=no
1499 DEFAULT_wxUSE_IMAGLIST=no
1500 DEFAULT_wxUSE_LISTBOX=no
1501 DEFAULT_wxUSE_LISTCTRL=no
1502 DEFAULT_wxUSE_NOTEBOOK=no
1503 DEFAULT_wxUSE_PROPSHEET=no
1504 DEFAULT_wxUSE_RADIOBOX=no
1505 DEFAULT_wxUSE_RADIOBTN=no
1506 DEFAULT_wxUSE_SASH=no
1507 DEFAULT_wxUSE_SCROLLBAR=no
1508 DEFAULT_wxUSE_SLIDER=no
1509 DEFAULT_wxUSE_SPINBTN=no
1510 DEFAULT_wxUSE_SPINCTRL=no
1511 DEFAULT_wxUSE_SPLITTER=no
1512 DEFAULT_wxUSE_STATBMP=no
1513 DEFAULT_wxUSE_STATBOX=no
1514 DEFAULT_wxUSE_STATLINE=no
1515 DEFAULT_wxUSE_STATTEXT=no
1516 DEFAULT_wxUSE_STATUSBAR=yes
1517 DEFAULT_wxUSE_TABDIALOG=no
1518 DEFAULT_wxUSE_TEXTCTRL=no
1519 DEFAULT_wxUSE_TOGGLEBTN=no
1520 DEFAULT_wxUSE_TOOLBAR=no
1521 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1522 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1523 DEFAULT_wxUSE_TREECTRL=no
1524 DEFAULT_wxUSE_POPUPWIN=no
1525
1526 DEFAULT_wxUSE_UNICODE=no
1527 DEFAULT_wxUSE_WCSRTOMBS=no
1528
1529 DEFAULT_wxUSE_IMAGE=no
1530 DEFAULT_wxUSE_GIF=no
1531 DEFAULT_wxUSE_PCX=no
1532 DEFAULT_wxUSE_PNM=no
1533 DEFAULT_wxUSE_XPM=no
1534 else
1535 DEFAULT_wxUSE_UNIVERSAL=no
1536
1537 DEFAULT_wxUSE_THREADS=yes
1538
1539 DEFAULT_wxUSE_SHARED=yes
1540 DEFAULT_wxUSE_BURNT_NAME=no
1541 DEFAULT_wxUSE_OPTIMISE=yes
1542 DEFAULT_wxUSE_PROFILE=no
1543 DEFAULT_wxUSE_NO_DEPS=no
1544 DEFAULT_wxUSE_NO_RTTI=no
1545 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1546 DEFAULT_wxUSE_PERMISSIVE=no
1547 DEFAULT_wxUSE_DEBUG_FLAG=no
1548 DEFAULT_wxUSE_DEBUG_INFO=no
1549 DEFAULT_wxUSE_DEBUG_GDB=no
1550 DEFAULT_wxUSE_MEM_TRACING=no
1551 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1552 DEFAULT_wxUSE_DMALLOC=no
1553 DEFAULT_wxUSE_APPLE_IEEE=yes
1554
1555 DEFAULT_wxUSE_LOG=yes
1556 DEFAULT_wxUSE_LOGWINDOW=yes
1557 DEFAULT_wxUSE_LOGGUI=yes
1558
1559 DEFAULT_wxUSE_GUI=yes
1560
1561 DEFAULT_wxUSE_REGEX=yes
1562 DEFAULT_wxUSE_ZLIB=yes
1563 DEFAULT_wxUSE_LIBPNG=yes
1564 DEFAULT_wxUSE_LIBJPEG=yes
1565 DEFAULT_wxUSE_LIBTIFF=yes
1566 DEFAULT_wxUSE_ODBC=no
1567 DEFAULT_wxUSE_FREETYPE=no
1568 DEFAULT_wxUSE_OPENGL=no
1569
1570 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1571 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1572 DEFAULT_wxUSE_STD_IOSTREAM=no
1573 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1574 DEFAULT_wxUSE_DATETIME=yes
1575 DEFAULT_wxUSE_TIMEDATE=no
1576 DEFAULT_wxUSE_TIMER=yes
1577 DEFAULT_wxUSE_STOPWATCH=yes
1578 DEFAULT_wxUSE_FILE=yes
1579 DEFAULT_wxUSE_FFILE=yes
1580 DEFAULT_wxUSE_TEXTFILE=yes
1581 DEFAULT_wxUSE_WAVE=no
1582 DEFAULT_wxUSE_INTL=yes
1583 DEFAULT_wxUSE_CONFIG=yes
1584 DEFAULT_wxUSE_FONTMAP=yes
1585 DEFAULT_wxUSE_STREAMS=yes
1586 DEFAULT_wxUSE_SOCKETS=yes
1587 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1588 DEFAULT_wxUSE_SERIAL=yes
1589 DEFAULT_wxUSE_JOYSTICK=yes
1590 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1591 DEFAULT_wxUSE_LONGLONG=yes
1592 DEFAULT_wxUSE_GEOMETRY=yes
1593
1594 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1595 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1596 DEFAULT_wxUSE_POSTSCRIPT=yes
1597
1598 DEFAULT_wxUSE_X_RESOURCES=no
1599 DEFAULT_wxUSE_CLIPBOARD=yes
1600 DEFAULT_wxUSE_TOOLTIPS=yes
1601 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1602 DEFAULT_wxUSE_DRAGIMAGE=yes
1603 DEFAULT_wxUSE_SPLINES=yes
1604
1605 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1606 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1607 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1608
1609 DEFAULT_wxUSE_PROLOGIO=yes
1610 DEFAULT_wxUSE_RESOURCES=yes
1611 DEFAULT_wxUSE_CONSTRAINTS=yes
1612 DEFAULT_wxUSE_IPC=yes
1613 DEFAULT_wxUSE_HELP=yes
1614 DEFAULT_wxUSE_MS_HTML_HELP=yes
1615 DEFAULT_wxUSE_WXHTML_HELP=yes
1616 DEFAULT_wxUSE_TREELAYOUT=yes
1617 DEFAULT_wxUSE_METAFILE=yes
1618 DEFAULT_wxUSE_MIMETYPE=yes
1619 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1620
1621 DEFAULT_wxUSE_COMMONDLGS=yes
1622 DEFAULT_wxUSE_CHOICEDLG=yes
1623 DEFAULT_wxUSE_COLOURDLG=yes
1624 DEFAULT_wxUSE_DIRDLG=yes
1625 DEFAULT_wxUSE_FILEDLG=yes
1626 DEFAULT_wxUSE_FONTDLG=yes
1627 DEFAULT_wxUSE_MSGDLG=yes
1628 DEFAULT_wxUSE_NUMBERDLG=yes
1629 DEFAULT_wxUSE_TEXTDLG=yes
1630 DEFAULT_wxUSE_STARTUP_TIPS=yes
1631 DEFAULT_wxUSE_PROGRESSDLG=yes
1632 DEFAULT_wxUSE_WIZARDDLG=yes
1633
1634 DEFAULT_wxUSE_MENUS=yes
1635 DEFAULT_wxUSE_MINIFRAME=yes
1636 DEFAULT_wxUSE_HTML=yes
1637 DEFAULT_wxUSE_FILESYSTEM=yes
1638 DEFAULT_wxUSE_FS_INET=yes
1639 DEFAULT_wxUSE_FS_ZIP=yes
1640 DEFAULT_wxUSE_BUSYINFO=yes
1641 DEFAULT_wxUSE_ZIPSTREAM=yes
1642 DEFAULT_wxUSE_VALIDATORS=yes
1643
1644 DEFAULT_wxUSE_ACCEL=yes
1645 DEFAULT_wxUSE_BUTTON=yes
1646 DEFAULT_wxUSE_BMPBUTTON=yes
1647 DEFAULT_wxUSE_CALCTRL=yes
1648 DEFAULT_wxUSE_CARET=yes
1649 DEFAULT_wxUSE_CHECKBOX=yes
1650 DEFAULT_wxUSE_CHECKLST=yes
1651 DEFAULT_wxUSE_CHOICE=yes
1652 DEFAULT_wxUSE_COMBOBOX=yes
1653 DEFAULT_wxUSE_GAUGE=yes
1654 DEFAULT_wxUSE_GRID=yes
1655 DEFAULT_wxUSE_NEW_GRID=yes
1656 DEFAULT_wxUSE_IMAGLIST=yes
1657 DEFAULT_wxUSE_LISTBOX=yes
1658 DEFAULT_wxUSE_LISTCTRL=yes
1659 DEFAULT_wxUSE_NOTEBOOK=yes
1660 DEFAULT_wxUSE_PROPSHEET=yes
1661 DEFAULT_wxUSE_RADIOBOX=yes
1662 DEFAULT_wxUSE_RADIOBTN=yes
1663 DEFAULT_wxUSE_SASH=yes
1664 DEFAULT_wxUSE_SCROLLBAR=yes
1665 DEFAULT_wxUSE_SLIDER=yes
1666 DEFAULT_wxUSE_SPINBTN=yes
1667 DEFAULT_wxUSE_SPINCTRL=yes
1668 DEFAULT_wxUSE_SPLITTER=yes
1669 DEFAULT_wxUSE_STATBMP=yes
1670 DEFAULT_wxUSE_STATBOX=yes
1671 DEFAULT_wxUSE_STATLINE=yes
1672 DEFAULT_wxUSE_STATTEXT=yes
1673 DEFAULT_wxUSE_STATUSBAR=yes
1674 DEFAULT_wxUSE_TABDIALOG=no
1675 DEFAULT_wxUSE_TEXTCTRL=yes
1676 DEFAULT_wxUSE_TOGGLEBTN=yes
1677 DEFAULT_wxUSE_TOOLBAR=yes
1678 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1679 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1680 DEFAULT_wxUSE_TREECTRL=yes
1681 DEFAULT_wxUSE_POPUPWIN=yes
1682
1683 DEFAULT_wxUSE_UNICODE=no
1684 DEFAULT_wxUSE_WCSRTOMBS=no
1685
1686 DEFAULT_wxUSE_IMAGE=yes
1687 DEFAULT_wxUSE_GIF=yes
1688 DEFAULT_wxUSE_PCX=yes
1689 DEFAULT_wxUSE_PNM=yes
1690 DEFAULT_wxUSE_XPM=yes
1691 fi
1692
1693
1694
1695 for toolkit in `echo $ALL_TOOLKITS`; do
1696 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1697 if test "x$LINE" != x ; then
1698 has_toolkit_in_cache=1
1699 eval "DEFAULT_$LINE"
1700 eval "CACHE_$toolkit=1"
1701 fi
1702 done
1703
1704
1705
1706 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1707 echo "configure:1708: checking for --enable-gui" >&5
1708 no_cache=0
1709 # Check whether --enable-gui or --disable-gui was given.
1710 if test "${enable_gui+set}" = set; then
1711 enableval="$enable_gui"
1712
1713 if test "$enableval" = yes; then
1714 ac_cv_use_gui='wxUSE_GUI=yes'
1715 else
1716 ac_cv_use_gui='wxUSE_GUI=no'
1717 fi
1718
1719 else
1720
1721 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1722 if test "x$LINE" != x ; then
1723 eval "DEFAULT_$LINE"
1724 else
1725 no_cache=1
1726 fi
1727
1728 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1729
1730 fi
1731
1732
1733 eval "$ac_cv_use_gui"
1734 if test "$no_cache" != 1; then
1735 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1736 fi
1737
1738 if test "$wxUSE_GUI" = yes; then
1739 echo "$ac_t""yes" 1>&6
1740 else
1741 echo "$ac_t""no" 1>&6
1742 fi
1743
1744
1745 if test "$wxUSE_GUI" = "yes"; then
1746
1747
1748 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1749 echo "configure:1750: checking for --enable-universal" >&5
1750 no_cache=0
1751 # Check whether --enable-universal or --disable-universal was given.
1752 if test "${enable_universal+set}" = set; then
1753 enableval="$enable_universal"
1754
1755 if test "$enableval" = yes; then
1756 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1757 else
1758 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1759 fi
1760
1761 else
1762
1763 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1764 if test "x$LINE" != x ; then
1765 eval "DEFAULT_$LINE"
1766 else
1767 no_cache=1
1768 fi
1769
1770 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1771
1772 fi
1773
1774
1775 eval "$ac_cv_use_universal"
1776 if test "$no_cache" != 1; then
1777 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1778 fi
1779
1780 if test "$wxUSE_UNIVERSAL" = yes; then
1781 echo "$ac_t""yes" 1>&6
1782 else
1783 echo "$ac_t""no" 1>&6
1784 fi
1785
1786 # Check whether --with-gtk or --without-gtk was given.
1787 if test "${with_gtk+set}" = set; then
1788 withval="$with_gtk"
1789 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1790 fi
1791
1792 # Check whether --with-motif or --without-motif was given.
1793 if test "${with_motif+set}" = set; then
1794 withval="$with_motif"
1795 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1796 fi
1797
1798 # Check whether --with-mac or --without-mac was given.
1799 if test "${with_mac+set}" = set; then
1800 withval="$with_mac"
1801 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1802 fi
1803
1804 # Check whether --with-wine or --without-wine was given.
1805 if test "${with_wine+set}" = set; then
1806 withval="$with_wine"
1807 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1808 fi
1809
1810 # Check whether --with-cygwin or --without-cygwin was given.
1811 if test "${with_cygwin+set}" = set; then
1812 withval="$with_cygwin"
1813 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1814 fi
1815
1816 # Check whether --with-mingw or --without-mingw was given.
1817 if test "${with_mingw+set}" = set; then
1818 withval="$with_mingw"
1819 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1820 fi
1821
1822 # Check whether --with-pm or --without-pm was given.
1823 if test "${with_pm+set}" = set; then
1824 withval="$with_pm"
1825 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1826 fi
1827
1828 # Check whether --with-mgl or --without-mgl was given.
1829 if test "${with_mgl+set}" = set; then
1830 withval="$with_mgl"
1831 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1832 fi
1833
1834
1835 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1836 if test "${enable_gtk2+set}" = set; then
1837 enableval="$enable_gtk2"
1838 wxUSE_GTK2=1
1839 else
1840 wxUSE_GTK2=0
1841 fi
1842
1843
1844
1845 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1846 echo "configure:1847: checking for --with-libpng" >&5
1847 no_cache=0
1848 # Check whether --with-libpng or --without-libpng was given.
1849 if test "${with_libpng+set}" = set; then
1850 withval="$with_libpng"
1851
1852 if test "$withval" = yes; then
1853 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1854 elif test "$withval" = no; then
1855 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1856 elif test "$withval" = sys; then
1857 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1858 else
1859 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1860 fi
1861
1862 else
1863
1864 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1865 if test "x$LINE" != x ; then
1866 eval "DEFAULT_$LINE"
1867 else
1868 no_cache=1
1869 fi
1870
1871 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1872
1873 fi
1874
1875
1876 eval "$ac_cv_use_libpng"
1877 if test "$no_cache" != 1; then
1878 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1879 fi
1880
1881 if test "$wxUSE_LIBPNG" = yes; then
1882 echo "$ac_t""yes" 1>&6
1883 elif test "$wxUSE_LIBPNG" = no; then
1884 echo "$ac_t""no" 1>&6
1885 elif test "$wxUSE_LIBPNG" = sys; then
1886 echo "$ac_t""system version" 1>&6
1887 else
1888 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1889 fi
1890
1891
1892 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1893 echo "configure:1894: checking for --with-libjpeg" >&5
1894 no_cache=0
1895 # Check whether --with-libjpeg or --without-libjpeg was given.
1896 if test "${with_libjpeg+set}" = set; then
1897 withval="$with_libjpeg"
1898
1899 if test "$withval" = yes; then
1900 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1901 elif test "$withval" = no; then
1902 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1903 elif test "$withval" = sys; then
1904 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1905 else
1906 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1907 fi
1908
1909 else
1910
1911 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1912 if test "x$LINE" != x ; then
1913 eval "DEFAULT_$LINE"
1914 else
1915 no_cache=1
1916 fi
1917
1918 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1919
1920 fi
1921
1922
1923 eval "$ac_cv_use_libjpeg"
1924 if test "$no_cache" != 1; then
1925 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1926 fi
1927
1928 if test "$wxUSE_LIBJPEG" = yes; then
1929 echo "$ac_t""yes" 1>&6
1930 elif test "$wxUSE_LIBJPEG" = no; then
1931 echo "$ac_t""no" 1>&6
1932 elif test "$wxUSE_LIBJPEG" = sys; then
1933 echo "$ac_t""system version" 1>&6
1934 else
1935 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1936 fi
1937
1938
1939 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1940 echo "configure:1941: checking for --with-libtiff" >&5
1941 no_cache=0
1942 # Check whether --with-libtiff or --without-libtiff was given.
1943 if test "${with_libtiff+set}" = set; then
1944 withval="$with_libtiff"
1945
1946 if test "$withval" = yes; then
1947 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1948 elif test "$withval" = no; then
1949 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1950 elif test "$withval" = sys; then
1951 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1952 else
1953 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1954 fi
1955
1956 else
1957
1958 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1959 if test "x$LINE" != x ; then
1960 eval "DEFAULT_$LINE"
1961 else
1962 no_cache=1
1963 fi
1964
1965 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1966
1967 fi
1968
1969
1970 eval "$ac_cv_use_libtiff"
1971 if test "$no_cache" != 1; then
1972 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1973 fi
1974
1975 if test "$wxUSE_LIBTIFF" = yes; then
1976 echo "$ac_t""yes" 1>&6
1977 elif test "$wxUSE_LIBTIFF" = no; then
1978 echo "$ac_t""no" 1>&6
1979 elif test "$wxUSE_LIBTIFF" = sys; then
1980 echo "$ac_t""system version" 1>&6
1981 else
1982 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1983 fi
1984
1985
1986 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1987 echo "configure:1988: checking for --with-freetype" >&5
1988 no_cache=0
1989 # Check whether --with-freetype or --without-freetype was given.
1990 if test "${with_freetype+set}" = set; then
1991 withval="$with_freetype"
1992
1993 if test "$withval" = yes; then
1994 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1995 elif test "$withval" = no; then
1996 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1997 elif test "$withval" = sys; then
1998 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1999 else
2000 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2001 fi
2002
2003 else
2004
2005 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2006 if test "x$LINE" != x ; then
2007 eval "DEFAULT_$LINE"
2008 else
2009 no_cache=1
2010 fi
2011
2012 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2013
2014 fi
2015
2016
2017 eval "$ac_cv_use_freetype"
2018 if test "$no_cache" != 1; then
2019 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2020 fi
2021
2022 if test "$wxUSE_FREETYPE" = yes; then
2023 echo "$ac_t""yes" 1>&6
2024 elif test "$wxUSE_FREETYPE" = no; then
2025 echo "$ac_t""no" 1>&6
2026 elif test "$wxUSE_FREETYPE" = sys; then
2027 echo "$ac_t""system version" 1>&6
2028 else
2029 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2030 fi
2031
2032
2033 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2034 echo "configure:2035: checking for --with-opengl" >&5
2035 no_cache=0
2036 # Check whether --with-opengl or --without-opengl was given.
2037 if test "${with_opengl+set}" = set; then
2038 withval="$with_opengl"
2039
2040 if test "$withval" = yes; then
2041 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2042 else
2043 ac_cv_use_opengl='wxUSE_OPENGL=no'
2044 fi
2045
2046 else
2047
2048 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2049 if test "x$LINE" != x ; then
2050 eval "DEFAULT_$LINE"
2051 else
2052 no_cache=1
2053 fi
2054
2055 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2056
2057 fi
2058
2059
2060 eval "$ac_cv_use_opengl"
2061 if test "$no_cache" != 1; then
2062 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2063 fi
2064
2065 if test "$wxUSE_OPENGL" = yes; then
2066 echo "$ac_t""yes" 1>&6
2067 else
2068 echo "$ac_t""no" 1>&6
2069 fi
2070
2071
2072 fi
2073
2074
2075 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2076 echo "configure:2077: checking for --with-dmalloc" >&5
2077 no_cache=0
2078 # Check whether --with-dmalloc or --without-dmalloc was given.
2079 if test "${with_dmalloc+set}" = set; then
2080 withval="$with_dmalloc"
2081
2082 if test "$withval" = yes; then
2083 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2084 else
2085 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2086 fi
2087
2088 else
2089
2090 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2091 if test "x$LINE" != x ; then
2092 eval "DEFAULT_$LINE"
2093 else
2094 no_cache=1
2095 fi
2096
2097 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2098
2099 fi
2100
2101
2102 eval "$ac_cv_use_dmalloc"
2103 if test "$no_cache" != 1; then
2104 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2105 fi
2106
2107 if test "$wxUSE_DMALLOC" = yes; then
2108 echo "$ac_t""yes" 1>&6
2109 else
2110 echo "$ac_t""no" 1>&6
2111 fi
2112
2113
2114 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2115 echo "configure:2116: checking for --with-regex" >&5
2116 no_cache=0
2117 # Check whether --with-regex or --without-regex was given.
2118 if test "${with_regex+set}" = set; then
2119 withval="$with_regex"
2120
2121 if test "$withval" = yes; then
2122 ac_cv_use_regex='wxUSE_REGEX=yes'
2123 elif test "$withval" = no; then
2124 ac_cv_use_regex='wxUSE_REGEX=no'
2125 elif test "$withval" = sys; then
2126 ac_cv_use_regex='wxUSE_REGEX=sys'
2127 else
2128 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2129 fi
2130
2131 else
2132
2133 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2134 if test "x$LINE" != x ; then
2135 eval "DEFAULT_$LINE"
2136 else
2137 no_cache=1
2138 fi
2139
2140 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2141
2142 fi
2143
2144
2145 eval "$ac_cv_use_regex"
2146 if test "$no_cache" != 1; then
2147 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2148 fi
2149
2150 if test "$wxUSE_REGEX" = yes; then
2151 echo "$ac_t""yes" 1>&6
2152 elif test "$wxUSE_REGEX" = no; then
2153 echo "$ac_t""no" 1>&6
2154 elif test "$wxUSE_REGEX" = sys; then
2155 echo "$ac_t""system version" 1>&6
2156 else
2157 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2158 fi
2159
2160
2161 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2162 echo "configure:2163: checking for --with-zlib" >&5
2163 no_cache=0
2164 # Check whether --with-zlib or --without-zlib was given.
2165 if test "${with_zlib+set}" = set; then
2166 withval="$with_zlib"
2167
2168 if test "$withval" = yes; then
2169 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2170 elif test "$withval" = no; then
2171 ac_cv_use_zlib='wxUSE_ZLIB=no'
2172 elif test "$withval" = sys; then
2173 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2174 else
2175 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2176 fi
2177
2178 else
2179
2180 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2181 if test "x$LINE" != x ; then
2182 eval "DEFAULT_$LINE"
2183 else
2184 no_cache=1
2185 fi
2186
2187 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2188
2189 fi
2190
2191
2192 eval "$ac_cv_use_zlib"
2193 if test "$no_cache" != 1; then
2194 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2195 fi
2196
2197 if test "$wxUSE_ZLIB" = yes; then
2198 echo "$ac_t""yes" 1>&6
2199 elif test "$wxUSE_ZLIB" = no; then
2200 echo "$ac_t""no" 1>&6
2201 elif test "$wxUSE_ZLIB" = sys; then
2202 echo "$ac_t""system version" 1>&6
2203 else
2204 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2205 fi
2206
2207
2208 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2209 echo "configure:2210: checking for --with-odbc" >&5
2210 no_cache=0
2211 # Check whether --with-odbc or --without-odbc was given.
2212 if test "${with_odbc+set}" = set; then
2213 withval="$with_odbc"
2214
2215 if test "$withval" = yes; then
2216 ac_cv_use_odbc='wxUSE_ODBC=yes'
2217 else
2218 ac_cv_use_odbc='wxUSE_ODBC=no'
2219 fi
2220
2221 else
2222
2223 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2224 if test "x$LINE" != x ; then
2225 eval "DEFAULT_$LINE"
2226 else
2227 no_cache=1
2228 fi
2229
2230 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2231
2232 fi
2233
2234
2235 eval "$ac_cv_use_odbc"
2236 if test "$no_cache" != 1; then
2237 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2238 fi
2239
2240 if test "$wxUSE_ODBC" = yes; then
2241 echo "$ac_t""yes" 1>&6
2242 else
2243 echo "$ac_t""no" 1>&6
2244 fi
2245
2246
2247
2248
2249
2250 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2251 echo "configure:2252: checking for --enable-shared" >&5
2252 no_cache=0
2253 # Check whether --enable-shared or --disable-shared was given.
2254 if test "${enable_shared+set}" = set; then
2255 enableval="$enable_shared"
2256
2257 if test "$enableval" = yes; then
2258 ac_cv_use_shared='wxUSE_SHARED=yes'
2259 else
2260 ac_cv_use_shared='wxUSE_SHARED=no'
2261 fi
2262
2263 else
2264
2265 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2266 if test "x$LINE" != x ; then
2267 eval "DEFAULT_$LINE"
2268 else
2269 no_cache=1
2270 fi
2271
2272 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2273
2274 fi
2275
2276
2277 eval "$ac_cv_use_shared"
2278 if test "$no_cache" != 1; then
2279 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2280 fi
2281
2282 if test "$wxUSE_SHARED" = yes; then
2283 echo "$ac_t""yes" 1>&6
2284 else
2285 echo "$ac_t""no" 1>&6
2286 fi
2287
2288
2289 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
2290 echo "configure:2291: checking for --enable-burnt_name" >&5
2291 no_cache=0
2292 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2293 if test "${enable_burnt_name+set}" = set; then
2294 enableval="$enable_burnt_name"
2295
2296 if test "$enableval" = yes; then
2297 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2298 else
2299 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2300 fi
2301
2302 else
2303
2304 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2305 if test "x$LINE" != x ; then
2306 eval "DEFAULT_$LINE"
2307 else
2308 no_cache=1
2309 fi
2310
2311 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2312
2313 fi
2314
2315
2316 eval "$ac_cv_use_burnt_name"
2317 if test "$no_cache" != 1; then
2318 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2319 fi
2320
2321 if test "$wxUSE_BURNT_NAME" = yes; then
2322 echo "$ac_t""yes" 1>&6
2323 else
2324 echo "$ac_t""no" 1>&6
2325 fi
2326
2327
2328 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2329 echo "configure:2330: checking for --enable-optimise" >&5
2330 no_cache=0
2331 # Check whether --enable-optimise or --disable-optimise was given.
2332 if test "${enable_optimise+set}" = set; then
2333 enableval="$enable_optimise"
2334
2335 if test "$enableval" = yes; then
2336 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2337 else
2338 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2339 fi
2340
2341 else
2342
2343 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2344 if test "x$LINE" != x ; then
2345 eval "DEFAULT_$LINE"
2346 else
2347 no_cache=1
2348 fi
2349
2350 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2351
2352 fi
2353
2354
2355 eval "$ac_cv_use_optimise"
2356 if test "$no_cache" != 1; then
2357 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2358 fi
2359
2360 if test "$wxUSE_OPTIMISE" = yes; then
2361 echo "$ac_t""yes" 1>&6
2362 else
2363 echo "$ac_t""no" 1>&6
2364 fi
2365
2366
2367 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2368 echo "configure:2369: checking for --enable-debug" >&5
2369 no_cache=0
2370 # Check whether --enable-debug or --disable-debug was given.
2371 if test "${enable_debug+set}" = set; then
2372 enableval="$enable_debug"
2373
2374 if test "$enableval" = yes; then
2375 ac_cv_use_debug='wxUSE_DEBUG=yes'
2376 else
2377 ac_cv_use_debug='wxUSE_DEBUG=no'
2378 fi
2379
2380 else
2381
2382 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2383 if test "x$LINE" != x ; then
2384 eval "DEFAULT_$LINE"
2385 else
2386 no_cache=1
2387 fi
2388
2389 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2390
2391 fi
2392
2393
2394 eval "$ac_cv_use_debug"
2395 if test "$no_cache" != 1; then
2396 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2397 fi
2398
2399 if test "$wxUSE_DEBUG" = yes; then
2400 echo "$ac_t""yes" 1>&6
2401 else
2402 echo "$ac_t""no" 1>&6
2403 fi
2404
2405
2406 if test "$wxUSE_DEBUG" = "yes"; then
2407 DEFAULT_wxUSE_DEBUG_FLAG=yes
2408 DEFAULT_wxUSE_DEBUG_INFO=yes
2409 elif test "$wxUSE_DEBUG" = "no"; then
2410 DEFAULT_wxUSE_DEBUG_FLAG=no
2411 DEFAULT_wxUSE_DEBUG_INFO=no
2412 fi
2413
2414
2415 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2416 echo "configure:2417: checking for --enable-debug_flag" >&5
2417 no_cache=0
2418 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2419 if test "${enable_debug_flag+set}" = set; then
2420 enableval="$enable_debug_flag"
2421
2422 if test "$enableval" = yes; then
2423 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2424 else
2425 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2426 fi
2427
2428 else
2429
2430 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2431 if test "x$LINE" != x ; then
2432 eval "DEFAULT_$LINE"
2433 else
2434 no_cache=1
2435 fi
2436
2437 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2438
2439 fi
2440
2441
2442 eval "$ac_cv_use_debug_flag"
2443 if test "$no_cache" != 1; then
2444 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2445 fi
2446
2447 if test "$wxUSE_DEBUG_FLAG" = yes; then
2448 echo "$ac_t""yes" 1>&6
2449 else
2450 echo "$ac_t""no" 1>&6
2451 fi
2452
2453
2454 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2455 echo "configure:2456: checking for --enable-debug_info" >&5
2456 no_cache=0
2457 # Check whether --enable-debug_info or --disable-debug_info was given.
2458 if test "${enable_debug_info+set}" = set; then
2459 enableval="$enable_debug_info"
2460
2461 if test "$enableval" = yes; then
2462 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2463 else
2464 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2465 fi
2466
2467 else
2468
2469 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2470 if test "x$LINE" != x ; then
2471 eval "DEFAULT_$LINE"
2472 else
2473 no_cache=1
2474 fi
2475
2476 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2477
2478 fi
2479
2480
2481 eval "$ac_cv_use_debug_info"
2482 if test "$no_cache" != 1; then
2483 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2484 fi
2485
2486 if test "$wxUSE_DEBUG_INFO" = yes; then
2487 echo "$ac_t""yes" 1>&6
2488 else
2489 echo "$ac_t""no" 1>&6
2490 fi
2491
2492
2493 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2494 echo "configure:2495: checking for --enable-debug_gdb" >&5
2495 no_cache=0
2496 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2497 if test "${enable_debug_gdb+set}" = set; then
2498 enableval="$enable_debug_gdb"
2499
2500 if test "$enableval" = yes; then
2501 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2502 else
2503 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2504 fi
2505
2506 else
2507
2508 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2509 if test "x$LINE" != x ; then
2510 eval "DEFAULT_$LINE"
2511 else
2512 no_cache=1
2513 fi
2514
2515 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2516
2517 fi
2518
2519
2520 eval "$ac_cv_use_debug_gdb"
2521 if test "$no_cache" != 1; then
2522 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2523 fi
2524
2525 if test "$wxUSE_DEBUG_GDB" = yes; then
2526 echo "$ac_t""yes" 1>&6
2527 else
2528 echo "$ac_t""no" 1>&6
2529 fi
2530
2531
2532 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2533 echo "configure:2534: checking for --enable-debug_cntxt" >&5
2534 no_cache=0
2535 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2536 if test "${enable_debug_cntxt+set}" = set; then
2537 enableval="$enable_debug_cntxt"
2538
2539 if test "$enableval" = yes; then
2540 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2541 else
2542 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2543 fi
2544
2545 else
2546
2547 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2548 if test "x$LINE" != x ; then
2549 eval "DEFAULT_$LINE"
2550 else
2551 no_cache=1
2552 fi
2553
2554 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2555
2556 fi
2557
2558
2559 eval "$ac_cv_use_debug_cntxt"
2560 if test "$no_cache" != 1; then
2561 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2562 fi
2563
2564 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2565 echo "$ac_t""yes" 1>&6
2566 else
2567 echo "$ac_t""no" 1>&6
2568 fi
2569
2570
2571 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2572 echo "configure:2573: checking for --enable-mem_tracing" >&5
2573 no_cache=0
2574 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2575 if test "${enable_mem_tracing+set}" = set; then
2576 enableval="$enable_mem_tracing"
2577
2578 if test "$enableval" = yes; then
2579 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2580 else
2581 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2582 fi
2583
2584 else
2585
2586 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2587 if test "x$LINE" != x ; then
2588 eval "DEFAULT_$LINE"
2589 else
2590 no_cache=1
2591 fi
2592
2593 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2594
2595 fi
2596
2597
2598 eval "$ac_cv_use_mem_tracing"
2599 if test "$no_cache" != 1; then
2600 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2601 fi
2602
2603 if test "$wxUSE_MEM_TRACING" = yes; then
2604 echo "$ac_t""yes" 1>&6
2605 else
2606 echo "$ac_t""no" 1>&6
2607 fi
2608
2609
2610 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2611 echo "configure:2612: checking for --enable-profile" >&5
2612 no_cache=0
2613 # Check whether --enable-profile or --disable-profile was given.
2614 if test "${enable_profile+set}" = set; then
2615 enableval="$enable_profile"
2616
2617 if test "$enableval" = yes; then
2618 ac_cv_use_profile='wxUSE_PROFILE=yes'
2619 else
2620 ac_cv_use_profile='wxUSE_PROFILE=no'
2621 fi
2622
2623 else
2624
2625 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2626 if test "x$LINE" != x ; then
2627 eval "DEFAULT_$LINE"
2628 else
2629 no_cache=1
2630 fi
2631
2632 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2633
2634 fi
2635
2636
2637 eval "$ac_cv_use_profile"
2638 if test "$no_cache" != 1; then
2639 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2640 fi
2641
2642 if test "$wxUSE_PROFILE" = yes; then
2643 echo "$ac_t""yes" 1>&6
2644 else
2645 echo "$ac_t""no" 1>&6
2646 fi
2647
2648
2649 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2650 echo "configure:2651: checking for --enable-no_rtti" >&5
2651 no_cache=0
2652 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2653 if test "${enable_no_rtti+set}" = set; then
2654 enableval="$enable_no_rtti"
2655
2656 if test "$enableval" = yes; then
2657 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2658 else
2659 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2660 fi
2661
2662 else
2663
2664 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2665 if test "x$LINE" != x ; then
2666 eval "DEFAULT_$LINE"
2667 else
2668 no_cache=1
2669 fi
2670
2671 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2672
2673 fi
2674
2675
2676 eval "$ac_cv_use_no_rtti"
2677 if test "$no_cache" != 1; then
2678 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2679 fi
2680
2681 if test "$wxUSE_NO_RTTI" = yes; then
2682 echo "$ac_t""yes" 1>&6
2683 else
2684 echo "$ac_t""no" 1>&6
2685 fi
2686
2687
2688 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2689 echo "configure:2690: checking for --enable-no_exceptions" >&5
2690 no_cache=0
2691 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2692 if test "${enable_no_exceptions+set}" = set; then
2693 enableval="$enable_no_exceptions"
2694
2695 if test "$enableval" = yes; then
2696 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2697 else
2698 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2699 fi
2700
2701 else
2702
2703 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2704 if test "x$LINE" != x ; then
2705 eval "DEFAULT_$LINE"
2706 else
2707 no_cache=1
2708 fi
2709
2710 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2711
2712 fi
2713
2714
2715 eval "$ac_cv_use_no_exceptions"
2716 if test "$no_cache" != 1; then
2717 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2718 fi
2719
2720 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2721 echo "$ac_t""yes" 1>&6
2722 else
2723 echo "$ac_t""no" 1>&6
2724 fi
2725
2726
2727 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2728 echo "configure:2729: checking for --enable-permissive" >&5
2729 no_cache=0
2730 # Check whether --enable-permissive or --disable-permissive was given.
2731 if test "${enable_permissive+set}" = set; then
2732 enableval="$enable_permissive"
2733
2734 if test "$enableval" = yes; then
2735 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2736 else
2737 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2738 fi
2739
2740 else
2741
2742 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2743 if test "x$LINE" != x ; then
2744 eval "DEFAULT_$LINE"
2745 else
2746 no_cache=1
2747 fi
2748
2749 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2750
2751 fi
2752
2753
2754 eval "$ac_cv_use_permissive"
2755 if test "$no_cache" != 1; then
2756 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2757 fi
2758
2759 if test "$wxUSE_PERMISSIVE" = yes; then
2760 echo "$ac_t""yes" 1>&6
2761 else
2762 echo "$ac_t""no" 1>&6
2763 fi
2764
2765
2766 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2767 echo "configure:2768: checking for --enable-no_deps" >&5
2768 no_cache=0
2769 # Check whether --enable-no_deps or --disable-no_deps was given.
2770 if test "${enable_no_deps+set}" = set; then
2771 enableval="$enable_no_deps"
2772
2773 if test "$enableval" = yes; then
2774 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2775 else
2776 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2777 fi
2778
2779 else
2780
2781 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2782 if test "x$LINE" != x ; then
2783 eval "DEFAULT_$LINE"
2784 else
2785 no_cache=1
2786 fi
2787
2788 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2789
2790 fi
2791
2792
2793 eval "$ac_cv_use_no_deps"
2794 if test "$no_cache" != 1; then
2795 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2796 fi
2797
2798 if test "$wxUSE_NO_DEPS" = yes; then
2799 echo "$ac_t""yes" 1>&6
2800 else
2801 echo "$ac_t""no" 1>&6
2802 fi
2803
2804
2805
2806 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2807 echo "configure:2808: checking for --enable-compat20" >&5
2808 no_cache=0
2809 # Check whether --enable-compat20 or --disable-compat20 was given.
2810 if test "${enable_compat20+set}" = set; then
2811 enableval="$enable_compat20"
2812
2813 if test "$enableval" = yes; then
2814 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2815 else
2816 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2817 fi
2818
2819 else
2820
2821 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2822 if test "x$LINE" != x ; then
2823 eval "DEFAULT_$LINE"
2824 else
2825 no_cache=1
2826 fi
2827
2828 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2829
2830 fi
2831
2832
2833 eval "$ac_cv_use_compat20"
2834 if test "$no_cache" != 1; then
2835 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2836 fi
2837
2838 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2839 echo "$ac_t""yes" 1>&6
2840 else
2841 echo "$ac_t""no" 1>&6
2842 fi
2843
2844
2845 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2846 echo "configure:2847: checking for --enable-compat22" >&5
2847 no_cache=0
2848 # Check whether --enable-compat22 or --disable-compat22 was given.
2849 if test "${enable_compat22+set}" = set; then
2850 enableval="$enable_compat22"
2851
2852 if test "$enableval" = yes; then
2853 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2854 else
2855 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2856 fi
2857
2858 else
2859
2860 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2861 if test "x$LINE" != x ; then
2862 eval "DEFAULT_$LINE"
2863 else
2864 no_cache=1
2865 fi
2866
2867 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2868
2869 fi
2870
2871
2872 eval "$ac_cv_use_compat22"
2873 if test "$no_cache" != 1; then
2874 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2875 fi
2876
2877 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2878 echo "$ac_t""yes" 1>&6
2879 else
2880 echo "$ac_t""no" 1>&6
2881 fi
2882
2883
2884
2885
2886 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2887 echo "configure:2888: checking for --enable-intl" >&5
2888 no_cache=0
2889 # Check whether --enable-intl or --disable-intl was given.
2890 if test "${enable_intl+set}" = set; then
2891 enableval="$enable_intl"
2892
2893 if test "$enableval" = yes; then
2894 ac_cv_use_intl='wxUSE_INTL=yes'
2895 else
2896 ac_cv_use_intl='wxUSE_INTL=no'
2897 fi
2898
2899 else
2900
2901 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2902 if test "x$LINE" != x ; then
2903 eval "DEFAULT_$LINE"
2904 else
2905 no_cache=1
2906 fi
2907
2908 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2909
2910 fi
2911
2912
2913 eval "$ac_cv_use_intl"
2914 if test "$no_cache" != 1; then
2915 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2916 fi
2917
2918 if test "$wxUSE_INTL" = yes; then
2919 echo "$ac_t""yes" 1>&6
2920 else
2921 echo "$ac_t""no" 1>&6
2922 fi
2923
2924
2925 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2926 echo "configure:2927: checking for --enable-config" >&5
2927 no_cache=0
2928 # Check whether --enable-config or --disable-config was given.
2929 if test "${enable_config+set}" = set; then
2930 enableval="$enable_config"
2931
2932 if test "$enableval" = yes; then
2933 ac_cv_use_config='wxUSE_CONFIG=yes'
2934 else
2935 ac_cv_use_config='wxUSE_CONFIG=no'
2936 fi
2937
2938 else
2939
2940 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2941 if test "x$LINE" != x ; then
2942 eval "DEFAULT_$LINE"
2943 else
2944 no_cache=1
2945 fi
2946
2947 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2948
2949 fi
2950
2951
2952 eval "$ac_cv_use_config"
2953 if test "$no_cache" != 1; then
2954 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2955 fi
2956
2957 if test "$wxUSE_CONFIG" = yes; then
2958 echo "$ac_t""yes" 1>&6
2959 else
2960 echo "$ac_t""no" 1>&6
2961 fi
2962
2963
2964
2965 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2966 echo "configure:2967: checking for --enable-sockets" >&5
2967 no_cache=0
2968 # Check whether --enable-sockets or --disable-sockets was given.
2969 if test "${enable_sockets+set}" = set; then
2970 enableval="$enable_sockets"
2971
2972 if test "$enableval" = yes; then
2973 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2974 else
2975 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2976 fi
2977
2978 else
2979
2980 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2981 if test "x$LINE" != x ; then
2982 eval "DEFAULT_$LINE"
2983 else
2984 no_cache=1
2985 fi
2986
2987 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2988
2989 fi
2990
2991
2992 eval "$ac_cv_use_sockets"
2993 if test "$no_cache" != 1; then
2994 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2995 fi
2996
2997 if test "$wxUSE_SOCKETS" = yes; then
2998 echo "$ac_t""yes" 1>&6
2999 else
3000 echo "$ac_t""no" 1>&6
3001 fi
3002
3003
3004
3005 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3006 echo "configure:3007: checking for --enable-ipc" >&5
3007 no_cache=0
3008 # Check whether --enable-ipc or --disable-ipc was given.
3009 if test "${enable_ipc+set}" = set; then
3010 enableval="$enable_ipc"
3011
3012 if test "$enableval" = yes; then
3013 ac_cv_use_ipc='wxUSE_IPC=yes'
3014 else
3015 ac_cv_use_ipc='wxUSE_IPC=no'
3016 fi
3017
3018 else
3019
3020 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3021 if test "x$LINE" != x ; then
3022 eval "DEFAULT_$LINE"
3023 else
3024 no_cache=1
3025 fi
3026
3027 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3028
3029 fi
3030
3031
3032 eval "$ac_cv_use_ipc"
3033 if test "$no_cache" != 1; then
3034 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3035 fi
3036
3037 if test "$wxUSE_IPC" = yes; then
3038 echo "$ac_t""yes" 1>&6
3039 else
3040 echo "$ac_t""no" 1>&6
3041 fi
3042
3043
3044
3045 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3046 echo "configure:3047: checking for --enable-cmdline" >&5
3047 no_cache=0
3048 # Check whether --enable-cmdline or --disable-cmdline was given.
3049 if test "${enable_cmdline+set}" = set; then
3050 enableval="$enable_cmdline"
3051
3052 if test "$enableval" = yes; then
3053 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3054 else
3055 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3056 fi
3057
3058 else
3059
3060 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3061 if test "x$LINE" != x ; then
3062 eval "DEFAULT_$LINE"
3063 else
3064 no_cache=1
3065 fi
3066
3067 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3068
3069 fi
3070
3071
3072 eval "$ac_cv_use_cmdline"
3073 if test "$no_cache" != 1; then
3074 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3075 fi
3076
3077 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3078 echo "$ac_t""yes" 1>&6
3079 else
3080 echo "$ac_t""no" 1>&6
3081 fi
3082
3083
3084 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3085 echo "configure:3086: checking for --enable-datetime" >&5
3086 no_cache=0
3087 # Check whether --enable-datetime or --disable-datetime was given.
3088 if test "${enable_datetime+set}" = set; then
3089 enableval="$enable_datetime"
3090
3091 if test "$enableval" = yes; then
3092 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3093 else
3094 ac_cv_use_datetime='wxUSE_DATETIME=no'
3095 fi
3096
3097 else
3098
3099 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3100 if test "x$LINE" != x ; then
3101 eval "DEFAULT_$LINE"
3102 else
3103 no_cache=1
3104 fi
3105
3106 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3107
3108 fi
3109
3110
3111 eval "$ac_cv_use_datetime"
3112 if test "$no_cache" != 1; then
3113 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3114 fi
3115
3116 if test "$wxUSE_DATETIME" = yes; then
3117 echo "$ac_t""yes" 1>&6
3118 else
3119 echo "$ac_t""no" 1>&6
3120 fi
3121
3122
3123 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3124 echo "configure:3125: checking for --enable-timedate" >&5
3125 no_cache=0
3126 # Check whether --enable-timedate or --disable-timedate was given.
3127 if test "${enable_timedate+set}" = set; then
3128 enableval="$enable_timedate"
3129
3130 if test "$enableval" = yes; then
3131 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3132 else
3133 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3134 fi
3135
3136 else
3137
3138 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3139 if test "x$LINE" != x ; then
3140 eval "DEFAULT_$LINE"
3141 else
3142 no_cache=1
3143 fi
3144
3145 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3146
3147 fi
3148
3149
3150 eval "$ac_cv_use_timedate"
3151 if test "$no_cache" != 1; then
3152 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3153 fi
3154
3155 if test "$wxUSE_TIMEDATE" = yes; then
3156 echo "$ac_t""yes" 1>&6
3157 else
3158 echo "$ac_t""no" 1>&6
3159 fi
3160
3161
3162 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3163 echo "configure:3164: checking for --enable-stopwatch" >&5
3164 no_cache=0
3165 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3166 if test "${enable_stopwatch+set}" = set; then
3167 enableval="$enable_stopwatch"
3168
3169 if test "$enableval" = yes; then
3170 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3171 else
3172 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3173 fi
3174
3175 else
3176
3177 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3178 if test "x$LINE" != x ; then
3179 eval "DEFAULT_$LINE"
3180 else
3181 no_cache=1
3182 fi
3183
3184 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3185
3186 fi
3187
3188
3189 eval "$ac_cv_use_stopwatch"
3190 if test "$no_cache" != 1; then
3191 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3192 fi
3193
3194 if test "$wxUSE_STOPWATCH" = yes; then
3195 echo "$ac_t""yes" 1>&6
3196 else
3197 echo "$ac_t""no" 1>&6
3198 fi
3199
3200
3201 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3202 echo "configure:3203: checking for --enable-dialupman" >&5
3203 no_cache=0
3204 # Check whether --enable-dialupman or --disable-dialupman was given.
3205 if test "${enable_dialupman+set}" = set; then
3206 enableval="$enable_dialupman"
3207
3208 if test "$enableval" = yes; then
3209 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3210 else
3211 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3212 fi
3213
3214 else
3215
3216 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3217 if test "x$LINE" != x ; then
3218 eval "DEFAULT_$LINE"
3219 else
3220 no_cache=1
3221 fi
3222
3223 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3224
3225 fi
3226
3227
3228 eval "$ac_cv_use_dialupman"
3229 if test "$no_cache" != 1; then
3230 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3231 fi
3232
3233 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3234 echo "$ac_t""yes" 1>&6
3235 else
3236 echo "$ac_t""no" 1>&6
3237 fi
3238
3239
3240 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3241 echo "configure:3242: checking for --enable-apple_ieee" >&5
3242 no_cache=0
3243 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3244 if test "${enable_apple_ieee+set}" = set; then
3245 enableval="$enable_apple_ieee"
3246
3247 if test "$enableval" = yes; then
3248 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3249 else
3250 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3251 fi
3252
3253 else
3254
3255 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3256 if test "x$LINE" != x ; then
3257 eval "DEFAULT_$LINE"
3258 else
3259 no_cache=1
3260 fi
3261
3262 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3263
3264 fi
3265
3266
3267 eval "$ac_cv_use_apple_ieee"
3268 if test "$no_cache" != 1; then
3269 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3270 fi
3271
3272 if test "$wxUSE_APPLE_IEEE" = yes; then
3273 echo "$ac_t""yes" 1>&6
3274 else
3275 echo "$ac_t""no" 1>&6
3276 fi
3277
3278
3279 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3280 echo "configure:3281: checking for --enable-timer" >&5
3281 no_cache=0
3282 # Check whether --enable-timer or --disable-timer was given.
3283 if test "${enable_timer+set}" = set; then
3284 enableval="$enable_timer"
3285
3286 if test "$enableval" = yes; then
3287 ac_cv_use_timer='wxUSE_TIMER=yes'
3288 else
3289 ac_cv_use_timer='wxUSE_TIMER=no'
3290 fi
3291
3292 else
3293
3294 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3295 if test "x$LINE" != x ; then
3296 eval "DEFAULT_$LINE"
3297 else
3298 no_cache=1
3299 fi
3300
3301 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3302
3303 fi
3304
3305
3306 eval "$ac_cv_use_timer"
3307 if test "$no_cache" != 1; then
3308 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3309 fi
3310
3311 if test "$wxUSE_TIMER" = yes; then
3312 echo "$ac_t""yes" 1>&6
3313 else
3314 echo "$ac_t""no" 1>&6
3315 fi
3316
3317
3318 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3319 echo "configure:3320: checking for --enable-wave" >&5
3320 no_cache=0
3321 # Check whether --enable-wave or --disable-wave was given.
3322 if test "${enable_wave+set}" = set; then
3323 enableval="$enable_wave"
3324
3325 if test "$enableval" = yes; then
3326 ac_cv_use_wave='wxUSE_WAVE=yes'
3327 else
3328 ac_cv_use_wave='wxUSE_WAVE=no'
3329 fi
3330
3331 else
3332
3333 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3334 if test "x$LINE" != x ; then
3335 eval "DEFAULT_$LINE"
3336 else
3337 no_cache=1
3338 fi
3339
3340 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3341
3342 fi
3343
3344
3345 eval "$ac_cv_use_wave"
3346 if test "$no_cache" != 1; then
3347 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3348 fi
3349
3350 if test "$wxUSE_WAVE" = yes; then
3351 echo "$ac_t""yes" 1>&6
3352 else
3353 echo "$ac_t""no" 1>&6
3354 fi
3355
3356
3357 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3358 echo "configure:3359: checking for --enable-fraction" >&5
3359 no_cache=0
3360 # Check whether --enable-fraction or --disable-fraction was given.
3361 if test "${enable_fraction+set}" = set; then
3362 enableval="$enable_fraction"
3363
3364 if test "$enableval" = yes; then
3365 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3366 else
3367 ac_cv_use_fraction='wxUSE_FRACTION=no'
3368 fi
3369
3370 else
3371
3372 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3373 if test "x$LINE" != x ; then
3374 eval "DEFAULT_$LINE"
3375 else
3376 no_cache=1
3377 fi
3378
3379 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3380
3381 fi
3382
3383
3384 eval "$ac_cv_use_fraction"
3385 if test "$no_cache" != 1; then
3386 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3387 fi
3388
3389 if test "$wxUSE_FRACTION" = yes; then
3390 echo "$ac_t""yes" 1>&6
3391 else
3392 echo "$ac_t""no" 1>&6
3393 fi
3394
3395
3396 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3397 echo "configure:3398: checking for --enable-dynlib" >&5
3398 no_cache=0
3399 # Check whether --enable-dynlib or --disable-dynlib was given.
3400 if test "${enable_dynlib+set}" = set; then
3401 enableval="$enable_dynlib"
3402
3403 if test "$enableval" = yes; then
3404 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3405 else
3406 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3407 fi
3408
3409 else
3410
3411 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3412 if test "x$LINE" != x ; then
3413 eval "DEFAULT_$LINE"
3414 else
3415 no_cache=1
3416 fi
3417
3418 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3419
3420 fi
3421
3422
3423 eval "$ac_cv_use_dynlib"
3424 if test "$no_cache" != 1; then
3425 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3426 fi
3427
3428 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3429 echo "$ac_t""yes" 1>&6
3430 else
3431 echo "$ac_t""no" 1>&6
3432 fi
3433
3434
3435 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3436 echo "configure:3437: checking for --enable-longlong" >&5
3437 no_cache=0
3438 # Check whether --enable-longlong or --disable-longlong was given.
3439 if test "${enable_longlong+set}" = set; then
3440 enableval="$enable_longlong"
3441
3442 if test "$enableval" = yes; then
3443 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3444 else
3445 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3446 fi
3447
3448 else
3449
3450 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3451 if test "x$LINE" != x ; then
3452 eval "DEFAULT_$LINE"
3453 else
3454 no_cache=1
3455 fi
3456
3457 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3458
3459 fi
3460
3461
3462 eval "$ac_cv_use_longlong"
3463 if test "$no_cache" != 1; then
3464 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3465 fi
3466
3467 if test "$wxUSE_LONGLONG" = yes; then
3468 echo "$ac_t""yes" 1>&6
3469 else
3470 echo "$ac_t""no" 1>&6
3471 fi
3472
3473
3474 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3475 echo "configure:3476: checking for --enable-geometry" >&5
3476 no_cache=0
3477 # Check whether --enable-geometry or --disable-geometry was given.
3478 if test "${enable_geometry+set}" = set; then
3479 enableval="$enable_geometry"
3480
3481 if test "$enableval" = yes; then
3482 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3483 else
3484 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3485 fi
3486
3487 else
3488
3489 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3490 if test "x$LINE" != x ; then
3491 eval "DEFAULT_$LINE"
3492 else
3493 no_cache=1
3494 fi
3495
3496 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3497
3498 fi
3499
3500
3501 eval "$ac_cv_use_geometry"
3502 if test "$no_cache" != 1; then
3503 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3504 fi
3505
3506 if test "$wxUSE_GEOMETRY" = yes; then
3507 echo "$ac_t""yes" 1>&6
3508 else
3509 echo "$ac_t""no" 1>&6
3510 fi
3511
3512
3513 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3514 echo "configure:3515: checking for --enable-log" >&5
3515 no_cache=0
3516 # Check whether --enable-log or --disable-log was given.
3517 if test "${enable_log+set}" = set; then
3518 enableval="$enable_log"
3519
3520 if test "$enableval" = yes; then
3521 ac_cv_use_log='wxUSE_LOG=yes'
3522 else
3523 ac_cv_use_log='wxUSE_LOG=no'
3524 fi
3525
3526 else
3527
3528 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3529 if test "x$LINE" != x ; then
3530 eval "DEFAULT_$LINE"
3531 else
3532 no_cache=1
3533 fi
3534
3535 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3536
3537 fi
3538
3539
3540 eval "$ac_cv_use_log"
3541 if test "$no_cache" != 1; then
3542 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3543 fi
3544
3545 if test "$wxUSE_LOG" = yes; then
3546 echo "$ac_t""yes" 1>&6
3547 else
3548 echo "$ac_t""no" 1>&6
3549 fi
3550
3551
3552 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3553 echo "configure:3554: checking for --enable-streams" >&5
3554 no_cache=0
3555 # Check whether --enable-streams or --disable-streams was given.
3556 if test "${enable_streams+set}" = set; then
3557 enableval="$enable_streams"
3558
3559 if test "$enableval" = yes; then
3560 ac_cv_use_streams='wxUSE_STREAMS=yes'
3561 else
3562 ac_cv_use_streams='wxUSE_STREAMS=no'
3563 fi
3564
3565 else
3566
3567 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3568 if test "x$LINE" != x ; then
3569 eval "DEFAULT_$LINE"
3570 else
3571 no_cache=1
3572 fi
3573
3574 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3575
3576 fi
3577
3578
3579 eval "$ac_cv_use_streams"
3580 if test "$no_cache" != 1; then
3581 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3582 fi
3583
3584 if test "$wxUSE_STREAMS" = yes; then
3585 echo "$ac_t""yes" 1>&6
3586 else
3587 echo "$ac_t""no" 1>&6
3588 fi
3589
3590
3591 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3592 echo "configure:3593: checking for --enable-file" >&5
3593 no_cache=0
3594 # Check whether --enable-file or --disable-file was given.
3595 if test "${enable_file+set}" = set; then
3596 enableval="$enable_file"
3597
3598 if test "$enableval" = yes; then
3599 ac_cv_use_file='wxUSE_FILE=yes'
3600 else
3601 ac_cv_use_file='wxUSE_FILE=no'
3602 fi
3603
3604 else
3605
3606 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3607 if test "x$LINE" != x ; then
3608 eval "DEFAULT_$LINE"
3609 else
3610 no_cache=1
3611 fi
3612
3613 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3614
3615 fi
3616
3617
3618 eval "$ac_cv_use_file"
3619 if test "$no_cache" != 1; then
3620 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3621 fi
3622
3623 if test "$wxUSE_FILE" = yes; then
3624 echo "$ac_t""yes" 1>&6
3625 else
3626 echo "$ac_t""no" 1>&6
3627 fi
3628
3629
3630 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3631 echo "configure:3632: checking for --enable-ffile" >&5
3632 no_cache=0
3633 # Check whether --enable-ffile or --disable-ffile was given.
3634 if test "${enable_ffile+set}" = set; then
3635 enableval="$enable_ffile"
3636
3637 if test "$enableval" = yes; then
3638 ac_cv_use_ffile='wxUSE_FFILE=yes'
3639 else
3640 ac_cv_use_ffile='wxUSE_FFILE=no'
3641 fi
3642
3643 else
3644
3645 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3646 if test "x$LINE" != x ; then
3647 eval "DEFAULT_$LINE"
3648 else
3649 no_cache=1
3650 fi
3651
3652 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3653
3654 fi
3655
3656
3657 eval "$ac_cv_use_ffile"
3658 if test "$no_cache" != 1; then
3659 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3660 fi
3661
3662 if test "$wxUSE_FFILE" = yes; then
3663 echo "$ac_t""yes" 1>&6
3664 else
3665 echo "$ac_t""no" 1>&6
3666 fi
3667
3668
3669 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3670 echo "configure:3671: checking for --enable-textfile" >&5
3671 no_cache=0
3672 # Check whether --enable-textfile or --disable-textfile was given.
3673 if test "${enable_textfile+set}" = set; then
3674 enableval="$enable_textfile"
3675
3676 if test "$enableval" = yes; then
3677 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3678 else
3679 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3680 fi
3681
3682 else
3683
3684 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3685 if test "x$LINE" != x ; then
3686 eval "DEFAULT_$LINE"
3687 else
3688 no_cache=1
3689 fi
3690
3691 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3692
3693 fi
3694
3695
3696 eval "$ac_cv_use_textfile"
3697 if test "$no_cache" != 1; then
3698 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3699 fi
3700
3701 if test "$wxUSE_TEXTFILE" = yes; then
3702 echo "$ac_t""yes" 1>&6
3703 else
3704 echo "$ac_t""no" 1>&6
3705 fi
3706
3707
3708 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3709 echo "configure:3710: checking for --enable-fontmap" >&5
3710 no_cache=0
3711 # Check whether --enable-fontmap or --disable-fontmap was given.
3712 if test "${enable_fontmap+set}" = set; then
3713 enableval="$enable_fontmap"
3714
3715 if test "$enableval" = yes; then
3716 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3717 else
3718 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3719 fi
3720
3721 else
3722
3723 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3724 if test "x$LINE" != x ; then
3725 eval "DEFAULT_$LINE"
3726 else
3727 no_cache=1
3728 fi
3729
3730 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3731
3732 fi
3733
3734
3735 eval "$ac_cv_use_fontmap"
3736 if test "$no_cache" != 1; then
3737 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3738 fi
3739
3740 if test "$wxUSE_FONTMAP" = yes; then
3741 echo "$ac_t""yes" 1>&6
3742 else
3743 echo "$ac_t""no" 1>&6
3744 fi
3745
3746
3747 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3748 echo "configure:3749: checking for --enable-unicode" >&5
3749 no_cache=0
3750 # Check whether --enable-unicode or --disable-unicode was given.
3751 if test "${enable_unicode+set}" = set; then
3752 enableval="$enable_unicode"
3753
3754 if test "$enableval" = yes; then
3755 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3756 else
3757 ac_cv_use_unicode='wxUSE_UNICODE=no'
3758 fi
3759
3760 else
3761
3762 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3763 if test "x$LINE" != x ; then
3764 eval "DEFAULT_$LINE"
3765 else
3766 no_cache=1
3767 fi
3768
3769 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3770
3771 fi
3772
3773
3774 eval "$ac_cv_use_unicode"
3775 if test "$no_cache" != 1; then
3776 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3777 fi
3778
3779 if test "$wxUSE_UNICODE" = yes; then
3780 echo "$ac_t""yes" 1>&6
3781 else
3782 echo "$ac_t""no" 1>&6
3783 fi
3784
3785
3786 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
3787 echo "configure:3788: checking for --enable-wcsrtombs" >&5
3788 no_cache=0
3789 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3790 if test "${enable_wcsrtombs+set}" = set; then
3791 enableval="$enable_wcsrtombs"
3792
3793 if test "$enableval" = yes; then
3794 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3795 else
3796 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3797 fi
3798
3799 else
3800
3801 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3802 if test "x$LINE" != x ; then
3803 eval "DEFAULT_$LINE"
3804 else
3805 no_cache=1
3806 fi
3807
3808 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3809
3810 fi
3811
3812
3813 eval "$ac_cv_use_wcsrtombs"
3814 if test "$no_cache" != 1; then
3815 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3816 fi
3817
3818 if test "$wxUSE_WCSRTOMBS" = yes; then
3819 echo "$ac_t""yes" 1>&6
3820 else
3821 echo "$ac_t""no" 1>&6
3822 fi
3823
3824
3825 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3826 echo "configure:3827: checking for --enable-wxprintfv" >&5
3827 no_cache=0
3828 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3829 if test "${enable_wxprintfv+set}" = set; then
3830 enableval="$enable_wxprintfv"
3831
3832 if test "$enableval" = yes; then
3833 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3834 else
3835 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3836 fi
3837
3838 else
3839
3840 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3841 if test "x$LINE" != x ; then
3842 eval "DEFAULT_$LINE"
3843 else
3844 no_cache=1
3845 fi
3846
3847 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3848
3849 fi
3850
3851
3852 eval "$ac_cv_use_wxprintfv"
3853 if test "$no_cache" != 1; then
3854 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3855 fi
3856
3857 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3858 echo "$ac_t""yes" 1>&6
3859 else
3860 echo "$ac_t""no" 1>&6
3861 fi
3862
3863
3864 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3865 echo "configure:3866: checking for --enable-std_iostreams" >&5
3866 no_cache=0
3867 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3868 if test "${enable_std_iostreams+set}" = set; then
3869 enableval="$enable_std_iostreams"
3870
3871 if test "$enableval" = yes; then
3872 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3873 else
3874 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3875 fi
3876
3877 else
3878
3879 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3880 if test "x$LINE" != x ; then
3881 eval "DEFAULT_$LINE"
3882 else
3883 no_cache=1
3884 fi
3885
3886 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3887
3888 fi
3889
3890
3891 eval "$ac_cv_use_std_iostreams"
3892 if test "$no_cache" != 1; then
3893 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3894 fi
3895
3896 if test "$wxUSE_STD_IOSTREAM" = yes; then
3897 echo "$ac_t""yes" 1>&6
3898 else
3899 echo "$ac_t""no" 1>&6
3900 fi
3901
3902
3903 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3904 echo "configure:3905: checking for --enable-filesystem" >&5
3905 no_cache=0
3906 # Check whether --enable-filesystem or --disable-filesystem was given.
3907 if test "${enable_filesystem+set}" = set; then
3908 enableval="$enable_filesystem"
3909
3910 if test "$enableval" = yes; then
3911 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3912 else
3913 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3914 fi
3915
3916 else
3917
3918 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3919 if test "x$LINE" != x ; then
3920 eval "DEFAULT_$LINE"
3921 else
3922 no_cache=1
3923 fi
3924
3925 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3926
3927 fi
3928
3929
3930 eval "$ac_cv_use_filesystem"
3931 if test "$no_cache" != 1; then
3932 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3933 fi
3934
3935 if test "$wxUSE_FILESYSTEM" = yes; then
3936 echo "$ac_t""yes" 1>&6
3937 else
3938 echo "$ac_t""no" 1>&6
3939 fi
3940
3941
3942 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3943 echo "configure:3944: checking for --enable-fs_inet" >&5
3944 no_cache=0
3945 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3946 if test "${enable_fs_inet+set}" = set; then
3947 enableval="$enable_fs_inet"
3948
3949 if test "$enableval" = yes; then
3950 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3951 else
3952 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3953 fi
3954
3955 else
3956
3957 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3958 if test "x$LINE" != x ; then
3959 eval "DEFAULT_$LINE"
3960 else
3961 no_cache=1
3962 fi
3963
3964 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3965
3966 fi
3967
3968
3969 eval "$ac_cv_use_fs_inet"
3970 if test "$no_cache" != 1; then
3971 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3972 fi
3973
3974 if test "$wxUSE_FS_INET" = yes; then
3975 echo "$ac_t""yes" 1>&6
3976 else
3977 echo "$ac_t""no" 1>&6
3978 fi
3979
3980
3981 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3982 echo "configure:3983: checking for --enable-fs_zip" >&5
3983 no_cache=0
3984 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3985 if test "${enable_fs_zip+set}" = set; then
3986 enableval="$enable_fs_zip"
3987
3988 if test "$enableval" = yes; then
3989 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3990 else
3991 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3992 fi
3993
3994 else
3995
3996 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3997 if test "x$LINE" != x ; then
3998 eval "DEFAULT_$LINE"
3999 else
4000 no_cache=1
4001 fi
4002
4003 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4004
4005 fi
4006
4007
4008 eval "$ac_cv_use_fs_zip"
4009 if test "$no_cache" != 1; then
4010 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4011 fi
4012
4013 if test "$wxUSE_FS_ZIP" = yes; then
4014 echo "$ac_t""yes" 1>&6
4015 else
4016 echo "$ac_t""no" 1>&6
4017 fi
4018
4019
4020 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4021 echo "configure:4022: checking for --enable-zipstream" >&5
4022 no_cache=0
4023 # Check whether --enable-zipstream or --disable-zipstream was given.
4024 if test "${enable_zipstream+set}" = set; then
4025 enableval="$enable_zipstream"
4026
4027 if test "$enableval" = yes; then
4028 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4029 else
4030 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4031 fi
4032
4033 else
4034
4035 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4036 if test "x$LINE" != x ; then
4037 eval "DEFAULT_$LINE"
4038 else
4039 no_cache=1
4040 fi
4041
4042 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4043
4044 fi
4045
4046
4047 eval "$ac_cv_use_zipstream"
4048 if test "$no_cache" != 1; then
4049 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4050 fi
4051
4052 if test "$wxUSE_ZIPSTREAM" = yes; then
4053 echo "$ac_t""yes" 1>&6
4054 else
4055 echo "$ac_t""no" 1>&6
4056 fi
4057
4058
4059
4060 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4061 echo "configure:4062: checking for --enable-catch_segvs" >&5
4062 no_cache=0
4063 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4064 if test "${enable_catch_segvs+set}" = set; then
4065 enableval="$enable_catch_segvs"
4066
4067 if test "$enableval" = yes; then
4068 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4069 else
4070 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4071 fi
4072
4073 else
4074
4075 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4076 if test "x$LINE" != x ; then
4077 eval "DEFAULT_$LINE"
4078 else
4079 no_cache=1
4080 fi
4081
4082 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4083
4084 fi
4085
4086
4087 eval "$ac_cv_use_catch_segvs"
4088 if test "$no_cache" != 1; then
4089 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4090 fi
4091
4092 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4093 echo "$ac_t""yes" 1>&6
4094 else
4095 echo "$ac_t""no" 1>&6
4096 fi
4097
4098
4099 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4100 echo "configure:4101: checking for --enable-snglinst" >&5
4101 no_cache=0
4102 # Check whether --enable-snglinst or --disable-snglinst was given.
4103 if test "${enable_snglinst+set}" = set; then
4104 enableval="$enable_snglinst"
4105
4106 if test "$enableval" = yes; then
4107 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4108 else
4109 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4110 fi
4111
4112 else
4113
4114 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4115 if test "x$LINE" != x ; then
4116 eval "DEFAULT_$LINE"
4117 else
4118 no_cache=1
4119 fi
4120
4121 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4122
4123 fi
4124
4125
4126 eval "$ac_cv_use_snglinst"
4127 if test "$no_cache" != 1; then
4128 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4129 fi
4130
4131 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4132 echo "$ac_t""yes" 1>&6
4133 else
4134 echo "$ac_t""no" 1>&6
4135 fi
4136
4137
4138
4139 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4140 echo "configure:4141: checking for --enable-mimetype" >&5
4141 no_cache=0
4142 # Check whether --enable-mimetype or --disable-mimetype was given.
4143 if test "${enable_mimetype+set}" = set; then
4144 enableval="$enable_mimetype"
4145
4146 if test "$enableval" = yes; then
4147 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4148 else
4149 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4150 fi
4151
4152 else
4153
4154 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4155 if test "x$LINE" != x ; then
4156 eval "DEFAULT_$LINE"
4157 else
4158 no_cache=1
4159 fi
4160
4161 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4162
4163 fi
4164
4165
4166 eval "$ac_cv_use_mimetype"
4167 if test "$no_cache" != 1; then
4168 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4169 fi
4170
4171 if test "$wxUSE_MIMETYPE" = yes; then
4172 echo "$ac_t""yes" 1>&6
4173 else
4174 echo "$ac_t""no" 1>&6
4175 fi
4176
4177
4178 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4179 echo "configure:4180: checking for --enable-system_options" >&5
4180 no_cache=0
4181 # Check whether --enable-system_options or --disable-system_options was given.
4182 if test "${enable_system_options+set}" = set; then
4183 enableval="$enable_system_options"
4184
4185 if test "$enableval" = yes; then
4186 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4187 else
4188 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4189 fi
4190
4191 else
4192
4193 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4194 if test "x$LINE" != x ; then
4195 eval "DEFAULT_$LINE"
4196 else
4197 no_cache=1
4198 fi
4199
4200 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4201
4202 fi
4203
4204
4205 eval "$ac_cv_use_system_options"
4206 if test "$no_cache" != 1; then
4207 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4208 fi
4209
4210 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4211 echo "$ac_t""yes" 1>&6
4212 else
4213 echo "$ac_t""no" 1>&6
4214 fi
4215
4216
4217
4218
4219 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4220 echo "configure:4221: checking for --enable-threads" >&5
4221 no_cache=0
4222 # Check whether --enable-threads or --disable-threads was given.
4223 if test "${enable_threads+set}" = set; then
4224 enableval="$enable_threads"
4225
4226 if test "$enableval" = yes; then
4227 ac_cv_use_threads='wxUSE_THREADS=yes'
4228 else
4229 ac_cv_use_threads='wxUSE_THREADS=no'
4230 fi
4231
4232 else
4233
4234 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4235 if test "x$LINE" != x ; then
4236 eval "DEFAULT_$LINE"
4237 else
4238 no_cache=1
4239 fi
4240
4241 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4242
4243 fi
4244
4245
4246 eval "$ac_cv_use_threads"
4247 if test "$no_cache" != 1; then
4248 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4249 fi
4250
4251 if test "$wxUSE_THREADS" = yes; then
4252 echo "$ac_t""yes" 1>&6
4253 else
4254 echo "$ac_t""no" 1>&6
4255 fi
4256
4257
4258 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4259 echo "configure:4260: checking for --enable-serial" >&5
4260 no_cache=0
4261 # Check whether --enable-serial or --disable-serial was given.
4262 if test "${enable_serial+set}" = set; then
4263 enableval="$enable_serial"
4264
4265 if test "$enableval" = yes; then
4266 ac_cv_use_serial='wxUSE_SERIAL=yes'
4267 else
4268 ac_cv_use_serial='wxUSE_SERIAL=no'
4269 fi
4270
4271 else
4272
4273 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4274 if test "x$LINE" != x ; then
4275 eval "DEFAULT_$LINE"
4276 else
4277 no_cache=1
4278 fi
4279
4280 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4281
4282 fi
4283
4284
4285 eval "$ac_cv_use_serial"
4286 if test "$no_cache" != 1; then
4287 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4288 fi
4289
4290 if test "$wxUSE_SERIAL" = yes; then
4291 echo "$ac_t""yes" 1>&6
4292 else
4293 echo "$ac_t""no" 1>&6
4294 fi
4295
4296
4297 if test "$wxUSE_GUI" = "yes"; then
4298
4299
4300
4301 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4302 echo "configure:4303: checking for --enable-docview" >&5
4303 no_cache=0
4304 # Check whether --enable-docview or --disable-docview was given.
4305 if test "${enable_docview+set}" = set; then
4306 enableval="$enable_docview"
4307
4308 if test "$enableval" = yes; then
4309 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4310 else
4311 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4312 fi
4313
4314 else
4315
4316 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4317 if test "x$LINE" != x ; then
4318 eval "DEFAULT_$LINE"
4319 else
4320 no_cache=1
4321 fi
4322
4323 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4324
4325 fi
4326
4327
4328 eval "$ac_cv_use_docview"
4329 if test "$no_cache" != 1; then
4330 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4331 fi
4332
4333 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4334 echo "$ac_t""yes" 1>&6
4335 else
4336 echo "$ac_t""no" 1>&6
4337 fi
4338
4339
4340 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4341 echo "configure:4342: checking for --enable-help" >&5
4342 no_cache=0
4343 # Check whether --enable-help or --disable-help was given.
4344 if test "${enable_help+set}" = set; then
4345 enableval="$enable_help"
4346
4347 if test "$enableval" = yes; then
4348 ac_cv_use_help='wxUSE_HELP=yes'
4349 else
4350 ac_cv_use_help='wxUSE_HELP=no'
4351 fi
4352
4353 else
4354
4355 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4356 if test "x$LINE" != x ; then
4357 eval "DEFAULT_$LINE"
4358 else
4359 no_cache=1
4360 fi
4361
4362 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4363
4364 fi
4365
4366
4367 eval "$ac_cv_use_help"
4368 if test "$no_cache" != 1; then
4369 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4370 fi
4371
4372 if test "$wxUSE_HELP" = yes; then
4373 echo "$ac_t""yes" 1>&6
4374 else
4375 echo "$ac_t""no" 1>&6
4376 fi
4377
4378
4379 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4380 echo "configure:4381: checking for --enable-mshtmlhelp" >&5
4381 no_cache=0
4382 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4383 if test "${enable_mshtmlhelp+set}" = set; then
4384 enableval="$enable_mshtmlhelp"
4385
4386 if test "$enableval" = yes; then
4387 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4388 else
4389 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4390 fi
4391
4392 else
4393
4394 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4395 if test "x$LINE" != x ; then
4396 eval "DEFAULT_$LINE"
4397 else
4398 no_cache=1
4399 fi
4400
4401 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4402
4403 fi
4404
4405
4406 eval "$ac_cv_use_mshtmlhelp"
4407 if test "$no_cache" != 1; then
4408 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4409 fi
4410
4411 if test "$wxUSE_MS_HTML_HELP" = yes; then
4412 echo "$ac_t""yes" 1>&6
4413 else
4414 echo "$ac_t""no" 1>&6
4415 fi
4416
4417
4418 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4419 echo "configure:4420: checking for --enable-html" >&5
4420 no_cache=0
4421 # Check whether --enable-html or --disable-html was given.
4422 if test "${enable_html+set}" = set; then
4423 enableval="$enable_html"
4424
4425 if test "$enableval" = yes; then
4426 ac_cv_use_html='wxUSE_HTML=yes'
4427 else
4428 ac_cv_use_html='wxUSE_HTML=no'
4429 fi
4430
4431 else
4432
4433 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4434 if test "x$LINE" != x ; then
4435 eval "DEFAULT_$LINE"
4436 else
4437 no_cache=1
4438 fi
4439
4440 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4441
4442 fi
4443
4444
4445 eval "$ac_cv_use_html"
4446 if test "$no_cache" != 1; then
4447 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4448 fi
4449
4450 if test "$wxUSE_HTML" = yes; then
4451 echo "$ac_t""yes" 1>&6
4452 else
4453 echo "$ac_t""no" 1>&6
4454 fi
4455
4456
4457 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4458 echo "configure:4459: checking for --enable-htmlhelp" >&5
4459 no_cache=0
4460 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4461 if test "${enable_htmlhelp+set}" = set; then
4462 enableval="$enable_htmlhelp"
4463
4464 if test "$enableval" = yes; then
4465 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4466 else
4467 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4468 fi
4469
4470 else
4471
4472 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4473 if test "x$LINE" != x ; then
4474 eval "DEFAULT_$LINE"
4475 else
4476 no_cache=1
4477 fi
4478
4479 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4480
4481 fi
4482
4483
4484 eval "$ac_cv_use_htmlhelp"
4485 if test "$no_cache" != 1; then
4486 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4487 fi
4488
4489 if test "$wxUSE_WXHTML_HELP" = yes; then
4490 echo "$ac_t""yes" 1>&6
4491 else
4492 echo "$ac_t""no" 1>&6
4493 fi
4494
4495
4496 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4497 echo "configure:4498: checking for --enable-constraints" >&5
4498 no_cache=0
4499 # Check whether --enable-constraints or --disable-constraints was given.
4500 if test "${enable_constraints+set}" = set; then
4501 enableval="$enable_constraints"
4502
4503 if test "$enableval" = yes; then
4504 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4505 else
4506 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4507 fi
4508
4509 else
4510
4511 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4512 if test "x$LINE" != x ; then
4513 eval "DEFAULT_$LINE"
4514 else
4515 no_cache=1
4516 fi
4517
4518 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4519
4520 fi
4521
4522
4523 eval "$ac_cv_use_constraints"
4524 if test "$no_cache" != 1; then
4525 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4526 fi
4527
4528 if test "$wxUSE_CONSTRAINTS" = yes; then
4529 echo "$ac_t""yes" 1>&6
4530 else
4531 echo "$ac_t""no" 1>&6
4532 fi
4533
4534
4535 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4536 echo "configure:4537: checking for --enable-printarch" >&5
4537 no_cache=0
4538 # Check whether --enable-printarch or --disable-printarch was given.
4539 if test "${enable_printarch+set}" = set; then
4540 enableval="$enable_printarch"
4541
4542 if test "$enableval" = yes; then
4543 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4544 else
4545 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4546 fi
4547
4548 else
4549
4550 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4551 if test "x$LINE" != x ; then
4552 eval "DEFAULT_$LINE"
4553 else
4554 no_cache=1
4555 fi
4556
4557 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4558
4559 fi
4560
4561
4562 eval "$ac_cv_use_printarch"
4563 if test "$no_cache" != 1; then
4564 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4565 fi
4566
4567 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4568 echo "$ac_t""yes" 1>&6
4569 else
4570 echo "$ac_t""no" 1>&6
4571 fi
4572
4573
4574 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4575 echo "configure:4576: checking for --enable-mdi" >&5
4576 no_cache=0
4577 # Check whether --enable-mdi or --disable-mdi was given.
4578 if test "${enable_mdi+set}" = set; then
4579 enableval="$enable_mdi"
4580
4581 if test "$enableval" = yes; then
4582 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4583 else
4584 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4585 fi
4586
4587 else
4588
4589 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4590 if test "x$LINE" != x ; then
4591 eval "DEFAULT_$LINE"
4592 else
4593 no_cache=1
4594 fi
4595
4596 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4597
4598 fi
4599
4600
4601 eval "$ac_cv_use_mdi"
4602 if test "$no_cache" != 1; then
4603 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4604 fi
4605
4606 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4607 echo "$ac_t""yes" 1>&6
4608 else
4609 echo "$ac_t""no" 1>&6
4610 fi
4611
4612
4613 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4614 echo "configure:4615: checking for --enable-loggui" >&5
4615 no_cache=0
4616 # Check whether --enable-loggui or --disable-loggui was given.
4617 if test "${enable_loggui+set}" = set; then
4618 enableval="$enable_loggui"
4619
4620 if test "$enableval" = yes; then
4621 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4622 else
4623 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4624 fi
4625
4626 else
4627
4628 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4629 if test "x$LINE" != x ; then
4630 eval "DEFAULT_$LINE"
4631 else
4632 no_cache=1
4633 fi
4634
4635 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4636
4637 fi
4638
4639
4640 eval "$ac_cv_use_loggui"
4641 if test "$no_cache" != 1; then
4642 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4643 fi
4644
4645 if test "$wxUSE_LOGGUI" = yes; then
4646 echo "$ac_t""yes" 1>&6
4647 else
4648 echo "$ac_t""no" 1>&6
4649 fi
4650
4651
4652 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4653 echo "configure:4654: checking for --enable-logwin" >&5
4654 no_cache=0
4655 # Check whether --enable-logwin or --disable-logwin was given.
4656 if test "${enable_logwin+set}" = set; then
4657 enableval="$enable_logwin"
4658
4659 if test "$enableval" = yes; then
4660 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4661 else
4662 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4663 fi
4664
4665 else
4666
4667 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4668 if test "x$LINE" != x ; then
4669 eval "DEFAULT_$LINE"
4670 else
4671 no_cache=1
4672 fi
4673
4674 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4675
4676 fi
4677
4678
4679 eval "$ac_cv_use_logwin"
4680 if test "$no_cache" != 1; then
4681 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4682 fi
4683
4684 if test "$wxUSE_LOGWINDOW" = yes; then
4685 echo "$ac_t""yes" 1>&6
4686 else
4687 echo "$ac_t""no" 1>&6
4688 fi
4689
4690
4691
4692 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4693 echo "configure:4694: checking for --enable-postscript" >&5
4694 no_cache=0
4695 # Check whether --enable-postscript or --disable-postscript was given.
4696 if test "${enable_postscript+set}" = set; then
4697 enableval="$enable_postscript"
4698
4699 if test "$enableval" = yes; then
4700 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4701 else
4702 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4703 fi
4704
4705 else
4706
4707 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4708 if test "x$LINE" != x ; then
4709 eval "DEFAULT_$LINE"
4710 else
4711 no_cache=1
4712 fi
4713
4714 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4715
4716 fi
4717
4718
4719 eval "$ac_cv_use_postscript"
4720 if test "$no_cache" != 1; then
4721 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4722 fi
4723
4724 if test "$wxUSE_POSTSCRIPT" = yes; then
4725 echo "$ac_t""yes" 1>&6
4726 else
4727 echo "$ac_t""no" 1>&6
4728 fi
4729
4730
4731
4732
4733
4734 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4735 echo "configure:4736: checking for --enable-prologio" >&5
4736 no_cache=0
4737 # Check whether --enable-prologio or --disable-prologio was given.
4738 if test "${enable_prologio+set}" = set; then
4739 enableval="$enable_prologio"
4740
4741 if test "$enableval" = yes; then
4742 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4743 else
4744 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4745 fi
4746
4747 else
4748
4749 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4750 if test "x$LINE" != x ; then
4751 eval "DEFAULT_$LINE"
4752 else
4753 no_cache=1
4754 fi
4755
4756 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4757
4758 fi
4759
4760
4761 eval "$ac_cv_use_prologio"
4762 if test "$no_cache" != 1; then
4763 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4764 fi
4765
4766 if test "$wxUSE_PROLOGIO" = yes; then
4767 echo "$ac_t""yes" 1>&6
4768 else
4769 echo "$ac_t""no" 1>&6
4770 fi
4771
4772
4773 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4774 echo "configure:4775: checking for --enable-resources" >&5
4775 no_cache=0
4776 # Check whether --enable-resources or --disable-resources was given.
4777 if test "${enable_resources+set}" = set; then
4778 enableval="$enable_resources"
4779
4780 if test "$enableval" = yes; then
4781 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4782 else
4783 ac_cv_use_resources='wxUSE_RESOURCES=no'
4784 fi
4785
4786 else
4787
4788 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4789 if test "x$LINE" != x ; then
4790 eval "DEFAULT_$LINE"
4791 else
4792 no_cache=1
4793 fi
4794
4795 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4796
4797 fi
4798
4799
4800 eval "$ac_cv_use_resources"
4801 if test "$no_cache" != 1; then
4802 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4803 fi
4804
4805 if test "$wxUSE_RESOURCES" = yes; then
4806 echo "$ac_t""yes" 1>&6
4807 else
4808 echo "$ac_t""no" 1>&6
4809 fi
4810
4811
4812
4813 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4814 echo "configure:4815: checking for --enable-xresources" >&5
4815 no_cache=0
4816 # Check whether --enable-xresources or --disable-xresources was given.
4817 if test "${enable_xresources+set}" = set; then
4818 enableval="$enable_xresources"
4819
4820 if test "$enableval" = yes; then
4821 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4822 else
4823 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4824 fi
4825
4826 else
4827
4828 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4829 if test "x$LINE" != x ; then
4830 eval "DEFAULT_$LINE"
4831 else
4832 no_cache=1
4833 fi
4834
4835 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4836
4837 fi
4838
4839
4840 eval "$ac_cv_use_xresources"
4841 if test "$no_cache" != 1; then
4842 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4843 fi
4844
4845 if test "$wxUSE_X_RESOURCES" = yes; then
4846 echo "$ac_t""yes" 1>&6
4847 else
4848 echo "$ac_t""no" 1>&6
4849 fi
4850
4851
4852
4853
4854 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4855 echo "configure:4856: checking for --enable-clipboard" >&5
4856 no_cache=0
4857 # Check whether --enable-clipboard or --disable-clipboard was given.
4858 if test "${enable_clipboard+set}" = set; then
4859 enableval="$enable_clipboard"
4860
4861 if test "$enableval" = yes; then
4862 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4863 else
4864 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4865 fi
4866
4867 else
4868
4869 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4870 if test "x$LINE" != x ; then
4871 eval "DEFAULT_$LINE"
4872 else
4873 no_cache=1
4874 fi
4875
4876 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4877
4878 fi
4879
4880
4881 eval "$ac_cv_use_clipboard"
4882 if test "$no_cache" != 1; then
4883 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4884 fi
4885
4886 if test "$wxUSE_CLIPBOARD" = yes; then
4887 echo "$ac_t""yes" 1>&6
4888 else
4889 echo "$ac_t""no" 1>&6
4890 fi
4891
4892
4893 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4894 echo "configure:4895: checking for --enable-dnd" >&5
4895 no_cache=0
4896 # Check whether --enable-dnd or --disable-dnd was given.
4897 if test "${enable_dnd+set}" = set; then
4898 enableval="$enable_dnd"
4899
4900 if test "$enableval" = yes; then
4901 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4902 else
4903 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4904 fi
4905
4906 else
4907
4908 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4909 if test "x$LINE" != x ; then
4910 eval "DEFAULT_$LINE"
4911 else
4912 no_cache=1
4913 fi
4914
4915 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4916
4917 fi
4918
4919
4920 eval "$ac_cv_use_dnd"
4921 if test "$no_cache" != 1; then
4922 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4923 fi
4924
4925 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4926 echo "$ac_t""yes" 1>&6
4927 else
4928 echo "$ac_t""no" 1>&6
4929 fi
4930
4931
4932 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4933 echo "configure:4934: checking for --enable-metafile" >&5
4934 no_cache=0
4935 # Check whether --enable-metafile or --disable-metafile was given.
4936 if test "${enable_metafile+set}" = set; then
4937 enableval="$enable_metafile"
4938
4939 if test "$enableval" = yes; then
4940 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4941 else
4942 ac_cv_use_metafile='wxUSE_METAFILE=no'
4943 fi
4944
4945 else
4946
4947 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4948 if test "x$LINE" != x ; then
4949 eval "DEFAULT_$LINE"
4950 else
4951 no_cache=1
4952 fi
4953
4954 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4955
4956 fi
4957
4958
4959 eval "$ac_cv_use_metafile"
4960 if test "$no_cache" != 1; then
4961 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4962 fi
4963
4964 if test "$wxUSE_METAFILE" = yes; then
4965 echo "$ac_t""yes" 1>&6
4966 else
4967 echo "$ac_t""no" 1>&6
4968 fi
4969
4970
4971
4972 echo $ac_n "checking for --enable-treelayout""... $ac_c" 1>&6
4973 echo "configure:4974: checking for --enable-treelayout" >&5
4974 no_cache=0
4975 # Check whether --enable-treelayout or --disable-treelayout was given.
4976 if test "${enable_treelayout+set}" = set; then
4977 enableval="$enable_treelayout"
4978
4979 if test "$enableval" = yes; then
4980 ac_cv_use_treelayout='wxUSE_TREELAYOUT=yes'
4981 else
4982 ac_cv_use_treelayout='wxUSE_TREELAYOUT=no'
4983 fi
4984
4985 else
4986
4987 LINE=`grep "wxUSE_TREELAYOUT" ${wx_arg_cache_file}`
4988 if test "x$LINE" != x ; then
4989 eval "DEFAULT_$LINE"
4990 else
4991 no_cache=1
4992 fi
4993
4994 ac_cv_use_treelayout='wxUSE_TREELAYOUT='$DEFAULT_wxUSE_TREELAYOUT
4995
4996 fi
4997
4998
4999 eval "$ac_cv_use_treelayout"
5000 if test "$no_cache" != 1; then
5001 echo $ac_cv_use_treelayout >> ${wx_arg_cache_file}.tmp
5002 fi
5003
5004 if test "$wxUSE_TREELAYOUT" = yes; then
5005 echo "$ac_t""yes" 1>&6
5006 else
5007 echo "$ac_t""no" 1>&6
5008 fi
5009
5010
5011
5012
5013 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5014 echo "configure:5015: checking for --enable-controls" >&5
5015 no_cache=0
5016 # Check whether --enable-controls or --disable-controls was given.
5017 if test "${enable_controls+set}" = set; then
5018 enableval="$enable_controls"
5019
5020 if test "$enableval" = yes; then
5021 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5022 else
5023 ac_cv_use_controls='wxUSE_CONTROLS=no'
5024 fi
5025
5026 else
5027
5028 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5029 if test "x$LINE" != x ; then
5030 eval "DEFAULT_$LINE"
5031 else
5032 no_cache=1
5033 fi
5034
5035 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5036
5037 fi
5038
5039
5040 eval "$ac_cv_use_controls"
5041 if test "$no_cache" != 1; then
5042 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5043 fi
5044
5045 if test "$wxUSE_CONTROLS" = yes; then
5046 echo "$ac_t""yes" 1>&6
5047 else
5048 echo "$ac_t""no" 1>&6
5049 fi
5050
5051
5052 if test "$wxUSE_CONTROLS" = "yes"; then
5053 DEFAULT_wxUSE_ACCEL=yes
5054 DEFAULT_wxUSE_BMPBUTTON=yes
5055 DEFAULT_wxUSE_BUTTON=yes
5056 DEFAULT_wxUSE_CALCTRL=no
5057 DEFAULT_wxUSE_CARET=yes
5058 DEFAULT_wxUSE_COMBOBOX=yes
5059 DEFAULT_wxUSE_CHECKBOX=yes
5060 DEFAULT_wxUSE_CHECKLISTBOX=yes
5061 DEFAULT_wxUSE_CHOICE=yes
5062 DEFAULT_wxUSE_GAUGE=yes
5063 DEFAULT_wxUSE_GRID=yes
5064 DEFAULT_wxUSE_NEW_GRID=yes
5065 DEFAULT_wxUSE_IMAGLIST=yes
5066 DEFAULT_wxUSE_LISTBOX=yes
5067 DEFAULT_wxUSE_LISTCTRL=yes
5068 DEFAULT_wxUSE_NOTEBOOK=yes
5069 DEFAULT_wxUSE_PROPSHEET=yes
5070 DEFAULT_wxUSE_RADIOBOX=yes
5071 DEFAULT_wxUSE_RADIOBTN=yes
5072 DEFAULT_wxUSE_SASH=yes
5073 DEFAULT_wxUSE_SCROLLBAR=yes
5074 DEFAULT_wxUSE_SLIDER=yes
5075 DEFAULT_wxUSE_SPINBTN=yes
5076 DEFAULT_wxUSE_SPINCTRL=yes
5077 DEFAULT_wxUSE_SPLITTER=yes
5078 DEFAULT_wxUSE_STATBMP=yes
5079 DEFAULT_wxUSE_STATBOX=yes
5080 DEFAULT_wxUSE_STATLINE=yes
5081 DEFAULT_wxUSE_STATUSBAR=yes
5082 DEFAULT_wxUSE_TAB_DIALOG=yes
5083 DEFAULT_wxUSE_TOGGLEBTN=yes
5084 DEFAULT_wxUSE_TOOLBAR=yes
5085 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5086 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5087 DEFAULT_wxUSE_TOOLTIPS=yes
5088 DEFAULT_wxUSE_TREECTRL=yes
5089 DEFAULT_wxUSE_POPUPWIN=yes
5090 elif test "$wxUSE_CONTROLS" = "no"; then
5091 DEFAULT_wxUSE_ACCEL=no
5092 DEFAULT_wxUSE_BMPBUTTON=no
5093 DEFAULT_wxUSE_BUTTON=no
5094 DEFAULT_wxUSE_CALCTRL=no
5095 DEFAULT_wxUSE_CARET=no
5096 DEFAULT_wxUSE_COMBOBOX=no
5097 DEFAULT_wxUSE_CHECKBOX=no
5098 DEFAULT_wxUSE_CHECKLISTBOX=no
5099 DEFAULT_wxUSE_CHOICE=no
5100 DEFAULT_wxUSE_GAUGE=no
5101 DEFAULT_wxUSE_GRID=no
5102 DEFAULT_wxUSE_NEW_GRID=no
5103 DEFAULT_wxUSE_IMAGLIST=no
5104 DEFAULT_wxUSE_LISTBOX=no
5105 DEFAULT_wxUSE_LISTCTRL=no
5106 DEFAULT_wxUSE_NOTEBOOK=no
5107 DEFAULT_wxUSE_PROPSHEET=no
5108 DEFAULT_wxUSE_RADIOBOX=no
5109 DEFAULT_wxUSE_RADIOBTN=no
5110 DEFAULT_wxUSE_SASH=no
5111 DEFAULT_wxUSE_SCROLLBAR=no
5112 DEFAULT_wxUSE_SLIDER=no
5113 DEFAULT_wxUSE_SPINBTN=no
5114 DEFAULT_wxUSE_SPINCTRL=no
5115 DEFAULT_wxUSE_SPLITTER=no
5116 DEFAULT_wxUSE_STATBMP=no
5117 DEFAULT_wxUSE_STATBOX=no
5118 DEFAULT_wxUSE_STATLINE=no
5119 DEFAULT_wxUSE_STATUSBAR=no
5120 DEFAULT_wxUSE_TAB_DIALOG=no
5121 DEFAULT_wxUSE_TOGGLEBTN=no
5122 DEFAULT_wxUSE_TOOLBAR=no
5123 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5124 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5125 DEFAULT_wxUSE_TOOLTIPS=no
5126 DEFAULT_wxUSE_TREECTRL=no
5127 DEFAULT_wxUSE_POPUPWIN=no
5128 fi
5129
5130
5131 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5132 echo "configure:5133: checking for --enable-accel" >&5
5133 no_cache=0
5134 # Check whether --enable-accel or --disable-accel was given.
5135 if test "${enable_accel+set}" = set; then
5136 enableval="$enable_accel"
5137
5138 if test "$enableval" = yes; then
5139 ac_cv_use_accel='wxUSE_ACCEL=yes'
5140 else
5141 ac_cv_use_accel='wxUSE_ACCEL=no'
5142 fi
5143
5144 else
5145
5146 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5147 if test "x$LINE" != x ; then
5148 eval "DEFAULT_$LINE"
5149 else
5150 no_cache=1
5151 fi
5152
5153 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5154
5155 fi
5156
5157
5158 eval "$ac_cv_use_accel"
5159 if test "$no_cache" != 1; then
5160 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5161 fi
5162
5163 if test "$wxUSE_ACCEL" = yes; then
5164 echo "$ac_t""yes" 1>&6
5165 else
5166 echo "$ac_t""no" 1>&6
5167 fi
5168
5169
5170 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5171 echo "configure:5172: checking for --enable-button" >&5
5172 no_cache=0
5173 # Check whether --enable-button or --disable-button was given.
5174 if test "${enable_button+set}" = set; then
5175 enableval="$enable_button"
5176
5177 if test "$enableval" = yes; then
5178 ac_cv_use_button='wxUSE_BUTTON=yes'
5179 else
5180 ac_cv_use_button='wxUSE_BUTTON=no'
5181 fi
5182
5183 else
5184
5185 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5186 if test "x$LINE" != x ; then
5187 eval "DEFAULT_$LINE"
5188 else
5189 no_cache=1
5190 fi
5191
5192 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5193
5194 fi
5195
5196
5197 eval "$ac_cv_use_button"
5198 if test "$no_cache" != 1; then
5199 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5200 fi
5201
5202 if test "$wxUSE_BUTTON" = yes; then
5203 echo "$ac_t""yes" 1>&6
5204 else
5205 echo "$ac_t""no" 1>&6
5206 fi
5207
5208
5209 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5210 echo "configure:5211: checking for --enable-bmpbutton" >&5
5211 no_cache=0
5212 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5213 if test "${enable_bmpbutton+set}" = set; then
5214 enableval="$enable_bmpbutton"
5215
5216 if test "$enableval" = yes; then
5217 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5218 else
5219 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5220 fi
5221
5222 else
5223
5224 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5225 if test "x$LINE" != x ; then
5226 eval "DEFAULT_$LINE"
5227 else
5228 no_cache=1
5229 fi
5230
5231 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5232
5233 fi
5234
5235
5236 eval "$ac_cv_use_bmpbutton"
5237 if test "$no_cache" != 1; then
5238 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5239 fi
5240
5241 if test "$wxUSE_BMPBUTTON" = yes; then
5242 echo "$ac_t""yes" 1>&6
5243 else
5244 echo "$ac_t""no" 1>&6
5245 fi
5246
5247
5248 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5249 echo "configure:5250: checking for --enable-calendar" >&5
5250 no_cache=0
5251 # Check whether --enable-calendar or --disable-calendar was given.
5252 if test "${enable_calendar+set}" = set; then
5253 enableval="$enable_calendar"
5254
5255 if test "$enableval" = yes; then
5256 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5257 else
5258 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5259 fi
5260
5261 else
5262
5263 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5264 if test "x$LINE" != x ; then
5265 eval "DEFAULT_$LINE"
5266 else
5267 no_cache=1
5268 fi
5269
5270 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5271
5272 fi
5273
5274
5275 eval "$ac_cv_use_calendar"
5276 if test "$no_cache" != 1; then
5277 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5278 fi
5279
5280 if test "$wxUSE_CALCTRL" = yes; then
5281 echo "$ac_t""yes" 1>&6
5282 else
5283 echo "$ac_t""no" 1>&6
5284 fi
5285
5286
5287 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5288 echo "configure:5289: checking for --enable-caret" >&5
5289 no_cache=0
5290 # Check whether --enable-caret or --disable-caret was given.
5291 if test "${enable_caret+set}" = set; then
5292 enableval="$enable_caret"
5293
5294 if test "$enableval" = yes; then
5295 ac_cv_use_caret='wxUSE_CARET=yes'
5296 else
5297 ac_cv_use_caret='wxUSE_CARET=no'
5298 fi
5299
5300 else
5301
5302 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5303 if test "x$LINE" != x ; then
5304 eval "DEFAULT_$LINE"
5305 else
5306 no_cache=1
5307 fi
5308
5309 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5310
5311 fi
5312
5313
5314 eval "$ac_cv_use_caret"
5315 if test "$no_cache" != 1; then
5316 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5317 fi
5318
5319 if test "$wxUSE_CARET" = yes; then
5320 echo "$ac_t""yes" 1>&6
5321 else
5322 echo "$ac_t""no" 1>&6
5323 fi
5324
5325
5326 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5327 echo "configure:5328: checking for --enable-checkbox" >&5
5328 no_cache=0
5329 # Check whether --enable-checkbox or --disable-checkbox was given.
5330 if test "${enable_checkbox+set}" = set; then
5331 enableval="$enable_checkbox"
5332
5333 if test "$enableval" = yes; then
5334 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5335 else
5336 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5337 fi
5338
5339 else
5340
5341 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5342 if test "x$LINE" != x ; then
5343 eval "DEFAULT_$LINE"
5344 else
5345 no_cache=1
5346 fi
5347
5348 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5349
5350 fi
5351
5352
5353 eval "$ac_cv_use_checkbox"
5354 if test "$no_cache" != 1; then
5355 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5356 fi
5357
5358 if test "$wxUSE_CHECKBOX" = yes; then
5359 echo "$ac_t""yes" 1>&6
5360 else
5361 echo "$ac_t""no" 1>&6
5362 fi
5363
5364
5365 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5366 echo "configure:5367: checking for --enable-checklst" >&5
5367 no_cache=0
5368 # Check whether --enable-checklst or --disable-checklst was given.
5369 if test "${enable_checklst+set}" = set; then
5370 enableval="$enable_checklst"
5371
5372 if test "$enableval" = yes; then
5373 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5374 else
5375 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5376 fi
5377
5378 else
5379
5380 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5381 if test "x$LINE" != x ; then
5382 eval "DEFAULT_$LINE"
5383 else
5384 no_cache=1
5385 fi
5386
5387 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5388
5389 fi
5390
5391
5392 eval "$ac_cv_use_checklst"
5393 if test "$no_cache" != 1; then
5394 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5395 fi
5396
5397 if test "$wxUSE_CHECKLST" = yes; then
5398 echo "$ac_t""yes" 1>&6
5399 else
5400 echo "$ac_t""no" 1>&6
5401 fi
5402
5403
5404 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5405 echo "configure:5406: checking for --enable-choice" >&5
5406 no_cache=0
5407 # Check whether --enable-choice or --disable-choice was given.
5408 if test "${enable_choice+set}" = set; then
5409 enableval="$enable_choice"
5410
5411 if test "$enableval" = yes; then
5412 ac_cv_use_choice='wxUSE_CHOICE=yes'
5413 else
5414 ac_cv_use_choice='wxUSE_CHOICE=no'
5415 fi
5416
5417 else
5418
5419 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5420 if test "x$LINE" != x ; then
5421 eval "DEFAULT_$LINE"
5422 else
5423 no_cache=1
5424 fi
5425
5426 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5427
5428 fi
5429
5430
5431 eval "$ac_cv_use_choice"
5432 if test "$no_cache" != 1; then
5433 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5434 fi
5435
5436 if test "$wxUSE_CHOICE" = yes; then
5437 echo "$ac_t""yes" 1>&6
5438 else
5439 echo "$ac_t""no" 1>&6
5440 fi
5441
5442
5443 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5444 echo "configure:5445: checking for --enable-combobox" >&5
5445 no_cache=0
5446 # Check whether --enable-combobox or --disable-combobox was given.
5447 if test "${enable_combobox+set}" = set; then
5448 enableval="$enable_combobox"
5449
5450 if test "$enableval" = yes; then
5451 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5452 else
5453 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5454 fi
5455
5456 else
5457
5458 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5459 if test "x$LINE" != x ; then
5460 eval "DEFAULT_$LINE"
5461 else
5462 no_cache=1
5463 fi
5464
5465 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5466
5467 fi
5468
5469
5470 eval "$ac_cv_use_combobox"
5471 if test "$no_cache" != 1; then
5472 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5473 fi
5474
5475 if test "$wxUSE_COMBOBOX" = yes; then
5476 echo "$ac_t""yes" 1>&6
5477 else
5478 echo "$ac_t""no" 1>&6
5479 fi
5480
5481
5482 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5483 echo "configure:5484: checking for --enable-gauge" >&5
5484 no_cache=0
5485 # Check whether --enable-gauge or --disable-gauge was given.
5486 if test "${enable_gauge+set}" = set; then
5487 enableval="$enable_gauge"
5488
5489 if test "$enableval" = yes; then
5490 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5491 else
5492 ac_cv_use_gauge='wxUSE_GAUGE=no'
5493 fi
5494
5495 else
5496
5497 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5498 if test "x$LINE" != x ; then
5499 eval "DEFAULT_$LINE"
5500 else
5501 no_cache=1
5502 fi
5503
5504 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5505
5506 fi
5507
5508
5509 eval "$ac_cv_use_gauge"
5510 if test "$no_cache" != 1; then
5511 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5512 fi
5513
5514 if test "$wxUSE_GAUGE" = yes; then
5515 echo "$ac_t""yes" 1>&6
5516 else
5517 echo "$ac_t""no" 1>&6
5518 fi
5519
5520
5521 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5522 echo "configure:5523: checking for --enable-grid" >&5
5523 no_cache=0
5524 # Check whether --enable-grid or --disable-grid was given.
5525 if test "${enable_grid+set}" = set; then
5526 enableval="$enable_grid"
5527
5528 if test "$enableval" = yes; then
5529 ac_cv_use_grid='wxUSE_GRID=yes'
5530 else
5531 ac_cv_use_grid='wxUSE_GRID=no'
5532 fi
5533
5534 else
5535
5536 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5537 if test "x$LINE" != x ; then
5538 eval "DEFAULT_$LINE"
5539 else
5540 no_cache=1
5541 fi
5542
5543 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5544
5545 fi
5546
5547
5548 eval "$ac_cv_use_grid"
5549 if test "$no_cache" != 1; then
5550 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5551 fi
5552
5553 if test "$wxUSE_GRID" = yes; then
5554 echo "$ac_t""yes" 1>&6
5555 else
5556 echo "$ac_t""no" 1>&6
5557 fi
5558
5559
5560 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5561 echo "configure:5562: checking for --enable-newgrid" >&5
5562 no_cache=0
5563 # Check whether --enable-newgrid or --disable-newgrid was given.
5564 if test "${enable_newgrid+set}" = set; then
5565 enableval="$enable_newgrid"
5566
5567 if test "$enableval" = yes; then
5568 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5569 else
5570 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5571 fi
5572
5573 else
5574
5575 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5576 if test "x$LINE" != x ; then
5577 eval "DEFAULT_$LINE"
5578 else
5579 no_cache=1
5580 fi
5581
5582 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5583
5584 fi
5585
5586
5587 eval "$ac_cv_use_newgrid"
5588 if test "$no_cache" != 1; then
5589 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5590 fi
5591
5592 if test "$wxUSE_NEW_GRID" = yes; then
5593 echo "$ac_t""yes" 1>&6
5594 else
5595 echo "$ac_t""no" 1>&6
5596 fi
5597
5598
5599 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5600 echo "configure:5601: checking for --enable-imaglist" >&5
5601 no_cache=0
5602 # Check whether --enable-imaglist or --disable-imaglist was given.
5603 if test "${enable_imaglist+set}" = set; then
5604 enableval="$enable_imaglist"
5605
5606 if test "$enableval" = yes; then
5607 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5608 else
5609 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5610 fi
5611
5612 else
5613
5614 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5615 if test "x$LINE" != x ; then
5616 eval "DEFAULT_$LINE"
5617 else
5618 no_cache=1
5619 fi
5620
5621 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5622
5623 fi
5624
5625
5626 eval "$ac_cv_use_imaglist"
5627 if test "$no_cache" != 1; then
5628 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5629 fi
5630
5631 if test "$wxUSE_IMAGLIST" = yes; then
5632 echo "$ac_t""yes" 1>&6
5633 else
5634 echo "$ac_t""no" 1>&6
5635 fi
5636
5637
5638 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5639 echo "configure:5640: checking for --enable-listbox" >&5
5640 no_cache=0
5641 # Check whether --enable-listbox or --disable-listbox was given.
5642 if test "${enable_listbox+set}" = set; then
5643 enableval="$enable_listbox"
5644
5645 if test "$enableval" = yes; then
5646 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5647 else
5648 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5649 fi
5650
5651 else
5652
5653 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5654 if test "x$LINE" != x ; then
5655 eval "DEFAULT_$LINE"
5656 else
5657 no_cache=1
5658 fi
5659
5660 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5661
5662 fi
5663
5664
5665 eval "$ac_cv_use_listbox"
5666 if test "$no_cache" != 1; then
5667 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5668 fi
5669
5670 if test "$wxUSE_LISTBOX" = yes; then
5671 echo "$ac_t""yes" 1>&6
5672 else
5673 echo "$ac_t""no" 1>&6
5674 fi
5675
5676
5677 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5678 echo "configure:5679: checking for --enable-listctrl" >&5
5679 no_cache=0
5680 # Check whether --enable-listctrl or --disable-listctrl was given.
5681 if test "${enable_listctrl+set}" = set; then
5682 enableval="$enable_listctrl"
5683
5684 if test "$enableval" = yes; then
5685 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5686 else
5687 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5688 fi
5689
5690 else
5691
5692 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5693 if test "x$LINE" != x ; then
5694 eval "DEFAULT_$LINE"
5695 else
5696 no_cache=1
5697 fi
5698
5699 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5700
5701 fi
5702
5703
5704 eval "$ac_cv_use_listctrl"
5705 if test "$no_cache" != 1; then
5706 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5707 fi
5708
5709 if test "$wxUSE_LISTCTRL" = yes; then
5710 echo "$ac_t""yes" 1>&6
5711 else
5712 echo "$ac_t""no" 1>&6
5713 fi
5714
5715
5716 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5717 echo "configure:5718: checking for --enable-notebook" >&5
5718 no_cache=0
5719 # Check whether --enable-notebook or --disable-notebook was given.
5720 if test "${enable_notebook+set}" = set; then
5721 enableval="$enable_notebook"
5722
5723 if test "$enableval" = yes; then
5724 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5725 else
5726 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5727 fi
5728
5729 else
5730
5731 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5732 if test "x$LINE" != x ; then
5733 eval "DEFAULT_$LINE"
5734 else
5735 no_cache=1
5736 fi
5737
5738 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5739
5740 fi
5741
5742
5743 eval "$ac_cv_use_notebook"
5744 if test "$no_cache" != 1; then
5745 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5746 fi
5747
5748 if test "$wxUSE_NOTEBOOK" = yes; then
5749 echo "$ac_t""yes" 1>&6
5750 else
5751 echo "$ac_t""no" 1>&6
5752 fi
5753
5754
5755 echo $ac_n "checking for --enable-propsheet""... $ac_c" 1>&6
5756 echo "configure:5757: checking for --enable-propsheet" >&5
5757 no_cache=0
5758 # Check whether --enable-propsheet or --disable-propsheet was given.
5759 if test "${enable_propsheet+set}" = set; then
5760 enableval="$enable_propsheet"
5761
5762 if test "$enableval" = yes; then
5763 ac_cv_use_propsheet='wxUSE_PROPSHEET=yes'
5764 else
5765 ac_cv_use_propsheet='wxUSE_PROPSHEET=no'
5766 fi
5767
5768 else
5769
5770 LINE=`grep "wxUSE_PROPSHEET" ${wx_arg_cache_file}`
5771 if test "x$LINE" != x ; then
5772 eval "DEFAULT_$LINE"
5773 else
5774 no_cache=1
5775 fi
5776
5777 ac_cv_use_propsheet='wxUSE_PROPSHEET='$DEFAULT_wxUSE_PROPSHEET
5778
5779 fi
5780
5781
5782 eval "$ac_cv_use_propsheet"
5783 if test "$no_cache" != 1; then
5784 echo $ac_cv_use_propsheet >> ${wx_arg_cache_file}.tmp
5785 fi
5786
5787 if test "$wxUSE_PROPSHEET" = yes; then
5788 echo "$ac_t""yes" 1>&6
5789 else
5790 echo "$ac_t""no" 1>&6
5791 fi
5792
5793
5794 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5795 echo "configure:5796: checking for --enable-radiobox" >&5
5796 no_cache=0
5797 # Check whether --enable-radiobox or --disable-radiobox was given.
5798 if test "${enable_radiobox+set}" = set; then
5799 enableval="$enable_radiobox"
5800
5801 if test "$enableval" = yes; then
5802 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5803 else
5804 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5805 fi
5806
5807 else
5808
5809 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5810 if test "x$LINE" != x ; then
5811 eval "DEFAULT_$LINE"
5812 else
5813 no_cache=1
5814 fi
5815
5816 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5817
5818 fi
5819
5820
5821 eval "$ac_cv_use_radiobox"
5822 if test "$no_cache" != 1; then
5823 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5824 fi
5825
5826 if test "$wxUSE_RADIOBOX" = yes; then
5827 echo "$ac_t""yes" 1>&6
5828 else
5829 echo "$ac_t""no" 1>&6
5830 fi
5831
5832
5833 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5834 echo "configure:5835: checking for --enable-radiobtn" >&5
5835 no_cache=0
5836 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5837 if test "${enable_radiobtn+set}" = set; then
5838 enableval="$enable_radiobtn"
5839
5840 if test "$enableval" = yes; then
5841 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5842 else
5843 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5844 fi
5845
5846 else
5847
5848 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5849 if test "x$LINE" != x ; then
5850 eval "DEFAULT_$LINE"
5851 else
5852 no_cache=1
5853 fi
5854
5855 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5856
5857 fi
5858
5859
5860 eval "$ac_cv_use_radiobtn"
5861 if test "$no_cache" != 1; then
5862 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5863 fi
5864
5865 if test "$wxUSE_RADIOBTN" = yes; then
5866 echo "$ac_t""yes" 1>&6
5867 else
5868 echo "$ac_t""no" 1>&6
5869 fi
5870
5871
5872 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5873 echo "configure:5874: checking for --enable-sash" >&5
5874 no_cache=0
5875 # Check whether --enable-sash or --disable-sash was given.
5876 if test "${enable_sash+set}" = set; then
5877 enableval="$enable_sash"
5878
5879 if test "$enableval" = yes; then
5880 ac_cv_use_sash='wxUSE_SASH=yes'
5881 else
5882 ac_cv_use_sash='wxUSE_SASH=no'
5883 fi
5884
5885 else
5886
5887 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5888 if test "x$LINE" != x ; then
5889 eval "DEFAULT_$LINE"
5890 else
5891 no_cache=1
5892 fi
5893
5894 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5895
5896 fi
5897
5898
5899 eval "$ac_cv_use_sash"
5900 if test "$no_cache" != 1; then
5901 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5902 fi
5903
5904 if test "$wxUSE_SASH" = yes; then
5905 echo "$ac_t""yes" 1>&6
5906 else
5907 echo "$ac_t""no" 1>&6
5908 fi
5909
5910
5911 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5912 echo "configure:5913: checking for --enable-scrollbar" >&5
5913 no_cache=0
5914 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5915 if test "${enable_scrollbar+set}" = set; then
5916 enableval="$enable_scrollbar"
5917
5918 if test "$enableval" = yes; then
5919 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5920 else
5921 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5922 fi
5923
5924 else
5925
5926 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5927 if test "x$LINE" != x ; then
5928 eval "DEFAULT_$LINE"
5929 else
5930 no_cache=1
5931 fi
5932
5933 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5934
5935 fi
5936
5937
5938 eval "$ac_cv_use_scrollbar"
5939 if test "$no_cache" != 1; then
5940 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5941 fi
5942
5943 if test "$wxUSE_SCROLLBAR" = yes; then
5944 echo "$ac_t""yes" 1>&6
5945 else
5946 echo "$ac_t""no" 1>&6
5947 fi
5948
5949
5950 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5951 echo "configure:5952: checking for --enable-slider" >&5
5952 no_cache=0
5953 # Check whether --enable-slider or --disable-slider was given.
5954 if test "${enable_slider+set}" = set; then
5955 enableval="$enable_slider"
5956
5957 if test "$enableval" = yes; then
5958 ac_cv_use_slider='wxUSE_SLIDER=yes'
5959 else
5960 ac_cv_use_slider='wxUSE_SLIDER=no'
5961 fi
5962
5963 else
5964
5965 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5966 if test "x$LINE" != x ; then
5967 eval "DEFAULT_$LINE"
5968 else
5969 no_cache=1
5970 fi
5971
5972 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5973
5974 fi
5975
5976
5977 eval "$ac_cv_use_slider"
5978 if test "$no_cache" != 1; then
5979 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5980 fi
5981
5982 if test "$wxUSE_SLIDER" = yes; then
5983 echo "$ac_t""yes" 1>&6
5984 else
5985 echo "$ac_t""no" 1>&6
5986 fi
5987
5988
5989 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5990 echo "configure:5991: checking for --enable-spinbtn" >&5
5991 no_cache=0
5992 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5993 if test "${enable_spinbtn+set}" = set; then
5994 enableval="$enable_spinbtn"
5995
5996 if test "$enableval" = yes; then
5997 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5998 else
5999 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
6000 fi
6001
6002 else
6003
6004 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
6005 if test "x$LINE" != x ; then
6006 eval "DEFAULT_$LINE"
6007 else
6008 no_cache=1
6009 fi
6010
6011 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
6012
6013 fi
6014
6015
6016 eval "$ac_cv_use_spinbtn"
6017 if test "$no_cache" != 1; then
6018 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
6019 fi
6020
6021 if test "$wxUSE_SPINBTN" = yes; then
6022 echo "$ac_t""yes" 1>&6
6023 else
6024 echo "$ac_t""no" 1>&6
6025 fi
6026
6027
6028 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
6029 echo "configure:6030: checking for --enable-spinctrl" >&5
6030 no_cache=0
6031 # Check whether --enable-spinctrl or --disable-spinctrl was given.
6032 if test "${enable_spinctrl+set}" = set; then
6033 enableval="$enable_spinctrl"
6034
6035 if test "$enableval" = yes; then
6036 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
6037 else
6038 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
6039 fi
6040
6041 else
6042
6043 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6044 if test "x$LINE" != x ; then
6045 eval "DEFAULT_$LINE"
6046 else
6047 no_cache=1
6048 fi
6049
6050 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6051
6052 fi
6053
6054
6055 eval "$ac_cv_use_spinctrl"
6056 if test "$no_cache" != 1; then
6057 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6058 fi
6059
6060 if test "$wxUSE_SPINCTRL" = yes; then
6061 echo "$ac_t""yes" 1>&6
6062 else
6063 echo "$ac_t""no" 1>&6
6064 fi
6065
6066
6067 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6068 echo "configure:6069: checking for --enable-splitter" >&5
6069 no_cache=0
6070 # Check whether --enable-splitter or --disable-splitter was given.
6071 if test "${enable_splitter+set}" = set; then
6072 enableval="$enable_splitter"
6073
6074 if test "$enableval" = yes; then
6075 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6076 else
6077 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6078 fi
6079
6080 else
6081
6082 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6083 if test "x$LINE" != x ; then
6084 eval "DEFAULT_$LINE"
6085 else
6086 no_cache=1
6087 fi
6088
6089 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6090
6091 fi
6092
6093
6094 eval "$ac_cv_use_splitter"
6095 if test "$no_cache" != 1; then
6096 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6097 fi
6098
6099 if test "$wxUSE_SPLITTER" = yes; then
6100 echo "$ac_t""yes" 1>&6
6101 else
6102 echo "$ac_t""no" 1>&6
6103 fi
6104
6105
6106 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6107 echo "configure:6108: checking for --enable-statbmp" >&5
6108 no_cache=0
6109 # Check whether --enable-statbmp or --disable-statbmp was given.
6110 if test "${enable_statbmp+set}" = set; then
6111 enableval="$enable_statbmp"
6112
6113 if test "$enableval" = yes; then
6114 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6115 else
6116 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6117 fi
6118
6119 else
6120
6121 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6122 if test "x$LINE" != x ; then
6123 eval "DEFAULT_$LINE"
6124 else
6125 no_cache=1
6126 fi
6127
6128 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6129
6130 fi
6131
6132
6133 eval "$ac_cv_use_statbmp"
6134 if test "$no_cache" != 1; then
6135 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6136 fi
6137
6138 if test "$wxUSE_STATBMP" = yes; then
6139 echo "$ac_t""yes" 1>&6
6140 else
6141 echo "$ac_t""no" 1>&6
6142 fi
6143
6144
6145 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6146 echo "configure:6147: checking for --enable-statbox" >&5
6147 no_cache=0
6148 # Check whether --enable-statbox or --disable-statbox was given.
6149 if test "${enable_statbox+set}" = set; then
6150 enableval="$enable_statbox"
6151
6152 if test "$enableval" = yes; then
6153 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6154 else
6155 ac_cv_use_statbox='wxUSE_STATBOX=no'
6156 fi
6157
6158 else
6159
6160 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6161 if test "x$LINE" != x ; then
6162 eval "DEFAULT_$LINE"
6163 else
6164 no_cache=1
6165 fi
6166
6167 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6168
6169 fi
6170
6171
6172 eval "$ac_cv_use_statbox"
6173 if test "$no_cache" != 1; then
6174 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6175 fi
6176
6177 if test "$wxUSE_STATBOX" = yes; then
6178 echo "$ac_t""yes" 1>&6
6179 else
6180 echo "$ac_t""no" 1>&6
6181 fi
6182
6183
6184 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6185 echo "configure:6186: checking for --enable-statline" >&5
6186 no_cache=0
6187 # Check whether --enable-statline or --disable-statline was given.
6188 if test "${enable_statline+set}" = set; then
6189 enableval="$enable_statline"
6190
6191 if test "$enableval" = yes; then
6192 ac_cv_use_statline='wxUSE_STATLINE=yes'
6193 else
6194 ac_cv_use_statline='wxUSE_STATLINE=no'
6195 fi
6196
6197 else
6198
6199 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6200 if test "x$LINE" != x ; then
6201 eval "DEFAULT_$LINE"
6202 else
6203 no_cache=1
6204 fi
6205
6206 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6207
6208 fi
6209
6210
6211 eval "$ac_cv_use_statline"
6212 if test "$no_cache" != 1; then
6213 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6214 fi
6215
6216 if test "$wxUSE_STATLINE" = yes; then
6217 echo "$ac_t""yes" 1>&6
6218 else
6219 echo "$ac_t""no" 1>&6
6220 fi
6221
6222
6223 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6224 echo "configure:6225: checking for --enable-stattext" >&5
6225 no_cache=0
6226 # Check whether --enable-stattext or --disable-stattext was given.
6227 if test "${enable_stattext+set}" = set; then
6228 enableval="$enable_stattext"
6229
6230 if test "$enableval" = yes; then
6231 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6232 else
6233 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6234 fi
6235
6236 else
6237
6238 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6239 if test "x$LINE" != x ; then
6240 eval "DEFAULT_$LINE"
6241 else
6242 no_cache=1
6243 fi
6244
6245 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6246
6247 fi
6248
6249
6250 eval "$ac_cv_use_stattext"
6251 if test "$no_cache" != 1; then
6252 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6253 fi
6254
6255 if test "$wxUSE_STATTEXT" = yes; then
6256 echo "$ac_t""yes" 1>&6
6257 else
6258 echo "$ac_t""no" 1>&6
6259 fi
6260
6261
6262 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6263 echo "configure:6264: checking for --enable-statusbar" >&5
6264 no_cache=0
6265 # Check whether --enable-statusbar or --disable-statusbar was given.
6266 if test "${enable_statusbar+set}" = set; then
6267 enableval="$enable_statusbar"
6268
6269 if test "$enableval" = yes; then
6270 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6271 else
6272 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6273 fi
6274
6275 else
6276
6277 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6278 if test "x$LINE" != x ; then
6279 eval "DEFAULT_$LINE"
6280 else
6281 no_cache=1
6282 fi
6283
6284 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6285
6286 fi
6287
6288
6289 eval "$ac_cv_use_statusbar"
6290 if test "$no_cache" != 1; then
6291 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6292 fi
6293
6294 if test "$wxUSE_STATUSBAR" = yes; then
6295 echo "$ac_t""yes" 1>&6
6296 else
6297 echo "$ac_t""no" 1>&6
6298 fi
6299
6300
6301 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6302 echo "configure:6303: checking for --enable-tabdialog" >&5
6303 no_cache=0
6304 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6305 if test "${enable_tabdialog+set}" = set; then
6306 enableval="$enable_tabdialog"
6307
6308 if test "$enableval" = yes; then
6309 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6310 else
6311 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6312 fi
6313
6314 else
6315
6316 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6317 if test "x$LINE" != x ; then
6318 eval "DEFAULT_$LINE"
6319 else
6320 no_cache=1
6321 fi
6322
6323 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6324
6325 fi
6326
6327
6328 eval "$ac_cv_use_tabdialog"
6329 if test "$no_cache" != 1; then
6330 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6331 fi
6332
6333 if test "$wxUSE_TABDIALOG" = yes; then
6334 echo "$ac_t""yes" 1>&6
6335 else
6336 echo "$ac_t""no" 1>&6
6337 fi
6338
6339
6340 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6341 echo "configure:6342: checking for --enable-textctrl" >&5
6342 no_cache=0
6343 # Check whether --enable-textctrl or --disable-textctrl was given.
6344 if test "${enable_textctrl+set}" = set; then
6345 enableval="$enable_textctrl"
6346
6347 if test "$enableval" = yes; then
6348 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6349 else
6350 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6351 fi
6352
6353 else
6354
6355 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6356 if test "x$LINE" != x ; then
6357 eval "DEFAULT_$LINE"
6358 else
6359 no_cache=1
6360 fi
6361
6362 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6363
6364 fi
6365
6366
6367 eval "$ac_cv_use_textctrl"
6368 if test "$no_cache" != 1; then
6369 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6370 fi
6371
6372 if test "$wxUSE_TEXTCTRL" = yes; then
6373 echo "$ac_t""yes" 1>&6
6374 else
6375 echo "$ac_t""no" 1>&6
6376 fi
6377
6378
6379 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6380 echo "configure:6381: checking for --enable-togglebtn" >&5
6381 no_cache=0
6382 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6383 if test "${enable_togglebtn+set}" = set; then
6384 enableval="$enable_togglebtn"
6385
6386 if test "$enableval" = yes; then
6387 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6388 else
6389 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6390 fi
6391
6392 else
6393
6394 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6395 if test "x$LINE" != x ; then
6396 eval "DEFAULT_$LINE"
6397 else
6398 no_cache=1
6399 fi
6400
6401 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6402
6403 fi
6404
6405
6406 eval "$ac_cv_use_togglebtn"
6407 if test "$no_cache" != 1; then
6408 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6409 fi
6410
6411 if test "$wxUSE_TOGGLEBTN" = yes; then
6412 echo "$ac_t""yes" 1>&6
6413 else
6414 echo "$ac_t""no" 1>&6
6415 fi
6416
6417
6418 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6419 echo "configure:6420: checking for --enable-toolbar" >&5
6420 no_cache=0
6421 # Check whether --enable-toolbar or --disable-toolbar was given.
6422 if test "${enable_toolbar+set}" = set; then
6423 enableval="$enable_toolbar"
6424
6425 if test "$enableval" = yes; then
6426 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6427 else
6428 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6429 fi
6430
6431 else
6432
6433 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6434 if test "x$LINE" != x ; then
6435 eval "DEFAULT_$LINE"
6436 else
6437 no_cache=1
6438 fi
6439
6440 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6441
6442 fi
6443
6444
6445 eval "$ac_cv_use_toolbar"
6446 if test "$no_cache" != 1; then
6447 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6448 fi
6449
6450 if test "$wxUSE_TOOLBAR" = yes; then
6451 echo "$ac_t""yes" 1>&6
6452 else
6453 echo "$ac_t""no" 1>&6
6454 fi
6455
6456
6457 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6458 echo "configure:6459: checking for --enable-tbarnative" >&5
6459 no_cache=0
6460 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6461 if test "${enable_tbarnative+set}" = set; then
6462 enableval="$enable_tbarnative"
6463
6464 if test "$enableval" = yes; then
6465 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6466 else
6467 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6468 fi
6469
6470 else
6471
6472 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6473 if test "x$LINE" != x ; then
6474 eval "DEFAULT_$LINE"
6475 else
6476 no_cache=1
6477 fi
6478
6479 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6480
6481 fi
6482
6483
6484 eval "$ac_cv_use_tbarnative"
6485 if test "$no_cache" != 1; then
6486 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6487 fi
6488
6489 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6490 echo "$ac_t""yes" 1>&6
6491 else
6492 echo "$ac_t""no" 1>&6
6493 fi
6494
6495
6496 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6497 echo "configure:6498: checking for --enable-tbarsmpl" >&5
6498 no_cache=0
6499 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6500 if test "${enable_tbarsmpl+set}" = set; then
6501 enableval="$enable_tbarsmpl"
6502
6503 if test "$enableval" = yes; then
6504 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6505 else
6506 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6507 fi
6508
6509 else
6510
6511 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6512 if test "x$LINE" != x ; then
6513 eval "DEFAULT_$LINE"
6514 else
6515 no_cache=1
6516 fi
6517
6518 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6519
6520 fi
6521
6522
6523 eval "$ac_cv_use_tbarsmpl"
6524 if test "$no_cache" != 1; then
6525 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6526 fi
6527
6528 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6529 echo "$ac_t""yes" 1>&6
6530 else
6531 echo "$ac_t""no" 1>&6
6532 fi
6533
6534
6535 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6536 echo "configure:6537: checking for --enable-treectrl" >&5
6537 no_cache=0
6538 # Check whether --enable-treectrl or --disable-treectrl was given.
6539 if test "${enable_treectrl+set}" = set; then
6540 enableval="$enable_treectrl"
6541
6542 if test "$enableval" = yes; then
6543 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6544 else
6545 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6546 fi
6547
6548 else
6549
6550 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6551 if test "x$LINE" != x ; then
6552 eval "DEFAULT_$LINE"
6553 else
6554 no_cache=1
6555 fi
6556
6557 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6558
6559 fi
6560
6561
6562 eval "$ac_cv_use_treectrl"
6563 if test "$no_cache" != 1; then
6564 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6565 fi
6566
6567 if test "$wxUSE_TREECTRL" = yes; then
6568 echo "$ac_t""yes" 1>&6
6569 else
6570 echo "$ac_t""no" 1>&6
6571 fi
6572
6573
6574 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6575 echo "configure:6576: checking for --enable-popupwin" >&5
6576 no_cache=0
6577 # Check whether --enable-popupwin or --disable-popupwin was given.
6578 if test "${enable_popupwin+set}" = set; then
6579 enableval="$enable_popupwin"
6580
6581 if test "$enableval" = yes; then
6582 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6583 else
6584 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6585 fi
6586
6587 else
6588
6589 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6590 if test "x$LINE" != x ; then
6591 eval "DEFAULT_$LINE"
6592 else
6593 no_cache=1
6594 fi
6595
6596 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6597
6598 fi
6599
6600
6601 eval "$ac_cv_use_popupwin"
6602 if test "$no_cache" != 1; then
6603 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6604 fi
6605
6606 if test "$wxUSE_POPUPWIN" = yes; then
6607 echo "$ac_t""yes" 1>&6
6608 else
6609 echo "$ac_t""no" 1>&6
6610 fi
6611
6612
6613
6614
6615 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6616 echo "configure:6617: checking for --enable-commondlg" >&5
6617 no_cache=0
6618 # Check whether --enable-commondlg or --disable-commondlg was given.
6619 if test "${enable_commondlg+set}" = set; then
6620 enableval="$enable_commondlg"
6621
6622 if test "$enableval" = yes; then
6623 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6624 else
6625 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6626 fi
6627
6628 else
6629
6630 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6631 if test "x$LINE" != x ; then
6632 eval "DEFAULT_$LINE"
6633 else
6634 no_cache=1
6635 fi
6636
6637 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6638
6639 fi
6640
6641
6642 eval "$ac_cv_use_commondlg"
6643 if test "$no_cache" != 1; then
6644 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6645 fi
6646
6647 if test "$wxUSE_COMMONDLGS" = yes; then
6648 echo "$ac_t""yes" 1>&6
6649 else
6650 echo "$ac_t""no" 1>&6
6651 fi
6652
6653
6654 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6655 echo "configure:6656: checking for --enable-choicedlg" >&5
6656 no_cache=0
6657 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6658 if test "${enable_choicedlg+set}" = set; then
6659 enableval="$enable_choicedlg"
6660
6661 if test "$enableval" = yes; then
6662 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6663 else
6664 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6665 fi
6666
6667 else
6668
6669 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6670 if test "x$LINE" != x ; then
6671 eval "DEFAULT_$LINE"
6672 else
6673 no_cache=1
6674 fi
6675
6676 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6677
6678 fi
6679
6680
6681 eval "$ac_cv_use_choicedlg"
6682 if test "$no_cache" != 1; then
6683 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6684 fi
6685
6686 if test "$wxUSE_CHOICEDLG" = yes; then
6687 echo "$ac_t""yes" 1>&6
6688 else
6689 echo "$ac_t""no" 1>&6
6690 fi
6691
6692
6693 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6694 echo "configure:6695: checking for --enable-coldlg" >&5
6695 no_cache=0
6696 # Check whether --enable-coldlg or --disable-coldlg was given.
6697 if test "${enable_coldlg+set}" = set; then
6698 enableval="$enable_coldlg"
6699
6700 if test "$enableval" = yes; then
6701 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6702 else
6703 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6704 fi
6705
6706 else
6707
6708 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6709 if test "x$LINE" != x ; then
6710 eval "DEFAULT_$LINE"
6711 else
6712 no_cache=1
6713 fi
6714
6715 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6716
6717 fi
6718
6719
6720 eval "$ac_cv_use_coldlg"
6721 if test "$no_cache" != 1; then
6722 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6723 fi
6724
6725 if test "$wxUSE_COLOURDLG" = yes; then
6726 echo "$ac_t""yes" 1>&6
6727 else
6728 echo "$ac_t""no" 1>&6
6729 fi
6730
6731
6732 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6733 echo "configure:6734: checking for --enable-filedlg" >&5
6734 no_cache=0
6735 # Check whether --enable-filedlg or --disable-filedlg was given.
6736 if test "${enable_filedlg+set}" = set; then
6737 enableval="$enable_filedlg"
6738
6739 if test "$enableval" = yes; then
6740 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6741 else
6742 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6743 fi
6744
6745 else
6746
6747 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6748 if test "x$LINE" != x ; then
6749 eval "DEFAULT_$LINE"
6750 else
6751 no_cache=1
6752 fi
6753
6754 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6755
6756 fi
6757
6758
6759 eval "$ac_cv_use_filedlg"
6760 if test "$no_cache" != 1; then
6761 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6762 fi
6763
6764 if test "$wxUSE_FILEDLG" = yes; then
6765 echo "$ac_t""yes" 1>&6
6766 else
6767 echo "$ac_t""no" 1>&6
6768 fi
6769
6770
6771 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6772 echo "configure:6773: checking for --enable-fontdlg" >&5
6773 no_cache=0
6774 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6775 if test "${enable_fontdlg+set}" = set; then
6776 enableval="$enable_fontdlg"
6777
6778 if test "$enableval" = yes; then
6779 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6780 else
6781 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6782 fi
6783
6784 else
6785
6786 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6787 if test "x$LINE" != x ; then
6788 eval "DEFAULT_$LINE"
6789 else
6790 no_cache=1
6791 fi
6792
6793 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6794
6795 fi
6796
6797
6798 eval "$ac_cv_use_fontdlg"
6799 if test "$no_cache" != 1; then
6800 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6801 fi
6802
6803 if test "$wxUSE_FONTDLG" = yes; then
6804 echo "$ac_t""yes" 1>&6
6805 else
6806 echo "$ac_t""no" 1>&6
6807 fi
6808
6809
6810 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6811 echo "configure:6812: checking for --enable-dirdlg" >&5
6812 no_cache=0
6813 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6814 if test "${enable_dirdlg+set}" = set; then
6815 enableval="$enable_dirdlg"
6816
6817 if test "$enableval" = yes; then
6818 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6819 else
6820 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6821 fi
6822
6823 else
6824
6825 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6826 if test "x$LINE" != x ; then
6827 eval "DEFAULT_$LINE"
6828 else
6829 no_cache=1
6830 fi
6831
6832 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6833
6834 fi
6835
6836
6837 eval "$ac_cv_use_dirdlg"
6838 if test "$no_cache" != 1; then
6839 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6840 fi
6841
6842 if test "$wxUSE_DIRDLG" = yes; then
6843 echo "$ac_t""yes" 1>&6
6844 else
6845 echo "$ac_t""no" 1>&6
6846 fi
6847
6848
6849 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6850 echo "configure:6851: checking for --enable-msgdlg" >&5
6851 no_cache=0
6852 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6853 if test "${enable_msgdlg+set}" = set; then
6854 enableval="$enable_msgdlg"
6855
6856 if test "$enableval" = yes; then
6857 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6858 else
6859 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6860 fi
6861
6862 else
6863
6864 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6865 if test "x$LINE" != x ; then
6866 eval "DEFAULT_$LINE"
6867 else
6868 no_cache=1
6869 fi
6870
6871 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6872
6873 fi
6874
6875
6876 eval "$ac_cv_use_msgdlg"
6877 if test "$no_cache" != 1; then
6878 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6879 fi
6880
6881 if test "$wxUSE_MSGDLG" = yes; then
6882 echo "$ac_t""yes" 1>&6
6883 else
6884 echo "$ac_t""no" 1>&6
6885 fi
6886
6887
6888 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6889 echo "configure:6890: checking for --enable-numberdlg" >&5
6890 no_cache=0
6891 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6892 if test "${enable_numberdlg+set}" = set; then
6893 enableval="$enable_numberdlg"
6894
6895 if test "$enableval" = yes; then
6896 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6897 else
6898 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6899 fi
6900
6901 else
6902
6903 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6904 if test "x$LINE" != x ; then
6905 eval "DEFAULT_$LINE"
6906 else
6907 no_cache=1
6908 fi
6909
6910 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6911
6912 fi
6913
6914
6915 eval "$ac_cv_use_numberdlg"
6916 if test "$no_cache" != 1; then
6917 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6918 fi
6919
6920 if test "$wxUSE_NUMBERDLG" = yes; then
6921 echo "$ac_t""yes" 1>&6
6922 else
6923 echo "$ac_t""no" 1>&6
6924 fi
6925
6926
6927 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
6928 echo "configure:6929: checking for --enable-textdlg" >&5
6929 no_cache=0
6930 # Check whether --enable-textdlg or --disable-textdlg was given.
6931 if test "${enable_textdlg+set}" = set; then
6932 enableval="$enable_textdlg"
6933
6934 if test "$enableval" = yes; then
6935 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6936 else
6937 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6938 fi
6939
6940 else
6941
6942 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6943 if test "x$LINE" != x ; then
6944 eval "DEFAULT_$LINE"
6945 else
6946 no_cache=1
6947 fi
6948
6949 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
6950
6951 fi
6952
6953
6954 eval "$ac_cv_use_textdlg"
6955 if test "$no_cache" != 1; then
6956 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6957 fi
6958
6959 if test "$wxUSE_TEXTDLG" = yes; then
6960 echo "$ac_t""yes" 1>&6
6961 else
6962 echo "$ac_t""no" 1>&6
6963 fi
6964
6965
6966 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
6967 echo "configure:6968: checking for --enable-tipdlg" >&5
6968 no_cache=0
6969 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6970 if test "${enable_tipdlg+set}" = set; then
6971 enableval="$enable_tipdlg"
6972
6973 if test "$enableval" = yes; then
6974 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6975 else
6976 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6977 fi
6978
6979 else
6980
6981 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6982 if test "x$LINE" != x ; then
6983 eval "DEFAULT_$LINE"
6984 else
6985 no_cache=1
6986 fi
6987
6988 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
6989
6990 fi
6991
6992
6993 eval "$ac_cv_use_tipdlg"
6994 if test "$no_cache" != 1; then
6995 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6996 fi
6997
6998 if test "$wxUSE_STARTUP_TIPS" = yes; then
6999 echo "$ac_t""yes" 1>&6
7000 else
7001 echo "$ac_t""no" 1>&6
7002 fi
7003
7004
7005 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
7006 echo "configure:7007: checking for --enable-progressdlg" >&5
7007 no_cache=0
7008 # Check whether --enable-progressdlg or --disable-progressdlg was given.
7009 if test "${enable_progressdlg+set}" = set; then
7010 enableval="$enable_progressdlg"
7011
7012 if test "$enableval" = yes; then
7013 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
7014 else
7015 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
7016 fi
7017
7018 else
7019
7020 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
7021 if test "x$LINE" != x ; then
7022 eval "DEFAULT_$LINE"
7023 else
7024 no_cache=1
7025 fi
7026
7027 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
7028
7029 fi
7030
7031
7032 eval "$ac_cv_use_progressdlg"
7033 if test "$no_cache" != 1; then
7034 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
7035 fi
7036
7037 if test "$wxUSE_PROGRESSDLG" = yes; then
7038 echo "$ac_t""yes" 1>&6
7039 else
7040 echo "$ac_t""no" 1>&6
7041 fi
7042
7043
7044 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7045 echo "configure:7046: checking for --enable-wizarddlg" >&5
7046 no_cache=0
7047 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7048 if test "${enable_wizarddlg+set}" = set; then
7049 enableval="$enable_wizarddlg"
7050
7051 if test "$enableval" = yes; then
7052 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7053 else
7054 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7055 fi
7056
7057 else
7058
7059 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7060 if test "x$LINE" != x ; then
7061 eval "DEFAULT_$LINE"
7062 else
7063 no_cache=1
7064 fi
7065
7066 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7067
7068 fi
7069
7070
7071 eval "$ac_cv_use_wizarddlg"
7072 if test "$no_cache" != 1; then
7073 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7074 fi
7075
7076 if test "$wxUSE_WIZARDDLG" = yes; then
7077 echo "$ac_t""yes" 1>&6
7078 else
7079 echo "$ac_t""no" 1>&6
7080 fi
7081
7082
7083
7084
7085 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7086 echo "configure:7087: checking for --enable-menus" >&5
7087 no_cache=0
7088 # Check whether --enable-menus or --disable-menus was given.
7089 if test "${enable_menus+set}" = set; then
7090 enableval="$enable_menus"
7091
7092 if test "$enableval" = yes; then
7093 ac_cv_use_menus='wxUSE_MENUS=yes'
7094 else
7095 ac_cv_use_menus='wxUSE_MENUS=no'
7096 fi
7097
7098 else
7099
7100 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7101 if test "x$LINE" != x ; then
7102 eval "DEFAULT_$LINE"
7103 else
7104 no_cache=1
7105 fi
7106
7107 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7108
7109 fi
7110
7111
7112 eval "$ac_cv_use_menus"
7113 if test "$no_cache" != 1; then
7114 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7115 fi
7116
7117 if test "$wxUSE_MENUS" = yes; then
7118 echo "$ac_t""yes" 1>&6
7119 else
7120 echo "$ac_t""no" 1>&6
7121 fi
7122
7123
7124 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7125 echo "configure:7126: checking for --enable-miniframe" >&5
7126 no_cache=0
7127 # Check whether --enable-miniframe or --disable-miniframe was given.
7128 if test "${enable_miniframe+set}" = set; then
7129 enableval="$enable_miniframe"
7130
7131 if test "$enableval" = yes; then
7132 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7133 else
7134 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7135 fi
7136
7137 else
7138
7139 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7140 if test "x$LINE" != x ; then
7141 eval "DEFAULT_$LINE"
7142 else
7143 no_cache=1
7144 fi
7145
7146 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7147
7148 fi
7149
7150
7151 eval "$ac_cv_use_miniframe"
7152 if test "$no_cache" != 1; then
7153 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7154 fi
7155
7156 if test "$wxUSE_MINIFRAME" = yes; then
7157 echo "$ac_t""yes" 1>&6
7158 else
7159 echo "$ac_t""no" 1>&6
7160 fi
7161
7162
7163 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7164 echo "configure:7165: checking for --enable-tooltips" >&5
7165 no_cache=0
7166 # Check whether --enable-tooltips or --disable-tooltips was given.
7167 if test "${enable_tooltips+set}" = set; then
7168 enableval="$enable_tooltips"
7169
7170 if test "$enableval" = yes; then
7171 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7172 else
7173 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7174 fi
7175
7176 else
7177
7178 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7179 if test "x$LINE" != x ; then
7180 eval "DEFAULT_$LINE"
7181 else
7182 no_cache=1
7183 fi
7184
7185 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7186
7187 fi
7188
7189
7190 eval "$ac_cv_use_tooltips"
7191 if test "$no_cache" != 1; then
7192 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7193 fi
7194
7195 if test "$wxUSE_TOOLTIPS" = yes; then
7196 echo "$ac_t""yes" 1>&6
7197 else
7198 echo "$ac_t""no" 1>&6
7199 fi
7200
7201
7202 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7203 echo "configure:7204: checking for --enable-splines" >&5
7204 no_cache=0
7205 # Check whether --enable-splines or --disable-splines was given.
7206 if test "${enable_splines+set}" = set; then
7207 enableval="$enable_splines"
7208
7209 if test "$enableval" = yes; then
7210 ac_cv_use_splines='wxUSE_SPLINES=yes'
7211 else
7212 ac_cv_use_splines='wxUSE_SPLINES=no'
7213 fi
7214
7215 else
7216
7217 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7218 if test "x$LINE" != x ; then
7219 eval "DEFAULT_$LINE"
7220 else
7221 no_cache=1
7222 fi
7223
7224 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7225
7226 fi
7227
7228
7229 eval "$ac_cv_use_splines"
7230 if test "$no_cache" != 1; then
7231 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7232 fi
7233
7234 if test "$wxUSE_SPLINES" = yes; then
7235 echo "$ac_t""yes" 1>&6
7236 else
7237 echo "$ac_t""no" 1>&6
7238 fi
7239
7240
7241 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7242 echo "configure:7243: checking for --enable-validators" >&5
7243 no_cache=0
7244 # Check whether --enable-validators or --disable-validators was given.
7245 if test "${enable_validators+set}" = set; then
7246 enableval="$enable_validators"
7247
7248 if test "$enableval" = yes; then
7249 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7250 else
7251 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7252 fi
7253
7254 else
7255
7256 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7257 if test "x$LINE" != x ; then
7258 eval "DEFAULT_$LINE"
7259 else
7260 no_cache=1
7261 fi
7262
7263 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7264
7265 fi
7266
7267
7268 eval "$ac_cv_use_validators"
7269 if test "$no_cache" != 1; then
7270 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7271 fi
7272
7273 if test "$wxUSE_VALIDATORS" = yes; then
7274 echo "$ac_t""yes" 1>&6
7275 else
7276 echo "$ac_t""no" 1>&6
7277 fi
7278
7279
7280 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7281 echo "configure:7282: checking for --enable-busyinfo" >&5
7282 no_cache=0
7283 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7284 if test "${enable_busyinfo+set}" = set; then
7285 enableval="$enable_busyinfo"
7286
7287 if test "$enableval" = yes; then
7288 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7289 else
7290 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7291 fi
7292
7293 else
7294
7295 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7296 if test "x$LINE" != x ; then
7297 eval "DEFAULT_$LINE"
7298 else
7299 no_cache=1
7300 fi
7301
7302 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7303
7304 fi
7305
7306
7307 eval "$ac_cv_use_busyinfo"
7308 if test "$no_cache" != 1; then
7309 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7310 fi
7311
7312 if test "$wxUSE_BUSYINFO" = yes; then
7313 echo "$ac_t""yes" 1>&6
7314 else
7315 echo "$ac_t""no" 1>&6
7316 fi
7317
7318
7319 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7320 echo "configure:7321: checking for --enable-joystick" >&5
7321 no_cache=0
7322 # Check whether --enable-joystick or --disable-joystick was given.
7323 if test "${enable_joystick+set}" = set; then
7324 enableval="$enable_joystick"
7325
7326 if test "$enableval" = yes; then
7327 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7328 else
7329 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7330 fi
7331
7332 else
7333
7334 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7335 if test "x$LINE" != x ; then
7336 eval "DEFAULT_$LINE"
7337 else
7338 no_cache=1
7339 fi
7340
7341 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7342
7343 fi
7344
7345
7346 eval "$ac_cv_use_joystick"
7347 if test "$no_cache" != 1; then
7348 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7349 fi
7350
7351 if test "$wxUSE_JOYSTICK" = yes; then
7352 echo "$ac_t""yes" 1>&6
7353 else
7354 echo "$ac_t""no" 1>&6
7355 fi
7356
7357
7358 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7359 echo "configure:7360: checking for --enable-metafile" >&5
7360 no_cache=0
7361 # Check whether --enable-metafile or --disable-metafile was given.
7362 if test "${enable_metafile+set}" = set; then
7363 enableval="$enable_metafile"
7364
7365 if test "$enableval" = yes; then
7366 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7367 else
7368 ac_cv_use_metafile='wxUSE_METAFILE=no'
7369 fi
7370
7371 else
7372
7373 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7374 if test "x$LINE" != x ; then
7375 eval "DEFAULT_$LINE"
7376 else
7377 no_cache=1
7378 fi
7379
7380 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7381
7382 fi
7383
7384
7385 eval "$ac_cv_use_metafile"
7386 if test "$no_cache" != 1; then
7387 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7388 fi
7389
7390 if test "$wxUSE_METAFILE" = yes; then
7391 echo "$ac_t""yes" 1>&6
7392 else
7393 echo "$ac_t""no" 1>&6
7394 fi
7395
7396
7397 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7398 echo "configure:7399: checking for --enable-dragimage" >&5
7399 no_cache=0
7400 # Check whether --enable-dragimage or --disable-dragimage was given.
7401 if test "${enable_dragimage+set}" = set; then
7402 enableval="$enable_dragimage"
7403
7404 if test "$enableval" = yes; then
7405 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7406 else
7407 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7408 fi
7409
7410 else
7411
7412 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7413 if test "x$LINE" != x ; then
7414 eval "DEFAULT_$LINE"
7415 else
7416 no_cache=1
7417 fi
7418
7419 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7420
7421 fi
7422
7423
7424 eval "$ac_cv_use_dragimage"
7425 if test "$no_cache" != 1; then
7426 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7427 fi
7428
7429 if test "$wxUSE_DRAGIMAGE" = yes; then
7430 echo "$ac_t""yes" 1>&6
7431 else
7432 echo "$ac_t""no" 1>&6
7433 fi
7434
7435
7436
7437
7438 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7439 echo "configure:7440: checking for --enable-image" >&5
7440 no_cache=0
7441 # Check whether --enable-image or --disable-image was given.
7442 if test "${enable_image+set}" = set; then
7443 enableval="$enable_image"
7444
7445 if test "$enableval" = yes; then
7446 ac_cv_use_image='wxUSE_IMAGE=yes'
7447 else
7448 ac_cv_use_image='wxUSE_IMAGE=no'
7449 fi
7450
7451 else
7452
7453 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7454 if test "x$LINE" != x ; then
7455 eval "DEFAULT_$LINE"
7456 else
7457 no_cache=1
7458 fi
7459
7460 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7461
7462 fi
7463
7464
7465 eval "$ac_cv_use_image"
7466 if test "$no_cache" != 1; then
7467 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7468 fi
7469
7470 if test "$wxUSE_IMAGE" = yes; then
7471 echo "$ac_t""yes" 1>&6
7472 else
7473 echo "$ac_t""no" 1>&6
7474 fi
7475
7476
7477 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7478 echo "configure:7479: checking for --enable-gif" >&5
7479 no_cache=0
7480 # Check whether --enable-gif or --disable-gif was given.
7481 if test "${enable_gif+set}" = set; then
7482 enableval="$enable_gif"
7483
7484 if test "$enableval" = yes; then
7485 ac_cv_use_gif='wxUSE_GIF=yes'
7486 else
7487 ac_cv_use_gif='wxUSE_GIF=no'
7488 fi
7489
7490 else
7491
7492 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7493 if test "x$LINE" != x ; then
7494 eval "DEFAULT_$LINE"
7495 else
7496 no_cache=1
7497 fi
7498
7499 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7500
7501 fi
7502
7503
7504 eval "$ac_cv_use_gif"
7505 if test "$no_cache" != 1; then
7506 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7507 fi
7508
7509 if test "$wxUSE_GIF" = yes; then
7510 echo "$ac_t""yes" 1>&6
7511 else
7512 echo "$ac_t""no" 1>&6
7513 fi
7514
7515
7516 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7517 echo "configure:7518: checking for --enable-pcx" >&5
7518 no_cache=0
7519 # Check whether --enable-pcx or --disable-pcx was given.
7520 if test "${enable_pcx+set}" = set; then
7521 enableval="$enable_pcx"
7522
7523 if test "$enableval" = yes; then
7524 ac_cv_use_pcx='wxUSE_PCX=yes'
7525 else
7526 ac_cv_use_pcx='wxUSE_PCX=no'
7527 fi
7528
7529 else
7530
7531 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7532 if test "x$LINE" != x ; then
7533 eval "DEFAULT_$LINE"
7534 else
7535 no_cache=1
7536 fi
7537
7538 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7539
7540 fi
7541
7542
7543 eval "$ac_cv_use_pcx"
7544 if test "$no_cache" != 1; then
7545 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7546 fi
7547
7548 if test "$wxUSE_PCX" = yes; then
7549 echo "$ac_t""yes" 1>&6
7550 else
7551 echo "$ac_t""no" 1>&6
7552 fi
7553
7554
7555 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7556 echo "configure:7557: checking for --enable-pnm" >&5
7557 no_cache=0
7558 # Check whether --enable-pnm or --disable-pnm was given.
7559 if test "${enable_pnm+set}" = set; then
7560 enableval="$enable_pnm"
7561
7562 if test "$enableval" = yes; then
7563 ac_cv_use_pnm='wxUSE_PNM=yes'
7564 else
7565 ac_cv_use_pnm='wxUSE_PNM=no'
7566 fi
7567
7568 else
7569
7570 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7571 if test "x$LINE" != x ; then
7572 eval "DEFAULT_$LINE"
7573 else
7574 no_cache=1
7575 fi
7576
7577 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7578
7579 fi
7580
7581
7582 eval "$ac_cv_use_pnm"
7583 if test "$no_cache" != 1; then
7584 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7585 fi
7586
7587 if test "$wxUSE_PNM" = yes; then
7588 echo "$ac_t""yes" 1>&6
7589 else
7590 echo "$ac_t""no" 1>&6
7591 fi
7592
7593
7594 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7595 echo "configure:7596: checking for --enable-pnm" >&5
7596 no_cache=0
7597 # Check whether --enable-pnm or --disable-pnm was given.
7598 if test "${enable_pnm+set}" = set; then
7599 enableval="$enable_pnm"
7600
7601 if test "$enableval" = yes; then
7602 ac_cv_use_pnm='wxUSE_XPM=yes'
7603 else
7604 ac_cv_use_pnm='wxUSE_XPM=no'
7605 fi
7606
7607 else
7608
7609 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7610 if test "x$LINE" != x ; then
7611 eval "DEFAULT_$LINE"
7612 else
7613 no_cache=1
7614 fi
7615
7616 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7617
7618 fi
7619
7620
7621 eval "$ac_cv_use_pnm"
7622 if test "$no_cache" != 1; then
7623 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7624 fi
7625
7626 if test "$wxUSE_XPM" = yes; then
7627 echo "$ac_t""yes" 1>&6
7628 else
7629 echo "$ac_t""no" 1>&6
7630 fi
7631
7632
7633 fi
7634
7635
7636 echo "saving argument cache $wx_arg_cache_file"
7637 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7638
7639
7640
7641 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7642 echo "configure:7643: checking for toolkit" >&5
7643
7644 if test "$wxUSE_GUI" = "yes"; then
7645
7646 if test "$USE_BEOS" = 1; then
7647 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7648 fi
7649
7650 if test "$TOOLKIT_GIVEN" = 1; then
7651 for toolkit in `echo $ALL_TOOLKITS`; do
7652 var=wxUSE_$toolkit
7653 eval "value=\$${var}"
7654 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7655 done
7656 else
7657 for toolkit in `echo $ALL_TOOLKITS`; do
7658 if test "$has_toolkit_in_cache" != 1; then
7659 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7660 else
7661 var=DEFAULT_wxUSE_$toolkit
7662 fi
7663 eval "wxUSE_$toolkit=\$${var}"
7664 done
7665 fi
7666
7667 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
7668
7669 case "${host}" in
7670 *-pc-os2_emx )
7671 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7672 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7673 LEX_STEM="lexyy"
7674 ;;
7675 *)
7676 PATH_IFS=':'
7677 LEX_STEM="lex.yy"
7678 ;;
7679 esac
7680
7681 case "$NUM_TOOLKITS" in
7682 1)
7683 ;;
7684 0)
7685 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7686 ;;
7687 *)
7688 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7689 esac
7690
7691 for toolkit in `echo $ALL_TOOLKITS`; do
7692 var=wxUSE_$toolkit
7693 eval "value=\$${var}"
7694 if test "x$value" != x; then
7695 cache_var=CACHE_$toolkit
7696 eval "cache=\$${cache_var}"
7697 if test "$cache" = 1; then
7698 echo "$var=$value" >> ${wx_arg_cache_file}
7699 fi
7700 if test "$value" = 1; then
7701 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7702 echo "$ac_t""$toolkit_echo" 1>&6
7703 fi
7704 fi
7705 done
7706
7707 else
7708 PATH_IFS=':'
7709 echo "$ac_t""base only" 1>&6
7710 fi
7711
7712
7713 cat > confcache <<\EOF
7714 # This file is a shell script that caches the results of configure
7715 # tests run on this system so they can be shared between configure
7716 # scripts and configure runs. It is not useful on other systems.
7717 # If it contains results you don't want to keep, you may remove or edit it.
7718 #
7719 # By default, configure uses ./config.cache as the cache file,
7720 # creating it if it does not exist already. You can give configure
7721 # the --cache-file=FILE option to use a different cache file; that is
7722 # what configure does when it calls configure scripts in
7723 # subdirectories, so they share the cache.
7724 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7725 # config.status only pays attention to the cache file if you give it the
7726 # --recheck option to rerun configure.
7727 #
7728 EOF
7729 # The following way of writing the cache mishandles newlines in values,
7730 # but we know of no workaround that is simple, portable, and efficient.
7731 # So, don't put newlines in cache variables' values.
7732 # Ultrix sh set writes to stderr and can't be redirected directly,
7733 # and sets the high bit in the cache file unless we assign to the vars.
7734 (set) 2>&1 |
7735 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7736 *ac_space=\ *)
7737 # `set' does not quote correctly, so add quotes (double-quote substitution
7738 # turns \\\\ into \\, and sed turns \\ into \).
7739 sed -n \
7740 -e "s/'/'\\\\''/g" \
7741 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7742 ;;
7743 *)
7744 # `set' quotes correctly as required by POSIX, so do not add quotes.
7745 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7746 ;;
7747 esac >> confcache
7748 if cmp -s $cache_file confcache; then
7749 :
7750 else
7751 if test -w $cache_file; then
7752 echo "updating cache $cache_file"
7753 cat confcache > $cache_file
7754 else
7755 echo "not updating unwritable cache $cache_file"
7756 fi
7757 fi
7758 rm -f confcache
7759
7760
7761 if test "$build" != "$host" ; then
7762 CC=$host_alias-gcc
7763 CXX=$host_alias-c++
7764 AR=$host_alias-ar
7765 RANLIB=$host_alias-ranlib
7766 DLLTOOL=$host_alias-dlltool
7767 RESCOMP=$host_alias-windres
7768 LD=$host_alias-ld
7769 NM=$host_alias-nm
7770 STRIP=$host_alias-strip
7771 fi
7772
7773 # Extract the first word of "gcc", so it can be a program name with args.
7774 set dummy gcc; ac_word=$2
7775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7776 echo "configure:7777: checking for $ac_word" >&5
7777 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7778 echo $ac_n "(cached) $ac_c" 1>&6
7779 else
7780 if test -n "$CC"; then
7781 ac_cv_prog_CC="$CC" # Let the user override the test.
7782 else
7783 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7784 ac_dummy="$PATH"
7785 for ac_dir in $ac_dummy; do
7786 test -z "$ac_dir" && ac_dir=.
7787 if test -f $ac_dir/$ac_word; then
7788 ac_cv_prog_CC="gcc"
7789 break
7790 fi
7791 done
7792 IFS="$ac_save_ifs"
7793 fi
7794 fi
7795 CC="$ac_cv_prog_CC"
7796 if test -n "$CC"; then
7797 echo "$ac_t""$CC" 1>&6
7798 else
7799 echo "$ac_t""no" 1>&6
7800 fi
7801
7802 if test -z "$CC"; then
7803 # Extract the first word of "cc", so it can be a program name with args.
7804 set dummy cc; ac_word=$2
7805 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7806 echo "configure:7807: checking for $ac_word" >&5
7807 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7808 echo $ac_n "(cached) $ac_c" 1>&6
7809 else
7810 if test -n "$CC"; then
7811 ac_cv_prog_CC="$CC" # Let the user override the test.
7812 else
7813 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7814 ac_prog_rejected=no
7815 ac_dummy="$PATH"
7816 for ac_dir in $ac_dummy; do
7817 test -z "$ac_dir" && ac_dir=.
7818 if test -f $ac_dir/$ac_word; then
7819 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7820 ac_prog_rejected=yes
7821 continue
7822 fi
7823 ac_cv_prog_CC="cc"
7824 break
7825 fi
7826 done
7827 IFS="$ac_save_ifs"
7828 if test $ac_prog_rejected = yes; then
7829 # We found a bogon in the path, so make sure we never use it.
7830 set dummy $ac_cv_prog_CC
7831 shift
7832 if test $# -gt 0; then
7833 # We chose a different compiler from the bogus one.
7834 # However, it has the same basename, so the bogon will be chosen
7835 # first if we set CC to just the basename; use the full file name.
7836 shift
7837 set dummy "$ac_dir/$ac_word" "$@"
7838 shift
7839 ac_cv_prog_CC="$@"
7840 fi
7841 fi
7842 fi
7843 fi
7844 CC="$ac_cv_prog_CC"
7845 if test -n "$CC"; then
7846 echo "$ac_t""$CC" 1>&6
7847 else
7848 echo "$ac_t""no" 1>&6
7849 fi
7850
7851 if test -z "$CC"; then
7852 case "`uname -s`" in
7853 *win32* | *WIN32*)
7854 # Extract the first word of "cl", so it can be a program name with args.
7855 set dummy cl; ac_word=$2
7856 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7857 echo "configure:7858: checking for $ac_word" >&5
7858 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7859 echo $ac_n "(cached) $ac_c" 1>&6
7860 else
7861 if test -n "$CC"; then
7862 ac_cv_prog_CC="$CC" # Let the user override the test.
7863 else
7864 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7865 ac_dummy="$PATH"
7866 for ac_dir in $ac_dummy; do
7867 test -z "$ac_dir" && ac_dir=.
7868 if test -f $ac_dir/$ac_word; then
7869 ac_cv_prog_CC="cl"
7870 break
7871 fi
7872 done
7873 IFS="$ac_save_ifs"
7874 fi
7875 fi
7876 CC="$ac_cv_prog_CC"
7877 if test -n "$CC"; then
7878 echo "$ac_t""$CC" 1>&6
7879 else
7880 echo "$ac_t""no" 1>&6
7881 fi
7882 ;;
7883 esac
7884 fi
7885 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7886 fi
7887
7888 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7889 echo "configure:7890: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7890
7891 ac_ext=c
7892 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7893 ac_cpp='$CPP $CPPFLAGS'
7894 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7895 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7896 cross_compiling=$ac_cv_prog_cc_cross
7897
7898 cat > conftest.$ac_ext << EOF
7899
7900 #line 7901 "configure"
7901 #include "confdefs.h"
7902
7903 main(){return(0);}
7904 EOF
7905 if { (eval echo configure:7906: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7906 ac_cv_prog_cc_works=yes
7907 # If we can't run a trivial program, we are probably using a cross compiler.
7908 if (./conftest; exit) 2>/dev/null; then
7909 ac_cv_prog_cc_cross=no
7910 else
7911 ac_cv_prog_cc_cross=yes
7912 fi
7913 else
7914 echo "configure: failed program was:" >&5
7915 cat conftest.$ac_ext >&5
7916 ac_cv_prog_cc_works=no
7917 fi
7918 rm -fr conftest*
7919 ac_ext=c
7920 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7921 ac_cpp='$CPP $CPPFLAGS'
7922 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7923 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7924 cross_compiling=$ac_cv_prog_cc_cross
7925
7926 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7927 if test $ac_cv_prog_cc_works = no; then
7928 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7929 fi
7930 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7931 echo "configure:7932: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
7932 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7933 cross_compiling=$ac_cv_prog_cc_cross
7934
7935 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7936 echo "configure:7937: checking whether we are using GNU C" >&5
7937 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7938 echo $ac_n "(cached) $ac_c" 1>&6
7939 else
7940 cat > conftest.c <<EOF
7941 #ifdef __GNUC__
7942 yes;
7943 #endif
7944 EOF
7945 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7946 ac_cv_prog_gcc=yes
7947 else
7948 ac_cv_prog_gcc=no
7949 fi
7950 fi
7951
7952 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
7953
7954 if test $ac_cv_prog_gcc = yes; then
7955 GCC=yes
7956 else
7957 GCC=
7958 fi
7959
7960 ac_test_CFLAGS="${CFLAGS+set}"
7961 ac_save_CFLAGS="$CFLAGS"
7962 CFLAGS=
7963 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7964 echo "configure:7965: checking whether ${CC-cc} accepts -g" >&5
7965 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7966 echo $ac_n "(cached) $ac_c" 1>&6
7967 else
7968 echo 'void f(){}' > conftest.c
7969 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
7970 ac_cv_prog_cc_g=yes
7971 else
7972 ac_cv_prog_cc_g=no
7973 fi
7974 rm -f conftest*
7975
7976 fi
7977
7978 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
7979 if test "$ac_test_CFLAGS" = set; then
7980 CFLAGS="$ac_save_CFLAGS"
7981 elif test $ac_cv_prog_cc_g = yes; then
7982 if test "$GCC" = yes; then
7983 CFLAGS="-g -O2"
7984 else
7985 CFLAGS="-g"
7986 fi
7987 else
7988 if test "$GCC" = yes; then
7989 CFLAGS="-O2"
7990 else
7991 CFLAGS=
7992 fi
7993 fi
7994
7995
7996 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7997
7998 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7999 echo "configure:8000: checking how to run the C preprocessor" >&5
8000 # On Suns, sometimes $CPP names a directory.
8001 if test -n "$CPP" && test -d "$CPP"; then
8002 CPP=
8003 fi
8004 if test -z "$CPP"; then
8005 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
8006 echo $ac_n "(cached) $ac_c" 1>&6
8007 else
8008 # This must be in double quotes, not single quotes, because CPP may get
8009 # substituted into the Makefile and "${CC-cc}" will confuse make.
8010 CPP="${CC-cc} -E"
8011 # On the NeXT, cc -E runs the code through the compiler's parser,
8012 # not just through cpp.
8013 cat > conftest.$ac_ext <<EOF
8014 #line 8015 "configure"
8015 #include "confdefs.h"
8016 #include <assert.h>
8017 Syntax Error
8018 EOF
8019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8020 { (eval echo configure:8021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8021 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8022 if test -z "$ac_err"; then
8023 :
8024 else
8025 echo "$ac_err" >&5
8026 echo "configure: failed program was:" >&5
8027 cat conftest.$ac_ext >&5
8028 rm -rf conftest*
8029 CPP="${CC-cc} -E -traditional-cpp"
8030 cat > conftest.$ac_ext <<EOF
8031 #line 8032 "configure"
8032 #include "confdefs.h"
8033 #include <assert.h>
8034 Syntax Error
8035 EOF
8036 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8037 { (eval echo configure:8038: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8038 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8039 if test -z "$ac_err"; then
8040 :
8041 else
8042 echo "$ac_err" >&5
8043 echo "configure: failed program was:" >&5
8044 cat conftest.$ac_ext >&5
8045 rm -rf conftest*
8046 CPP="${CC-cc} -nologo -E"
8047 cat > conftest.$ac_ext <<EOF
8048 #line 8049 "configure"
8049 #include "confdefs.h"
8050 #include <assert.h>
8051 Syntax Error
8052 EOF
8053 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8054 { (eval echo configure:8055: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8055 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8056 if test -z "$ac_err"; then
8057 :
8058 else
8059 echo "$ac_err" >&5
8060 echo "configure: failed program was:" >&5
8061 cat conftest.$ac_ext >&5
8062 rm -rf conftest*
8063 CPP=/lib/cpp
8064 fi
8065 rm -f conftest*
8066 fi
8067 rm -f conftest*
8068 fi
8069 rm -f conftest*
8070 ac_cv_prog_CPP="$CPP"
8071 fi
8072 CPP="$ac_cv_prog_CPP"
8073 else
8074 ac_cv_prog_CPP="$CPP"
8075 fi
8076 echo "$ac_t""$CPP" 1>&6
8077
8078
8079 if test $ac_cv_prog_gcc = yes; then
8080 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8081 echo "configure:8082: checking whether ${CC-cc} needs -traditional" >&5
8082 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8083 echo $ac_n "(cached) $ac_c" 1>&6
8084 else
8085 ac_pattern="Autoconf.*'x'"
8086 cat > conftest.$ac_ext <<EOF
8087 #line 8088 "configure"
8088 #include "confdefs.h"
8089 #include <sgtty.h>
8090 Autoconf TIOCGETP
8091 EOF
8092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8093 egrep "$ac_pattern" >/dev/null 2>&1; then
8094 rm -rf conftest*
8095 ac_cv_prog_gcc_traditional=yes
8096 else
8097 rm -rf conftest*
8098 ac_cv_prog_gcc_traditional=no
8099 fi
8100 rm -f conftest*
8101
8102
8103 if test $ac_cv_prog_gcc_traditional = no; then
8104 cat > conftest.$ac_ext <<EOF
8105 #line 8106 "configure"
8106 #include "confdefs.h"
8107 #include <termio.h>
8108 Autoconf TCGETA
8109 EOF
8110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8111 egrep "$ac_pattern" >/dev/null 2>&1; then
8112 rm -rf conftest*
8113 ac_cv_prog_gcc_traditional=yes
8114 fi
8115 rm -f conftest*
8116
8117 fi
8118 fi
8119
8120 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8121 if test $ac_cv_prog_gcc_traditional = yes; then
8122 CC="$CC -traditional"
8123 fi
8124 fi
8125
8126
8127
8128 ac_ext=C
8129 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8130 ac_cpp='$CXXCPP $CPPFLAGS'
8131 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8132 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8133 cross_compiling=$ac_cv_prog_cxx_cross
8134
8135
8136 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8137 do
8138 # Extract the first word of "$ac_prog", so it can be a program name with args.
8139 set dummy $ac_prog; ac_word=$2
8140 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8141 echo "configure:8142: checking for $ac_word" >&5
8142 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8143 echo $ac_n "(cached) $ac_c" 1>&6
8144 else
8145 if test -n "$CXX"; then
8146 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8147 else
8148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8149 ac_dummy="$PATH"
8150 for ac_dir in $ac_dummy; do
8151 test -z "$ac_dir" && ac_dir=.
8152 if test -f $ac_dir/$ac_word; then
8153 ac_cv_prog_CXX="$ac_prog"
8154 break
8155 fi
8156 done
8157 IFS="$ac_save_ifs"
8158 fi
8159 fi
8160 CXX="$ac_cv_prog_CXX"
8161 if test -n "$CXX"; then
8162 echo "$ac_t""$CXX" 1>&6
8163 else
8164 echo "$ac_t""no" 1>&6
8165 fi
8166
8167 test -n "$CXX" && break
8168 done
8169 test -n "$CXX" || CXX="gcc"
8170
8171
8172 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8173 echo "configure:8174: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8174
8175 ac_ext=C
8176 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8177 ac_cpp='$CXXCPP $CPPFLAGS'
8178 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8179 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8180 cross_compiling=$ac_cv_prog_cxx_cross
8181
8182 cat > conftest.$ac_ext << EOF
8183
8184 #line 8185 "configure"
8185 #include "confdefs.h"
8186
8187 int main(){return(0);}
8188 EOF
8189 if { (eval echo configure:8190: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8190 ac_cv_prog_cxx_works=yes
8191 # If we can't run a trivial program, we are probably using a cross compiler.
8192 if (./conftest; exit) 2>/dev/null; then
8193 ac_cv_prog_cxx_cross=no
8194 else
8195 ac_cv_prog_cxx_cross=yes
8196 fi
8197 else
8198 echo "configure: failed program was:" >&5
8199 cat conftest.$ac_ext >&5
8200 ac_cv_prog_cxx_works=no
8201 fi
8202 rm -fr conftest*
8203 ac_ext=C
8204 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8205 ac_cpp='$CXXCPP $CPPFLAGS'
8206 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8207 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8208 cross_compiling=$ac_cv_prog_cxx_cross
8209
8210 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8211 if test $ac_cv_prog_cxx_works = no; then
8212 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8213 fi
8214 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8215 echo "configure:8216: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8216 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8217 cross_compiling=$ac_cv_prog_cxx_cross
8218
8219 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8220 echo "configure:8221: checking whether we are using GNU C++" >&5
8221 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8222 echo $ac_n "(cached) $ac_c" 1>&6
8223 else
8224 cat > conftest.C <<EOF
8225 #ifdef __GNUC__
8226 yes;
8227 #endif
8228 EOF
8229 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8230: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8230 ac_cv_prog_gxx=yes
8231 else
8232 ac_cv_prog_gxx=no
8233 fi
8234 fi
8235
8236 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8237
8238 if test $ac_cv_prog_gxx = yes; then
8239 GXX=yes
8240 else
8241 GXX=
8242 fi
8243
8244 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8245 ac_save_CXXFLAGS="$CXXFLAGS"
8246 CXXFLAGS=
8247 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8248 echo "configure:8249: checking whether ${CXX-g++} accepts -g" >&5
8249 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8250 echo $ac_n "(cached) $ac_c" 1>&6
8251 else
8252 echo 'void f(){}' > conftest.cc
8253 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8254 ac_cv_prog_cxx_g=yes
8255 else
8256 ac_cv_prog_cxx_g=no
8257 fi
8258 rm -f conftest*
8259
8260 fi
8261
8262 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8263 if test "$ac_test_CXXFLAGS" = set; then
8264 CXXFLAGS="$ac_save_CXXFLAGS"
8265 elif test $ac_cv_prog_cxx_g = yes; then
8266 if test "$GXX" = yes; then
8267 CXXFLAGS="-g -O2"
8268 else
8269 CXXFLAGS="-g"
8270 fi
8271 else
8272 if test "$GXX" = yes; then
8273 CXXFLAGS="-O2"
8274 else
8275 CXXFLAGS=
8276 fi
8277 fi
8278
8279
8280 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
8281 echo "configure:8282: checking how to run the C++ preprocessor" >&5
8282 if test -z "$CXXCPP"; then
8283 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
8284 echo $ac_n "(cached) $ac_c" 1>&6
8285 else
8286 ac_ext=C
8287 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8288 ac_cpp='$CXXCPP $CPPFLAGS'
8289 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8290 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8291 cross_compiling=$ac_cv_prog_cxx_cross
8292 CXXCPP="${CXX-g++} -E"
8293 cat > conftest.$ac_ext <<EOF
8294 #line 8295 "configure"
8295 #include "confdefs.h"
8296 #include <stdlib.h>
8297 EOF
8298 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8299 { (eval echo configure:8300: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8300 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8301 if test -z "$ac_err"; then
8302 :
8303 else
8304 echo "$ac_err" >&5
8305 echo "configure: failed program was:" >&5
8306 cat conftest.$ac_ext >&5
8307 rm -rf conftest*
8308 CXXCPP=/lib/cpp
8309 fi
8310 rm -f conftest*
8311 ac_cv_prog_CXXCPP="$CXXCPP"
8312 ac_ext=C
8313 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8314 ac_cpp='$CXXCPP $CPPFLAGS'
8315 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8316 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8317 cross_compiling=$ac_cv_prog_cxx_cross
8318 fi
8319 fi
8320 CXXCPP="$ac_cv_prog_CXXCPP"
8321 echo "$ac_t""$CXXCPP" 1>&6
8322
8323
8324 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8325
8326 ac_ext=c
8327 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8328 ac_cpp='$CPP $CPPFLAGS'
8329 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8330 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8331 cross_compiling=$ac_cv_prog_cc_cross
8332
8333
8334 # Extract the first word of "ranlib", so it can be a program name with args.
8335 set dummy ranlib; ac_word=$2
8336 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8337 echo "configure:8338: checking for $ac_word" >&5
8338 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8339 echo $ac_n "(cached) $ac_c" 1>&6
8340 else
8341 if test -n "$RANLIB"; then
8342 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8343 else
8344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8345 ac_dummy="$PATH"
8346 for ac_dir in $ac_dummy; do
8347 test -z "$ac_dir" && ac_dir=.
8348 if test -f $ac_dir/$ac_word; then
8349 ac_cv_prog_RANLIB="ranlib"
8350 break
8351 fi
8352 done
8353 IFS="$ac_save_ifs"
8354 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8355 fi
8356 fi
8357 RANLIB="$ac_cv_prog_RANLIB"
8358 if test -n "$RANLIB"; then
8359 echo "$ac_t""$RANLIB" 1>&6
8360 else
8361 echo "$ac_t""no" 1>&6
8362 fi
8363
8364
8365 # Extract the first word of "ar", so it can be a program name with args.
8366 set dummy ar; ac_word=$2
8367 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8368 echo "configure:8369: checking for $ac_word" >&5
8369 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8370 echo $ac_n "(cached) $ac_c" 1>&6
8371 else
8372 if test -n "$AR"; then
8373 ac_cv_prog_AR="$AR" # Let the user override the test.
8374 else
8375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8376 ac_dummy="$PATH"
8377 for ac_dir in $ac_dummy; do
8378 test -z "$ac_dir" && ac_dir=.
8379 if test -f $ac_dir/$ac_word; then
8380 ac_cv_prog_AR="ar"
8381 break
8382 fi
8383 done
8384 IFS="$ac_save_ifs"
8385 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8386 fi
8387 fi
8388 AR="$ac_cv_prog_AR"
8389 if test -n "$AR"; then
8390 echo "$ac_t""$AR" 1>&6
8391 else
8392 echo "$ac_t""no" 1>&6
8393 fi
8394
8395
8396 # Find a good install program. We prefer a C program (faster),
8397 # so one script is as good as another. But avoid the broken or
8398 # incompatible versions:
8399 # SysV /etc/install, /usr/sbin/install
8400 # SunOS /usr/etc/install
8401 # IRIX /sbin/install
8402 # AIX /bin/install
8403 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8404 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8405 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8406 # ./install, which can be erroneously created by make from ./install.sh.
8407 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8408 echo "configure:8409: checking for a BSD compatible install" >&5
8409 if test -z "$INSTALL"; then
8410 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8411 echo $ac_n "(cached) $ac_c" 1>&6
8412 else
8413 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8414 for ac_dir in $PATH; do
8415 # Account for people who put trailing slashes in PATH elements.
8416 case "$ac_dir/" in
8417 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8418 *)
8419 # OSF1 and SCO ODT 3.0 have their own names for install.
8420 # Don't use installbsd from OSF since it installs stuff as root
8421 # by default.
8422 for ac_prog in ginstall scoinst install; do
8423 if test -f $ac_dir/$ac_prog; then
8424 if test $ac_prog = install &&
8425 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8426 # AIX install. It has an incompatible calling convention.
8427 :
8428 else
8429 ac_cv_path_install="$ac_dir/$ac_prog -c"
8430 break 2
8431 fi
8432 fi
8433 done
8434 ;;
8435 esac
8436 done
8437 IFS="$ac_save_IFS"
8438
8439 fi
8440 if test "${ac_cv_path_install+set}" = set; then
8441 INSTALL="$ac_cv_path_install"
8442 else
8443 # As a last resort, use the slow shell script. We don't cache a
8444 # path for INSTALL within a source directory, because that will
8445 # break other packages using the cache if that directory is
8446 # removed, or if the path is relative.
8447 INSTALL="$ac_install_sh"
8448 fi
8449 fi
8450 echo "$ac_t""$INSTALL" 1>&6
8451
8452 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8453 # It thinks the first close brace ends the variable substitution.
8454 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8455
8456 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8457
8458 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8459
8460
8461 # Extract the first word of "strip", so it can be a program name with args.
8462 set dummy strip; ac_word=$2
8463 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8464 echo "configure:8465: checking for $ac_word" >&5
8465 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8466 echo $ac_n "(cached) $ac_c" 1>&6
8467 else
8468 if test -n "$STRIP"; then
8469 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8470 else
8471 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8472 ac_dummy="$PATH"
8473 for ac_dir in $ac_dummy; do
8474 test -z "$ac_dir" && ac_dir=.
8475 if test -f $ac_dir/$ac_word; then
8476 ac_cv_prog_STRIP="strip"
8477 break
8478 fi
8479 done
8480 IFS="$ac_save_ifs"
8481 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8482 fi
8483 fi
8484 STRIP="$ac_cv_prog_STRIP"
8485 if test -n "$STRIP"; then
8486 echo "$ac_t""$STRIP" 1>&6
8487 else
8488 echo "$ac_t""no" 1>&6
8489 fi
8490
8491
8492 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8493 echo "configure:8494: checking make for VPATH support" >&5
8494 cat - << EOF > confMake
8495 check : file
8496 cp \$? \$@
8497 cp \$? final_file
8498 EOF
8499
8500 if test ! -d sub ; then
8501 mkdir sub
8502 fi
8503 echo dummy > sub/file
8504 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8505 RESULT=$?
8506 rm -f sub/file check final_file confMake
8507 rmdir sub
8508 if test "$RESULT" = 0; then
8509 echo "$ac_t""yes" 1>&6
8510 else
8511 echo "$ac_t""no" 1>&6
8512 { echo "configure: error:
8513 You need a make-utility that is able to use the variable
8514 VPATH correctly.
8515 If your version of make does not support VPATH correctly,
8516 please install GNU-make (possibly as gmake), and start
8517 configure with the following command:
8518 export MAKE=gmake; ./configure for sh-type shells
8519 setenv MAKE gmake; ./configure for csh-type shells
8520 Also please do remember to use gmake in this case every time
8521 you are trying to compile.
8522 " 1>&2; exit 1; }
8523 fi
8524
8525 for ac_prog in 'bison -y' byacc
8526 do
8527 # Extract the first word of "$ac_prog", so it can be a program name with args.
8528 set dummy $ac_prog; ac_word=$2
8529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8530 echo "configure:8531: checking for $ac_word" >&5
8531 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8532 echo $ac_n "(cached) $ac_c" 1>&6
8533 else
8534 if test -n "$YACC"; then
8535 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8536 else
8537 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8538 ac_dummy="$PATH"
8539 for ac_dir in $ac_dummy; do
8540 test -z "$ac_dir" && ac_dir=.
8541 if test -f $ac_dir/$ac_word; then
8542 ac_cv_prog_YACC="$ac_prog"
8543 break
8544 fi
8545 done
8546 IFS="$ac_save_ifs"
8547 fi
8548 fi
8549 YACC="$ac_cv_prog_YACC"
8550 if test -n "$YACC"; then
8551 echo "$ac_t""$YACC" 1>&6
8552 else
8553 echo "$ac_t""no" 1>&6
8554 fi
8555
8556 test -n "$YACC" && break
8557 done
8558 test -n "$YACC" || YACC="yacc"
8559
8560
8561 # Extract the first word of "flex", so it can be a program name with args.
8562 set dummy flex; ac_word=$2
8563 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8564 echo "configure:8565: checking for $ac_word" >&5
8565 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8566 echo $ac_n "(cached) $ac_c" 1>&6
8567 else
8568 if test -n "$LEX"; then
8569 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8570 else
8571 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8572 ac_dummy="$PATH"
8573 for ac_dir in $ac_dummy; do
8574 test -z "$ac_dir" && ac_dir=.
8575 if test -f $ac_dir/$ac_word; then
8576 ac_cv_prog_LEX="flex"
8577 break
8578 fi
8579 done
8580 IFS="$ac_save_ifs"
8581 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8582 fi
8583 fi
8584 LEX="$ac_cv_prog_LEX"
8585 if test -n "$LEX"; then
8586 echo "$ac_t""$LEX" 1>&6
8587 else
8588 echo "$ac_t""no" 1>&6
8589 fi
8590
8591 if test -z "$LEXLIB"
8592 then
8593 case "$LEX" in
8594 flex*) ac_lib=fl ;;
8595 *) ac_lib=l ;;
8596 esac
8597 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8598 echo "configure:8599: checking for yywrap in -l$ac_lib" >&5
8599 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8600 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8601 echo $ac_n "(cached) $ac_c" 1>&6
8602 else
8603 ac_save_LIBS="$LIBS"
8604 LIBS="-l$ac_lib $LIBS"
8605 cat > conftest.$ac_ext <<EOF
8606 #line 8607 "configure"
8607 #include "confdefs.h"
8608 /* Override any gcc2 internal prototype to avoid an error. */
8609 /* We use char because int might match the return type of a gcc2
8610 builtin and then its argument prototype would still apply. */
8611 char yywrap();
8612
8613 int main() {
8614 yywrap()
8615 ; return 0; }
8616 EOF
8617 if { (eval echo configure:8618: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8618 rm -rf conftest*
8619 eval "ac_cv_lib_$ac_lib_var=yes"
8620 else
8621 echo "configure: failed program was:" >&5
8622 cat conftest.$ac_ext >&5
8623 rm -rf conftest*
8624 eval "ac_cv_lib_$ac_lib_var=no"
8625 fi
8626 rm -f conftest*
8627 LIBS="$ac_save_LIBS"
8628
8629 fi
8630 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8631 echo "$ac_t""yes" 1>&6
8632 LEXLIB="-l$ac_lib"
8633 else
8634 echo "$ac_t""no" 1>&6
8635 fi
8636
8637 fi
8638
8639
8640 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8641 echo "configure:8642: checking whether ln -s works" >&5
8642 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8643 echo $ac_n "(cached) $ac_c" 1>&6
8644 else
8645 rm -f conftestdata
8646 if ln -s X conftestdata 2>/dev/null
8647 then
8648 rm -f conftestdata
8649 ac_cv_prog_LN_S="ln -s"
8650 else
8651 ac_cv_prog_LN_S=ln
8652 fi
8653 fi
8654 LN_S="$ac_cv_prog_LN_S"
8655 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8656 echo "$ac_t""yes" 1>&6
8657 else
8658 echo "$ac_t""no" 1>&6
8659 fi
8660
8661
8662
8663 SEARCH_INCLUDE="\
8664 /usr/local/include \
8665 \
8666 /usr/Motif-1.2/include \
8667 /usr/Motif-2.1/include \
8668 \
8669 /usr/include/Motif1.2 \
8670 /opt/xpm/include/X11 \
8671 /opt/GBxpm/include/ \
8672 /opt/GBxpm/X11/include/ \
8673 \
8674 /usr/Motif1.2/include \
8675 /usr/dt/include \
8676 /usr/openwin/include \
8677 \
8678 /usr/include/Xm \
8679 \
8680 /usr/X11R6/include \
8681 /usr/X11R6.4/include \
8682 /usr/X11R5/include \
8683 /usr/X11R4/include \
8684 \
8685 /usr/include/X11R6 \
8686 /usr/include/X11R5 \
8687 /usr/include/X11R4 \
8688 \
8689 /usr/local/X11R6/include \
8690 /usr/local/X11R5/include \
8691 /usr/local/X11R4/include \
8692 \
8693 /usr/local/include/X11R6 \
8694 /usr/local/include/X11R5 \
8695 /usr/local/include/X11R4 \
8696 \
8697 /usr/X11/include \
8698 /usr/include/X11 \
8699 /usr/local/X11/include \
8700 /usr/local/include/X11 \
8701 \
8702 /usr/X386/include \
8703 /usr/x386/include \
8704 /usr/XFree86/include/X11 \
8705 \
8706 X:/XFree86/include \
8707 X:/XFree86/include/X11 \
8708 \
8709 /usr/include/gtk \
8710 /usr/local/include/gtk \
8711 /usr/include/glib \
8712 /usr/local/include/glib \
8713 \
8714 /usr/include/qt \
8715 /usr/local/include/qt \
8716 \
8717 /usr/include/windows \
8718 /usr/include/wine \
8719 /usr/local/include/wine \
8720 \
8721 /usr/unsupported/include \
8722 /usr/athena/include \
8723 /usr/local/x11r5/include \
8724 /usr/lpp/Xamples/include \
8725 \
8726 /usr/openwin/share/include \
8727 \
8728 /usr/include"
8729
8730 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8731
8732
8733 cat > confcache <<\EOF
8734 # This file is a shell script that caches the results of configure
8735 # tests run on this system so they can be shared between configure
8736 # scripts and configure runs. It is not useful on other systems.
8737 # If it contains results you don't want to keep, you may remove or edit it.
8738 #
8739 # By default, configure uses ./config.cache as the cache file,
8740 # creating it if it does not exist already. You can give configure
8741 # the --cache-file=FILE option to use a different cache file; that is
8742 # what configure does when it calls configure scripts in
8743 # subdirectories, so they share the cache.
8744 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8745 # config.status only pays attention to the cache file if you give it the
8746 # --recheck option to rerun configure.
8747 #
8748 EOF
8749 # The following way of writing the cache mishandles newlines in values,
8750 # but we know of no workaround that is simple, portable, and efficient.
8751 # So, don't put newlines in cache variables' values.
8752 # Ultrix sh set writes to stderr and can't be redirected directly,
8753 # and sets the high bit in the cache file unless we assign to the vars.
8754 (set) 2>&1 |
8755 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8756 *ac_space=\ *)
8757 # `set' does not quote correctly, so add quotes (double-quote substitution
8758 # turns \\\\ into \\, and sed turns \\ into \).
8759 sed -n \
8760 -e "s/'/'\\\\''/g" \
8761 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8762 ;;
8763 *)
8764 # `set' quotes correctly as required by POSIX, so do not add quotes.
8765 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8766 ;;
8767 esac >> confcache
8768 if cmp -s $cache_file confcache; then
8769 :
8770 else
8771 if test -w $cache_file; then
8772 echo "updating cache $cache_file"
8773 cat confcache > $cache_file
8774 else
8775 echo "not updating unwritable cache $cache_file"
8776 fi
8777 fi
8778 rm -f confcache
8779
8780
8781
8782 AFMINSTALL=
8783
8784 if test "$wxUSE_GUI" = "yes"; then
8785 USE_GUI=1
8786
8787 TOOLKIT=
8788 TOOLKIT_INCLUDE=
8789
8790 GUI_TK_LIBRARY=
8791 GUI_TK_LINK=
8792
8793 WXGTK12=
8794 WXGTK127=
8795 WXGTK20=
8796
8797 WXWINE=
8798
8799 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8800 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8801 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
8802 echo "configure:8803: checking for windows.h" >&5
8803 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8804 echo $ac_n "(cached) $ac_c" 1>&6
8805 else
8806 cat > conftest.$ac_ext <<EOF
8807 #line 8808 "configure"
8808 #include "confdefs.h"
8809 #include <windows.h>
8810 EOF
8811 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8812 { (eval echo configure:8813: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8813 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8814 if test -z "$ac_err"; then
8815 rm -rf conftest*
8816 eval "ac_cv_header_$ac_safe=yes"
8817 else
8818 echo "$ac_err" >&5
8819 echo "configure: failed program was:" >&5
8820 cat conftest.$ac_ext >&5
8821 rm -rf conftest*
8822 eval "ac_cv_header_$ac_safe=no"
8823 fi
8824 rm -f conftest*
8825 fi
8826 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8827 echo "$ac_t""yes" 1>&6
8828 :
8829 else
8830 echo "$ac_t""no" 1>&6
8831
8832 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8833
8834 fi
8835
8836
8837 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8838
8839 CXXFLAGS="${CXXFLAGS} -DWINVER=0x0400"
8840
8841 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -ladvapi32 -lwsock32"
8842
8843 if test "$wxUSE_ODBC" = "yes" ; then
8844 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8845 fi
8846
8847 if test "$wxUSE_MINGW" = 1; then
8848 LDFLAGS="$LDFLAGS -mwindows"
8849 fi
8850
8851 TOOLKIT=MSW
8852 GUIDIST=MSW_DIST
8853
8854 RCINCSWITCH="--include-dir"
8855 RCDEFSWITCH="--define"
8856 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8857 RCINPUTSWITCH="-i"
8858 RCOUTPUTSWITCH="-o"
8859 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
8860
8861 RESPROGRAM="\$(RES_PROGRAM)"
8862 fi
8863
8864 if test "$wxUSE_GTK" = 1; then
8865 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
8866 echo "configure:8867: checking for GTK+ version" >&5
8867
8868 gtk_version_cached=1
8869 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
8870 echo $ac_n "(cached) $ac_c" 1>&6
8871 else
8872
8873 gtk_version_cached=0
8874 echo "$ac_t""""" 1>&6
8875
8876 wx_cv_lib_gtk=
8877 if test "x$wxUSE_GTK2" = "xyes"; then
8878 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
8879 if test "${with_gtk_prefix+set}" = set; then
8880 withval="$with_gtk_prefix"
8881 gtk_config_prefix="$withval"
8882 else
8883 gtk_config_prefix=""
8884 fi
8885
8886 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8887 if test "${with_gtk_exec_prefix+set}" = set; then
8888 withval="$with_gtk_exec_prefix"
8889 gtk_config_exec_prefix="$withval"
8890 else
8891 gtk_config_exec_prefix=""
8892 fi
8893
8894 # Check whether --enable-gtktest or --disable-gtktest was given.
8895 if test "${enable_gtktest+set}" = set; then
8896 enableval="$enable_gtktest"
8897 :
8898 else
8899 enable_gtktest=yes
8900 fi
8901
8902
8903 for module in .
8904 do
8905 case "$module" in
8906 gthread)
8907 gtk_config_args="$gtk_config_args gthread"
8908 ;;
8909 esac
8910 done
8911
8912 if test x$gtk_config_exec_prefix != x ; then
8913 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8914 if test x${GTK_CONFIG_2_0+set} != xset ; then
8915 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8916 fi
8917 fi
8918 if test x$gtk_config_prefix != x ; then
8919 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8920 if test x${GTK_CONFIG_2_0+set} != xset ; then
8921 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8922 fi
8923 fi
8924
8925 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8926 set dummy gtk-config-2.0; ac_word=$2
8927 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8928 echo "configure:8929: checking for $ac_word" >&5
8929 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8930 echo $ac_n "(cached) $ac_c" 1>&6
8931 else
8932 case "$GTK_CONFIG_2_0" in
8933 /*)
8934 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8935 ;;
8936 ?:/*)
8937 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8938 ;;
8939 *)
8940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8941 ac_dummy="$PATH"
8942 for ac_dir in $ac_dummy; do
8943 test -z "$ac_dir" && ac_dir=.
8944 if test -f $ac_dir/$ac_word; then
8945 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8946 break
8947 fi
8948 done
8949 IFS="$ac_save_ifs"
8950 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8951 ;;
8952 esac
8953 fi
8954 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
8955 if test -n "$GTK_CONFIG_2_0"; then
8956 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
8957 else
8958 echo "$ac_t""no" 1>&6
8959 fi
8960
8961 min_gtk_version=1.3.1
8962 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8963 echo "configure:8964: checking for GTK - version >= $min_gtk_version" >&5
8964 no_gtk=""
8965 if test "$GTK_CONFIG_2_0" = "no" ; then
8966 no_gtk=yes
8967 else
8968 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8969 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8970 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8971 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8972 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8973 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8974 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8975 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8976 if test "x$enable_gtktest" = "xyes" ; then
8977 ac_save_CFLAGS="$CFLAGS"
8978 ac_save_LIBS="$LIBS"
8979 CFLAGS="$CFLAGS $GTK_CFLAGS"
8980 LIBS="$GTK_LIBS $LIBS"
8981 rm -f conf.gtktest
8982 if test "$cross_compiling" = yes; then
8983 echo $ac_n "cross compiling; assumed OK... $ac_c"
8984 else
8985 cat > conftest.$ac_ext <<EOF
8986 #line 8987 "configure"
8987 #include "confdefs.h"
8988
8989 #include <gtk/gtk.h>
8990 #include <stdio.h>
8991 #include <stdlib.h>
8992
8993 int
8994 main ()
8995 {
8996 int major, minor, micro;
8997 char *tmp_version;
8998
8999 system ("touch conf.gtktest");
9000
9001 /* HP/UX 9 (%@#!) writes to sscanf strings */
9002 tmp_version = g_strdup("$min_gtk_version");
9003 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
9004 printf("%s, bad version string\n", "$min_gtk_version");
9005 exit(1);
9006 }
9007
9008 if ((gtk_major_version != $gtk_config_major_version) ||
9009 (gtk_minor_version != $gtk_config_minor_version) ||
9010 (gtk_micro_version != $gtk_config_micro_version))
9011 {
9012 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
9013 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
9014 gtk_major_version, gtk_minor_version, gtk_micro_version);
9015 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
9016 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
9017 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
9018 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
9019 printf("*** required on your system.\n");
9020 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
9021 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
9022 printf("*** before re-running configure\n");
9023 }
9024 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
9025 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
9026 (gtk_minor_version != GTK_MINOR_VERSION) ||
9027 (gtk_micro_version != GTK_MICRO_VERSION))
9028 {
9029 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
9030 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
9031 printf("*** library (version %d.%d.%d)\n",
9032 gtk_major_version, gtk_minor_version, gtk_micro_version);
9033 }
9034 #endif /* defined (GTK_MAJOR_VERSION) ... */
9035 else
9036 {
9037 if ((gtk_major_version > major) ||
9038 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9039 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
9040 {
9041 return 0;
9042 }
9043 else
9044 {
9045 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
9046 gtk_major_version, gtk_minor_version, gtk_micro_version);
9047 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9048 major, minor, micro);
9049 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9050 printf("***\n");
9051 printf("*** If you have already installed a sufficiently new version, this error\n");
9052 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9053 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9054 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9055 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9056 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9057 printf("*** so that the correct libraries are found at run-time))\n");
9058 }
9059 }
9060 return 1;
9061 }
9062
9063 EOF
9064 if { (eval echo configure:9065: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9065 then
9066 :
9067 else
9068 echo "configure: failed program was:" >&5
9069 cat conftest.$ac_ext >&5
9070 rm -fr conftest*
9071 no_gtk=yes
9072 fi
9073 rm -fr conftest*
9074 fi
9075
9076 CFLAGS="$ac_save_CFLAGS"
9077 LIBS="$ac_save_LIBS"
9078 fi
9079 fi
9080 if test "x$no_gtk" = x ; then
9081 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9082 wx_cv_lib_gtk=2.0
9083 else
9084 echo "$ac_t""no" 1>&6
9085 if test "$GTK_CONFIG_2_0" = "no" ; then
9086 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9087 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9088 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9089 echo "*** full path to gtk-config-2.0."
9090 else
9091 if test -f conf.gtktest ; then
9092 :
9093 else
9094 echo "*** Could not run GTK test program, checking why..."
9095 CFLAGS="$CFLAGS $GTK_CFLAGS"
9096 LIBS="$LIBS $GTK_LIBS"
9097 cat > conftest.$ac_ext <<EOF
9098 #line 9099 "configure"
9099 #include "confdefs.h"
9100
9101 #include <gtk/gtk.h>
9102 #include <stdio.h>
9103
9104 int main() {
9105 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9106 ; return 0; }
9107 EOF
9108 if { (eval echo configure:9109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9109 rm -rf conftest*
9110 echo "*** The test program compiled, but did not run. This usually means"
9111 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9112 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9113 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9114 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9115 echo "*** is required on your system"
9116 echo "***"
9117 echo "*** If you have an old version installed, it is best to remove it, although"
9118 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9119 echo "***"
9120 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9121 echo "*** came with the system with the command"
9122 echo "***"
9123 echo "*** rpm --erase --nodeps gtk gtk-devel"
9124 else
9125 echo "configure: failed program was:" >&5
9126 cat conftest.$ac_ext >&5
9127 rm -rf conftest*
9128 echo "*** The test program failed to compile or link. See the file config.log for the"
9129 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9130 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
9131 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
9132 fi
9133 rm -f conftest*
9134 CFLAGS="$ac_save_CFLAGS"
9135 LIBS="$ac_save_LIBS"
9136 fi
9137 fi
9138 GTK_CFLAGS=""
9139 GTK_LIBS=""
9140 gthread
9141 fi
9142
9143
9144 rm -f conf.gtktest
9145
9146 fi
9147
9148 if test -z "$wx_cv_lib_gtk"; then
9149
9150 if test x$gtk_config_exec_prefix != x ; then
9151 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9152 if test x${GTK_CONFIG+set} != xset ; then
9153 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9154 fi
9155 fi
9156 if test x$gtk_config_prefix != x ; then
9157 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9158 if test x${GTK_CONFIG+set} != xset ; then
9159 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9160 fi
9161 fi
9162
9163 # Extract the first word of "gtk-config", so it can be a program name with args.
9164 set dummy gtk-config; ac_word=$2
9165 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9166 echo "configure:9167: checking for $ac_word" >&5
9167 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9168 echo $ac_n "(cached) $ac_c" 1>&6
9169 else
9170 case "$GTK_CONFIG" in
9171 /*)
9172 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9173 ;;
9174 ?:/*)
9175 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9176 ;;
9177 *)
9178 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9179 ac_dummy="$PATH"
9180 for ac_dir in $ac_dummy; do
9181 test -z "$ac_dir" && ac_dir=.
9182 if test -f $ac_dir/$ac_word; then
9183 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9184 break
9185 fi
9186 done
9187 IFS="$ac_save_ifs"
9188 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9189 ;;
9190 esac
9191 fi
9192 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9193 if test -n "$GTK_CONFIG"; then
9194 echo "$ac_t""$GTK_CONFIG" 1>&6
9195 else
9196 echo "$ac_t""no" 1>&6
9197 fi
9198
9199 min_gtk_version=1.2.7
9200 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9201 echo "configure:9202: checking for GTK - version >= $min_gtk_version" >&5
9202 no_gtk=""
9203 if test "$GTK_CONFIG" != "no" ; then
9204 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9205 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9206 ac_save_CFLAGS="$CFLAGS"
9207 ac_save_LIBS="$LIBS"
9208 CFLAGS="$CFLAGS $GTK_CFLAGS"
9209 LIBS="$LIBS $GTK_LIBS"
9210 if test "$cross_compiling" = yes; then
9211 echo $ac_n "cross compiling; assumed OK... $ac_c"
9212 else
9213 cat > conftest.$ac_ext <<EOF
9214 #line 9215 "configure"
9215 #include "confdefs.h"
9216
9217 #include <gtk/gtk.h>
9218 #include <gtk/gtkfeatures.h>
9219 #include <stdio.h>
9220 #include <stdlib.h>
9221
9222 int
9223 main ()
9224 {
9225 int major, minor, micro;
9226
9227 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9228 printf("%s, bad version string\n", "$min_gtk_version");
9229 exit(1);
9230 }
9231
9232 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9233 (GTK_MINOR_VERSION != gtk_minor_version) ||
9234 (GTK_MICRO_VERSION != gtk_micro_version)) {
9235 printf("Headers vs. library version mismatch!\n");
9236 exit(1);
9237 }
9238
9239 if (gtk_minor_version == 1) return FALSE;
9240
9241 return !((gtk_major_version > major) ||
9242 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9243 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9244 }
9245
9246 EOF
9247 if { (eval echo configure:9248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9248 then
9249 :
9250 else
9251 echo "configure: failed program was:" >&5
9252 cat conftest.$ac_ext >&5
9253 rm -fr conftest*
9254 no_gtk=yes
9255 fi
9256 rm -fr conftest*
9257 fi
9258
9259 CFLAGS="$ac_save_CFLAGS"
9260 LIBS="$ac_save_LIBS"
9261 else
9262 no_gtk=yes
9263 fi
9264 if test "x$no_gtk" = x ; then
9265 echo "$ac_t""yes" 1>&6
9266 wx_cv_lib_gtk=1.2.7
9267 else
9268 echo "$ac_t""no" 1>&6
9269 GTK_CFLAGS=""
9270 GTK_LIBS=""
9271 :
9272 fi
9273
9274
9275
9276 fi
9277
9278 if test -z "$wx_cv_lib_gtk"; then
9279
9280 if test x$gtk_config_exec_prefix != x ; then
9281 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9282 if test x${GTK_CONFIG+set} != xset ; then
9283 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9284 fi
9285 fi
9286 if test x$gtk_config_prefix != x ; then
9287 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9288 if test x${GTK_CONFIG+set} != xset ; then
9289 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9290 fi
9291 fi
9292
9293 # Extract the first word of "gtk-config", so it can be a program name with args.
9294 set dummy gtk-config; ac_word=$2
9295 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9296 echo "configure:9297: checking for $ac_word" >&5
9297 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9298 echo $ac_n "(cached) $ac_c" 1>&6
9299 else
9300 case "$GTK_CONFIG" in
9301 /*)
9302 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9303 ;;
9304 ?:/*)
9305 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9306 ;;
9307 *)
9308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9309 ac_dummy="$PATH"
9310 for ac_dir in $ac_dummy; do
9311 test -z "$ac_dir" && ac_dir=.
9312 if test -f $ac_dir/$ac_word; then
9313 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9314 break
9315 fi
9316 done
9317 IFS="$ac_save_ifs"
9318 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9319 ;;
9320 esac
9321 fi
9322 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9323 if test -n "$GTK_CONFIG"; then
9324 echo "$ac_t""$GTK_CONFIG" 1>&6
9325 else
9326 echo "$ac_t""no" 1>&6
9327 fi
9328
9329 min_gtk_version=1.2.3
9330 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9331 echo "configure:9332: checking for GTK - version >= $min_gtk_version" >&5
9332 no_gtk=""
9333 if test "$GTK_CONFIG" != "no" ; then
9334 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9335 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9336 ac_save_CFLAGS="$CFLAGS"
9337 ac_save_LIBS="$LIBS"
9338 CFLAGS="$CFLAGS $GTK_CFLAGS"
9339 LIBS="$LIBS $GTK_LIBS"
9340 if test "$cross_compiling" = yes; then
9341 echo $ac_n "cross compiling; assumed OK... $ac_c"
9342 else
9343 cat > conftest.$ac_ext <<EOF
9344 #line 9345 "configure"
9345 #include "confdefs.h"
9346
9347 #include <gtk/gtk.h>
9348 #include <gtk/gtkfeatures.h>
9349 #include <stdio.h>
9350 #include <stdlib.h>
9351
9352 int
9353 main ()
9354 {
9355 int major, minor, micro;
9356
9357 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9358 printf("%s, bad version string\n", "$min_gtk_version");
9359 exit(1);
9360 }
9361
9362 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9363 (GTK_MINOR_VERSION != gtk_minor_version) ||
9364 (GTK_MICRO_VERSION != gtk_micro_version)) {
9365 printf("Headers vs. library version mismatch!\n");
9366 exit(1);
9367 }
9368
9369 if (gtk_minor_version == 1) return FALSE;
9370
9371 return !((gtk_major_version > major) ||
9372 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9373 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9374 }
9375
9376 EOF
9377 if { (eval echo configure:9378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9378 then
9379 :
9380 else
9381 echo "configure: failed program was:" >&5
9382 cat conftest.$ac_ext >&5
9383 rm -fr conftest*
9384 no_gtk=yes
9385 fi
9386 rm -fr conftest*
9387 fi
9388
9389 CFLAGS="$ac_save_CFLAGS"
9390 LIBS="$ac_save_LIBS"
9391 else
9392 no_gtk=yes
9393 fi
9394 if test "x$no_gtk" = x ; then
9395 echo "$ac_t""yes" 1>&6
9396 wx_cv_lib_gtk=1.2.3
9397 else
9398 echo "$ac_t""no" 1>&6
9399 GTK_CFLAGS=""
9400 GTK_LIBS=""
9401 :
9402 fi
9403
9404
9405
9406 fi
9407
9408 if test -z "$wx_cv_lib_gtk"; then
9409 wx_cv_lib_gtk=none
9410 else
9411 wx_cv_cflags_gtk=$GTK_CFLAGS
9412 wx_cv_libs_gtk=$GTK_LIBS
9413 fi
9414
9415
9416 fi
9417
9418
9419 if test "$gtk_version_cached" = 1; then
9420 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
9421 fi
9422
9423 case "$wx_cv_lib_gtk" in
9424 2.0) WXGTK20=1
9425 ;;
9426 1.2.7) WXGTK127=1
9427 WXGTK12=1
9428 ;;
9429 1.2.3) WXGTK12=1
9430 ;;
9431 *) { echo "configure: error:
9432 Please check that gtk-config is in path, the directory
9433 where GTK+ libraries are installed (returned by
9434 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9435 equivalent variable and GTK+ is version 1.2.3 or above.
9436 " 1>&2; exit 1; }
9437 ;;
9438 esac
9439
9440 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
9441 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
9442
9443 AFMINSTALL=afminstall
9444 TOOLKIT=GTK
9445 GUIDIST=GTK_DIST
9446
9447 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9448 echo "configure:9449: checking for gdk_im_open in -lgdk" >&5
9449 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9451 echo $ac_n "(cached) $ac_c" 1>&6
9452 else
9453 ac_save_LIBS="$LIBS"
9454 LIBS="-lgdk $LIBS"
9455 cat > conftest.$ac_ext <<EOF
9456 #line 9457 "configure"
9457 #include "confdefs.h"
9458 /* Override any gcc2 internal prototype to avoid an error. */
9459 /* We use char because int might match the return type of a gcc2
9460 builtin and then its argument prototype would still apply. */
9461 char gdk_im_open();
9462
9463 int main() {
9464 gdk_im_open()
9465 ; return 0; }
9466 EOF
9467 if { (eval echo configure:9468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9468 rm -rf conftest*
9469 eval "ac_cv_lib_$ac_lib_var=yes"
9470 else
9471 echo "configure: failed program was:" >&5
9472 cat conftest.$ac_ext >&5
9473 rm -rf conftest*
9474 eval "ac_cv_lib_$ac_lib_var=no"
9475 fi
9476 rm -f conftest*
9477 LIBS="$ac_save_LIBS"
9478
9479 fi
9480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9481 echo "$ac_t""yes" 1>&6
9482 cat >> confdefs.h <<\EOF
9483 #define HAVE_XIM 1
9484 EOF
9485
9486 else
9487 echo "$ac_t""no" 1>&6
9488 fi
9489
9490 fi
9491
9492 if test "$wxUSE_MGL" = 1; then
9493
9494 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9495 echo "configure:9496: checking for SciTech MGL library" >&5
9496 if test "x$MGL_ROOT" = x ; then
9497 echo "$ac_t""not found" 1>&6
9498 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9499 else
9500 echo "$ac_t""$MGL_ROOT" 1>&6
9501 fi
9502
9503 MGL_OS=linux/gcc/glibc
9504 MGL_LIB_TYPE=""
9505
9506 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9507 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9508 MGL_LIB_TYPE=debug
9509 fi
9510 fi
9511 if test "x$MGL_LIB_TYPE" = x ; then
9512 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9513 MGL_LIB_TYPE=release
9514 else
9515 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9516 fi
9517 fi
9518
9519 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9520 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9521
9522 AFMINSTALL=afminstall
9523 TOOLKIT=MGL
9524 GUIDIST=MGL_DIST
9525 fi
9526
9527 if test "$wxUSE_WINE" = 1; then
9528 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
9529 echo "configure:9530: checking for WINE includes" >&5
9530
9531 ac_find_includes=
9532 for ac_dir in $SEARCH_INCLUDE;
9533 do
9534 if test -f "$ac_dir/windows.h"; then
9535 ac_find_includes=$ac_dir
9536 break
9537 fi
9538 done
9539
9540 if test "$ac_find_includes" != "" ; then
9541 echo "$ac_t""found $ac_find_includes" 1>&6
9542 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9543 else
9544 echo "$ac_t""no" 1>&6
9545 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9546 fi
9547
9548 XPM_LINK=""
9549 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9550 echo "configure:9551: checking for Xpm library" >&5
9551
9552 ac_find_libraries=
9553 for ac_dir in $SEARCH_LIB;
9554 do
9555 for ac_extension in a so sl dylib; do
9556 if test -f "$ac_dir/libXpm.$ac_extension"; then
9557 ac_find_libraries=$ac_dir
9558 break 2
9559 fi
9560 done
9561 done
9562
9563 if test "$ac_find_libraries" != "" ; then
9564 GUI_TK_LIBRARY="-L$ac_find_libraries"
9565 XPM_LINK="-lXpm"
9566 cat >> confdefs.h <<\EOF
9567 #define wxHAVE_LIB_XPM 1
9568 EOF
9569
9570 echo "$ac_t""found at $ac_find_libraries" 1>&6
9571 else
9572 echo "$ac_t""no" 1>&6
9573 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9574 fi
9575
9576 MESA_LINK=""
9577 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9578 echo "configure:9579: checking for Mesa library" >&5
9579
9580 ac_find_libraries=
9581 for ac_dir in $SEARCH_LIB;
9582 do
9583 for ac_extension in a so sl dylib; do
9584 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9585 ac_find_libraries=$ac_dir
9586 break 2
9587 fi
9588 done
9589 done
9590
9591 if test "$ac_find_libraries" != "" ; then
9592 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9593 MESA_LINK="-lMesaGL"
9594 echo "$ac_t""found at $ac_find_libraries" 1>&6
9595 else
9596 { echo "configure: error: no" 1>&2; exit 1; }
9597 fi
9598
9599 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9600 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9601 WXWINE=1
9602 TOOLKIT=MSW
9603 GUIDIST=MSW_DIST
9604 fi
9605
9606
9607 # If we find X, set shell vars x_includes and x_libraries to the
9608 # paths, otherwise set no_x=yes.
9609 # Uses ac_ vars as temps to allow command line to override cache and checks.
9610 # --without-x overrides everything else, but does not touch the cache.
9611 echo $ac_n "checking for X""... $ac_c" 1>&6
9612 echo "configure:9613: checking for X" >&5
9613
9614 # Check whether --with-x or --without-x was given.
9615 if test "${with_x+set}" = set; then
9616 withval="$with_x"
9617 :
9618 fi
9619
9620 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9621 if test "x$with_x" = xno; then
9622 # The user explicitly disabled X.
9623 have_x=disabled
9624 else
9625 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9626 # Both variables are already set.
9627 have_x=yes
9628 else
9629 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9630 echo $ac_n "(cached) $ac_c" 1>&6
9631 else
9632 # One or both of the vars are not set, and there is no cached value.
9633 ac_x_includes=NO ac_x_libraries=NO
9634 rm -fr conftestdir
9635 if mkdir conftestdir; then
9636 cd conftestdir
9637 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9638 cat > Imakefile <<'EOF'
9639 acfindx:
9640 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9641 EOF
9642 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9643 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9644 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9645 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9646 for ac_extension in a so sl; do
9647 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9648 test -f $ac_im_libdir/libX11.$ac_extension; then
9649 ac_im_usrlibdir=$ac_im_libdir; break
9650 fi
9651 done
9652 # Screen out bogus values from the imake configuration. They are
9653 # bogus both because they are the default anyway, and because
9654 # using them would break gcc on systems where it needs fixed includes.
9655 case "$ac_im_incroot" in
9656 /usr/include) ;;
9657 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9658 esac
9659 case "$ac_im_usrlibdir" in
9660 /usr/lib | /lib) ;;
9661 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9662 esac
9663 fi
9664 cd ..
9665 rm -fr conftestdir
9666 fi
9667
9668 if test "$ac_x_includes" = NO; then
9669 # Guess where to find include files, by looking for this one X11 .h file.
9670 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9671
9672 # First, try using that file with no special directory specified.
9673 cat > conftest.$ac_ext <<EOF
9674 #line 9675 "configure"
9675 #include "confdefs.h"
9676 #include <$x_direct_test_include>
9677 EOF
9678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9679 { (eval echo configure:9680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9681 if test -z "$ac_err"; then
9682 rm -rf conftest*
9683 # We can compile using X headers with no special include directory.
9684 ac_x_includes=
9685 else
9686 echo "$ac_err" >&5
9687 echo "configure: failed program was:" >&5
9688 cat conftest.$ac_ext >&5
9689 rm -rf conftest*
9690 # Look for the header file in a standard set of common directories.
9691 # Check X11 before X11Rn because it is often a symlink to the current release.
9692 for ac_dir in \
9693 /usr/X11/include \
9694 /usr/X11R6/include \
9695 /usr/X11R5/include \
9696 /usr/X11R4/include \
9697 \
9698 /usr/include/X11 \
9699 /usr/include/X11R6 \
9700 /usr/include/X11R5 \
9701 /usr/include/X11R4 \
9702 \
9703 /usr/local/X11/include \
9704 /usr/local/X11R6/include \
9705 /usr/local/X11R5/include \
9706 /usr/local/X11R4/include \
9707 \
9708 /usr/local/include/X11 \
9709 /usr/local/include/X11R6 \
9710 /usr/local/include/X11R5 \
9711 /usr/local/include/X11R4 \
9712 \
9713 /usr/X386/include \
9714 /usr/x386/include \
9715 /usr/XFree86/include/X11 \
9716 \
9717 /usr/include \
9718 /usr/local/include \
9719 /usr/unsupported/include \
9720 /usr/athena/include \
9721 /usr/local/x11r5/include \
9722 /usr/lpp/Xamples/include \
9723 \
9724 /usr/openwin/include \
9725 /usr/openwin/share/include \
9726 ; \
9727 do
9728 if test -r "$ac_dir/$x_direct_test_include"; then
9729 ac_x_includes=$ac_dir
9730 break
9731 fi
9732 done
9733 fi
9734 rm -f conftest*
9735 fi # $ac_x_includes = NO
9736
9737 if test "$ac_x_libraries" = NO; then
9738 # Check for the libraries.
9739
9740 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9741 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9742
9743 # See if we find them without any special options.
9744 # Don't add to $LIBS permanently.
9745 ac_save_LIBS="$LIBS"
9746 LIBS="-l$x_direct_test_library $LIBS"
9747 cat > conftest.$ac_ext <<EOF
9748 #line 9749 "configure"
9749 #include "confdefs.h"
9750
9751 int main() {
9752 ${x_direct_test_function}()
9753 ; return 0; }
9754 EOF
9755 if { (eval echo configure:9756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9756 rm -rf conftest*
9757 LIBS="$ac_save_LIBS"
9758 # We can link X programs with no special library path.
9759 ac_x_libraries=
9760 else
9761 echo "configure: failed program was:" >&5
9762 cat conftest.$ac_ext >&5
9763 rm -rf conftest*
9764 LIBS="$ac_save_LIBS"
9765 # First see if replacing the include by lib works.
9766 # Check X11 before X11Rn because it is often a symlink to the current release.
9767 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9768 /usr/X11/lib \
9769 /usr/X11R6/lib \
9770 /usr/X11R5/lib \
9771 /usr/X11R4/lib \
9772 \
9773 /usr/lib/X11 \
9774 /usr/lib/X11R6 \
9775 /usr/lib/X11R5 \
9776 /usr/lib/X11R4 \
9777 \
9778 /usr/local/X11/lib \
9779 /usr/local/X11R6/lib \
9780 /usr/local/X11R5/lib \
9781 /usr/local/X11R4/lib \
9782 \
9783 /usr/local/lib/X11 \
9784 /usr/local/lib/X11R6 \
9785 /usr/local/lib/X11R5 \
9786 /usr/local/lib/X11R4 \
9787 \
9788 /usr/X386/lib \
9789 /usr/x386/lib \
9790 /usr/XFree86/lib/X11 \
9791 \
9792 /usr/lib \
9793 /usr/local/lib \
9794 /usr/unsupported/lib \
9795 /usr/athena/lib \
9796 /usr/local/x11r5/lib \
9797 /usr/lpp/Xamples/lib \
9798 /lib/usr/lib/X11 \
9799 \
9800 /usr/openwin/lib \
9801 /usr/openwin/share/lib \
9802 ; \
9803 do
9804 for ac_extension in a so sl; do
9805 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
9806 ac_x_libraries=$ac_dir
9807 break 2
9808 fi
9809 done
9810 done
9811 fi
9812 rm -f conftest*
9813 fi # $ac_x_libraries = NO
9814
9815 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
9816 # Didn't find X anywhere. Cache the known absence of X.
9817 ac_cv_have_x="have_x=no"
9818 else
9819 # Record where we found X for the cache.
9820 ac_cv_have_x="have_x=yes \
9821 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9822 fi
9823 fi
9824 fi
9825 eval "$ac_cv_have_x"
9826 fi # $with_x != no
9827
9828 if test "$have_x" != yes; then
9829 echo "$ac_t""$have_x" 1>&6
9830 no_x=yes
9831 else
9832 # If each of the values was on the command line, it overrides each guess.
9833 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9834 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9835 # Update the cache value to reflect the command line values.
9836 ac_cv_have_x="have_x=yes \
9837 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9838 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9839 fi
9840
9841 if test "$no_x" = yes; then
9842 # Not all programs may use this symbol, but it does not hurt to define it.
9843 cat >> confdefs.h <<\EOF
9844 #define X_DISPLAY_MISSING 1
9845 EOF
9846
9847 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9848 else
9849 if test -n "$x_includes"; then
9850 X_CFLAGS="$X_CFLAGS -I$x_includes"
9851 fi
9852
9853 # It would also be nice to do this for all -L options, not just this one.
9854 if test -n "$x_libraries"; then
9855 X_LIBS="$X_LIBS -L$x_libraries"
9856 # For Solaris; some versions of Sun CC require a space after -R and
9857 # others require no space. Words are not sufficient . . . .
9858 case "`(uname -sr) 2>/dev/null`" in
9859 "SunOS 5"*)
9860 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
9861 echo "configure:9862: checking whether -R must be followed by a space" >&5
9862 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9863 cat > conftest.$ac_ext <<EOF
9864 #line 9865 "configure"
9865 #include "confdefs.h"
9866
9867 int main() {
9868
9869 ; return 0; }
9870 EOF
9871 if { (eval echo configure:9872: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9872 rm -rf conftest*
9873 ac_R_nospace=yes
9874 else
9875 echo "configure: failed program was:" >&5
9876 cat conftest.$ac_ext >&5
9877 rm -rf conftest*
9878 ac_R_nospace=no
9879 fi
9880 rm -f conftest*
9881 if test $ac_R_nospace = yes; then
9882 echo "$ac_t""no" 1>&6
9883 X_LIBS="$X_LIBS -R$x_libraries"
9884 else
9885 LIBS="$ac_xsave_LIBS -R $x_libraries"
9886 cat > conftest.$ac_ext <<EOF
9887 #line 9888 "configure"
9888 #include "confdefs.h"
9889
9890 int main() {
9891
9892 ; return 0; }
9893 EOF
9894 if { (eval echo configure:9895: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9895 rm -rf conftest*
9896 ac_R_space=yes
9897 else
9898 echo "configure: failed program was:" >&5
9899 cat conftest.$ac_ext >&5
9900 rm -rf conftest*
9901 ac_R_space=no
9902 fi
9903 rm -f conftest*
9904 if test $ac_R_space = yes; then
9905 echo "$ac_t""yes" 1>&6
9906 X_LIBS="$X_LIBS -R $x_libraries"
9907 else
9908 echo "$ac_t""neither works" 1>&6
9909 fi
9910 fi
9911 LIBS="$ac_xsave_LIBS"
9912 esac
9913 fi
9914
9915 # Check for system-dependent libraries X programs must link with.
9916 # Do this before checking for the system-independent R6 libraries
9917 # (-lICE), since we may need -lsocket or whatever for X linking.
9918
9919 if test "$ISC" = yes; then
9920 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9921 else
9922 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9923 # libraries were built with DECnet support. And karl@cs.umb.edu says
9924 # the Alpha needs dnet_stub (dnet does not exist).
9925 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
9926 echo "configure:9927: checking for dnet_ntoa in -ldnet" >&5
9927 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9928 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9929 echo $ac_n "(cached) $ac_c" 1>&6
9930 else
9931 ac_save_LIBS="$LIBS"
9932 LIBS="-ldnet $LIBS"
9933 cat > conftest.$ac_ext <<EOF
9934 #line 9935 "configure"
9935 #include "confdefs.h"
9936 /* Override any gcc2 internal prototype to avoid an error. */
9937 /* We use char because int might match the return type of a gcc2
9938 builtin and then its argument prototype would still apply. */
9939 char dnet_ntoa();
9940
9941 int main() {
9942 dnet_ntoa()
9943 ; return 0; }
9944 EOF
9945 if { (eval echo configure:9946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9946 rm -rf conftest*
9947 eval "ac_cv_lib_$ac_lib_var=yes"
9948 else
9949 echo "configure: failed program was:" >&5
9950 cat conftest.$ac_ext >&5
9951 rm -rf conftest*
9952 eval "ac_cv_lib_$ac_lib_var=no"
9953 fi
9954 rm -f conftest*
9955 LIBS="$ac_save_LIBS"
9956
9957 fi
9958 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9959 echo "$ac_t""yes" 1>&6
9960 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9961 else
9962 echo "$ac_t""no" 1>&6
9963 fi
9964
9965 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9966 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
9967 echo "configure:9968: checking for dnet_ntoa in -ldnet_stub" >&5
9968 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9969 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9970 echo $ac_n "(cached) $ac_c" 1>&6
9971 else
9972 ac_save_LIBS="$LIBS"
9973 LIBS="-ldnet_stub $LIBS"
9974 cat > conftest.$ac_ext <<EOF
9975 #line 9976 "configure"
9976 #include "confdefs.h"
9977 /* Override any gcc2 internal prototype to avoid an error. */
9978 /* We use char because int might match the return type of a gcc2
9979 builtin and then its argument prototype would still apply. */
9980 char dnet_ntoa();
9981
9982 int main() {
9983 dnet_ntoa()
9984 ; return 0; }
9985 EOF
9986 if { (eval echo configure:9987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9987 rm -rf conftest*
9988 eval "ac_cv_lib_$ac_lib_var=yes"
9989 else
9990 echo "configure: failed program was:" >&5
9991 cat conftest.$ac_ext >&5
9992 rm -rf conftest*
9993 eval "ac_cv_lib_$ac_lib_var=no"
9994 fi
9995 rm -f conftest*
9996 LIBS="$ac_save_LIBS"
9997
9998 fi
9999 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10000 echo "$ac_t""yes" 1>&6
10001 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
10002 else
10003 echo "$ac_t""no" 1>&6
10004 fi
10005
10006 fi
10007
10008 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
10009 # to get the SysV transport functions.
10010 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
10011 # needs -lnsl.
10012 # The nsl library prevents programs from opening the X display
10013 # on Irix 5.2, according to dickey@clark.net.
10014 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
10015 echo "configure:10016: checking for gethostbyname" >&5
10016 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
10017 echo $ac_n "(cached) $ac_c" 1>&6
10018 else
10019 cat > conftest.$ac_ext <<EOF
10020 #line 10021 "configure"
10021 #include "confdefs.h"
10022 /* System header to define __stub macros and hopefully few prototypes,
10023 which can conflict with char gethostbyname(); below. */
10024 #include <assert.h>
10025 /* Override any gcc2 internal prototype to avoid an error. */
10026 /* We use char because int might match the return type of a gcc2
10027 builtin and then its argument prototype would still apply. */
10028 char gethostbyname();
10029
10030 int main() {
10031
10032 /* The GNU C library defines this for functions which it implements
10033 to always fail with ENOSYS. Some functions are actually named
10034 something starting with __ and the normal name is an alias. */
10035 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
10036 choke me
10037 #else
10038 gethostbyname();
10039 #endif
10040
10041 ; return 0; }
10042 EOF
10043 if { (eval echo configure:10044: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10044 rm -rf conftest*
10045 eval "ac_cv_func_gethostbyname=yes"
10046 else
10047 echo "configure: failed program was:" >&5
10048 cat conftest.$ac_ext >&5
10049 rm -rf conftest*
10050 eval "ac_cv_func_gethostbyname=no"
10051 fi
10052 rm -f conftest*
10053 fi
10054
10055 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10056 echo "$ac_t""yes" 1>&6
10057 :
10058 else
10059 echo "$ac_t""no" 1>&6
10060 fi
10061
10062 if test $ac_cv_func_gethostbyname = no; then
10063 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
10064 echo "configure:10065: checking for gethostbyname in -lnsl" >&5
10065 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10066 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10067 echo $ac_n "(cached) $ac_c" 1>&6
10068 else
10069 ac_save_LIBS="$LIBS"
10070 LIBS="-lnsl $LIBS"
10071 cat > conftest.$ac_ext <<EOF
10072 #line 10073 "configure"
10073 #include "confdefs.h"
10074 /* Override any gcc2 internal prototype to avoid an error. */
10075 /* We use char because int might match the return type of a gcc2
10076 builtin and then its argument prototype would still apply. */
10077 char gethostbyname();
10078
10079 int main() {
10080 gethostbyname()
10081 ; return 0; }
10082 EOF
10083 if { (eval echo configure:10084: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10084 rm -rf conftest*
10085 eval "ac_cv_lib_$ac_lib_var=yes"
10086 else
10087 echo "configure: failed program was:" >&5
10088 cat conftest.$ac_ext >&5
10089 rm -rf conftest*
10090 eval "ac_cv_lib_$ac_lib_var=no"
10091 fi
10092 rm -f conftest*
10093 LIBS="$ac_save_LIBS"
10094
10095 fi
10096 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10097 echo "$ac_t""yes" 1>&6
10098 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10099 else
10100 echo "$ac_t""no" 1>&6
10101 fi
10102
10103 fi
10104
10105 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10106 # socket/setsockopt and other routines are undefined under SCO ODT
10107 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10108 # on later versions), says simon@lia.di.epfl.ch: it contains
10109 # gethostby* variants that don't use the nameserver (or something).
10110 # -lsocket must be given before -lnsl if both are needed.
10111 # We assume that if connect needs -lnsl, so does gethostbyname.
10112 echo $ac_n "checking for connect""... $ac_c" 1>&6
10113 echo "configure:10114: checking for connect" >&5
10114 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10115 echo $ac_n "(cached) $ac_c" 1>&6
10116 else
10117 cat > conftest.$ac_ext <<EOF
10118 #line 10119 "configure"
10119 #include "confdefs.h"
10120 /* System header to define __stub macros and hopefully few prototypes,
10121 which can conflict with char connect(); below. */
10122 #include <assert.h>
10123 /* Override any gcc2 internal prototype to avoid an error. */
10124 /* We use char because int might match the return type of a gcc2
10125 builtin and then its argument prototype would still apply. */
10126 char connect();
10127
10128 int main() {
10129
10130 /* The GNU C library defines this for functions which it implements
10131 to always fail with ENOSYS. Some functions are actually named
10132 something starting with __ and the normal name is an alias. */
10133 #if defined (__stub_connect) || defined (__stub___connect)
10134 choke me
10135 #else
10136 connect();
10137 #endif
10138
10139 ; return 0; }
10140 EOF
10141 if { (eval echo configure:10142: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10142 rm -rf conftest*
10143 eval "ac_cv_func_connect=yes"
10144 else
10145 echo "configure: failed program was:" >&5
10146 cat conftest.$ac_ext >&5
10147 rm -rf conftest*
10148 eval "ac_cv_func_connect=no"
10149 fi
10150 rm -f conftest*
10151 fi
10152
10153 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10154 echo "$ac_t""yes" 1>&6
10155 :
10156 else
10157 echo "$ac_t""no" 1>&6
10158 fi
10159
10160 if test $ac_cv_func_connect = no; then
10161 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
10162 echo "configure:10163: checking for connect in -lsocket" >&5
10163 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10164 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10165 echo $ac_n "(cached) $ac_c" 1>&6
10166 else
10167 ac_save_LIBS="$LIBS"
10168 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10169 cat > conftest.$ac_ext <<EOF
10170 #line 10171 "configure"
10171 #include "confdefs.h"
10172 /* Override any gcc2 internal prototype to avoid an error. */
10173 /* We use char because int might match the return type of a gcc2
10174 builtin and then its argument prototype would still apply. */
10175 char connect();
10176
10177 int main() {
10178 connect()
10179 ; return 0; }
10180 EOF
10181 if { (eval echo configure:10182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10182 rm -rf conftest*
10183 eval "ac_cv_lib_$ac_lib_var=yes"
10184 else
10185 echo "configure: failed program was:" >&5
10186 cat conftest.$ac_ext >&5
10187 rm -rf conftest*
10188 eval "ac_cv_lib_$ac_lib_var=no"
10189 fi
10190 rm -f conftest*
10191 LIBS="$ac_save_LIBS"
10192
10193 fi
10194 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10195 echo "$ac_t""yes" 1>&6
10196 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10197 else
10198 echo "$ac_t""no" 1>&6
10199 fi
10200
10201 fi
10202
10203 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10204 echo $ac_n "checking for remove""... $ac_c" 1>&6
10205 echo "configure:10206: checking for remove" >&5
10206 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10207 echo $ac_n "(cached) $ac_c" 1>&6
10208 else
10209 cat > conftest.$ac_ext <<EOF
10210 #line 10211 "configure"
10211 #include "confdefs.h"
10212 /* System header to define __stub macros and hopefully few prototypes,
10213 which can conflict with char remove(); below. */
10214 #include <assert.h>
10215 /* Override any gcc2 internal prototype to avoid an error. */
10216 /* We use char because int might match the return type of a gcc2
10217 builtin and then its argument prototype would still apply. */
10218 char remove();
10219
10220 int main() {
10221
10222 /* The GNU C library defines this for functions which it implements
10223 to always fail with ENOSYS. Some functions are actually named
10224 something starting with __ and the normal name is an alias. */
10225 #if defined (__stub_remove) || defined (__stub___remove)
10226 choke me
10227 #else
10228 remove();
10229 #endif
10230
10231 ; return 0; }
10232 EOF
10233 if { (eval echo configure:10234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10234 rm -rf conftest*
10235 eval "ac_cv_func_remove=yes"
10236 else
10237 echo "configure: failed program was:" >&5
10238 cat conftest.$ac_ext >&5
10239 rm -rf conftest*
10240 eval "ac_cv_func_remove=no"
10241 fi
10242 rm -f conftest*
10243 fi
10244
10245 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10246 echo "$ac_t""yes" 1>&6
10247 :
10248 else
10249 echo "$ac_t""no" 1>&6
10250 fi
10251
10252 if test $ac_cv_func_remove = no; then
10253 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
10254 echo "configure:10255: checking for remove in -lposix" >&5
10255 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10256 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10257 echo $ac_n "(cached) $ac_c" 1>&6
10258 else
10259 ac_save_LIBS="$LIBS"
10260 LIBS="-lposix $LIBS"
10261 cat > conftest.$ac_ext <<EOF
10262 #line 10263 "configure"
10263 #include "confdefs.h"
10264 /* Override any gcc2 internal prototype to avoid an error. */
10265 /* We use char because int might match the return type of a gcc2
10266 builtin and then its argument prototype would still apply. */
10267 char remove();
10268
10269 int main() {
10270 remove()
10271 ; return 0; }
10272 EOF
10273 if { (eval echo configure:10274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10274 rm -rf conftest*
10275 eval "ac_cv_lib_$ac_lib_var=yes"
10276 else
10277 echo "configure: failed program was:" >&5
10278 cat conftest.$ac_ext >&5
10279 rm -rf conftest*
10280 eval "ac_cv_lib_$ac_lib_var=no"
10281 fi
10282 rm -f conftest*
10283 LIBS="$ac_save_LIBS"
10284
10285 fi
10286 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10287 echo "$ac_t""yes" 1>&6
10288 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10289 else
10290 echo "$ac_t""no" 1>&6
10291 fi
10292
10293 fi
10294
10295 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10296 echo $ac_n "checking for shmat""... $ac_c" 1>&6
10297 echo "configure:10298: checking for shmat" >&5
10298 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10299 echo $ac_n "(cached) $ac_c" 1>&6
10300 else
10301 cat > conftest.$ac_ext <<EOF
10302 #line 10303 "configure"
10303 #include "confdefs.h"
10304 /* System header to define __stub macros and hopefully few prototypes,
10305 which can conflict with char shmat(); below. */
10306 #include <assert.h>
10307 /* Override any gcc2 internal prototype to avoid an error. */
10308 /* We use char because int might match the return type of a gcc2
10309 builtin and then its argument prototype would still apply. */
10310 char shmat();
10311
10312 int main() {
10313
10314 /* The GNU C library defines this for functions which it implements
10315 to always fail with ENOSYS. Some functions are actually named
10316 something starting with __ and the normal name is an alias. */
10317 #if defined (__stub_shmat) || defined (__stub___shmat)
10318 choke me
10319 #else
10320 shmat();
10321 #endif
10322
10323 ; return 0; }
10324 EOF
10325 if { (eval echo configure:10326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10326 rm -rf conftest*
10327 eval "ac_cv_func_shmat=yes"
10328 else
10329 echo "configure: failed program was:" >&5
10330 cat conftest.$ac_ext >&5
10331 rm -rf conftest*
10332 eval "ac_cv_func_shmat=no"
10333 fi
10334 rm -f conftest*
10335 fi
10336
10337 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10338 echo "$ac_t""yes" 1>&6
10339 :
10340 else
10341 echo "$ac_t""no" 1>&6
10342 fi
10343
10344 if test $ac_cv_func_shmat = no; then
10345 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
10346 echo "configure:10347: checking for shmat in -lipc" >&5
10347 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10348 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10349 echo $ac_n "(cached) $ac_c" 1>&6
10350 else
10351 ac_save_LIBS="$LIBS"
10352 LIBS="-lipc $LIBS"
10353 cat > conftest.$ac_ext <<EOF
10354 #line 10355 "configure"
10355 #include "confdefs.h"
10356 /* Override any gcc2 internal prototype to avoid an error. */
10357 /* We use char because int might match the return type of a gcc2
10358 builtin and then its argument prototype would still apply. */
10359 char shmat();
10360
10361 int main() {
10362 shmat()
10363 ; return 0; }
10364 EOF
10365 if { (eval echo configure:10366: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10366 rm -rf conftest*
10367 eval "ac_cv_lib_$ac_lib_var=yes"
10368 else
10369 echo "configure: failed program was:" >&5
10370 cat conftest.$ac_ext >&5
10371 rm -rf conftest*
10372 eval "ac_cv_lib_$ac_lib_var=no"
10373 fi
10374 rm -f conftest*
10375 LIBS="$ac_save_LIBS"
10376
10377 fi
10378 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10379 echo "$ac_t""yes" 1>&6
10380 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10381 else
10382 echo "$ac_t""no" 1>&6
10383 fi
10384
10385 fi
10386 fi
10387
10388 # Check for libraries that X11R6 Xt/Xaw programs need.
10389 ac_save_LDFLAGS="$LDFLAGS"
10390 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10391 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10392 # check for ICE first), but we must link in the order -lSM -lICE or
10393 # we get undefined symbols. So assume we have SM if we have ICE.
10394 # These have to be linked with before -lX11, unlike the other
10395 # libraries we check for below, so use a different variable.
10396 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10397 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
10398 echo "configure:10399: checking for IceConnectionNumber in -lICE" >&5
10399 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10401 echo $ac_n "(cached) $ac_c" 1>&6
10402 else
10403 ac_save_LIBS="$LIBS"
10404 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10405 cat > conftest.$ac_ext <<EOF
10406 #line 10407 "configure"
10407 #include "confdefs.h"
10408 /* Override any gcc2 internal prototype to avoid an error. */
10409 /* We use char because int might match the return type of a gcc2
10410 builtin and then its argument prototype would still apply. */
10411 char IceConnectionNumber();
10412
10413 int main() {
10414 IceConnectionNumber()
10415 ; return 0; }
10416 EOF
10417 if { (eval echo configure:10418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10418 rm -rf conftest*
10419 eval "ac_cv_lib_$ac_lib_var=yes"
10420 else
10421 echo "configure: failed program was:" >&5
10422 cat conftest.$ac_ext >&5
10423 rm -rf conftest*
10424 eval "ac_cv_lib_$ac_lib_var=no"
10425 fi
10426 rm -f conftest*
10427 LIBS="$ac_save_LIBS"
10428
10429 fi
10430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10431 echo "$ac_t""yes" 1>&6
10432 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10433 else
10434 echo "$ac_t""no" 1>&6
10435 fi
10436
10437 LDFLAGS="$ac_save_LDFLAGS"
10438
10439 fi
10440
10441 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10442 LDFLAGS="$LDFLAGS $X_LIBS"
10443
10444 if test "$wxUSE_MOTIF" = 1; then
10445 if test "$no_x" = "yes"; then
10446 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10447 fi
10448
10449 GUI_TK_LIBRARY="$X_LIBS"
10450 TOOLKIT_INCLUDE="$X_CFLAGS"
10451
10452 AFMINSTALL=afminstall
10453
10454
10455 COMPILED_X_PROGRAM=0
10456
10457 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
10458 echo "configure:10459: checking for Motif/Lesstif headers" >&5
10459
10460 ac_find_includes=
10461 for ac_dir in $SEARCH_INCLUDE;
10462 do
10463 if test -f "$ac_dir/Xm/Xm.h"; then
10464 ac_find_includes=$ac_dir
10465 break
10466 fi
10467 done
10468
10469 if test "$ac_find_includes" != "" ; then
10470 echo "$ac_t""found $ac_find_includes" 1>&6
10471 else
10472 cat > conftest.$ac_ext <<EOF
10473 #line 10474 "configure"
10474 #include "confdefs.h"
10475
10476 #include <Xm/Xm.h>
10477
10478 int main() {
10479
10480 int version;
10481
10482 version = xmUseVersion;
10483
10484 ; return 0; }
10485 EOF
10486 if { (eval echo configure:10487: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10487 rm -rf conftest*
10488
10489 echo "$ac_t""found in default search path" 1>&6
10490 COMPILED_X_PROGRAM=1
10491
10492 else
10493 echo "configure: failed program was:" >&5
10494 cat conftest.$ac_ext >&5
10495 rm -rf conftest*
10496
10497 echo "$ac_t""no" 1>&6
10498 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10499
10500
10501 fi
10502 rm -f conftest*
10503 fi
10504
10505 if test "$COMPILED_X_PROGRAM" = 0; then
10506 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10507 echo "configure:10508: checking for Motif/Lesstif library" >&5
10508
10509 ac_find_libraries=
10510 for ac_dir in $SEARCH_LIB;
10511 do
10512 for ac_extension in a so sl dylib; do
10513 if test -f "$ac_dir/libXm.$ac_extension"; then
10514 ac_find_libraries=$ac_dir
10515 break 2
10516 fi
10517 done
10518 done
10519
10520 if test "$ac_find_libraries" != "" ; then
10521
10522 ac_path_to_include=$ac_find_includes
10523 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10524 result=$?
10525 if test $result = 0; then
10526 ac_path_to_include=""
10527 else
10528 ac_path_to_include="-I$ac_find_includes"
10529 fi
10530
10531
10532 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10533 result=$?
10534 if test $result = 0; then
10535 ac_path_to_link=""
10536 else
10537 ac_path_to_link="-L$ac_find_libraries"
10538 fi
10539
10540
10541 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10542 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10543 echo "$ac_t""found at $ac_find_libraries" 1>&6
10544 else
10545 cat > conftest.$ac_ext <<EOF
10546 #line 10547 "configure"
10547 #include "confdefs.h"
10548
10549 #include <Xm/Xm.h>
10550
10551 int main() {
10552
10553 int version;
10554
10555 version = xmUseVersion;
10556
10557 ; return 0; }
10558 EOF
10559 if { (eval echo configure:10560: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10560 rm -rf conftest*
10561
10562 echo "$ac_t""found in default search path" 1>&6
10563 COMPILED_X_PROGRAM=1
10564
10565 else
10566 echo "configure: failed program was:" >&5
10567 cat conftest.$ac_ext >&5
10568 rm -rf conftest*
10569
10570 echo "$ac_t""no" 1>&6
10571 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10572
10573
10574 fi
10575 rm -f conftest*
10576 fi
10577 fi
10578
10579
10580 XPM_LINK=""
10581 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10582 echo "configure:10583: checking for Xpm library" >&5
10583
10584 ac_find_libraries=
10585 for ac_dir in $SEARCH_LIB;
10586 do
10587 for ac_extension in a so sl dylib; do
10588 if test -f "$ac_dir/libXpm.$ac_extension"; then
10589 ac_find_libraries=$ac_dir
10590 break 2
10591 fi
10592 done
10593 done
10594
10595 if test "$ac_find_libraries" != "" ; then
10596
10597 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10598 result=$?
10599 if test $result = 0; then
10600 ac_path_to_link=""
10601 else
10602 ac_path_to_link="-L$ac_find_libraries"
10603 fi
10604
10605 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10606 XPM_LINK="-lXpm "
10607 cat >> confdefs.h <<\EOF
10608 #define wxHAVE_LIB_XPM 1
10609 EOF
10610
10611 echo "$ac_t""found at $ac_find_libraries" 1>&6
10612 else
10613 cat > conftest.$ac_ext <<EOF
10614 #line 10615 "configure"
10615 #include "confdefs.h"
10616
10617 #include <X11/xpm.h>
10618
10619 int main() {
10620
10621 int version;
10622
10623 version = XpmLibraryVersion();
10624
10625 ; return 0; }
10626 EOF
10627 if { (eval echo configure:10628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10628 rm -rf conftest*
10629
10630 XPM_LINK="-lXpm "
10631 cat >> confdefs.h <<\EOF
10632 #define wxHAVE_LIB_XPM 1
10633 EOF
10634
10635 echo "$ac_t""found in default search path" 1>&6
10636 COMPILED_X_PROGRAM=0
10637
10638 else
10639 echo "configure: failed program was:" >&5
10640 cat conftest.$ac_ext >&5
10641 rm -rf conftest*
10642
10643 echo "$ac_t""no" 1>&6
10644 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10645
10646
10647 fi
10648 rm -f conftest*
10649 fi
10650
10651 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10652 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10653 TOOLKIT=MOTIF
10654 GUIDIST=MOTIF_DIST
10655 fi
10656
10657 if test "$wxUSE_MAC" = 1; then
10658 TOOLKIT=MAC
10659 GUIDIST=MACX_DIST
10660 fi
10661
10662 if test "$wxUSE_PM" = 1; then
10663 TOOLKIT=PM
10664 GUIDIST=GTK_DIST
10665 fi
10666
10667 if test "$TOOLKIT" != "PM" ; then
10668 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10669 else
10670 TOOLKIT_DIR="os2"
10671 fi
10672
10673 TOOLKIT_NAME="${TOOLKIT_DIR}"
10674
10675 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10676
10677 if test "$TOOLKIT_NAME" = "motif"; then
10678 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10679 fi
10680
10681 if test "$wxUSE_UNIVERSAL" = "yes"; then
10682 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10683 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10684 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10685 SETUPH_DIR="univ"
10686 else
10687 SETUPH_DIR="${TOOLKIT_DIR}"
10688 fi
10689
10690 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10691 TOOLKIT_NAME="${TOOLKIT_NAME}d"
10692 fi
10693
10694 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10695 if test "$wxUSE_UNIVERSAL" = "yes"; then
10696 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10697 fi
10698
10699 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10700
10701 if test "$wxUSE_UNIVERSAL" = "yes"; then
10702 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10703 else
10704 ALL_OBJECTS="\$(GUIOBJS)"
10705 fi
10706
10707 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10708
10709 if test "$TOOLKIT" != "MSW"; then
10710 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10711 fi
10712
10713 if test "$wxUSE_HTML" = "yes"; then
10714 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10715 fi
10716
10717 if test "$TOOLKIT" != "MSW"; then
10718 if test "$wxUSE_ODBC" = "yes" ; then
10719 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10720 fi
10721 fi
10722
10723 if test "x$REGEX_INCLUDE" != "x" ; then
10724 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10725 fi
10726
10727 if test "$wxUSE_LIBJPEG" = "yes" ; then
10728 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10729 fi
10730 if test "$wxUSE_LIBTIFF" = "yes" ; then
10731 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10732 fi
10733 if test "$wxUSE_LIBPNG" = "yes" ; then
10734 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10735 fi
10736 if test "$wxUSE_ZLIB" = "yes" ; then
10737 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10738 fi
10739 if test "$wxUSE_FREETYPE" = "yes" ; then
10740 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10741 fi
10742
10743 if test "$wxUSE_UNIVERSAL" = "yes"; then
10744 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10745 else
10746 ALL_DEPFILES="\$(GUIDEPS)"
10747 fi
10748
10749 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10750
10751 if test "$TOOLKIT" != "MSW"; then
10752 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10753 fi
10754
10755 if test "$wxUSE_HTML" = "yes"; then
10756 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10757 fi
10758
10759 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
10760 if test "$wxUSE_UNIVERSAL" = "yes"; then
10761 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10762 fi
10763 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10764 RPM_SPEC="wx\$(TOOLKIT).spec"
10765
10766 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10767 DISTDIR="wx\$(TOOLKIT)"
10768 else
10769 USE_GUI=0
10770
10771 TOOLKIT_DIR="base"
10772
10773 TOOLKIT_VPATH="."
10774
10775 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10776 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10777 else
10778 TOOLKIT_NAME="${TOOLKIT_DIR}"
10779 fi
10780
10781 TOOLKIT_DEF="-D__WXBASE__"
10782
10783 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10784 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10785
10786 if test "x$REGEX_INCLUDE" != "x" ; then
10787 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10788 fi
10789
10790 if test "$wxUSE_ZLIB" = "yes" ; then
10791 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10792 fi
10793
10794 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10795
10796 PORT_FILES="\${top_srcdir}/src/files.lst"
10797 RPM_FILES="src/rpmfiles.lst"
10798 RPM_SPEC="wxBase.spec"
10799
10800 GUIDIST="BASE_DIST"
10801 DISTDIR="wxBase"
10802 fi
10803
10804 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
10805 WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10806
10807 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
10808 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10809
10810 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10811 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10812
10813 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10814 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10815 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
10816 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10817 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10818 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10819
10820 SHARED_LD=
10821 PIC_FLAG=
10822 WX_ALL=
10823 WX_ALL_INSTALLED=
10824 BURNT_LIBRARY_NAME=
10825 WX_TARGET_LIBRARY_SONAME=
10826
10827
10828 if test "$wxUSE_SHARED" = "yes"; then
10829 case "${host}" in
10830 *-hp-hpux* )
10831 if test "$GCC" = yes ; then
10832 SHARED_LD="${CC} -shared -fPIC -o"
10833 PIC_FLAG="-fPIC"
10834 else
10835 LDFLAGS="-L/usr/lib"
10836
10837 SHARED_LD="${CXX} -b -o"
10838 PIC_FLAG="+Z"
10839 fi
10840 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10841 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
10842 if test "$wxUSE_OPENGL" = "yes"; then
10843 WX_ALL_INSTALLED="preinstall_gl"
10844 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10845 else
10846 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10847 fi
10848 ;;
10849
10850 *-*-linux* )
10851 SHARED_LD="${CC} -shared -o"
10852 PIC_FLAG="-fPIC"
10853 if test "$wxUSE_BURNT_NAME" = "yes" ; then
10854 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
10855 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
10856 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
10857 fi
10858 if test "$wxUSE_OPENGL" = "yes"; then
10859 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10860 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10861 else
10862 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10863 WX_ALL="CREATE_LINKS"
10864 fi
10865 ;;
10866 *-*-irix5* | *-*-irix6* )
10867 if test "$GCC" = yes ; then
10868 SHARED_LD="${CC} -shared -o"
10869 PIC_FLAG="-fPIC"
10870 else
10871 SHARED_LD="${CXX} -shared -o"
10872 fi
10873 if test "$wxUSE_OPENGL" = "yes"; then
10874 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10875 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10876 else
10877 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10878 WX_ALL="CREATE_LINKS"
10879 fi
10880 ;;
10881 *-*-solaris2* )
10882 if test "$GCC" = yes ; then
10883 SHARED_LD="${CC} -shared -o"
10884 PIC_FLAG="-fPIC"
10885
10886 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10887 else
10888 SHARED_LD="${CXX} -G -o"
10889 PIC_FLAG="-KPIC"
10890 fi
10891 if test "$wxUSE_OPENGL" = "yes"; then
10892 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10893 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10894 else
10895 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10896 WX_ALL="CREATE_LINKS"
10897 fi
10898 ;;
10899 *-*-sunos4* )
10900 SHARED_LD="${CC} -shared -o"
10901 PIC_FLAG="-fPIC"
10902 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10903 WX_ALL="CREATE_LINKS"
10904 ;;
10905 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10906 SHARED_LD="${CC} -shared -o"
10907 PIC_FLAG="-fPIC"
10908 if test "$wxUSE_OPENGL" = "yes"; then
10909 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10910 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10911 else
10912 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10913 WX_ALL="CREATE_LINKS"
10914 fi
10915 ;;
10916 *-*-darwin* )
10917 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__DARWIN__ -D__POWERPC__"
10918 CFLAGS="${CFLAGS} -fno-common"
10919 CPPFLAGS="${CPPFLAGS} -fno-common"
10920 SHARED_LD="${CXX} -dynamiclib -o"
10921 PIC_FLAG="-dynamic -fPIC"
10922 if test "$wxUSE_OPENGL" = "yes"; then
10923 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10924 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10925 else
10926 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10927 WX_ALL="CREATE_LINKS"
10928 fi
10929 if test "$wxUSE_MAC" = 1 ; then
10930 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10931 fi
10932 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10933 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10934 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10935 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10936 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10937 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10938 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10939 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
10940 ;;
10941 *-*-osf* )
10942 SHARED_LD="${CXX} -shared -o"
10943 PIC_FLAG="-fPIC"
10944 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10945 WX_ALL="CREATE_LINKS"
10946 ;;
10947 *-*-dgux5* )
10948 SHARED_LD="${CXX} -shared -o"
10949 PIC_FLAG="-fPIC"
10950 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10951 WX_ALL="CREATE_LINKS"
10952 ;;
10953 *-*-sysv5* )
10954 SHARED_LD="${CC} -shared -o"
10955 PIC_FLAG="-fPIC"
10956 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10957 WX_ALL="CREATE_LINKS"
10958 ;;
10959 *-*-aix* )
10960 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10961 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10962 ;;
10963 *-*-cygwin* )
10964 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10965 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10966 if test "$wxUSE_OPENGL" = "yes"; then
10967 WX_ALL_INSTALLED="preinstall_gl"
10968 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10969 else
10970 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10971 fi
10972 ;;
10973 *-*-mingw32* )
10974 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10975 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10976 if test "$wxUSE_OPENGL" = "yes"; then
10977 WX_ALL_INSTALLED="preinstall_gl"
10978 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10979 else
10980 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10981 fi
10982 ;;
10983 *-pc-os2_emx )
10984 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10985 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10986 ;;
10987 *-*-beos* )
10988 SHARED_LD="${LD} -shared -o"
10989 PIC_FLAG="-fPIC"
10990 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10991 WX_ALL="CREATE_LINKS"
10992 ;;
10993 *)
10994 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10995 esac
10996
10997 if test "x$WX_TARGET_LIBRARY" = "x"; then
10998 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
10999 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
11000 fi
11001 WX_TARGET_LIBRARY_TYPE="so"
11002 else
11003 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
11004 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
11005
11006 if test "$wxUSE_OPENGL" = "yes"; then
11007 WX_ALL_INSTALLED="preinstall_gl"
11008 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
11009 else
11010 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
11011 fi
11012
11013 if test "$wxUSE_GUI" = "no"; then
11014 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
11015 fi
11016
11017 WX_TARGET_LIBRARY_TYPE="a"
11018 fi
11019
11020
11021 for ac_hdr in strings.h
11022 do
11023 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11024 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11025 echo "configure:11026: checking for $ac_hdr" >&5
11026 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11027 echo $ac_n "(cached) $ac_c" 1>&6
11028 else
11029 cat > conftest.$ac_ext <<EOF
11030 #line 11031 "configure"
11031 #include "confdefs.h"
11032 #include <$ac_hdr>
11033 EOF
11034 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11035 { (eval echo configure:11036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11036 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11037 if test -z "$ac_err"; then
11038 rm -rf conftest*
11039 eval "ac_cv_header_$ac_safe=yes"
11040 else
11041 echo "$ac_err" >&5
11042 echo "configure: failed program was:" >&5
11043 cat conftest.$ac_ext >&5
11044 rm -rf conftest*
11045 eval "ac_cv_header_$ac_safe=no"
11046 fi
11047 rm -f conftest*
11048 fi
11049 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11050 echo "$ac_t""yes" 1>&6
11051 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11052 cat >> confdefs.h <<EOF
11053 #define $ac_tr_hdr 1
11054 EOF
11055
11056 else
11057 echo "$ac_t""no" 1>&6
11058 fi
11059 done
11060
11061 for ac_hdr in stdlib.h
11062 do
11063 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11064 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11065 echo "configure:11066: checking for $ac_hdr" >&5
11066 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11067 echo $ac_n "(cached) $ac_c" 1>&6
11068 else
11069 cat > conftest.$ac_ext <<EOF
11070 #line 11071 "configure"
11071 #include "confdefs.h"
11072 #include <$ac_hdr>
11073 EOF
11074 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11075 { (eval echo configure:11076: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11076 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11077 if test -z "$ac_err"; then
11078 rm -rf conftest*
11079 eval "ac_cv_header_$ac_safe=yes"
11080 else
11081 echo "$ac_err" >&5
11082 echo "configure: failed program was:" >&5
11083 cat conftest.$ac_ext >&5
11084 rm -rf conftest*
11085 eval "ac_cv_header_$ac_safe=no"
11086 fi
11087 rm -f conftest*
11088 fi
11089 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11090 echo "$ac_t""yes" 1>&6
11091 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11092 cat >> confdefs.h <<EOF
11093 #define $ac_tr_hdr 1
11094 EOF
11095
11096 else
11097 echo "$ac_t""no" 1>&6
11098 fi
11099 done
11100
11101 for ac_hdr in unistd.h
11102 do
11103 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11104 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11105 echo "configure:11106: checking for $ac_hdr" >&5
11106 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11107 echo $ac_n "(cached) $ac_c" 1>&6
11108 else
11109 cat > conftest.$ac_ext <<EOF
11110 #line 11111 "configure"
11111 #include "confdefs.h"
11112 #include <$ac_hdr>
11113 EOF
11114 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11115 { (eval echo configure:11116: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11116 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11117 if test -z "$ac_err"; then
11118 rm -rf conftest*
11119 eval "ac_cv_header_$ac_safe=yes"
11120 else
11121 echo "$ac_err" >&5
11122 echo "configure: failed program was:" >&5
11123 cat conftest.$ac_ext >&5
11124 rm -rf conftest*
11125 eval "ac_cv_header_$ac_safe=no"
11126 fi
11127 rm -f conftest*
11128 fi
11129 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11130 echo "$ac_t""yes" 1>&6
11131 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11132 cat >> confdefs.h <<EOF
11133 #define $ac_tr_hdr 1
11134 EOF
11135
11136 else
11137 echo "$ac_t""no" 1>&6
11138 fi
11139 done
11140
11141 for ac_hdr in wchar.h
11142 do
11143 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11144 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11145 echo "configure:11146: checking for $ac_hdr" >&5
11146 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11147 echo $ac_n "(cached) $ac_c" 1>&6
11148 else
11149 cat > conftest.$ac_ext <<EOF
11150 #line 11151 "configure"
11151 #include "confdefs.h"
11152 #include <$ac_hdr>
11153 EOF
11154 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11155 { (eval echo configure:11156: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11156 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11157 if test -z "$ac_err"; then
11158 rm -rf conftest*
11159 eval "ac_cv_header_$ac_safe=yes"
11160 else
11161 echo "$ac_err" >&5
11162 echo "configure: failed program was:" >&5
11163 cat conftest.$ac_ext >&5
11164 rm -rf conftest*
11165 eval "ac_cv_header_$ac_safe=no"
11166 fi
11167 rm -f conftest*
11168 fi
11169 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11170 echo "$ac_t""yes" 1>&6
11171 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11172 cat >> confdefs.h <<EOF
11173 #define $ac_tr_hdr 1
11174 EOF
11175
11176 else
11177 echo "$ac_t""no" 1>&6
11178 fi
11179 done
11180
11181 for ac_hdr in wcstr.h
11182 do
11183 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11184 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11185 echo "configure:11186: checking for $ac_hdr" >&5
11186 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11187 echo $ac_n "(cached) $ac_c" 1>&6
11188 else
11189 cat > conftest.$ac_ext <<EOF
11190 #line 11191 "configure"
11191 #include "confdefs.h"
11192 #include <$ac_hdr>
11193 EOF
11194 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11195 { (eval echo configure:11196: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11196 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11197 if test -z "$ac_err"; then
11198 rm -rf conftest*
11199 eval "ac_cv_header_$ac_safe=yes"
11200 else
11201 echo "$ac_err" >&5
11202 echo "configure: failed program was:" >&5
11203 cat conftest.$ac_ext >&5
11204 rm -rf conftest*
11205 eval "ac_cv_header_$ac_safe=no"
11206 fi
11207 rm -f conftest*
11208 fi
11209 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11210 echo "$ac_t""yes" 1>&6
11211 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11212 cat >> confdefs.h <<EOF
11213 #define $ac_tr_hdr 1
11214 EOF
11215
11216 else
11217 echo "$ac_t""no" 1>&6
11218 fi
11219 done
11220
11221 for ac_hdr in fnmatch.h
11222 do
11223 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11224 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11225 echo "configure:11226: checking for $ac_hdr" >&5
11226 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11227 echo $ac_n "(cached) $ac_c" 1>&6
11228 else
11229 cat > conftest.$ac_ext <<EOF
11230 #line 11231 "configure"
11231 #include "confdefs.h"
11232 #include <$ac_hdr>
11233 EOF
11234 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11235 { (eval echo configure:11236: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11236 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11237 if test -z "$ac_err"; then
11238 rm -rf conftest*
11239 eval "ac_cv_header_$ac_safe=yes"
11240 else
11241 echo "$ac_err" >&5
11242 echo "configure: failed program was:" >&5
11243 cat conftest.$ac_ext >&5
11244 rm -rf conftest*
11245 eval "ac_cv_header_$ac_safe=no"
11246 fi
11247 rm -f conftest*
11248 fi
11249 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11250 echo "$ac_t""yes" 1>&6
11251 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11252 cat >> confdefs.h <<EOF
11253 #define $ac_tr_hdr 1
11254 EOF
11255
11256 else
11257 echo "$ac_t""no" 1>&6
11258 fi
11259 done
11260
11261 for ac_hdr in iconv.h
11262 do
11263 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11264 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11265 echo "configure:11266: checking for $ac_hdr" >&5
11266 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11267 echo $ac_n "(cached) $ac_c" 1>&6
11268 else
11269 cat > conftest.$ac_ext <<EOF
11270 #line 11271 "configure"
11271 #include "confdefs.h"
11272 #include <$ac_hdr>
11273 EOF
11274 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11275 { (eval echo configure:11276: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11276 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11277 if test -z "$ac_err"; then
11278 rm -rf conftest*
11279 eval "ac_cv_header_$ac_safe=yes"
11280 else
11281 echo "$ac_err" >&5
11282 echo "configure: failed program was:" >&5
11283 cat conftest.$ac_ext >&5
11284 rm -rf conftest*
11285 eval "ac_cv_header_$ac_safe=no"
11286 fi
11287 rm -f conftest*
11288 fi
11289 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11290 echo "$ac_t""yes" 1>&6
11291 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11292 cat >> confdefs.h <<EOF
11293 #define $ac_tr_hdr 1
11294 EOF
11295
11296 else
11297 echo "$ac_t""no" 1>&6
11298 fi
11299 done
11300
11301 for ac_hdr in langinfo.h
11302 do
11303 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11304 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11305 echo "configure:11306: checking for $ac_hdr" >&5
11306 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11307 echo $ac_n "(cached) $ac_c" 1>&6
11308 else
11309 cat > conftest.$ac_ext <<EOF
11310 #line 11311 "configure"
11311 #include "confdefs.h"
11312 #include <$ac_hdr>
11313 EOF
11314 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11315 { (eval echo configure:11316: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11316 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11317 if test -z "$ac_err"; then
11318 rm -rf conftest*
11319 eval "ac_cv_header_$ac_safe=yes"
11320 else
11321 echo "$ac_err" >&5
11322 echo "configure: failed program was:" >&5
11323 cat conftest.$ac_ext >&5
11324 rm -rf conftest*
11325 eval "ac_cv_header_$ac_safe=no"
11326 fi
11327 rm -f conftest*
11328 fi
11329 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11330 echo "$ac_t""yes" 1>&6
11331 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11332 cat >> confdefs.h <<EOF
11333 #define $ac_tr_hdr 1
11334 EOF
11335
11336 else
11337 echo "$ac_t""no" 1>&6
11338 fi
11339 done
11340
11341
11342 if test "$wxUSE_GUI" = "yes"; then
11343 if test "$wxUSE_UNIX" = "yes"; then
11344 for ac_hdr in X11/XKBlib.h
11345 do
11346 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11347 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11348 echo "configure:11349: checking for $ac_hdr" >&5
11349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11350 echo $ac_n "(cached) $ac_c" 1>&6
11351 else
11352 cat > conftest.$ac_ext <<EOF
11353 #line 11354 "configure"
11354 #include "confdefs.h"
11355 #include <$ac_hdr>
11356 EOF
11357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11358 { (eval echo configure:11359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11360 if test -z "$ac_err"; then
11361 rm -rf conftest*
11362 eval "ac_cv_header_$ac_safe=yes"
11363 else
11364 echo "$ac_err" >&5
11365 echo "configure: failed program was:" >&5
11366 cat conftest.$ac_ext >&5
11367 rm -rf conftest*
11368 eval "ac_cv_header_$ac_safe=no"
11369 fi
11370 rm -f conftest*
11371 fi
11372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11373 echo "$ac_t""yes" 1>&6
11374 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11375 cat >> confdefs.h <<EOF
11376 #define $ac_tr_hdr 1
11377 EOF
11378
11379 else
11380 echo "$ac_t""no" 1>&6
11381 fi
11382 done
11383
11384 fi
11385 fi
11386
11387 if test "$USE_WIN32" = 1; then
11388 for ac_hdr in w32api.h
11389 do
11390 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11391 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11392 echo "configure:11393: checking for $ac_hdr" >&5
11393 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11394 echo $ac_n "(cached) $ac_c" 1>&6
11395 else
11396 cat > conftest.$ac_ext <<EOF
11397 #line 11398 "configure"
11398 #include "confdefs.h"
11399 #include <$ac_hdr>
11400 EOF
11401 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11402 { (eval echo configure:11403: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11403 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11404 if test -z "$ac_err"; then
11405 rm -rf conftest*
11406 eval "ac_cv_header_$ac_safe=yes"
11407 else
11408 echo "$ac_err" >&5
11409 echo "configure: failed program was:" >&5
11410 cat conftest.$ac_ext >&5
11411 rm -rf conftest*
11412 eval "ac_cv_header_$ac_safe=no"
11413 fi
11414 rm -f conftest*
11415 fi
11416 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11417 echo "$ac_t""yes" 1>&6
11418 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11419 cat >> confdefs.h <<EOF
11420 #define $ac_tr_hdr 1
11421 EOF
11422
11423 else
11424 echo "$ac_t""no" 1>&6
11425 fi
11426 done
11427
11428 fi
11429
11430
11431 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11432 echo "configure:11433: checking for ANSI C header files" >&5
11433 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11434 echo $ac_n "(cached) $ac_c" 1>&6
11435 else
11436 cat > conftest.$ac_ext <<EOF
11437 #line 11438 "configure"
11438 #include "confdefs.h"
11439 #include <stdlib.h>
11440 #include <stdarg.h>
11441 #include <string.h>
11442 #include <float.h>
11443 EOF
11444 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11445 { (eval echo configure:11446: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11446 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11447 if test -z "$ac_err"; then
11448 rm -rf conftest*
11449 ac_cv_header_stdc=yes
11450 else
11451 echo "$ac_err" >&5
11452 echo "configure: failed program was:" >&5
11453 cat conftest.$ac_ext >&5
11454 rm -rf conftest*
11455 ac_cv_header_stdc=no
11456 fi
11457 rm -f conftest*
11458
11459 if test $ac_cv_header_stdc = yes; then
11460 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11461 cat > conftest.$ac_ext <<EOF
11462 #line 11463 "configure"
11463 #include "confdefs.h"
11464 #include <string.h>
11465 EOF
11466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11467 egrep "memchr" >/dev/null 2>&1; then
11468 :
11469 else
11470 rm -rf conftest*
11471 ac_cv_header_stdc=no
11472 fi
11473 rm -f conftest*
11474
11475 fi
11476
11477 if test $ac_cv_header_stdc = yes; then
11478 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11479 cat > conftest.$ac_ext <<EOF
11480 #line 11481 "configure"
11481 #include "confdefs.h"
11482 #include <stdlib.h>
11483 EOF
11484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11485 egrep "free" >/dev/null 2>&1; then
11486 :
11487 else
11488 rm -rf conftest*
11489 ac_cv_header_stdc=no
11490 fi
11491 rm -f conftest*
11492
11493 fi
11494
11495 if test $ac_cv_header_stdc = yes; then
11496 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11497 if test "$cross_compiling" = yes; then
11498 :
11499 else
11500 cat > conftest.$ac_ext <<EOF
11501 #line 11502 "configure"
11502 #include "confdefs.h"
11503 #include <ctype.h>
11504 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11505 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11506 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11507 int main () { int i; for (i = 0; i < 256; i++)
11508 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11509 exit (0); }
11510
11511 EOF
11512 if { (eval echo configure:11513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11513 then
11514 :
11515 else
11516 echo "configure: failed program was:" >&5
11517 cat conftest.$ac_ext >&5
11518 rm -fr conftest*
11519 ac_cv_header_stdc=no
11520 fi
11521 rm -fr conftest*
11522 fi
11523
11524 fi
11525 fi
11526
11527 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11528 if test $ac_cv_header_stdc = yes; then
11529 cat >> confdefs.h <<\EOF
11530 #define STDC_HEADERS 1
11531 EOF
11532
11533 fi
11534
11535 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11536 echo "configure:11537: checking for mode_t" >&5
11537 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+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 <sys/types.h>
11544 #if STDC_HEADERS
11545 #include <stdlib.h>
11546 #include <stddef.h>
11547 #endif
11548 EOF
11549 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11550 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11551 rm -rf conftest*
11552 ac_cv_type_mode_t=yes
11553 else
11554 rm -rf conftest*
11555 ac_cv_type_mode_t=no
11556 fi
11557 rm -f conftest*
11558
11559 fi
11560 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11561 if test $ac_cv_type_mode_t = no; then
11562 cat >> confdefs.h <<\EOF
11563 #define mode_t int
11564 EOF
11565
11566 fi
11567
11568 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11569 echo "configure:11570: checking for off_t" >&5
11570 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11571 echo $ac_n "(cached) $ac_c" 1>&6
11572 else
11573 cat > conftest.$ac_ext <<EOF
11574 #line 11575 "configure"
11575 #include "confdefs.h"
11576 #include <sys/types.h>
11577 #if STDC_HEADERS
11578 #include <stdlib.h>
11579 #include <stddef.h>
11580 #endif
11581 EOF
11582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11583 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11584 rm -rf conftest*
11585 ac_cv_type_off_t=yes
11586 else
11587 rm -rf conftest*
11588 ac_cv_type_off_t=no
11589 fi
11590 rm -f conftest*
11591
11592 fi
11593 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11594 if test $ac_cv_type_off_t = no; then
11595 cat >> confdefs.h <<\EOF
11596 #define off_t long
11597 EOF
11598
11599 fi
11600
11601 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11602 echo "configure:11603: checking for pid_t" >&5
11603 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11604 echo $ac_n "(cached) $ac_c" 1>&6
11605 else
11606 cat > conftest.$ac_ext <<EOF
11607 #line 11608 "configure"
11608 #include "confdefs.h"
11609 #include <sys/types.h>
11610 #if STDC_HEADERS
11611 #include <stdlib.h>
11612 #include <stddef.h>
11613 #endif
11614 EOF
11615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11616 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11617 rm -rf conftest*
11618 ac_cv_type_pid_t=yes
11619 else
11620 rm -rf conftest*
11621 ac_cv_type_pid_t=no
11622 fi
11623 rm -f conftest*
11624
11625 fi
11626 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11627 if test $ac_cv_type_pid_t = no; then
11628 cat >> confdefs.h <<\EOF
11629 #define pid_t int
11630 EOF
11631
11632 fi
11633
11634 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11635 echo "configure:11636: checking for size_t" >&5
11636 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11637 echo $ac_n "(cached) $ac_c" 1>&6
11638 else
11639 cat > conftest.$ac_ext <<EOF
11640 #line 11641 "configure"
11641 #include "confdefs.h"
11642 #include <sys/types.h>
11643 #if STDC_HEADERS
11644 #include <stdlib.h>
11645 #include <stddef.h>
11646 #endif
11647 EOF
11648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11649 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11650 rm -rf conftest*
11651 ac_cv_type_size_t=yes
11652 else
11653 rm -rf conftest*
11654 ac_cv_type_size_t=no
11655 fi
11656 rm -f conftest*
11657
11658 fi
11659 echo "$ac_t""$ac_cv_type_size_t" 1>&6
11660 if test $ac_cv_type_size_t = no; then
11661 cat >> confdefs.h <<\EOF
11662 #define size_t unsigned
11663 EOF
11664
11665 fi
11666
11667 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
11668 echo "configure:11669: checking for uid_t in sys/types.h" >&5
11669 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11670 echo $ac_n "(cached) $ac_c" 1>&6
11671 else
11672 cat > conftest.$ac_ext <<EOF
11673 #line 11674 "configure"
11674 #include "confdefs.h"
11675 #include <sys/types.h>
11676 EOF
11677 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11678 egrep "uid_t" >/dev/null 2>&1; then
11679 rm -rf conftest*
11680 ac_cv_type_uid_t=yes
11681 else
11682 rm -rf conftest*
11683 ac_cv_type_uid_t=no
11684 fi
11685 rm -f conftest*
11686
11687 fi
11688
11689 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11690 if test $ac_cv_type_uid_t = no; then
11691 cat >> confdefs.h <<\EOF
11692 #define uid_t int
11693 EOF
11694
11695 cat >> confdefs.h <<\EOF
11696 #define gid_t int
11697 EOF
11698
11699 fi
11700
11701
11702 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
11703 echo "configure:11704: checking for wchar_t" >&5
11704 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11705 echo $ac_n "(cached) $ac_c" 1>&6
11706 else
11707
11708 cat > conftest.$ac_ext <<EOF
11709 #line 11710 "configure"
11710 #include "confdefs.h"
11711 #include <wchar.h>
11712 int main() {
11713
11714 wchar_t wc, *ws;
11715 wc = L'a';
11716 ws = L"Hello, world!";
11717
11718 ; return 0; }
11719 EOF
11720 if { (eval echo configure:11721: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11721 rm -rf conftest*
11722 wx_cv_type_wchar_t=yes
11723 else
11724 echo "configure: failed program was:" >&5
11725 cat conftest.$ac_ext >&5
11726 rm -rf conftest*
11727 cat > conftest.$ac_ext <<EOF
11728 #line 11729 "configure"
11729 #include "confdefs.h"
11730 #include <stdlib.h>
11731 int main() {
11732
11733 wchar_t wc, *ws;
11734 wc = L'a';
11735 ws = L"Hello, world!";
11736
11737 ; return 0; }
11738 EOF
11739 if { (eval echo configure:11740: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11740 rm -rf conftest*
11741 wx_cv_type_wchar_t=yes
11742 else
11743 echo "configure: failed program was:" >&5
11744 cat conftest.$ac_ext >&5
11745 rm -rf conftest*
11746 wx_cv_type_wchar_t=no
11747 fi
11748 rm -f conftest*
11749
11750 fi
11751 rm -f conftest*
11752
11753 fi
11754
11755 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
11756
11757 if test "$wx_cv_type_wchar_t" = "yes"; then
11758 cat >> confdefs.h <<\EOF
11759 #define wxUSE_WCHAR_T 1
11760 EOF
11761
11762 fi
11763
11764
11765 ac_ext=C
11766 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11767 ac_cpp='$CXXCPP $CPPFLAGS'
11768 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11769 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11770 cross_compiling=$ac_cv_prog_cxx_cross
11771
11772 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
11773 echo "configure:11774: checking if size_t is unsigned int" >&5
11774 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11775 echo $ac_n "(cached) $ac_c" 1>&6
11776 else
11777 cat > conftest.$ac_ext <<EOF
11778 #line 11779 "configure"
11779 #include "confdefs.h"
11780 #include <stddef.h>
11781 int main() {
11782
11783 return 0; }
11784
11785 struct Foo { void foo(size_t); void foo(unsigned int); };
11786
11787 int bar() {
11788
11789 ; return 0; }
11790 EOF
11791 if { (eval echo configure:11792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11792 rm -rf conftest*
11793 wx_cv_size_t_is_uint=no
11794 else
11795 echo "configure: failed program was:" >&5
11796 cat conftest.$ac_ext >&5
11797 rm -rf conftest*
11798 wx_cv_size_t_is_uint=yes
11799
11800 fi
11801 rm -f conftest*
11802
11803 fi
11804
11805 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11806
11807 if test "$wx_cv_size_t_is_uint" = "yes"; then
11808 cat >> confdefs.h <<\EOF
11809 #define wxSIZE_T_IS_UINT 1
11810 EOF
11811
11812 else
11813 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
11814 echo "configure:11815: checking if size_t is unsigned long" >&5
11815 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11816 echo $ac_n "(cached) $ac_c" 1>&6
11817 else
11818 cat > conftest.$ac_ext <<EOF
11819 #line 11820 "configure"
11820 #include "confdefs.h"
11821 #include <stddef.h>
11822 int main() {
11823
11824 return 0; }
11825
11826 struct Foo { void foo(size_t); void foo(unsigned long); };
11827
11828 int bar() {
11829
11830 ; return 0; }
11831 EOF
11832 if { (eval echo configure:11833: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11833 rm -rf conftest*
11834 wx_cv_size_t_is_ulong=no
11835 else
11836 echo "configure: failed program was:" >&5
11837 cat conftest.$ac_ext >&5
11838 rm -rf conftest*
11839 wx_cv_size_t_is_ulong=yes
11840
11841 fi
11842 rm -f conftest*
11843
11844 fi
11845
11846 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11847
11848 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11849 cat >> confdefs.h <<\EOF
11850 #define wxSIZE_T_IS_ULONG 1
11851 EOF
11852
11853 fi
11854 fi
11855
11856 ac_ext=c
11857 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11858 ac_cpp='$CPP $CPPFLAGS'
11859 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11860 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11861 cross_compiling=$ac_cv_prog_cc_cross
11862
11863
11864
11865 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
11866 echo "configure:11867: checking for pw_gecos in struct passwd" >&5
11867 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11868 echo $ac_n "(cached) $ac_c" 1>&6
11869 else
11870
11871 cat > conftest.$ac_ext <<EOF
11872 #line 11873 "configure"
11873 #include "confdefs.h"
11874 #include <pwd.h>
11875 int main() {
11876
11877 char *p;
11878 struct passwd *pw;
11879 p = pw->pw_gecos;
11880
11881 ; return 0; }
11882 EOF
11883 if { (eval echo configure:11884: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11884 rm -rf conftest*
11885
11886 wx_cv_struct_pw_gecos=yes
11887
11888 else
11889 echo "configure: failed program was:" >&5
11890 cat conftest.$ac_ext >&5
11891 rm -rf conftest*
11892
11893 wx_cv_struct_pw_gecos=no
11894
11895
11896 fi
11897 rm -f conftest*
11898
11899
11900 fi
11901
11902 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
11903
11904 if test "$wx_cv_struct_pw_gecos" = "yes"; then
11905 cat >> confdefs.h <<\EOF
11906 #define HAVE_PW_GECOS 1
11907 EOF
11908
11909 fi
11910
11911
11912 echo $ac_n "checking for working const""... $ac_c" 1>&6
11913 echo "configure:11914: checking for working const" >&5
11914 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11915 echo $ac_n "(cached) $ac_c" 1>&6
11916 else
11917 cat > conftest.$ac_ext <<EOF
11918 #line 11919 "configure"
11919 #include "confdefs.h"
11920
11921 int main() {
11922
11923 /* Ultrix mips cc rejects this. */
11924 typedef int charset[2]; const charset x;
11925 /* SunOS 4.1.1 cc rejects this. */
11926 char const *const *ccp;
11927 char **p;
11928 /* NEC SVR4.0.2 mips cc rejects this. */
11929 struct point {int x, y;};
11930 static struct point const zero = {0,0};
11931 /* AIX XL C 1.02.0.0 rejects this.
11932 It does not let you subtract one const X* pointer from another in an arm
11933 of an if-expression whose if-part is not a constant expression */
11934 const char *g = "string";
11935 ccp = &g + (g ? g-g : 0);
11936 /* HPUX 7.0 cc rejects these. */
11937 ++ccp;
11938 p = (char**) ccp;
11939 ccp = (char const *const *) p;
11940 { /* SCO 3.2v4 cc rejects this. */
11941 char *t;
11942 char const *s = 0 ? (char *) 0 : (char const *) 0;
11943
11944 *t++ = 0;
11945 }
11946 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11947 int x[] = {25, 17};
11948 const int *foo = &x[0];
11949 ++foo;
11950 }
11951 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11952 typedef const int *iptr;
11953 iptr p = 0;
11954 ++p;
11955 }
11956 { /* AIX XL C 1.02.0.0 rejects this saying
11957 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11958 struct s { int j; const int *ap[3]; };
11959 struct s *b; b->j = 5;
11960 }
11961 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11962 const int foo = 10;
11963 }
11964
11965 ; return 0; }
11966 EOF
11967 if { (eval echo configure:11968: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11968 rm -rf conftest*
11969 ac_cv_c_const=yes
11970 else
11971 echo "configure: failed program was:" >&5
11972 cat conftest.$ac_ext >&5
11973 rm -rf conftest*
11974 ac_cv_c_const=no
11975 fi
11976 rm -f conftest*
11977 fi
11978
11979 echo "$ac_t""$ac_cv_c_const" 1>&6
11980 if test $ac_cv_c_const = no; then
11981 cat >> confdefs.h <<\EOF
11982 #define const
11983 EOF
11984
11985 fi
11986
11987 echo $ac_n "checking for inline""... $ac_c" 1>&6
11988 echo "configure:11989: checking for inline" >&5
11989 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11990 echo $ac_n "(cached) $ac_c" 1>&6
11991 else
11992 ac_cv_c_inline=no
11993 for ac_kw in inline __inline__ __inline; do
11994 cat > conftest.$ac_ext <<EOF
11995 #line 11996 "configure"
11996 #include "confdefs.h"
11997
11998 int main() {
11999 } $ac_kw foo() {
12000 ; return 0; }
12001 EOF
12002 if { (eval echo configure:12003: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12003 rm -rf conftest*
12004 ac_cv_c_inline=$ac_kw; break
12005 else
12006 echo "configure: failed program was:" >&5
12007 cat conftest.$ac_ext >&5
12008 fi
12009 rm -f conftest*
12010 done
12011
12012 fi
12013
12014 echo "$ac_t""$ac_cv_c_inline" 1>&6
12015 case "$ac_cv_c_inline" in
12016 inline | yes) ;;
12017 no) cat >> confdefs.h <<\EOF
12018 #define inline
12019 EOF
12020 ;;
12021 *) cat >> confdefs.h <<EOF
12022 #define inline $ac_cv_c_inline
12023 EOF
12024 ;;
12025 esac
12026
12027
12028 echo $ac_n "checking size of char""... $ac_c" 1>&6
12029 echo "configure:12030: checking size of char" >&5
12030 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
12031 echo $ac_n "(cached) $ac_c" 1>&6
12032 else
12033 if test "$cross_compiling" = yes; then
12034 ac_cv_sizeof_char=1
12035 else
12036 cat > conftest.$ac_ext <<EOF
12037 #line 12038 "configure"
12038 #include "confdefs.h"
12039 #include <stdio.h>
12040 main()
12041 {
12042 FILE *f=fopen("conftestval", "w");
12043 if (!f) exit(1);
12044 fprintf(f, "%d\n", sizeof(char));
12045 exit(0);
12046 }
12047 EOF
12048 if { (eval echo configure:12049: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12049 then
12050 ac_cv_sizeof_char=`cat conftestval`
12051 else
12052 echo "configure: failed program was:" >&5
12053 cat conftest.$ac_ext >&5
12054 rm -fr conftest*
12055 ac_cv_sizeof_char=0
12056 fi
12057 rm -fr conftest*
12058 fi
12059
12060 fi
12061 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12062 cat >> confdefs.h <<EOF
12063 #define SIZEOF_CHAR $ac_cv_sizeof_char
12064 EOF
12065
12066
12067 echo $ac_n "checking size of short""... $ac_c" 1>&6
12068 echo "configure:12069: checking size of short" >&5
12069 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12070 echo $ac_n "(cached) $ac_c" 1>&6
12071 else
12072 if test "$cross_compiling" = yes; then
12073 ac_cv_sizeof_short=2
12074 else
12075 cat > conftest.$ac_ext <<EOF
12076 #line 12077 "configure"
12077 #include "confdefs.h"
12078 #include <stdio.h>
12079 main()
12080 {
12081 FILE *f=fopen("conftestval", "w");
12082 if (!f) exit(1);
12083 fprintf(f, "%d\n", sizeof(short));
12084 exit(0);
12085 }
12086 EOF
12087 if { (eval echo configure:12088: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12088 then
12089 ac_cv_sizeof_short=`cat conftestval`
12090 else
12091 echo "configure: failed program was:" >&5
12092 cat conftest.$ac_ext >&5
12093 rm -fr conftest*
12094 ac_cv_sizeof_short=0
12095 fi
12096 rm -fr conftest*
12097 fi
12098
12099 fi
12100 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12101 cat >> confdefs.h <<EOF
12102 #define SIZEOF_SHORT $ac_cv_sizeof_short
12103 EOF
12104
12105
12106 echo $ac_n "checking size of int *""... $ac_c" 1>&6
12107 echo "configure:12108: checking size of int *" >&5
12108 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12109 echo $ac_n "(cached) $ac_c" 1>&6
12110 else
12111 if test "$cross_compiling" = yes; then
12112 ac_cv_sizeof_int_p=4
12113 else
12114 cat > conftest.$ac_ext <<EOF
12115 #line 12116 "configure"
12116 #include "confdefs.h"
12117 #include <stdio.h>
12118 main()
12119 {
12120 FILE *f=fopen("conftestval", "w");
12121 if (!f) exit(1);
12122 fprintf(f, "%d\n", sizeof(int *));
12123 exit(0);
12124 }
12125 EOF
12126 if { (eval echo configure:12127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12127 then
12128 ac_cv_sizeof_int_p=`cat conftestval`
12129 else
12130 echo "configure: failed program was:" >&5
12131 cat conftest.$ac_ext >&5
12132 rm -fr conftest*
12133 ac_cv_sizeof_int_p=0
12134 fi
12135 rm -fr conftest*
12136 fi
12137
12138 fi
12139 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12140 cat >> confdefs.h <<EOF
12141 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
12142 EOF
12143
12144
12145 echo $ac_n "checking size of int""... $ac_c" 1>&6
12146 echo "configure:12147: checking size of int" >&5
12147 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12148 echo $ac_n "(cached) $ac_c" 1>&6
12149 else
12150 if test "$cross_compiling" = yes; then
12151 ac_cv_sizeof_int=4
12152 else
12153 cat > conftest.$ac_ext <<EOF
12154 #line 12155 "configure"
12155 #include "confdefs.h"
12156 #include <stdio.h>
12157 main()
12158 {
12159 FILE *f=fopen("conftestval", "w");
12160 if (!f) exit(1);
12161 fprintf(f, "%d\n", sizeof(int));
12162 exit(0);
12163 }
12164 EOF
12165 if { (eval echo configure:12166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12166 then
12167 ac_cv_sizeof_int=`cat conftestval`
12168 else
12169 echo "configure: failed program was:" >&5
12170 cat conftest.$ac_ext >&5
12171 rm -fr conftest*
12172 ac_cv_sizeof_int=0
12173 fi
12174 rm -fr conftest*
12175 fi
12176
12177 fi
12178 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12179 cat >> confdefs.h <<EOF
12180 #define SIZEOF_INT $ac_cv_sizeof_int
12181 EOF
12182
12183
12184 echo $ac_n "checking size of long""... $ac_c" 1>&6
12185 echo "configure:12186: checking size of long" >&5
12186 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12187 echo $ac_n "(cached) $ac_c" 1>&6
12188 else
12189 if test "$cross_compiling" = yes; then
12190 ac_cv_sizeof_long=4
12191 else
12192 cat > conftest.$ac_ext <<EOF
12193 #line 12194 "configure"
12194 #include "confdefs.h"
12195 #include <stdio.h>
12196 main()
12197 {
12198 FILE *f=fopen("conftestval", "w");
12199 if (!f) exit(1);
12200 fprintf(f, "%d\n", sizeof(long));
12201 exit(0);
12202 }
12203 EOF
12204 if { (eval echo configure:12205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12205 then
12206 ac_cv_sizeof_long=`cat conftestval`
12207 else
12208 echo "configure: failed program was:" >&5
12209 cat conftest.$ac_ext >&5
12210 rm -fr conftest*
12211 ac_cv_sizeof_long=0
12212 fi
12213 rm -fr conftest*
12214 fi
12215
12216 fi
12217 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12218 cat >> confdefs.h <<EOF
12219 #define SIZEOF_LONG $ac_cv_sizeof_long
12220 EOF
12221
12222
12223 echo $ac_n "checking size of long long""... $ac_c" 1>&6
12224 echo "configure:12225: checking size of long long" >&5
12225 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12226 echo $ac_n "(cached) $ac_c" 1>&6
12227 else
12228 if test "$cross_compiling" = yes; then
12229 ac_cv_sizeof_long_long=0
12230 else
12231 cat > conftest.$ac_ext <<EOF
12232 #line 12233 "configure"
12233 #include "confdefs.h"
12234 #include <stdio.h>
12235 main()
12236 {
12237 FILE *f=fopen("conftestval", "w");
12238 if (!f) exit(1);
12239 fprintf(f, "%d\n", sizeof(long long));
12240 exit(0);
12241 }
12242 EOF
12243 if { (eval echo configure:12244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12244 then
12245 ac_cv_sizeof_long_long=`cat conftestval`
12246 else
12247 echo "configure: failed program was:" >&5
12248 cat conftest.$ac_ext >&5
12249 rm -fr conftest*
12250 ac_cv_sizeof_long_long=0
12251 fi
12252 rm -fr conftest*
12253 fi
12254
12255 fi
12256 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12257 cat >> confdefs.h <<EOF
12258 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12259 EOF
12260
12261
12262
12263 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
12264 echo "configure:12265: checking size of wchar_t" >&5
12265 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12266 echo $ac_n "(cached) $ac_c" 1>&6
12267 else
12268
12269 if test "$cross_compiling" = yes; then
12270 wx_cv_sizeof_wchar_t=4
12271
12272 else
12273 cat > conftest.$ac_ext <<EOF
12274 #line 12275 "configure"
12275 #include "confdefs.h"
12276
12277 #ifdef HAVE_WCHAR_H
12278 # include <wchar.h>
12279 #endif
12280 #ifdef HAVE_STDLIB_H
12281 # include <stdlib.h>
12282 #endif
12283 #include <stdio.h>
12284 int main()
12285 {
12286 FILE *f=fopen("conftestval", "w");
12287 if (!f) exit(1);
12288 fprintf(f, "%i", sizeof(wchar_t));
12289 exit(0);
12290 }
12291
12292 EOF
12293 if { (eval echo configure:12294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12294 then
12295 wx_cv_sizeof_wchar_t=`cat conftestval`
12296 else
12297 echo "configure: failed program was:" >&5
12298 cat conftest.$ac_ext >&5
12299 rm -fr conftest*
12300 wx_cv_sizeof_wchar_t=0
12301 fi
12302 rm -fr conftest*
12303 fi
12304
12305
12306 fi
12307
12308 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12309
12310 cat >> confdefs.h <<EOF
12311 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
12312 EOF
12313
12314
12315 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
12316 echo "configure:12317: checking whether byte ordering is bigendian" >&5
12317 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12318 echo $ac_n "(cached) $ac_c" 1>&6
12319 else
12320 ac_cv_c_bigendian=unknown
12321 # See if sys/param.h defines the BYTE_ORDER macro.
12322 cat > conftest.$ac_ext <<EOF
12323 #line 12324 "configure"
12324 #include "confdefs.h"
12325 #include <sys/types.h>
12326 #include <sys/param.h>
12327 int main() {
12328
12329 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12330 bogus endian macros
12331 #endif
12332 ; return 0; }
12333 EOF
12334 if { (eval echo configure:12335: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12335 rm -rf conftest*
12336 # It does; now see whether it defined to BIG_ENDIAN or not.
12337 cat > conftest.$ac_ext <<EOF
12338 #line 12339 "configure"
12339 #include "confdefs.h"
12340 #include <sys/types.h>
12341 #include <sys/param.h>
12342 int main() {
12343
12344 #if BYTE_ORDER != BIG_ENDIAN
12345 not big endian
12346 #endif
12347 ; return 0; }
12348 EOF
12349 if { (eval echo configure:12350: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12350 rm -rf conftest*
12351 ac_cv_c_bigendian=yes
12352 else
12353 echo "configure: failed program was:" >&5
12354 cat conftest.$ac_ext >&5
12355 rm -rf conftest*
12356 ac_cv_c_bigendian=no
12357 fi
12358 rm -f conftest*
12359 else
12360 echo "configure: failed program was:" >&5
12361 cat conftest.$ac_ext >&5
12362 fi
12363 rm -f conftest*
12364 if test $ac_cv_c_bigendian = unknown; then
12365 if test "$cross_compiling" = yes; then
12366 ac_cv_c_bigendian=unknown
12367 else
12368 cat > conftest.$ac_ext <<EOF
12369 #line 12370 "configure"
12370 #include "confdefs.h"
12371 main () {
12372 /* Are we little or big endian? From Harbison&Steele. */
12373 union
12374 {
12375 long l;
12376 char c[sizeof (long)];
12377 } u;
12378 u.l = 1;
12379 exit (u.c[sizeof (long) - 1] == 1);
12380 }
12381 EOF
12382 if { (eval echo configure:12383: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12383 then
12384 ac_cv_c_bigendian=no
12385 else
12386 echo "configure: failed program was:" >&5
12387 cat conftest.$ac_ext >&5
12388 rm -fr conftest*
12389 ac_cv_c_bigendian=yes
12390 fi
12391 rm -fr conftest*
12392 fi
12393
12394 fi
12395 fi
12396
12397 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
12398 if test $ac_cv_c_bigendian = unknown; then
12399 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
12400 fi
12401 if test $ac_cv_c_bigendian = yes; then
12402 cat >> confdefs.h <<\EOF
12403 #define WORDS_BIGENDIAN 1
12404 EOF
12405
12406 fi
12407
12408
12409
12410 if test "$cross_compiling" = "yes"; then
12411 cat >> confdefs.h <<\EOF
12412 #define wxUSE_IOSTREAMH 1
12413 EOF
12414
12415 else
12416
12417 ac_ext=C
12418 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12419 ac_cpp='$CXXCPP $CPPFLAGS'
12420 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12421 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12422 cross_compiling=$ac_cv_prog_cxx_cross
12423
12424
12425 for ac_hdr in iostream
12426 do
12427 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12428 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12429 echo "configure:12430: checking for $ac_hdr" >&5
12430 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12431 echo $ac_n "(cached) $ac_c" 1>&6
12432 else
12433 cat > conftest.$ac_ext <<EOF
12434 #line 12435 "configure"
12435 #include "confdefs.h"
12436 #include <$ac_hdr>
12437 EOF
12438 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12439 { (eval echo configure:12440: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12440 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12441 if test -z "$ac_err"; then
12442 rm -rf conftest*
12443 eval "ac_cv_header_$ac_safe=yes"
12444 else
12445 echo "$ac_err" >&5
12446 echo "configure: failed program was:" >&5
12447 cat conftest.$ac_ext >&5
12448 rm -rf conftest*
12449 eval "ac_cv_header_$ac_safe=no"
12450 fi
12451 rm -f conftest*
12452 fi
12453 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12454 echo "$ac_t""yes" 1>&6
12455 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12456 cat >> confdefs.h <<EOF
12457 #define $ac_tr_hdr 1
12458 EOF
12459
12460 else
12461 echo "$ac_t""no" 1>&6
12462 fi
12463 done
12464
12465
12466 if test "$ac_cv_header_iostream" = "yes" ; then
12467 :
12468 else
12469 cat >> confdefs.h <<\EOF
12470 #define wxUSE_IOSTREAMH 1
12471 EOF
12472
12473 fi
12474
12475 ac_ext=c
12476 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12477 ac_cpp='$CPP $CPPFLAGS'
12478 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12479 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12480 cross_compiling=$ac_cv_prog_cc_cross
12481
12482 fi
12483
12484
12485
12486 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
12487 echo "configure:12488: checking if C++ compiler supports bool" >&5
12488 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12489 echo $ac_n "(cached) $ac_c" 1>&6
12490 else
12491
12492
12493 ac_ext=C
12494 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12495 ac_cpp='$CXXCPP $CPPFLAGS'
12496 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12497 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12498 cross_compiling=$ac_cv_prog_cxx_cross
12499
12500
12501 cat > conftest.$ac_ext <<EOF
12502 #line 12503 "configure"
12503 #include "confdefs.h"
12504
12505
12506 int main() {
12507
12508 bool b = true;
12509
12510 return 0;
12511
12512 ; return 0; }
12513 EOF
12514 if { (eval echo configure:12515: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12515 rm -rf conftest*
12516
12517 wx_cv_cpp_bool=yes
12518
12519 else
12520 echo "configure: failed program was:" >&5
12521 cat conftest.$ac_ext >&5
12522 rm -rf conftest*
12523
12524 wx_cv_cpp_bool=no
12525
12526
12527 fi
12528 rm -f conftest*
12529
12530 ac_ext=c
12531 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12532 ac_cpp='$CPP $CPPFLAGS'
12533 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12534 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12535 cross_compiling=$ac_cv_prog_cc_cross
12536
12537
12538 fi
12539
12540 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
12541
12542 if test "$wx_cv_cpp_bool" = "yes"; then
12543 cat >> confdefs.h <<\EOF
12544 #define HAVE_BOOL 1
12545 EOF
12546
12547 fi
12548
12549
12550
12551 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12552 echo "configure:12553: checking for wcslen in -lc" >&5
12553 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12554 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12555 echo $ac_n "(cached) $ac_c" 1>&6
12556 else
12557 ac_save_LIBS="$LIBS"
12558 LIBS="-lc $LIBS"
12559 cat > conftest.$ac_ext <<EOF
12560 #line 12561 "configure"
12561 #include "confdefs.h"
12562 /* Override any gcc2 internal prototype to avoid an error. */
12563 /* We use char because int might match the return type of a gcc2
12564 builtin and then its argument prototype would still apply. */
12565 char wcslen();
12566
12567 int main() {
12568 wcslen()
12569 ; return 0; }
12570 EOF
12571 if { (eval echo configure:12572: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12572 rm -rf conftest*
12573 eval "ac_cv_lib_$ac_lib_var=yes"
12574 else
12575 echo "configure: failed program was:" >&5
12576 cat conftest.$ac_ext >&5
12577 rm -rf conftest*
12578 eval "ac_cv_lib_$ac_lib_var=no"
12579 fi
12580 rm -f conftest*
12581 LIBS="$ac_save_LIBS"
12582
12583 fi
12584 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12585 echo "$ac_t""yes" 1>&6
12586
12587 cat >> confdefs.h <<\EOF
12588 #define HAVE_WCSLEN 1
12589 EOF
12590
12591 WCHAR_LINK=""
12592
12593 else
12594 echo "$ac_t""no" 1>&6
12595
12596 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12597 echo "configure:12598: checking for wcslen in -lw" >&5
12598 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12599 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12600 echo $ac_n "(cached) $ac_c" 1>&6
12601 else
12602 ac_save_LIBS="$LIBS"
12603 LIBS="-lw $LIBS"
12604 cat > conftest.$ac_ext <<EOF
12605 #line 12606 "configure"
12606 #include "confdefs.h"
12607 /* Override any gcc2 internal prototype to avoid an error. */
12608 /* We use char because int might match the return type of a gcc2
12609 builtin and then its argument prototype would still apply. */
12610 char wcslen();
12611
12612 int main() {
12613 wcslen()
12614 ; return 0; }
12615 EOF
12616 if { (eval echo configure:12617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12617 rm -rf conftest*
12618 eval "ac_cv_lib_$ac_lib_var=yes"
12619 else
12620 echo "configure: failed program was:" >&5
12621 cat conftest.$ac_ext >&5
12622 rm -rf conftest*
12623 eval "ac_cv_lib_$ac_lib_var=no"
12624 fi
12625 rm -f conftest*
12626 LIBS="$ac_save_LIBS"
12627
12628 fi
12629 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12630 echo "$ac_t""yes" 1>&6
12631
12632 cat >> confdefs.h <<\EOF
12633 #define HAVE_WCSLEN 1
12634 EOF
12635
12636 WCHAR_LINK="-lw"
12637
12638 else
12639 echo "$ac_t""no" 1>&6
12640 fi
12641
12642
12643 fi
12644
12645
12646 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12647 echo "configure:12648: checking for vprintf" >&5
12648 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12649 echo $ac_n "(cached) $ac_c" 1>&6
12650 else
12651 cat > conftest.$ac_ext <<EOF
12652 #line 12653 "configure"
12653 #include "confdefs.h"
12654 /* System header to define __stub macros and hopefully few prototypes,
12655 which can conflict with char vprintf(); below. */
12656 #include <assert.h>
12657 /* Override any gcc2 internal prototype to avoid an error. */
12658 /* We use char because int might match the return type of a gcc2
12659 builtin and then its argument prototype would still apply. */
12660 char vprintf();
12661
12662 int main() {
12663
12664 /* The GNU C library defines this for functions which it implements
12665 to always fail with ENOSYS. Some functions are actually named
12666 something starting with __ and the normal name is an alias. */
12667 #if defined (__stub_vprintf) || defined (__stub___vprintf)
12668 choke me
12669 #else
12670 vprintf();
12671 #endif
12672
12673 ; return 0; }
12674 EOF
12675 if { (eval echo configure:12676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12676 rm -rf conftest*
12677 eval "ac_cv_func_vprintf=yes"
12678 else
12679 echo "configure: failed program was:" >&5
12680 cat conftest.$ac_ext >&5
12681 rm -rf conftest*
12682 eval "ac_cv_func_vprintf=no"
12683 fi
12684 rm -f conftest*
12685 fi
12686
12687 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12688 echo "$ac_t""yes" 1>&6
12689 cat >> confdefs.h <<\EOF
12690 #define HAVE_VPRINTF 1
12691 EOF
12692
12693 else
12694 echo "$ac_t""no" 1>&6
12695 fi
12696
12697 if test "$ac_cv_func_vprintf" != yes; then
12698 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12699 echo "configure:12700: checking for _doprnt" >&5
12700 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12701 echo $ac_n "(cached) $ac_c" 1>&6
12702 else
12703 cat > conftest.$ac_ext <<EOF
12704 #line 12705 "configure"
12705 #include "confdefs.h"
12706 /* System header to define __stub macros and hopefully few prototypes,
12707 which can conflict with char _doprnt(); below. */
12708 #include <assert.h>
12709 /* Override any gcc2 internal prototype to avoid an error. */
12710 /* We use char because int might match the return type of a gcc2
12711 builtin and then its argument prototype would still apply. */
12712 char _doprnt();
12713
12714 int main() {
12715
12716 /* The GNU C library defines this for functions which it implements
12717 to always fail with ENOSYS. Some functions are actually named
12718 something starting with __ and the normal name is an alias. */
12719 #if defined (__stub__doprnt) || defined (__stub____doprnt)
12720 choke me
12721 #else
12722 _doprnt();
12723 #endif
12724
12725 ; return 0; }
12726 EOF
12727 if { (eval echo configure:12728: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12728 rm -rf conftest*
12729 eval "ac_cv_func__doprnt=yes"
12730 else
12731 echo "configure: failed program was:" >&5
12732 cat conftest.$ac_ext >&5
12733 rm -rf conftest*
12734 eval "ac_cv_func__doprnt=no"
12735 fi
12736 rm -f conftest*
12737 fi
12738
12739 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12740 echo "$ac_t""yes" 1>&6
12741 cat >> confdefs.h <<\EOF
12742 #define HAVE_DOPRNT 1
12743 EOF
12744
12745 else
12746 echo "$ac_t""no" 1>&6
12747 fi
12748
12749 fi
12750
12751
12752
12753
12754
12755
12756
12757 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
12758 echo "configure:12759: checking for vsnprintf" >&5
12759 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12760 echo $ac_n "(cached) $ac_c" 1>&6
12761 else
12762
12763 cat > conftest.$ac_ext <<EOF
12764 #line 12765 "configure"
12765 #include "confdefs.h"
12766
12767 #include <stdio.h>
12768 #include <stdarg.h>
12769
12770 int main() {
12771
12772 int wx_test_vsnprintf(const char *, ...);
12773
12774 wx_test_vsnprintf("%s");
12775 return 0;
12776 }
12777
12778 int wx_test_vsnprintf(const char *fmt, ...)
12779 {
12780 char *s;
12781
12782 va_list argp;
12783 va_start(argp, fmt);
12784 vsnprintf(s, 42, fmt, argp);
12785 va_end(argp);
12786
12787 ; return 0; }
12788 EOF
12789 if { (eval echo configure:12790: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12790 rm -rf conftest*
12791
12792 wx_cv_func_vsnprintf=yes
12793
12794 else
12795 echo "configure: failed program was:" >&5
12796 cat conftest.$ac_ext >&5
12797 rm -rf conftest*
12798
12799 cat > conftest.$ac_ext <<EOF
12800 #line 12801 "configure"
12801 #include "confdefs.h"
12802
12803 #include <stdio.h>
12804 #include <stdarg.h>
12805
12806 int main() {
12807
12808 int wx_test_vsnprintf(const char *, ...);
12809
12810 wx_test_vsnprintf("%s");
12811 return 0;
12812 }
12813
12814 int wx_test_vsnprintf(const char *fmt, ...)
12815 {
12816 char *s;
12817
12818 va_list argp;
12819 va_start(argp, fmt);
12820 _vsnprintf(s, 42, fmt, argp);
12821 va_end(argp);
12822
12823 ; return 0; }
12824 EOF
12825 if { (eval echo configure:12826: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12826 rm -rf conftest*
12827
12828 wx_cv_func_vsnprintf=yes
12829
12830 else
12831 echo "configure: failed program was:" >&5
12832 cat conftest.$ac_ext >&5
12833 rm -rf conftest*
12834
12835 wx_cv_func_vsnprintf=no
12836
12837 fi
12838 rm -f conftest*
12839
12840 fi
12841 rm -f conftest*
12842
12843 fi
12844
12845 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
12846
12847 if test "$wx_cv_func_vsnprintf" = yes; then
12848 cat >> confdefs.h <<\EOF
12849 #define HAVE_VSNPRINTF 1
12850 EOF
12851
12852 else
12853 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
12854 fi
12855
12856 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
12857 echo "configure:12858: checking for vsscanf" >&5
12858 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12859 echo $ac_n "(cached) $ac_c" 1>&6
12860 else
12861
12862 cat > conftest.$ac_ext <<EOF
12863 #line 12864 "configure"
12864 #include "confdefs.h"
12865
12866 #include <stdio.h>
12867 #include <stdarg.h>
12868
12869 int main() {
12870
12871 int wx_test_vsscanf(const char *, ...);
12872
12873 wx_test_vsscanf("%d");
12874 return 0;
12875 }
12876
12877 int wx_test_vsscanf(const char *fmt, ...)
12878 {
12879 va_list argp;
12880 va_start(argp, fmt);
12881 vsscanf("42", fmt, argp);
12882 va_end(argp);
12883
12884 ; return 0; }
12885 EOF
12886 if { (eval echo configure:12887: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12887 rm -rf conftest*
12888
12889 wx_cv_func_vsscanf=yes
12890
12891 else
12892 echo "configure: failed program was:" >&5
12893 cat conftest.$ac_ext >&5
12894 rm -rf conftest*
12895
12896 wx_cv_func_vsscanf=no
12897
12898 fi
12899 rm -f conftest*
12900
12901 fi
12902
12903 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
12904
12905 if test "$wx_cv_func_vsscanf" = yes; then
12906 cat >> confdefs.h <<\EOF
12907 #define HAVE_VSSCANF 1
12908 EOF
12909
12910 fi
12911
12912 if test "$TOOLKIT" != "MSW"; then
12913
12914
12915
12916 ac_ext=C
12917 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12918 ac_cpp='$CXXCPP $CPPFLAGS'
12919 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12920 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12921 cross_compiling=$ac_cv_prog_cxx_cross
12922
12923 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
12924 echo "configure:12925: checking if iconv() takes char**" >&5
12925 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12926 echo $ac_n "(cached) $ac_c" 1>&6
12927 else
12928
12929 cat > conftest.$ac_ext <<EOF
12930 #line 12931 "configure"
12931 #include "confdefs.h"
12932 #include <iconv.h>
12933 int main() {
12934
12935 char **inbuf, **outbuf;
12936 iconv_t cd;
12937 size_t insz, outsz;
12938 iconv(cd, inbuf, &insz, outbuf, &outsz);
12939
12940 ; return 0; }
12941 EOF
12942 if { (eval echo configure:12943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12943 rm -rf conftest*
12944 wx_cv_iconv_takes_char=yes
12945 else
12946 echo "configure: failed program was:" >&5
12947 cat conftest.$ac_ext >&5
12948 rm -rf conftest*
12949 wx_cv_iconv_takes_char=no
12950 fi
12951 rm -f conftest*
12952
12953 fi
12954
12955 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
12956 ac_ext=c
12957 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12958 ac_cpp='$CPP $CPPFLAGS'
12959 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12960 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12961 cross_compiling=$ac_cv_prog_cc_cross
12962
12963 if test "$wx_cv_iconv_takes_char" = yes ; then
12964 cat >> confdefs.h <<\EOF
12965 #define WX_ICONV_TAKES_CHAR 1
12966 EOF
12967
12968 fi
12969
12970
12971 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12972 for ac_func in sigaction
12973 do
12974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12975 echo "configure:12976: checking for $ac_func" >&5
12976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12977 echo $ac_n "(cached) $ac_c" 1>&6
12978 else
12979 cat > conftest.$ac_ext <<EOF
12980 #line 12981 "configure"
12981 #include "confdefs.h"
12982 /* System header to define __stub macros and hopefully few prototypes,
12983 which can conflict with char $ac_func(); below. */
12984 #include <assert.h>
12985 /* Override any gcc2 internal prototype to avoid an error. */
12986 /* We use char because int might match the return type of a gcc2
12987 builtin and then its argument prototype would still apply. */
12988 char $ac_func();
12989
12990 int main() {
12991
12992 /* The GNU C library defines this for functions which it implements
12993 to always fail with ENOSYS. Some functions are actually named
12994 something starting with __ and the normal name is an alias. */
12995 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12996 choke me
12997 #else
12998 $ac_func();
12999 #endif
13000
13001 ; return 0; }
13002 EOF
13003 if { (eval echo configure:13004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13004 rm -rf conftest*
13005 eval "ac_cv_func_$ac_func=yes"
13006 else
13007 echo "configure: failed program was:" >&5
13008 cat conftest.$ac_ext >&5
13009 rm -rf conftest*
13010 eval "ac_cv_func_$ac_func=no"
13011 fi
13012 rm -f conftest*
13013 fi
13014
13015 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13016 echo "$ac_t""yes" 1>&6
13017 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13018 cat >> confdefs.h <<EOF
13019 #define $ac_tr_func 1
13020 EOF
13021
13022 else
13023 echo "$ac_t""no" 1>&6
13024 fi
13025 done
13026
13027
13028 if test "$ac_cv_func_sigaction" = "no"; then
13029 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
13030 wxUSE_ON_FATAL_EXCEPTION=no
13031 fi
13032
13033 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
13034
13035 ac_ext=C
13036 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13037 ac_cpp='$CXXCPP $CPPFLAGS'
13038 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13039 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13040 cross_compiling=$ac_cv_prog_cxx_cross
13041
13042
13043 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
13044 echo "configure:13045: checking for sa_handler type" >&5
13045 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
13046 echo $ac_n "(cached) $ac_c" 1>&6
13047 else
13048
13049 cat > conftest.$ac_ext <<EOF
13050 #line 13051 "configure"
13051 #include "confdefs.h"
13052 #include <signal.h>
13053 int main() {
13054
13055 extern void testSigHandler(int);
13056
13057 struct sigaction sa;
13058 sa.sa_handler = testSigHandler;
13059
13060 ; return 0; }
13061 EOF
13062 if { (eval echo configure:13063: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13063 rm -rf conftest*
13064
13065 wx_cv_type_sa_handler=int
13066
13067 else
13068 echo "configure: failed program was:" >&5
13069 cat conftest.$ac_ext >&5
13070 rm -rf conftest*
13071
13072 wx_cv_type_sa_handler=void
13073
13074 fi
13075 rm -f conftest*
13076
13077 fi
13078
13079 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
13080
13081 ac_ext=c
13082 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13083 ac_cpp='$CPP $CPPFLAGS'
13084 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13085 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13086 cross_compiling=$ac_cv_prog_cc_cross
13087
13088
13089 cat >> confdefs.h <<EOF
13090 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13091 EOF
13092
13093 fi
13094 fi
13095
13096 for ac_func in vfork
13097 do
13098 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13099 echo "configure:13100: checking for $ac_func" >&5
13100 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13101 echo $ac_n "(cached) $ac_c" 1>&6
13102 else
13103 cat > conftest.$ac_ext <<EOF
13104 #line 13105 "configure"
13105 #include "confdefs.h"
13106 /* System header to define __stub macros and hopefully few prototypes,
13107 which can conflict with char $ac_func(); below. */
13108 #include <assert.h>
13109 /* Override any gcc2 internal prototype to avoid an error. */
13110 /* We use char because int might match the return type of a gcc2
13111 builtin and then its argument prototype would still apply. */
13112 char $ac_func();
13113
13114 int main() {
13115
13116 /* The GNU C library defines this for functions which it implements
13117 to always fail with ENOSYS. Some functions are actually named
13118 something starting with __ and the normal name is an alias. */
13119 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13120 choke me
13121 #else
13122 $ac_func();
13123 #endif
13124
13125 ; return 0; }
13126 EOF
13127 if { (eval echo configure:13128: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13128 rm -rf conftest*
13129 eval "ac_cv_func_$ac_func=yes"
13130 else
13131 echo "configure: failed program was:" >&5
13132 cat conftest.$ac_ext >&5
13133 rm -rf conftest*
13134 eval "ac_cv_func_$ac_func=no"
13135 fi
13136 rm -f conftest*
13137 fi
13138
13139 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13140 echo "$ac_t""yes" 1>&6
13141 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13142 cat >> confdefs.h <<EOF
13143 #define $ac_tr_func 1
13144 EOF
13145
13146 else
13147 echo "$ac_t""no" 1>&6
13148 fi
13149 done
13150
13151
13152 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13153 for ac_func in fcntl flock
13154 do
13155 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13156 echo "configure:13157: checking for $ac_func" >&5
13157 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13158 echo $ac_n "(cached) $ac_c" 1>&6
13159 else
13160 cat > conftest.$ac_ext <<EOF
13161 #line 13162 "configure"
13162 #include "confdefs.h"
13163 /* System header to define __stub macros and hopefully few prototypes,
13164 which can conflict with char $ac_func(); below. */
13165 #include <assert.h>
13166 /* Override any gcc2 internal prototype to avoid an error. */
13167 /* We use char because int might match the return type of a gcc2
13168 builtin and then its argument prototype would still apply. */
13169 char $ac_func();
13170
13171 int main() {
13172
13173 /* The GNU C library defines this for functions which it implements
13174 to always fail with ENOSYS. Some functions are actually named
13175 something starting with __ and the normal name is an alias. */
13176 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13177 choke me
13178 #else
13179 $ac_func();
13180 #endif
13181
13182 ; return 0; }
13183 EOF
13184 if { (eval echo configure:13185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13185 rm -rf conftest*
13186 eval "ac_cv_func_$ac_func=yes"
13187 else
13188 echo "configure: failed program was:" >&5
13189 cat conftest.$ac_ext >&5
13190 rm -rf conftest*
13191 eval "ac_cv_func_$ac_func=no"
13192 fi
13193 rm -f conftest*
13194 fi
13195
13196 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13197 echo "$ac_t""yes" 1>&6
13198 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13199 cat >> confdefs.h <<EOF
13200 #define $ac_tr_func 1
13201 EOF
13202 break
13203 else
13204 echo "$ac_t""no" 1>&6
13205 fi
13206 done
13207
13208
13209 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
13210 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
13211 wxUSE_SNGLINST_CHECKER=no
13212 fi
13213 fi
13214
13215 for ac_func in timegm
13216 do
13217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13218 echo "configure:13219: checking for $ac_func" >&5
13219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13220 echo $ac_n "(cached) $ac_c" 1>&6
13221 else
13222 cat > conftest.$ac_ext <<EOF
13223 #line 13224 "configure"
13224 #include "confdefs.h"
13225 /* System header to define __stub macros and hopefully few prototypes,
13226 which can conflict with char $ac_func(); below. */
13227 #include <assert.h>
13228 /* Override any gcc2 internal prototype to avoid an error. */
13229 /* We use char because int might match the return type of a gcc2
13230 builtin and then its argument prototype would still apply. */
13231 char $ac_func();
13232
13233 int main() {
13234
13235 /* The GNU C library defines this for functions which it implements
13236 to always fail with ENOSYS. Some functions are actually named
13237 something starting with __ and the normal name is an alias. */
13238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13239 choke me
13240 #else
13241 $ac_func();
13242 #endif
13243
13244 ; return 0; }
13245 EOF
13246 if { (eval echo configure:13247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13247 rm -rf conftest*
13248 eval "ac_cv_func_$ac_func=yes"
13249 else
13250 echo "configure: failed program was:" >&5
13251 cat conftest.$ac_ext >&5
13252 rm -rf conftest*
13253 eval "ac_cv_func_$ac_func=no"
13254 fi
13255 rm -f conftest*
13256 fi
13257
13258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13259 echo "$ac_t""yes" 1>&6
13260 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13261 cat >> confdefs.h <<EOF
13262 #define $ac_tr_func 1
13263 EOF
13264
13265 else
13266 echo "$ac_t""no" 1>&6
13267 fi
13268 done
13269
13270
13271 for ac_func in putenv setenv
13272 do
13273 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13274 echo "configure:13275: checking for $ac_func" >&5
13275 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13276 echo $ac_n "(cached) $ac_c" 1>&6
13277 else
13278 cat > conftest.$ac_ext <<EOF
13279 #line 13280 "configure"
13280 #include "confdefs.h"
13281 /* System header to define __stub macros and hopefully few prototypes,
13282 which can conflict with char $ac_func(); below. */
13283 #include <assert.h>
13284 /* Override any gcc2 internal prototype to avoid an error. */
13285 /* We use char because int might match the return type of a gcc2
13286 builtin and then its argument prototype would still apply. */
13287 char $ac_func();
13288
13289 int main() {
13290
13291 /* The GNU C library defines this for functions which it implements
13292 to always fail with ENOSYS. Some functions are actually named
13293 something starting with __ and the normal name is an alias. */
13294 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13295 choke me
13296 #else
13297 $ac_func();
13298 #endif
13299
13300 ; return 0; }
13301 EOF
13302 if { (eval echo configure:13303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13303 rm -rf conftest*
13304 eval "ac_cv_func_$ac_func=yes"
13305 else
13306 echo "configure: failed program was:" >&5
13307 cat conftest.$ac_ext >&5
13308 rm -rf conftest*
13309 eval "ac_cv_func_$ac_func=no"
13310 fi
13311 rm -f conftest*
13312 fi
13313
13314 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13315 echo "$ac_t""yes" 1>&6
13316 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13317 cat >> confdefs.h <<EOF
13318 #define $ac_tr_func 1
13319 EOF
13320 break
13321 else
13322 echo "$ac_t""no" 1>&6
13323 fi
13324 done
13325
13326
13327 HAVE_SOME_SLEEP_FUNC=0
13328 if test "$USE_BEOS" = 1; then
13329 cat >> confdefs.h <<\EOF
13330 #define HAVE_SLEEP 1
13331 EOF
13332
13333 HAVE_SOME_SLEEP_FUNC=1
13334 fi
13335
13336 if test "$USE_DARWIN" = 1; then
13337 cat >> confdefs.h <<\EOF
13338 #define HAVE_USLEEP 1
13339 EOF
13340
13341 HAVE_SOME_SLEEP_FUNC=1
13342 fi
13343
13344 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13345 POSIX4_LINK=
13346 for ac_func in nanosleep
13347 do
13348 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13349 echo "configure:13350: checking for $ac_func" >&5
13350 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13351 echo $ac_n "(cached) $ac_c" 1>&6
13352 else
13353 cat > conftest.$ac_ext <<EOF
13354 #line 13355 "configure"
13355 #include "confdefs.h"
13356 /* System header to define __stub macros and hopefully few prototypes,
13357 which can conflict with char $ac_func(); below. */
13358 #include <assert.h>
13359 /* Override any gcc2 internal prototype to avoid an error. */
13360 /* We use char because int might match the return type of a gcc2
13361 builtin and then its argument prototype would still apply. */
13362 char $ac_func();
13363
13364 int main() {
13365
13366 /* The GNU C library defines this for functions which it implements
13367 to always fail with ENOSYS. Some functions are actually named
13368 something starting with __ and the normal name is an alias. */
13369 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13370 choke me
13371 #else
13372 $ac_func();
13373 #endif
13374
13375 ; return 0; }
13376 EOF
13377 if { (eval echo configure:13378: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13378 rm -rf conftest*
13379 eval "ac_cv_func_$ac_func=yes"
13380 else
13381 echo "configure: failed program was:" >&5
13382 cat conftest.$ac_ext >&5
13383 rm -rf conftest*
13384 eval "ac_cv_func_$ac_func=no"
13385 fi
13386 rm -f conftest*
13387 fi
13388
13389 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13390 echo "$ac_t""yes" 1>&6
13391 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13392 cat >> confdefs.h <<EOF
13393 #define $ac_tr_func 1
13394 EOF
13395 cat >> confdefs.h <<\EOF
13396 #define HAVE_NANOSLEEP 1
13397 EOF
13398
13399 else
13400 echo "$ac_t""no" 1>&6
13401 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
13402 echo "configure:13403: checking for nanosleep in -lposix4" >&5
13403 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13405 echo $ac_n "(cached) $ac_c" 1>&6
13406 else
13407 ac_save_LIBS="$LIBS"
13408 LIBS="-lposix4 $LIBS"
13409 cat > conftest.$ac_ext <<EOF
13410 #line 13411 "configure"
13411 #include "confdefs.h"
13412 /* Override any gcc2 internal prototype to avoid an error. */
13413 /* We use char because int might match the return type of a gcc2
13414 builtin and then its argument prototype would still apply. */
13415 char nanosleep();
13416
13417 int main() {
13418 nanosleep()
13419 ; return 0; }
13420 EOF
13421 if { (eval echo configure:13422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13422 rm -rf conftest*
13423 eval "ac_cv_lib_$ac_lib_var=yes"
13424 else
13425 echo "configure: failed program was:" >&5
13426 cat conftest.$ac_ext >&5
13427 rm -rf conftest*
13428 eval "ac_cv_lib_$ac_lib_var=no"
13429 fi
13430 rm -f conftest*
13431 LIBS="$ac_save_LIBS"
13432
13433 fi
13434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13435 echo "$ac_t""yes" 1>&6
13436
13437 cat >> confdefs.h <<\EOF
13438 #define HAVE_NANOSLEEP 1
13439 EOF
13440
13441 POSIX4_LINK="-lposix4"
13442
13443 else
13444 echo "$ac_t""no" 1>&6
13445
13446 for ac_func in usleep
13447 do
13448 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13449 echo "configure:13450: checking for $ac_func" >&5
13450 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13451 echo $ac_n "(cached) $ac_c" 1>&6
13452 else
13453 cat > conftest.$ac_ext <<EOF
13454 #line 13455 "configure"
13455 #include "confdefs.h"
13456 /* System header to define __stub macros and hopefully few prototypes,
13457 which can conflict with char $ac_func(); below. */
13458 #include <assert.h>
13459 /* Override any gcc2 internal prototype to avoid an error. */
13460 /* We use char because int might match the return type of a gcc2
13461 builtin and then its argument prototype would still apply. */
13462 char $ac_func();
13463
13464 int main() {
13465
13466 /* The GNU C library defines this for functions which it implements
13467 to always fail with ENOSYS. Some functions are actually named
13468 something starting with __ and the normal name is an alias. */
13469 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13470 choke me
13471 #else
13472 $ac_func();
13473 #endif
13474
13475 ; return 0; }
13476 EOF
13477 if { (eval echo configure:13478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13478 rm -rf conftest*
13479 eval "ac_cv_func_$ac_func=yes"
13480 else
13481 echo "configure: failed program was:" >&5
13482 cat conftest.$ac_ext >&5
13483 rm -rf conftest*
13484 eval "ac_cv_func_$ac_func=no"
13485 fi
13486 rm -f conftest*
13487 fi
13488
13489 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13490 echo "$ac_t""yes" 1>&6
13491 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13492 cat >> confdefs.h <<EOF
13493 #define $ac_tr_func 1
13494 EOF
13495 cat >> confdefs.h <<\EOF
13496 #define HAVE_USLEEP 1
13497 EOF
13498
13499 else
13500 echo "$ac_t""no" 1>&6
13501 echo "configure: warning: wxSleep() function will not work" 1>&2
13502
13503 fi
13504 done
13505
13506
13507
13508 fi
13509
13510
13511
13512 fi
13513 done
13514
13515 fi
13516
13517 for ac_func in uname gethostname
13518 do
13519 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13520 echo "configure:13521: checking for $ac_func" >&5
13521 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13522 echo $ac_n "(cached) $ac_c" 1>&6
13523 else
13524 cat > conftest.$ac_ext <<EOF
13525 #line 13526 "configure"
13526 #include "confdefs.h"
13527 /* System header to define __stub macros and hopefully few prototypes,
13528 which can conflict with char $ac_func(); below. */
13529 #include <assert.h>
13530 /* Override any gcc2 internal prototype to avoid an error. */
13531 /* We use char because int might match the return type of a gcc2
13532 builtin and then its argument prototype would still apply. */
13533 char $ac_func();
13534
13535 int main() {
13536
13537 /* The GNU C library defines this for functions which it implements
13538 to always fail with ENOSYS. Some functions are actually named
13539 something starting with __ and the normal name is an alias. */
13540 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13541 choke me
13542 #else
13543 $ac_func();
13544 #endif
13545
13546 ; return 0; }
13547 EOF
13548 if { (eval echo configure:13549: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13549 rm -rf conftest*
13550 eval "ac_cv_func_$ac_func=yes"
13551 else
13552 echo "configure: failed program was:" >&5
13553 cat conftest.$ac_ext >&5
13554 rm -rf conftest*
13555 eval "ac_cv_func_$ac_func=no"
13556 fi
13557 rm -f conftest*
13558 fi
13559
13560 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13561 echo "$ac_t""yes" 1>&6
13562 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13563 cat >> confdefs.h <<EOF
13564 #define $ac_tr_func 1
13565 EOF
13566 break
13567 else
13568 echo "$ac_t""no" 1>&6
13569 fi
13570 done
13571
13572
13573
13574 ac_ext=C
13575 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13576 ac_cpp='$CXXCPP $CPPFLAGS'
13577 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13578 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13579 cross_compiling=$ac_cv_prog_cxx_cross
13580
13581
13582 for ac_func in strtok_r
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 #ifdef __cplusplus
13597 extern "C"
13598 #endif
13599 /* We use char because int might match the return type of a gcc2
13600 builtin and then its argument prototype would still apply. */
13601 char $ac_func();
13602
13603 int main() {
13604
13605 /* The GNU C library defines this for functions which it implements
13606 to always fail with ENOSYS. Some functions are actually named
13607 something starting with __ and the normal name is an alias. */
13608 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13609 choke me
13610 #else
13611 $ac_func();
13612 #endif
13613
13614 ; return 0; }
13615 EOF
13616 if { (eval echo configure:13617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13617 rm -rf conftest*
13618 eval "ac_cv_func_$ac_func=yes"
13619 else
13620 echo "configure: failed program was:" >&5
13621 cat conftest.$ac_ext >&5
13622 rm -rf conftest*
13623 eval "ac_cv_func_$ac_func=no"
13624 fi
13625 rm -f conftest*
13626 fi
13627
13628 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13629 echo "$ac_t""yes" 1>&6
13630 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13631 cat >> confdefs.h <<EOF
13632 #define $ac_tr_func 1
13633 EOF
13634
13635 else
13636 echo "$ac_t""no" 1>&6
13637 fi
13638 done
13639
13640
13641 ac_ext=c
13642 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13643 ac_cpp='$CPP $CPPFLAGS'
13644 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13645 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13646 cross_compiling=$ac_cv_prog_cc_cross
13647
13648
13649 INET_LINK=
13650 for ac_func in inet_addr
13651 do
13652 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13653 echo "configure:13654: checking for $ac_func" >&5
13654 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13655 echo $ac_n "(cached) $ac_c" 1>&6
13656 else
13657 cat > conftest.$ac_ext <<EOF
13658 #line 13659 "configure"
13659 #include "confdefs.h"
13660 /* System header to define __stub macros and hopefully few prototypes,
13661 which can conflict with char $ac_func(); below. */
13662 #include <assert.h>
13663 /* Override any gcc2 internal prototype to avoid an error. */
13664 /* We use char because int might match the return type of a gcc2
13665 builtin and then its argument prototype would still apply. */
13666 char $ac_func();
13667
13668 int main() {
13669
13670 /* The GNU C library defines this for functions which it implements
13671 to always fail with ENOSYS. Some functions are actually named
13672 something starting with __ and the normal name is an alias. */
13673 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13674 choke me
13675 #else
13676 $ac_func();
13677 #endif
13678
13679 ; return 0; }
13680 EOF
13681 if { (eval echo configure:13682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13682 rm -rf conftest*
13683 eval "ac_cv_func_$ac_func=yes"
13684 else
13685 echo "configure: failed program was:" >&5
13686 cat conftest.$ac_ext >&5
13687 rm -rf conftest*
13688 eval "ac_cv_func_$ac_func=no"
13689 fi
13690 rm -f conftest*
13691 fi
13692
13693 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13694 echo "$ac_t""yes" 1>&6
13695 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13696 cat >> confdefs.h <<EOF
13697 #define $ac_tr_func 1
13698 EOF
13699 cat >> confdefs.h <<\EOF
13700 #define HAVE_INET_ADDR 1
13701 EOF
13702
13703 else
13704 echo "$ac_t""no" 1>&6
13705 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
13706 echo "configure:13707: checking for inet_addr in -lnsl" >&5
13707 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13708 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13709 echo $ac_n "(cached) $ac_c" 1>&6
13710 else
13711 ac_save_LIBS="$LIBS"
13712 LIBS="-lnsl $LIBS"
13713 cat > conftest.$ac_ext <<EOF
13714 #line 13715 "configure"
13715 #include "confdefs.h"
13716 /* Override any gcc2 internal prototype to avoid an error. */
13717 /* We use char because int might match the return type of a gcc2
13718 builtin and then its argument prototype would still apply. */
13719 char inet_addr();
13720
13721 int main() {
13722 inet_addr()
13723 ; return 0; }
13724 EOF
13725 if { (eval echo configure:13726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13726 rm -rf conftest*
13727 eval "ac_cv_lib_$ac_lib_var=yes"
13728 else
13729 echo "configure: failed program was:" >&5
13730 cat conftest.$ac_ext >&5
13731 rm -rf conftest*
13732 eval "ac_cv_lib_$ac_lib_var=no"
13733 fi
13734 rm -f conftest*
13735 LIBS="$ac_save_LIBS"
13736
13737 fi
13738 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13739 echo "$ac_t""yes" 1>&6
13740 INET_LINK="nsl"
13741 else
13742 echo "$ac_t""no" 1>&6
13743 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
13744 echo "configure:13745: checking for inet_addr in -lresolv" >&5
13745 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13746 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13747 echo $ac_n "(cached) $ac_c" 1>&6
13748 else
13749 ac_save_LIBS="$LIBS"
13750 LIBS="-lresolv $LIBS"
13751 cat > conftest.$ac_ext <<EOF
13752 #line 13753 "configure"
13753 #include "confdefs.h"
13754 /* Override any gcc2 internal prototype to avoid an error. */
13755 /* We use char because int might match the return type of a gcc2
13756 builtin and then its argument prototype would still apply. */
13757 char inet_addr();
13758
13759 int main() {
13760 inet_addr()
13761 ; return 0; }
13762 EOF
13763 if { (eval echo configure:13764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13764 rm -rf conftest*
13765 eval "ac_cv_lib_$ac_lib_var=yes"
13766 else
13767 echo "configure: failed program was:" >&5
13768 cat conftest.$ac_ext >&5
13769 rm -rf conftest*
13770 eval "ac_cv_lib_$ac_lib_var=no"
13771 fi
13772 rm -f conftest*
13773 LIBS="$ac_save_LIBS"
13774
13775 fi
13776 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13777 echo "$ac_t""yes" 1>&6
13778 INET_LINK="resolv"
13779
13780 else
13781 echo "$ac_t""no" 1>&6
13782 fi
13783
13784
13785 fi
13786
13787
13788
13789 fi
13790 done
13791
13792
13793 for ac_func in inet_aton
13794 do
13795 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13796 echo "configure:13797: checking for $ac_func" >&5
13797 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13798 echo $ac_n "(cached) $ac_c" 1>&6
13799 else
13800 cat > conftest.$ac_ext <<EOF
13801 #line 13802 "configure"
13802 #include "confdefs.h"
13803 /* System header to define __stub macros and hopefully few prototypes,
13804 which can conflict with char $ac_func(); below. */
13805 #include <assert.h>
13806 /* Override any gcc2 internal prototype to avoid an error. */
13807 /* We use char because int might match the return type of a gcc2
13808 builtin and then its argument prototype would still apply. */
13809 char $ac_func();
13810
13811 int main() {
13812
13813 /* The GNU C library defines this for functions which it implements
13814 to always fail with ENOSYS. Some functions are actually named
13815 something starting with __ and the normal name is an alias. */
13816 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13817 choke me
13818 #else
13819 $ac_func();
13820 #endif
13821
13822 ; return 0; }
13823 EOF
13824 if { (eval echo configure:13825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13825 rm -rf conftest*
13826 eval "ac_cv_func_$ac_func=yes"
13827 else
13828 echo "configure: failed program was:" >&5
13829 cat conftest.$ac_ext >&5
13830 rm -rf conftest*
13831 eval "ac_cv_func_$ac_func=no"
13832 fi
13833 rm -f conftest*
13834 fi
13835
13836 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13837 echo "$ac_t""yes" 1>&6
13838 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13839 cat >> confdefs.h <<EOF
13840 #define $ac_tr_func 1
13841 EOF
13842 cat >> confdefs.h <<\EOF
13843 #define HAVE_INET_ATON 1
13844 EOF
13845
13846 else
13847 echo "$ac_t""no" 1>&6
13848 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
13849 echo "configure:13850: checking for inet_aton in -l$INET_LINK" >&5
13850 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13851 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13852 echo $ac_n "(cached) $ac_c" 1>&6
13853 else
13854 ac_save_LIBS="$LIBS"
13855 LIBS="-l$INET_LINK $LIBS"
13856 cat > conftest.$ac_ext <<EOF
13857 #line 13858 "configure"
13858 #include "confdefs.h"
13859 /* Override any gcc2 internal prototype to avoid an error. */
13860 /* We use char because int might match the return type of a gcc2
13861 builtin and then its argument prototype would still apply. */
13862 char inet_aton();
13863
13864 int main() {
13865 inet_aton()
13866 ; return 0; }
13867 EOF
13868 if { (eval echo configure:13869: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13869 rm -rf conftest*
13870 eval "ac_cv_lib_$ac_lib_var=yes"
13871 else
13872 echo "configure: failed program was:" >&5
13873 cat conftest.$ac_ext >&5
13874 rm -rf conftest*
13875 eval "ac_cv_lib_$ac_lib_var=no"
13876 fi
13877 rm -f conftest*
13878 LIBS="$ac_save_LIBS"
13879
13880 fi
13881 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13882 echo "$ac_t""yes" 1>&6
13883 cat >> confdefs.h <<\EOF
13884 #define HAVE_INET_ATON 1
13885 EOF
13886
13887 else
13888 echo "$ac_t""no" 1>&6
13889 fi
13890
13891
13892 fi
13893 done
13894
13895
13896 if test "x$INET_LINK" != "x"; then
13897 cat >> confdefs.h <<\EOF
13898 #define HAVE_INET_ADDR 1
13899 EOF
13900
13901 INET_LINK="-l$INET_LINK"
13902 fi
13903
13904 fi
13905
13906
13907 cat > confcache <<\EOF
13908 # This file is a shell script that caches the results of configure
13909 # tests run on this system so they can be shared between configure
13910 # scripts and configure runs. It is not useful on other systems.
13911 # If it contains results you don't want to keep, you may remove or edit it.
13912 #
13913 # By default, configure uses ./config.cache as the cache file,
13914 # creating it if it does not exist already. You can give configure
13915 # the --cache-file=FILE option to use a different cache file; that is
13916 # what configure does when it calls configure scripts in
13917 # subdirectories, so they share the cache.
13918 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13919 # config.status only pays attention to the cache file if you give it the
13920 # --recheck option to rerun configure.
13921 #
13922 EOF
13923 # The following way of writing the cache mishandles newlines in values,
13924 # but we know of no workaround that is simple, portable, and efficient.
13925 # So, don't put newlines in cache variables' values.
13926 # Ultrix sh set writes to stderr and can't be redirected directly,
13927 # and sets the high bit in the cache file unless we assign to the vars.
13928 (set) 2>&1 |
13929 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13930 *ac_space=\ *)
13931 # `set' does not quote correctly, so add quotes (double-quote substitution
13932 # turns \\\\ into \\, and sed turns \\ into \).
13933 sed -n \
13934 -e "s/'/'\\\\''/g" \
13935 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13936 ;;
13937 *)
13938 # `set' quotes correctly as required by POSIX, so do not add quotes.
13939 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13940 ;;
13941 esac >> confcache
13942 if cmp -s $cache_file confcache; then
13943 :
13944 else
13945 if test -w $cache_file; then
13946 echo "updating cache $cache_file"
13947 cat confcache > $cache_file
13948 else
13949 echo "not updating unwritable cache $cache_file"
13950 fi
13951 fi
13952 rm -f confcache
13953
13954
13955
13956 if test "$TOOLKIT" != "MSW"; then
13957
13958
13959 THREADS_LINK=""
13960 THREADS_OBJ=""
13961
13962 if test "$wxUSE_THREADS" = "yes" ; then
13963 if test "$wxUSE_WINE" = 1 ; then
13964 echo "configure: warning: Threads are not supported under WINE" 1>&2
13965 wxUSE_THREADS="no"
13966 elif test "$USE_BEOS" = 1; then
13967 echo "configure: warning: BeOS threads are not yet supported" 1>&2
13968 wxUSE_THREADS="no"
13969 fi
13970 fi
13971
13972 if test "$wxUSE_THREADS" = "yes" ; then
13973
13974 if test "$USE_AIX" = 1; then
13975 THREADS_LIB=pthreads
13976 else
13977 THREADS_LIB=pthread
13978 fi
13979
13980 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
13981 echo "configure:13982: checking for pthread_create in -l$THREADS_LIB" >&5
13982 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13983 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13984 echo $ac_n "(cached) $ac_c" 1>&6
13985 else
13986 ac_save_LIBS="$LIBS"
13987 LIBS="-l$THREADS_LIB $LIBS"
13988 cat > conftest.$ac_ext <<EOF
13989 #line 13990 "configure"
13990 #include "confdefs.h"
13991 /* Override any gcc2 internal prototype to avoid an error. */
13992 /* We use char because int might match the return type of a gcc2
13993 builtin and then its argument prototype would still apply. */
13994 char pthread_create();
13995
13996 int main() {
13997 pthread_create()
13998 ; return 0; }
13999 EOF
14000 if { (eval echo configure:14001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14001 rm -rf conftest*
14002 eval "ac_cv_lib_$ac_lib_var=yes"
14003 else
14004 echo "configure: failed program was:" >&5
14005 cat conftest.$ac_ext >&5
14006 rm -rf conftest*
14007 eval "ac_cv_lib_$ac_lib_var=no"
14008 fi
14009 rm -f conftest*
14010 LIBS="$ac_save_LIBS"
14011
14012 fi
14013 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14014 echo "$ac_t""yes" 1>&6
14015
14016 THREADS_OBJ="threadpsx.lo"
14017 THREADS_LINK=$THREADS_LIB
14018
14019 else
14020 echo "$ac_t""no" 1>&6
14021
14022 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
14023 echo "configure:14024: checking for pthread_create in -lc_r" >&5
14024 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
14025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14026 echo $ac_n "(cached) $ac_c" 1>&6
14027 else
14028 ac_save_LIBS="$LIBS"
14029 LIBS="-lc_r $LIBS"
14030 cat > conftest.$ac_ext <<EOF
14031 #line 14032 "configure"
14032 #include "confdefs.h"
14033 /* Override any gcc2 internal prototype to avoid an error. */
14034 /* We use char because int might match the return type of a gcc2
14035 builtin and then its argument prototype would still apply. */
14036 char pthread_create();
14037
14038 int main() {
14039 pthread_create()
14040 ; return 0; }
14041 EOF
14042 if { (eval echo configure:14043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14043 rm -rf conftest*
14044 eval "ac_cv_lib_$ac_lib_var=yes"
14045 else
14046 echo "configure: failed program was:" >&5
14047 cat conftest.$ac_ext >&5
14048 rm -rf conftest*
14049 eval "ac_cv_lib_$ac_lib_var=no"
14050 fi
14051 rm -f conftest*
14052 LIBS="$ac_save_LIBS"
14053
14054 fi
14055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14056 echo "$ac_t""yes" 1>&6
14057
14058 THREADS_OBJ="threadpsx.lo"
14059 THREADS_LINK="c_r"
14060
14061 else
14062 echo "$ac_t""no" 1>&6
14063
14064 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14065 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
14066 echo "configure:14067: checking for sys/prctl.h" >&5
14067 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14068 echo $ac_n "(cached) $ac_c" 1>&6
14069 else
14070 cat > conftest.$ac_ext <<EOF
14071 #line 14072 "configure"
14072 #include "confdefs.h"
14073 #include <sys/prctl.h>
14074 EOF
14075 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14076 { (eval echo configure:14077: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14077 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14078 if test -z "$ac_err"; then
14079 rm -rf conftest*
14080 eval "ac_cv_header_$ac_safe=yes"
14081 else
14082 echo "$ac_err" >&5
14083 echo "configure: failed program was:" >&5
14084 cat conftest.$ac_ext >&5
14085 rm -rf conftest*
14086 eval "ac_cv_header_$ac_safe=no"
14087 fi
14088 rm -f conftest*
14089 fi
14090 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14091 echo "$ac_t""yes" 1>&6
14092
14093 THREADS_OBJ="threadsgi.lo"
14094
14095 else
14096 echo "$ac_t""no" 1>&6
14097 fi
14098
14099
14100 fi
14101
14102
14103 fi
14104
14105
14106 if test -z "$THREADS_OBJ" ; then
14107 wxUSE_THREADS=no
14108 echo "configure: warning: No thread support on this system" 1>&2
14109 fi
14110 fi
14111
14112 if test "$wxUSE_THREADS" = "yes" ; then
14113 for ac_func in thr_setconcurrency
14114 do
14115 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14116 echo "configure:14117: checking for $ac_func" >&5
14117 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14118 echo $ac_n "(cached) $ac_c" 1>&6
14119 else
14120 cat > conftest.$ac_ext <<EOF
14121 #line 14122 "configure"
14122 #include "confdefs.h"
14123 /* System header to define __stub macros and hopefully few prototypes,
14124 which can conflict with char $ac_func(); below. */
14125 #include <assert.h>
14126 /* Override any gcc2 internal prototype to avoid an error. */
14127 /* We use char because int might match the return type of a gcc2
14128 builtin and then its argument prototype would still apply. */
14129 char $ac_func();
14130
14131 int main() {
14132
14133 /* The GNU C library defines this for functions which it implements
14134 to always fail with ENOSYS. Some functions are actually named
14135 something starting with __ and the normal name is an alias. */
14136 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14137 choke me
14138 #else
14139 $ac_func();
14140 #endif
14141
14142 ; return 0; }
14143 EOF
14144 if { (eval echo configure:14145: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14145 rm -rf conftest*
14146 eval "ac_cv_func_$ac_func=yes"
14147 else
14148 echo "configure: failed program was:" >&5
14149 cat conftest.$ac_ext >&5
14150 rm -rf conftest*
14151 eval "ac_cv_func_$ac_func=no"
14152 fi
14153 rm -f conftest*
14154 fi
14155
14156 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14157 echo "$ac_t""yes" 1>&6
14158 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14159 cat >> confdefs.h <<EOF
14160 #define $ac_tr_func 1
14161 EOF
14162
14163 else
14164 echo "$ac_t""no" 1>&6
14165 fi
14166 done
14167
14168
14169
14170 for ac_hdr in sched.h
14171 do
14172 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14173 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14174 echo "configure:14175: checking for $ac_hdr" >&5
14175 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14176 echo $ac_n "(cached) $ac_c" 1>&6
14177 else
14178 cat > conftest.$ac_ext <<EOF
14179 #line 14180 "configure"
14180 #include "confdefs.h"
14181 #include <$ac_hdr>
14182 EOF
14183 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14184 { (eval echo configure:14185: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14185 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14186 if test -z "$ac_err"; then
14187 rm -rf conftest*
14188 eval "ac_cv_header_$ac_safe=yes"
14189 else
14190 echo "$ac_err" >&5
14191 echo "configure: failed program was:" >&5
14192 cat conftest.$ac_ext >&5
14193 rm -rf conftest*
14194 eval "ac_cv_header_$ac_safe=no"
14195 fi
14196 rm -f conftest*
14197 fi
14198 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14199 echo "$ac_t""yes" 1>&6
14200 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14201 cat >> confdefs.h <<EOF
14202 #define $ac_tr_hdr 1
14203 EOF
14204
14205 else
14206 echo "$ac_t""no" 1>&6
14207 fi
14208 done
14209
14210
14211 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
14212 echo "configure:14213: checking for sched_yield in -l$THREADS_LINK" >&5
14213 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14214 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14215 echo $ac_n "(cached) $ac_c" 1>&6
14216 else
14217 ac_save_LIBS="$LIBS"
14218 LIBS="-l$THREADS_LINK $LIBS"
14219 cat > conftest.$ac_ext <<EOF
14220 #line 14221 "configure"
14221 #include "confdefs.h"
14222 /* Override any gcc2 internal prototype to avoid an error. */
14223 /* We use char because int might match the return type of a gcc2
14224 builtin and then its argument prototype would still apply. */
14225 char sched_yield();
14226
14227 int main() {
14228 sched_yield()
14229 ; return 0; }
14230 EOF
14231 if { (eval echo configure:14232: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14232 rm -rf conftest*
14233 eval "ac_cv_lib_$ac_lib_var=yes"
14234 else
14235 echo "configure: failed program was:" >&5
14236 cat conftest.$ac_ext >&5
14237 rm -rf conftest*
14238 eval "ac_cv_lib_$ac_lib_var=no"
14239 fi
14240 rm -f conftest*
14241 LIBS="$ac_save_LIBS"
14242
14243 fi
14244 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14245 echo "$ac_t""yes" 1>&6
14246 cat >> confdefs.h <<\EOF
14247 #define HAVE_SCHED_YIELD 1
14248 EOF
14249
14250 else
14251 echo "$ac_t""no" 1>&6
14252 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
14253 echo "configure:14254: checking for sched_yield in -lposix4" >&5
14254 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14255 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14256 echo $ac_n "(cached) $ac_c" 1>&6
14257 else
14258 ac_save_LIBS="$LIBS"
14259 LIBS="-lposix4 $LIBS"
14260 cat > conftest.$ac_ext <<EOF
14261 #line 14262 "configure"
14262 #include "confdefs.h"
14263 /* Override any gcc2 internal prototype to avoid an error. */
14264 /* We use char because int might match the return type of a gcc2
14265 builtin and then its argument prototype would still apply. */
14266 char sched_yield();
14267
14268 int main() {
14269 sched_yield()
14270 ; return 0; }
14271 EOF
14272 if { (eval echo configure:14273: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14273 rm -rf conftest*
14274 eval "ac_cv_lib_$ac_lib_var=yes"
14275 else
14276 echo "configure: failed program was:" >&5
14277 cat conftest.$ac_ext >&5
14278 rm -rf conftest*
14279 eval "ac_cv_lib_$ac_lib_var=no"
14280 fi
14281 rm -f conftest*
14282 LIBS="$ac_save_LIBS"
14283
14284 fi
14285 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14286 echo "$ac_t""yes" 1>&6
14287 cat >> confdefs.h <<\EOF
14288 #define HAVE_SCHED_YIELD 1
14289 EOF
14290 POSIX4_LINK="-lposix4"
14291 else
14292 echo "$ac_t""no" 1>&6
14293 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14294
14295 fi
14296
14297
14298 fi
14299
14300
14301 HAVE_PRIOR_FUNCS=0
14302 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
14303 echo "configure:14304: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
14304 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14305 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14306 echo $ac_n "(cached) $ac_c" 1>&6
14307 else
14308 ac_save_LIBS="$LIBS"
14309 LIBS="-l$THREADS_LINK $LIBS"
14310 cat > conftest.$ac_ext <<EOF
14311 #line 14312 "configure"
14312 #include "confdefs.h"
14313 /* Override any gcc2 internal prototype to avoid an error. */
14314 /* We use char because int might match the return type of a gcc2
14315 builtin and then its argument prototype would still apply. */
14316 char pthread_attr_getschedpolicy();
14317
14318 int main() {
14319 pthread_attr_getschedpolicy()
14320 ; return 0; }
14321 EOF
14322 if { (eval echo configure:14323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14323 rm -rf conftest*
14324 eval "ac_cv_lib_$ac_lib_var=yes"
14325 else
14326 echo "configure: failed program was:" >&5
14327 cat conftest.$ac_ext >&5
14328 rm -rf conftest*
14329 eval "ac_cv_lib_$ac_lib_var=no"
14330 fi
14331 rm -f conftest*
14332 LIBS="$ac_save_LIBS"
14333
14334 fi
14335 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14336 echo "$ac_t""yes" 1>&6
14337 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
14338 echo "configure:14339: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
14339 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14340 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14341 echo $ac_n "(cached) $ac_c" 1>&6
14342 else
14343 ac_save_LIBS="$LIBS"
14344 LIBS="-l$THREADS_LINK $LIBS"
14345 cat > conftest.$ac_ext <<EOF
14346 #line 14347 "configure"
14347 #include "confdefs.h"
14348 /* Override any gcc2 internal prototype to avoid an error. */
14349 /* We use char because int might match the return type of a gcc2
14350 builtin and then its argument prototype would still apply. */
14351 char pthread_attr_setschedparam();
14352
14353 int main() {
14354 pthread_attr_setschedparam()
14355 ; return 0; }
14356 EOF
14357 if { (eval echo configure:14358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14358 rm -rf conftest*
14359 eval "ac_cv_lib_$ac_lib_var=yes"
14360 else
14361 echo "configure: failed program was:" >&5
14362 cat conftest.$ac_ext >&5
14363 rm -rf conftest*
14364 eval "ac_cv_lib_$ac_lib_var=no"
14365 fi
14366 rm -f conftest*
14367 LIBS="$ac_save_LIBS"
14368
14369 fi
14370 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14371 echo "$ac_t""yes" 1>&6
14372 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
14373 echo "configure:14374: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
14374 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14375 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14376 echo $ac_n "(cached) $ac_c" 1>&6
14377 else
14378 ac_save_LIBS="$LIBS"
14379 LIBS="-l$THREADS_LINK $LIBS"
14380 cat > conftest.$ac_ext <<EOF
14381 #line 14382 "configure"
14382 #include "confdefs.h"
14383 /* Override any gcc2 internal prototype to avoid an error. */
14384 /* We use char because int might match the return type of a gcc2
14385 builtin and then its argument prototype would still apply. */
14386 char sched_get_priority_max();
14387
14388 int main() {
14389 sched_get_priority_max()
14390 ; return 0; }
14391 EOF
14392 if { (eval echo configure:14393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14393 rm -rf conftest*
14394 eval "ac_cv_lib_$ac_lib_var=yes"
14395 else
14396 echo "configure: failed program was:" >&5
14397 cat conftest.$ac_ext >&5
14398 rm -rf conftest*
14399 eval "ac_cv_lib_$ac_lib_var=no"
14400 fi
14401 rm -f conftest*
14402 LIBS="$ac_save_LIBS"
14403
14404 fi
14405 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14406 echo "$ac_t""yes" 1>&6
14407 HAVE_PRIOR_FUNCS=1
14408 else
14409 echo "$ac_t""no" 1>&6
14410 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
14411 echo "configure:14412: checking for sched_get_priority_max in -lposix4" >&5
14412 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14413 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14414 echo $ac_n "(cached) $ac_c" 1>&6
14415 else
14416 ac_save_LIBS="$LIBS"
14417 LIBS="-lposix4 $LIBS"
14418 cat > conftest.$ac_ext <<EOF
14419 #line 14420 "configure"
14420 #include "confdefs.h"
14421 /* Override any gcc2 internal prototype to avoid an error. */
14422 /* We use char because int might match the return type of a gcc2
14423 builtin and then its argument prototype would still apply. */
14424 char sched_get_priority_max();
14425
14426 int main() {
14427 sched_get_priority_max()
14428 ; return 0; }
14429 EOF
14430 if { (eval echo configure:14431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14431 rm -rf conftest*
14432 eval "ac_cv_lib_$ac_lib_var=yes"
14433 else
14434 echo "configure: failed program was:" >&5
14435 cat conftest.$ac_ext >&5
14436 rm -rf conftest*
14437 eval "ac_cv_lib_$ac_lib_var=no"
14438 fi
14439 rm -f conftest*
14440 LIBS="$ac_save_LIBS"
14441
14442 fi
14443 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14444 echo "$ac_t""yes" 1>&6
14445
14446 HAVE_PRIOR_FUNCS=1
14447 POSIX4_LINK="-lposix4"
14448
14449 else
14450 echo "$ac_t""no" 1>&6
14451 fi
14452
14453
14454 fi
14455
14456
14457 else
14458 echo "$ac_t""no" 1>&6
14459 fi
14460
14461
14462 else
14463 echo "$ac_t""no" 1>&6
14464 fi
14465
14466
14467 if test "$HAVE_PRIOR_FUNCS" = 1; then
14468 cat >> confdefs.h <<\EOF
14469 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14470 EOF
14471
14472 else
14473 echo "configure: warning: Setting thread priority will not work" 1>&2
14474 fi
14475
14476 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
14477 echo "configure:14478: checking for pthread_cancel in -l$THREADS_LINK" >&5
14478 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14479 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14480 echo $ac_n "(cached) $ac_c" 1>&6
14481 else
14482 ac_save_LIBS="$LIBS"
14483 LIBS="-l$THREADS_LINK $LIBS"
14484 cat > conftest.$ac_ext <<EOF
14485 #line 14486 "configure"
14486 #include "confdefs.h"
14487 /* Override any gcc2 internal prototype to avoid an error. */
14488 /* We use char because int might match the return type of a gcc2
14489 builtin and then its argument prototype would still apply. */
14490 char pthread_cancel();
14491
14492 int main() {
14493 pthread_cancel()
14494 ; return 0; }
14495 EOF
14496 if { (eval echo configure:14497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14497 rm -rf conftest*
14498 eval "ac_cv_lib_$ac_lib_var=yes"
14499 else
14500 echo "configure: failed program was:" >&5
14501 cat conftest.$ac_ext >&5
14502 rm -rf conftest*
14503 eval "ac_cv_lib_$ac_lib_var=no"
14504 fi
14505 rm -f conftest*
14506 LIBS="$ac_save_LIBS"
14507
14508 fi
14509 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14510 echo "$ac_t""yes" 1>&6
14511 cat >> confdefs.h <<\EOF
14512 #define HAVE_PTHREAD_CANCEL 1
14513 EOF
14514
14515 else
14516 echo "$ac_t""no" 1>&6
14517 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
14518 fi
14519
14520
14521 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
14522 echo "configure:14523: checking for pthread_cleanup_push/pop" >&5
14523 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14524 echo $ac_n "(cached) $ac_c" 1>&6
14525 else
14526
14527 cat > conftest.$ac_ext <<EOF
14528 #line 14529 "configure"
14529 #include "confdefs.h"
14530 #include <pthread.h>
14531 int main() {
14532
14533 pthread_cleanup_push(NULL, NULL);
14534 pthread_cleanup_pop(0);
14535
14536 ; return 0; }
14537 EOF
14538 if { (eval echo configure:14539: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14539 rm -rf conftest*
14540
14541 wx_cv_func_pthread_cleanup_push=yes
14542
14543 else
14544 echo "configure: failed program was:" >&5
14545 cat conftest.$ac_ext >&5
14546 rm -rf conftest*
14547
14548 wx_cv_func_pthread_cleanup_push=no
14549
14550 fi
14551 rm -f conftest*
14552
14553 fi
14554
14555 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
14556
14557 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
14558 cat >> confdefs.h <<\EOF
14559 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14560 EOF
14561
14562 fi
14563
14564
14565 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
14566 echo "configure:14567: checking for pthread_mutexattr_t" >&5
14567 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14568 echo $ac_n "(cached) $ac_c" 1>&6
14569 else
14570
14571 cat > conftest.$ac_ext <<EOF
14572 #line 14573 "configure"
14573 #include "confdefs.h"
14574 #include <pthread.h>
14575 int main() {
14576
14577 pthread_mutexattr_t attr;
14578 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
14579
14580 ; return 0; }
14581 EOF
14582 if { (eval echo configure:14583: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14583 rm -rf conftest*
14584
14585 wx_cv_type_pthread_mutexattr_t=yes
14586
14587 else
14588 echo "configure: failed program was:" >&5
14589 cat conftest.$ac_ext >&5
14590 rm -rf conftest*
14591
14592 wx_cv_type_pthread_mutexattr_t=no
14593
14594
14595 fi
14596 rm -f conftest*
14597
14598 fi
14599
14600 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
14601
14602 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
14603 cat >> confdefs.h <<\EOF
14604 #define HAVE_PTHREAD_MUTEXATTR_T 1
14605 EOF
14606
14607 else
14608 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
14609 echo "configure:14610: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
14610 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14611 echo $ac_n "(cached) $ac_c" 1>&6
14612 else
14613
14614 cat > conftest.$ac_ext <<EOF
14615 #line 14616 "configure"
14616 #include "confdefs.h"
14617 #include <pthread.h>
14618 int main() {
14619
14620 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
14621
14622 ; return 0; }
14623 EOF
14624 if { (eval echo configure:14625: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14625 rm -rf conftest*
14626
14627 wx_cv_type_pthread_rec_mutex_init=yes
14628
14629 else
14630 echo "configure: failed program was:" >&5
14631 cat conftest.$ac_ext >&5
14632 rm -rf conftest*
14633
14634 wx_cv_type_pthread_rec_mutex_init=no
14635
14636
14637 fi
14638 rm -f conftest*
14639
14640 fi
14641
14642 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
14643 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
14644 cat >> confdefs.h <<\EOF
14645 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14646 EOF
14647
14648 else
14649 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
14650 fi
14651 fi
14652
14653 THREADS_LINK="-l$THREADS_LINK"
14654
14655 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14656 CFLAGS="${CFLAGS} -mt"
14657 CXXFLAGS="${CXXFLAGS} -mt"
14658 LDFLAGS="${LDFLAGS} -mt"
14659 fi
14660 fi
14661
14662 fi
14663
14664 if test "$wxUSE_THREADS" = "yes"; then
14665 cat >> confdefs.h <<\EOF
14666 #define wxUSE_THREADS 1
14667 EOF
14668
14669
14670 if test "$USE_DARWIN" != 1; then
14671 CFLAGS="${CFLAGS} -D_REENTRANT"
14672 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14673 fi
14674
14675 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14676 else
14677 if test "$ac_cv_func_strtok_r" = "yes"; then
14678 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
14679 echo "configure:14680: checking if -D_REENTRANT is needed" >&5
14680 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14681 CFLAGS="${CFLAGS} -D_REENTRANT"
14682 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14683 echo "$ac_t""yes" 1>&6
14684 else
14685 echo "$ac_t""no" 1>&6
14686 fi
14687 fi
14688 fi
14689
14690 if test "$WXGTK20" = 1 ; then
14691 cat >> confdefs.h <<EOF
14692 #define __WXGTK20__ $WXGTK20
14693 EOF
14694
14695 WXGTK12=1
14696 fi
14697
14698 if test "$WXGTK12" = 1 ; then
14699 cat >> confdefs.h <<EOF
14700 #define __WXGTK12__ $WXGTK12
14701 EOF
14702
14703 fi
14704
14705 if test "$WXGTK127" = 1 ; then
14706 cat >> confdefs.h <<EOF
14707 #define __WXGTK127__ $WXGTK127
14708 EOF
14709
14710 fi
14711
14712 if test "$WXWINE" = 1 ; then
14713 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14714 fi
14715
14716 if test "$wxUSE_MAC" = 1 ; then
14717 TOOLKIT_DEF="${TOOLKIT_DEF} -DTARGET_CARBON"
14718 CFLAGS="${CFLAGS} -fpascal-strings"
14719 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fpascal-strings"
14720 # Extract the first word of "Rez", so it can be a program name with args.
14721 set dummy Rez; ac_word=$2
14722 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14723 echo "configure:14724: checking for $ac_word" >&5
14724 if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14725 echo $ac_n "(cached) $ac_c" 1>&6
14726 else
14727 if test -n "$REZ"; then
14728 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14729 else
14730 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14731 ac_dummy="$PATH"
14732 for ac_dir in $ac_dummy; do
14733 test -z "$ac_dir" && ac_dir=.
14734 if test -f $ac_dir/$ac_word; then
14735 ac_cv_prog_REZ="Rez"
14736 break
14737 fi
14738 done
14739 IFS="$ac_save_ifs"
14740 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14741 fi
14742 fi
14743 REZ="$ac_cv_prog_REZ"
14744 if test -n "$REZ"; then
14745 echo "$ac_t""$REZ" 1>&6
14746 else
14747 echo "$ac_t""no" 1>&6
14748 fi
14749
14750 # Extract the first word of "Derez", so it can be a program name with args.
14751 set dummy Derez; ac_word=$2
14752 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14753 echo "configure:14754: checking for $ac_word" >&5
14754 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14755 echo $ac_n "(cached) $ac_c" 1>&6
14756 else
14757 if test -n "$DEREZ"; then
14758 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14759 else
14760 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14761 ac_dummy="$PATH"
14762 for ac_dir in $ac_dummy; do
14763 test -z "$ac_dir" && ac_dir=.
14764 if test -f $ac_dir/$ac_word; then
14765 ac_cv_prog_DEREZ="Derez"
14766 break
14767 fi
14768 done
14769 IFS="$ac_save_ifs"
14770 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14771 fi
14772 fi
14773 DEREZ="$ac_cv_prog_DEREZ"
14774 if test -n "$DEREZ"; then
14775 echo "$ac_t""$DEREZ" 1>&6
14776 else
14777 echo "$ac_t""no" 1>&6
14778 fi
14779
14780 RESCOMP=${REZ}
14781 REZFLAGS="-d __UNIX__ -useDF"
14782 DEREZFLAGS="Carbon.r -useDF"
14783 RESFLAGS="Carbon.r -t APPL"
14784 LIBWXMACRES="\$(LIBWX_MACRES)"
14785 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
14786 fi
14787
14788 if test "$wxUSE_CYGWIN" = 1 ; then
14789 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14790 fi
14791
14792 WXDEBUG=
14793
14794 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14795 WXDEBUG="-g"
14796 wxUSE_OPTIMISE=no
14797 fi
14798
14799 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14800 wxUSE_DEBUG_INFO=yes
14801 WXDEBUG="-ggdb"
14802 fi
14803
14804 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
14805 cat >> confdefs.h <<\EOF
14806 #define WXDEBUG 1
14807 EOF
14808
14809 WXDEBUG_DEFINE="-D__WXDEBUG__"
14810 else
14811 if test "$wxUSE_GTK" = 1 ; then
14812 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14813 fi
14814 fi
14815
14816 if test "$wxUSE_MEM_TRACING" = "yes" ; then
14817 cat >> confdefs.h <<\EOF
14818 #define wxUSE_MEMORY_TRACING 1
14819 EOF
14820
14821 cat >> confdefs.h <<\EOF
14822 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
14823 EOF
14824
14825 cat >> confdefs.h <<\EOF
14826 #define wxUSE_DEBUG_NEW_ALWAYS 1
14827 EOF
14828
14829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14830 fi
14831
14832 if test "$wxUSE_DMALLOC" = "yes" ; then
14833 DMALLOC_LINK="-ldmalloc"
14834 fi
14835
14836 PROFILE=
14837 if test "$wxUSE_PROFILE" = "yes" ; then
14838 PROFILE="-pg"
14839 fi
14840
14841 DEP_INFO_FLAGS=
14842 CODE_GEN_FLAGS=
14843 CODE_GEN_FLAGS_CXX=
14844 if test "$GCC" = yes ; then
14845 if test "$wxUSE_NO_RTTI" = "yes" ; then
14846 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
14847 fi
14848 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
14849 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
14850 fi
14851 if test "$wxUSE_PERMISSIVE" = "yes" ; then
14852 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
14853 fi
14854 if test "$wxUSE_NO_DEPS" = "no" ; then
14855 DEP_INFO_FLAGS="-MMD"
14856 fi
14857 fi
14858
14859
14860 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14861 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14862 if test "$wxUSE_OPTIMISE" = "no" ; then
14863 OPTIMISE=
14864 else
14865 if test "$GCC" = yes ; then
14866 OPTIMISE="-O2"
14867 case "${host}" in
14868 i586-*-*|i686-*-* )
14869 OPTIMISE="${OPTIMISE} "
14870 ;;
14871 esac
14872 else
14873 OPTIMISE="-O"
14874 fi
14875 fi
14876
14877 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
14878 cat >> confdefs.h <<\EOF
14879 #define WXWIN_COMPATIBILITY_2 1
14880 EOF
14881
14882
14883 WXWIN_COMPATIBILITY_2_2="yes"
14884 fi
14885
14886 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
14887 cat >> confdefs.h <<\EOF
14888 #define WXWIN_COMPATIBILITY_2_2 1
14889 EOF
14890
14891 fi
14892
14893
14894 REGEX_INCLUDE=
14895 if test "$wxUSE_REGEX" != "no"; then
14896 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
14897 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
14898 echo "configure:14899: checking for regex.h" >&5
14899 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14900 echo $ac_n "(cached) $ac_c" 1>&6
14901 else
14902 cat > conftest.$ac_ext <<EOF
14903 #line 14904 "configure"
14904 #include "confdefs.h"
14905 #include <regex.h>
14906 EOF
14907 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14908 { (eval echo configure:14909: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14909 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14910 if test -z "$ac_err"; then
14911 rm -rf conftest*
14912 eval "ac_cv_header_$ac_safe=yes"
14913 else
14914 echo "$ac_err" >&5
14915 echo "configure: failed program was:" >&5
14916 cat conftest.$ac_ext >&5
14917 rm -rf conftest*
14918 eval "ac_cv_header_$ac_safe=no"
14919 fi
14920 rm -f conftest*
14921 fi
14922 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14923 echo "$ac_t""yes" 1>&6
14924 for ac_func in regcomp
14925 do
14926 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14927 echo "configure:14928: checking for $ac_func" >&5
14928 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14929 echo $ac_n "(cached) $ac_c" 1>&6
14930 else
14931 cat > conftest.$ac_ext <<EOF
14932 #line 14933 "configure"
14933 #include "confdefs.h"
14934 /* System header to define __stub macros and hopefully few prototypes,
14935 which can conflict with char $ac_func(); below. */
14936 #include <assert.h>
14937 /* Override any gcc2 internal prototype to avoid an error. */
14938 /* We use char because int might match the return type of a gcc2
14939 builtin and then its argument prototype would still apply. */
14940 char $ac_func();
14941
14942 int main() {
14943
14944 /* The GNU C library defines this for functions which it implements
14945 to always fail with ENOSYS. Some functions are actually named
14946 something starting with __ and the normal name is an alias. */
14947 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14948 choke me
14949 #else
14950 $ac_func();
14951 #endif
14952
14953 ; return 0; }
14954 EOF
14955 if { (eval echo configure:14956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14956 rm -rf conftest*
14957 eval "ac_cv_func_$ac_func=yes"
14958 else
14959 echo "configure: failed program was:" >&5
14960 cat conftest.$ac_ext >&5
14961 rm -rf conftest*
14962 eval "ac_cv_func_$ac_func=no"
14963 fi
14964 rm -f conftest*
14965 fi
14966
14967 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14968 echo "$ac_t""yes" 1>&6
14969 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14970 cat >> confdefs.h <<EOF
14971 #define $ac_tr_func 1
14972 EOF
14973
14974 else
14975 echo "$ac_t""no" 1>&6
14976 fi
14977 done
14978
14979 else
14980 echo "$ac_t""no" 1>&6
14981 fi
14982
14983
14984 if test "x$ac_cv_func_regcomp" != "xyes"; then
14985 if test "$wxUSE_REGEX" = "sys"; then
14986 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
14987 fi
14988
14989 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
14990 fi
14991
14992 cat >> confdefs.h <<\EOF
14993 #define wxUSE_REGEX 1
14994 EOF
14995
14996 fi
14997
14998 ZLIB_INCLUDE=
14999 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
15000 cat >> confdefs.h <<\EOF
15001 #define wxUSE_ZLIB 1
15002 EOF
15003
15004 if test "$wxUSE_ZLIB" = "yes" ; then
15005 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
15006 else
15007 ZLIB_LINK=
15008 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
15009 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
15010 echo "configure:15011: checking for zlib.h" >&5
15011 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15012 echo $ac_n "(cached) $ac_c" 1>&6
15013 else
15014 cat > conftest.$ac_ext <<EOF
15015 #line 15016 "configure"
15016 #include "confdefs.h"
15017 #include <zlib.h>
15018 EOF
15019 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15020 { (eval echo configure:15021: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15021 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15022 if test -z "$ac_err"; then
15023 rm -rf conftest*
15024 eval "ac_cv_header_$ac_safe=yes"
15025 else
15026 echo "$ac_err" >&5
15027 echo "configure: failed program was:" >&5
15028 cat conftest.$ac_ext >&5
15029 rm -rf conftest*
15030 eval "ac_cv_header_$ac_safe=no"
15031 fi
15032 rm -f conftest*
15033 fi
15034 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15035 echo "$ac_t""yes" 1>&6
15036 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
15037 echo "configure:15038: checking for deflate in -lz" >&5
15038 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
15039 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15040 echo $ac_n "(cached) $ac_c" 1>&6
15041 else
15042 ac_save_LIBS="$LIBS"
15043 LIBS="-lz $LIBS"
15044 cat > conftest.$ac_ext <<EOF
15045 #line 15046 "configure"
15046 #include "confdefs.h"
15047 /* Override any gcc2 internal prototype to avoid an error. */
15048 /* We use char because int might match the return type of a gcc2
15049 builtin and then its argument prototype would still apply. */
15050 char deflate();
15051
15052 int main() {
15053 deflate()
15054 ; return 0; }
15055 EOF
15056 if { (eval echo configure:15057: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15057 rm -rf conftest*
15058 eval "ac_cv_lib_$ac_lib_var=yes"
15059 else
15060 echo "configure: failed program was:" >&5
15061 cat conftest.$ac_ext >&5
15062 rm -rf conftest*
15063 eval "ac_cv_lib_$ac_lib_var=no"
15064 fi
15065 rm -f conftest*
15066 LIBS="$ac_save_LIBS"
15067
15068 fi
15069 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15070 echo "$ac_t""yes" 1>&6
15071 ZLIB_LINK="-lz"
15072 else
15073 echo "$ac_t""no" 1>&6
15074 fi
15075
15076 else
15077 echo "$ac_t""no" 1>&6
15078 fi
15079
15080 if test "x$ZLIB_LINK" = "x" ; then
15081 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
15082 fi
15083 fi
15084 fi
15085
15086 PNG_INCLUDE=
15087 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
15088 cat >> confdefs.h <<\EOF
15089 #define wxUSE_LIBPNG 1
15090 EOF
15091
15092 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
15093 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
15094 wxUSE_LIBPNG=yes
15095 fi
15096
15097 if test "$wxUSE_LIBPNG" = "yes" ; then
15098 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15099 else
15100 PNG_LINK=
15101 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15102 echo $ac_n "checking for png.h""... $ac_c" 1>&6
15103 echo "configure:15104: checking for png.h" >&5
15104 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15105 echo $ac_n "(cached) $ac_c" 1>&6
15106 else
15107 cat > conftest.$ac_ext <<EOF
15108 #line 15109 "configure"
15109 #include "confdefs.h"
15110 #include <png.h>
15111 EOF
15112 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15113 { (eval echo configure:15114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15114 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15115 if test -z "$ac_err"; then
15116 rm -rf conftest*
15117 eval "ac_cv_header_$ac_safe=yes"
15118 else
15119 echo "$ac_err" >&5
15120 echo "configure: failed program was:" >&5
15121 cat conftest.$ac_ext >&5
15122 rm -rf conftest*
15123 eval "ac_cv_header_$ac_safe=no"
15124 fi
15125 rm -f conftest*
15126 fi
15127 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15128 echo "$ac_t""yes" 1>&6
15129 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
15130 echo "configure:15131: checking for png_check_sig in -lpng" >&5
15131 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15132 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15133 echo $ac_n "(cached) $ac_c" 1>&6
15134 else
15135 ac_save_LIBS="$LIBS"
15136 LIBS="-lpng -lz -lm $LIBS"
15137 cat > conftest.$ac_ext <<EOF
15138 #line 15139 "configure"
15139 #include "confdefs.h"
15140 /* Override any gcc2 internal prototype to avoid an error. */
15141 /* We use char because int might match the return type of a gcc2
15142 builtin and then its argument prototype would still apply. */
15143 char png_check_sig();
15144
15145 int main() {
15146 png_check_sig()
15147 ; return 0; }
15148 EOF
15149 if { (eval echo configure:15150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15150 rm -rf conftest*
15151 eval "ac_cv_lib_$ac_lib_var=yes"
15152 else
15153 echo "configure: failed program was:" >&5
15154 cat conftest.$ac_ext >&5
15155 rm -rf conftest*
15156 eval "ac_cv_lib_$ac_lib_var=no"
15157 fi
15158 rm -f conftest*
15159 LIBS="$ac_save_LIBS"
15160
15161 fi
15162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15163 echo "$ac_t""yes" 1>&6
15164 PNG_LINK="-lpng"
15165 else
15166 echo "$ac_t""no" 1>&6
15167 fi
15168
15169
15170 else
15171 echo "$ac_t""no" 1>&6
15172 fi
15173
15174 if test "x$PNG_LINK" = "x" ; then
15175 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
15176 fi
15177 fi
15178
15179 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15180 fi
15181
15182 JPEG_INCLUDE=
15183 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
15184 cat >> confdefs.h <<\EOF
15185 #define wxUSE_LIBJPEG 1
15186 EOF
15187
15188 if test "$wxUSE_LIBJPEG" = "yes" ; then
15189 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15190 else
15191 JPEG_LINK=
15192 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
15193 echo "configure:15194: checking for jpeglib.h" >&5
15194 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
15195 echo $ac_n "(cached) $ac_c" 1>&6
15196 else
15197 cat > conftest.$ac_ext <<EOF
15198 #line 15199 "configure"
15199 #include "confdefs.h"
15200
15201 #undef HAVE_STDLIB_H
15202 #include <stdio.h>
15203 #include <jpeglib.h>
15204
15205 int main() {
15206
15207
15208 ; return 0; }
15209 EOF
15210 if { (eval echo configure:15211: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15211 rm -rf conftest*
15212 ac_cv_header_jpeglib_h=yes
15213 else
15214 echo "configure: failed program was:" >&5
15215 cat conftest.$ac_ext >&5
15216 rm -rf conftest*
15217 ac_cv_header_jpeglib_h=no
15218
15219 fi
15220 rm -f conftest*
15221
15222 fi
15223
15224 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15225
15226 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15227 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
15228 echo "configure:15229: checking for jpeg_read_header in -ljpeg" >&5
15229 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15230 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15231 echo $ac_n "(cached) $ac_c" 1>&6
15232 else
15233 ac_save_LIBS="$LIBS"
15234 LIBS="-ljpeg $LIBS"
15235 cat > conftest.$ac_ext <<EOF
15236 #line 15237 "configure"
15237 #include "confdefs.h"
15238 /* Override any gcc2 internal prototype to avoid an error. */
15239 /* We use char because int might match the return type of a gcc2
15240 builtin and then its argument prototype would still apply. */
15241 char jpeg_read_header();
15242
15243 int main() {
15244 jpeg_read_header()
15245 ; return 0; }
15246 EOF
15247 if { (eval echo configure:15248: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15248 rm -rf conftest*
15249 eval "ac_cv_lib_$ac_lib_var=yes"
15250 else
15251 echo "configure: failed program was:" >&5
15252 cat conftest.$ac_ext >&5
15253 rm -rf conftest*
15254 eval "ac_cv_lib_$ac_lib_var=no"
15255 fi
15256 rm -f conftest*
15257 LIBS="$ac_save_LIBS"
15258
15259 fi
15260 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15261 echo "$ac_t""yes" 1>&6
15262 JPEG_LINK="-ljpeg"
15263 else
15264 echo "$ac_t""no" 1>&6
15265 fi
15266
15267 fi
15268
15269 if test "x$JPEG_LINK" = "x" ; then
15270 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
15271 fi
15272 fi
15273 fi
15274
15275 TIFF_INCLUDE=
15276 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
15277 cat >> confdefs.h <<\EOF
15278 #define wxUSE_LIBTIFF 1
15279 EOF
15280
15281 if test "$wxUSE_LIBTIFF" = "yes" ; then
15282 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15283 else
15284 TIFF_LINK=
15285 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15286 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
15287 echo "configure:15288: checking for tiffio.h" >&5
15288 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15289 echo $ac_n "(cached) $ac_c" 1>&6
15290 else
15291 cat > conftest.$ac_ext <<EOF
15292 #line 15293 "configure"
15293 #include "confdefs.h"
15294 #include <tiffio.h>
15295 EOF
15296 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15297 { (eval echo configure:15298: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15298 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15299 if test -z "$ac_err"; then
15300 rm -rf conftest*
15301 eval "ac_cv_header_$ac_safe=yes"
15302 else
15303 echo "$ac_err" >&5
15304 echo "configure: failed program was:" >&5
15305 cat conftest.$ac_ext >&5
15306 rm -rf conftest*
15307 eval "ac_cv_header_$ac_safe=no"
15308 fi
15309 rm -f conftest*
15310 fi
15311 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15312 echo "$ac_t""yes" 1>&6
15313 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
15314 echo "configure:15315: checking for TIFFError in -ltiff" >&5
15315 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15316 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15317 echo $ac_n "(cached) $ac_c" 1>&6
15318 else
15319 ac_save_LIBS="$LIBS"
15320 LIBS="-ltiff -lm $LIBS"
15321 cat > conftest.$ac_ext <<EOF
15322 #line 15323 "configure"
15323 #include "confdefs.h"
15324 /* Override any gcc2 internal prototype to avoid an error. */
15325 /* We use char because int might match the return type of a gcc2
15326 builtin and then its argument prototype would still apply. */
15327 char TIFFError();
15328
15329 int main() {
15330 TIFFError()
15331 ; return 0; }
15332 EOF
15333 if { (eval echo configure:15334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15334 rm -rf conftest*
15335 eval "ac_cv_lib_$ac_lib_var=yes"
15336 else
15337 echo "configure: failed program was:" >&5
15338 cat conftest.$ac_ext >&5
15339 rm -rf conftest*
15340 eval "ac_cv_lib_$ac_lib_var=no"
15341 fi
15342 rm -f conftest*
15343 LIBS="$ac_save_LIBS"
15344
15345 fi
15346 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15347 echo "$ac_t""yes" 1>&6
15348 TIFF_LINK="-ltiff"
15349 else
15350 echo "$ac_t""no" 1>&6
15351 fi
15352
15353 else
15354 echo "$ac_t""no" 1>&6
15355 fi
15356
15357 if test "x$TIFF_LINK" = "x" ; then
15358 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
15359 fi
15360 fi
15361 fi
15362
15363 FREETYPE_INCLUDE=
15364 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
15365 cat >> confdefs.h <<\EOF
15366 #define wxUSE_FREETYPE 1
15367 EOF
15368
15369 if test "$wxUSE_FREETYPE" = "yes" ; then
15370 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15371 else
15372 FREETYPE_LINK=
15373 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15374 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
15375 echo "configure:15376: checking for freetype.h" >&5
15376 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15377 echo $ac_n "(cached) $ac_c" 1>&6
15378 else
15379 cat > conftest.$ac_ext <<EOF
15380 #line 15381 "configure"
15381 #include "confdefs.h"
15382 #include <freetype.h>
15383 EOF
15384 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15385 { (eval echo configure:15386: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15386 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15387 if test -z "$ac_err"; then
15388 rm -rf conftest*
15389 eval "ac_cv_header_$ac_safe=yes"
15390 else
15391 echo "$ac_err" >&5
15392 echo "configure: failed program was:" >&5
15393 cat conftest.$ac_ext >&5
15394 rm -rf conftest*
15395 eval "ac_cv_header_$ac_safe=no"
15396 fi
15397 rm -f conftest*
15398 fi
15399 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15400 echo "$ac_t""yes" 1>&6
15401 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
15402 echo "configure:15403: checking for FT_Render_Glyph in -lfreetype" >&5
15403 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15404 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15405 echo $ac_n "(cached) $ac_c" 1>&6
15406 else
15407 ac_save_LIBS="$LIBS"
15408 LIBS="-lfreetype -lm $LIBS"
15409 cat > conftest.$ac_ext <<EOF
15410 #line 15411 "configure"
15411 #include "confdefs.h"
15412 /* Override any gcc2 internal prototype to avoid an error. */
15413 /* We use char because int might match the return type of a gcc2
15414 builtin and then its argument prototype would still apply. */
15415 char FT_Render_Glyph();
15416
15417 int main() {
15418 FT_Render_Glyph()
15419 ; return 0; }
15420 EOF
15421 if { (eval echo configure:15422: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15422 rm -rf conftest*
15423 eval "ac_cv_lib_$ac_lib_var=yes"
15424 else
15425 echo "configure: failed program was:" >&5
15426 cat conftest.$ac_ext >&5
15427 rm -rf conftest*
15428 eval "ac_cv_lib_$ac_lib_var=no"
15429 fi
15430 rm -f conftest*
15431 LIBS="$ac_save_LIBS"
15432
15433 fi
15434 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15435 echo "$ac_t""yes" 1>&6
15436 FREETYPE_LINK="-lfreetype"
15437 else
15438 echo "$ac_t""no" 1>&6
15439 fi
15440
15441
15442 else
15443 echo "$ac_t""no" 1>&6
15444 fi
15445
15446 if test "x$FREETYPE_LINK" = "x" ; then
15447 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15448 fi
15449 fi
15450 fi
15451
15452 if test "$wxUSE_OPENGL" = "yes"; then
15453 if test "$wxUSE_MAC" = 1; then
15454 cat >> confdefs.h <<\EOF
15455 #define wxUSE_OPENGL 1
15456 EOF
15457
15458 cat >> confdefs.h <<\EOF
15459 #define wxUSE_GLCANVAS 1
15460 EOF
15461
15462 OPENGL_LINK="-framework OpenGL -framework AGL"
15463 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15464 else
15465 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15466 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15467 echo "configure:15468: checking for GL/gl.h" >&5
15468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15469 echo $ac_n "(cached) $ac_c" 1>&6
15470 else
15471 cat > conftest.$ac_ext <<EOF
15472 #line 15473 "configure"
15473 #include "confdefs.h"
15474 #include <GL/gl.h>
15475 EOF
15476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15477 { (eval echo configure:15478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15479 if test -z "$ac_err"; then
15480 rm -rf conftest*
15481 eval "ac_cv_header_$ac_safe=yes"
15482 else
15483 echo "$ac_err" >&5
15484 echo "configure: failed program was:" >&5
15485 cat conftest.$ac_ext >&5
15486 rm -rf conftest*
15487 eval "ac_cv_header_$ac_safe=no"
15488 fi
15489 rm -f conftest*
15490 fi
15491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15492 echo "$ac_t""yes" 1>&6
15493
15494 cat >> confdefs.h <<\EOF
15495 #define wxUSE_OPENGL 1
15496 EOF
15497
15498 cat >> confdefs.h <<\EOF
15499 #define wxUSE_GLCANVAS 1
15500 EOF
15501
15502 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl"
15503 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
15504 echo "configure:15505: checking for glFlush in -lGL" >&5
15505 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
15506 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15507 echo $ac_n "(cached) $ac_c" 1>&6
15508 else
15509 ac_save_LIBS="$LIBS"
15510 LIBS="-lGL $LIBS"
15511 cat > conftest.$ac_ext <<EOF
15512 #line 15513 "configure"
15513 #include "confdefs.h"
15514 /* Override any gcc2 internal prototype to avoid an error. */
15515 /* We use char because int might match the return type of a gcc2
15516 builtin and then its argument prototype would still apply. */
15517 char glFlush();
15518
15519 int main() {
15520 glFlush()
15521 ; return 0; }
15522 EOF
15523 if { (eval echo configure:15524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15524 rm -rf conftest*
15525 eval "ac_cv_lib_$ac_lib_var=yes"
15526 else
15527 echo "configure: failed program was:" >&5
15528 cat conftest.$ac_ext >&5
15529 rm -rf conftest*
15530 eval "ac_cv_lib_$ac_lib_var=no"
15531 fi
15532 rm -f conftest*
15533 LIBS="$ac_save_LIBS"
15534
15535 fi
15536 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15537 echo "$ac_t""yes" 1>&6
15538
15539 OPENGL_LINK="-lGL -lGLU"
15540
15541 else
15542 echo "$ac_t""no" 1>&6
15543
15544 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
15545 echo "configure:15546: checking for glFlush in -lMesaGL" >&5
15546 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
15547 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15548 echo $ac_n "(cached) $ac_c" 1>&6
15549 else
15550 ac_save_LIBS="$LIBS"
15551 LIBS="-lMesaGL $LIBS"
15552 cat > conftest.$ac_ext <<EOF
15553 #line 15554 "configure"
15554 #include "confdefs.h"
15555 /* Override any gcc2 internal prototype to avoid an error. */
15556 /* We use char because int might match the return type of a gcc2
15557 builtin and then its argument prototype would still apply. */
15558 char glFlush();
15559
15560 int main() {
15561 glFlush()
15562 ; return 0; }
15563 EOF
15564 if { (eval echo configure:15565: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15565 rm -rf conftest*
15566 eval "ac_cv_lib_$ac_lib_var=yes"
15567 else
15568 echo "configure: failed program was:" >&5
15569 cat conftest.$ac_ext >&5
15570 rm -rf conftest*
15571 eval "ac_cv_lib_$ac_lib_var=no"
15572 fi
15573 rm -f conftest*
15574 LIBS="$ac_save_LIBS"
15575
15576 fi
15577 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15578 echo "$ac_t""yes" 1>&6
15579
15580 OPENGL_LINK="-lMesaGL -lMesaGLU"
15581
15582 else
15583 echo "$ac_t""no" 1>&6
15584 fi
15585
15586
15587 fi
15588
15589
15590 else
15591 echo "$ac_t""no" 1>&6
15592 wxUSE_OPENGL=0
15593 fi
15594
15595 fi
15596 fi
15597
15598
15599 if test "$wxUSE_GUI" = "yes"; then
15600 cat >> confdefs.h <<\EOF
15601 #define wxUSE_GUI 1
15602 EOF
15603
15604
15605 else
15606 cat >> confdefs.h <<\EOF
15607 #define wxUSE_NOGUI 1
15608 EOF
15609
15610 fi
15611
15612
15613 if test "$wxUSE_UNIX" = "yes"; then
15614 cat >> confdefs.h <<\EOF
15615 #define wxUSE_UNIX 1
15616 EOF
15617
15618 fi
15619
15620
15621 if test "$wxUSE_APPLE_IEEE" = "yes"; then
15622 cat >> confdefs.h <<\EOF
15623 #define wxUSE_APPLE_IEEE 1
15624 EOF
15625
15626 fi
15627
15628 if test "$wxUSE_TIMER" = "yes"; then
15629 cat >> confdefs.h <<\EOF
15630 #define wxUSE_TIMER 1
15631 EOF
15632
15633 fi
15634
15635 if test "$wxUSE_WAVE" = "yes"; then
15636 cat >> confdefs.h <<\EOF
15637 #define wxUSE_WAVE 1
15638 EOF
15639
15640 fi
15641
15642 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15643 cat >> confdefs.h <<\EOF
15644 #define wxUSE_CMDLINE_PARSER 1
15645 EOF
15646
15647 fi
15648
15649 if test "$wxUSE_STOPWATCH" = "yes"; then
15650 cat >> confdefs.h <<\EOF
15651 #define wxUSE_STOPWATCH 1
15652 EOF
15653
15654 fi
15655
15656 if test "$wxUSE_DATETIME" = "yes"; then
15657 cat >> confdefs.h <<\EOF
15658 #define wxUSE_DATETIME 1
15659 EOF
15660
15661 fi
15662
15663 if test "$wxUSE_TIMEDATE" = "yes"; then
15664 cat >> confdefs.h <<\EOF
15665 #define wxUSE_TIMEDATE 1
15666 EOF
15667
15668 fi
15669
15670 if test "$wxUSE_FILE" = "yes"; then
15671 cat >> confdefs.h <<\EOF
15672 #define wxUSE_FILE 1
15673 EOF
15674
15675 fi
15676
15677 if test "$wxUSE_FFILE" = "yes"; then
15678 cat >> confdefs.h <<\EOF
15679 #define wxUSE_FFILE 1
15680 EOF
15681
15682 fi
15683
15684 if test "$wxUSE_FILESYSTEM" = "yes"; then
15685 cat >> confdefs.h <<\EOF
15686 #define wxUSE_FILESYSTEM 1
15687 EOF
15688
15689 fi
15690
15691 if test "$wxUSE_FS_INET" = "yes"; then
15692 cat >> confdefs.h <<\EOF
15693 #define wxUSE_FS_INET 1
15694 EOF
15695
15696 fi
15697
15698 if test "$wxUSE_FS_ZIP" = "yes"; then
15699 cat >> confdefs.h <<\EOF
15700 #define wxUSE_FS_ZIP 1
15701 EOF
15702
15703 fi
15704
15705 if test "$wxUSE_ZIPSTREAM" = "yes"; then
15706 cat >> confdefs.h <<\EOF
15707 #define wxUSE_ZIPSTREAM 1
15708 EOF
15709
15710 fi
15711
15712 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15713 cat >> confdefs.h <<\EOF
15714 #define wxUSE_ON_FATAL_EXCEPTION 1
15715 EOF
15716
15717 fi
15718
15719 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15720 cat >> confdefs.h <<\EOF
15721 #define wxUSE_SNGLINST_CHECKER 1
15722 EOF
15723
15724 fi
15725
15726 if test "$wxUSE_BUSYINFO" = "yes"; then
15727 cat >> confdefs.h <<\EOF
15728 #define wxUSE_BUSYINFO 1
15729 EOF
15730
15731 fi
15732
15733 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15734 cat >> confdefs.h <<\EOF
15735 #define wxUSE_STD_IOSTREAM 1
15736 EOF
15737
15738 fi
15739
15740 if test "$wxUSE_TEXTFILE" = "yes"; then
15741 if test "$wxUSE_FILE" != "yes"; then
15742 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15743 else
15744 cat >> confdefs.h <<\EOF
15745 #define wxUSE_TEXTFILE 1
15746 EOF
15747
15748 fi
15749 fi
15750
15751 if test "$wxUSE_CONFIG" = "yes" ; then
15752 if test "$wxUSE_TEXTFILE" != "yes"; then
15753 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15754 else
15755 cat >> confdefs.h <<\EOF
15756 #define wxUSE_CONFIG 1
15757 EOF
15758
15759 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15760 fi
15761 fi
15762
15763 if test "$wxUSE_INTL" = "yes" ; then
15764 if test "$wxUSE_FILE" != "yes"; then
15765 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
15766 else
15767 cat >> confdefs.h <<\EOF
15768 #define wxUSE_INTL 1
15769 EOF
15770
15771 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
15772 GUIDIST="$GUIDIST INTL_DIST"
15773 fi
15774 fi
15775
15776 if test "$wxUSE_LOG" = "yes"; then
15777 cat >> confdefs.h <<\EOF
15778 #define wxUSE_LOG 1
15779 EOF
15780
15781
15782 if test "$wxUSE_LOGGUI" = "yes"; then
15783 cat >> confdefs.h <<\EOF
15784 #define wxUSE_LOGGUI 1
15785 EOF
15786
15787 fi
15788
15789 if test "$wxUSE_LOGWINDOW" = "yes"; then
15790 cat >> confdefs.h <<\EOF
15791 #define wxUSE_LOGWINDOW 1
15792 EOF
15793
15794 fi
15795 fi
15796
15797 if test "$wxUSE_LONGLONG" = "yes"; then
15798 cat >> confdefs.h <<\EOF
15799 #define wxUSE_LONGLONG 1
15800 EOF
15801
15802 fi
15803
15804 if test "$wxUSE_GEOMETRY" = "yes"; then
15805 cat >> confdefs.h <<\EOF
15806 #define wxUSE_GEOMETRY 1
15807 EOF
15808
15809 fi
15810
15811 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
15812 cat >> confdefs.h <<\EOF
15813 #define wxUSE_DIALUP_MANAGER 1
15814 EOF
15815
15816 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
15817 fi
15818
15819 if test "$wxUSE_STREAMS" = "yes" ; then
15820 cat >> confdefs.h <<\EOF
15821 #define wxUSE_STREAMS 1
15822 EOF
15823
15824 fi
15825
15826
15827 if test "$wxUSE_DATETIME" = "yes"; then
15828 for ac_func in strptime
15829 do
15830 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15831 echo "configure:15832: checking for $ac_func" >&5
15832 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15833 echo $ac_n "(cached) $ac_c" 1>&6
15834 else
15835 cat > conftest.$ac_ext <<EOF
15836 #line 15837 "configure"
15837 #include "confdefs.h"
15838 /* System header to define __stub macros and hopefully few prototypes,
15839 which can conflict with char $ac_func(); below. */
15840 #include <assert.h>
15841 /* Override any gcc2 internal prototype to avoid an error. */
15842 /* We use char because int might match the return type of a gcc2
15843 builtin and then its argument prototype would still apply. */
15844 char $ac_func();
15845
15846 int main() {
15847
15848 /* The GNU C library defines this for functions which it implements
15849 to always fail with ENOSYS. Some functions are actually named
15850 something starting with __ and the normal name is an alias. */
15851 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15852 choke me
15853 #else
15854 $ac_func();
15855 #endif
15856
15857 ; return 0; }
15858 EOF
15859 if { (eval echo configure:15860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15860 rm -rf conftest*
15861 eval "ac_cv_func_$ac_func=yes"
15862 else
15863 echo "configure: failed program was:" >&5
15864 cat conftest.$ac_ext >&5
15865 rm -rf conftest*
15866 eval "ac_cv_func_$ac_func=no"
15867 fi
15868 rm -f conftest*
15869 fi
15870
15871 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15872 echo "$ac_t""yes" 1>&6
15873 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15874 cat >> confdefs.h <<EOF
15875 #define $ac_tr_func 1
15876 EOF
15877
15878 else
15879 echo "$ac_t""no" 1>&6
15880 fi
15881 done
15882
15883
15884 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
15885 echo "configure:15886: checking for timezone variable in <time.h>" >&5
15886 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15887 echo $ac_n "(cached) $ac_c" 1>&6
15888 else
15889
15890 cat > conftest.$ac_ext <<EOF
15891 #line 15892 "configure"
15892 #include "confdefs.h"
15893
15894 #include <time.h>
15895
15896 int main() {
15897
15898 int tz;
15899 tz = timezone;
15900
15901 ; return 0; }
15902 EOF
15903 if { (eval echo configure:15904: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15904 rm -rf conftest*
15905
15906 wx_cv_var_timezone=timezone
15907
15908 else
15909 echo "configure: failed program was:" >&5
15910 cat conftest.$ac_ext >&5
15911 rm -rf conftest*
15912
15913 cat > conftest.$ac_ext <<EOF
15914 #line 15915 "configure"
15915 #include "confdefs.h"
15916
15917 #include <time.h>
15918
15919 int main() {
15920
15921 int tz;
15922 tz = _timezone;
15923
15924 ; return 0; }
15925 EOF
15926 if { (eval echo configure:15927: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15927 rm -rf conftest*
15928
15929 wx_cv_var_timezone=_timezone
15930
15931 else
15932 echo "configure: failed program was:" >&5
15933 cat conftest.$ac_ext >&5
15934 rm -rf conftest*
15935
15936 cat > conftest.$ac_ext <<EOF
15937 #line 15938 "configure"
15938 #include "confdefs.h"
15939
15940 #include <time.h>
15941
15942 int main() {
15943
15944 int tz;
15945 tz = __timezone;
15946
15947 ; return 0; }
15948 EOF
15949 if { (eval echo configure:15950: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15950 rm -rf conftest*
15951
15952 wx_cv_var_timezone=__timezone
15953
15954 else
15955 echo "configure: failed program was:" >&5
15956 cat conftest.$ac_ext >&5
15957 rm -rf conftest*
15958 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15959
15960 fi
15961 rm -f conftest*
15962
15963
15964 fi
15965 rm -f conftest*
15966
15967
15968 fi
15969 rm -f conftest*
15970
15971
15972 fi
15973
15974 echo "$ac_t""$wx_cv_var_timezone" 1>&6
15975
15976 cat >> confdefs.h <<EOF
15977 #define WX_TIMEZONE $wx_cv_var_timezone
15978 EOF
15979
15980
15981 for ac_func in localtime
15982 do
15983 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15984 echo "configure:15985: checking for $ac_func" >&5
15985 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15986 echo $ac_n "(cached) $ac_c" 1>&6
15987 else
15988 cat > conftest.$ac_ext <<EOF
15989 #line 15990 "configure"
15990 #include "confdefs.h"
15991 /* System header to define __stub macros and hopefully few prototypes,
15992 which can conflict with char $ac_func(); below. */
15993 #include <assert.h>
15994 /* Override any gcc2 internal prototype to avoid an error. */
15995 /* We use char because int might match the return type of a gcc2
15996 builtin and then its argument prototype would still apply. */
15997 char $ac_func();
15998
15999 int main() {
16000
16001 /* The GNU C library defines this for functions which it implements
16002 to always fail with ENOSYS. Some functions are actually named
16003 something starting with __ and the normal name is an alias. */
16004 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16005 choke me
16006 #else
16007 $ac_func();
16008 #endif
16009
16010 ; return 0; }
16011 EOF
16012 if { (eval echo configure:16013: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16013 rm -rf conftest*
16014 eval "ac_cv_func_$ac_func=yes"
16015 else
16016 echo "configure: failed program was:" >&5
16017 cat conftest.$ac_ext >&5
16018 rm -rf conftest*
16019 eval "ac_cv_func_$ac_func=no"
16020 fi
16021 rm -f conftest*
16022 fi
16023
16024 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16025 echo "$ac_t""yes" 1>&6
16026 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16027 cat >> confdefs.h <<EOF
16028 #define $ac_tr_func 1
16029 EOF
16030
16031 else
16032 echo "$ac_t""no" 1>&6
16033 fi
16034 done
16035
16036
16037 if test "$ac_cv_func_localtime" = "yes"; then
16038 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
16039 echo "configure:16040: checking for tm_gmtoff in struct tm" >&5
16040 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
16041 echo $ac_n "(cached) $ac_c" 1>&6
16042 else
16043
16044 cat > conftest.$ac_ext <<EOF
16045 #line 16046 "configure"
16046 #include "confdefs.h"
16047
16048 #include <time.h>
16049
16050 int main() {
16051
16052 struct tm tm;
16053 tm.tm_gmtoff++;
16054
16055 ; return 0; }
16056 EOF
16057 if { (eval echo configure:16058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16058 rm -rf conftest*
16059
16060 wx_cv_struct_tm_has_gmtoff=yes
16061
16062 else
16063 echo "configure: failed program was:" >&5
16064 cat conftest.$ac_ext >&5
16065 rm -rf conftest*
16066 wx_cv_struct_tm_has_gmtoff=no
16067
16068 fi
16069 rm -f conftest*
16070
16071 fi
16072
16073 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
16074 fi
16075
16076 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16077 cat >> confdefs.h <<\EOF
16078 #define WX_GMTOFF_IN_TM 1
16079 EOF
16080
16081 fi
16082
16083 for ac_func in gettimeofday ftime
16084 do
16085 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16086 echo "configure:16087: checking for $ac_func" >&5
16087 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16088 echo $ac_n "(cached) $ac_c" 1>&6
16089 else
16090 cat > conftest.$ac_ext <<EOF
16091 #line 16092 "configure"
16092 #include "confdefs.h"
16093 /* System header to define __stub macros and hopefully few prototypes,
16094 which can conflict with char $ac_func(); below. */
16095 #include <assert.h>
16096 /* Override any gcc2 internal prototype to avoid an error. */
16097 /* We use char because int might match the return type of a gcc2
16098 builtin and then its argument prototype would still apply. */
16099 char $ac_func();
16100
16101 int main() {
16102
16103 /* The GNU C library defines this for functions which it implements
16104 to always fail with ENOSYS. Some functions are actually named
16105 something starting with __ and the normal name is an alias. */
16106 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16107 choke me
16108 #else
16109 $ac_func();
16110 #endif
16111
16112 ; return 0; }
16113 EOF
16114 if { (eval echo configure:16115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16115 rm -rf conftest*
16116 eval "ac_cv_func_$ac_func=yes"
16117 else
16118 echo "configure: failed program was:" >&5
16119 cat conftest.$ac_ext >&5
16120 rm -rf conftest*
16121 eval "ac_cv_func_$ac_func=no"
16122 fi
16123 rm -f conftest*
16124 fi
16125
16126 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16127 echo "$ac_t""yes" 1>&6
16128 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16129 cat >> confdefs.h <<EOF
16130 #define $ac_tr_func 1
16131 EOF
16132 break
16133 else
16134 echo "$ac_t""no" 1>&6
16135 fi
16136 done
16137
16138
16139 if test "$ac_cv_func_gettimeofday" = "yes"; then
16140 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16141 echo "configure:16142: checking whether gettimeofday takes two arguments" >&5
16142 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16143 echo $ac_n "(cached) $ac_c" 1>&6
16144 else
16145
16146
16147 ac_ext=C
16148 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16149 ac_cpp='$CXXCPP $CPPFLAGS'
16150 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16151 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16152 cross_compiling=$ac_cv_prog_cxx_cross
16153
16154
16155 cat > conftest.$ac_ext <<EOF
16156 #line 16157 "configure"
16157 #include "confdefs.h"
16158
16159 #include <sys/time.h>
16160 #include <unistd.h>
16161
16162 int main() {
16163
16164 struct timeval tv;
16165 struct timezone tz;
16166 gettimeofday(&tv, &tz);
16167
16168 ; return 0; }
16169 EOF
16170 if { (eval echo configure:16171: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16171 rm -rf conftest*
16172 wx_cv_func_gettimeofday_has_2_args=yes
16173 else
16174 echo "configure: failed program was:" >&5
16175 cat conftest.$ac_ext >&5
16176 rm -rf conftest*
16177 cat > conftest.$ac_ext <<EOF
16178 #line 16179 "configure"
16179 #include "confdefs.h"
16180
16181 #include <sys/time.h>
16182 #include <unistd.h>
16183
16184 int main() {
16185
16186 struct timeval tv;
16187 gettimeofday(&tv);
16188
16189 ; return 0; }
16190 EOF
16191 if { (eval echo configure:16192: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16192 rm -rf conftest*
16193 wx_cv_func_gettimeofday_has_2_args=no
16194 else
16195 echo "configure: failed program was:" >&5
16196 cat conftest.$ac_ext >&5
16197 rm -rf conftest*
16198 wx_cv_func_gettimeofday_has_2_args=unknown
16199
16200 fi
16201 rm -f conftest*
16202
16203 fi
16204 rm -f conftest*
16205 ac_ext=c
16206 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16207 ac_cpp='$CPP $CPPFLAGS'
16208 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16209 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16210 cross_compiling=$ac_cv_prog_cc_cross
16211
16212
16213 fi
16214
16215 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16216
16217 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16218 cat >> confdefs.h <<\EOF
16219 #define WX_GETTIMEOFDAY_NO_TZ 1
16220 EOF
16221
16222 fi
16223 fi
16224
16225 cat >> confdefs.h <<\EOF
16226 #define wxUSE_TIMEDATE 1
16227 EOF
16228
16229 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16230 fi
16231
16232
16233 if test "$TOOLKIT" != "MSW"; then
16234
16235 if test "$wxUSE_SOCKETS" = "yes"; then
16236 echo $ac_n "checking for socket""... $ac_c" 1>&6
16237 echo "configure:16238: checking for socket" >&5
16238 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16239 echo $ac_n "(cached) $ac_c" 1>&6
16240 else
16241 cat > conftest.$ac_ext <<EOF
16242 #line 16243 "configure"
16243 #include "confdefs.h"
16244 /* System header to define __stub macros and hopefully few prototypes,
16245 which can conflict with char socket(); below. */
16246 #include <assert.h>
16247 /* Override any gcc2 internal prototype to avoid an error. */
16248 /* We use char because int might match the return type of a gcc2
16249 builtin and then its argument prototype would still apply. */
16250 char socket();
16251
16252 int main() {
16253
16254 /* The GNU C library defines this for functions which it implements
16255 to always fail with ENOSYS. Some functions are actually named
16256 something starting with __ and the normal name is an alias. */
16257 #if defined (__stub_socket) || defined (__stub___socket)
16258 choke me
16259 #else
16260 socket();
16261 #endif
16262
16263 ; return 0; }
16264 EOF
16265 if { (eval echo configure:16266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16266 rm -rf conftest*
16267 eval "ac_cv_func_socket=yes"
16268 else
16269 echo "configure: failed program was:" >&5
16270 cat conftest.$ac_ext >&5
16271 rm -rf conftest*
16272 eval "ac_cv_func_socket=no"
16273 fi
16274 rm -f conftest*
16275 fi
16276
16277 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16278 echo "$ac_t""yes" 1>&6
16279 :
16280 else
16281 echo "$ac_t""no" 1>&6
16282 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16283 echo "configure:16284: checking for socket in -lsocket" >&5
16284 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16285 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16286 echo $ac_n "(cached) $ac_c" 1>&6
16287 else
16288 ac_save_LIBS="$LIBS"
16289 LIBS="-lsocket $LIBS"
16290 cat > conftest.$ac_ext <<EOF
16291 #line 16292 "configure"
16292 #include "confdefs.h"
16293 /* Override any gcc2 internal prototype to avoid an error. */
16294 /* We use char because int might match the return type of a gcc2
16295 builtin and then its argument prototype would still apply. */
16296 char socket();
16297
16298 int main() {
16299 socket()
16300 ; return 0; }
16301 EOF
16302 if { (eval echo configure:16303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16303 rm -rf conftest*
16304 eval "ac_cv_lib_$ac_lib_var=yes"
16305 else
16306 echo "configure: failed program was:" >&5
16307 cat conftest.$ac_ext >&5
16308 rm -rf conftest*
16309 eval "ac_cv_lib_$ac_lib_var=no"
16310 fi
16311 rm -f conftest*
16312 LIBS="$ac_save_LIBS"
16313
16314 fi
16315 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16316 echo "$ac_t""yes" 1>&6
16317 INET_LINK="$INET_LINK -lsocket"
16318 else
16319 echo "$ac_t""no" 1>&6
16320
16321 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16322 wxUSE_SOCKETS=no
16323
16324
16325 fi
16326
16327
16328 fi
16329
16330 fi
16331
16332
16333 if test "$wxUSE_SOCKETS" = "yes" ; then
16334 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16335 echo "configure:16336: checking what is the type of the third argument of getsockname" >&5
16336 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16337 echo $ac_n "(cached) $ac_c" 1>&6
16338 else
16339
16340
16341 ac_ext=C
16342 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16343 ac_cpp='$CXXCPP $CPPFLAGS'
16344 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16345 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16346 cross_compiling=$ac_cv_prog_cxx_cross
16347
16348
16349 cat > conftest.$ac_ext <<EOF
16350 #line 16351 "configure"
16351 #include "confdefs.h"
16352
16353 #include <sys/types.h>
16354 #include <sys/socket.h>
16355
16356 int main() {
16357
16358 socklen_t len;
16359 getsockname(0, 0, &len);
16360
16361 ; return 0; }
16362 EOF
16363 if { (eval echo configure:16364: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16364 rm -rf conftest*
16365 wx_cv_type_getsockname3=socklen_t
16366 else
16367 echo "configure: failed program was:" >&5
16368 cat conftest.$ac_ext >&5
16369 rm -rf conftest*
16370 cat > conftest.$ac_ext <<EOF
16371 #line 16372 "configure"
16372 #include "confdefs.h"
16373
16374 #include <sys/types.h>
16375 #include <sys/socket.h>
16376
16377 int main() {
16378
16379 size_t len;
16380 getsockname(0, 0, &len);
16381
16382 ; return 0; }
16383 EOF
16384 if { (eval echo configure:16385: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16385 rm -rf conftest*
16386 wx_cv_type_getsockname3=size_t
16387 else
16388 echo "configure: failed program was:" >&5
16389 cat conftest.$ac_ext >&5
16390 rm -rf conftest*
16391 cat > conftest.$ac_ext <<EOF
16392 #line 16393 "configure"
16393 #include "confdefs.h"
16394
16395 #include <sys/types.h>
16396 #include <sys/socket.h>
16397
16398 int main() {
16399
16400 int len;
16401 getsockname(0, 0, &len);
16402
16403 ; return 0; }
16404 EOF
16405 if { (eval echo configure:16406: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16406 rm -rf conftest*
16407 wx_cv_type_getsockname3=int
16408 else
16409 echo "configure: failed program was:" >&5
16410 cat conftest.$ac_ext >&5
16411 rm -rf conftest*
16412 wx_cv_type_getsockname3=unknown
16413
16414 fi
16415 rm -f conftest*
16416
16417 fi
16418 rm -f conftest*
16419
16420 fi
16421 rm -f conftest*
16422
16423 ac_ext=c
16424 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16425 ac_cpp='$CPP $CPPFLAGS'
16426 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16427 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16428 cross_compiling=$ac_cv_prog_cc_cross
16429
16430
16431 fi
16432
16433 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
16434
16435 if test "$wx_cv_type_getsockname3" = "unknown"; then
16436 wxUSE_SOCKETS=no
16437 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16438 else
16439 cat >> confdefs.h <<EOF
16440 #define SOCKLEN_T $wx_cv_type_getsockname3
16441 EOF
16442
16443 fi
16444 fi
16445
16446 fi
16447
16448 if test "$wxUSE_SOCKETS" = "yes" ; then
16449 cat >> confdefs.h <<\EOF
16450 #define wxUSE_SOCKETS 1
16451 EOF
16452
16453 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
16454 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
16455 fi
16456
16457
16458 if test "$wxUSE_GUI" = "yes"; then
16459
16460 if test "$TOOLKIT" != "MSW"; then
16461
16462 if test "$wxUSE_JOYSTICK" = "yes"; then
16463 for ac_hdr in linux/joystick.h
16464 do
16465 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16466 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16467 echo "configure:16468: checking for $ac_hdr" >&5
16468 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16469 echo $ac_n "(cached) $ac_c" 1>&6
16470 else
16471 cat > conftest.$ac_ext <<EOF
16472 #line 16473 "configure"
16473 #include "confdefs.h"
16474 #include <$ac_hdr>
16475 EOF
16476 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16477 { (eval echo configure:16478: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16478 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16479 if test -z "$ac_err"; then
16480 rm -rf conftest*
16481 eval "ac_cv_header_$ac_safe=yes"
16482 else
16483 echo "$ac_err" >&5
16484 echo "configure: failed program was:" >&5
16485 cat conftest.$ac_ext >&5
16486 rm -rf conftest*
16487 eval "ac_cv_header_$ac_safe=no"
16488 fi
16489 rm -f conftest*
16490 fi
16491 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16492 echo "$ac_t""yes" 1>&6
16493 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16494 cat >> confdefs.h <<EOF
16495 #define $ac_tr_hdr 1
16496 EOF
16497
16498 else
16499 echo "$ac_t""no" 1>&6
16500 fi
16501 done
16502
16503 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16504 wxUSE_JOYSTICK=no
16505 echo "configure: warning: Joystick not supported by this system" 1>&2
16506 fi
16507 fi
16508
16509 fi
16510
16511 if test "$wxUSE_JOYSTICK" = "yes"; then
16512 cat >> confdefs.h <<\EOF
16513 #define wxUSE_JOYSTICK 1
16514 EOF
16515
16516 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16517 fi
16518
16519 fi
16520
16521
16522 if test "$TOOLKIT" != "MSW"; then
16523
16524 HAVE_DL_FUNCS=0
16525 HAVE_SHL_FUNCS=0
16526 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16527 if test "$USE_DARWIN" = 1; then
16528 HAVE_DL_FUNCS=1
16529 else
16530 for ac_func in dlopen
16531 do
16532 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16533 echo "configure:16534: checking for $ac_func" >&5
16534 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16535 echo $ac_n "(cached) $ac_c" 1>&6
16536 else
16537 cat > conftest.$ac_ext <<EOF
16538 #line 16539 "configure"
16539 #include "confdefs.h"
16540 /* System header to define __stub macros and hopefully few prototypes,
16541 which can conflict with char $ac_func(); below. */
16542 #include <assert.h>
16543 /* Override any gcc2 internal prototype to avoid an error. */
16544 /* We use char because int might match the return type of a gcc2
16545 builtin and then its argument prototype would still apply. */
16546 char $ac_func();
16547
16548 int main() {
16549
16550 /* The GNU C library defines this for functions which it implements
16551 to always fail with ENOSYS. Some functions are actually named
16552 something starting with __ and the normal name is an alias. */
16553 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16554 choke me
16555 #else
16556 $ac_func();
16557 #endif
16558
16559 ; return 0; }
16560 EOF
16561 if { (eval echo configure:16562: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16562 rm -rf conftest*
16563 eval "ac_cv_func_$ac_func=yes"
16564 else
16565 echo "configure: failed program was:" >&5
16566 cat conftest.$ac_ext >&5
16567 rm -rf conftest*
16568 eval "ac_cv_func_$ac_func=no"
16569 fi
16570 rm -f conftest*
16571 fi
16572
16573 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16574 echo "$ac_t""yes" 1>&6
16575 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16576 cat >> confdefs.h <<EOF
16577 #define $ac_tr_func 1
16578 EOF
16579
16580 cat >> confdefs.h <<\EOF
16581 #define HAVE_DLOPEN 1
16582 EOF
16583
16584 HAVE_DL_FUNCS=1
16585
16586 else
16587 echo "$ac_t""no" 1>&6
16588 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
16589 echo "configure:16590: checking for dlopen in -ldl" >&5
16590 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16591 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16592 echo $ac_n "(cached) $ac_c" 1>&6
16593 else
16594 ac_save_LIBS="$LIBS"
16595 LIBS="-ldl $LIBS"
16596 cat > conftest.$ac_ext <<EOF
16597 #line 16598 "configure"
16598 #include "confdefs.h"
16599 /* Override any gcc2 internal prototype to avoid an error. */
16600 /* We use char because int might match the return type of a gcc2
16601 builtin and then its argument prototype would still apply. */
16602 char dlopen();
16603
16604 int main() {
16605 dlopen()
16606 ; return 0; }
16607 EOF
16608 if { (eval echo configure:16609: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16609 rm -rf conftest*
16610 eval "ac_cv_lib_$ac_lib_var=yes"
16611 else
16612 echo "configure: failed program was:" >&5
16613 cat conftest.$ac_ext >&5
16614 rm -rf conftest*
16615 eval "ac_cv_lib_$ac_lib_var=no"
16616 fi
16617 rm -f conftest*
16618 LIBS="$ac_save_LIBS"
16619
16620 fi
16621 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16622 echo "$ac_t""yes" 1>&6
16623
16624 cat >> confdefs.h <<\EOF
16625 #define HAVE_DLOPEN 1
16626 EOF
16627
16628 HAVE_DL_FUNCS=1
16629 LIBS="$LIBS -ldl"
16630
16631 else
16632 echo "$ac_t""no" 1>&6
16633
16634 for ac_func in shl_load
16635 do
16636 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16637 echo "configure:16638: checking for $ac_func" >&5
16638 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16639 echo $ac_n "(cached) $ac_c" 1>&6
16640 else
16641 cat > conftest.$ac_ext <<EOF
16642 #line 16643 "configure"
16643 #include "confdefs.h"
16644 /* System header to define __stub macros and hopefully few prototypes,
16645 which can conflict with char $ac_func(); below. */
16646 #include <assert.h>
16647 /* Override any gcc2 internal prototype to avoid an error. */
16648 /* We use char because int might match the return type of a gcc2
16649 builtin and then its argument prototype would still apply. */
16650 char $ac_func();
16651
16652 int main() {
16653
16654 /* The GNU C library defines this for functions which it implements
16655 to always fail with ENOSYS. Some functions are actually named
16656 something starting with __ and the normal name is an alias. */
16657 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16658 choke me
16659 #else
16660 $ac_func();
16661 #endif
16662
16663 ; return 0; }
16664 EOF
16665 if { (eval echo configure:16666: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16666 rm -rf conftest*
16667 eval "ac_cv_func_$ac_func=yes"
16668 else
16669 echo "configure: failed program was:" >&5
16670 cat conftest.$ac_ext >&5
16671 rm -rf conftest*
16672 eval "ac_cv_func_$ac_func=no"
16673 fi
16674 rm -f conftest*
16675 fi
16676
16677 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16678 echo "$ac_t""yes" 1>&6
16679 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16680 cat >> confdefs.h <<EOF
16681 #define $ac_tr_func 1
16682 EOF
16683
16684 cat >> confdefs.h <<\EOF
16685 #define HAVE_SHL_LOAD 1
16686 EOF
16687
16688 HAVE_SHL_FUNCS=1
16689
16690 else
16691 echo "$ac_t""no" 1>&6
16692 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16693 echo "configure:16694: checking for dld in -lshl_load" >&5
16694 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16695 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16696 echo $ac_n "(cached) $ac_c" 1>&6
16697 else
16698 ac_save_LIBS="$LIBS"
16699 LIBS="-lshl_load $LIBS"
16700 cat > conftest.$ac_ext <<EOF
16701 #line 16702 "configure"
16702 #include "confdefs.h"
16703 /* Override any gcc2 internal prototype to avoid an error. */
16704 /* We use char because int might match the return type of a gcc2
16705 builtin and then its argument prototype would still apply. */
16706 char dld();
16707
16708 int main() {
16709 dld()
16710 ; return 0; }
16711 EOF
16712 if { (eval echo configure:16713: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16713 rm -rf conftest*
16714 eval "ac_cv_lib_$ac_lib_var=yes"
16715 else
16716 echo "configure: failed program was:" >&5
16717 cat conftest.$ac_ext >&5
16718 rm -rf conftest*
16719 eval "ac_cv_lib_$ac_lib_var=no"
16720 fi
16721 rm -f conftest*
16722 LIBS="$ac_save_LIBS"
16723
16724 fi
16725 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16726 echo "$ac_t""yes" 1>&6
16727
16728 HAVE_SHL_FUNCS=1
16729 LIBS="$LIBS -ldld"
16730
16731 else
16732 echo "$ac_t""no" 1>&6
16733 fi
16734
16735
16736 fi
16737 done
16738
16739
16740 fi
16741
16742
16743 fi
16744 done
16745
16746
16747 if test "$HAVE_DL_FUNCS" = 1; then
16748 for ac_func in dlerror
16749 do
16750 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16751 echo "configure:16752: checking for $ac_func" >&5
16752 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16753 echo $ac_n "(cached) $ac_c" 1>&6
16754 else
16755 cat > conftest.$ac_ext <<EOF
16756 #line 16757 "configure"
16757 #include "confdefs.h"
16758 /* System header to define __stub macros and hopefully few prototypes,
16759 which can conflict with char $ac_func(); below. */
16760 #include <assert.h>
16761 /* Override any gcc2 internal prototype to avoid an error. */
16762 /* We use char because int might match the return type of a gcc2
16763 builtin and then its argument prototype would still apply. */
16764 char $ac_func();
16765
16766 int main() {
16767
16768 /* The GNU C library defines this for functions which it implements
16769 to always fail with ENOSYS. Some functions are actually named
16770 something starting with __ and the normal name is an alias. */
16771 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16772 choke me
16773 #else
16774 $ac_func();
16775 #endif
16776
16777 ; return 0; }
16778 EOF
16779 if { (eval echo configure:16780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16780 rm -rf conftest*
16781 eval "ac_cv_func_$ac_func=yes"
16782 else
16783 echo "configure: failed program was:" >&5
16784 cat conftest.$ac_ext >&5
16785 rm -rf conftest*
16786 eval "ac_cv_func_$ac_func=no"
16787 fi
16788 rm -f conftest*
16789 fi
16790
16791 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16792 echo "$ac_t""yes" 1>&6
16793 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16794 cat >> confdefs.h <<EOF
16795 #define $ac_tr_func 1
16796 EOF
16797 cat >> confdefs.h <<\EOF
16798 #define HAVE_DLERROR 1
16799 EOF
16800
16801 else
16802 echo "$ac_t""no" 1>&6
16803 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
16804 echo "configure:16805: checking for dlerror in -ldl" >&5
16805 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16806 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16807 echo $ac_n "(cached) $ac_c" 1>&6
16808 else
16809 ac_save_LIBS="$LIBS"
16810 LIBS="-ldl $LIBS"
16811 cat > conftest.$ac_ext <<EOF
16812 #line 16813 "configure"
16813 #include "confdefs.h"
16814 /* Override any gcc2 internal prototype to avoid an error. */
16815 /* We use char because int might match the return type of a gcc2
16816 builtin and then its argument prototype would still apply. */
16817 char dlerror();
16818
16819 int main() {
16820 dlerror()
16821 ; return 0; }
16822 EOF
16823 if { (eval echo configure:16824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16824 rm -rf conftest*
16825 eval "ac_cv_lib_$ac_lib_var=yes"
16826 else
16827 echo "configure: failed program was:" >&5
16828 cat conftest.$ac_ext >&5
16829 rm -rf conftest*
16830 eval "ac_cv_lib_$ac_lib_var=no"
16831 fi
16832 rm -f conftest*
16833 LIBS="$ac_save_LIBS"
16834
16835 fi
16836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16837 echo "$ac_t""yes" 1>&6
16838 cat >> confdefs.h <<\EOF
16839 #define HAVE_DLERROR 1
16840 EOF
16841
16842 else
16843 echo "$ac_t""no" 1>&6
16844 fi
16845
16846 fi
16847 done
16848
16849 fi
16850 fi
16851
16852 if test "$HAVE_DL_FUNCS" = 0; then
16853 if test "$HAVE_SHL_FUNCS" = 0; then
16854 if test "$USE_UNIX" = 1; then
16855 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
16856 wxUSE_DYNLIB_CLASS=no
16857 else
16858 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
16859 fi
16860 fi
16861 fi
16862 fi
16863
16864 fi
16865
16866 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
16867 cat >> confdefs.h <<\EOF
16868 #define wxUSE_DYNLIB_CLASS 1
16869 EOF
16870
16871 else
16872 wxUSE_ODBC=no
16873 wxUSE_SERIAL=no
16874 fi
16875
16876
16877 if test "$wxUSE_FONTMAP" = "yes" ; then
16878 cat >> confdefs.h <<\EOF
16879 #define wxUSE_FONTMAP 1
16880 EOF
16881
16882 fi
16883
16884 if test "$wxUSE_UNICODE" = "yes" ; then
16885 cat >> confdefs.h <<\EOF
16886 #define wxUSE_UNICODE 1
16887 EOF
16888
16889 fi
16890
16891 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
16892 cat >> confdefs.h <<\EOF
16893 #define wxUSE_WCSRTOMBS 1
16894 EOF
16895
16896 fi
16897
16898 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
16899 cat >> confdefs.h <<\EOF
16900 #define wxUSE_EXPERIMENTAL_PRINTF 1
16901 EOF
16902
16903 fi
16904
16905
16906 if test "$wxUSE_SERIAL" = "yes" ; then
16907 cat >> confdefs.h <<\EOF
16908 #define wxUSE_SERIAL 1
16909 EOF
16910
16911 fi
16912
16913
16914 IODBC_C_SRC=""
16915 if test "$wxUSE_ODBC" = "yes" ; then
16916 cat >> confdefs.h <<\EOF
16917 #define wxUSE_ODBC 1
16918 EOF
16919
16920 WXODBCFLAG="-D_IODBC_"
16921 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
16922 fi
16923
16924
16925 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
16926 cat >> confdefs.h <<\EOF
16927 #define wxUSE_POSTSCRIPT 1
16928 EOF
16929
16930 fi
16931
16932 cat >> confdefs.h <<\EOF
16933 #define wxUSE_AFM_FOR_POSTSCRIPT 1
16934 EOF
16935
16936
16937 cat >> confdefs.h <<\EOF
16938 #define wxUSE_NORMALIZED_PS_FONTS 1
16939 EOF
16940
16941
16942
16943 if test "$wxUSE_CONSTRAINTS" = "yes"; then
16944 cat >> confdefs.h <<\EOF
16945 #define wxUSE_CONSTRAINTS 1
16946 EOF
16947
16948 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16949 fi
16950
16951 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16952 cat >> confdefs.h <<\EOF
16953 #define wxUSE_MDI_ARCHITECTURE 1
16954 EOF
16955
16956 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16957 fi
16958
16959 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
16960 cat >> confdefs.h <<\EOF
16961 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
16962 EOF
16963
16964 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16965 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16966 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16967 fi
16968 fi
16969
16970 if test "$wxUSE_HELP" = "yes"; then
16971 cat >> confdefs.h <<\EOF
16972 #define wxUSE_HELP 1
16973 EOF
16974
16975 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
16976
16977 if test "$USE_WIN32" = 1; then
16978 if test "$wxUSE_MS_HTML_HELP" = "yes"; then
16979 cat >> confdefs.h <<\EOF
16980 #define wxUSE_MS_HTML_HELP 1
16981 EOF
16982
16983 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
16984 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
16985 echo "configure:16986: checking for htmlhelp.h" >&5
16986 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16987 echo $ac_n "(cached) $ac_c" 1>&6
16988 else
16989 cat > conftest.$ac_ext <<EOF
16990 #line 16991 "configure"
16991 #include "confdefs.h"
16992 #include <htmlhelp.h>
16993 EOF
16994 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16995 { (eval echo configure:16996: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16996 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16997 if test -z "$ac_err"; then
16998 rm -rf conftest*
16999 eval "ac_cv_header_$ac_safe=yes"
17000 else
17001 echo "$ac_err" >&5
17002 echo "configure: failed program was:" >&5
17003 cat conftest.$ac_ext >&5
17004 rm -rf conftest*
17005 eval "ac_cv_header_$ac_safe=no"
17006 fi
17007 rm -f conftest*
17008 fi
17009 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17010 echo "$ac_t""yes" 1>&6
17011
17012 cat >> confdefs.h <<\EOF
17013 #define wxUSE_MS_HTML_HELP 1
17014 EOF
17015
17016
17017 else
17018 echo "$ac_t""no" 1>&6
17019
17020 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h so it won't be compiled without it" 1>&2
17021 wxUSE_MS_HTML_HELP=no
17022
17023 fi
17024
17025 fi
17026 fi
17027
17028 if test "$wxUSE_WXHTML_HELP" = "yes"; then
17029 if test "$wxUSE_HTML" = "yes"; then
17030 cat >> confdefs.h <<\EOF
17031 #define wxUSE_WXHTML_HELP 1
17032 EOF
17033
17034 else
17035 echo "configure: warning: Cannot use wxHTML-based help without wxHTML so it won't be compiled" 1>&2
17036 wxUSE_WXHTML_HELP=no
17037 fi
17038 fi
17039 fi
17040
17041 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
17042 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17043 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
17044 else
17045 cat >> confdefs.h <<\EOF
17046 #define wxUSE_PRINTING_ARCHITECTURE 1
17047 EOF
17048
17049 fi
17050 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
17051 fi
17052
17053 if test "$wxUSE_PROLOGIO" = "yes" ; then
17054 cat >> confdefs.h <<\EOF
17055 #define wxUSE_PROLOGIO 1
17056 EOF
17057
17058 fi
17059
17060 if test "$wxUSE_RESOURCES" = "yes" ; then
17061 cat >> confdefs.h <<\EOF
17062 #define wxUSE_RESOURCES 1
17063 EOF
17064
17065 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
17066 fi
17067
17068 if test "$wxUSE_X_RESOURCES" = "yes"; then
17069 cat >> confdefs.h <<\EOF
17070 #define wxUSE_X_RESOURCES 1
17071 EOF
17072
17073 fi
17074
17075
17076 if test "$wxUSE_IPC" = "yes"; then
17077 if test "$wxUSE_SOCKETS" != "yes"; then
17078 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17079 fi
17080
17081 cat >> confdefs.h <<\EOF
17082 #define wxUSE_IPC 1
17083 EOF
17084
17085 fi
17086
17087 if test "$wxUSE_CLIPBOARD" = "yes"; then
17088 cat >> confdefs.h <<\EOF
17089 #define wxUSE_CLIPBOARD 1
17090 EOF
17091
17092 cat >> confdefs.h <<\EOF
17093 #define wxUSE_DATAOBJ 1
17094 EOF
17095
17096 fi
17097
17098 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17099 if test "$wxUSE_GTK" = 1; then
17100 if test "$WXGTK12" != 1; then
17101 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
17102 wxUSE_DRAG_AND_DROP=no
17103 fi
17104 fi
17105
17106 if test "$wxUSE_MOTIF" = 1; then
17107 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17108 wxUSE_DRAG_AND_DROP=no
17109 fi
17110
17111 if test "$wxUSE_MAC" = 1; then
17112 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17113 wxUSE_DRAG_AND_DROP=no
17114 fi
17115
17116 if test "$USE_WIN32" = 1; then
17117
17118 for ac_hdr in ole2.h
17119 do
17120 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17121 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17122 echo "configure:17123: checking for $ac_hdr" >&5
17123 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17124 echo $ac_n "(cached) $ac_c" 1>&6
17125 else
17126 cat > conftest.$ac_ext <<EOF
17127 #line 17128 "configure"
17128 #include "confdefs.h"
17129 #include <$ac_hdr>
17130 EOF
17131 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17132 { (eval echo configure:17133: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17133 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17134 if test -z "$ac_err"; then
17135 rm -rf conftest*
17136 eval "ac_cv_header_$ac_safe=yes"
17137 else
17138 echo "$ac_err" >&5
17139 echo "configure: failed program was:" >&5
17140 cat conftest.$ac_ext >&5
17141 rm -rf conftest*
17142 eval "ac_cv_header_$ac_safe=no"
17143 fi
17144 rm -f conftest*
17145 fi
17146 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17147 echo "$ac_t""yes" 1>&6
17148 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17149 cat >> confdefs.h <<EOF
17150 #define $ac_tr_hdr 1
17151 EOF
17152
17153 else
17154 echo "$ac_t""no" 1>&6
17155 fi
17156 done
17157
17158
17159 if test "$ac_cv_header_ole2_h" = "yes" ; then
17160 if test "$GCC" = yes ; then
17161 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17162 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
17163 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17164 LIBS="$LIBS -lole32 -luuid"
17165 cat >> confdefs.h <<\EOF
17166 #define wxUSE_OLE 1
17167 EOF
17168
17169
17170 if test "$wxUSE_METAFILE" = "yes"; then
17171 cat >> confdefs.h <<\EOF
17172 #define wxUSE_METAFILE 1
17173 EOF
17174
17175 cat >> confdefs.h <<\EOF
17176 #define wxUSE_ENH_METAFILE 1
17177 EOF
17178
17179 fi
17180 fi
17181 else
17182 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
17183 wxUSE_DRAG_AND_DROP=no
17184 fi
17185 fi
17186
17187 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17188 cat >> confdefs.h <<\EOF
17189 #define wxUSE_DRAG_AND_DROP 1
17190 EOF
17191
17192 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17193 fi
17194
17195 fi
17196
17197 if test "$wxUSE_SPLINES" = "yes" ; then
17198 cat >> confdefs.h <<\EOF
17199 #define wxUSE_SPLINES 1
17200 EOF
17201
17202 fi
17203
17204
17205 USES_CONTROLS=0
17206 if test "$wxUSE_CONTROLS" = "yes"; then
17207 USES_CONTROLS=1
17208 fi
17209
17210 if test "$wxUSE_ACCEL" = "yes"; then
17211 cat >> confdefs.h <<\EOF
17212 #define wxUSE_ACCEL 1
17213 EOF
17214
17215 USES_CONTROLS=1
17216 fi
17217
17218 if test "$wxUSE_BUTTON" = "yes"; then
17219 cat >> confdefs.h <<\EOF
17220 #define wxUSE_BUTTON 1
17221 EOF
17222
17223 USES_CONTROLS=1
17224 fi
17225
17226 if test "$wxUSE_BMPBUTTON" = "yes"; then
17227 cat >> confdefs.h <<\EOF
17228 #define wxUSE_BMPBUTTON 1
17229 EOF
17230
17231 USES_CONTROLS=1
17232 fi
17233
17234 if test "$wxUSE_CALCTRL" = "yes"; then
17235 cat >> confdefs.h <<\EOF
17236 #define wxUSE_CALENDARCTRL 1
17237 EOF
17238
17239 USES_CONTROLS=1
17240 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17241 fi
17242
17243 if test "$wxUSE_CARET" = "yes"; then
17244 cat >> confdefs.h <<\EOF
17245 #define wxUSE_CARET 1
17246 EOF
17247
17248 USES_CONTROLS=1
17249 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17250 fi
17251
17252 if test "$wxUSE_COMBOBOX" = "yes"; then
17253 cat >> confdefs.h <<\EOF
17254 #define wxUSE_COMBOBOX 1
17255 EOF
17256
17257 USES_CONTROLS=1
17258 fi
17259
17260 if test "$wxUSE_CHOICE" = "yes"; then
17261 cat >> confdefs.h <<\EOF
17262 #define wxUSE_CHOICE 1
17263 EOF
17264
17265 USES_CONTROLS=1
17266 fi
17267
17268 if test "$wxUSE_CHECKBOX" = "yes"; then
17269 cat >> confdefs.h <<\EOF
17270 #define wxUSE_CHECKBOX 1
17271 EOF
17272
17273 USES_CONTROLS=1
17274 fi
17275
17276 if test "$wxUSE_CHECKLST" = "yes"; then
17277 cat >> confdefs.h <<\EOF
17278 #define wxUSE_CHECKLISTBOX 1
17279 EOF
17280
17281 USES_CONTROLS=1
17282 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17283 fi
17284
17285 if test "$wxUSE_GAUGE" = "yes"; then
17286 cat >> confdefs.h <<\EOF
17287 #define wxUSE_GAUGE 1
17288 EOF
17289
17290 USES_CONTROLS=1
17291 fi
17292
17293 if test "$wxUSE_NEW_GRID" = "yes"; then
17294 wxUSE_GRID="yes"
17295 cat >> confdefs.h <<\EOF
17296 #define wxUSE_NEW_GRID 1
17297 EOF
17298
17299 USES_CONTROLS=1
17300 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17301 fi
17302
17303 if test "$wxUSE_GRID" = "yes"; then
17304 cat >> confdefs.h <<\EOF
17305 #define wxUSE_GRID 1
17306 EOF
17307
17308 USES_CONTROLS=1
17309 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17310 fi
17311
17312 if test "$wxUSE_IMAGLIST" = "yes"; then
17313 cat >> confdefs.h <<\EOF
17314 #define wxUSE_IMAGLIST 1
17315 EOF
17316
17317 fi
17318
17319 if test "$wxUSE_LISTBOX" = "yes"; then
17320 cat >> confdefs.h <<\EOF
17321 #define wxUSE_LISTBOX 1
17322 EOF
17323
17324 USES_CONTROLS=1
17325 fi
17326
17327 if test "$wxUSE_LISTCTRL" = "yes"; then
17328 if test "$wxUSE_IMAGLIST" = "yes"; then
17329 cat >> confdefs.h <<\EOF
17330 #define wxUSE_LISTCTRL 1
17331 EOF
17332
17333 USES_CONTROLS=1
17334 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17335 else
17336 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
17337 fi
17338 fi
17339
17340 if test "$wxUSE_NOTEBOOK" = "yes"; then
17341 cat >> confdefs.h <<\EOF
17342 #define wxUSE_NOTEBOOK 1
17343 EOF
17344
17345 USES_CONTROLS=1
17346 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17347 fi
17348
17349 if test "$wxUSE_PROPSHEET" = "yes"; then
17350 cat >> confdefs.h <<\EOF
17351 #define wxUSE_PROPSHEET 1
17352 EOF
17353
17354 USES_CONTROLS=1
17355 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS proplist"
17356 fi
17357
17358 if test "$wxUSE_RADIOBOX" = "yes"; then
17359 cat >> confdefs.h <<\EOF
17360 #define wxUSE_RADIOBOX 1
17361 EOF
17362
17363 USES_CONTROLS=1
17364 fi
17365
17366 if test "$wxUSE_RADIOBTN" = "yes"; then
17367 cat >> confdefs.h <<\EOF
17368 #define wxUSE_RADIOBTN 1
17369 EOF
17370
17371 USES_CONTROLS=1
17372 fi
17373
17374 if test "$wxUSE_SASH" = "yes"; then
17375 cat >> confdefs.h <<\EOF
17376 #define wxUSE_SASH 1
17377 EOF
17378
17379 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17380 fi
17381
17382 if test "$wxUSE_SCROLLBAR" = "yes"; then
17383 cat >> confdefs.h <<\EOF
17384 #define wxUSE_SCROLLBAR 1
17385 EOF
17386
17387 USES_CONTROLS=1
17388 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
17389 fi
17390
17391 if test "$wxUSE_SLIDER" = "yes"; then
17392 cat >> confdefs.h <<\EOF
17393 #define wxUSE_SLIDER 1
17394 EOF
17395
17396 USES_CONTROLS=1
17397 fi
17398
17399 if test "$wxUSE_SPINBTN" = "yes"; then
17400 cat >> confdefs.h <<\EOF
17401 #define wxUSE_SPINBTN 1
17402 EOF
17403
17404 USES_CONTROLS=1
17405 fi
17406
17407 if test "$wxUSE_SPINCTRL" = "yes"; then
17408 cat >> confdefs.h <<\EOF
17409 #define wxUSE_SPINCTRL 1
17410 EOF
17411
17412 USES_CONTROLS=1
17413 fi
17414
17415 if test "$wxUSE_SPLITTER" = "yes"; then
17416 cat >> confdefs.h <<\EOF
17417 #define wxUSE_SPLITTER 1
17418 EOF
17419
17420 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17421 fi
17422
17423 if test "$wxUSE_STATBMP" = "yes"; then
17424 cat >> confdefs.h <<\EOF
17425 #define wxUSE_STATBMP 1
17426 EOF
17427
17428 USES_CONTROLS=1
17429 fi
17430
17431 if test "$wxUSE_STATBOX" = "yes"; then
17432 cat >> confdefs.h <<\EOF
17433 #define wxUSE_STATBOX 1
17434 EOF
17435
17436 USES_CONTROLS=1
17437 fi
17438
17439 if test "$wxUSE_STATTEXT" = "yes"; then
17440 cat >> confdefs.h <<\EOF
17441 #define wxUSE_STATTEXT 1
17442 EOF
17443
17444 USES_CONTROLS=1
17445 fi
17446
17447 if test "$wxUSE_STATLINE" = "yes"; then
17448 if test "$wxUSE_WINE" = 1 ; then
17449 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
17450 else
17451 cat >> confdefs.h <<\EOF
17452 #define wxUSE_STATLINE 1
17453 EOF
17454
17455 USES_CONTROLS=1
17456 fi
17457 fi
17458
17459 if test "$wxUSE_STATUSBAR" = "yes"; then
17460 cat >> confdefs.h <<\EOF
17461 #define wxUSE_STATUSBAR 1
17462 EOF
17463
17464 USES_CONTROLS=1
17465
17466 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
17467 fi
17468
17469 if test "$wxUSE_TABDIALOG" = "yes"; then
17470 cat >> confdefs.h <<\EOF
17471 #define wxUSE_TAB_DIALOG 1
17472 EOF
17473
17474 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17475 fi
17476
17477 if test "$wxUSE_TEXTCTRL" = "yes"; then
17478 cat >> confdefs.h <<\EOF
17479 #define wxUSE_TEXTCTRL 1
17480 EOF
17481
17482 USES_CONTROLS=1
17483 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17484 fi
17485
17486 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17487 if test "$wxUSE_MAC" = 1; then
17488 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17489 wxUSE_TOGGLEBTN=no
17490 fi
17491
17492 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17493 cat >> confdefs.h <<\EOF
17494 #define wxUSE_TOGGLEBTN 1
17495 EOF
17496
17497 USES_CONTROLS=1
17498 fi
17499 fi
17500
17501 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
17502 cat >> confdefs.h <<\EOF
17503 #define wxUSE_TOOLBAR_SIMPLE 1
17504 EOF
17505
17506 wxUSE_TOOLBAR="yes"
17507 USES_CONTROLS=1
17508 fi
17509
17510 if test "$wxUSE_TOOLBAR" = "yes"; then
17511 cat >> confdefs.h <<\EOF
17512 #define wxUSE_TOOLBAR 1
17513 EOF
17514
17515 USES_CONTROLS=1
17516
17517 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17518 wxUSE_TOOLBAR_NATIVE="yes"
17519 fi
17520
17521 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17522 cat >> confdefs.h <<\EOF
17523 #define wxUSE_TOOLBAR_NATIVE 1
17524 EOF
17525
17526 USES_CONTROLS=1
17527 fi
17528
17529 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
17530 fi
17531
17532 if test "$wxUSE_TOOLTIPS" = "yes"; then
17533 if test "$wxUSE_MOTIF" = 1; then
17534 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
17535 else
17536 if test "$wxUSE_WINE" = 1; then
17537 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
17538 else
17539 cat >> confdefs.h <<\EOF
17540 #define wxUSE_TOOLTIPS 1
17541 EOF
17542
17543 fi
17544 fi
17545 fi
17546
17547 if test "$wxUSE_TREECTRL" = "yes"; then
17548 if test "$wxUSE_IMAGLIST" = "yes"; then
17549 cat >> confdefs.h <<\EOF
17550 #define wxUSE_TREECTRL 1
17551 EOF
17552
17553 USES_CONTROLS=1
17554 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17555 else
17556 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
17557 fi
17558 fi
17559
17560 if test "$wxUSE_POPUPWIN" = "yes"; then
17561 if test "$wxUSE_MAC" = 1; then
17562 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17563 else
17564 cat >> confdefs.h <<\EOF
17565 #define wxUSE_POPUPWIN 1
17566 EOF
17567
17568 USES_CONTROLS=1
17569 fi
17570 fi
17571
17572 if test "$USES_CONTROLS" = 1; then
17573 cat >> confdefs.h <<\EOF
17574 #define wxUSE_CONTROLS 1
17575 EOF
17576
17577 fi
17578
17579
17580 if test "$wxUSE_TREELAYOUT" = "yes"; then
17581 cat >> confdefs.h <<\EOF
17582 #define wxUSE_TREELAYOUT 1
17583 EOF
17584
17585 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treelay"
17586 fi
17587
17588 if test "$wxUSE_DRAGIMAGE" = "yes"; then
17589 cat >> confdefs.h <<\EOF
17590 #define wxUSE_DRAGIMAGE 1
17591 EOF
17592
17593 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17594 fi
17595
17596 if test "$wxUSE_MENUS" = "yes"; then
17597 cat >> confdefs.h <<\EOF
17598 #define wxUSE_MENUS 1
17599 EOF
17600
17601 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
17602 fi
17603
17604 if test "$wxUSE_METAFILE" = "yes"; then
17605 cat >> confdefs.h <<\EOF
17606 #define wxUSE_METAFILE 1
17607 EOF
17608
17609 fi
17610
17611 if test "$wxUSE_MIMETYPE" = "yes"; then
17612 cat >> confdefs.h <<\EOF
17613 #define wxUSE_MIMETYPE 1
17614 EOF
17615
17616 fi
17617
17618 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17619 cat >> confdefs.h <<\EOF
17620 #define wxUSE_SYSTEM_OPTIONS 1
17621 EOF
17622
17623 fi
17624
17625 if test "$wxUSE_MINIFRAME" = "yes"; then
17626 cat >> confdefs.h <<\EOF
17627 #define wxUSE_MINIFRAME 1
17628 EOF
17629
17630 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17631 fi
17632
17633 if test "$wxUSE_HTML" = "yes"; then
17634 cat >> confdefs.h <<\EOF
17635 #define wxUSE_HTML 1
17636 EOF
17637
17638 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17639 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
17640 fi
17641
17642 if test "$wxUSE_VALIDATORS" = "yes"; then
17643 cat >> confdefs.h <<\EOF
17644 #define wxUSE_VALIDATORS 1
17645 EOF
17646
17647 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17648 fi
17649
17650 if test "$wxUSE_IMAGE" = "yes" ; then
17651 cat >> confdefs.h <<\EOF
17652 #define wxUSE_IMAGE 1
17653 EOF
17654
17655 fi
17656
17657 if test "$wxUSE_GIF" = "yes" ; then
17658 cat >> confdefs.h <<\EOF
17659 #define wxUSE_GIF 1
17660 EOF
17661
17662 fi
17663
17664 if test "$wxUSE_PCX" = "yes" ; then
17665 cat >> confdefs.h <<\EOF
17666 #define wxUSE_PCX 1
17667 EOF
17668
17669 fi
17670
17671 if test "$wxUSE_PNM" = "yes" ; then
17672 cat >> confdefs.h <<\EOF
17673 #define wxUSE_PNM 1
17674 EOF
17675
17676 fi
17677
17678 if test "$wxUSE_XPM" = "yes" ; then
17679 cat >> confdefs.h <<\EOF
17680 #define wxUSE_XPM 1
17681 EOF
17682
17683 fi
17684
17685
17686 if test "$wxUSE_CHOICEDLG" = "yes"; then
17687 cat >> confdefs.h <<\EOF
17688 #define wxUSE_CHOICEDLG 1
17689 EOF
17690
17691 fi
17692
17693 if test "$wxUSE_COLOURDLG" = "yes"; then
17694 cat >> confdefs.h <<\EOF
17695 #define wxUSE_COLOURDLG 1
17696 EOF
17697
17698 fi
17699
17700 if test "$wxUSE_FILEDLG" = "yes"; then
17701 cat >> confdefs.h <<\EOF
17702 #define wxUSE_FILEDLG 1
17703 EOF
17704
17705 fi
17706
17707 if test "$wxUSE_FONTDLG" = "yes"; then
17708 cat >> confdefs.h <<\EOF
17709 #define wxUSE_FONTDLG 1
17710 EOF
17711
17712 fi
17713
17714 if test "$wxUSE_DIRDLG" = "yes"; then
17715 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17716 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17717 else
17718 if test "$wxUSE_TREECTRL" != "yes"; then
17719 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17720 else
17721 cat >> confdefs.h <<\EOF
17722 #define wxUSE_DIRDLG 1
17723 EOF
17724
17725 fi
17726 fi
17727 fi
17728
17729 if test "$wxUSE_MSGDLG" = "yes"; then
17730 cat >> confdefs.h <<\EOF
17731 #define wxUSE_MSGDLG 1
17732 EOF
17733
17734 fi
17735
17736 if test "$wxUSE_NUMBERDLG" = "yes"; then
17737 cat >> confdefs.h <<\EOF
17738 #define wxUSE_NUMBERDLG 1
17739 EOF
17740
17741 fi
17742
17743 if test "$wxUSE_PROGRESSDLG" = "yes"; then
17744 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17745 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17746 else
17747 cat >> confdefs.h <<\EOF
17748 #define wxUSE_PROGRESSDLG 1
17749 EOF
17750
17751 fi
17752 fi
17753
17754 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17755 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17756 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17757 else
17758 cat >> confdefs.h <<\EOF
17759 #define wxUSE_STARTUP_TIPS 1
17760 EOF
17761
17762 fi
17763 fi
17764
17765 if test "$wxUSE_TEXTDLG" = "yes"; then
17766 cat >> confdefs.h <<\EOF
17767 #define wxUSE_TEXTDLG 1
17768 EOF
17769
17770 fi
17771
17772 if test "$wxUSE_WIZARDDLG" = "yes"; then
17773 cat >> confdefs.h <<\EOF
17774 #define wxUSE_WIZARDDLG 1
17775 EOF
17776
17777 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17778 fi
17779
17780
17781 if test "$cross_compiling" = "yes"; then
17782 OSINFO="\"$host\""
17783 else
17784 OSINFO=`uname -s -r -m`
17785 OSINFO="\"$OSINFO\""
17786 fi
17787
17788 cat >> confdefs.h <<EOF
17789 #define WXWIN_OS_DESCRIPTION $OSINFO
17790 EOF
17791
17792
17793
17794 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17795 OPENGL_LIBS="$OPENGL_LINK"
17796
17797 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17798 if test "$wxUSE_MAC" = 1 ; then
17799 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17800 fi
17801 if test "$wxUSE_GUI" = "yes"; then
17802 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17803 fi
17804
17805 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17806
17807 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include \
17808 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
17809 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17810
17811 if test "$wxUSE_GTK" = 1; then
17812 WXCONFIG_INCLUDE=""
17813 else
17814 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17815 fi
17816
17817 if test "$GXX" = yes ; then
17818 CXXWARNINGS="-Wall"
17819 fi
17820 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17821
17822 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17823 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17824
17825 LDFLAGS="$LDFLAGS $PROFILE"
17826
17827 if test "$wxUSE_GUI" = "yes"; then
17828
17829 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
17830 drawing dynamic erase event exec font image \
17831 minimal richedit rotate widgets"
17832
17833 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17834 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17835 fi
17836
17837 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17838 else
17839 SAMPLES_SUBDIRS="console"
17840 fi
17841
17842 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918
17919
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
17938 echo "configure:17939: checking whether ${MAKE-make} sets \${MAKE}" >&5
17939 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17940 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17941 echo $ac_n "(cached) $ac_c" 1>&6
17942 else
17943 cat > conftestmake <<\EOF
17944 all:
17945 @echo 'ac_maketemp="${MAKE}"'
17946 EOF
17947 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17948 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
17949 if test -n "$ac_maketemp"; then
17950 eval ac_cv_prog_make_${ac_make}_set=yes
17951 else
17952 eval ac_cv_prog_make_${ac_make}_set=no
17953 fi
17954 rm -f conftestmake
17955 fi
17956 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
17957 echo "$ac_t""yes" 1>&6
17958 SET_MAKE=
17959 else
17960 echo "$ac_t""no" 1>&6
17961 SET_MAKE="MAKE=${MAKE-make}"
17962 fi
17963
17964
17965 if test -d include; then
17966 if test -d include/wx; then
17967 if test -d include/wx/${SETUPH_DIR}; then
17968 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17969 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
17970 fi
17971 fi
17972 fi
17973 fi
17974
17975
17976
17977 if test "$wxUSE_GUI" = "yes"; then
17978 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
17979 wx_cv_path_ifs=$PATH_IFS
17980 wx_cv_program_ext=$PROGRAM_EXT
17981 wx_cv_target_library=$WX_TARGET_LIBRARY
17982 wx_cv_target_library_gl=$WX_TARGET_LIBRARY_GL
17983 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
17984 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
17985 wx_cv_target_library wx_cv_target_library_gl wx_cv_target_libtype
17986 subdirs="demos samples utils contrib"
17987
17988 fi
17989
17990 trap '' 1 2 15
17991 cat > confcache <<\EOF
17992 # This file is a shell script that caches the results of configure
17993 # tests run on this system so they can be shared between configure
17994 # scripts and configure runs. It is not useful on other systems.
17995 # If it contains results you don't want to keep, you may remove or edit it.
17996 #
17997 # By default, configure uses ./config.cache as the cache file,
17998 # creating it if it does not exist already. You can give configure
17999 # the --cache-file=FILE option to use a different cache file; that is
18000 # what configure does when it calls configure scripts in
18001 # subdirectories, so they share the cache.
18002 # Giving --cache-file=/dev/null disables caching, for debugging configure.
18003 # config.status only pays attention to the cache file if you give it the
18004 # --recheck option to rerun configure.
18005 #
18006 EOF
18007 # The following way of writing the cache mishandles newlines in values,
18008 # but we know of no workaround that is simple, portable, and efficient.
18009 # So, don't put newlines in cache variables' values.
18010 # Ultrix sh set writes to stderr and can't be redirected directly,
18011 # and sets the high bit in the cache file unless we assign to the vars.
18012 (set) 2>&1 |
18013 case `(ac_space=' '; set | grep ac_space) 2>&1` in
18014 *ac_space=\ *)
18015 # `set' does not quote correctly, so add quotes (double-quote substitution
18016 # turns \\\\ into \\, and sed turns \\ into \).
18017 sed -n \
18018 -e "s/'/'\\\\''/g" \
18019 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
18020 ;;
18021 *)
18022 # `set' quotes correctly as required by POSIX, so do not add quotes.
18023 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
18024 ;;
18025 esac >> confcache
18026 if cmp -s $cache_file confcache; then
18027 :
18028 else
18029 if test -w $cache_file; then
18030 echo "updating cache $cache_file"
18031 cat confcache > $cache_file
18032 else
18033 echo "not updating unwritable cache $cache_file"
18034 fi
18035 fi
18036 rm -f confcache
18037
18038 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
18039
18040 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18041 # Let make expand exec_prefix.
18042 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18043
18044 # Any assignment to VPATH causes Sun make to only execute
18045 # the first set of double-colon rules, so remove it if not needed.
18046 # If there is a colon in the path, we need to keep it.
18047 if test "x$srcdir" = x.; then
18048 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
18049 fi
18050
18051 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
18052
18053 DEFS=-DHAVE_CONFIG_H
18054
18055 # Without the "./", some shells look in PATH for config.status.
18056 : ${CONFIG_STATUS=./config.status}
18057
18058 echo creating $CONFIG_STATUS
18059 rm -f $CONFIG_STATUS
18060 cat > $CONFIG_STATUS <<EOF
18061 #! /bin/sh
18062 # Generated automatically by configure.
18063 # Run this file to recreate the current configuration.
18064 # This directory was configured as follows,
18065 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18066 #
18067 # $0 $ac_configure_args
18068 #
18069 # Compiler output produced by configure, useful for debugging
18070 # configure, is in ./config.log if it exists.
18071
18072 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
18073 for ac_option
18074 do
18075 case "\$ac_option" in
18076 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18077 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
18078 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
18079 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
18080 echo "$CONFIG_STATUS generated by autoconf version 2.13"
18081 exit 0 ;;
18082 -help | --help | --hel | --he | --h)
18083 echo "\$ac_cs_usage"; exit 0 ;;
18084 *) echo "\$ac_cs_usage"; exit 1 ;;
18085 esac
18086 done
18087
18088 ac_given_srcdir=$srcdir
18089 ac_given_INSTALL="$INSTALL"
18090
18091 trap 'rm -fr `echo "
18092 wx-config
18093 src/make.env
18094 src/makeprog.env
18095 src/makelib.env
18096 Makefile
18097 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18098 EOF
18099 cat >> $CONFIG_STATUS <<EOF
18100
18101 # Protect against being on the right side of a sed subst in config.status.
18102 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18103 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18104 $ac_vpsub
18105 $extrasub
18106 s%@SHELL@%$SHELL%g
18107 s%@CFLAGS@%$CFLAGS%g
18108 s%@CPPFLAGS@%$CPPFLAGS%g
18109 s%@CXXFLAGS@%$CXXFLAGS%g
18110 s%@FFLAGS@%$FFLAGS%g
18111 s%@DEFS@%$DEFS%g
18112 s%@LDFLAGS@%$LDFLAGS%g
18113 s%@LIBS@%$LIBS%g
18114 s%@exec_prefix@%$exec_prefix%g
18115 s%@prefix@%$prefix%g
18116 s%@program_transform_name@%$program_transform_name%g
18117 s%@bindir@%$bindir%g
18118 s%@sbindir@%$sbindir%g
18119 s%@libexecdir@%$libexecdir%g
18120 s%@datadir@%$datadir%g
18121 s%@sysconfdir@%$sysconfdir%g
18122 s%@sharedstatedir@%$sharedstatedir%g
18123 s%@localstatedir@%$localstatedir%g
18124 s%@libdir@%$libdir%g
18125 s%@includedir@%$includedir%g
18126 s%@oldincludedir@%$oldincludedir%g
18127 s%@infodir@%$infodir%g
18128 s%@mandir@%$mandir%g
18129 s%@host@%$host%g
18130 s%@host_alias@%$host_alias%g
18131 s%@host_cpu@%$host_cpu%g
18132 s%@host_vendor@%$host_vendor%g
18133 s%@host_os@%$host_os%g
18134 s%@target@%$target%g
18135 s%@target_alias@%$target_alias%g
18136 s%@target_cpu@%$target_cpu%g
18137 s%@target_vendor@%$target_vendor%g
18138 s%@target_os@%$target_os%g
18139 s%@build@%$build%g
18140 s%@build_alias@%$build_alias%g
18141 s%@build_cpu@%$build_cpu%g
18142 s%@build_vendor@%$build_vendor%g
18143 s%@build_os@%$build_os%g
18144 s%@CC@%$CC%g
18145 s%@CPP@%$CPP%g
18146 s%@CXX@%$CXX%g
18147 s%@CXXCPP@%$CXXCPP%g
18148 s%@RANLIB@%$RANLIB%g
18149 s%@AR@%$AR%g
18150 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18151 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18152 s%@INSTALL_DATA@%$INSTALL_DATA%g
18153 s%@STRIP@%$STRIP%g
18154 s%@YACC@%$YACC%g
18155 s%@LEX@%$LEX%g
18156 s%@LEXLIB@%$LEXLIB%g
18157 s%@LN_S@%$LN_S%g
18158 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18159 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18160 s%@GTK_LIBS@%$GTK_LIBS%g
18161 s%@GTK_CONFIG@%$GTK_CONFIG%g
18162 s%@X_CFLAGS@%$X_CFLAGS%g
18163 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18164 s%@X_LIBS@%$X_LIBS%g
18165 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18166 s%@REZ@%$REZ%g
18167 s%@DEREZ@%$DEREZ%g
18168 s%@LEX_STEM@%$LEX_STEM%g
18169 s%@PATH_IFS@%$PATH_IFS%g
18170 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18171 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18172 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18173 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
18174 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18175 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18176 s%@WX_LIBRARY@%$WX_LIBRARY%g
18177 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18178 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18179 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18180 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
18181 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18182 s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
18183 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18184 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18185 s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
18186 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18187 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18188 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18189 s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
18190 s%@WX_ALL@%$WX_ALL%g
18191 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18192 s%@SHARED_LD@%$SHARED_LD%g
18193 s%@PIC_FLAG@%$PIC_FLAG%g
18194 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
18195 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18196 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18197 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
18198 s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
18199 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18200 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18201 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18202 s%@USE_GUI@%$USE_GUI%g
18203 s%@AFMINSTALL@%$AFMINSTALL%g
18204 s%@SETUPH_DIR@%$SETUPH_DIR%g
18205 s%@TOOLKIT@%$TOOLKIT%g
18206 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
18207 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18208 s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
18209 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
18210 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18211 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18212 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18213 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
18214 s%@GUIDIST@%$GUIDIST%g
18215 s%@PORT_FILES@%$PORT_FILES%g
18216 s%@DISTDIR@%$DISTDIR%g
18217 s%@RPM_SPEC@%$RPM_SPEC%g
18218 s%@RPM_FILES@%$RPM_FILES%g
18219 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
18220 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
18221 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
18222 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
18223 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18224 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
18225 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18226 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18227 s%@EXTRADEFS@%$EXTRADEFS%g
18228 s%@LD_LIBS@%$LD_LIBS%g
18229 s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
18230 s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
18231 s%@RESPROGRAM@%$RESPROGRAM%g
18232 s%@RESCOMP@%$RESCOMP%g
18233 s%@RESFLAGS@%$RESFLAGS%g
18234 s%@REZFLAGS@%$REZFLAGS%g
18235 s%@DEREZFLAGS@%$DEREZFLAGS%g
18236 s%@LIBWXMACRES@%$LIBWXMACRES%g
18237 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18238 s%@DLLTOOL@%$DLLTOOL%g
18239 s%@AS@%$AS%g
18240 s%@NM@%$NM%g
18241 s%@LD@%$LD%g
18242 s%@MAKEINFO@%$MAKEINFO%g
18243 s%@SET_MAKE@%$SET_MAKE%g
18244 s%@subdirs@%$subdirs%g
18245
18246 CEOF
18247 EOF
18248
18249 cat >> $CONFIG_STATUS <<\EOF
18250
18251 # Split the substitutions into bite-sized pieces for seds with
18252 # small command number limits, like on Digital OSF/1 and HP-UX.
18253 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18254 ac_file=1 # Number of current file.
18255 ac_beg=1 # First line for current file.
18256 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18257 ac_more_lines=:
18258 ac_sed_cmds=""
18259 while $ac_more_lines; do
18260 if test $ac_beg -gt 1; then
18261 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18262 else
18263 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18264 fi
18265 if test ! -s conftest.s$ac_file; then
18266 ac_more_lines=false
18267 rm -f conftest.s$ac_file
18268 else
18269 if test -z "$ac_sed_cmds"; then
18270 ac_sed_cmds="sed -f conftest.s$ac_file"
18271 else
18272 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18273 fi
18274 ac_file=`expr $ac_file + 1`
18275 ac_beg=$ac_end
18276 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18277 fi
18278 done
18279 if test -z "$ac_sed_cmds"; then
18280 ac_sed_cmds=cat
18281 fi
18282 EOF
18283
18284 cat >> $CONFIG_STATUS <<EOF
18285
18286 CONFIG_FILES=\${CONFIG_FILES-"wx-config
18287 src/make.env
18288 src/makeprog.env
18289 src/makelib.env
18290 Makefile
18291 "}
18292 EOF
18293 cat >> $CONFIG_STATUS <<\EOF
18294 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18295 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18296 case "$ac_file" in
18297 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18298 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18299 *) ac_file_in="${ac_file}.in" ;;
18300 esac
18301
18302 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18303
18304 # Remove last slash and all that follows it. Not all systems have dirname.
18305 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18306 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18307 # The file is in a subdirectory.
18308 test ! -d "$ac_dir" && mkdir "$ac_dir"
18309 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18310 # A "../" for each directory in $ac_dir_suffix.
18311 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18312 else
18313 ac_dir_suffix= ac_dots=
18314 fi
18315
18316 case "$ac_given_srcdir" in
18317 .) srcdir=.
18318 if test -z "$ac_dots"; then top_srcdir=.
18319 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18320 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18321 *) # Relative path.
18322 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18323 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18324 esac
18325
18326 case "$ac_given_INSTALL" in
18327 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18328 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18329 esac
18330
18331 echo creating "$ac_file"
18332 rm -f "$ac_file"
18333 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18334 case "$ac_file" in
18335 *Makefile*) ac_comsub="1i\\
18336 # $configure_input" ;;
18337 *) ac_comsub= ;;
18338 esac
18339
18340 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18341 sed -e "$ac_comsub
18342 s%@configure_input@%$configure_input%g
18343 s%@srcdir@%$srcdir%g
18344 s%@top_srcdir@%$top_srcdir%g
18345 s%@INSTALL@%$INSTALL%g
18346 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18347 fi; done
18348 rm -f conftest.s*
18349
18350 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18351 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18352 #
18353 # ac_d sets the value in "#define NAME VALUE" lines.
18354 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18355 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18356 ac_dC='\3'
18357 ac_dD='%g'
18358 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18359 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18360 ac_uB='\([ ]\)%\1#\2define\3'
18361 ac_uC=' '
18362 ac_uD='\4%g'
18363 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18364 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18365 ac_eB='$%\1#\2define\3'
18366 ac_eC=' '
18367 ac_eD='%g'
18368
18369 if test "${CONFIG_HEADERS+set}" != set; then
18370 EOF
18371 cat >> $CONFIG_STATUS <<EOF
18372 CONFIG_HEADERS="setup.h:setup.h.in"
18373 EOF
18374 cat >> $CONFIG_STATUS <<\EOF
18375 fi
18376 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18377 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18378 case "$ac_file" in
18379 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18380 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18381 *) ac_file_in="${ac_file}.in" ;;
18382 esac
18383
18384 echo creating $ac_file
18385
18386 rm -f conftest.frag conftest.in conftest.out
18387 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18388 cat $ac_file_inputs > conftest.in
18389
18390 EOF
18391
18392 # Transform confdefs.h into a sed script conftest.vals that substitutes
18393 # the proper values into config.h.in to produce config.h. And first:
18394 # Protect against being on the right side of a sed subst in config.status.
18395 # Protect against being in an unquoted here document in config.status.
18396 rm -f conftest.vals
18397 cat > conftest.hdr <<\EOF
18398 s/[\\&%]/\\&/g
18399 s%[\\$`]%\\&%g
18400 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18401 s%ac_d%ac_u%gp
18402 s%ac_u%ac_e%gp
18403 EOF
18404 sed -n -f conftest.hdr confdefs.h > conftest.vals
18405 rm -f conftest.hdr
18406
18407 # This sed command replaces #undef with comments. This is necessary, for
18408 # example, in the case of _POSIX_SOURCE, which is predefined and required
18409 # on some systems where configure will not decide to define it.
18410 cat >> conftest.vals <<\EOF
18411 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18412 EOF
18413
18414 # Break up conftest.vals because some shells have a limit on
18415 # the size of here documents, and old seds have small limits too.
18416
18417 rm -f conftest.tail
18418 while :
18419 do
18420 ac_lines=`grep -c . conftest.vals`
18421 # grep -c gives empty output for an empty file on some AIX systems.
18422 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18423 # Write a limited-size here document to conftest.frag.
18424 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18425 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18426 echo 'CEOF
18427 sed -f conftest.frag conftest.in > conftest.out
18428 rm -f conftest.in
18429 mv conftest.out conftest.in
18430 ' >> $CONFIG_STATUS
18431 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18432 rm -f conftest.vals
18433 mv conftest.tail conftest.vals
18434 done
18435 rm -f conftest.vals
18436
18437 cat >> $CONFIG_STATUS <<\EOF
18438 rm -f conftest.frag conftest.h
18439 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18440 cat conftest.in >> conftest.h
18441 rm -f conftest.in
18442 if cmp -s $ac_file conftest.h 2>/dev/null; then
18443 echo "$ac_file is unchanged"
18444 rm -f conftest.h
18445 else
18446 # Remove last slash and all that follows it. Not all systems have dirname.
18447 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18448 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18449 # The file is in a subdirectory.
18450 test ! -d "$ac_dir" && mkdir "$ac_dir"
18451 fi
18452 rm -f $ac_file
18453 mv conftest.h $ac_file
18454 fi
18455 fi; done
18456
18457 EOF
18458 cat >> $CONFIG_STATUS <<EOF
18459
18460 SETUPH_DIR="${SETUPH_DIR}"
18461 TOOLKIT_NAME="${TOOLKIT_NAME}"
18462 LN_S="${LN_S}"
18463
18464
18465 EOF
18466 cat >> $CONFIG_STATUS <<\EOF
18467
18468 if test ! -f wx${TOOLKIT_NAME}-config; then
18469 chmod +x wx-config
18470 mv wx-config wx${TOOLKIT_NAME}-config
18471 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
18472 fi
18473
18474
18475 if test ! -d lib; then
18476 mkdir lib
18477 fi
18478 if test ! -d lib/wx; then
18479 mkdir lib/wx
18480 fi
18481 if test ! -d lib/wx/include; then
18482 mkdir lib/wx/include
18483 fi
18484 if test ! -d lib/wx/include/wx; then
18485 mkdir lib/wx/include/wx
18486 fi
18487 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
18488 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
18489 fi
18490 if test -f setup.h; then
18491 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
18492 fi
18493
18494
18495 if test ! -d include; then
18496 mkdir include
18497 fi
18498 if test ! -d include/wx; then
18499 mkdir include/wx
18500 fi
18501 if test ! -d include/wx/${SETUPH_DIR}; then
18502 mkdir include/wx/${SETUPH_DIR}
18503 fi
18504 if test -f setup.h; then
18505 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
18506 fi
18507
18508
18509 exit 0
18510 EOF
18511 chmod +x $CONFIG_STATUS
18512 rm -fr confdefs* $ac_clean_files
18513 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18514
18515 if test "$no_recursion" != yes; then
18516
18517 # Remove --cache-file and --srcdir arguments so they do not pile up.
18518 ac_sub_configure_args=
18519 ac_prev=
18520 for ac_arg in $ac_configure_args; do
18521 if test -n "$ac_prev"; then
18522 ac_prev=
18523 continue
18524 fi
18525 case "$ac_arg" in
18526 -cache-file | --cache-file | --cache-fil | --cache-fi \
18527 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18528 ac_prev=cache_file ;;
18529 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18530 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
18531 ;;
18532 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18533 ac_prev=srcdir ;;
18534 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18535 ;;
18536 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18537 esac
18538 done
18539
18540 for ac_config_dir in demos samples utils contrib; do
18541
18542 # Do not complain, so a configure script can configure whichever
18543 # parts of a large source tree are present.
18544 if test ! -d $srcdir/$ac_config_dir; then
18545 continue
18546 fi
18547
18548 echo configuring in $ac_config_dir
18549
18550 case "$srcdir" in
18551 .) ;;
18552 *)
18553 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18554 else
18555 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18556 fi
18557 ;;
18558 esac
18559
18560 ac_popdir=`pwd`
18561 cd $ac_config_dir
18562
18563 # A "../" for each directory in /$ac_config_dir.
18564 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
18565
18566 case "$srcdir" in
18567 .) # No --srcdir option. We are building in place.
18568 ac_sub_srcdir=$srcdir ;;
18569 /*) # Absolute path.
18570 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
18571 *) # Relative path.
18572 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
18573 esac
18574
18575 # Check for guested configure; otherwise get Cygnus style configure.
18576 if test -f $ac_sub_srcdir/configure; then
18577 ac_sub_configure=$ac_sub_srcdir/configure
18578 elif test -f $ac_sub_srcdir/configure.in; then
18579 ac_sub_configure=$ac_configure
18580 else
18581 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
18582 ac_sub_configure=
18583 fi
18584
18585 # The recursion is here.
18586 if test -n "$ac_sub_configure"; then
18587
18588 # Make the cache file name correct relative to the subdirectory.
18589 case "$cache_file" in
18590 /*) ac_sub_cache_file=$cache_file ;;
18591 *) # Relative path.
18592 ac_sub_cache_file="$ac_dots$cache_file" ;;
18593 esac
18594 case "$ac_given_INSTALL" in
18595 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18596 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18597 esac
18598
18599 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
18600 # The eval makes quoting arguments work.
18601 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18602 then :
18603 else
18604 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18605 fi
18606 fi
18607
18608 cd $ac_popdir
18609 done
18610 fi
18611
18612