]> git.saurik.com Git - wxWidgets.git/blob - configure
Correction to icon index code
[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-wxtree make wxTree library"
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-radiobox use wxRadioBox class"
274 ac_help="$ac_help
275 --enable-radiobtn use wxRadioButton class"
276 ac_help="$ac_help
277 --enable-sash use wxSashWindow class"
278 ac_help="$ac_help
279 --enable-scrollbar use wxScrollBar class and scrollable windows"
280 ac_help="$ac_help
281 --enable-slider use wxSlider class"
282 ac_help="$ac_help
283 --enable-spinbtn use wxSpinButton class"
284 ac_help="$ac_help
285 --enable-spinctrl use wxSpinCtrl class"
286 ac_help="$ac_help
287 --enable-splitter use wxSplitterWindow class"
288 ac_help="$ac_help
289 --enable-statbmp use wxStaticBitmap class"
290 ac_help="$ac_help
291 --enable-statbox use wxStaticBox class"
292 ac_help="$ac_help
293 --enable-statline use wxStaticLine class"
294 ac_help="$ac_help
295 --enable-stattext use wxStaticText class"
296 ac_help="$ac_help
297 --enable-statusbar use wxStatusBar class"
298 ac_help="$ac_help
299 --enable-tabdialog use wxTabControl class"
300 ac_help="$ac_help
301 --enable-textctrl use wxTextCtrl class"
302 ac_help="$ac_help
303 --enable-togglebtn use wxToggleButton class"
304 ac_help="$ac_help
305 --enable-toolbar use wxToolBar class"
306 ac_help="$ac_help
307 --enable-tbarnative use native wxToolBar class"
308 ac_help="$ac_help
309 --enable-tbarsmpl use wxToolBarSimple class"
310 ac_help="$ac_help
311 --enable-treectrl use wxTreeCtrl class"
312 ac_help="$ac_help
313 --enable-popupwin use wxPopUpWindow class"
314 ac_help="$ac_help
315 --enable-commondlg use common dialogs (wxDirDialog, wxProgressDialog, wxTextDialog, ...)"
316 ac_help="$ac_help
317 --enable-choicedlg use wxChoiceDialog"
318 ac_help="$ac_help
319 --enable-coldlg use wxColourDialog"
320 ac_help="$ac_help
321 --enable-filedlg use wxFileDialog"
322 ac_help="$ac_help
323 --enable-fontdlg use wxFontDialog"
324 ac_help="$ac_help
325 --enable-dirdlg use wxDirDialog"
326 ac_help="$ac_help
327 --enable-msgdlg use wxMessageDialog"
328 ac_help="$ac_help
329 --enable-numberdlg use wxNumberEntryDialog"
330 ac_help="$ac_help
331 --enable-textdlg use wxTextDialog"
332 ac_help="$ac_help
333 --enable-tipdlg use startup tips"
334 ac_help="$ac_help
335 --enable-progressdlg use wxProgressDialog"
336 ac_help="$ac_help
337 --enable-wizarddlg use wxWizard"
338 ac_help="$ac_help
339 --enable-menus use wxMenu/wxMenuBar/wxMenuItem classes"
340 ac_help="$ac_help
341 --enable-miniframe use wxMiniFrame class"
342 ac_help="$ac_help
343 --enable-tooltips use wxToolTip class"
344 ac_help="$ac_help
345 --enable-splines use spline drawing code"
346 ac_help="$ac_help
347 --enable-validators use wxValidator and derived classes"
348 ac_help="$ac_help
349 --enable-busyinfo use wxBusyInfo"
350 ac_help="$ac_help
351 --enable-joystick compile in joystick support (Linux only)"
352 ac_help="$ac_help
353 --enable-metafiles use wxMetaFile (Windows only)"
354 ac_help="$ac_help
355 --enable-dragimage use wxDragImage"
356 ac_help="$ac_help
357 --enable-image use wxImage class"
358 ac_help="$ac_help
359 --enable-gif use gif images (GIF file format)"
360 ac_help="$ac_help
361 --enable-pcx use pcx images (PCX file format)"
362 ac_help="$ac_help
363 --enable-pnm use pnm images (PNM file format)"
364 ac_help="$ac_help
365 --enable-xpm use xpm images (XPM file format)"
366 ac_help="$ac_help
367 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
368 ac_help="$ac_help
369 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
370 ac_help="$ac_help
371 --disable-gtktest Do not try to compile and run a test GTK program"
372 ac_help="$ac_help
373 --with-x use the X Window System"
374
375 # Initialize some variables set by options.
376 # The variables have the same names as the options, with
377 # dashes changed to underlines.
378 build=NONE
379 cache_file=./config.cache
380 exec_prefix=NONE
381 host=NONE
382 no_create=
383 nonopt=NONE
384 no_recursion=
385 prefix=NONE
386 program_prefix=NONE
387 program_suffix=NONE
388 program_transform_name=s,x,x,
389 silent=
390 site=
391 srcdir=
392 target=NONE
393 verbose=
394 x_includes=NONE
395 x_libraries=NONE
396 bindir='${exec_prefix}/bin'
397 sbindir='${exec_prefix}/sbin'
398 libexecdir='${exec_prefix}/libexec'
399 datadir='${prefix}/share'
400 sysconfdir='${prefix}/etc'
401 sharedstatedir='${prefix}/com'
402 localstatedir='${prefix}/var'
403 libdir='${exec_prefix}/lib'
404 includedir='${prefix}/include'
405 oldincludedir='/usr/include'
406 infodir='${prefix}/info'
407 mandir='${prefix}/man'
408
409 # Initialize some other variables.
410 subdirs=
411 MFLAGS= MAKEFLAGS=
412 SHELL=${CONFIG_SHELL-/bin/sh}
413 # Maximum number of lines to put in a shell here document.
414 ac_max_here_lines=12
415
416 ac_prev=
417 for ac_option
418 do
419
420 # If the previous option needs an argument, assign it.
421 if test -n "$ac_prev"; then
422 eval "$ac_prev=\$ac_option"
423 ac_prev=
424 continue
425 fi
426
427 case "$ac_option" in
428 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
429 *) ac_optarg= ;;
430 esac
431
432 # Accept the important Cygnus configure options, so we can diagnose typos.
433
434 case "$ac_option" in
435
436 -bindir | --bindir | --bindi | --bind | --bin | --bi)
437 ac_prev=bindir ;;
438 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
439 bindir="$ac_optarg" ;;
440
441 -build | --build | --buil | --bui | --bu)
442 ac_prev=build ;;
443 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
444 build="$ac_optarg" ;;
445
446 -cache-file | --cache-file | --cache-fil | --cache-fi \
447 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
448 ac_prev=cache_file ;;
449 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
450 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
451 cache_file="$ac_optarg" ;;
452
453 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
454 ac_prev=datadir ;;
455 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
456 | --da=*)
457 datadir="$ac_optarg" ;;
458
459 -disable-* | --disable-*)
460 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
461 # Reject names that are not valid shell variable names.
462 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
463 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
464 fi
465 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
466 eval "enable_${ac_feature}=no" ;;
467
468 -enable-* | --enable-*)
469 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
470 # Reject names that are not valid shell variable names.
471 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
472 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
473 fi
474 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
475 case "$ac_option" in
476 *=*) ;;
477 *) ac_optarg=yes ;;
478 esac
479 eval "enable_${ac_feature}='$ac_optarg'" ;;
480
481 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
482 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
483 | --exec | --exe | --ex)
484 ac_prev=exec_prefix ;;
485 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
486 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
487 | --exec=* | --exe=* | --ex=*)
488 exec_prefix="$ac_optarg" ;;
489
490 -gas | --gas | --ga | --g)
491 # Obsolete; use --with-gas.
492 with_gas=yes ;;
493
494 -help | --help | --hel | --he)
495 # Omit some internal or obsolete options to make the list less imposing.
496 # This message is too long to be a string in the A/UX 3.1 sh.
497 cat << EOF
498 Usage: configure [options] [host]
499 Options: [defaults in brackets after descriptions]
500 Configuration:
501 --cache-file=FILE cache test results in FILE
502 --help print this message
503 --no-create do not create output files
504 --quiet, --silent do not print \`checking...' messages
505 --version print the version of autoconf that created configure
506 Directory and file names:
507 --prefix=PREFIX install architecture-independent files in PREFIX
508 [$ac_default_prefix]
509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
510 [same as prefix]
511 --bindir=DIR user executables in DIR [EPREFIX/bin]
512 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
513 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
514 --datadir=DIR read-only architecture-independent data in DIR
515 [PREFIX/share]
516 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
517 --sharedstatedir=DIR modifiable architecture-independent data in DIR
518 [PREFIX/com]
519 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
520 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
521 --includedir=DIR C header files in DIR [PREFIX/include]
522 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
523 --infodir=DIR info documentation in DIR [PREFIX/info]
524 --mandir=DIR man documentation in DIR [PREFIX/man]
525 --srcdir=DIR find the sources in DIR [configure dir or ..]
526 --program-prefix=PREFIX prepend PREFIX to installed program names
527 --program-suffix=SUFFIX append SUFFIX to installed program names
528 --program-transform-name=PROGRAM
529 run sed PROGRAM on installed program names
530 EOF
531 cat << EOF
532 Host type:
533 --build=BUILD configure for building on BUILD [BUILD=HOST]
534 --host=HOST configure for HOST [guessed]
535 --target=TARGET configure for TARGET [TARGET=HOST]
536 Features and packages:
537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
539 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
540 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
541 --x-includes=DIR X include files are in DIR
542 --x-libraries=DIR X library files are in DIR
543 EOF
544 if test -n "$ac_help"; then
545 echo "--enable and --with options recognized:$ac_help"
546 fi
547 exit 0 ;;
548
549 -host | --host | --hos | --ho)
550 ac_prev=host ;;
551 -host=* | --host=* | --hos=* | --ho=*)
552 host="$ac_optarg" ;;
553
554 -includedir | --includedir | --includedi | --included | --include \
555 | --includ | --inclu | --incl | --inc)
556 ac_prev=includedir ;;
557 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
558 | --includ=* | --inclu=* | --incl=* | --inc=*)
559 includedir="$ac_optarg" ;;
560
561 -infodir | --infodir | --infodi | --infod | --info | --inf)
562 ac_prev=infodir ;;
563 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
564 infodir="$ac_optarg" ;;
565
566 -libdir | --libdir | --libdi | --libd)
567 ac_prev=libdir ;;
568 -libdir=* | --libdir=* | --libdi=* | --libd=*)
569 libdir="$ac_optarg" ;;
570
571 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
572 | --libexe | --libex | --libe)
573 ac_prev=libexecdir ;;
574 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
575 | --libexe=* | --libex=* | --libe=*)
576 libexecdir="$ac_optarg" ;;
577
578 -localstatedir | --localstatedir | --localstatedi | --localstated \
579 | --localstate | --localstat | --localsta | --localst \
580 | --locals | --local | --loca | --loc | --lo)
581 ac_prev=localstatedir ;;
582 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
583 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
584 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
585 localstatedir="$ac_optarg" ;;
586
587 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
588 ac_prev=mandir ;;
589 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
590 mandir="$ac_optarg" ;;
591
592 -nfp | --nfp | --nf)
593 # Obsolete; use --without-fp.
594 with_fp=no ;;
595
596 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
597 | --no-cr | --no-c)
598 no_create=yes ;;
599
600 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
601 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
602 no_recursion=yes ;;
603
604 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
605 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
606 | --oldin | --oldi | --old | --ol | --o)
607 ac_prev=oldincludedir ;;
608 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
609 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
610 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
611 oldincludedir="$ac_optarg" ;;
612
613 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
614 ac_prev=prefix ;;
615 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
616 prefix="$ac_optarg" ;;
617
618 -program-prefix | --program-prefix | --program-prefi | --program-pref \
619 | --program-pre | --program-pr | --program-p)
620 ac_prev=program_prefix ;;
621 -program-prefix=* | --program-prefix=* | --program-prefi=* \
622 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
623 program_prefix="$ac_optarg" ;;
624
625 -program-suffix | --program-suffix | --program-suffi | --program-suff \
626 | --program-suf | --program-su | --program-s)
627 ac_prev=program_suffix ;;
628 -program-suffix=* | --program-suffix=* | --program-suffi=* \
629 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
630 program_suffix="$ac_optarg" ;;
631
632 -program-transform-name | --program-transform-name \
633 | --program-transform-nam | --program-transform-na \
634 | --program-transform-n | --program-transform- \
635 | --program-transform | --program-transfor \
636 | --program-transfo | --program-transf \
637 | --program-trans | --program-tran \
638 | --progr-tra | --program-tr | --program-t)
639 ac_prev=program_transform_name ;;
640 -program-transform-name=* | --program-transform-name=* \
641 | --program-transform-nam=* | --program-transform-na=* \
642 | --program-transform-n=* | --program-transform-=* \
643 | --program-transform=* | --program-transfor=* \
644 | --program-transfo=* | --program-transf=* \
645 | --program-trans=* | --program-tran=* \
646 | --progr-tra=* | --program-tr=* | --program-t=*)
647 program_transform_name="$ac_optarg" ;;
648
649 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
650 | -silent | --silent | --silen | --sile | --sil)
651 silent=yes ;;
652
653 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
654 ac_prev=sbindir ;;
655 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
656 | --sbi=* | --sb=*)
657 sbindir="$ac_optarg" ;;
658
659 -sharedstatedir | --sharedstatedir | --sharedstatedi \
660 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
661 | --sharedst | --shareds | --shared | --share | --shar \
662 | --sha | --sh)
663 ac_prev=sharedstatedir ;;
664 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
665 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
666 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
667 | --sha=* | --sh=*)
668 sharedstatedir="$ac_optarg" ;;
669
670 -site | --site | --sit)
671 ac_prev=site ;;
672 -site=* | --site=* | --sit=*)
673 site="$ac_optarg" ;;
674
675 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
676 ac_prev=srcdir ;;
677 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
678 srcdir="$ac_optarg" ;;
679
680 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
681 | --syscon | --sysco | --sysc | --sys | --sy)
682 ac_prev=sysconfdir ;;
683 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
684 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
685 sysconfdir="$ac_optarg" ;;
686
687 -target | --target | --targe | --targ | --tar | --ta | --t)
688 ac_prev=target ;;
689 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
690 target="$ac_optarg" ;;
691
692 -v | -verbose | --verbose | --verbos | --verbo | --verb)
693 verbose=yes ;;
694
695 -version | --version | --versio | --versi | --vers)
696 echo "configure generated by autoconf version 2.13"
697 exit 0 ;;
698
699 -with-* | --with-*)
700 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
701 # Reject names that are not valid shell variable names.
702 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
703 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
704 fi
705 ac_package=`echo $ac_package| sed 's/-/_/g'`
706 case "$ac_option" in
707 *=*) ;;
708 *) ac_optarg=yes ;;
709 esac
710 eval "with_${ac_package}='$ac_optarg'" ;;
711
712 -without-* | --without-*)
713 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
714 # Reject names that are not valid shell variable names.
715 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
716 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
717 fi
718 ac_package=`echo $ac_package| sed 's/-/_/g'`
719 eval "with_${ac_package}=no" ;;
720
721 --x)
722 # Obsolete; use --with-x.
723 with_x=yes ;;
724
725 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
726 | --x-incl | --x-inc | --x-in | --x-i)
727 ac_prev=x_includes ;;
728 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
729 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
730 x_includes="$ac_optarg" ;;
731
732 -x-libraries | --x-libraries | --x-librarie | --x-librari \
733 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
734 ac_prev=x_libraries ;;
735 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
736 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
737 x_libraries="$ac_optarg" ;;
738
739 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
740 ;;
741
742 *)
743 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
744 echo "configure: warning: $ac_option: invalid host type" 1>&2
745 fi
746 if test "x$nonopt" != xNONE; then
747 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
748 fi
749 nonopt="$ac_option"
750 ;;
751
752 esac
753 done
754
755 if test -n "$ac_prev"; then
756 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
757 fi
758
759 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
760
761 # File descriptor usage:
762 # 0 standard input
763 # 1 file creation
764 # 2 errors and warnings
765 # 3 some systems may open it to /dev/tty
766 # 4 used on the Kubota Titan
767 # 6 checking for... messages and results
768 # 5 compiler messages saved in config.log
769 if test "$silent" = yes; then
770 exec 6>/dev/null
771 else
772 exec 6>&1
773 fi
774 exec 5>./config.log
775
776 echo "\
777 This file contains any messages produced by compilers while
778 running configure, to aid debugging if configure makes a mistake.
779 " 1>&5
780
781 # Strip out --no-create and --no-recursion so they do not pile up.
782 # Also quote any args containing shell metacharacters.
783 ac_configure_args=
784 for ac_arg
785 do
786 case "$ac_arg" in
787 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
788 | --no-cr | --no-c) ;;
789 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
790 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
791 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
792 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
793 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
794 esac
795 done
796
797 # NLS nuisances.
798 # Only set these to C if already set. These must not be set unconditionally
799 # because not all systems understand e.g. LANG=C (notably SCO).
800 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
801 # Non-C LC_CTYPE values break the ctype check.
802 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
803 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
804 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
805 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
806
807 # confdefs.h avoids OS command line length limits that DEFS can exceed.
808 rm -rf conftest* confdefs.h
809 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
810 echo > confdefs.h
811
812 # A filename unique to this package, relative to the directory that
813 # configure is in, which we can look for to find out if srcdir is correct.
814 ac_unique_file=wx-config.in
815
816 # Find the source files, if location was not specified.
817 if test -z "$srcdir"; then
818 ac_srcdir_defaulted=yes
819 # Try the directory containing this script, then its parent.
820 ac_prog=$0
821 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
822 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
823 srcdir=$ac_confdir
824 if test ! -r $srcdir/$ac_unique_file; then
825 srcdir=..
826 fi
827 else
828 ac_srcdir_defaulted=no
829 fi
830 if test ! -r $srcdir/$ac_unique_file; then
831 if test "$ac_srcdir_defaulted" = yes; then
832 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
833 else
834 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
835 fi
836 fi
837 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
838
839 # Prefer explicitly selected file to automatically selected ones.
840 if test -z "$CONFIG_SITE"; then
841 if test "x$prefix" != xNONE; then
842 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
843 else
844 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
845 fi
846 fi
847 for ac_site_file in $CONFIG_SITE; do
848 if test -r "$ac_site_file"; then
849 echo "loading site script $ac_site_file"
850 . "$ac_site_file"
851 fi
852 done
853
854 if test -r "$cache_file"; then
855 echo "loading cache $cache_file"
856 . $cache_file
857 else
858 echo "creating cache $cache_file"
859 > $cache_file
860 fi
861
862 ac_ext=c
863 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
864 ac_cpp='$CPP $CPPFLAGS'
865 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
866 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
867 cross_compiling=$ac_cv_prog_cc_cross
868
869 ac_exeext=
870 ac_objext=o
871 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
872 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
873 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
874 ac_n= ac_c='
875 ' ac_t=' '
876 else
877 ac_n=-n ac_c= ac_t=
878 fi
879 else
880 ac_n= ac_c='\c' ac_t=
881 fi
882
883
884
885 ac_aux_dir=
886 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
887 if test -f $ac_dir/install-sh; then
888 ac_aux_dir=$ac_dir
889 ac_install_sh="$ac_aux_dir/install-sh -c"
890 break
891 elif test -f $ac_dir/install.sh; then
892 ac_aux_dir=$ac_dir
893 ac_install_sh="$ac_aux_dir/install.sh -c"
894 break
895 fi
896 done
897 if test -z "$ac_aux_dir"; then
898 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
899 fi
900 ac_config_guess=$ac_aux_dir/config.guess
901 ac_config_sub=$ac_aux_dir/config.sub
902 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
903
904
905 # Do some error checking and defaulting for the host and target type.
906 # The inputs are:
907 # configure --host=HOST --target=TARGET --build=BUILD NONOPT
908 #
909 # The rules are:
910 # 1. You are not allowed to specify --host, --target, and nonopt at the
911 # same time.
912 # 2. Host defaults to nonopt.
913 # 3. If nonopt is not specified, then host defaults to the current host,
914 # as determined by config.guess.
915 # 4. Target and build default to nonopt.
916 # 5. If nonopt is not specified, then target and build default to host.
917
918 # The aliases save the names the user supplied, while $host etc.
919 # will get canonicalized.
920 case $host---$target---$nonopt in
921 NONE---*---* | *---NONE---* | *---*---NONE) ;;
922 *) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
923 esac
924
925
926 # Make sure we can run config.sub.
927 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
928 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
929 fi
930
931 echo $ac_n "checking host system type""... $ac_c" 1>&6
932 echo "configure:933: checking host system type" >&5
933
934 host_alias=$host
935 case "$host_alias" in
936 NONE)
937 case $nonopt in
938 NONE)
939 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
940 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
941 fi ;;
942 *) host_alias=$nonopt ;;
943 esac ;;
944 esac
945
946 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
947 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
948 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
949 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
950 echo "$ac_t""$host" 1>&6
951
952 echo $ac_n "checking target system type""... $ac_c" 1>&6
953 echo "configure:954: checking target system type" >&5
954
955 target_alias=$target
956 case "$target_alias" in
957 NONE)
958 case $nonopt in
959 NONE) target_alias=$host_alias ;;
960 *) target_alias=$nonopt ;;
961 esac ;;
962 esac
963
964 target=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $target_alias`
965 target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
966 target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
967 target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
968 echo "$ac_t""$target" 1>&6
969
970 echo $ac_n "checking build system type""... $ac_c" 1>&6
971 echo "configure:972: checking build system type" >&5
972
973 build_alias=$build
974 case "$build_alias" in
975 NONE)
976 case $nonopt in
977 NONE) build_alias=$host_alias ;;
978 *) build_alias=$nonopt ;;
979 esac ;;
980 esac
981
982 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
983 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
984 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
985 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
986 echo "$ac_t""$build" 1>&6
987
988 test "$host_alias" != "$target_alias" &&
989 test "$program_prefix$program_suffix$program_transform_name" = \
990 NONENONEs,x,x, &&
991 program_prefix=${target_alias}-
992
993
994
995 WX_MAJOR_VERSION_NUMBER=2
996 WX_MINOR_VERSION_NUMBER=3
997 WX_RELEASE_NUMBER=2
998
999 WX_VERSION=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER.$WX_RELEASE_NUMBER
1000 WX_RELEASE=$WX_MAJOR_VERSION_NUMBER.$WX_MINOR_VERSION_NUMBER
1001
1002 WX_CURRENT=1
1003 WX_REVISION=0
1004 WX_AGE=0
1005
1006
1007
1008 USE_UNIX=1
1009 USE_WIN32=0
1010 USE_BEOS=0
1011 USE_MAC=0
1012
1013 USE_LINUX=
1014 USE_SGI=
1015 USE_HPUX=
1016 USE_SYSV=
1017 USE_SVR4=
1018 USE_AIX=
1019 USE_SUN=
1020 USE_SOLARIS=
1021 USE_SUNOS=
1022 USE_ALPHA=
1023 USE_OSF=
1024 USE_BSD=
1025 USE_DARWIN=
1026 USE_FREEBSD=
1027 USE_OPENBSD=
1028 USE_NETBSD=
1029 USE_VMS=
1030 USE_ULTRIX=
1031 USE_CYGWIN=
1032 USE_MINGW=
1033 USE_DATA_GENERAL=
1034
1035 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
1036
1037 ALL_TOOLKITS="CYGWIN GTK MAC MGL MINGW MOTIF PM WINE"
1038
1039 DEFAULT_wxUSE_GTK=0
1040 DEFAULT_wxUSE_MAC=0
1041 DEFAULT_wxUSE_MGL=0
1042 DEFAULT_wxUSE_MOTIF=0
1043 DEFAULT_wxUSE_MSW=0
1044 DEFAULT_wxUSE_PM=0
1045 DEFAULT_wxUSE_WINE=0
1046
1047 DEFAULT_DEFAULT_wxUSE_GTK=0
1048 DEFAULT_DEFAULT_wxUSE_MAC=0
1049 DEFAULT_DEFAULT_wxUSE_MGL=0
1050 DEFAULT_DEFAULT_wxUSE_MOTIF=0
1051 DEFAULT_DEFAULT_wxUSE_MSW=0
1052 DEFAULT_DEFAULT_wxUSE_PM=0
1053 DEFAULT_DEFAULT_wxUSE_WINE=0
1054
1055 PROGRAM_EXT=
1056
1057 case "${host}" in
1058 *-hp-hpux* )
1059 USE_HPUX=1
1060 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1061 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1062 cat >> confdefs.h <<\EOF
1063 #define __HPUX__ 1
1064 EOF
1065
1066 ;;
1067 *-*-linux* )
1068 USE_LINUX=1
1069 cat >> confdefs.h <<\EOF
1070 #define __LINUX__ 1
1071 EOF
1072
1073 TMP=`uname -m`
1074 if test "x$TMP" = "xalpha"; then
1075 USE_ALPHA=1
1076 cat >> confdefs.h <<\EOF
1077 #define __ALPHA__ 1
1078 EOF
1079
1080 fi
1081 DEFAULT_DEFAULT_wxUSE_GTK=1
1082 ;;
1083 *-*-irix5* | *-*-irix6* )
1084 USE_SGI=1
1085 USE_SVR4=1
1086 cat >> confdefs.h <<\EOF
1087 #define __SGI__ 1
1088 EOF
1089
1090 cat >> confdefs.h <<\EOF
1091 #define __SVR4__ 1
1092 EOF
1093
1094 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1095 ;;
1096 *-*-solaris2* )
1097 USE_SUN=1
1098 USE_SOLARIS=1
1099 USE_SVR4=1
1100 cat >> confdefs.h <<\EOF
1101 #define __SUN__ 1
1102 EOF
1103
1104 cat >> confdefs.h <<\EOF
1105 #define __SOLARIS__ 1
1106 EOF
1107
1108 cat >> confdefs.h <<\EOF
1109 #define __SVR4__ 1
1110 EOF
1111
1112 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1113 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1114 ;;
1115 *-*-sunos4* )
1116 USE_SUN=1
1117 USE_SUNOS=1
1118 USE_BSD=1
1119 cat >> confdefs.h <<\EOF
1120 #define __SUN__ 1
1121 EOF
1122
1123 cat >> confdefs.h <<\EOF
1124 #define __SUNOS__ 1
1125 EOF
1126
1127 cat >> confdefs.h <<\EOF
1128 #define __BSD__ 1
1129 EOF
1130
1131 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1132 ;;
1133 *-*-freebsd*)
1134 USE_BSD=1
1135 USE_FREEBSD=1
1136 cat >> confdefs.h <<\EOF
1137 #define __FREEBSD__ 1
1138 EOF
1139
1140 cat >> confdefs.h <<\EOF
1141 #define __BSD__ 1
1142 EOF
1143
1144 DEFAULT_DEFAULT_wxUSE_GTK=1
1145 ;;
1146 *-*-openbsd*)
1147 USE_BSD=1
1148 USE_OPENBSD=1
1149 cat >> confdefs.h <<\EOF
1150 #define __FREEBSD__ 1
1151 EOF
1152
1153 cat >> confdefs.h <<\EOF
1154 #define __OPENBSD__ 1
1155 EOF
1156
1157 DEFAULT_DEFAULT_wxUSE_GTK=1
1158 ;;
1159 *-*-netbsd*)
1160 USE_BSD=1
1161 USE_NETBSD=1
1162 cat >> confdefs.h <<\EOF
1163 #define __FREEBSD__ 1
1164 EOF
1165
1166 cat >> confdefs.h <<\EOF
1167 #define __NETBSD__ 1
1168 EOF
1169
1170 DEFAULT_DEFAULT_wxUSE_GTK=1
1171 ;;
1172 *-*-osf* )
1173 USE_ALPHA=1
1174 USE_OSF=1
1175 cat >> confdefs.h <<\EOF
1176 #define __ALPHA__ 1
1177 EOF
1178
1179 cat >> confdefs.h <<\EOF
1180 #define __OSF__ 1
1181 EOF
1182
1183 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1184 NEEDS_D_REENTRANT_FOR_R_FUNCS=1
1185 ;;
1186 *-*-dgux5* )
1187 USE_ALPHA=1
1188 USE_SVR4=1
1189 cat >> confdefs.h <<\EOF
1190 #define __ALPHA__ 1
1191 EOF
1192
1193 cat >> confdefs.h <<\EOF
1194 #define __SVR4__ 1
1195 EOF
1196
1197 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1198 ;;
1199 *-*-sysv5* )
1200 USE_SYSV=1
1201 USE_SVR4=1
1202 cat >> confdefs.h <<\EOF
1203 #define __SYSV__ 1
1204 EOF
1205
1206 cat >> confdefs.h <<\EOF
1207 #define __SVR4__ 1
1208 EOF
1209
1210 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1211 ;;
1212 *-*-aix* )
1213 USE_AIX=1
1214 USE_SYSV=1
1215 USE_SVR4=1
1216 cat >> confdefs.h <<\EOF
1217 #define __AIX__ 1
1218 EOF
1219
1220 cat >> confdefs.h <<\EOF
1221 #define __SYSV__ 1
1222 EOF
1223
1224 cat >> confdefs.h <<\EOF
1225 #define __SVR4__ 1
1226 EOF
1227
1228 DEFAULT_DEFAULT_wxUSE_MOTIF=1
1229 ;;
1230
1231 *-*-cygwin* | *-*-mingw32* )
1232 USE_UNIX=0
1233 USE_WIN32=1
1234 cat >> confdefs.h <<\EOF
1235 #define __WIN32__ 1
1236 EOF
1237
1238 cat >> confdefs.h <<\EOF
1239 #define __WIN95__ 1
1240 EOF
1241
1242 cat >> confdefs.h <<\EOF
1243 #define __WINDOWS__ 1
1244 EOF
1245
1246 cat >> confdefs.h <<\EOF
1247 #define __GNUWIN32__ 1
1248 EOF
1249
1250 cat >> confdefs.h <<\EOF
1251 #define STRICT 1
1252 EOF
1253
1254 cat >> confdefs.h <<\EOF
1255 #define WINVER 0x0400
1256 EOF
1257
1258 PROGRAM_EXT=".exe"
1259 DEFAULT_DEFAULT_wxUSE_MSW=1
1260 ;;
1261
1262 *-pc-os2_emx )
1263 cat >> confdefs.h <<\EOF
1264 #define __EMX__ 1
1265 EOF
1266
1267 PROGRAM_EXT=".exe"
1268 DEFAULT_DEFAULT_wxUSE_PM=1
1269 ;;
1270
1271 *-*-darwin* )
1272 USE_BSD=1
1273 USE_DARWIN=1
1274 cat >> confdefs.h <<\EOF
1275 #define __BSD__ 1
1276 EOF
1277
1278 cat >> confdefs.h <<\EOF
1279 #define __DARWIN__ 1
1280 EOF
1281
1282 cat >> confdefs.h <<\EOF
1283 #define __UNIX__ 1
1284 EOF
1285
1286 DEFAULT_DEFAULT_wxUSE_MAC=1
1287 ;;
1288
1289 *-*-beos* )
1290 USE_BEOS=1
1291 cat >> confdefs.h <<\EOF
1292 #define __BEOS__ 1
1293 EOF
1294
1295 ;;
1296
1297 *)
1298 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
1299 esac
1300
1301 if test "$USE_UNIX" = 1 ; then
1302 wxUSE_UNIX=yes
1303 cat >> confdefs.h <<\EOF
1304 #define __UNIX__ 1
1305 EOF
1306
1307
1308 SRC_SUBDIRS="$SRC_SUBDIRS unix"
1309 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS unix"
1310 fi
1311
1312 if test "$USE_BEOS" = 1; then
1313 SRC_SUBDIRS="$SRC_SUBDIRS be"
1314 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS be"
1315 fi
1316
1317 if test "$USE_LINUX" = 1; then
1318 echo $ac_n "checking for gettext in -lc""... $ac_c" 1>&6
1319 echo "configure:1320: checking for gettext in -lc" >&5
1320 ac_lib_var=`echo c'_'gettext | sed 'y%./+-%__p_%'`
1321 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1322 echo $ac_n "(cached) $ac_c" 1>&6
1323 else
1324 ac_save_LIBS="$LIBS"
1325 LIBS="-lc $LIBS"
1326 cat > conftest.$ac_ext <<EOF
1327 #line 1328 "configure"
1328 #include "confdefs.h"
1329 /* Override any gcc2 internal prototype to avoid an error. */
1330 /* We use char because int might match the return type of a gcc2
1331 builtin and then its argument prototype would still apply. */
1332 char gettext();
1333
1334 int main() {
1335 gettext()
1336 ; return 0; }
1337 EOF
1338 if { (eval echo configure:1339: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1339 rm -rf conftest*
1340 eval "ac_cv_lib_$ac_lib_var=yes"
1341 else
1342 echo "configure: failed program was:" >&5
1343 cat conftest.$ac_ext >&5
1344 rm -rf conftest*
1345 eval "ac_cv_lib_$ac_lib_var=no"
1346 fi
1347 rm -f conftest*
1348 LIBS="$ac_save_LIBS"
1349
1350 fi
1351 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1352 echo "$ac_t""yes" 1>&6
1353 cat >> confdefs.h <<\EOF
1354 #define wxHAVE_GLIBC2 1
1355 EOF
1356
1357 else
1358 echo "$ac_t""no" 1>&6
1359 fi
1360
1361 fi
1362
1363
1364
1365
1366 wx_arg_cache_file="configarg.cache"
1367 echo "loading argument cache $wx_arg_cache_file"
1368 rm -f ${wx_arg_cache_file}.tmp
1369 touch ${wx_arg_cache_file}.tmp
1370 touch ${wx_arg_cache_file}
1371
1372
1373 DEBUG_CONFIGURE=0
1374 if test $DEBUG_CONFIGURE = 1; then
1375 DEFAULT_wxUSE_UNIVERSAL=no
1376
1377 DEFAULT_wxUSE_THREADS=yes
1378
1379 DEFAULT_wxUSE_SHARED=yes
1380 DEFAULT_wxUSE_BURNT_NAME=no
1381 DEFAULT_wxUSE_OPTIMISE=no
1382 DEFAULT_wxUSE_PROFILE=no
1383 DEFAULT_wxUSE_NO_DEPS=no
1384 DEFAULT_wxUSE_NO_RTTI=no
1385 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1386 DEFAULT_wxUSE_PERMISSIVE=no
1387 DEFAULT_wxUSE_DEBUG_FLAG=yes
1388 DEFAULT_wxUSE_DEBUG_INFO=yes
1389 DEFAULT_wxUSE_DEBUG_GDB=yes
1390 DEFAULT_wxUSE_MEM_TRACING=no
1391 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1392 DEFAULT_wxUSE_DMALLOC=no
1393 DEFAULT_wxUSE_APPLE_IEEE=no
1394
1395 DEFAULT_wxUSE_LOG=yes
1396 DEFAULT_wxUSE_LOGWINDOW=no
1397 DEFAULT_wxUSE_LOGGUI=no
1398
1399 DEFAULT_wxUSE_GUI=yes
1400 DEFAULT_wxUSE_CONTROLS=no
1401
1402 DEFAULT_wxUSE_REGEX=no
1403 DEFAULT_wxUSE_ZLIB=no
1404 DEFAULT_wxUSE_LIBPNG=no
1405 DEFAULT_wxUSE_LIBJPEG=no
1406 DEFAULT_wxUSE_LIBTIFF=no
1407 DEFAULT_wxUSE_ODBC=no
1408 DEFAULT_wxUSE_FREETYPE=no
1409 DEFAULT_wxUSE_OPENGL=no
1410
1411 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=no
1412 DEFAULT_wxUSE_SNGLINST_CHECKER=no
1413 DEFAULT_wxUSE_STD_IOSTREAM=no
1414 DEFAULT_wxUSE_CMDLINE_PARSER=no
1415 DEFAULT_wxUSE_DATETIME=no
1416 DEFAULT_wxUSE_TIMEDATE=no
1417 DEFAULT_wxUSE_TIMER=no
1418 DEFAULT_wxUSE_STOPWATCH=no
1419 DEFAULT_wxUSE_FILE=no
1420 DEFAULT_wxUSE_FFILE=no
1421 DEFAULT_wxUSE_TEXTFILE=no
1422 DEFAULT_wxUSE_WAVE=no
1423 DEFAULT_wxUSE_INTL=no
1424 DEFAULT_wxUSE_CONFIG=no
1425 DEFAULT_wxUSE_FONTMAP=no
1426 DEFAULT_wxUSE_STREAMS=no
1427 DEFAULT_wxUSE_SOCKETS=no
1428 DEFAULT_wxUSE_DIALUP_MANAGER=no
1429 DEFAULT_wxUSE_SERIAL=no
1430 DEFAULT_wxUSE_JOYSTICK=no
1431 DEFAULT_wxUSE_DYNLIB_CLASS=no
1432 DEFAULT_wxUSE_LONGLONG=no
1433 DEFAULT_wxUSE_GEOMETRY=no
1434
1435 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=no
1436 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=no
1437 DEFAULT_wxUSE_POSTSCRIPT=no
1438
1439 DEFAULT_wxUSE_X_RESOURCES=no
1440 DEFAULT_wxUSE_CLIPBOARD=no
1441 DEFAULT_wxUSE_TOOLTIPS=no
1442 DEFAULT_wxUSE_DRAG_AND_DROP=no
1443 DEFAULT_wxUSE_DRAGIMAGE=no
1444 DEFAULT_wxUSE_SPLINES=no
1445
1446 DEFAULT_wxUSE_MDI_ARCHITECTURE=no
1447 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=no
1448 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=no
1449
1450 DEFAULT_wxUSE_PROLOGIO=no
1451 DEFAULT_wxUSE_RESOURCES=no
1452 DEFAULT_wxUSE_CONSTRAINTS=no
1453 DEFAULT_wxUSE_IPC=no
1454 DEFAULT_wxUSE_HELP=no
1455 DEFAULT_wxUSE_MS_HTML_HELP=no
1456
1457 DEFAULT_wxUSE_WXHTML_HELP=no
1458 DEFAULT_wxUSE_WXTREE=no
1459 DEFAULT_wxUSE_METAFILE=no
1460 DEFAULT_wxUSE_MIMETYPE=no
1461 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1462
1463 DEFAULT_wxUSE_COMMONDLGS=no
1464 DEFAULT_wxUSE_CHOICEDLG=no
1465 DEFAULT_wxUSE_COLOURDLG=no
1466 DEFAULT_wxUSE_DIRDLG=no
1467 DEFAULT_wxUSE_FILEDLG=no
1468 DEFAULT_wxUSE_FONTDLG=no
1469 DEFAULT_wxUSE_MSGDLG=no
1470 DEFAULT_wxUSE_NUMBERDLG=no
1471 DEFAULT_wxUSE_TEXTDLG=no
1472 DEFAULT_wxUSE_STARTUP_TIPS=no
1473 DEFAULT_wxUSE_PROGRESSDLG=no
1474 DEFAULT_wxUSE_WIZARDDLG=no
1475
1476 DEFAULT_wxUSE_MENUS=no
1477 DEFAULT_wxUSE_MINIFRAME=no
1478 DEFAULT_wxUSE_HTML=no
1479 DEFAULT_wxUSE_FILESYSTEM=no
1480 DEFAULT_wxUSE_FS_INET=no
1481 DEFAULT_wxUSE_FS_ZIP=no
1482 DEFAULT_wxUSE_BUSYINFO=no
1483 DEFAULT_wxUSE_ZIPSTREAM=no
1484 DEFAULT_wxUSE_VALIDATORS=no
1485
1486 DEFAULT_wxUSE_ACCEL=no
1487 DEFAULT_wxUSE_BUTTON=no
1488 DEFAULT_wxUSE_BMPBUTTON=no
1489 DEFAULT_wxUSE_CALCTRL=no
1490 DEFAULT_wxUSE_CARET=no
1491 DEFAULT_wxUSE_CHECKBOX=no
1492 DEFAULT_wxUSE_CHECKLST=no
1493 DEFAULT_wxUSE_CHOICE=no
1494 DEFAULT_wxUSE_COMBOBOX=no
1495 DEFAULT_wxUSE_GAUGE=no
1496 DEFAULT_wxUSE_GRID=no
1497 DEFAULT_wxUSE_NEW_GRID=no
1498 DEFAULT_wxUSE_IMAGLIST=no
1499 DEFAULT_wxUSE_LISTBOX=no
1500 DEFAULT_wxUSE_LISTCTRL=no
1501 DEFAULT_wxUSE_NOTEBOOK=no
1502 DEFAULT_wxUSE_RADIOBOX=no
1503 DEFAULT_wxUSE_RADIOBTN=no
1504 DEFAULT_wxUSE_SASH=no
1505 DEFAULT_wxUSE_SCROLLBAR=no
1506 DEFAULT_wxUSE_SLIDER=no
1507 DEFAULT_wxUSE_SPINBTN=no
1508 DEFAULT_wxUSE_SPINCTRL=no
1509 DEFAULT_wxUSE_SPLITTER=no
1510 DEFAULT_wxUSE_STATBMP=no
1511 DEFAULT_wxUSE_STATBOX=no
1512 DEFAULT_wxUSE_STATLINE=no
1513 DEFAULT_wxUSE_STATTEXT=no
1514 DEFAULT_wxUSE_STATUSBAR=yes
1515 DEFAULT_wxUSE_TABDIALOG=no
1516 DEFAULT_wxUSE_TEXTCTRL=no
1517 DEFAULT_wxUSE_TOGGLEBTN=no
1518 DEFAULT_wxUSE_TOOLBAR=no
1519 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
1520 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
1521 DEFAULT_wxUSE_TREECTRL=no
1522 DEFAULT_wxUSE_POPUPWIN=no
1523
1524 DEFAULT_wxUSE_UNICODE=no
1525 DEFAULT_wxUSE_WCSRTOMBS=no
1526
1527 DEFAULT_wxUSE_IMAGE=no
1528 DEFAULT_wxUSE_GIF=no
1529 DEFAULT_wxUSE_PCX=no
1530 DEFAULT_wxUSE_PNM=no
1531 DEFAULT_wxUSE_XPM=no
1532 else
1533 DEFAULT_wxUSE_UNIVERSAL=no
1534
1535 DEFAULT_wxUSE_THREADS=yes
1536
1537 DEFAULT_wxUSE_SHARED=yes
1538 DEFAULT_wxUSE_BURNT_NAME=no
1539 DEFAULT_wxUSE_OPTIMISE=yes
1540 DEFAULT_wxUSE_PROFILE=no
1541 DEFAULT_wxUSE_NO_DEPS=no
1542 DEFAULT_wxUSE_NO_RTTI=no
1543 DEFAULT_wxUSE_NO_EXCEPTIONS=no
1544 DEFAULT_wxUSE_PERMISSIVE=no
1545 DEFAULT_wxUSE_DEBUG_FLAG=no
1546 DEFAULT_wxUSE_DEBUG_INFO=no
1547 DEFAULT_wxUSE_DEBUG_GDB=no
1548 DEFAULT_wxUSE_MEM_TRACING=no
1549 DEFAULT_wxUSE_DEBUG_CONTEXT=no
1550 DEFAULT_wxUSE_DMALLOC=no
1551 DEFAULT_wxUSE_APPLE_IEEE=yes
1552
1553 DEFAULT_wxUSE_LOG=yes
1554 DEFAULT_wxUSE_LOGWINDOW=yes
1555 DEFAULT_wxUSE_LOGGUI=yes
1556
1557 DEFAULT_wxUSE_GUI=yes
1558
1559 DEFAULT_wxUSE_REGEX=yes
1560 DEFAULT_wxUSE_ZLIB=yes
1561 DEFAULT_wxUSE_LIBPNG=yes
1562 DEFAULT_wxUSE_LIBJPEG=yes
1563 DEFAULT_wxUSE_LIBTIFF=yes
1564 DEFAULT_wxUSE_ODBC=no
1565 DEFAULT_wxUSE_FREETYPE=no
1566 DEFAULT_wxUSE_OPENGL=no
1567
1568 DEFAULT_wxUSE_ON_FATAL_EXCEPTION=yes
1569 DEFAULT_wxUSE_SNGLINST_CHECKER=yes
1570 DEFAULT_wxUSE_STD_IOSTREAM=no
1571 DEFAULT_wxUSE_CMDLINE_PARSER=yes
1572 DEFAULT_wxUSE_DATETIME=yes
1573 DEFAULT_wxUSE_TIMEDATE=no
1574 DEFAULT_wxUSE_TIMER=yes
1575 DEFAULT_wxUSE_STOPWATCH=yes
1576 DEFAULT_wxUSE_FILE=yes
1577 DEFAULT_wxUSE_FFILE=yes
1578 DEFAULT_wxUSE_TEXTFILE=yes
1579 DEFAULT_wxUSE_WAVE=no
1580 DEFAULT_wxUSE_INTL=yes
1581 DEFAULT_wxUSE_CONFIG=yes
1582 DEFAULT_wxUSE_FONTMAP=yes
1583 DEFAULT_wxUSE_STREAMS=yes
1584 DEFAULT_wxUSE_SOCKETS=yes
1585 DEFAULT_wxUSE_DIALUP_MANAGER=yes
1586 DEFAULT_wxUSE_SERIAL=yes
1587 DEFAULT_wxUSE_JOYSTICK=yes
1588 DEFAULT_wxUSE_DYNLIB_CLASS=yes
1589 DEFAULT_wxUSE_LONGLONG=yes
1590 DEFAULT_wxUSE_GEOMETRY=yes
1591
1592 DEFAULT_wxUSE_AFM_FOR_POSTSCRIPT=yes
1593 DEFAULT_wxUSE_NORMALIZED_PS_FONTS=yes
1594 DEFAULT_wxUSE_POSTSCRIPT=yes
1595
1596 DEFAULT_wxUSE_X_RESOURCES=no
1597 DEFAULT_wxUSE_CLIPBOARD=yes
1598 DEFAULT_wxUSE_TOOLTIPS=yes
1599 DEFAULT_wxUSE_DRAG_AND_DROP=yes
1600 DEFAULT_wxUSE_DRAGIMAGE=yes
1601 DEFAULT_wxUSE_SPLINES=yes
1602
1603 DEFAULT_wxUSE_MDI_ARCHITECTURE=yes
1604 DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE=yes
1605 DEFAULT_wxUSE_PRINTING_ARCHITECTURE=yes
1606
1607 DEFAULT_wxUSE_PROLOGIO=yes
1608 DEFAULT_wxUSE_RESOURCES=yes
1609 DEFAULT_wxUSE_CONSTRAINTS=yes
1610 DEFAULT_wxUSE_IPC=yes
1611 DEFAULT_wxUSE_HELP=yes
1612 DEFAULT_wxUSE_MS_HTML_HELP=yes
1613 DEFAULT_wxUSE_WXHTML_HELP=yes
1614 DEFAULT_wxUSE_WXTREE=yes
1615 DEFAULT_wxUSE_METAFILE=yes
1616 DEFAULT_wxUSE_MIMETYPE=yes
1617 DEFAULT_wxUSE_SYSTEM_OPTIONS=yes
1618
1619 DEFAULT_wxUSE_COMMONDLGS=yes
1620 DEFAULT_wxUSE_CHOICEDLG=yes
1621 DEFAULT_wxUSE_COLOURDLG=yes
1622 DEFAULT_wxUSE_DIRDLG=yes
1623 DEFAULT_wxUSE_FILEDLG=yes
1624 DEFAULT_wxUSE_FONTDLG=yes
1625 DEFAULT_wxUSE_MSGDLG=yes
1626 DEFAULT_wxUSE_NUMBERDLG=yes
1627 DEFAULT_wxUSE_TEXTDLG=yes
1628 DEFAULT_wxUSE_STARTUP_TIPS=yes
1629 DEFAULT_wxUSE_PROGRESSDLG=yes
1630 DEFAULT_wxUSE_WIZARDDLG=yes
1631
1632 DEFAULT_wxUSE_MENUS=yes
1633 DEFAULT_wxUSE_MINIFRAME=yes
1634 DEFAULT_wxUSE_HTML=yes
1635 DEFAULT_wxUSE_FILESYSTEM=yes
1636 DEFAULT_wxUSE_FS_INET=yes
1637 DEFAULT_wxUSE_FS_ZIP=yes
1638 DEFAULT_wxUSE_BUSYINFO=yes
1639 DEFAULT_wxUSE_ZIPSTREAM=yes
1640 DEFAULT_wxUSE_VALIDATORS=yes
1641
1642 DEFAULT_wxUSE_ACCEL=yes
1643 DEFAULT_wxUSE_BUTTON=yes
1644 DEFAULT_wxUSE_BMPBUTTON=yes
1645 DEFAULT_wxUSE_CALCTRL=yes
1646 DEFAULT_wxUSE_CARET=yes
1647 DEFAULT_wxUSE_CHECKBOX=yes
1648 DEFAULT_wxUSE_CHECKLST=yes
1649 DEFAULT_wxUSE_CHOICE=yes
1650 DEFAULT_wxUSE_COMBOBOX=yes
1651 DEFAULT_wxUSE_GAUGE=yes
1652 DEFAULT_wxUSE_GRID=yes
1653 DEFAULT_wxUSE_NEW_GRID=yes
1654 DEFAULT_wxUSE_IMAGLIST=yes
1655 DEFAULT_wxUSE_LISTBOX=yes
1656 DEFAULT_wxUSE_LISTCTRL=yes
1657 DEFAULT_wxUSE_NOTEBOOK=yes
1658 DEFAULT_wxUSE_RADIOBOX=yes
1659 DEFAULT_wxUSE_RADIOBTN=yes
1660 DEFAULT_wxUSE_SASH=yes
1661 DEFAULT_wxUSE_SCROLLBAR=yes
1662 DEFAULT_wxUSE_SLIDER=yes
1663 DEFAULT_wxUSE_SPINBTN=yes
1664 DEFAULT_wxUSE_SPINCTRL=yes
1665 DEFAULT_wxUSE_SPLITTER=yes
1666 DEFAULT_wxUSE_STATBMP=yes
1667 DEFAULT_wxUSE_STATBOX=yes
1668 DEFAULT_wxUSE_STATLINE=yes
1669 DEFAULT_wxUSE_STATTEXT=yes
1670 DEFAULT_wxUSE_STATUSBAR=yes
1671 DEFAULT_wxUSE_TABDIALOG=no
1672 DEFAULT_wxUSE_TEXTCTRL=yes
1673 DEFAULT_wxUSE_TOGGLEBTN=yes
1674 DEFAULT_wxUSE_TOOLBAR=yes
1675 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
1676 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
1677 DEFAULT_wxUSE_TREECTRL=yes
1678 DEFAULT_wxUSE_POPUPWIN=yes
1679
1680 DEFAULT_wxUSE_UNICODE=no
1681 DEFAULT_wxUSE_WCSRTOMBS=no
1682
1683 DEFAULT_wxUSE_IMAGE=yes
1684 DEFAULT_wxUSE_GIF=yes
1685 DEFAULT_wxUSE_PCX=yes
1686 DEFAULT_wxUSE_PNM=yes
1687 DEFAULT_wxUSE_XPM=yes
1688 fi
1689
1690
1691
1692 for toolkit in `echo $ALL_TOOLKITS`; do
1693 LINE=`grep "wxUSE_$toolkit" ${wx_arg_cache_file}`
1694 if test "x$LINE" != x ; then
1695 has_toolkit_in_cache=1
1696 eval "DEFAULT_$LINE"
1697 eval "CACHE_$toolkit=1"
1698 fi
1699 done
1700
1701
1702
1703 echo $ac_n "checking for --enable-gui""... $ac_c" 1>&6
1704 echo "configure:1705: checking for --enable-gui" >&5
1705 no_cache=0
1706 # Check whether --enable-gui or --disable-gui was given.
1707 if test "${enable_gui+set}" = set; then
1708 enableval="$enable_gui"
1709
1710 if test "$enableval" = yes; then
1711 ac_cv_use_gui='wxUSE_GUI=yes'
1712 else
1713 ac_cv_use_gui='wxUSE_GUI=no'
1714 fi
1715
1716 else
1717
1718 LINE=`grep "wxUSE_GUI" ${wx_arg_cache_file}`
1719 if test "x$LINE" != x ; then
1720 eval "DEFAULT_$LINE"
1721 else
1722 no_cache=1
1723 fi
1724
1725 ac_cv_use_gui='wxUSE_GUI='$DEFAULT_wxUSE_GUI
1726
1727 fi
1728
1729
1730 eval "$ac_cv_use_gui"
1731 if test "$no_cache" != 1; then
1732 echo $ac_cv_use_gui >> ${wx_arg_cache_file}.tmp
1733 fi
1734
1735 if test "$wxUSE_GUI" = yes; then
1736 echo "$ac_t""yes" 1>&6
1737 else
1738 echo "$ac_t""no" 1>&6
1739 fi
1740
1741
1742 if test "$wxUSE_GUI" = "yes"; then
1743
1744
1745 echo $ac_n "checking for --enable-universal""... $ac_c" 1>&6
1746 echo "configure:1747: checking for --enable-universal" >&5
1747 no_cache=0
1748 # Check whether --enable-universal or --disable-universal was given.
1749 if test "${enable_universal+set}" = set; then
1750 enableval="$enable_universal"
1751
1752 if test "$enableval" = yes; then
1753 ac_cv_use_universal='wxUSE_UNIVERSAL=yes'
1754 else
1755 ac_cv_use_universal='wxUSE_UNIVERSAL=no'
1756 fi
1757
1758 else
1759
1760 LINE=`grep "wxUSE_UNIVERSAL" ${wx_arg_cache_file}`
1761 if test "x$LINE" != x ; then
1762 eval "DEFAULT_$LINE"
1763 else
1764 no_cache=1
1765 fi
1766
1767 ac_cv_use_universal='wxUSE_UNIVERSAL='$DEFAULT_wxUSE_UNIVERSAL
1768
1769 fi
1770
1771
1772 eval "$ac_cv_use_universal"
1773 if test "$no_cache" != 1; then
1774 echo $ac_cv_use_universal >> ${wx_arg_cache_file}.tmp
1775 fi
1776
1777 if test "$wxUSE_UNIVERSAL" = yes; then
1778 echo "$ac_t""yes" 1>&6
1779 else
1780 echo "$ac_t""no" 1>&6
1781 fi
1782
1783 # Check whether --with-gtk or --without-gtk was given.
1784 if test "${with_gtk+set}" = set; then
1785 withval="$with_gtk"
1786 wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
1787 fi
1788
1789 # Check whether --with-motif or --without-motif was given.
1790 if test "${with_motif+set}" = set; then
1791 withval="$with_motif"
1792 wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
1793 fi
1794
1795 # Check whether --with-mac or --without-mac was given.
1796 if test "${with_mac+set}" = set; then
1797 withval="$with_mac"
1798 wxUSE_MAC="$withval" TOOLKIT_GIVEN=1
1799 fi
1800
1801 # Check whether --with-wine or --without-wine was given.
1802 if test "${with_wine+set}" = set; then
1803 withval="$with_wine"
1804 wxUSE_WINE="$withval" CACHE_WINE=1 TOOLKIT_GIVEN=1
1805 fi
1806
1807 # Check whether --with-cygwin or --without-cygwin was given.
1808 if test "${with_cygwin+set}" = set; then
1809 withval="$with_cygwin"
1810 wxUSE_CYGWIN="$withval" CACHE_CYGWIN=1 TOOLKIT_GIVEN=1
1811 fi
1812
1813 # Check whether --with-mingw or --without-mingw was given.
1814 if test "${with_mingw+set}" = set; then
1815 withval="$with_mingw"
1816 wxUSE_MINGW="$withval" CACHE_MINGW=1 TOOLKIT_GIVEN=1
1817 fi
1818
1819 # Check whether --with-pm or --without-pm was given.
1820 if test "${with_pm+set}" = set; then
1821 withval="$with_pm"
1822 wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
1823 fi
1824
1825 # Check whether --with-mgl or --without-mgl was given.
1826 if test "${with_mgl+set}" = set; then
1827 withval="$with_mgl"
1828 wxUSE_MGL="$withval" CACHE_MGL=1 TOOLKIT_GIVEN=1
1829 fi
1830
1831
1832 # Check whether --enable-gtk2 or --disable-gtk2 was given.
1833 if test "${enable_gtk2+set}" = set; then
1834 enableval="$enable_gtk2"
1835 wxUSE_GTK2=1
1836 else
1837 wxUSE_GTK2=0
1838 fi
1839
1840
1841
1842 echo $ac_n "checking for --with-libpng""... $ac_c" 1>&6
1843 echo "configure:1844: checking for --with-libpng" >&5
1844 no_cache=0
1845 # Check whether --with-libpng or --without-libpng was given.
1846 if test "${with_libpng+set}" = set; then
1847 withval="$with_libpng"
1848
1849 if test "$withval" = yes; then
1850 ac_cv_use_libpng='wxUSE_LIBPNG=yes'
1851 elif test "$withval" = no; then
1852 ac_cv_use_libpng='wxUSE_LIBPNG=no'
1853 elif test "$withval" = sys; then
1854 ac_cv_use_libpng='wxUSE_LIBPNG=sys'
1855 else
1856 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1857 fi
1858
1859 else
1860
1861 LINE=`grep "wxUSE_LIBPNG" ${wx_arg_cache_file}`
1862 if test "x$LINE" != x ; then
1863 eval "DEFAULT_$LINE"
1864 else
1865 no_cache=1
1866 fi
1867
1868 ac_cv_use_libpng='wxUSE_LIBPNG='$DEFAULT_wxUSE_LIBPNG
1869
1870 fi
1871
1872
1873 eval "$ac_cv_use_libpng"
1874 if test "$no_cache" != 1; then
1875 echo $ac_cv_use_libpng >> ${wx_arg_cache_file}.tmp
1876 fi
1877
1878 if test "$wxUSE_LIBPNG" = yes; then
1879 echo "$ac_t""yes" 1>&6
1880 elif test "$wxUSE_LIBPNG" = no; then
1881 echo "$ac_t""no" 1>&6
1882 elif test "$wxUSE_LIBPNG" = sys; then
1883 echo "$ac_t""system version" 1>&6
1884 else
1885 { echo "configure: error: Invalid value for --with-libpng: should be yes, no or sys" 1>&2; exit 1; }
1886 fi
1887
1888
1889 echo $ac_n "checking for --with-libjpeg""... $ac_c" 1>&6
1890 echo "configure:1891: checking for --with-libjpeg" >&5
1891 no_cache=0
1892 # Check whether --with-libjpeg or --without-libjpeg was given.
1893 if test "${with_libjpeg+set}" = set; then
1894 withval="$with_libjpeg"
1895
1896 if test "$withval" = yes; then
1897 ac_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
1898 elif test "$withval" = no; then
1899 ac_cv_use_libjpeg='wxUSE_LIBJPEG=no'
1900 elif test "$withval" = sys; then
1901 ac_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
1902 else
1903 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1904 fi
1905
1906 else
1907
1908 LINE=`grep "wxUSE_LIBJPEG" ${wx_arg_cache_file}`
1909 if test "x$LINE" != x ; then
1910 eval "DEFAULT_$LINE"
1911 else
1912 no_cache=1
1913 fi
1914
1915 ac_cv_use_libjpeg='wxUSE_LIBJPEG='$DEFAULT_wxUSE_LIBJPEG
1916
1917 fi
1918
1919
1920 eval "$ac_cv_use_libjpeg"
1921 if test "$no_cache" != 1; then
1922 echo $ac_cv_use_libjpeg >> ${wx_arg_cache_file}.tmp
1923 fi
1924
1925 if test "$wxUSE_LIBJPEG" = yes; then
1926 echo "$ac_t""yes" 1>&6
1927 elif test "$wxUSE_LIBJPEG" = no; then
1928 echo "$ac_t""no" 1>&6
1929 elif test "$wxUSE_LIBJPEG" = sys; then
1930 echo "$ac_t""system version" 1>&6
1931 else
1932 { echo "configure: error: Invalid value for --with-libjpeg: should be yes, no or sys" 1>&2; exit 1; }
1933 fi
1934
1935
1936 echo $ac_n "checking for --with-libtiff""... $ac_c" 1>&6
1937 echo "configure:1938: checking for --with-libtiff" >&5
1938 no_cache=0
1939 # Check whether --with-libtiff or --without-libtiff was given.
1940 if test "${with_libtiff+set}" = set; then
1941 withval="$with_libtiff"
1942
1943 if test "$withval" = yes; then
1944 ac_cv_use_libtiff='wxUSE_LIBTIFF=yes'
1945 elif test "$withval" = no; then
1946 ac_cv_use_libtiff='wxUSE_LIBTIFF=no'
1947 elif test "$withval" = sys; then
1948 ac_cv_use_libtiff='wxUSE_LIBTIFF=sys'
1949 else
1950 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1951 fi
1952
1953 else
1954
1955 LINE=`grep "wxUSE_LIBTIFF" ${wx_arg_cache_file}`
1956 if test "x$LINE" != x ; then
1957 eval "DEFAULT_$LINE"
1958 else
1959 no_cache=1
1960 fi
1961
1962 ac_cv_use_libtiff='wxUSE_LIBTIFF='$DEFAULT_wxUSE_LIBTIFF
1963
1964 fi
1965
1966
1967 eval "$ac_cv_use_libtiff"
1968 if test "$no_cache" != 1; then
1969 echo $ac_cv_use_libtiff >> ${wx_arg_cache_file}.tmp
1970 fi
1971
1972 if test "$wxUSE_LIBTIFF" = yes; then
1973 echo "$ac_t""yes" 1>&6
1974 elif test "$wxUSE_LIBTIFF" = no; then
1975 echo "$ac_t""no" 1>&6
1976 elif test "$wxUSE_LIBTIFF" = sys; then
1977 echo "$ac_t""system version" 1>&6
1978 else
1979 { echo "configure: error: Invalid value for --with-libtiff: should be yes, no or sys" 1>&2; exit 1; }
1980 fi
1981
1982
1983 echo $ac_n "checking for --with-freetype""... $ac_c" 1>&6
1984 echo "configure:1985: checking for --with-freetype" >&5
1985 no_cache=0
1986 # Check whether --with-freetype or --without-freetype was given.
1987 if test "${with_freetype+set}" = set; then
1988 withval="$with_freetype"
1989
1990 if test "$withval" = yes; then
1991 ac_cv_use_freetype='wxUSE_FREETYPE=yes'
1992 elif test "$withval" = no; then
1993 ac_cv_use_freetype='wxUSE_FREETYPE=no'
1994 elif test "$withval" = sys; then
1995 ac_cv_use_freetype='wxUSE_FREETYPE=sys'
1996 else
1997 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
1998 fi
1999
2000 else
2001
2002 LINE=`grep "wxUSE_FREETYPE" ${wx_arg_cache_file}`
2003 if test "x$LINE" != x ; then
2004 eval "DEFAULT_$LINE"
2005 else
2006 no_cache=1
2007 fi
2008
2009 ac_cv_use_freetype='wxUSE_FREETYPE='$DEFAULT_wxUSE_FREETYPE
2010
2011 fi
2012
2013
2014 eval "$ac_cv_use_freetype"
2015 if test "$no_cache" != 1; then
2016 echo $ac_cv_use_freetype >> ${wx_arg_cache_file}.tmp
2017 fi
2018
2019 if test "$wxUSE_FREETYPE" = yes; then
2020 echo "$ac_t""yes" 1>&6
2021 elif test "$wxUSE_FREETYPE" = no; then
2022 echo "$ac_t""no" 1>&6
2023 elif test "$wxUSE_FREETYPE" = sys; then
2024 echo "$ac_t""system version" 1>&6
2025 else
2026 { echo "configure: error: Invalid value for --with-freetype: should be yes, no or sys" 1>&2; exit 1; }
2027 fi
2028
2029
2030 echo $ac_n "checking for --with-opengl""... $ac_c" 1>&6
2031 echo "configure:2032: checking for --with-opengl" >&5
2032 no_cache=0
2033 # Check whether --with-opengl or --without-opengl was given.
2034 if test "${with_opengl+set}" = set; then
2035 withval="$with_opengl"
2036
2037 if test "$withval" = yes; then
2038 ac_cv_use_opengl='wxUSE_OPENGL=yes'
2039 else
2040 ac_cv_use_opengl='wxUSE_OPENGL=no'
2041 fi
2042
2043 else
2044
2045 LINE=`grep "wxUSE_OPENGL" ${wx_arg_cache_file}`
2046 if test "x$LINE" != x ; then
2047 eval "DEFAULT_$LINE"
2048 else
2049 no_cache=1
2050 fi
2051
2052 ac_cv_use_opengl='wxUSE_OPENGL='$DEFAULT_wxUSE_OPENGL
2053
2054 fi
2055
2056
2057 eval "$ac_cv_use_opengl"
2058 if test "$no_cache" != 1; then
2059 echo $ac_cv_use_opengl >> ${wx_arg_cache_file}.tmp
2060 fi
2061
2062 if test "$wxUSE_OPENGL" = yes; then
2063 echo "$ac_t""yes" 1>&6
2064 else
2065 echo "$ac_t""no" 1>&6
2066 fi
2067
2068
2069 fi
2070
2071
2072 echo $ac_n "checking for --with-dmalloc""... $ac_c" 1>&6
2073 echo "configure:2074: checking for --with-dmalloc" >&5
2074 no_cache=0
2075 # Check whether --with-dmalloc or --without-dmalloc was given.
2076 if test "${with_dmalloc+set}" = set; then
2077 withval="$with_dmalloc"
2078
2079 if test "$withval" = yes; then
2080 ac_cv_use_dmalloc='wxUSE_DMALLOC=yes'
2081 else
2082 ac_cv_use_dmalloc='wxUSE_DMALLOC=no'
2083 fi
2084
2085 else
2086
2087 LINE=`grep "wxUSE_DMALLOC" ${wx_arg_cache_file}`
2088 if test "x$LINE" != x ; then
2089 eval "DEFAULT_$LINE"
2090 else
2091 no_cache=1
2092 fi
2093
2094 ac_cv_use_dmalloc='wxUSE_DMALLOC='$DEFAULT_wxUSE_DMALLOC
2095
2096 fi
2097
2098
2099 eval "$ac_cv_use_dmalloc"
2100 if test "$no_cache" != 1; then
2101 echo $ac_cv_use_dmalloc >> ${wx_arg_cache_file}.tmp
2102 fi
2103
2104 if test "$wxUSE_DMALLOC" = yes; then
2105 echo "$ac_t""yes" 1>&6
2106 else
2107 echo "$ac_t""no" 1>&6
2108 fi
2109
2110
2111 echo $ac_n "checking for --with-regex""... $ac_c" 1>&6
2112 echo "configure:2113: checking for --with-regex" >&5
2113 no_cache=0
2114 # Check whether --with-regex or --without-regex was given.
2115 if test "${with_regex+set}" = set; then
2116 withval="$with_regex"
2117
2118 if test "$withval" = yes; then
2119 ac_cv_use_regex='wxUSE_REGEX=yes'
2120 elif test "$withval" = no; then
2121 ac_cv_use_regex='wxUSE_REGEX=no'
2122 elif test "$withval" = sys; then
2123 ac_cv_use_regex='wxUSE_REGEX=sys'
2124 else
2125 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2126 fi
2127
2128 else
2129
2130 LINE=`grep "wxUSE_REGEX" ${wx_arg_cache_file}`
2131 if test "x$LINE" != x ; then
2132 eval "DEFAULT_$LINE"
2133 else
2134 no_cache=1
2135 fi
2136
2137 ac_cv_use_regex='wxUSE_REGEX='$DEFAULT_wxUSE_REGEX
2138
2139 fi
2140
2141
2142 eval "$ac_cv_use_regex"
2143 if test "$no_cache" != 1; then
2144 echo $ac_cv_use_regex >> ${wx_arg_cache_file}.tmp
2145 fi
2146
2147 if test "$wxUSE_REGEX" = yes; then
2148 echo "$ac_t""yes" 1>&6
2149 elif test "$wxUSE_REGEX" = no; then
2150 echo "$ac_t""no" 1>&6
2151 elif test "$wxUSE_REGEX" = sys; then
2152 echo "$ac_t""system version" 1>&6
2153 else
2154 { echo "configure: error: Invalid value for --with-regex: should be yes, no or sys" 1>&2; exit 1; }
2155 fi
2156
2157
2158 echo $ac_n "checking for --with-zlib""... $ac_c" 1>&6
2159 echo "configure:2160: checking for --with-zlib" >&5
2160 no_cache=0
2161 # Check whether --with-zlib or --without-zlib was given.
2162 if test "${with_zlib+set}" = set; then
2163 withval="$with_zlib"
2164
2165 if test "$withval" = yes; then
2166 ac_cv_use_zlib='wxUSE_ZLIB=yes'
2167 elif test "$withval" = no; then
2168 ac_cv_use_zlib='wxUSE_ZLIB=no'
2169 elif test "$withval" = sys; then
2170 ac_cv_use_zlib='wxUSE_ZLIB=sys'
2171 else
2172 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2173 fi
2174
2175 else
2176
2177 LINE=`grep "wxUSE_ZLIB" ${wx_arg_cache_file}`
2178 if test "x$LINE" != x ; then
2179 eval "DEFAULT_$LINE"
2180 else
2181 no_cache=1
2182 fi
2183
2184 ac_cv_use_zlib='wxUSE_ZLIB='$DEFAULT_wxUSE_ZLIB
2185
2186 fi
2187
2188
2189 eval "$ac_cv_use_zlib"
2190 if test "$no_cache" != 1; then
2191 echo $ac_cv_use_zlib >> ${wx_arg_cache_file}.tmp
2192 fi
2193
2194 if test "$wxUSE_ZLIB" = yes; then
2195 echo "$ac_t""yes" 1>&6
2196 elif test "$wxUSE_ZLIB" = no; then
2197 echo "$ac_t""no" 1>&6
2198 elif test "$wxUSE_ZLIB" = sys; then
2199 echo "$ac_t""system version" 1>&6
2200 else
2201 { echo "configure: error: Invalid value for --with-zlib: should be yes, no or sys" 1>&2; exit 1; }
2202 fi
2203
2204
2205 echo $ac_n "checking for --with-odbc""... $ac_c" 1>&6
2206 echo "configure:2207: checking for --with-odbc" >&5
2207 no_cache=0
2208 # Check whether --with-odbc or --without-odbc was given.
2209 if test "${with_odbc+set}" = set; then
2210 withval="$with_odbc"
2211
2212 if test "$withval" = yes; then
2213 ac_cv_use_odbc='wxUSE_ODBC=yes'
2214 else
2215 ac_cv_use_odbc='wxUSE_ODBC=no'
2216 fi
2217
2218 else
2219
2220 LINE=`grep "wxUSE_ODBC" ${wx_arg_cache_file}`
2221 if test "x$LINE" != x ; then
2222 eval "DEFAULT_$LINE"
2223 else
2224 no_cache=1
2225 fi
2226
2227 ac_cv_use_odbc='wxUSE_ODBC='$DEFAULT_wxUSE_ODBC
2228
2229 fi
2230
2231
2232 eval "$ac_cv_use_odbc"
2233 if test "$no_cache" != 1; then
2234 echo $ac_cv_use_odbc >> ${wx_arg_cache_file}.tmp
2235 fi
2236
2237 if test "$wxUSE_ODBC" = yes; then
2238 echo "$ac_t""yes" 1>&6
2239 else
2240 echo "$ac_t""no" 1>&6
2241 fi
2242
2243
2244
2245
2246
2247 echo $ac_n "checking for --enable-shared""... $ac_c" 1>&6
2248 echo "configure:2249: checking for --enable-shared" >&5
2249 no_cache=0
2250 # Check whether --enable-shared or --disable-shared was given.
2251 if test "${enable_shared+set}" = set; then
2252 enableval="$enable_shared"
2253
2254 if test "$enableval" = yes; then
2255 ac_cv_use_shared='wxUSE_SHARED=yes'
2256 else
2257 ac_cv_use_shared='wxUSE_SHARED=no'
2258 fi
2259
2260 else
2261
2262 LINE=`grep "wxUSE_SHARED" ${wx_arg_cache_file}`
2263 if test "x$LINE" != x ; then
2264 eval "DEFAULT_$LINE"
2265 else
2266 no_cache=1
2267 fi
2268
2269 ac_cv_use_shared='wxUSE_SHARED='$DEFAULT_wxUSE_SHARED
2270
2271 fi
2272
2273
2274 eval "$ac_cv_use_shared"
2275 if test "$no_cache" != 1; then
2276 echo $ac_cv_use_shared >> ${wx_arg_cache_file}.tmp
2277 fi
2278
2279 if test "$wxUSE_SHARED" = yes; then
2280 echo "$ac_t""yes" 1>&6
2281 else
2282 echo "$ac_t""no" 1>&6
2283 fi
2284
2285
2286 echo $ac_n "checking for --enable-burnt_name""... $ac_c" 1>&6
2287 echo "configure:2288: checking for --enable-burnt_name" >&5
2288 no_cache=0
2289 # Check whether --enable-burnt_name or --disable-burnt_name was given.
2290 if test "${enable_burnt_name+set}" = set; then
2291 enableval="$enable_burnt_name"
2292
2293 if test "$enableval" = yes; then
2294 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=yes'
2295 else
2296 ac_cv_use_burnt_name='wxUSE_BURNT_NAME=no'
2297 fi
2298
2299 else
2300
2301 LINE=`grep "wxUSE_BURNT_NAME" ${wx_arg_cache_file}`
2302 if test "x$LINE" != x ; then
2303 eval "DEFAULT_$LINE"
2304 else
2305 no_cache=1
2306 fi
2307
2308 ac_cv_use_burnt_name='wxUSE_BURNT_NAME='$DEFAULT_wxUSE_BURNT_NAME
2309
2310 fi
2311
2312
2313 eval "$ac_cv_use_burnt_name"
2314 if test "$no_cache" != 1; then
2315 echo $ac_cv_use_burnt_name >> ${wx_arg_cache_file}.tmp
2316 fi
2317
2318 if test "$wxUSE_BURNT_NAME" = yes; then
2319 echo "$ac_t""yes" 1>&6
2320 else
2321 echo "$ac_t""no" 1>&6
2322 fi
2323
2324
2325 echo $ac_n "checking for --enable-optimise""... $ac_c" 1>&6
2326 echo "configure:2327: checking for --enable-optimise" >&5
2327 no_cache=0
2328 # Check whether --enable-optimise or --disable-optimise was given.
2329 if test "${enable_optimise+set}" = set; then
2330 enableval="$enable_optimise"
2331
2332 if test "$enableval" = yes; then
2333 ac_cv_use_optimise='wxUSE_OPTIMISE=yes'
2334 else
2335 ac_cv_use_optimise='wxUSE_OPTIMISE=no'
2336 fi
2337
2338 else
2339
2340 LINE=`grep "wxUSE_OPTIMISE" ${wx_arg_cache_file}`
2341 if test "x$LINE" != x ; then
2342 eval "DEFAULT_$LINE"
2343 else
2344 no_cache=1
2345 fi
2346
2347 ac_cv_use_optimise='wxUSE_OPTIMISE='$DEFAULT_wxUSE_OPTIMISE
2348
2349 fi
2350
2351
2352 eval "$ac_cv_use_optimise"
2353 if test "$no_cache" != 1; then
2354 echo $ac_cv_use_optimise >> ${wx_arg_cache_file}.tmp
2355 fi
2356
2357 if test "$wxUSE_OPTIMISE" = yes; then
2358 echo "$ac_t""yes" 1>&6
2359 else
2360 echo "$ac_t""no" 1>&6
2361 fi
2362
2363
2364 echo $ac_n "checking for --enable-debug""... $ac_c" 1>&6
2365 echo "configure:2366: checking for --enable-debug" >&5
2366 no_cache=0
2367 # Check whether --enable-debug or --disable-debug was given.
2368 if test "${enable_debug+set}" = set; then
2369 enableval="$enable_debug"
2370
2371 if test "$enableval" = yes; then
2372 ac_cv_use_debug='wxUSE_DEBUG=yes'
2373 else
2374 ac_cv_use_debug='wxUSE_DEBUG=no'
2375 fi
2376
2377 else
2378
2379 LINE=`grep "wxUSE_DEBUG" ${wx_arg_cache_file}`
2380 if test "x$LINE" != x ; then
2381 eval "DEFAULT_$LINE"
2382 else
2383 no_cache=1
2384 fi
2385
2386 ac_cv_use_debug='wxUSE_DEBUG='$DEFAULT_wxUSE_DEBUG
2387
2388 fi
2389
2390
2391 eval "$ac_cv_use_debug"
2392 if test "$no_cache" != 1; then
2393 echo $ac_cv_use_debug >> ${wx_arg_cache_file}.tmp
2394 fi
2395
2396 if test "$wxUSE_DEBUG" = yes; then
2397 echo "$ac_t""yes" 1>&6
2398 else
2399 echo "$ac_t""no" 1>&6
2400 fi
2401
2402
2403 if test "$wxUSE_DEBUG" = "yes"; then
2404 DEFAULT_wxUSE_DEBUG_FLAG=yes
2405 DEFAULT_wxUSE_DEBUG_INFO=yes
2406 elif test "$wxUSE_DEBUG" = "no"; then
2407 DEFAULT_wxUSE_DEBUG_FLAG=no
2408 DEFAULT_wxUSE_DEBUG_INFO=no
2409 fi
2410
2411
2412 echo $ac_n "checking for --enable-debug_flag""... $ac_c" 1>&6
2413 echo "configure:2414: checking for --enable-debug_flag" >&5
2414 no_cache=0
2415 # Check whether --enable-debug_flag or --disable-debug_flag was given.
2416 if test "${enable_debug_flag+set}" = set; then
2417 enableval="$enable_debug_flag"
2418
2419 if test "$enableval" = yes; then
2420 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
2421 else
2422 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
2423 fi
2424
2425 else
2426
2427 LINE=`grep "wxUSE_DEBUG_FLAG" ${wx_arg_cache_file}`
2428 if test "x$LINE" != x ; then
2429 eval "DEFAULT_$LINE"
2430 else
2431 no_cache=1
2432 fi
2433
2434 ac_cv_use_debug_flag='wxUSE_DEBUG_FLAG='$DEFAULT_wxUSE_DEBUG_FLAG
2435
2436 fi
2437
2438
2439 eval "$ac_cv_use_debug_flag"
2440 if test "$no_cache" != 1; then
2441 echo $ac_cv_use_debug_flag >> ${wx_arg_cache_file}.tmp
2442 fi
2443
2444 if test "$wxUSE_DEBUG_FLAG" = yes; then
2445 echo "$ac_t""yes" 1>&6
2446 else
2447 echo "$ac_t""no" 1>&6
2448 fi
2449
2450
2451 echo $ac_n "checking for --enable-debug_info""... $ac_c" 1>&6
2452 echo "configure:2453: checking for --enable-debug_info" >&5
2453 no_cache=0
2454 # Check whether --enable-debug_info or --disable-debug_info was given.
2455 if test "${enable_debug_info+set}" = set; then
2456 enableval="$enable_debug_info"
2457
2458 if test "$enableval" = yes; then
2459 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
2460 else
2461 ac_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
2462 fi
2463
2464 else
2465
2466 LINE=`grep "wxUSE_DEBUG_INFO" ${wx_arg_cache_file}`
2467 if test "x$LINE" != x ; then
2468 eval "DEFAULT_$LINE"
2469 else
2470 no_cache=1
2471 fi
2472
2473 ac_cv_use_debug_info='wxUSE_DEBUG_INFO='$DEFAULT_wxUSE_DEBUG_INFO
2474
2475 fi
2476
2477
2478 eval "$ac_cv_use_debug_info"
2479 if test "$no_cache" != 1; then
2480 echo $ac_cv_use_debug_info >> ${wx_arg_cache_file}.tmp
2481 fi
2482
2483 if test "$wxUSE_DEBUG_INFO" = yes; then
2484 echo "$ac_t""yes" 1>&6
2485 else
2486 echo "$ac_t""no" 1>&6
2487 fi
2488
2489
2490 echo $ac_n "checking for --enable-debug_gdb""... $ac_c" 1>&6
2491 echo "configure:2492: checking for --enable-debug_gdb" >&5
2492 no_cache=0
2493 # Check whether --enable-debug_gdb or --disable-debug_gdb was given.
2494 if test "${enable_debug_gdb+set}" = set; then
2495 enableval="$enable_debug_gdb"
2496
2497 if test "$enableval" = yes; then
2498 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
2499 else
2500 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
2501 fi
2502
2503 else
2504
2505 LINE=`grep "wxUSE_DEBUG_GDB" ${wx_arg_cache_file}`
2506 if test "x$LINE" != x ; then
2507 eval "DEFAULT_$LINE"
2508 else
2509 no_cache=1
2510 fi
2511
2512 ac_cv_use_debug_gdb='wxUSE_DEBUG_GDB='$DEFAULT_wxUSE_DEBUG_GDB
2513
2514 fi
2515
2516
2517 eval "$ac_cv_use_debug_gdb"
2518 if test "$no_cache" != 1; then
2519 echo $ac_cv_use_debug_gdb >> ${wx_arg_cache_file}.tmp
2520 fi
2521
2522 if test "$wxUSE_DEBUG_GDB" = yes; then
2523 echo "$ac_t""yes" 1>&6
2524 else
2525 echo "$ac_t""no" 1>&6
2526 fi
2527
2528
2529 echo $ac_n "checking for --enable-debug_cntxt""... $ac_c" 1>&6
2530 echo "configure:2531: checking for --enable-debug_cntxt" >&5
2531 no_cache=0
2532 # Check whether --enable-debug_cntxt or --disable-debug_cntxt was given.
2533 if test "${enable_debug_cntxt+set}" = set; then
2534 enableval="$enable_debug_cntxt"
2535
2536 if test "$enableval" = yes; then
2537 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
2538 else
2539 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
2540 fi
2541
2542 else
2543
2544 LINE=`grep "wxUSE_DEBUG_CONTEXT" ${wx_arg_cache_file}`
2545 if test "x$LINE" != x ; then
2546 eval "DEFAULT_$LINE"
2547 else
2548 no_cache=1
2549 fi
2550
2551 ac_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT='$DEFAULT_wxUSE_DEBUG_CONTEXT
2552
2553 fi
2554
2555
2556 eval "$ac_cv_use_debug_cntxt"
2557 if test "$no_cache" != 1; then
2558 echo $ac_cv_use_debug_cntxt >> ${wx_arg_cache_file}.tmp
2559 fi
2560
2561 if test "$wxUSE_DEBUG_CONTEXT" = yes; then
2562 echo "$ac_t""yes" 1>&6
2563 else
2564 echo "$ac_t""no" 1>&6
2565 fi
2566
2567
2568 echo $ac_n "checking for --enable-mem_tracing""... $ac_c" 1>&6
2569 echo "configure:2570: checking for --enable-mem_tracing" >&5
2570 no_cache=0
2571 # Check whether --enable-mem_tracing or --disable-mem_tracing was given.
2572 if test "${enable_mem_tracing+set}" = set; then
2573 enableval="$enable_mem_tracing"
2574
2575 if test "$enableval" = yes; then
2576 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
2577 else
2578 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
2579 fi
2580
2581 else
2582
2583 LINE=`grep "wxUSE_MEM_TRACING" ${wx_arg_cache_file}`
2584 if test "x$LINE" != x ; then
2585 eval "DEFAULT_$LINE"
2586 else
2587 no_cache=1
2588 fi
2589
2590 ac_cv_use_mem_tracing='wxUSE_MEM_TRACING='$DEFAULT_wxUSE_MEM_TRACING
2591
2592 fi
2593
2594
2595 eval "$ac_cv_use_mem_tracing"
2596 if test "$no_cache" != 1; then
2597 echo $ac_cv_use_mem_tracing >> ${wx_arg_cache_file}.tmp
2598 fi
2599
2600 if test "$wxUSE_MEM_TRACING" = yes; then
2601 echo "$ac_t""yes" 1>&6
2602 else
2603 echo "$ac_t""no" 1>&6
2604 fi
2605
2606
2607 echo $ac_n "checking for --enable-profile""... $ac_c" 1>&6
2608 echo "configure:2609: checking for --enable-profile" >&5
2609 no_cache=0
2610 # Check whether --enable-profile or --disable-profile was given.
2611 if test "${enable_profile+set}" = set; then
2612 enableval="$enable_profile"
2613
2614 if test "$enableval" = yes; then
2615 ac_cv_use_profile='wxUSE_PROFILE=yes'
2616 else
2617 ac_cv_use_profile='wxUSE_PROFILE=no'
2618 fi
2619
2620 else
2621
2622 LINE=`grep "wxUSE_PROFILE" ${wx_arg_cache_file}`
2623 if test "x$LINE" != x ; then
2624 eval "DEFAULT_$LINE"
2625 else
2626 no_cache=1
2627 fi
2628
2629 ac_cv_use_profile='wxUSE_PROFILE='$DEFAULT_wxUSE_PROFILE
2630
2631 fi
2632
2633
2634 eval "$ac_cv_use_profile"
2635 if test "$no_cache" != 1; then
2636 echo $ac_cv_use_profile >> ${wx_arg_cache_file}.tmp
2637 fi
2638
2639 if test "$wxUSE_PROFILE" = yes; then
2640 echo "$ac_t""yes" 1>&6
2641 else
2642 echo "$ac_t""no" 1>&6
2643 fi
2644
2645
2646 echo $ac_n "checking for --enable-no_rtti""... $ac_c" 1>&6
2647 echo "configure:2648: checking for --enable-no_rtti" >&5
2648 no_cache=0
2649 # Check whether --enable-no_rtti or --disable-no_rtti was given.
2650 if test "${enable_no_rtti+set}" = set; then
2651 enableval="$enable_no_rtti"
2652
2653 if test "$enableval" = yes; then
2654 ac_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
2655 else
2656 ac_cv_use_no_rtti='wxUSE_NO_RTTI=no'
2657 fi
2658
2659 else
2660
2661 LINE=`grep "wxUSE_NO_RTTI" ${wx_arg_cache_file}`
2662 if test "x$LINE" != x ; then
2663 eval "DEFAULT_$LINE"
2664 else
2665 no_cache=1
2666 fi
2667
2668 ac_cv_use_no_rtti='wxUSE_NO_RTTI='$DEFAULT_wxUSE_NO_RTTI
2669
2670 fi
2671
2672
2673 eval "$ac_cv_use_no_rtti"
2674 if test "$no_cache" != 1; then
2675 echo $ac_cv_use_no_rtti >> ${wx_arg_cache_file}.tmp
2676 fi
2677
2678 if test "$wxUSE_NO_RTTI" = yes; then
2679 echo "$ac_t""yes" 1>&6
2680 else
2681 echo "$ac_t""no" 1>&6
2682 fi
2683
2684
2685 echo $ac_n "checking for --enable-no_exceptions""... $ac_c" 1>&6
2686 echo "configure:2687: checking for --enable-no_exceptions" >&5
2687 no_cache=0
2688 # Check whether --enable-no_exceptions or --disable-no_exceptions was given.
2689 if test "${enable_no_exceptions+set}" = set; then
2690 enableval="$enable_no_exceptions"
2691
2692 if test "$enableval" = yes; then
2693 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
2694 else
2695 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
2696 fi
2697
2698 else
2699
2700 LINE=`grep "wxUSE_NO_EXCEPTIONS" ${wx_arg_cache_file}`
2701 if test "x$LINE" != x ; then
2702 eval "DEFAULT_$LINE"
2703 else
2704 no_cache=1
2705 fi
2706
2707 ac_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS='$DEFAULT_wxUSE_NO_EXCEPTIONS
2708
2709 fi
2710
2711
2712 eval "$ac_cv_use_no_exceptions"
2713 if test "$no_cache" != 1; then
2714 echo $ac_cv_use_no_exceptions >> ${wx_arg_cache_file}.tmp
2715 fi
2716
2717 if test "$wxUSE_NO_EXCEPTIONS" = yes; then
2718 echo "$ac_t""yes" 1>&6
2719 else
2720 echo "$ac_t""no" 1>&6
2721 fi
2722
2723
2724 echo $ac_n "checking for --enable-permissive""... $ac_c" 1>&6
2725 echo "configure:2726: checking for --enable-permissive" >&5
2726 no_cache=0
2727 # Check whether --enable-permissive or --disable-permissive was given.
2728 if test "${enable_permissive+set}" = set; then
2729 enableval="$enable_permissive"
2730
2731 if test "$enableval" = yes; then
2732 ac_cv_use_permissive='wxUSE_PERMISSIVE=yes'
2733 else
2734 ac_cv_use_permissive='wxUSE_PERMISSIVE=no'
2735 fi
2736
2737 else
2738
2739 LINE=`grep "wxUSE_PERMISSIVE" ${wx_arg_cache_file}`
2740 if test "x$LINE" != x ; then
2741 eval "DEFAULT_$LINE"
2742 else
2743 no_cache=1
2744 fi
2745
2746 ac_cv_use_permissive='wxUSE_PERMISSIVE='$DEFAULT_wxUSE_PERMISSIVE
2747
2748 fi
2749
2750
2751 eval "$ac_cv_use_permissive"
2752 if test "$no_cache" != 1; then
2753 echo $ac_cv_use_permissive >> ${wx_arg_cache_file}.tmp
2754 fi
2755
2756 if test "$wxUSE_PERMISSIVE" = yes; then
2757 echo "$ac_t""yes" 1>&6
2758 else
2759 echo "$ac_t""no" 1>&6
2760 fi
2761
2762
2763 echo $ac_n "checking for --enable-no_deps""... $ac_c" 1>&6
2764 echo "configure:2765: checking for --enable-no_deps" >&5
2765 no_cache=0
2766 # Check whether --enable-no_deps or --disable-no_deps was given.
2767 if test "${enable_no_deps+set}" = set; then
2768 enableval="$enable_no_deps"
2769
2770 if test "$enableval" = yes; then
2771 ac_cv_use_no_deps='wxUSE_NO_DEPS=yes'
2772 else
2773 ac_cv_use_no_deps='wxUSE_NO_DEPS=no'
2774 fi
2775
2776 else
2777
2778 LINE=`grep "wxUSE_NO_DEPS" ${wx_arg_cache_file}`
2779 if test "x$LINE" != x ; then
2780 eval "DEFAULT_$LINE"
2781 else
2782 no_cache=1
2783 fi
2784
2785 ac_cv_use_no_deps='wxUSE_NO_DEPS='$DEFAULT_wxUSE_NO_DEPS
2786
2787 fi
2788
2789
2790 eval "$ac_cv_use_no_deps"
2791 if test "$no_cache" != 1; then
2792 echo $ac_cv_use_no_deps >> ${wx_arg_cache_file}.tmp
2793 fi
2794
2795 if test "$wxUSE_NO_DEPS" = yes; then
2796 echo "$ac_t""yes" 1>&6
2797 else
2798 echo "$ac_t""no" 1>&6
2799 fi
2800
2801
2802
2803 echo $ac_n "checking for --enable-compat20""... $ac_c" 1>&6
2804 echo "configure:2805: checking for --enable-compat20" >&5
2805 no_cache=0
2806 # Check whether --enable-compat20 or --disable-compat20 was given.
2807 if test "${enable_compat20+set}" = set; then
2808 enableval="$enable_compat20"
2809
2810 if test "$enableval" = yes; then
2811 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=yes'
2812 else
2813 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2=no'
2814 fi
2815
2816 else
2817
2818 LINE=`grep "WXWIN_COMPATIBILITY_2" ${wx_arg_cache_file}`
2819 if test "x$LINE" != x ; then
2820 eval "DEFAULT_$LINE"
2821 else
2822 no_cache=1
2823 fi
2824
2825 ac_cv_use_compat20='WXWIN_COMPATIBILITY_2='$DEFAULT_WXWIN_COMPATIBILITY_2
2826
2827 fi
2828
2829
2830 eval "$ac_cv_use_compat20"
2831 if test "$no_cache" != 1; then
2832 echo $ac_cv_use_compat20 >> ${wx_arg_cache_file}.tmp
2833 fi
2834
2835 if test "$WXWIN_COMPATIBILITY_2" = yes; then
2836 echo "$ac_t""yes" 1>&6
2837 else
2838 echo "$ac_t""no" 1>&6
2839 fi
2840
2841
2842 echo $ac_n "checking for --enable-compat22""... $ac_c" 1>&6
2843 echo "configure:2844: checking for --enable-compat22" >&5
2844 no_cache=0
2845 # Check whether --enable-compat22 or --disable-compat22 was given.
2846 if test "${enable_compat22+set}" = set; then
2847 enableval="$enable_compat22"
2848
2849 if test "$enableval" = yes; then
2850 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=yes'
2851 else
2852 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2=no'
2853 fi
2854
2855 else
2856
2857 LINE=`grep "WXWIN_COMPATIBILITY_2_2" ${wx_arg_cache_file}`
2858 if test "x$LINE" != x ; then
2859 eval "DEFAULT_$LINE"
2860 else
2861 no_cache=1
2862 fi
2863
2864 ac_cv_use_compat22='WXWIN_COMPATIBILITY_2_2='$DEFAULT_WXWIN_COMPATIBILITY_2_2
2865
2866 fi
2867
2868
2869 eval "$ac_cv_use_compat22"
2870 if test "$no_cache" != 1; then
2871 echo $ac_cv_use_compat22 >> ${wx_arg_cache_file}.tmp
2872 fi
2873
2874 if test "$WXWIN_COMPATIBILITY_2_2" = yes; then
2875 echo "$ac_t""yes" 1>&6
2876 else
2877 echo "$ac_t""no" 1>&6
2878 fi
2879
2880
2881
2882
2883 echo $ac_n "checking for --enable-intl""... $ac_c" 1>&6
2884 echo "configure:2885: checking for --enable-intl" >&5
2885 no_cache=0
2886 # Check whether --enable-intl or --disable-intl was given.
2887 if test "${enable_intl+set}" = set; then
2888 enableval="$enable_intl"
2889
2890 if test "$enableval" = yes; then
2891 ac_cv_use_intl='wxUSE_INTL=yes'
2892 else
2893 ac_cv_use_intl='wxUSE_INTL=no'
2894 fi
2895
2896 else
2897
2898 LINE=`grep "wxUSE_INTL" ${wx_arg_cache_file}`
2899 if test "x$LINE" != x ; then
2900 eval "DEFAULT_$LINE"
2901 else
2902 no_cache=1
2903 fi
2904
2905 ac_cv_use_intl='wxUSE_INTL='$DEFAULT_wxUSE_INTL
2906
2907 fi
2908
2909
2910 eval "$ac_cv_use_intl"
2911 if test "$no_cache" != 1; then
2912 echo $ac_cv_use_intl >> ${wx_arg_cache_file}.tmp
2913 fi
2914
2915 if test "$wxUSE_INTL" = yes; then
2916 echo "$ac_t""yes" 1>&6
2917 else
2918 echo "$ac_t""no" 1>&6
2919 fi
2920
2921
2922 echo $ac_n "checking for --enable-config""... $ac_c" 1>&6
2923 echo "configure:2924: checking for --enable-config" >&5
2924 no_cache=0
2925 # Check whether --enable-config or --disable-config was given.
2926 if test "${enable_config+set}" = set; then
2927 enableval="$enable_config"
2928
2929 if test "$enableval" = yes; then
2930 ac_cv_use_config='wxUSE_CONFIG=yes'
2931 else
2932 ac_cv_use_config='wxUSE_CONFIG=no'
2933 fi
2934
2935 else
2936
2937 LINE=`grep "wxUSE_CONFIG" ${wx_arg_cache_file}`
2938 if test "x$LINE" != x ; then
2939 eval "DEFAULT_$LINE"
2940 else
2941 no_cache=1
2942 fi
2943
2944 ac_cv_use_config='wxUSE_CONFIG='$DEFAULT_wxUSE_CONFIG
2945
2946 fi
2947
2948
2949 eval "$ac_cv_use_config"
2950 if test "$no_cache" != 1; then
2951 echo $ac_cv_use_config >> ${wx_arg_cache_file}.tmp
2952 fi
2953
2954 if test "$wxUSE_CONFIG" = yes; then
2955 echo "$ac_t""yes" 1>&6
2956 else
2957 echo "$ac_t""no" 1>&6
2958 fi
2959
2960
2961
2962 echo $ac_n "checking for --enable-sockets""... $ac_c" 1>&6
2963 echo "configure:2964: checking for --enable-sockets" >&5
2964 no_cache=0
2965 # Check whether --enable-sockets or --disable-sockets was given.
2966 if test "${enable_sockets+set}" = set; then
2967 enableval="$enable_sockets"
2968
2969 if test "$enableval" = yes; then
2970 ac_cv_use_sockets='wxUSE_SOCKETS=yes'
2971 else
2972 ac_cv_use_sockets='wxUSE_SOCKETS=no'
2973 fi
2974
2975 else
2976
2977 LINE=`grep "wxUSE_SOCKETS" ${wx_arg_cache_file}`
2978 if test "x$LINE" != x ; then
2979 eval "DEFAULT_$LINE"
2980 else
2981 no_cache=1
2982 fi
2983
2984 ac_cv_use_sockets='wxUSE_SOCKETS='$DEFAULT_wxUSE_SOCKETS
2985
2986 fi
2987
2988
2989 eval "$ac_cv_use_sockets"
2990 if test "$no_cache" != 1; then
2991 echo $ac_cv_use_sockets >> ${wx_arg_cache_file}.tmp
2992 fi
2993
2994 if test "$wxUSE_SOCKETS" = yes; then
2995 echo "$ac_t""yes" 1>&6
2996 else
2997 echo "$ac_t""no" 1>&6
2998 fi
2999
3000
3001
3002 echo $ac_n "checking for --enable-ipc""... $ac_c" 1>&6
3003 echo "configure:3004: checking for --enable-ipc" >&5
3004 no_cache=0
3005 # Check whether --enable-ipc or --disable-ipc was given.
3006 if test "${enable_ipc+set}" = set; then
3007 enableval="$enable_ipc"
3008
3009 if test "$enableval" = yes; then
3010 ac_cv_use_ipc='wxUSE_IPC=yes'
3011 else
3012 ac_cv_use_ipc='wxUSE_IPC=no'
3013 fi
3014
3015 else
3016
3017 LINE=`grep "wxUSE_IPC" ${wx_arg_cache_file}`
3018 if test "x$LINE" != x ; then
3019 eval "DEFAULT_$LINE"
3020 else
3021 no_cache=1
3022 fi
3023
3024 ac_cv_use_ipc='wxUSE_IPC='$DEFAULT_wxUSE_IPC
3025
3026 fi
3027
3028
3029 eval "$ac_cv_use_ipc"
3030 if test "$no_cache" != 1; then
3031 echo $ac_cv_use_ipc >> ${wx_arg_cache_file}.tmp
3032 fi
3033
3034 if test "$wxUSE_IPC" = yes; then
3035 echo "$ac_t""yes" 1>&6
3036 else
3037 echo "$ac_t""no" 1>&6
3038 fi
3039
3040
3041
3042 echo $ac_n "checking for --enable-cmdline""... $ac_c" 1>&6
3043 echo "configure:3044: checking for --enable-cmdline" >&5
3044 no_cache=0
3045 # Check whether --enable-cmdline or --disable-cmdline was given.
3046 if test "${enable_cmdline+set}" = set; then
3047 enableval="$enable_cmdline"
3048
3049 if test "$enableval" = yes; then
3050 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
3051 else
3052 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
3053 fi
3054
3055 else
3056
3057 LINE=`grep "wxUSE_CMDLINE_PARSER" ${wx_arg_cache_file}`
3058 if test "x$LINE" != x ; then
3059 eval "DEFAULT_$LINE"
3060 else
3061 no_cache=1
3062 fi
3063
3064 ac_cv_use_cmdline='wxUSE_CMDLINE_PARSER='$DEFAULT_wxUSE_CMDLINE_PARSER
3065
3066 fi
3067
3068
3069 eval "$ac_cv_use_cmdline"
3070 if test "$no_cache" != 1; then
3071 echo $ac_cv_use_cmdline >> ${wx_arg_cache_file}.tmp
3072 fi
3073
3074 if test "$wxUSE_CMDLINE_PARSER" = yes; then
3075 echo "$ac_t""yes" 1>&6
3076 else
3077 echo "$ac_t""no" 1>&6
3078 fi
3079
3080
3081 echo $ac_n "checking for --enable-datetime""... $ac_c" 1>&6
3082 echo "configure:3083: checking for --enable-datetime" >&5
3083 no_cache=0
3084 # Check whether --enable-datetime or --disable-datetime was given.
3085 if test "${enable_datetime+set}" = set; then
3086 enableval="$enable_datetime"
3087
3088 if test "$enableval" = yes; then
3089 ac_cv_use_datetime='wxUSE_DATETIME=yes'
3090 else
3091 ac_cv_use_datetime='wxUSE_DATETIME=no'
3092 fi
3093
3094 else
3095
3096 LINE=`grep "wxUSE_DATETIME" ${wx_arg_cache_file}`
3097 if test "x$LINE" != x ; then
3098 eval "DEFAULT_$LINE"
3099 else
3100 no_cache=1
3101 fi
3102
3103 ac_cv_use_datetime='wxUSE_DATETIME='$DEFAULT_wxUSE_DATETIME
3104
3105 fi
3106
3107
3108 eval "$ac_cv_use_datetime"
3109 if test "$no_cache" != 1; then
3110 echo $ac_cv_use_datetime >> ${wx_arg_cache_file}.tmp
3111 fi
3112
3113 if test "$wxUSE_DATETIME" = yes; then
3114 echo "$ac_t""yes" 1>&6
3115 else
3116 echo "$ac_t""no" 1>&6
3117 fi
3118
3119
3120 echo $ac_n "checking for --enable-timedate""... $ac_c" 1>&6
3121 echo "configure:3122: checking for --enable-timedate" >&5
3122 no_cache=0
3123 # Check whether --enable-timedate or --disable-timedate was given.
3124 if test "${enable_timedate+set}" = set; then
3125 enableval="$enable_timedate"
3126
3127 if test "$enableval" = yes; then
3128 ac_cv_use_timedate='wxUSE_TIMEDATE=yes'
3129 else
3130 ac_cv_use_timedate='wxUSE_TIMEDATE=no'
3131 fi
3132
3133 else
3134
3135 LINE=`grep "wxUSE_TIMEDATE" ${wx_arg_cache_file}`
3136 if test "x$LINE" != x ; then
3137 eval "DEFAULT_$LINE"
3138 else
3139 no_cache=1
3140 fi
3141
3142 ac_cv_use_timedate='wxUSE_TIMEDATE='$DEFAULT_wxUSE_TIMEDATE
3143
3144 fi
3145
3146
3147 eval "$ac_cv_use_timedate"
3148 if test "$no_cache" != 1; then
3149 echo $ac_cv_use_timedate >> ${wx_arg_cache_file}.tmp
3150 fi
3151
3152 if test "$wxUSE_TIMEDATE" = yes; then
3153 echo "$ac_t""yes" 1>&6
3154 else
3155 echo "$ac_t""no" 1>&6
3156 fi
3157
3158
3159 echo $ac_n "checking for --enable-stopwatch""... $ac_c" 1>&6
3160 echo "configure:3161: checking for --enable-stopwatch" >&5
3161 no_cache=0
3162 # Check whether --enable-stopwatch or --disable-stopwatch was given.
3163 if test "${enable_stopwatch+set}" = set; then
3164 enableval="$enable_stopwatch"
3165
3166 if test "$enableval" = yes; then
3167 ac_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
3168 else
3169 ac_cv_use_stopwatch='wxUSE_STOPWATCH=no'
3170 fi
3171
3172 else
3173
3174 LINE=`grep "wxUSE_STOPWATCH" ${wx_arg_cache_file}`
3175 if test "x$LINE" != x ; then
3176 eval "DEFAULT_$LINE"
3177 else
3178 no_cache=1
3179 fi
3180
3181 ac_cv_use_stopwatch='wxUSE_STOPWATCH='$DEFAULT_wxUSE_STOPWATCH
3182
3183 fi
3184
3185
3186 eval "$ac_cv_use_stopwatch"
3187 if test "$no_cache" != 1; then
3188 echo $ac_cv_use_stopwatch >> ${wx_arg_cache_file}.tmp
3189 fi
3190
3191 if test "$wxUSE_STOPWATCH" = yes; then
3192 echo "$ac_t""yes" 1>&6
3193 else
3194 echo "$ac_t""no" 1>&6
3195 fi
3196
3197
3198 echo $ac_n "checking for --enable-dialupman""... $ac_c" 1>&6
3199 echo "configure:3200: checking for --enable-dialupman" >&5
3200 no_cache=0
3201 # Check whether --enable-dialupman or --disable-dialupman was given.
3202 if test "${enable_dialupman+set}" = set; then
3203 enableval="$enable_dialupman"
3204
3205 if test "$enableval" = yes; then
3206 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
3207 else
3208 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
3209 fi
3210
3211 else
3212
3213 LINE=`grep "wxUSE_DIALUP_MANAGER" ${wx_arg_cache_file}`
3214 if test "x$LINE" != x ; then
3215 eval "DEFAULT_$LINE"
3216 else
3217 no_cache=1
3218 fi
3219
3220 ac_cv_use_dialupman='wxUSE_DIALUP_MANAGER='$DEFAULT_wxUSE_DIALUP_MANAGER
3221
3222 fi
3223
3224
3225 eval "$ac_cv_use_dialupman"
3226 if test "$no_cache" != 1; then
3227 echo $ac_cv_use_dialupman >> ${wx_arg_cache_file}.tmp
3228 fi
3229
3230 if test "$wxUSE_DIALUP_MANAGER" = yes; then
3231 echo "$ac_t""yes" 1>&6
3232 else
3233 echo "$ac_t""no" 1>&6
3234 fi
3235
3236
3237 echo $ac_n "checking for --enable-apple_ieee""... $ac_c" 1>&6
3238 echo "configure:3239: checking for --enable-apple_ieee" >&5
3239 no_cache=0
3240 # Check whether --enable-apple_ieee or --disable-apple_ieee was given.
3241 if test "${enable_apple_ieee+set}" = set; then
3242 enableval="$enable_apple_ieee"
3243
3244 if test "$enableval" = yes; then
3245 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
3246 else
3247 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
3248 fi
3249
3250 else
3251
3252 LINE=`grep "wxUSE_APPLE_IEEE" ${wx_arg_cache_file}`
3253 if test "x$LINE" != x ; then
3254 eval "DEFAULT_$LINE"
3255 else
3256 no_cache=1
3257 fi
3258
3259 ac_cv_use_apple_ieee='wxUSE_APPLE_IEEE='$DEFAULT_wxUSE_APPLE_IEEE
3260
3261 fi
3262
3263
3264 eval "$ac_cv_use_apple_ieee"
3265 if test "$no_cache" != 1; then
3266 echo $ac_cv_use_apple_ieee >> ${wx_arg_cache_file}.tmp
3267 fi
3268
3269 if test "$wxUSE_APPLE_IEEE" = yes; then
3270 echo "$ac_t""yes" 1>&6
3271 else
3272 echo "$ac_t""no" 1>&6
3273 fi
3274
3275
3276 echo $ac_n "checking for --enable-timer""... $ac_c" 1>&6
3277 echo "configure:3278: checking for --enable-timer" >&5
3278 no_cache=0
3279 # Check whether --enable-timer or --disable-timer was given.
3280 if test "${enable_timer+set}" = set; then
3281 enableval="$enable_timer"
3282
3283 if test "$enableval" = yes; then
3284 ac_cv_use_timer='wxUSE_TIMER=yes'
3285 else
3286 ac_cv_use_timer='wxUSE_TIMER=no'
3287 fi
3288
3289 else
3290
3291 LINE=`grep "wxUSE_TIMER" ${wx_arg_cache_file}`
3292 if test "x$LINE" != x ; then
3293 eval "DEFAULT_$LINE"
3294 else
3295 no_cache=1
3296 fi
3297
3298 ac_cv_use_timer='wxUSE_TIMER='$DEFAULT_wxUSE_TIMER
3299
3300 fi
3301
3302
3303 eval "$ac_cv_use_timer"
3304 if test "$no_cache" != 1; then
3305 echo $ac_cv_use_timer >> ${wx_arg_cache_file}.tmp
3306 fi
3307
3308 if test "$wxUSE_TIMER" = yes; then
3309 echo "$ac_t""yes" 1>&6
3310 else
3311 echo "$ac_t""no" 1>&6
3312 fi
3313
3314
3315 echo $ac_n "checking for --enable-wave""... $ac_c" 1>&6
3316 echo "configure:3317: checking for --enable-wave" >&5
3317 no_cache=0
3318 # Check whether --enable-wave or --disable-wave was given.
3319 if test "${enable_wave+set}" = set; then
3320 enableval="$enable_wave"
3321
3322 if test "$enableval" = yes; then
3323 ac_cv_use_wave='wxUSE_WAVE=yes'
3324 else
3325 ac_cv_use_wave='wxUSE_WAVE=no'
3326 fi
3327
3328 else
3329
3330 LINE=`grep "wxUSE_WAVE" ${wx_arg_cache_file}`
3331 if test "x$LINE" != x ; then
3332 eval "DEFAULT_$LINE"
3333 else
3334 no_cache=1
3335 fi
3336
3337 ac_cv_use_wave='wxUSE_WAVE='$DEFAULT_wxUSE_WAVE
3338
3339 fi
3340
3341
3342 eval "$ac_cv_use_wave"
3343 if test "$no_cache" != 1; then
3344 echo $ac_cv_use_wave >> ${wx_arg_cache_file}.tmp
3345 fi
3346
3347 if test "$wxUSE_WAVE" = yes; then
3348 echo "$ac_t""yes" 1>&6
3349 else
3350 echo "$ac_t""no" 1>&6
3351 fi
3352
3353
3354 echo $ac_n "checking for --enable-fraction""... $ac_c" 1>&6
3355 echo "configure:3356: checking for --enable-fraction" >&5
3356 no_cache=0
3357 # Check whether --enable-fraction or --disable-fraction was given.
3358 if test "${enable_fraction+set}" = set; then
3359 enableval="$enable_fraction"
3360
3361 if test "$enableval" = yes; then
3362 ac_cv_use_fraction='wxUSE_FRACTION=yes'
3363 else
3364 ac_cv_use_fraction='wxUSE_FRACTION=no'
3365 fi
3366
3367 else
3368
3369 LINE=`grep "wxUSE_FRACTION" ${wx_arg_cache_file}`
3370 if test "x$LINE" != x ; then
3371 eval "DEFAULT_$LINE"
3372 else
3373 no_cache=1
3374 fi
3375
3376 ac_cv_use_fraction='wxUSE_FRACTION='$DEFAULT_wxUSE_FRACTION
3377
3378 fi
3379
3380
3381 eval "$ac_cv_use_fraction"
3382 if test "$no_cache" != 1; then
3383 echo $ac_cv_use_fraction >> ${wx_arg_cache_file}.tmp
3384 fi
3385
3386 if test "$wxUSE_FRACTION" = yes; then
3387 echo "$ac_t""yes" 1>&6
3388 else
3389 echo "$ac_t""no" 1>&6
3390 fi
3391
3392
3393 echo $ac_n "checking for --enable-dynlib""... $ac_c" 1>&6
3394 echo "configure:3395: checking for --enable-dynlib" >&5
3395 no_cache=0
3396 # Check whether --enable-dynlib or --disable-dynlib was given.
3397 if test "${enable_dynlib+set}" = set; then
3398 enableval="$enable_dynlib"
3399
3400 if test "$enableval" = yes; then
3401 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
3402 else
3403 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
3404 fi
3405
3406 else
3407
3408 LINE=`grep "wxUSE_DYNLIB_CLASS" ${wx_arg_cache_file}`
3409 if test "x$LINE" != x ; then
3410 eval "DEFAULT_$LINE"
3411 else
3412 no_cache=1
3413 fi
3414
3415 ac_cv_use_dynlib='wxUSE_DYNLIB_CLASS='$DEFAULT_wxUSE_DYNLIB_CLASS
3416
3417 fi
3418
3419
3420 eval "$ac_cv_use_dynlib"
3421 if test "$no_cache" != 1; then
3422 echo $ac_cv_use_dynlib >> ${wx_arg_cache_file}.tmp
3423 fi
3424
3425 if test "$wxUSE_DYNLIB_CLASS" = yes; then
3426 echo "$ac_t""yes" 1>&6
3427 else
3428 echo "$ac_t""no" 1>&6
3429 fi
3430
3431
3432 echo $ac_n "checking for --enable-longlong""... $ac_c" 1>&6
3433 echo "configure:3434: checking for --enable-longlong" >&5
3434 no_cache=0
3435 # Check whether --enable-longlong or --disable-longlong was given.
3436 if test "${enable_longlong+set}" = set; then
3437 enableval="$enable_longlong"
3438
3439 if test "$enableval" = yes; then
3440 ac_cv_use_longlong='wxUSE_LONGLONG=yes'
3441 else
3442 ac_cv_use_longlong='wxUSE_LONGLONG=no'
3443 fi
3444
3445 else
3446
3447 LINE=`grep "wxUSE_LONGLONG" ${wx_arg_cache_file}`
3448 if test "x$LINE" != x ; then
3449 eval "DEFAULT_$LINE"
3450 else
3451 no_cache=1
3452 fi
3453
3454 ac_cv_use_longlong='wxUSE_LONGLONG='$DEFAULT_wxUSE_LONGLONG
3455
3456 fi
3457
3458
3459 eval "$ac_cv_use_longlong"
3460 if test "$no_cache" != 1; then
3461 echo $ac_cv_use_longlong >> ${wx_arg_cache_file}.tmp
3462 fi
3463
3464 if test "$wxUSE_LONGLONG" = yes; then
3465 echo "$ac_t""yes" 1>&6
3466 else
3467 echo "$ac_t""no" 1>&6
3468 fi
3469
3470
3471 echo $ac_n "checking for --enable-geometry""... $ac_c" 1>&6
3472 echo "configure:3473: checking for --enable-geometry" >&5
3473 no_cache=0
3474 # Check whether --enable-geometry or --disable-geometry was given.
3475 if test "${enable_geometry+set}" = set; then
3476 enableval="$enable_geometry"
3477
3478 if test "$enableval" = yes; then
3479 ac_cv_use_geometry='wxUSE_GEOMETRY=yes'
3480 else
3481 ac_cv_use_geometry='wxUSE_GEOMETRY=no'
3482 fi
3483
3484 else
3485
3486 LINE=`grep "wxUSE_GEOMETRY" ${wx_arg_cache_file}`
3487 if test "x$LINE" != x ; then
3488 eval "DEFAULT_$LINE"
3489 else
3490 no_cache=1
3491 fi
3492
3493 ac_cv_use_geometry='wxUSE_GEOMETRY='$DEFAULT_wxUSE_GEOMETRY
3494
3495 fi
3496
3497
3498 eval "$ac_cv_use_geometry"
3499 if test "$no_cache" != 1; then
3500 echo $ac_cv_use_geometry >> ${wx_arg_cache_file}.tmp
3501 fi
3502
3503 if test "$wxUSE_GEOMETRY" = yes; then
3504 echo "$ac_t""yes" 1>&6
3505 else
3506 echo "$ac_t""no" 1>&6
3507 fi
3508
3509
3510 echo $ac_n "checking for --enable-log""... $ac_c" 1>&6
3511 echo "configure:3512: checking for --enable-log" >&5
3512 no_cache=0
3513 # Check whether --enable-log or --disable-log was given.
3514 if test "${enable_log+set}" = set; then
3515 enableval="$enable_log"
3516
3517 if test "$enableval" = yes; then
3518 ac_cv_use_log='wxUSE_LOG=yes'
3519 else
3520 ac_cv_use_log='wxUSE_LOG=no'
3521 fi
3522
3523 else
3524
3525 LINE=`grep "wxUSE_LOG" ${wx_arg_cache_file}`
3526 if test "x$LINE" != x ; then
3527 eval "DEFAULT_$LINE"
3528 else
3529 no_cache=1
3530 fi
3531
3532 ac_cv_use_log='wxUSE_LOG='$DEFAULT_wxUSE_LOG
3533
3534 fi
3535
3536
3537 eval "$ac_cv_use_log"
3538 if test "$no_cache" != 1; then
3539 echo $ac_cv_use_log >> ${wx_arg_cache_file}.tmp
3540 fi
3541
3542 if test "$wxUSE_LOG" = yes; then
3543 echo "$ac_t""yes" 1>&6
3544 else
3545 echo "$ac_t""no" 1>&6
3546 fi
3547
3548
3549 echo $ac_n "checking for --enable-streams""... $ac_c" 1>&6
3550 echo "configure:3551: checking for --enable-streams" >&5
3551 no_cache=0
3552 # Check whether --enable-streams or --disable-streams was given.
3553 if test "${enable_streams+set}" = set; then
3554 enableval="$enable_streams"
3555
3556 if test "$enableval" = yes; then
3557 ac_cv_use_streams='wxUSE_STREAMS=yes'
3558 else
3559 ac_cv_use_streams='wxUSE_STREAMS=no'
3560 fi
3561
3562 else
3563
3564 LINE=`grep "wxUSE_STREAMS" ${wx_arg_cache_file}`
3565 if test "x$LINE" != x ; then
3566 eval "DEFAULT_$LINE"
3567 else
3568 no_cache=1
3569 fi
3570
3571 ac_cv_use_streams='wxUSE_STREAMS='$DEFAULT_wxUSE_STREAMS
3572
3573 fi
3574
3575
3576 eval "$ac_cv_use_streams"
3577 if test "$no_cache" != 1; then
3578 echo $ac_cv_use_streams >> ${wx_arg_cache_file}.tmp
3579 fi
3580
3581 if test "$wxUSE_STREAMS" = yes; then
3582 echo "$ac_t""yes" 1>&6
3583 else
3584 echo "$ac_t""no" 1>&6
3585 fi
3586
3587
3588 echo $ac_n "checking for --enable-file""... $ac_c" 1>&6
3589 echo "configure:3590: checking for --enable-file" >&5
3590 no_cache=0
3591 # Check whether --enable-file or --disable-file was given.
3592 if test "${enable_file+set}" = set; then
3593 enableval="$enable_file"
3594
3595 if test "$enableval" = yes; then
3596 ac_cv_use_file='wxUSE_FILE=yes'
3597 else
3598 ac_cv_use_file='wxUSE_FILE=no'
3599 fi
3600
3601 else
3602
3603 LINE=`grep "wxUSE_FILE" ${wx_arg_cache_file}`
3604 if test "x$LINE" != x ; then
3605 eval "DEFAULT_$LINE"
3606 else
3607 no_cache=1
3608 fi
3609
3610 ac_cv_use_file='wxUSE_FILE='$DEFAULT_wxUSE_FILE
3611
3612 fi
3613
3614
3615 eval "$ac_cv_use_file"
3616 if test "$no_cache" != 1; then
3617 echo $ac_cv_use_file >> ${wx_arg_cache_file}.tmp
3618 fi
3619
3620 if test "$wxUSE_FILE" = yes; then
3621 echo "$ac_t""yes" 1>&6
3622 else
3623 echo "$ac_t""no" 1>&6
3624 fi
3625
3626
3627 echo $ac_n "checking for --enable-ffile""... $ac_c" 1>&6
3628 echo "configure:3629: checking for --enable-ffile" >&5
3629 no_cache=0
3630 # Check whether --enable-ffile or --disable-ffile was given.
3631 if test "${enable_ffile+set}" = set; then
3632 enableval="$enable_ffile"
3633
3634 if test "$enableval" = yes; then
3635 ac_cv_use_ffile='wxUSE_FFILE=yes'
3636 else
3637 ac_cv_use_ffile='wxUSE_FFILE=no'
3638 fi
3639
3640 else
3641
3642 LINE=`grep "wxUSE_FFILE" ${wx_arg_cache_file}`
3643 if test "x$LINE" != x ; then
3644 eval "DEFAULT_$LINE"
3645 else
3646 no_cache=1
3647 fi
3648
3649 ac_cv_use_ffile='wxUSE_FFILE='$DEFAULT_wxUSE_FFILE
3650
3651 fi
3652
3653
3654 eval "$ac_cv_use_ffile"
3655 if test "$no_cache" != 1; then
3656 echo $ac_cv_use_ffile >> ${wx_arg_cache_file}.tmp
3657 fi
3658
3659 if test "$wxUSE_FFILE" = yes; then
3660 echo "$ac_t""yes" 1>&6
3661 else
3662 echo "$ac_t""no" 1>&6
3663 fi
3664
3665
3666 echo $ac_n "checking for --enable-textfile""... $ac_c" 1>&6
3667 echo "configure:3668: checking for --enable-textfile" >&5
3668 no_cache=0
3669 # Check whether --enable-textfile or --disable-textfile was given.
3670 if test "${enable_textfile+set}" = set; then
3671 enableval="$enable_textfile"
3672
3673 if test "$enableval" = yes; then
3674 ac_cv_use_textfile='wxUSE_TEXTFILE=yes'
3675 else
3676 ac_cv_use_textfile='wxUSE_TEXTFILE=no'
3677 fi
3678
3679 else
3680
3681 LINE=`grep "wxUSE_TEXTFILE" ${wx_arg_cache_file}`
3682 if test "x$LINE" != x ; then
3683 eval "DEFAULT_$LINE"
3684 else
3685 no_cache=1
3686 fi
3687
3688 ac_cv_use_textfile='wxUSE_TEXTFILE='$DEFAULT_wxUSE_TEXTFILE
3689
3690 fi
3691
3692
3693 eval "$ac_cv_use_textfile"
3694 if test "$no_cache" != 1; then
3695 echo $ac_cv_use_textfile >> ${wx_arg_cache_file}.tmp
3696 fi
3697
3698 if test "$wxUSE_TEXTFILE" = yes; then
3699 echo "$ac_t""yes" 1>&6
3700 else
3701 echo "$ac_t""no" 1>&6
3702 fi
3703
3704
3705 echo $ac_n "checking for --enable-fontmap""... $ac_c" 1>&6
3706 echo "configure:3707: checking for --enable-fontmap" >&5
3707 no_cache=0
3708 # Check whether --enable-fontmap or --disable-fontmap was given.
3709 if test "${enable_fontmap+set}" = set; then
3710 enableval="$enable_fontmap"
3711
3712 if test "$enableval" = yes; then
3713 ac_cv_use_fontmap='wxUSE_FONTMAP=yes'
3714 else
3715 ac_cv_use_fontmap='wxUSE_FONTMAP=no'
3716 fi
3717
3718 else
3719
3720 LINE=`grep "wxUSE_FONTMAP" ${wx_arg_cache_file}`
3721 if test "x$LINE" != x ; then
3722 eval "DEFAULT_$LINE"
3723 else
3724 no_cache=1
3725 fi
3726
3727 ac_cv_use_fontmap='wxUSE_FONTMAP='$DEFAULT_wxUSE_FONTMAP
3728
3729 fi
3730
3731
3732 eval "$ac_cv_use_fontmap"
3733 if test "$no_cache" != 1; then
3734 echo $ac_cv_use_fontmap >> ${wx_arg_cache_file}.tmp
3735 fi
3736
3737 if test "$wxUSE_FONTMAP" = yes; then
3738 echo "$ac_t""yes" 1>&6
3739 else
3740 echo "$ac_t""no" 1>&6
3741 fi
3742
3743
3744 echo $ac_n "checking for --enable-unicode""... $ac_c" 1>&6
3745 echo "configure:3746: checking for --enable-unicode" >&5
3746 no_cache=0
3747 # Check whether --enable-unicode or --disable-unicode was given.
3748 if test "${enable_unicode+set}" = set; then
3749 enableval="$enable_unicode"
3750
3751 if test "$enableval" = yes; then
3752 ac_cv_use_unicode='wxUSE_UNICODE=yes'
3753 else
3754 ac_cv_use_unicode='wxUSE_UNICODE=no'
3755 fi
3756
3757 else
3758
3759 LINE=`grep "wxUSE_UNICODE" ${wx_arg_cache_file}`
3760 if test "x$LINE" != x ; then
3761 eval "DEFAULT_$LINE"
3762 else
3763 no_cache=1
3764 fi
3765
3766 ac_cv_use_unicode='wxUSE_UNICODE='$DEFAULT_wxUSE_UNICODE
3767
3768 fi
3769
3770
3771 eval "$ac_cv_use_unicode"
3772 if test "$no_cache" != 1; then
3773 echo $ac_cv_use_unicode >> ${wx_arg_cache_file}.tmp
3774 fi
3775
3776 if test "$wxUSE_UNICODE" = yes; then
3777 echo "$ac_t""yes" 1>&6
3778 else
3779 echo "$ac_t""no" 1>&6
3780 fi
3781
3782
3783 echo $ac_n "checking for --enable-wcsrtombs""... $ac_c" 1>&6
3784 echo "configure:3785: checking for --enable-wcsrtombs" >&5
3785 no_cache=0
3786 # Check whether --enable-wcsrtombs or --disable-wcsrtombs was given.
3787 if test "${enable_wcsrtombs+set}" = set; then
3788 enableval="$enable_wcsrtombs"
3789
3790 if test "$enableval" = yes; then
3791 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=yes'
3792 else
3793 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS=no'
3794 fi
3795
3796 else
3797
3798 LINE=`grep "wxUSE_WCSRTOMBS" ${wx_arg_cache_file}`
3799 if test "x$LINE" != x ; then
3800 eval "DEFAULT_$LINE"
3801 else
3802 no_cache=1
3803 fi
3804
3805 ac_cv_use_wcsrtombs='wxUSE_WCSRTOMBS='$DEFAULT_wxUSE_WCSRTOMBS
3806
3807 fi
3808
3809
3810 eval "$ac_cv_use_wcsrtombs"
3811 if test "$no_cache" != 1; then
3812 echo $ac_cv_use_wcsrtombs >> ${wx_arg_cache_file}.tmp
3813 fi
3814
3815 if test "$wxUSE_WCSRTOMBS" = yes; then
3816 echo "$ac_t""yes" 1>&6
3817 else
3818 echo "$ac_t""no" 1>&6
3819 fi
3820
3821
3822 echo $ac_n "checking for --enable-wxprintfv""... $ac_c" 1>&6
3823 echo "configure:3824: checking for --enable-wxprintfv" >&5
3824 no_cache=0
3825 # Check whether --enable-wxprintfv or --disable-wxprintfv was given.
3826 if test "${enable_wxprintfv+set}" = set; then
3827 enableval="$enable_wxprintfv"
3828
3829 if test "$enableval" = yes; then
3830 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=yes'
3831 else
3832 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF=no'
3833 fi
3834
3835 else
3836
3837 LINE=`grep "wxUSE_EXPERIMENTAL_PRINTF" ${wx_arg_cache_file}`
3838 if test "x$LINE" != x ; then
3839 eval "DEFAULT_$LINE"
3840 else
3841 no_cache=1
3842 fi
3843
3844 ac_cv_use_wxprintfv='wxUSE_EXPERIMENTAL_PRINTF='$DEFAULT_wxUSE_EXPERIMENTAL_PRINTF
3845
3846 fi
3847
3848
3849 eval "$ac_cv_use_wxprintfv"
3850 if test "$no_cache" != 1; then
3851 echo $ac_cv_use_wxprintfv >> ${wx_arg_cache_file}.tmp
3852 fi
3853
3854 if test "$wxUSE_EXPERIMENTAL_PRINTF" = yes; then
3855 echo "$ac_t""yes" 1>&6
3856 else
3857 echo "$ac_t""no" 1>&6
3858 fi
3859
3860
3861 echo $ac_n "checking for --enable-std_iostreams""... $ac_c" 1>&6
3862 echo "configure:3863: checking for --enable-std_iostreams" >&5
3863 no_cache=0
3864 # Check whether --enable-std_iostreams or --disable-std_iostreams was given.
3865 if test "${enable_std_iostreams+set}" = set; then
3866 enableval="$enable_std_iostreams"
3867
3868 if test "$enableval" = yes; then
3869 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
3870 else
3871 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
3872 fi
3873
3874 else
3875
3876 LINE=`grep "wxUSE_STD_IOSTREAM" ${wx_arg_cache_file}`
3877 if test "x$LINE" != x ; then
3878 eval "DEFAULT_$LINE"
3879 else
3880 no_cache=1
3881 fi
3882
3883 ac_cv_use_std_iostreams='wxUSE_STD_IOSTREAM='$DEFAULT_wxUSE_STD_IOSTREAM
3884
3885 fi
3886
3887
3888 eval "$ac_cv_use_std_iostreams"
3889 if test "$no_cache" != 1; then
3890 echo $ac_cv_use_std_iostreams >> ${wx_arg_cache_file}.tmp
3891 fi
3892
3893 if test "$wxUSE_STD_IOSTREAM" = yes; then
3894 echo "$ac_t""yes" 1>&6
3895 else
3896 echo "$ac_t""no" 1>&6
3897 fi
3898
3899
3900 echo $ac_n "checking for --enable-filesystem""... $ac_c" 1>&6
3901 echo "configure:3902: checking for --enable-filesystem" >&5
3902 no_cache=0
3903 # Check whether --enable-filesystem or --disable-filesystem was given.
3904 if test "${enable_filesystem+set}" = set; then
3905 enableval="$enable_filesystem"
3906
3907 if test "$enableval" = yes; then
3908 ac_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
3909 else
3910 ac_cv_use_filesystem='wxUSE_FILESYSTEM=no'
3911 fi
3912
3913 else
3914
3915 LINE=`grep "wxUSE_FILESYSTEM" ${wx_arg_cache_file}`
3916 if test "x$LINE" != x ; then
3917 eval "DEFAULT_$LINE"
3918 else
3919 no_cache=1
3920 fi
3921
3922 ac_cv_use_filesystem='wxUSE_FILESYSTEM='$DEFAULT_wxUSE_FILESYSTEM
3923
3924 fi
3925
3926
3927 eval "$ac_cv_use_filesystem"
3928 if test "$no_cache" != 1; then
3929 echo $ac_cv_use_filesystem >> ${wx_arg_cache_file}.tmp
3930 fi
3931
3932 if test "$wxUSE_FILESYSTEM" = yes; then
3933 echo "$ac_t""yes" 1>&6
3934 else
3935 echo "$ac_t""no" 1>&6
3936 fi
3937
3938
3939 echo $ac_n "checking for --enable-fs_inet""... $ac_c" 1>&6
3940 echo "configure:3941: checking for --enable-fs_inet" >&5
3941 no_cache=0
3942 # Check whether --enable-fs_inet or --disable-fs_inet was given.
3943 if test "${enable_fs_inet+set}" = set; then
3944 enableval="$enable_fs_inet"
3945
3946 if test "$enableval" = yes; then
3947 ac_cv_use_fs_inet='wxUSE_FS_INET=yes'
3948 else
3949 ac_cv_use_fs_inet='wxUSE_FS_INET=no'
3950 fi
3951
3952 else
3953
3954 LINE=`grep "wxUSE_FS_INET" ${wx_arg_cache_file}`
3955 if test "x$LINE" != x ; then
3956 eval "DEFAULT_$LINE"
3957 else
3958 no_cache=1
3959 fi
3960
3961 ac_cv_use_fs_inet='wxUSE_FS_INET='$DEFAULT_wxUSE_FS_INET
3962
3963 fi
3964
3965
3966 eval "$ac_cv_use_fs_inet"
3967 if test "$no_cache" != 1; then
3968 echo $ac_cv_use_fs_inet >> ${wx_arg_cache_file}.tmp
3969 fi
3970
3971 if test "$wxUSE_FS_INET" = yes; then
3972 echo "$ac_t""yes" 1>&6
3973 else
3974 echo "$ac_t""no" 1>&6
3975 fi
3976
3977
3978 echo $ac_n "checking for --enable-fs_zip""... $ac_c" 1>&6
3979 echo "configure:3980: checking for --enable-fs_zip" >&5
3980 no_cache=0
3981 # Check whether --enable-fs_zip or --disable-fs_zip was given.
3982 if test "${enable_fs_zip+set}" = set; then
3983 enableval="$enable_fs_zip"
3984
3985 if test "$enableval" = yes; then
3986 ac_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
3987 else
3988 ac_cv_use_fs_zip='wxUSE_FS_ZIP=no'
3989 fi
3990
3991 else
3992
3993 LINE=`grep "wxUSE_FS_ZIP" ${wx_arg_cache_file}`
3994 if test "x$LINE" != x ; then
3995 eval "DEFAULT_$LINE"
3996 else
3997 no_cache=1
3998 fi
3999
4000 ac_cv_use_fs_zip='wxUSE_FS_ZIP='$DEFAULT_wxUSE_FS_ZIP
4001
4002 fi
4003
4004
4005 eval "$ac_cv_use_fs_zip"
4006 if test "$no_cache" != 1; then
4007 echo $ac_cv_use_fs_zip >> ${wx_arg_cache_file}.tmp
4008 fi
4009
4010 if test "$wxUSE_FS_ZIP" = yes; then
4011 echo "$ac_t""yes" 1>&6
4012 else
4013 echo "$ac_t""no" 1>&6
4014 fi
4015
4016
4017 echo $ac_n "checking for --enable-zipstream""... $ac_c" 1>&6
4018 echo "configure:4019: checking for --enable-zipstream" >&5
4019 no_cache=0
4020 # Check whether --enable-zipstream or --disable-zipstream was given.
4021 if test "${enable_zipstream+set}" = set; then
4022 enableval="$enable_zipstream"
4023
4024 if test "$enableval" = yes; then
4025 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
4026 else
4027 ac_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
4028 fi
4029
4030 else
4031
4032 LINE=`grep "wxUSE_ZIPSTREAM" ${wx_arg_cache_file}`
4033 if test "x$LINE" != x ; then
4034 eval "DEFAULT_$LINE"
4035 else
4036 no_cache=1
4037 fi
4038
4039 ac_cv_use_zipstream='wxUSE_ZIPSTREAM='$DEFAULT_wxUSE_ZIPSTREAM
4040
4041 fi
4042
4043
4044 eval "$ac_cv_use_zipstream"
4045 if test "$no_cache" != 1; then
4046 echo $ac_cv_use_zipstream >> ${wx_arg_cache_file}.tmp
4047 fi
4048
4049 if test "$wxUSE_ZIPSTREAM" = yes; then
4050 echo "$ac_t""yes" 1>&6
4051 else
4052 echo "$ac_t""no" 1>&6
4053 fi
4054
4055
4056
4057 echo $ac_n "checking for --enable-catch_segvs""... $ac_c" 1>&6
4058 echo "configure:4059: checking for --enable-catch_segvs" >&5
4059 no_cache=0
4060 # Check whether --enable-catch_segvs or --disable-catch_segvs was given.
4061 if test "${enable_catch_segvs+set}" = set; then
4062 enableval="$enable_catch_segvs"
4063
4064 if test "$enableval" = yes; then
4065 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
4066 else
4067 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
4068 fi
4069
4070 else
4071
4072 LINE=`grep "wxUSE_ON_FATAL_EXCEPTION" ${wx_arg_cache_file}`
4073 if test "x$LINE" != x ; then
4074 eval "DEFAULT_$LINE"
4075 else
4076 no_cache=1
4077 fi
4078
4079 ac_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION='$DEFAULT_wxUSE_ON_FATAL_EXCEPTION
4080
4081 fi
4082
4083
4084 eval "$ac_cv_use_catch_segvs"
4085 if test "$no_cache" != 1; then
4086 echo $ac_cv_use_catch_segvs >> ${wx_arg_cache_file}.tmp
4087 fi
4088
4089 if test "$wxUSE_ON_FATAL_EXCEPTION" = yes; then
4090 echo "$ac_t""yes" 1>&6
4091 else
4092 echo "$ac_t""no" 1>&6
4093 fi
4094
4095
4096 echo $ac_n "checking for --enable-snglinst""... $ac_c" 1>&6
4097 echo "configure:4098: checking for --enable-snglinst" >&5
4098 no_cache=0
4099 # Check whether --enable-snglinst or --disable-snglinst was given.
4100 if test "${enable_snglinst+set}" = set; then
4101 enableval="$enable_snglinst"
4102
4103 if test "$enableval" = yes; then
4104 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
4105 else
4106 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
4107 fi
4108
4109 else
4110
4111 LINE=`grep "wxUSE_SNGLINST_CHECKER" ${wx_arg_cache_file}`
4112 if test "x$LINE" != x ; then
4113 eval "DEFAULT_$LINE"
4114 else
4115 no_cache=1
4116 fi
4117
4118 ac_cv_use_snglinst='wxUSE_SNGLINST_CHECKER='$DEFAULT_wxUSE_SNGLINST_CHECKER
4119
4120 fi
4121
4122
4123 eval "$ac_cv_use_snglinst"
4124 if test "$no_cache" != 1; then
4125 echo $ac_cv_use_snglinst >> ${wx_arg_cache_file}.tmp
4126 fi
4127
4128 if test "$wxUSE_SNGLINST_CHECKER" = yes; then
4129 echo "$ac_t""yes" 1>&6
4130 else
4131 echo "$ac_t""no" 1>&6
4132 fi
4133
4134
4135
4136 echo $ac_n "checking for --enable-mimetype""... $ac_c" 1>&6
4137 echo "configure:4138: checking for --enable-mimetype" >&5
4138 no_cache=0
4139 # Check whether --enable-mimetype or --disable-mimetype was given.
4140 if test "${enable_mimetype+set}" = set; then
4141 enableval="$enable_mimetype"
4142
4143 if test "$enableval" = yes; then
4144 ac_cv_use_mimetype='wxUSE_MIMETYPE=yes'
4145 else
4146 ac_cv_use_mimetype='wxUSE_MIMETYPE=no'
4147 fi
4148
4149 else
4150
4151 LINE=`grep "wxUSE_MIMETYPE" ${wx_arg_cache_file}`
4152 if test "x$LINE" != x ; then
4153 eval "DEFAULT_$LINE"
4154 else
4155 no_cache=1
4156 fi
4157
4158 ac_cv_use_mimetype='wxUSE_MIMETYPE='$DEFAULT_wxUSE_MIMETYPE
4159
4160 fi
4161
4162
4163 eval "$ac_cv_use_mimetype"
4164 if test "$no_cache" != 1; then
4165 echo $ac_cv_use_mimetype >> ${wx_arg_cache_file}.tmp
4166 fi
4167
4168 if test "$wxUSE_MIMETYPE" = yes; then
4169 echo "$ac_t""yes" 1>&6
4170 else
4171 echo "$ac_t""no" 1>&6
4172 fi
4173
4174
4175 echo $ac_n "checking for --enable-system_options""... $ac_c" 1>&6
4176 echo "configure:4177: checking for --enable-system_options" >&5
4177 no_cache=0
4178 # Check whether --enable-system_options or --disable-system_options was given.
4179 if test "${enable_system_options+set}" = set; then
4180 enableval="$enable_system_options"
4181
4182 if test "$enableval" = yes; then
4183 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
4184 else
4185 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
4186 fi
4187
4188 else
4189
4190 LINE=`grep "wxUSE_SYSTEM_OPTIONS" ${wx_arg_cache_file}`
4191 if test "x$LINE" != x ; then
4192 eval "DEFAULT_$LINE"
4193 else
4194 no_cache=1
4195 fi
4196
4197 ac_cv_use_system_options='wxUSE_SYSTEM_OPTIONS='$DEFAULT_wxUSE_SYSTEM_OPTIONS
4198
4199 fi
4200
4201
4202 eval "$ac_cv_use_system_options"
4203 if test "$no_cache" != 1; then
4204 echo $ac_cv_use_system_options >> ${wx_arg_cache_file}.tmp
4205 fi
4206
4207 if test "$wxUSE_SYSTEM_OPTIONS" = yes; then
4208 echo "$ac_t""yes" 1>&6
4209 else
4210 echo "$ac_t""no" 1>&6
4211 fi
4212
4213
4214
4215
4216 echo $ac_n "checking for --enable-threads""... $ac_c" 1>&6
4217 echo "configure:4218: checking for --enable-threads" >&5
4218 no_cache=0
4219 # Check whether --enable-threads or --disable-threads was given.
4220 if test "${enable_threads+set}" = set; then
4221 enableval="$enable_threads"
4222
4223 if test "$enableval" = yes; then
4224 ac_cv_use_threads='wxUSE_THREADS=yes'
4225 else
4226 ac_cv_use_threads='wxUSE_THREADS=no'
4227 fi
4228
4229 else
4230
4231 LINE=`grep "wxUSE_THREADS" ${wx_arg_cache_file}`
4232 if test "x$LINE" != x ; then
4233 eval "DEFAULT_$LINE"
4234 else
4235 no_cache=1
4236 fi
4237
4238 ac_cv_use_threads='wxUSE_THREADS='$DEFAULT_wxUSE_THREADS
4239
4240 fi
4241
4242
4243 eval "$ac_cv_use_threads"
4244 if test "$no_cache" != 1; then
4245 echo $ac_cv_use_threads >> ${wx_arg_cache_file}.tmp
4246 fi
4247
4248 if test "$wxUSE_THREADS" = yes; then
4249 echo "$ac_t""yes" 1>&6
4250 else
4251 echo "$ac_t""no" 1>&6
4252 fi
4253
4254
4255 echo $ac_n "checking for --enable-serial""... $ac_c" 1>&6
4256 echo "configure:4257: checking for --enable-serial" >&5
4257 no_cache=0
4258 # Check whether --enable-serial or --disable-serial was given.
4259 if test "${enable_serial+set}" = set; then
4260 enableval="$enable_serial"
4261
4262 if test "$enableval" = yes; then
4263 ac_cv_use_serial='wxUSE_SERIAL=yes'
4264 else
4265 ac_cv_use_serial='wxUSE_SERIAL=no'
4266 fi
4267
4268 else
4269
4270 LINE=`grep "wxUSE_SERIAL" ${wx_arg_cache_file}`
4271 if test "x$LINE" != x ; then
4272 eval "DEFAULT_$LINE"
4273 else
4274 no_cache=1
4275 fi
4276
4277 ac_cv_use_serial='wxUSE_SERIAL='$DEFAULT_wxUSE_SERIAL
4278
4279 fi
4280
4281
4282 eval "$ac_cv_use_serial"
4283 if test "$no_cache" != 1; then
4284 echo $ac_cv_use_serial >> ${wx_arg_cache_file}.tmp
4285 fi
4286
4287 if test "$wxUSE_SERIAL" = yes; then
4288 echo "$ac_t""yes" 1>&6
4289 else
4290 echo "$ac_t""no" 1>&6
4291 fi
4292
4293
4294 if test "$wxUSE_GUI" = "yes"; then
4295
4296
4297
4298 echo $ac_n "checking for --enable-docview""... $ac_c" 1>&6
4299 echo "configure:4300: checking for --enable-docview" >&5
4300 no_cache=0
4301 # Check whether --enable-docview or --disable-docview was given.
4302 if test "${enable_docview+set}" = set; then
4303 enableval="$enable_docview"
4304
4305 if test "$enableval" = yes; then
4306 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
4307 else
4308 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
4309 fi
4310
4311 else
4312
4313 LINE=`grep "wxUSE_DOC_VIEW_ARCHITECTURE" ${wx_arg_cache_file}`
4314 if test "x$LINE" != x ; then
4315 eval "DEFAULT_$LINE"
4316 else
4317 no_cache=1
4318 fi
4319
4320 ac_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE='$DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE
4321
4322 fi
4323
4324
4325 eval "$ac_cv_use_docview"
4326 if test "$no_cache" != 1; then
4327 echo $ac_cv_use_docview >> ${wx_arg_cache_file}.tmp
4328 fi
4329
4330 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = yes; then
4331 echo "$ac_t""yes" 1>&6
4332 else
4333 echo "$ac_t""no" 1>&6
4334 fi
4335
4336
4337 echo $ac_n "checking for --enable-help""... $ac_c" 1>&6
4338 echo "configure:4339: checking for --enable-help" >&5
4339 no_cache=0
4340 # Check whether --enable-help or --disable-help was given.
4341 if test "${enable_help+set}" = set; then
4342 enableval="$enable_help"
4343
4344 if test "$enableval" = yes; then
4345 ac_cv_use_help='wxUSE_HELP=yes'
4346 else
4347 ac_cv_use_help='wxUSE_HELP=no'
4348 fi
4349
4350 else
4351
4352 LINE=`grep "wxUSE_HELP" ${wx_arg_cache_file}`
4353 if test "x$LINE" != x ; then
4354 eval "DEFAULT_$LINE"
4355 else
4356 no_cache=1
4357 fi
4358
4359 ac_cv_use_help='wxUSE_HELP='$DEFAULT_wxUSE_HELP
4360
4361 fi
4362
4363
4364 eval "$ac_cv_use_help"
4365 if test "$no_cache" != 1; then
4366 echo $ac_cv_use_help >> ${wx_arg_cache_file}.tmp
4367 fi
4368
4369 if test "$wxUSE_HELP" = yes; then
4370 echo "$ac_t""yes" 1>&6
4371 else
4372 echo "$ac_t""no" 1>&6
4373 fi
4374
4375
4376 echo $ac_n "checking for --enable-mshtmlhelp""... $ac_c" 1>&6
4377 echo "configure:4378: checking for --enable-mshtmlhelp" >&5
4378 no_cache=0
4379 # Check whether --enable-mshtmlhelp or --disable-mshtmlhelp was given.
4380 if test "${enable_mshtmlhelp+set}" = set; then
4381 enableval="$enable_mshtmlhelp"
4382
4383 if test "$enableval" = yes; then
4384 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
4385 else
4386 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
4387 fi
4388
4389 else
4390
4391 LINE=`grep "wxUSE_MS_HTML_HELP" ${wx_arg_cache_file}`
4392 if test "x$LINE" != x ; then
4393 eval "DEFAULT_$LINE"
4394 else
4395 no_cache=1
4396 fi
4397
4398 ac_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP='$DEFAULT_wxUSE_MS_HTML_HELP
4399
4400 fi
4401
4402
4403 eval "$ac_cv_use_mshtmlhelp"
4404 if test "$no_cache" != 1; then
4405 echo $ac_cv_use_mshtmlhelp >> ${wx_arg_cache_file}.tmp
4406 fi
4407
4408 if test "$wxUSE_MS_HTML_HELP" = yes; then
4409 echo "$ac_t""yes" 1>&6
4410 else
4411 echo "$ac_t""no" 1>&6
4412 fi
4413
4414
4415 echo $ac_n "checking for --enable-html""... $ac_c" 1>&6
4416 echo "configure:4417: checking for --enable-html" >&5
4417 no_cache=0
4418 # Check whether --enable-html or --disable-html was given.
4419 if test "${enable_html+set}" = set; then
4420 enableval="$enable_html"
4421
4422 if test "$enableval" = yes; then
4423 ac_cv_use_html='wxUSE_HTML=yes'
4424 else
4425 ac_cv_use_html='wxUSE_HTML=no'
4426 fi
4427
4428 else
4429
4430 LINE=`grep "wxUSE_HTML" ${wx_arg_cache_file}`
4431 if test "x$LINE" != x ; then
4432 eval "DEFAULT_$LINE"
4433 else
4434 no_cache=1
4435 fi
4436
4437 ac_cv_use_html='wxUSE_HTML='$DEFAULT_wxUSE_HTML
4438
4439 fi
4440
4441
4442 eval "$ac_cv_use_html"
4443 if test "$no_cache" != 1; then
4444 echo $ac_cv_use_html >> ${wx_arg_cache_file}.tmp
4445 fi
4446
4447 if test "$wxUSE_HTML" = yes; then
4448 echo "$ac_t""yes" 1>&6
4449 else
4450 echo "$ac_t""no" 1>&6
4451 fi
4452
4453
4454 echo $ac_n "checking for --enable-htmlhelp""... $ac_c" 1>&6
4455 echo "configure:4456: checking for --enable-htmlhelp" >&5
4456 no_cache=0
4457 # Check whether --enable-htmlhelp or --disable-htmlhelp was given.
4458 if test "${enable_htmlhelp+set}" = set; then
4459 enableval="$enable_htmlhelp"
4460
4461 if test "$enableval" = yes; then
4462 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
4463 else
4464 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
4465 fi
4466
4467 else
4468
4469 LINE=`grep "wxUSE_WXHTML_HELP" ${wx_arg_cache_file}`
4470 if test "x$LINE" != x ; then
4471 eval "DEFAULT_$LINE"
4472 else
4473 no_cache=1
4474 fi
4475
4476 ac_cv_use_htmlhelp='wxUSE_WXHTML_HELP='$DEFAULT_wxUSE_WXHTML_HELP
4477
4478 fi
4479
4480
4481 eval "$ac_cv_use_htmlhelp"
4482 if test "$no_cache" != 1; then
4483 echo $ac_cv_use_htmlhelp >> ${wx_arg_cache_file}.tmp
4484 fi
4485
4486 if test "$wxUSE_WXHTML_HELP" = yes; then
4487 echo "$ac_t""yes" 1>&6
4488 else
4489 echo "$ac_t""no" 1>&6
4490 fi
4491
4492
4493 echo $ac_n "checking for --enable-constraints""... $ac_c" 1>&6
4494 echo "configure:4495: checking for --enable-constraints" >&5
4495 no_cache=0
4496 # Check whether --enable-constraints or --disable-constraints was given.
4497 if test "${enable_constraints+set}" = set; then
4498 enableval="$enable_constraints"
4499
4500 if test "$enableval" = yes; then
4501 ac_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
4502 else
4503 ac_cv_use_constraints='wxUSE_CONSTRAINTS=no'
4504 fi
4505
4506 else
4507
4508 LINE=`grep "wxUSE_CONSTRAINTS" ${wx_arg_cache_file}`
4509 if test "x$LINE" != x ; then
4510 eval "DEFAULT_$LINE"
4511 else
4512 no_cache=1
4513 fi
4514
4515 ac_cv_use_constraints='wxUSE_CONSTRAINTS='$DEFAULT_wxUSE_CONSTRAINTS
4516
4517 fi
4518
4519
4520 eval "$ac_cv_use_constraints"
4521 if test "$no_cache" != 1; then
4522 echo $ac_cv_use_constraints >> ${wx_arg_cache_file}.tmp
4523 fi
4524
4525 if test "$wxUSE_CONSTRAINTS" = yes; then
4526 echo "$ac_t""yes" 1>&6
4527 else
4528 echo "$ac_t""no" 1>&6
4529 fi
4530
4531
4532 echo $ac_n "checking for --enable-printarch""... $ac_c" 1>&6
4533 echo "configure:4534: checking for --enable-printarch" >&5
4534 no_cache=0
4535 # Check whether --enable-printarch or --disable-printarch was given.
4536 if test "${enable_printarch+set}" = set; then
4537 enableval="$enable_printarch"
4538
4539 if test "$enableval" = yes; then
4540 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
4541 else
4542 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
4543 fi
4544
4545 else
4546
4547 LINE=`grep "wxUSE_PRINTING_ARCHITECTURE" ${wx_arg_cache_file}`
4548 if test "x$LINE" != x ; then
4549 eval "DEFAULT_$LINE"
4550 else
4551 no_cache=1
4552 fi
4553
4554 ac_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE='$DEFAULT_wxUSE_PRINTING_ARCHITECTURE
4555
4556 fi
4557
4558
4559 eval "$ac_cv_use_printarch"
4560 if test "$no_cache" != 1; then
4561 echo $ac_cv_use_printarch >> ${wx_arg_cache_file}.tmp
4562 fi
4563
4564 if test "$wxUSE_PRINTING_ARCHITECTURE" = yes; then
4565 echo "$ac_t""yes" 1>&6
4566 else
4567 echo "$ac_t""no" 1>&6
4568 fi
4569
4570
4571 echo $ac_n "checking for --enable-mdi""... $ac_c" 1>&6
4572 echo "configure:4573: checking for --enable-mdi" >&5
4573 no_cache=0
4574 # Check whether --enable-mdi or --disable-mdi was given.
4575 if test "${enable_mdi+set}" = set; then
4576 enableval="$enable_mdi"
4577
4578 if test "$enableval" = yes; then
4579 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=yes'
4580 else
4581 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE=no'
4582 fi
4583
4584 else
4585
4586 LINE=`grep "wxUSE_MDI_ARCHITECTURE" ${wx_arg_cache_file}`
4587 if test "x$LINE" != x ; then
4588 eval "DEFAULT_$LINE"
4589 else
4590 no_cache=1
4591 fi
4592
4593 ac_cv_use_mdi='wxUSE_MDI_ARCHITECTURE='$DEFAULT_wxUSE_MDI_ARCHITECTURE
4594
4595 fi
4596
4597
4598 eval "$ac_cv_use_mdi"
4599 if test "$no_cache" != 1; then
4600 echo $ac_cv_use_mdi >> ${wx_arg_cache_file}.tmp
4601 fi
4602
4603 if test "$wxUSE_MDI_ARCHITECTURE" = yes; then
4604 echo "$ac_t""yes" 1>&6
4605 else
4606 echo "$ac_t""no" 1>&6
4607 fi
4608
4609
4610 echo $ac_n "checking for --enable-loggui""... $ac_c" 1>&6
4611 echo "configure:4612: checking for --enable-loggui" >&5
4612 no_cache=0
4613 # Check whether --enable-loggui or --disable-loggui was given.
4614 if test "${enable_loggui+set}" = set; then
4615 enableval="$enable_loggui"
4616
4617 if test "$enableval" = yes; then
4618 ac_cv_use_loggui='wxUSE_LOGGUI=yes'
4619 else
4620 ac_cv_use_loggui='wxUSE_LOGGUI=no'
4621 fi
4622
4623 else
4624
4625 LINE=`grep "wxUSE_LOGGUI" ${wx_arg_cache_file}`
4626 if test "x$LINE" != x ; then
4627 eval "DEFAULT_$LINE"
4628 else
4629 no_cache=1
4630 fi
4631
4632 ac_cv_use_loggui='wxUSE_LOGGUI='$DEFAULT_wxUSE_LOGGUI
4633
4634 fi
4635
4636
4637 eval "$ac_cv_use_loggui"
4638 if test "$no_cache" != 1; then
4639 echo $ac_cv_use_loggui >> ${wx_arg_cache_file}.tmp
4640 fi
4641
4642 if test "$wxUSE_LOGGUI" = yes; then
4643 echo "$ac_t""yes" 1>&6
4644 else
4645 echo "$ac_t""no" 1>&6
4646 fi
4647
4648
4649 echo $ac_n "checking for --enable-logwin""... $ac_c" 1>&6
4650 echo "configure:4651: checking for --enable-logwin" >&5
4651 no_cache=0
4652 # Check whether --enable-logwin or --disable-logwin was given.
4653 if test "${enable_logwin+set}" = set; then
4654 enableval="$enable_logwin"
4655
4656 if test "$enableval" = yes; then
4657 ac_cv_use_logwin='wxUSE_LOGWINDOW=yes'
4658 else
4659 ac_cv_use_logwin='wxUSE_LOGWINDOW=no'
4660 fi
4661
4662 else
4663
4664 LINE=`grep "wxUSE_LOGWINDOW" ${wx_arg_cache_file}`
4665 if test "x$LINE" != x ; then
4666 eval "DEFAULT_$LINE"
4667 else
4668 no_cache=1
4669 fi
4670
4671 ac_cv_use_logwin='wxUSE_LOGWINDOW='$DEFAULT_wxUSE_LOGWINDOW
4672
4673 fi
4674
4675
4676 eval "$ac_cv_use_logwin"
4677 if test "$no_cache" != 1; then
4678 echo $ac_cv_use_logwin >> ${wx_arg_cache_file}.tmp
4679 fi
4680
4681 if test "$wxUSE_LOGWINDOW" = yes; then
4682 echo "$ac_t""yes" 1>&6
4683 else
4684 echo "$ac_t""no" 1>&6
4685 fi
4686
4687
4688
4689 echo $ac_n "checking for --enable-postscript""... $ac_c" 1>&6
4690 echo "configure:4691: checking for --enable-postscript" >&5
4691 no_cache=0
4692 # Check whether --enable-postscript or --disable-postscript was given.
4693 if test "${enable_postscript+set}" = set; then
4694 enableval="$enable_postscript"
4695
4696 if test "$enableval" = yes; then
4697 ac_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
4698 else
4699 ac_cv_use_postscript='wxUSE_POSTSCRIPT=no'
4700 fi
4701
4702 else
4703
4704 LINE=`grep "wxUSE_POSTSCRIPT" ${wx_arg_cache_file}`
4705 if test "x$LINE" != x ; then
4706 eval "DEFAULT_$LINE"
4707 else
4708 no_cache=1
4709 fi
4710
4711 ac_cv_use_postscript='wxUSE_POSTSCRIPT='$DEFAULT_wxUSE_POSTSCRIPT
4712
4713 fi
4714
4715
4716 eval "$ac_cv_use_postscript"
4717 if test "$no_cache" != 1; then
4718 echo $ac_cv_use_postscript >> ${wx_arg_cache_file}.tmp
4719 fi
4720
4721 if test "$wxUSE_POSTSCRIPT" = yes; then
4722 echo "$ac_t""yes" 1>&6
4723 else
4724 echo "$ac_t""no" 1>&6
4725 fi
4726
4727
4728
4729
4730
4731 echo $ac_n "checking for --enable-prologio""... $ac_c" 1>&6
4732 echo "configure:4733: checking for --enable-prologio" >&5
4733 no_cache=0
4734 # Check whether --enable-prologio or --disable-prologio was given.
4735 if test "${enable_prologio+set}" = set; then
4736 enableval="$enable_prologio"
4737
4738 if test "$enableval" = yes; then
4739 ac_cv_use_prologio='wxUSE_PROLOGIO=yes'
4740 else
4741 ac_cv_use_prologio='wxUSE_PROLOGIO=no'
4742 fi
4743
4744 else
4745
4746 LINE=`grep "wxUSE_PROLOGIO" ${wx_arg_cache_file}`
4747 if test "x$LINE" != x ; then
4748 eval "DEFAULT_$LINE"
4749 else
4750 no_cache=1
4751 fi
4752
4753 ac_cv_use_prologio='wxUSE_PROLOGIO='$DEFAULT_wxUSE_PROLOGIO
4754
4755 fi
4756
4757
4758 eval "$ac_cv_use_prologio"
4759 if test "$no_cache" != 1; then
4760 echo $ac_cv_use_prologio >> ${wx_arg_cache_file}.tmp
4761 fi
4762
4763 if test "$wxUSE_PROLOGIO" = yes; then
4764 echo "$ac_t""yes" 1>&6
4765 else
4766 echo "$ac_t""no" 1>&6
4767 fi
4768
4769
4770 echo $ac_n "checking for --enable-resources""... $ac_c" 1>&6
4771 echo "configure:4772: checking for --enable-resources" >&5
4772 no_cache=0
4773 # Check whether --enable-resources or --disable-resources was given.
4774 if test "${enable_resources+set}" = set; then
4775 enableval="$enable_resources"
4776
4777 if test "$enableval" = yes; then
4778 ac_cv_use_resources='wxUSE_RESOURCES=yes'
4779 else
4780 ac_cv_use_resources='wxUSE_RESOURCES=no'
4781 fi
4782
4783 else
4784
4785 LINE=`grep "wxUSE_RESOURCES" ${wx_arg_cache_file}`
4786 if test "x$LINE" != x ; then
4787 eval "DEFAULT_$LINE"
4788 else
4789 no_cache=1
4790 fi
4791
4792 ac_cv_use_resources='wxUSE_RESOURCES='$DEFAULT_wxUSE_RESOURCES
4793
4794 fi
4795
4796
4797 eval "$ac_cv_use_resources"
4798 if test "$no_cache" != 1; then
4799 echo $ac_cv_use_resources >> ${wx_arg_cache_file}.tmp
4800 fi
4801
4802 if test "$wxUSE_RESOURCES" = yes; then
4803 echo "$ac_t""yes" 1>&6
4804 else
4805 echo "$ac_t""no" 1>&6
4806 fi
4807
4808
4809
4810 echo $ac_n "checking for --enable-xresources""... $ac_c" 1>&6
4811 echo "configure:4812: checking for --enable-xresources" >&5
4812 no_cache=0
4813 # Check whether --enable-xresources or --disable-xresources was given.
4814 if test "${enable_xresources+set}" = set; then
4815 enableval="$enable_xresources"
4816
4817 if test "$enableval" = yes; then
4818 ac_cv_use_xresources='wxUSE_X_RESOURCES=yes'
4819 else
4820 ac_cv_use_xresources='wxUSE_X_RESOURCES=no'
4821 fi
4822
4823 else
4824
4825 LINE=`grep "wxUSE_X_RESOURCES" ${wx_arg_cache_file}`
4826 if test "x$LINE" != x ; then
4827 eval "DEFAULT_$LINE"
4828 else
4829 no_cache=1
4830 fi
4831
4832 ac_cv_use_xresources='wxUSE_X_RESOURCES='$DEFAULT_wxUSE_X_RESOURCES
4833
4834 fi
4835
4836
4837 eval "$ac_cv_use_xresources"
4838 if test "$no_cache" != 1; then
4839 echo $ac_cv_use_xresources >> ${wx_arg_cache_file}.tmp
4840 fi
4841
4842 if test "$wxUSE_X_RESOURCES" = yes; then
4843 echo "$ac_t""yes" 1>&6
4844 else
4845 echo "$ac_t""no" 1>&6
4846 fi
4847
4848
4849
4850
4851 echo $ac_n "checking for --enable-clipboard""... $ac_c" 1>&6
4852 echo "configure:4853: checking for --enable-clipboard" >&5
4853 no_cache=0
4854 # Check whether --enable-clipboard or --disable-clipboard was given.
4855 if test "${enable_clipboard+set}" = set; then
4856 enableval="$enable_clipboard"
4857
4858 if test "$enableval" = yes; then
4859 ac_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
4860 else
4861 ac_cv_use_clipboard='wxUSE_CLIPBOARD=no'
4862 fi
4863
4864 else
4865
4866 LINE=`grep "wxUSE_CLIPBOARD" ${wx_arg_cache_file}`
4867 if test "x$LINE" != x ; then
4868 eval "DEFAULT_$LINE"
4869 else
4870 no_cache=1
4871 fi
4872
4873 ac_cv_use_clipboard='wxUSE_CLIPBOARD='$DEFAULT_wxUSE_CLIPBOARD
4874
4875 fi
4876
4877
4878 eval "$ac_cv_use_clipboard"
4879 if test "$no_cache" != 1; then
4880 echo $ac_cv_use_clipboard >> ${wx_arg_cache_file}.tmp
4881 fi
4882
4883 if test "$wxUSE_CLIPBOARD" = yes; then
4884 echo "$ac_t""yes" 1>&6
4885 else
4886 echo "$ac_t""no" 1>&6
4887 fi
4888
4889
4890 echo $ac_n "checking for --enable-dnd""... $ac_c" 1>&6
4891 echo "configure:4892: checking for --enable-dnd" >&5
4892 no_cache=0
4893 # Check whether --enable-dnd or --disable-dnd was given.
4894 if test "${enable_dnd+set}" = set; then
4895 enableval="$enable_dnd"
4896
4897 if test "$enableval" = yes; then
4898 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
4899 else
4900 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
4901 fi
4902
4903 else
4904
4905 LINE=`grep "wxUSE_DRAG_AND_DROP" ${wx_arg_cache_file}`
4906 if test "x$LINE" != x ; then
4907 eval "DEFAULT_$LINE"
4908 else
4909 no_cache=1
4910 fi
4911
4912 ac_cv_use_dnd='wxUSE_DRAG_AND_DROP='$DEFAULT_wxUSE_DRAG_AND_DROP
4913
4914 fi
4915
4916
4917 eval "$ac_cv_use_dnd"
4918 if test "$no_cache" != 1; then
4919 echo $ac_cv_use_dnd >> ${wx_arg_cache_file}.tmp
4920 fi
4921
4922 if test "$wxUSE_DRAG_AND_DROP" = yes; then
4923 echo "$ac_t""yes" 1>&6
4924 else
4925 echo "$ac_t""no" 1>&6
4926 fi
4927
4928
4929 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
4930 echo "configure:4931: checking for --enable-metafile" >&5
4931 no_cache=0
4932 # Check whether --enable-metafile or --disable-metafile was given.
4933 if test "${enable_metafile+set}" = set; then
4934 enableval="$enable_metafile"
4935
4936 if test "$enableval" = yes; then
4937 ac_cv_use_metafile='wxUSE_METAFILE=yes'
4938 else
4939 ac_cv_use_metafile='wxUSE_METAFILE=no'
4940 fi
4941
4942 else
4943
4944 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
4945 if test "x$LINE" != x ; then
4946 eval "DEFAULT_$LINE"
4947 else
4948 no_cache=1
4949 fi
4950
4951 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
4952
4953 fi
4954
4955
4956 eval "$ac_cv_use_metafile"
4957 if test "$no_cache" != 1; then
4958 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
4959 fi
4960
4961 if test "$wxUSE_METAFILE" = yes; then
4962 echo "$ac_t""yes" 1>&6
4963 else
4964 echo "$ac_t""no" 1>&6
4965 fi
4966
4967
4968
4969 echo $ac_n "checking for --enable-wxtree""... $ac_c" 1>&6
4970 echo "configure:4971: checking for --enable-wxtree" >&5
4971 no_cache=0
4972 # Check whether --enable-wxtree or --disable-wxtree was given.
4973 if test "${enable_wxtree+set}" = set; then
4974 enableval="$enable_wxtree"
4975
4976 if test "$enableval" = yes; then
4977 ac_cv_use_wxtree='wxUSE_WXTREE=yes'
4978 else
4979 ac_cv_use_wxtree='wxUSE_WXTREE=no'
4980 fi
4981
4982 else
4983
4984 LINE=`grep "wxUSE_WXTREE" ${wx_arg_cache_file}`
4985 if test "x$LINE" != x ; then
4986 eval "DEFAULT_$LINE"
4987 else
4988 no_cache=1
4989 fi
4990
4991 ac_cv_use_wxtree='wxUSE_WXTREE='$DEFAULT_wxUSE_WXTREE
4992
4993 fi
4994
4995
4996 eval "$ac_cv_use_wxtree"
4997 if test "$no_cache" != 1; then
4998 echo $ac_cv_use_wxtree >> ${wx_arg_cache_file}.tmp
4999 fi
5000
5001 if test "$wxUSE_WXTREE" = yes; then
5002 echo "$ac_t""yes" 1>&6
5003 else
5004 echo "$ac_t""no" 1>&6
5005 fi
5006
5007
5008
5009
5010 echo $ac_n "checking for --enable-controls""... $ac_c" 1>&6
5011 echo "configure:5012: checking for --enable-controls" >&5
5012 no_cache=0
5013 # Check whether --enable-controls or --disable-controls was given.
5014 if test "${enable_controls+set}" = set; then
5015 enableval="$enable_controls"
5016
5017 if test "$enableval" = yes; then
5018 ac_cv_use_controls='wxUSE_CONTROLS=yes'
5019 else
5020 ac_cv_use_controls='wxUSE_CONTROLS=no'
5021 fi
5022
5023 else
5024
5025 LINE=`grep "wxUSE_CONTROLS" ${wx_arg_cache_file}`
5026 if test "x$LINE" != x ; then
5027 eval "DEFAULT_$LINE"
5028 else
5029 no_cache=1
5030 fi
5031
5032 ac_cv_use_controls='wxUSE_CONTROLS='$DEFAULT_wxUSE_CONTROLS
5033
5034 fi
5035
5036
5037 eval "$ac_cv_use_controls"
5038 if test "$no_cache" != 1; then
5039 echo $ac_cv_use_controls >> ${wx_arg_cache_file}.tmp
5040 fi
5041
5042 if test "$wxUSE_CONTROLS" = yes; then
5043 echo "$ac_t""yes" 1>&6
5044 else
5045 echo "$ac_t""no" 1>&6
5046 fi
5047
5048
5049 if test "$wxUSE_CONTROLS" = "yes"; then
5050 DEFAULT_wxUSE_ACCEL=yes
5051 DEFAULT_wxUSE_BMPBUTTON=yes
5052 DEFAULT_wxUSE_BUTTON=yes
5053 DEFAULT_wxUSE_CALCTRL=no
5054 DEFAULT_wxUSE_CARET=yes
5055 DEFAULT_wxUSE_COMBOBOX=yes
5056 DEFAULT_wxUSE_CHECKBOX=yes
5057 DEFAULT_wxUSE_CHECKLISTBOX=yes
5058 DEFAULT_wxUSE_CHOICE=yes
5059 DEFAULT_wxUSE_GAUGE=yes
5060 DEFAULT_wxUSE_GRID=yes
5061 DEFAULT_wxUSE_NEW_GRID=yes
5062 DEFAULT_wxUSE_IMAGLIST=yes
5063 DEFAULT_wxUSE_LISTBOX=yes
5064 DEFAULT_wxUSE_LISTCTRL=yes
5065 DEFAULT_wxUSE_NOTEBOOK=yes
5066 DEFAULT_wxUSE_RADIOBOX=yes
5067 DEFAULT_wxUSE_RADIOBTN=yes
5068 DEFAULT_wxUSE_SASH=yes
5069 DEFAULT_wxUSE_SCROLLBAR=yes
5070 DEFAULT_wxUSE_SLIDER=yes
5071 DEFAULT_wxUSE_SPINBTN=yes
5072 DEFAULT_wxUSE_SPINCTRL=yes
5073 DEFAULT_wxUSE_SPLITTER=yes
5074 DEFAULT_wxUSE_STATBMP=yes
5075 DEFAULT_wxUSE_STATBOX=yes
5076 DEFAULT_wxUSE_STATLINE=yes
5077 DEFAULT_wxUSE_STATUSBAR=yes
5078 DEFAULT_wxUSE_TAB_DIALOG=yes
5079 DEFAULT_wxUSE_TOGGLEBTN=yes
5080 DEFAULT_wxUSE_TOOLBAR=yes
5081 DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
5082 DEFAULT_wxUSE_TOOLBAR_SIMPLE=yes
5083 DEFAULT_wxUSE_TOOLTIPS=yes
5084 DEFAULT_wxUSE_TREECTRL=yes
5085 DEFAULT_wxUSE_POPUPWIN=yes
5086 elif test "$wxUSE_CONTROLS" = "no"; then
5087 DEFAULT_wxUSE_ACCEL=no
5088 DEFAULT_wxUSE_BMPBUTTON=no
5089 DEFAULT_wxUSE_BUTTON=no
5090 DEFAULT_wxUSE_CALCTRL=no
5091 DEFAULT_wxUSE_CARET=no
5092 DEFAULT_wxUSE_COMBOBOX=no
5093 DEFAULT_wxUSE_CHECKBOX=no
5094 DEFAULT_wxUSE_CHECKLISTBOX=no
5095 DEFAULT_wxUSE_CHOICE=no
5096 DEFAULT_wxUSE_GAUGE=no
5097 DEFAULT_wxUSE_GRID=no
5098 DEFAULT_wxUSE_NEW_GRID=no
5099 DEFAULT_wxUSE_IMAGLIST=no
5100 DEFAULT_wxUSE_LISTBOX=no
5101 DEFAULT_wxUSE_LISTCTRL=no
5102 DEFAULT_wxUSE_NOTEBOOK=no
5103 DEFAULT_wxUSE_RADIOBOX=no
5104 DEFAULT_wxUSE_RADIOBTN=no
5105 DEFAULT_wxUSE_SASH=no
5106 DEFAULT_wxUSE_SCROLLBAR=no
5107 DEFAULT_wxUSE_SLIDER=no
5108 DEFAULT_wxUSE_SPINBTN=no
5109 DEFAULT_wxUSE_SPINCTRL=no
5110 DEFAULT_wxUSE_SPLITTER=no
5111 DEFAULT_wxUSE_STATBMP=no
5112 DEFAULT_wxUSE_STATBOX=no
5113 DEFAULT_wxUSE_STATLINE=no
5114 DEFAULT_wxUSE_STATUSBAR=no
5115 DEFAULT_wxUSE_TAB_DIALOG=no
5116 DEFAULT_wxUSE_TOGGLEBTN=no
5117 DEFAULT_wxUSE_TOOLBAR=no
5118 DEFAULT_wxUSE_TOOLBAR_NATIVE=no
5119 DEFAULT_wxUSE_TOOLBAR_SIMPLE=no
5120 DEFAULT_wxUSE_TOOLTIPS=no
5121 DEFAULT_wxUSE_TREECTRL=no
5122 DEFAULT_wxUSE_POPUPWIN=no
5123 fi
5124
5125
5126 echo $ac_n "checking for --enable-accel""... $ac_c" 1>&6
5127 echo "configure:5128: checking for --enable-accel" >&5
5128 no_cache=0
5129 # Check whether --enable-accel or --disable-accel was given.
5130 if test "${enable_accel+set}" = set; then
5131 enableval="$enable_accel"
5132
5133 if test "$enableval" = yes; then
5134 ac_cv_use_accel='wxUSE_ACCEL=yes'
5135 else
5136 ac_cv_use_accel='wxUSE_ACCEL=no'
5137 fi
5138
5139 else
5140
5141 LINE=`grep "wxUSE_ACCEL" ${wx_arg_cache_file}`
5142 if test "x$LINE" != x ; then
5143 eval "DEFAULT_$LINE"
5144 else
5145 no_cache=1
5146 fi
5147
5148 ac_cv_use_accel='wxUSE_ACCEL='$DEFAULT_wxUSE_ACCEL
5149
5150 fi
5151
5152
5153 eval "$ac_cv_use_accel"
5154 if test "$no_cache" != 1; then
5155 echo $ac_cv_use_accel >> ${wx_arg_cache_file}.tmp
5156 fi
5157
5158 if test "$wxUSE_ACCEL" = yes; then
5159 echo "$ac_t""yes" 1>&6
5160 else
5161 echo "$ac_t""no" 1>&6
5162 fi
5163
5164
5165 echo $ac_n "checking for --enable-button""... $ac_c" 1>&6
5166 echo "configure:5167: checking for --enable-button" >&5
5167 no_cache=0
5168 # Check whether --enable-button or --disable-button was given.
5169 if test "${enable_button+set}" = set; then
5170 enableval="$enable_button"
5171
5172 if test "$enableval" = yes; then
5173 ac_cv_use_button='wxUSE_BUTTON=yes'
5174 else
5175 ac_cv_use_button='wxUSE_BUTTON=no'
5176 fi
5177
5178 else
5179
5180 LINE=`grep "wxUSE_BUTTON" ${wx_arg_cache_file}`
5181 if test "x$LINE" != x ; then
5182 eval "DEFAULT_$LINE"
5183 else
5184 no_cache=1
5185 fi
5186
5187 ac_cv_use_button='wxUSE_BUTTON='$DEFAULT_wxUSE_BUTTON
5188
5189 fi
5190
5191
5192 eval "$ac_cv_use_button"
5193 if test "$no_cache" != 1; then
5194 echo $ac_cv_use_button >> ${wx_arg_cache_file}.tmp
5195 fi
5196
5197 if test "$wxUSE_BUTTON" = yes; then
5198 echo "$ac_t""yes" 1>&6
5199 else
5200 echo "$ac_t""no" 1>&6
5201 fi
5202
5203
5204 echo $ac_n "checking for --enable-bmpbutton""... $ac_c" 1>&6
5205 echo "configure:5206: checking for --enable-bmpbutton" >&5
5206 no_cache=0
5207 # Check whether --enable-bmpbutton or --disable-bmpbutton was given.
5208 if test "${enable_bmpbutton+set}" = set; then
5209 enableval="$enable_bmpbutton"
5210
5211 if test "$enableval" = yes; then
5212 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
5213 else
5214 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
5215 fi
5216
5217 else
5218
5219 LINE=`grep "wxUSE_BMPBUTTON" ${wx_arg_cache_file}`
5220 if test "x$LINE" != x ; then
5221 eval "DEFAULT_$LINE"
5222 else
5223 no_cache=1
5224 fi
5225
5226 ac_cv_use_bmpbutton='wxUSE_BMPBUTTON='$DEFAULT_wxUSE_BMPBUTTON
5227
5228 fi
5229
5230
5231 eval "$ac_cv_use_bmpbutton"
5232 if test "$no_cache" != 1; then
5233 echo $ac_cv_use_bmpbutton >> ${wx_arg_cache_file}.tmp
5234 fi
5235
5236 if test "$wxUSE_BMPBUTTON" = yes; then
5237 echo "$ac_t""yes" 1>&6
5238 else
5239 echo "$ac_t""no" 1>&6
5240 fi
5241
5242
5243 echo $ac_n "checking for --enable-calendar""... $ac_c" 1>&6
5244 echo "configure:5245: checking for --enable-calendar" >&5
5245 no_cache=0
5246 # Check whether --enable-calendar or --disable-calendar was given.
5247 if test "${enable_calendar+set}" = set; then
5248 enableval="$enable_calendar"
5249
5250 if test "$enableval" = yes; then
5251 ac_cv_use_calendar='wxUSE_CALCTRL=yes'
5252 else
5253 ac_cv_use_calendar='wxUSE_CALCTRL=no'
5254 fi
5255
5256 else
5257
5258 LINE=`grep "wxUSE_CALCTRL" ${wx_arg_cache_file}`
5259 if test "x$LINE" != x ; then
5260 eval "DEFAULT_$LINE"
5261 else
5262 no_cache=1
5263 fi
5264
5265 ac_cv_use_calendar='wxUSE_CALCTRL='$DEFAULT_wxUSE_CALCTRL
5266
5267 fi
5268
5269
5270 eval "$ac_cv_use_calendar"
5271 if test "$no_cache" != 1; then
5272 echo $ac_cv_use_calendar >> ${wx_arg_cache_file}.tmp
5273 fi
5274
5275 if test "$wxUSE_CALCTRL" = yes; then
5276 echo "$ac_t""yes" 1>&6
5277 else
5278 echo "$ac_t""no" 1>&6
5279 fi
5280
5281
5282 echo $ac_n "checking for --enable-caret""... $ac_c" 1>&6
5283 echo "configure:5284: checking for --enable-caret" >&5
5284 no_cache=0
5285 # Check whether --enable-caret or --disable-caret was given.
5286 if test "${enable_caret+set}" = set; then
5287 enableval="$enable_caret"
5288
5289 if test "$enableval" = yes; then
5290 ac_cv_use_caret='wxUSE_CARET=yes'
5291 else
5292 ac_cv_use_caret='wxUSE_CARET=no'
5293 fi
5294
5295 else
5296
5297 LINE=`grep "wxUSE_CARET" ${wx_arg_cache_file}`
5298 if test "x$LINE" != x ; then
5299 eval "DEFAULT_$LINE"
5300 else
5301 no_cache=1
5302 fi
5303
5304 ac_cv_use_caret='wxUSE_CARET='$DEFAULT_wxUSE_CARET
5305
5306 fi
5307
5308
5309 eval "$ac_cv_use_caret"
5310 if test "$no_cache" != 1; then
5311 echo $ac_cv_use_caret >> ${wx_arg_cache_file}.tmp
5312 fi
5313
5314 if test "$wxUSE_CARET" = yes; then
5315 echo "$ac_t""yes" 1>&6
5316 else
5317 echo "$ac_t""no" 1>&6
5318 fi
5319
5320
5321 echo $ac_n "checking for --enable-checkbox""... $ac_c" 1>&6
5322 echo "configure:5323: checking for --enable-checkbox" >&5
5323 no_cache=0
5324 # Check whether --enable-checkbox or --disable-checkbox was given.
5325 if test "${enable_checkbox+set}" = set; then
5326 enableval="$enable_checkbox"
5327
5328 if test "$enableval" = yes; then
5329 ac_cv_use_checkbox='wxUSE_CHECKBOX=yes'
5330 else
5331 ac_cv_use_checkbox='wxUSE_CHECKBOX=no'
5332 fi
5333
5334 else
5335
5336 LINE=`grep "wxUSE_CHECKBOX" ${wx_arg_cache_file}`
5337 if test "x$LINE" != x ; then
5338 eval "DEFAULT_$LINE"
5339 else
5340 no_cache=1
5341 fi
5342
5343 ac_cv_use_checkbox='wxUSE_CHECKBOX='$DEFAULT_wxUSE_CHECKBOX
5344
5345 fi
5346
5347
5348 eval "$ac_cv_use_checkbox"
5349 if test "$no_cache" != 1; then
5350 echo $ac_cv_use_checkbox >> ${wx_arg_cache_file}.tmp
5351 fi
5352
5353 if test "$wxUSE_CHECKBOX" = yes; then
5354 echo "$ac_t""yes" 1>&6
5355 else
5356 echo "$ac_t""no" 1>&6
5357 fi
5358
5359
5360 echo $ac_n "checking for --enable-checklst""... $ac_c" 1>&6
5361 echo "configure:5362: checking for --enable-checklst" >&5
5362 no_cache=0
5363 # Check whether --enable-checklst or --disable-checklst was given.
5364 if test "${enable_checklst+set}" = set; then
5365 enableval="$enable_checklst"
5366
5367 if test "$enableval" = yes; then
5368 ac_cv_use_checklst='wxUSE_CHECKLST=yes'
5369 else
5370 ac_cv_use_checklst='wxUSE_CHECKLST=no'
5371 fi
5372
5373 else
5374
5375 LINE=`grep "wxUSE_CHECKLST" ${wx_arg_cache_file}`
5376 if test "x$LINE" != x ; then
5377 eval "DEFAULT_$LINE"
5378 else
5379 no_cache=1
5380 fi
5381
5382 ac_cv_use_checklst='wxUSE_CHECKLST='$DEFAULT_wxUSE_CHECKLST
5383
5384 fi
5385
5386
5387 eval "$ac_cv_use_checklst"
5388 if test "$no_cache" != 1; then
5389 echo $ac_cv_use_checklst >> ${wx_arg_cache_file}.tmp
5390 fi
5391
5392 if test "$wxUSE_CHECKLST" = yes; then
5393 echo "$ac_t""yes" 1>&6
5394 else
5395 echo "$ac_t""no" 1>&6
5396 fi
5397
5398
5399 echo $ac_n "checking for --enable-choice""... $ac_c" 1>&6
5400 echo "configure:5401: checking for --enable-choice" >&5
5401 no_cache=0
5402 # Check whether --enable-choice or --disable-choice was given.
5403 if test "${enable_choice+set}" = set; then
5404 enableval="$enable_choice"
5405
5406 if test "$enableval" = yes; then
5407 ac_cv_use_choice='wxUSE_CHOICE=yes'
5408 else
5409 ac_cv_use_choice='wxUSE_CHOICE=no'
5410 fi
5411
5412 else
5413
5414 LINE=`grep "wxUSE_CHOICE" ${wx_arg_cache_file}`
5415 if test "x$LINE" != x ; then
5416 eval "DEFAULT_$LINE"
5417 else
5418 no_cache=1
5419 fi
5420
5421 ac_cv_use_choice='wxUSE_CHOICE='$DEFAULT_wxUSE_CHOICE
5422
5423 fi
5424
5425
5426 eval "$ac_cv_use_choice"
5427 if test "$no_cache" != 1; then
5428 echo $ac_cv_use_choice >> ${wx_arg_cache_file}.tmp
5429 fi
5430
5431 if test "$wxUSE_CHOICE" = yes; then
5432 echo "$ac_t""yes" 1>&6
5433 else
5434 echo "$ac_t""no" 1>&6
5435 fi
5436
5437
5438 echo $ac_n "checking for --enable-combobox""... $ac_c" 1>&6
5439 echo "configure:5440: checking for --enable-combobox" >&5
5440 no_cache=0
5441 # Check whether --enable-combobox or --disable-combobox was given.
5442 if test "${enable_combobox+set}" = set; then
5443 enableval="$enable_combobox"
5444
5445 if test "$enableval" = yes; then
5446 ac_cv_use_combobox='wxUSE_COMBOBOX=yes'
5447 else
5448 ac_cv_use_combobox='wxUSE_COMBOBOX=no'
5449 fi
5450
5451 else
5452
5453 LINE=`grep "wxUSE_COMBOBOX" ${wx_arg_cache_file}`
5454 if test "x$LINE" != x ; then
5455 eval "DEFAULT_$LINE"
5456 else
5457 no_cache=1
5458 fi
5459
5460 ac_cv_use_combobox='wxUSE_COMBOBOX='$DEFAULT_wxUSE_COMBOBOX
5461
5462 fi
5463
5464
5465 eval "$ac_cv_use_combobox"
5466 if test "$no_cache" != 1; then
5467 echo $ac_cv_use_combobox >> ${wx_arg_cache_file}.tmp
5468 fi
5469
5470 if test "$wxUSE_COMBOBOX" = yes; then
5471 echo "$ac_t""yes" 1>&6
5472 else
5473 echo "$ac_t""no" 1>&6
5474 fi
5475
5476
5477 echo $ac_n "checking for --enable-gauge""... $ac_c" 1>&6
5478 echo "configure:5479: checking for --enable-gauge" >&5
5479 no_cache=0
5480 # Check whether --enable-gauge or --disable-gauge was given.
5481 if test "${enable_gauge+set}" = set; then
5482 enableval="$enable_gauge"
5483
5484 if test "$enableval" = yes; then
5485 ac_cv_use_gauge='wxUSE_GAUGE=yes'
5486 else
5487 ac_cv_use_gauge='wxUSE_GAUGE=no'
5488 fi
5489
5490 else
5491
5492 LINE=`grep "wxUSE_GAUGE" ${wx_arg_cache_file}`
5493 if test "x$LINE" != x ; then
5494 eval "DEFAULT_$LINE"
5495 else
5496 no_cache=1
5497 fi
5498
5499 ac_cv_use_gauge='wxUSE_GAUGE='$DEFAULT_wxUSE_GAUGE
5500
5501 fi
5502
5503
5504 eval "$ac_cv_use_gauge"
5505 if test "$no_cache" != 1; then
5506 echo $ac_cv_use_gauge >> ${wx_arg_cache_file}.tmp
5507 fi
5508
5509 if test "$wxUSE_GAUGE" = yes; then
5510 echo "$ac_t""yes" 1>&6
5511 else
5512 echo "$ac_t""no" 1>&6
5513 fi
5514
5515
5516 echo $ac_n "checking for --enable-grid""... $ac_c" 1>&6
5517 echo "configure:5518: checking for --enable-grid" >&5
5518 no_cache=0
5519 # Check whether --enable-grid or --disable-grid was given.
5520 if test "${enable_grid+set}" = set; then
5521 enableval="$enable_grid"
5522
5523 if test "$enableval" = yes; then
5524 ac_cv_use_grid='wxUSE_GRID=yes'
5525 else
5526 ac_cv_use_grid='wxUSE_GRID=no'
5527 fi
5528
5529 else
5530
5531 LINE=`grep "wxUSE_GRID" ${wx_arg_cache_file}`
5532 if test "x$LINE" != x ; then
5533 eval "DEFAULT_$LINE"
5534 else
5535 no_cache=1
5536 fi
5537
5538 ac_cv_use_grid='wxUSE_GRID='$DEFAULT_wxUSE_GRID
5539
5540 fi
5541
5542
5543 eval "$ac_cv_use_grid"
5544 if test "$no_cache" != 1; then
5545 echo $ac_cv_use_grid >> ${wx_arg_cache_file}.tmp
5546 fi
5547
5548 if test "$wxUSE_GRID" = yes; then
5549 echo "$ac_t""yes" 1>&6
5550 else
5551 echo "$ac_t""no" 1>&6
5552 fi
5553
5554
5555 echo $ac_n "checking for --enable-newgrid""... $ac_c" 1>&6
5556 echo "configure:5557: checking for --enable-newgrid" >&5
5557 no_cache=0
5558 # Check whether --enable-newgrid or --disable-newgrid was given.
5559 if test "${enable_newgrid+set}" = set; then
5560 enableval="$enable_newgrid"
5561
5562 if test "$enableval" = yes; then
5563 ac_cv_use_newgrid='wxUSE_NEW_GRID=yes'
5564 else
5565 ac_cv_use_newgrid='wxUSE_NEW_GRID=no'
5566 fi
5567
5568 else
5569
5570 LINE=`grep "wxUSE_NEW_GRID" ${wx_arg_cache_file}`
5571 if test "x$LINE" != x ; then
5572 eval "DEFAULT_$LINE"
5573 else
5574 no_cache=1
5575 fi
5576
5577 ac_cv_use_newgrid='wxUSE_NEW_GRID='$DEFAULT_wxUSE_NEW_GRID
5578
5579 fi
5580
5581
5582 eval "$ac_cv_use_newgrid"
5583 if test "$no_cache" != 1; then
5584 echo $ac_cv_use_newgrid >> ${wx_arg_cache_file}.tmp
5585 fi
5586
5587 if test "$wxUSE_NEW_GRID" = yes; then
5588 echo "$ac_t""yes" 1>&6
5589 else
5590 echo "$ac_t""no" 1>&6
5591 fi
5592
5593
5594 echo $ac_n "checking for --enable-imaglist""... $ac_c" 1>&6
5595 echo "configure:5596: checking for --enable-imaglist" >&5
5596 no_cache=0
5597 # Check whether --enable-imaglist or --disable-imaglist was given.
5598 if test "${enable_imaglist+set}" = set; then
5599 enableval="$enable_imaglist"
5600
5601 if test "$enableval" = yes; then
5602 ac_cv_use_imaglist='wxUSE_IMAGLIST=yes'
5603 else
5604 ac_cv_use_imaglist='wxUSE_IMAGLIST=no'
5605 fi
5606
5607 else
5608
5609 LINE=`grep "wxUSE_IMAGLIST" ${wx_arg_cache_file}`
5610 if test "x$LINE" != x ; then
5611 eval "DEFAULT_$LINE"
5612 else
5613 no_cache=1
5614 fi
5615
5616 ac_cv_use_imaglist='wxUSE_IMAGLIST='$DEFAULT_wxUSE_IMAGLIST
5617
5618 fi
5619
5620
5621 eval "$ac_cv_use_imaglist"
5622 if test "$no_cache" != 1; then
5623 echo $ac_cv_use_imaglist >> ${wx_arg_cache_file}.tmp
5624 fi
5625
5626 if test "$wxUSE_IMAGLIST" = yes; then
5627 echo "$ac_t""yes" 1>&6
5628 else
5629 echo "$ac_t""no" 1>&6
5630 fi
5631
5632
5633 echo $ac_n "checking for --enable-listbox""... $ac_c" 1>&6
5634 echo "configure:5635: checking for --enable-listbox" >&5
5635 no_cache=0
5636 # Check whether --enable-listbox or --disable-listbox was given.
5637 if test "${enable_listbox+set}" = set; then
5638 enableval="$enable_listbox"
5639
5640 if test "$enableval" = yes; then
5641 ac_cv_use_listbox='wxUSE_LISTBOX=yes'
5642 else
5643 ac_cv_use_listbox='wxUSE_LISTBOX=no'
5644 fi
5645
5646 else
5647
5648 LINE=`grep "wxUSE_LISTBOX" ${wx_arg_cache_file}`
5649 if test "x$LINE" != x ; then
5650 eval "DEFAULT_$LINE"
5651 else
5652 no_cache=1
5653 fi
5654
5655 ac_cv_use_listbox='wxUSE_LISTBOX='$DEFAULT_wxUSE_LISTBOX
5656
5657 fi
5658
5659
5660 eval "$ac_cv_use_listbox"
5661 if test "$no_cache" != 1; then
5662 echo $ac_cv_use_listbox >> ${wx_arg_cache_file}.tmp
5663 fi
5664
5665 if test "$wxUSE_LISTBOX" = yes; then
5666 echo "$ac_t""yes" 1>&6
5667 else
5668 echo "$ac_t""no" 1>&6
5669 fi
5670
5671
5672 echo $ac_n "checking for --enable-listctrl""... $ac_c" 1>&6
5673 echo "configure:5674: checking for --enable-listctrl" >&5
5674 no_cache=0
5675 # Check whether --enable-listctrl or --disable-listctrl was given.
5676 if test "${enable_listctrl+set}" = set; then
5677 enableval="$enable_listctrl"
5678
5679 if test "$enableval" = yes; then
5680 ac_cv_use_listctrl='wxUSE_LISTCTRL=yes'
5681 else
5682 ac_cv_use_listctrl='wxUSE_LISTCTRL=no'
5683 fi
5684
5685 else
5686
5687 LINE=`grep "wxUSE_LISTCTRL" ${wx_arg_cache_file}`
5688 if test "x$LINE" != x ; then
5689 eval "DEFAULT_$LINE"
5690 else
5691 no_cache=1
5692 fi
5693
5694 ac_cv_use_listctrl='wxUSE_LISTCTRL='$DEFAULT_wxUSE_LISTCTRL
5695
5696 fi
5697
5698
5699 eval "$ac_cv_use_listctrl"
5700 if test "$no_cache" != 1; then
5701 echo $ac_cv_use_listctrl >> ${wx_arg_cache_file}.tmp
5702 fi
5703
5704 if test "$wxUSE_LISTCTRL" = yes; then
5705 echo "$ac_t""yes" 1>&6
5706 else
5707 echo "$ac_t""no" 1>&6
5708 fi
5709
5710
5711 echo $ac_n "checking for --enable-notebook""... $ac_c" 1>&6
5712 echo "configure:5713: checking for --enable-notebook" >&5
5713 no_cache=0
5714 # Check whether --enable-notebook or --disable-notebook was given.
5715 if test "${enable_notebook+set}" = set; then
5716 enableval="$enable_notebook"
5717
5718 if test "$enableval" = yes; then
5719 ac_cv_use_notebook='wxUSE_NOTEBOOK=yes'
5720 else
5721 ac_cv_use_notebook='wxUSE_NOTEBOOK=no'
5722 fi
5723
5724 else
5725
5726 LINE=`grep "wxUSE_NOTEBOOK" ${wx_arg_cache_file}`
5727 if test "x$LINE" != x ; then
5728 eval "DEFAULT_$LINE"
5729 else
5730 no_cache=1
5731 fi
5732
5733 ac_cv_use_notebook='wxUSE_NOTEBOOK='$DEFAULT_wxUSE_NOTEBOOK
5734
5735 fi
5736
5737
5738 eval "$ac_cv_use_notebook"
5739 if test "$no_cache" != 1; then
5740 echo $ac_cv_use_notebook >> ${wx_arg_cache_file}.tmp
5741 fi
5742
5743 if test "$wxUSE_NOTEBOOK" = yes; then
5744 echo "$ac_t""yes" 1>&6
5745 else
5746 echo "$ac_t""no" 1>&6
5747 fi
5748
5749
5750 echo $ac_n "checking for --enable-radiobox""... $ac_c" 1>&6
5751 echo "configure:5752: checking for --enable-radiobox" >&5
5752 no_cache=0
5753 # Check whether --enable-radiobox or --disable-radiobox was given.
5754 if test "${enable_radiobox+set}" = set; then
5755 enableval="$enable_radiobox"
5756
5757 if test "$enableval" = yes; then
5758 ac_cv_use_radiobox='wxUSE_RADIOBOX=yes'
5759 else
5760 ac_cv_use_radiobox='wxUSE_RADIOBOX=no'
5761 fi
5762
5763 else
5764
5765 LINE=`grep "wxUSE_RADIOBOX" ${wx_arg_cache_file}`
5766 if test "x$LINE" != x ; then
5767 eval "DEFAULT_$LINE"
5768 else
5769 no_cache=1
5770 fi
5771
5772 ac_cv_use_radiobox='wxUSE_RADIOBOX='$DEFAULT_wxUSE_RADIOBOX
5773
5774 fi
5775
5776
5777 eval "$ac_cv_use_radiobox"
5778 if test "$no_cache" != 1; then
5779 echo $ac_cv_use_radiobox >> ${wx_arg_cache_file}.tmp
5780 fi
5781
5782 if test "$wxUSE_RADIOBOX" = yes; then
5783 echo "$ac_t""yes" 1>&6
5784 else
5785 echo "$ac_t""no" 1>&6
5786 fi
5787
5788
5789 echo $ac_n "checking for --enable-radiobtn""... $ac_c" 1>&6
5790 echo "configure:5791: checking for --enable-radiobtn" >&5
5791 no_cache=0
5792 # Check whether --enable-radiobtn or --disable-radiobtn was given.
5793 if test "${enable_radiobtn+set}" = set; then
5794 enableval="$enable_radiobtn"
5795
5796 if test "$enableval" = yes; then
5797 ac_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
5798 else
5799 ac_cv_use_radiobtn='wxUSE_RADIOBTN=no'
5800 fi
5801
5802 else
5803
5804 LINE=`grep "wxUSE_RADIOBTN" ${wx_arg_cache_file}`
5805 if test "x$LINE" != x ; then
5806 eval "DEFAULT_$LINE"
5807 else
5808 no_cache=1
5809 fi
5810
5811 ac_cv_use_radiobtn='wxUSE_RADIOBTN='$DEFAULT_wxUSE_RADIOBTN
5812
5813 fi
5814
5815
5816 eval "$ac_cv_use_radiobtn"
5817 if test "$no_cache" != 1; then
5818 echo $ac_cv_use_radiobtn >> ${wx_arg_cache_file}.tmp
5819 fi
5820
5821 if test "$wxUSE_RADIOBTN" = yes; then
5822 echo "$ac_t""yes" 1>&6
5823 else
5824 echo "$ac_t""no" 1>&6
5825 fi
5826
5827
5828 echo $ac_n "checking for --enable-sash""... $ac_c" 1>&6
5829 echo "configure:5830: checking for --enable-sash" >&5
5830 no_cache=0
5831 # Check whether --enable-sash or --disable-sash was given.
5832 if test "${enable_sash+set}" = set; then
5833 enableval="$enable_sash"
5834
5835 if test "$enableval" = yes; then
5836 ac_cv_use_sash='wxUSE_SASH=yes'
5837 else
5838 ac_cv_use_sash='wxUSE_SASH=no'
5839 fi
5840
5841 else
5842
5843 LINE=`grep "wxUSE_SASH" ${wx_arg_cache_file}`
5844 if test "x$LINE" != x ; then
5845 eval "DEFAULT_$LINE"
5846 else
5847 no_cache=1
5848 fi
5849
5850 ac_cv_use_sash='wxUSE_SASH='$DEFAULT_wxUSE_SASH
5851
5852 fi
5853
5854
5855 eval "$ac_cv_use_sash"
5856 if test "$no_cache" != 1; then
5857 echo $ac_cv_use_sash >> ${wx_arg_cache_file}.tmp
5858 fi
5859
5860 if test "$wxUSE_SASH" = yes; then
5861 echo "$ac_t""yes" 1>&6
5862 else
5863 echo "$ac_t""no" 1>&6
5864 fi
5865
5866
5867 echo $ac_n "checking for --enable-scrollbar""... $ac_c" 1>&6
5868 echo "configure:5869: checking for --enable-scrollbar" >&5
5869 no_cache=0
5870 # Check whether --enable-scrollbar or --disable-scrollbar was given.
5871 if test "${enable_scrollbar+set}" = set; then
5872 enableval="$enable_scrollbar"
5873
5874 if test "$enableval" = yes; then
5875 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
5876 else
5877 ac_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
5878 fi
5879
5880 else
5881
5882 LINE=`grep "wxUSE_SCROLLBAR" ${wx_arg_cache_file}`
5883 if test "x$LINE" != x ; then
5884 eval "DEFAULT_$LINE"
5885 else
5886 no_cache=1
5887 fi
5888
5889 ac_cv_use_scrollbar='wxUSE_SCROLLBAR='$DEFAULT_wxUSE_SCROLLBAR
5890
5891 fi
5892
5893
5894 eval "$ac_cv_use_scrollbar"
5895 if test "$no_cache" != 1; then
5896 echo $ac_cv_use_scrollbar >> ${wx_arg_cache_file}.tmp
5897 fi
5898
5899 if test "$wxUSE_SCROLLBAR" = yes; then
5900 echo "$ac_t""yes" 1>&6
5901 else
5902 echo "$ac_t""no" 1>&6
5903 fi
5904
5905
5906 echo $ac_n "checking for --enable-slider""... $ac_c" 1>&6
5907 echo "configure:5908: checking for --enable-slider" >&5
5908 no_cache=0
5909 # Check whether --enable-slider or --disable-slider was given.
5910 if test "${enable_slider+set}" = set; then
5911 enableval="$enable_slider"
5912
5913 if test "$enableval" = yes; then
5914 ac_cv_use_slider='wxUSE_SLIDER=yes'
5915 else
5916 ac_cv_use_slider='wxUSE_SLIDER=no'
5917 fi
5918
5919 else
5920
5921 LINE=`grep "wxUSE_SLIDER" ${wx_arg_cache_file}`
5922 if test "x$LINE" != x ; then
5923 eval "DEFAULT_$LINE"
5924 else
5925 no_cache=1
5926 fi
5927
5928 ac_cv_use_slider='wxUSE_SLIDER='$DEFAULT_wxUSE_SLIDER
5929
5930 fi
5931
5932
5933 eval "$ac_cv_use_slider"
5934 if test "$no_cache" != 1; then
5935 echo $ac_cv_use_slider >> ${wx_arg_cache_file}.tmp
5936 fi
5937
5938 if test "$wxUSE_SLIDER" = yes; then
5939 echo "$ac_t""yes" 1>&6
5940 else
5941 echo "$ac_t""no" 1>&6
5942 fi
5943
5944
5945 echo $ac_n "checking for --enable-spinbtn""... $ac_c" 1>&6
5946 echo "configure:5947: checking for --enable-spinbtn" >&5
5947 no_cache=0
5948 # Check whether --enable-spinbtn or --disable-spinbtn was given.
5949 if test "${enable_spinbtn+set}" = set; then
5950 enableval="$enable_spinbtn"
5951
5952 if test "$enableval" = yes; then
5953 ac_cv_use_spinbtn='wxUSE_SPINBTN=yes'
5954 else
5955 ac_cv_use_spinbtn='wxUSE_SPINBTN=no'
5956 fi
5957
5958 else
5959
5960 LINE=`grep "wxUSE_SPINBTN" ${wx_arg_cache_file}`
5961 if test "x$LINE" != x ; then
5962 eval "DEFAULT_$LINE"
5963 else
5964 no_cache=1
5965 fi
5966
5967 ac_cv_use_spinbtn='wxUSE_SPINBTN='$DEFAULT_wxUSE_SPINBTN
5968
5969 fi
5970
5971
5972 eval "$ac_cv_use_spinbtn"
5973 if test "$no_cache" != 1; then
5974 echo $ac_cv_use_spinbtn >> ${wx_arg_cache_file}.tmp
5975 fi
5976
5977 if test "$wxUSE_SPINBTN" = yes; then
5978 echo "$ac_t""yes" 1>&6
5979 else
5980 echo "$ac_t""no" 1>&6
5981 fi
5982
5983
5984 echo $ac_n "checking for --enable-spinctrl""... $ac_c" 1>&6
5985 echo "configure:5986: checking for --enable-spinctrl" >&5
5986 no_cache=0
5987 # Check whether --enable-spinctrl or --disable-spinctrl was given.
5988 if test "${enable_spinctrl+set}" = set; then
5989 enableval="$enable_spinctrl"
5990
5991 if test "$enableval" = yes; then
5992 ac_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
5993 else
5994 ac_cv_use_spinctrl='wxUSE_SPINCTRL=no'
5995 fi
5996
5997 else
5998
5999 LINE=`grep "wxUSE_SPINCTRL" ${wx_arg_cache_file}`
6000 if test "x$LINE" != x ; then
6001 eval "DEFAULT_$LINE"
6002 else
6003 no_cache=1
6004 fi
6005
6006 ac_cv_use_spinctrl='wxUSE_SPINCTRL='$DEFAULT_wxUSE_SPINCTRL
6007
6008 fi
6009
6010
6011 eval "$ac_cv_use_spinctrl"
6012 if test "$no_cache" != 1; then
6013 echo $ac_cv_use_spinctrl >> ${wx_arg_cache_file}.tmp
6014 fi
6015
6016 if test "$wxUSE_SPINCTRL" = yes; then
6017 echo "$ac_t""yes" 1>&6
6018 else
6019 echo "$ac_t""no" 1>&6
6020 fi
6021
6022
6023 echo $ac_n "checking for --enable-splitter""... $ac_c" 1>&6
6024 echo "configure:6025: checking for --enable-splitter" >&5
6025 no_cache=0
6026 # Check whether --enable-splitter or --disable-splitter was given.
6027 if test "${enable_splitter+set}" = set; then
6028 enableval="$enable_splitter"
6029
6030 if test "$enableval" = yes; then
6031 ac_cv_use_splitter='wxUSE_SPLITTER=yes'
6032 else
6033 ac_cv_use_splitter='wxUSE_SPLITTER=no'
6034 fi
6035
6036 else
6037
6038 LINE=`grep "wxUSE_SPLITTER" ${wx_arg_cache_file}`
6039 if test "x$LINE" != x ; then
6040 eval "DEFAULT_$LINE"
6041 else
6042 no_cache=1
6043 fi
6044
6045 ac_cv_use_splitter='wxUSE_SPLITTER='$DEFAULT_wxUSE_SPLITTER
6046
6047 fi
6048
6049
6050 eval "$ac_cv_use_splitter"
6051 if test "$no_cache" != 1; then
6052 echo $ac_cv_use_splitter >> ${wx_arg_cache_file}.tmp
6053 fi
6054
6055 if test "$wxUSE_SPLITTER" = yes; then
6056 echo "$ac_t""yes" 1>&6
6057 else
6058 echo "$ac_t""no" 1>&6
6059 fi
6060
6061
6062 echo $ac_n "checking for --enable-statbmp""... $ac_c" 1>&6
6063 echo "configure:6064: checking for --enable-statbmp" >&5
6064 no_cache=0
6065 # Check whether --enable-statbmp or --disable-statbmp was given.
6066 if test "${enable_statbmp+set}" = set; then
6067 enableval="$enable_statbmp"
6068
6069 if test "$enableval" = yes; then
6070 ac_cv_use_statbmp='wxUSE_STATBMP=yes'
6071 else
6072 ac_cv_use_statbmp='wxUSE_STATBMP=no'
6073 fi
6074
6075 else
6076
6077 LINE=`grep "wxUSE_STATBMP" ${wx_arg_cache_file}`
6078 if test "x$LINE" != x ; then
6079 eval "DEFAULT_$LINE"
6080 else
6081 no_cache=1
6082 fi
6083
6084 ac_cv_use_statbmp='wxUSE_STATBMP='$DEFAULT_wxUSE_STATBMP
6085
6086 fi
6087
6088
6089 eval "$ac_cv_use_statbmp"
6090 if test "$no_cache" != 1; then
6091 echo $ac_cv_use_statbmp >> ${wx_arg_cache_file}.tmp
6092 fi
6093
6094 if test "$wxUSE_STATBMP" = yes; then
6095 echo "$ac_t""yes" 1>&6
6096 else
6097 echo "$ac_t""no" 1>&6
6098 fi
6099
6100
6101 echo $ac_n "checking for --enable-statbox""... $ac_c" 1>&6
6102 echo "configure:6103: checking for --enable-statbox" >&5
6103 no_cache=0
6104 # Check whether --enable-statbox or --disable-statbox was given.
6105 if test "${enable_statbox+set}" = set; then
6106 enableval="$enable_statbox"
6107
6108 if test "$enableval" = yes; then
6109 ac_cv_use_statbox='wxUSE_STATBOX=yes'
6110 else
6111 ac_cv_use_statbox='wxUSE_STATBOX=no'
6112 fi
6113
6114 else
6115
6116 LINE=`grep "wxUSE_STATBOX" ${wx_arg_cache_file}`
6117 if test "x$LINE" != x ; then
6118 eval "DEFAULT_$LINE"
6119 else
6120 no_cache=1
6121 fi
6122
6123 ac_cv_use_statbox='wxUSE_STATBOX='$DEFAULT_wxUSE_STATBOX
6124
6125 fi
6126
6127
6128 eval "$ac_cv_use_statbox"
6129 if test "$no_cache" != 1; then
6130 echo $ac_cv_use_statbox >> ${wx_arg_cache_file}.tmp
6131 fi
6132
6133 if test "$wxUSE_STATBOX" = yes; then
6134 echo "$ac_t""yes" 1>&6
6135 else
6136 echo "$ac_t""no" 1>&6
6137 fi
6138
6139
6140 echo $ac_n "checking for --enable-statline""... $ac_c" 1>&6
6141 echo "configure:6142: checking for --enable-statline" >&5
6142 no_cache=0
6143 # Check whether --enable-statline or --disable-statline was given.
6144 if test "${enable_statline+set}" = set; then
6145 enableval="$enable_statline"
6146
6147 if test "$enableval" = yes; then
6148 ac_cv_use_statline='wxUSE_STATLINE=yes'
6149 else
6150 ac_cv_use_statline='wxUSE_STATLINE=no'
6151 fi
6152
6153 else
6154
6155 LINE=`grep "wxUSE_STATLINE" ${wx_arg_cache_file}`
6156 if test "x$LINE" != x ; then
6157 eval "DEFAULT_$LINE"
6158 else
6159 no_cache=1
6160 fi
6161
6162 ac_cv_use_statline='wxUSE_STATLINE='$DEFAULT_wxUSE_STATLINE
6163
6164 fi
6165
6166
6167 eval "$ac_cv_use_statline"
6168 if test "$no_cache" != 1; then
6169 echo $ac_cv_use_statline >> ${wx_arg_cache_file}.tmp
6170 fi
6171
6172 if test "$wxUSE_STATLINE" = yes; then
6173 echo "$ac_t""yes" 1>&6
6174 else
6175 echo "$ac_t""no" 1>&6
6176 fi
6177
6178
6179 echo $ac_n "checking for --enable-stattext""... $ac_c" 1>&6
6180 echo "configure:6181: checking for --enable-stattext" >&5
6181 no_cache=0
6182 # Check whether --enable-stattext or --disable-stattext was given.
6183 if test "${enable_stattext+set}" = set; then
6184 enableval="$enable_stattext"
6185
6186 if test "$enableval" = yes; then
6187 ac_cv_use_stattext='wxUSE_STATTEXT=yes'
6188 else
6189 ac_cv_use_stattext='wxUSE_STATTEXT=no'
6190 fi
6191
6192 else
6193
6194 LINE=`grep "wxUSE_STATTEXT" ${wx_arg_cache_file}`
6195 if test "x$LINE" != x ; then
6196 eval "DEFAULT_$LINE"
6197 else
6198 no_cache=1
6199 fi
6200
6201 ac_cv_use_stattext='wxUSE_STATTEXT='$DEFAULT_wxUSE_STATTEXT
6202
6203 fi
6204
6205
6206 eval "$ac_cv_use_stattext"
6207 if test "$no_cache" != 1; then
6208 echo $ac_cv_use_stattext >> ${wx_arg_cache_file}.tmp
6209 fi
6210
6211 if test "$wxUSE_STATTEXT" = yes; then
6212 echo "$ac_t""yes" 1>&6
6213 else
6214 echo "$ac_t""no" 1>&6
6215 fi
6216
6217
6218 echo $ac_n "checking for --enable-statusbar""... $ac_c" 1>&6
6219 echo "configure:6220: checking for --enable-statusbar" >&5
6220 no_cache=0
6221 # Check whether --enable-statusbar or --disable-statusbar was given.
6222 if test "${enable_statusbar+set}" = set; then
6223 enableval="$enable_statusbar"
6224
6225 if test "$enableval" = yes; then
6226 ac_cv_use_statusbar='wxUSE_STATUSBAR=yes'
6227 else
6228 ac_cv_use_statusbar='wxUSE_STATUSBAR=no'
6229 fi
6230
6231 else
6232
6233 LINE=`grep "wxUSE_STATUSBAR" ${wx_arg_cache_file}`
6234 if test "x$LINE" != x ; then
6235 eval "DEFAULT_$LINE"
6236 else
6237 no_cache=1
6238 fi
6239
6240 ac_cv_use_statusbar='wxUSE_STATUSBAR='$DEFAULT_wxUSE_STATUSBAR
6241
6242 fi
6243
6244
6245 eval "$ac_cv_use_statusbar"
6246 if test "$no_cache" != 1; then
6247 echo $ac_cv_use_statusbar >> ${wx_arg_cache_file}.tmp
6248 fi
6249
6250 if test "$wxUSE_STATUSBAR" = yes; then
6251 echo "$ac_t""yes" 1>&6
6252 else
6253 echo "$ac_t""no" 1>&6
6254 fi
6255
6256
6257 echo $ac_n "checking for --enable-tabdialog""... $ac_c" 1>&6
6258 echo "configure:6259: checking for --enable-tabdialog" >&5
6259 no_cache=0
6260 # Check whether --enable-tabdialog or --disable-tabdialog was given.
6261 if test "${enable_tabdialog+set}" = set; then
6262 enableval="$enable_tabdialog"
6263
6264 if test "$enableval" = yes; then
6265 ac_cv_use_tabdialog='wxUSE_TABDIALOG=yes'
6266 else
6267 ac_cv_use_tabdialog='wxUSE_TABDIALOG=no'
6268 fi
6269
6270 else
6271
6272 LINE=`grep "wxUSE_TABDIALOG" ${wx_arg_cache_file}`
6273 if test "x$LINE" != x ; then
6274 eval "DEFAULT_$LINE"
6275 else
6276 no_cache=1
6277 fi
6278
6279 ac_cv_use_tabdialog='wxUSE_TABDIALOG='$DEFAULT_wxUSE_TABDIALOG
6280
6281 fi
6282
6283
6284 eval "$ac_cv_use_tabdialog"
6285 if test "$no_cache" != 1; then
6286 echo $ac_cv_use_tabdialog >> ${wx_arg_cache_file}.tmp
6287 fi
6288
6289 if test "$wxUSE_TABDIALOG" = yes; then
6290 echo "$ac_t""yes" 1>&6
6291 else
6292 echo "$ac_t""no" 1>&6
6293 fi
6294
6295
6296 echo $ac_n "checking for --enable-textctrl""... $ac_c" 1>&6
6297 echo "configure:6298: checking for --enable-textctrl" >&5
6298 no_cache=0
6299 # Check whether --enable-textctrl or --disable-textctrl was given.
6300 if test "${enable_textctrl+set}" = set; then
6301 enableval="$enable_textctrl"
6302
6303 if test "$enableval" = yes; then
6304 ac_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
6305 else
6306 ac_cv_use_textctrl='wxUSE_TEXTCTRL=no'
6307 fi
6308
6309 else
6310
6311 LINE=`grep "wxUSE_TEXTCTRL" ${wx_arg_cache_file}`
6312 if test "x$LINE" != x ; then
6313 eval "DEFAULT_$LINE"
6314 else
6315 no_cache=1
6316 fi
6317
6318 ac_cv_use_textctrl='wxUSE_TEXTCTRL='$DEFAULT_wxUSE_TEXTCTRL
6319
6320 fi
6321
6322
6323 eval "$ac_cv_use_textctrl"
6324 if test "$no_cache" != 1; then
6325 echo $ac_cv_use_textctrl >> ${wx_arg_cache_file}.tmp
6326 fi
6327
6328 if test "$wxUSE_TEXTCTRL" = yes; then
6329 echo "$ac_t""yes" 1>&6
6330 else
6331 echo "$ac_t""no" 1>&6
6332 fi
6333
6334
6335 echo $ac_n "checking for --enable-togglebtn""... $ac_c" 1>&6
6336 echo "configure:6337: checking for --enable-togglebtn" >&5
6337 no_cache=0
6338 # Check whether --enable-togglebtn or --disable-togglebtn was given.
6339 if test "${enable_togglebtn+set}" = set; then
6340 enableval="$enable_togglebtn"
6341
6342 if test "$enableval" = yes; then
6343 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
6344 else
6345 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
6346 fi
6347
6348 else
6349
6350 LINE=`grep "wxUSE_TOGGLEBTN" ${wx_arg_cache_file}`
6351 if test "x$LINE" != x ; then
6352 eval "DEFAULT_$LINE"
6353 else
6354 no_cache=1
6355 fi
6356
6357 ac_cv_use_togglebtn='wxUSE_TOGGLEBTN='$DEFAULT_wxUSE_TOGGLEBTN
6358
6359 fi
6360
6361
6362 eval "$ac_cv_use_togglebtn"
6363 if test "$no_cache" != 1; then
6364 echo $ac_cv_use_togglebtn >> ${wx_arg_cache_file}.tmp
6365 fi
6366
6367 if test "$wxUSE_TOGGLEBTN" = yes; then
6368 echo "$ac_t""yes" 1>&6
6369 else
6370 echo "$ac_t""no" 1>&6
6371 fi
6372
6373
6374 echo $ac_n "checking for --enable-toolbar""... $ac_c" 1>&6
6375 echo "configure:6376: checking for --enable-toolbar" >&5
6376 no_cache=0
6377 # Check whether --enable-toolbar or --disable-toolbar was given.
6378 if test "${enable_toolbar+set}" = set; then
6379 enableval="$enable_toolbar"
6380
6381 if test "$enableval" = yes; then
6382 ac_cv_use_toolbar='wxUSE_TOOLBAR=yes'
6383 else
6384 ac_cv_use_toolbar='wxUSE_TOOLBAR=no'
6385 fi
6386
6387 else
6388
6389 LINE=`grep "wxUSE_TOOLBAR" ${wx_arg_cache_file}`
6390 if test "x$LINE" != x ; then
6391 eval "DEFAULT_$LINE"
6392 else
6393 no_cache=1
6394 fi
6395
6396 ac_cv_use_toolbar='wxUSE_TOOLBAR='$DEFAULT_wxUSE_TOOLBAR
6397
6398 fi
6399
6400
6401 eval "$ac_cv_use_toolbar"
6402 if test "$no_cache" != 1; then
6403 echo $ac_cv_use_toolbar >> ${wx_arg_cache_file}.tmp
6404 fi
6405
6406 if test "$wxUSE_TOOLBAR" = yes; then
6407 echo "$ac_t""yes" 1>&6
6408 else
6409 echo "$ac_t""no" 1>&6
6410 fi
6411
6412
6413 echo $ac_n "checking for --enable-tbarnative""... $ac_c" 1>&6
6414 echo "configure:6415: checking for --enable-tbarnative" >&5
6415 no_cache=0
6416 # Check whether --enable-tbarnative or --disable-tbarnative was given.
6417 if test "${enable_tbarnative+set}" = set; then
6418 enableval="$enable_tbarnative"
6419
6420 if test "$enableval" = yes; then
6421 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
6422 else
6423 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
6424 fi
6425
6426 else
6427
6428 LINE=`grep "wxUSE_TOOLBAR_NATIVE" ${wx_arg_cache_file}`
6429 if test "x$LINE" != x ; then
6430 eval "DEFAULT_$LINE"
6431 else
6432 no_cache=1
6433 fi
6434
6435 ac_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE='$DEFAULT_wxUSE_TOOLBAR_NATIVE
6436
6437 fi
6438
6439
6440 eval "$ac_cv_use_tbarnative"
6441 if test "$no_cache" != 1; then
6442 echo $ac_cv_use_tbarnative >> ${wx_arg_cache_file}.tmp
6443 fi
6444
6445 if test "$wxUSE_TOOLBAR_NATIVE" = yes; then
6446 echo "$ac_t""yes" 1>&6
6447 else
6448 echo "$ac_t""no" 1>&6
6449 fi
6450
6451
6452 echo $ac_n "checking for --enable-tbarsmpl""... $ac_c" 1>&6
6453 echo "configure:6454: checking for --enable-tbarsmpl" >&5
6454 no_cache=0
6455 # Check whether --enable-tbarsmpl or --disable-tbarsmpl was given.
6456 if test "${enable_tbarsmpl+set}" = set; then
6457 enableval="$enable_tbarsmpl"
6458
6459 if test "$enableval" = yes; then
6460 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=yes'
6461 else
6462 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE=no'
6463 fi
6464
6465 else
6466
6467 LINE=`grep "wxUSE_TOOLBAR_SIMPLE" ${wx_arg_cache_file}`
6468 if test "x$LINE" != x ; then
6469 eval "DEFAULT_$LINE"
6470 else
6471 no_cache=1
6472 fi
6473
6474 ac_cv_use_tbarsmpl='wxUSE_TOOLBAR_SIMPLE='$DEFAULT_wxUSE_TOOLBAR_SIMPLE
6475
6476 fi
6477
6478
6479 eval "$ac_cv_use_tbarsmpl"
6480 if test "$no_cache" != 1; then
6481 echo $ac_cv_use_tbarsmpl >> ${wx_arg_cache_file}.tmp
6482 fi
6483
6484 if test "$wxUSE_TOOLBAR_SIMPLE" = yes; then
6485 echo "$ac_t""yes" 1>&6
6486 else
6487 echo "$ac_t""no" 1>&6
6488 fi
6489
6490
6491 echo $ac_n "checking for --enable-treectrl""... $ac_c" 1>&6
6492 echo "configure:6493: checking for --enable-treectrl" >&5
6493 no_cache=0
6494 # Check whether --enable-treectrl or --disable-treectrl was given.
6495 if test "${enable_treectrl+set}" = set; then
6496 enableval="$enable_treectrl"
6497
6498 if test "$enableval" = yes; then
6499 ac_cv_use_treectrl='wxUSE_TREECTRL=yes'
6500 else
6501 ac_cv_use_treectrl='wxUSE_TREECTRL=no'
6502 fi
6503
6504 else
6505
6506 LINE=`grep "wxUSE_TREECTRL" ${wx_arg_cache_file}`
6507 if test "x$LINE" != x ; then
6508 eval "DEFAULT_$LINE"
6509 else
6510 no_cache=1
6511 fi
6512
6513 ac_cv_use_treectrl='wxUSE_TREECTRL='$DEFAULT_wxUSE_TREECTRL
6514
6515 fi
6516
6517
6518 eval "$ac_cv_use_treectrl"
6519 if test "$no_cache" != 1; then
6520 echo $ac_cv_use_treectrl >> ${wx_arg_cache_file}.tmp
6521 fi
6522
6523 if test "$wxUSE_TREECTRL" = yes; then
6524 echo "$ac_t""yes" 1>&6
6525 else
6526 echo "$ac_t""no" 1>&6
6527 fi
6528
6529
6530 echo $ac_n "checking for --enable-popupwin""... $ac_c" 1>&6
6531 echo "configure:6532: checking for --enable-popupwin" >&5
6532 no_cache=0
6533 # Check whether --enable-popupwin or --disable-popupwin was given.
6534 if test "${enable_popupwin+set}" = set; then
6535 enableval="$enable_popupwin"
6536
6537 if test "$enableval" = yes; then
6538 ac_cv_use_popupwin='wxUSE_POPUPWIN=yes'
6539 else
6540 ac_cv_use_popupwin='wxUSE_POPUPWIN=no'
6541 fi
6542
6543 else
6544
6545 LINE=`grep "wxUSE_POPUPWIN" ${wx_arg_cache_file}`
6546 if test "x$LINE" != x ; then
6547 eval "DEFAULT_$LINE"
6548 else
6549 no_cache=1
6550 fi
6551
6552 ac_cv_use_popupwin='wxUSE_POPUPWIN='$DEFAULT_wxUSE_POPUPWIN
6553
6554 fi
6555
6556
6557 eval "$ac_cv_use_popupwin"
6558 if test "$no_cache" != 1; then
6559 echo $ac_cv_use_popupwin >> ${wx_arg_cache_file}.tmp
6560 fi
6561
6562 if test "$wxUSE_POPUPWIN" = yes; then
6563 echo "$ac_t""yes" 1>&6
6564 else
6565 echo "$ac_t""no" 1>&6
6566 fi
6567
6568
6569
6570
6571 echo $ac_n "checking for --enable-commondlg""... $ac_c" 1>&6
6572 echo "configure:6573: checking for --enable-commondlg" >&5
6573 no_cache=0
6574 # Check whether --enable-commondlg or --disable-commondlg was given.
6575 if test "${enable_commondlg+set}" = set; then
6576 enableval="$enable_commondlg"
6577
6578 if test "$enableval" = yes; then
6579 ac_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
6580 else
6581 ac_cv_use_commondlg='wxUSE_COMMONDLGS=no'
6582 fi
6583
6584 else
6585
6586 LINE=`grep "wxUSE_COMMONDLGS" ${wx_arg_cache_file}`
6587 if test "x$LINE" != x ; then
6588 eval "DEFAULT_$LINE"
6589 else
6590 no_cache=1
6591 fi
6592
6593 ac_cv_use_commondlg='wxUSE_COMMONDLGS='$DEFAULT_wxUSE_COMMONDLGS
6594
6595 fi
6596
6597
6598 eval "$ac_cv_use_commondlg"
6599 if test "$no_cache" != 1; then
6600 echo $ac_cv_use_commondlg >> ${wx_arg_cache_file}.tmp
6601 fi
6602
6603 if test "$wxUSE_COMMONDLGS" = yes; then
6604 echo "$ac_t""yes" 1>&6
6605 else
6606 echo "$ac_t""no" 1>&6
6607 fi
6608
6609
6610 echo $ac_n "checking for --enable-choicedlg""... $ac_c" 1>&6
6611 echo "configure:6612: checking for --enable-choicedlg" >&5
6612 no_cache=0
6613 # Check whether --enable-choicedlg or --disable-choicedlg was given.
6614 if test "${enable_choicedlg+set}" = set; then
6615 enableval="$enable_choicedlg"
6616
6617 if test "$enableval" = yes; then
6618 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
6619 else
6620 ac_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
6621 fi
6622
6623 else
6624
6625 LINE=`grep "wxUSE_CHOICEDLG" ${wx_arg_cache_file}`
6626 if test "x$LINE" != x ; then
6627 eval "DEFAULT_$LINE"
6628 else
6629 no_cache=1
6630 fi
6631
6632 ac_cv_use_choicedlg='wxUSE_CHOICEDLG='$DEFAULT_wxUSE_CHOICEDLG
6633
6634 fi
6635
6636
6637 eval "$ac_cv_use_choicedlg"
6638 if test "$no_cache" != 1; then
6639 echo $ac_cv_use_choicedlg >> ${wx_arg_cache_file}.tmp
6640 fi
6641
6642 if test "$wxUSE_CHOICEDLG" = yes; then
6643 echo "$ac_t""yes" 1>&6
6644 else
6645 echo "$ac_t""no" 1>&6
6646 fi
6647
6648
6649 echo $ac_n "checking for --enable-coldlg""... $ac_c" 1>&6
6650 echo "configure:6651: checking for --enable-coldlg" >&5
6651 no_cache=0
6652 # Check whether --enable-coldlg or --disable-coldlg was given.
6653 if test "${enable_coldlg+set}" = set; then
6654 enableval="$enable_coldlg"
6655
6656 if test "$enableval" = yes; then
6657 ac_cv_use_coldlg='wxUSE_COLOURDLG=yes'
6658 else
6659 ac_cv_use_coldlg='wxUSE_COLOURDLG=no'
6660 fi
6661
6662 else
6663
6664 LINE=`grep "wxUSE_COLOURDLG" ${wx_arg_cache_file}`
6665 if test "x$LINE" != x ; then
6666 eval "DEFAULT_$LINE"
6667 else
6668 no_cache=1
6669 fi
6670
6671 ac_cv_use_coldlg='wxUSE_COLOURDLG='$DEFAULT_wxUSE_COLOURDLG
6672
6673 fi
6674
6675
6676 eval "$ac_cv_use_coldlg"
6677 if test "$no_cache" != 1; then
6678 echo $ac_cv_use_coldlg >> ${wx_arg_cache_file}.tmp
6679 fi
6680
6681 if test "$wxUSE_COLOURDLG" = yes; then
6682 echo "$ac_t""yes" 1>&6
6683 else
6684 echo "$ac_t""no" 1>&6
6685 fi
6686
6687
6688 echo $ac_n "checking for --enable-filedlg""... $ac_c" 1>&6
6689 echo "configure:6690: checking for --enable-filedlg" >&5
6690 no_cache=0
6691 # Check whether --enable-filedlg or --disable-filedlg was given.
6692 if test "${enable_filedlg+set}" = set; then
6693 enableval="$enable_filedlg"
6694
6695 if test "$enableval" = yes; then
6696 ac_cv_use_filedlg='wxUSE_FILEDLG=yes'
6697 else
6698 ac_cv_use_filedlg='wxUSE_FILEDLG=no'
6699 fi
6700
6701 else
6702
6703 LINE=`grep "wxUSE_FILEDLG" ${wx_arg_cache_file}`
6704 if test "x$LINE" != x ; then
6705 eval "DEFAULT_$LINE"
6706 else
6707 no_cache=1
6708 fi
6709
6710 ac_cv_use_filedlg='wxUSE_FILEDLG='$DEFAULT_wxUSE_FILEDLG
6711
6712 fi
6713
6714
6715 eval "$ac_cv_use_filedlg"
6716 if test "$no_cache" != 1; then
6717 echo $ac_cv_use_filedlg >> ${wx_arg_cache_file}.tmp
6718 fi
6719
6720 if test "$wxUSE_FILEDLG" = yes; then
6721 echo "$ac_t""yes" 1>&6
6722 else
6723 echo "$ac_t""no" 1>&6
6724 fi
6725
6726
6727 echo $ac_n "checking for --enable-fontdlg""... $ac_c" 1>&6
6728 echo "configure:6729: checking for --enable-fontdlg" >&5
6729 no_cache=0
6730 # Check whether --enable-fontdlg or --disable-fontdlg was given.
6731 if test "${enable_fontdlg+set}" = set; then
6732 enableval="$enable_fontdlg"
6733
6734 if test "$enableval" = yes; then
6735 ac_cv_use_fontdlg='wxUSE_FONTDLG=yes'
6736 else
6737 ac_cv_use_fontdlg='wxUSE_FONTDLG=no'
6738 fi
6739
6740 else
6741
6742 LINE=`grep "wxUSE_FONTDLG" ${wx_arg_cache_file}`
6743 if test "x$LINE" != x ; then
6744 eval "DEFAULT_$LINE"
6745 else
6746 no_cache=1
6747 fi
6748
6749 ac_cv_use_fontdlg='wxUSE_FONTDLG='$DEFAULT_wxUSE_FONTDLG
6750
6751 fi
6752
6753
6754 eval "$ac_cv_use_fontdlg"
6755 if test "$no_cache" != 1; then
6756 echo $ac_cv_use_fontdlg >> ${wx_arg_cache_file}.tmp
6757 fi
6758
6759 if test "$wxUSE_FONTDLG" = yes; then
6760 echo "$ac_t""yes" 1>&6
6761 else
6762 echo "$ac_t""no" 1>&6
6763 fi
6764
6765
6766 echo $ac_n "checking for --enable-dirdlg""... $ac_c" 1>&6
6767 echo "configure:6768: checking for --enable-dirdlg" >&5
6768 no_cache=0
6769 # Check whether --enable-dirdlg or --disable-dirdlg was given.
6770 if test "${enable_dirdlg+set}" = set; then
6771 enableval="$enable_dirdlg"
6772
6773 if test "$enableval" = yes; then
6774 ac_cv_use_dirdlg='wxUSE_DIRDLG=yes'
6775 else
6776 ac_cv_use_dirdlg='wxUSE_DIRDLG=no'
6777 fi
6778
6779 else
6780
6781 LINE=`grep "wxUSE_DIRDLG" ${wx_arg_cache_file}`
6782 if test "x$LINE" != x ; then
6783 eval "DEFAULT_$LINE"
6784 else
6785 no_cache=1
6786 fi
6787
6788 ac_cv_use_dirdlg='wxUSE_DIRDLG='$DEFAULT_wxUSE_DIRDLG
6789
6790 fi
6791
6792
6793 eval "$ac_cv_use_dirdlg"
6794 if test "$no_cache" != 1; then
6795 echo $ac_cv_use_dirdlg >> ${wx_arg_cache_file}.tmp
6796 fi
6797
6798 if test "$wxUSE_DIRDLG" = yes; then
6799 echo "$ac_t""yes" 1>&6
6800 else
6801 echo "$ac_t""no" 1>&6
6802 fi
6803
6804
6805 echo $ac_n "checking for --enable-msgdlg""... $ac_c" 1>&6
6806 echo "configure:6807: checking for --enable-msgdlg" >&5
6807 no_cache=0
6808 # Check whether --enable-msgdlg or --disable-msgdlg was given.
6809 if test "${enable_msgdlg+set}" = set; then
6810 enableval="$enable_msgdlg"
6811
6812 if test "$enableval" = yes; then
6813 ac_cv_use_msgdlg='wxUSE_MSGDLG=yes'
6814 else
6815 ac_cv_use_msgdlg='wxUSE_MSGDLG=no'
6816 fi
6817
6818 else
6819
6820 LINE=`grep "wxUSE_MSGDLG" ${wx_arg_cache_file}`
6821 if test "x$LINE" != x ; then
6822 eval "DEFAULT_$LINE"
6823 else
6824 no_cache=1
6825 fi
6826
6827 ac_cv_use_msgdlg='wxUSE_MSGDLG='$DEFAULT_wxUSE_MSGDLG
6828
6829 fi
6830
6831
6832 eval "$ac_cv_use_msgdlg"
6833 if test "$no_cache" != 1; then
6834 echo $ac_cv_use_msgdlg >> ${wx_arg_cache_file}.tmp
6835 fi
6836
6837 if test "$wxUSE_MSGDLG" = yes; then
6838 echo "$ac_t""yes" 1>&6
6839 else
6840 echo "$ac_t""no" 1>&6
6841 fi
6842
6843
6844 echo $ac_n "checking for --enable-numberdlg""... $ac_c" 1>&6
6845 echo "configure:6846: checking for --enable-numberdlg" >&5
6846 no_cache=0
6847 # Check whether --enable-numberdlg or --disable-numberdlg was given.
6848 if test "${enable_numberdlg+set}" = set; then
6849 enableval="$enable_numberdlg"
6850
6851 if test "$enableval" = yes; then
6852 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
6853 else
6854 ac_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
6855 fi
6856
6857 else
6858
6859 LINE=`grep "wxUSE_NUMBERDLG" ${wx_arg_cache_file}`
6860 if test "x$LINE" != x ; then
6861 eval "DEFAULT_$LINE"
6862 else
6863 no_cache=1
6864 fi
6865
6866 ac_cv_use_numberdlg='wxUSE_NUMBERDLG='$DEFAULT_wxUSE_NUMBERDLG
6867
6868 fi
6869
6870
6871 eval "$ac_cv_use_numberdlg"
6872 if test "$no_cache" != 1; then
6873 echo $ac_cv_use_numberdlg >> ${wx_arg_cache_file}.tmp
6874 fi
6875
6876 if test "$wxUSE_NUMBERDLG" = yes; then
6877 echo "$ac_t""yes" 1>&6
6878 else
6879 echo "$ac_t""no" 1>&6
6880 fi
6881
6882
6883 echo $ac_n "checking for --enable-textdlg""... $ac_c" 1>&6
6884 echo "configure:6885: checking for --enable-textdlg" >&5
6885 no_cache=0
6886 # Check whether --enable-textdlg or --disable-textdlg was given.
6887 if test "${enable_textdlg+set}" = set; then
6888 enableval="$enable_textdlg"
6889
6890 if test "$enableval" = yes; then
6891 ac_cv_use_textdlg='wxUSE_TEXTDLG=yes'
6892 else
6893 ac_cv_use_textdlg='wxUSE_TEXTDLG=no'
6894 fi
6895
6896 else
6897
6898 LINE=`grep "wxUSE_TEXTDLG" ${wx_arg_cache_file}`
6899 if test "x$LINE" != x ; then
6900 eval "DEFAULT_$LINE"
6901 else
6902 no_cache=1
6903 fi
6904
6905 ac_cv_use_textdlg='wxUSE_TEXTDLG='$DEFAULT_wxUSE_TEXTDLG
6906
6907 fi
6908
6909
6910 eval "$ac_cv_use_textdlg"
6911 if test "$no_cache" != 1; then
6912 echo $ac_cv_use_textdlg >> ${wx_arg_cache_file}.tmp
6913 fi
6914
6915 if test "$wxUSE_TEXTDLG" = yes; then
6916 echo "$ac_t""yes" 1>&6
6917 else
6918 echo "$ac_t""no" 1>&6
6919 fi
6920
6921
6922 echo $ac_n "checking for --enable-tipdlg""... $ac_c" 1>&6
6923 echo "configure:6924: checking for --enable-tipdlg" >&5
6924 no_cache=0
6925 # Check whether --enable-tipdlg or --disable-tipdlg was given.
6926 if test "${enable_tipdlg+set}" = set; then
6927 enableval="$enable_tipdlg"
6928
6929 if test "$enableval" = yes; then
6930 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
6931 else
6932 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
6933 fi
6934
6935 else
6936
6937 LINE=`grep "wxUSE_STARTUP_TIPS" ${wx_arg_cache_file}`
6938 if test "x$LINE" != x ; then
6939 eval "DEFAULT_$LINE"
6940 else
6941 no_cache=1
6942 fi
6943
6944 ac_cv_use_tipdlg='wxUSE_STARTUP_TIPS='$DEFAULT_wxUSE_STARTUP_TIPS
6945
6946 fi
6947
6948
6949 eval "$ac_cv_use_tipdlg"
6950 if test "$no_cache" != 1; then
6951 echo $ac_cv_use_tipdlg >> ${wx_arg_cache_file}.tmp
6952 fi
6953
6954 if test "$wxUSE_STARTUP_TIPS" = yes; then
6955 echo "$ac_t""yes" 1>&6
6956 else
6957 echo "$ac_t""no" 1>&6
6958 fi
6959
6960
6961 echo $ac_n "checking for --enable-progressdlg""... $ac_c" 1>&6
6962 echo "configure:6963: checking for --enable-progressdlg" >&5
6963 no_cache=0
6964 # Check whether --enable-progressdlg or --disable-progressdlg was given.
6965 if test "${enable_progressdlg+set}" = set; then
6966 enableval="$enable_progressdlg"
6967
6968 if test "$enableval" = yes; then
6969 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
6970 else
6971 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
6972 fi
6973
6974 else
6975
6976 LINE=`grep "wxUSE_PROGRESSDLG" ${wx_arg_cache_file}`
6977 if test "x$LINE" != x ; then
6978 eval "DEFAULT_$LINE"
6979 else
6980 no_cache=1
6981 fi
6982
6983 ac_cv_use_progressdlg='wxUSE_PROGRESSDLG='$DEFAULT_wxUSE_PROGRESSDLG
6984
6985 fi
6986
6987
6988 eval "$ac_cv_use_progressdlg"
6989 if test "$no_cache" != 1; then
6990 echo $ac_cv_use_progressdlg >> ${wx_arg_cache_file}.tmp
6991 fi
6992
6993 if test "$wxUSE_PROGRESSDLG" = yes; then
6994 echo "$ac_t""yes" 1>&6
6995 else
6996 echo "$ac_t""no" 1>&6
6997 fi
6998
6999
7000 echo $ac_n "checking for --enable-wizarddlg""... $ac_c" 1>&6
7001 echo "configure:7002: checking for --enable-wizarddlg" >&5
7002 no_cache=0
7003 # Check whether --enable-wizarddlg or --disable-wizarddlg was given.
7004 if test "${enable_wizarddlg+set}" = set; then
7005 enableval="$enable_wizarddlg"
7006
7007 if test "$enableval" = yes; then
7008 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
7009 else
7010 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
7011 fi
7012
7013 else
7014
7015 LINE=`grep "wxUSE_WIZARDDLG" ${wx_arg_cache_file}`
7016 if test "x$LINE" != x ; then
7017 eval "DEFAULT_$LINE"
7018 else
7019 no_cache=1
7020 fi
7021
7022 ac_cv_use_wizarddlg='wxUSE_WIZARDDLG='$DEFAULT_wxUSE_WIZARDDLG
7023
7024 fi
7025
7026
7027 eval "$ac_cv_use_wizarddlg"
7028 if test "$no_cache" != 1; then
7029 echo $ac_cv_use_wizarddlg >> ${wx_arg_cache_file}.tmp
7030 fi
7031
7032 if test "$wxUSE_WIZARDDLG" = yes; then
7033 echo "$ac_t""yes" 1>&6
7034 else
7035 echo "$ac_t""no" 1>&6
7036 fi
7037
7038
7039
7040
7041 echo $ac_n "checking for --enable-menus""... $ac_c" 1>&6
7042 echo "configure:7043: checking for --enable-menus" >&5
7043 no_cache=0
7044 # Check whether --enable-menus or --disable-menus was given.
7045 if test "${enable_menus+set}" = set; then
7046 enableval="$enable_menus"
7047
7048 if test "$enableval" = yes; then
7049 ac_cv_use_menus='wxUSE_MENUS=yes'
7050 else
7051 ac_cv_use_menus='wxUSE_MENUS=no'
7052 fi
7053
7054 else
7055
7056 LINE=`grep "wxUSE_MENUS" ${wx_arg_cache_file}`
7057 if test "x$LINE" != x ; then
7058 eval "DEFAULT_$LINE"
7059 else
7060 no_cache=1
7061 fi
7062
7063 ac_cv_use_menus='wxUSE_MENUS='$DEFAULT_wxUSE_MENUS
7064
7065 fi
7066
7067
7068 eval "$ac_cv_use_menus"
7069 if test "$no_cache" != 1; then
7070 echo $ac_cv_use_menus >> ${wx_arg_cache_file}.tmp
7071 fi
7072
7073 if test "$wxUSE_MENUS" = yes; then
7074 echo "$ac_t""yes" 1>&6
7075 else
7076 echo "$ac_t""no" 1>&6
7077 fi
7078
7079
7080 echo $ac_n "checking for --enable-miniframe""... $ac_c" 1>&6
7081 echo "configure:7082: checking for --enable-miniframe" >&5
7082 no_cache=0
7083 # Check whether --enable-miniframe or --disable-miniframe was given.
7084 if test "${enable_miniframe+set}" = set; then
7085 enableval="$enable_miniframe"
7086
7087 if test "$enableval" = yes; then
7088 ac_cv_use_miniframe='wxUSE_MINIFRAME=yes'
7089 else
7090 ac_cv_use_miniframe='wxUSE_MINIFRAME=no'
7091 fi
7092
7093 else
7094
7095 LINE=`grep "wxUSE_MINIFRAME" ${wx_arg_cache_file}`
7096 if test "x$LINE" != x ; then
7097 eval "DEFAULT_$LINE"
7098 else
7099 no_cache=1
7100 fi
7101
7102 ac_cv_use_miniframe='wxUSE_MINIFRAME='$DEFAULT_wxUSE_MINIFRAME
7103
7104 fi
7105
7106
7107 eval "$ac_cv_use_miniframe"
7108 if test "$no_cache" != 1; then
7109 echo $ac_cv_use_miniframe >> ${wx_arg_cache_file}.tmp
7110 fi
7111
7112 if test "$wxUSE_MINIFRAME" = yes; then
7113 echo "$ac_t""yes" 1>&6
7114 else
7115 echo "$ac_t""no" 1>&6
7116 fi
7117
7118
7119 echo $ac_n "checking for --enable-tooltips""... $ac_c" 1>&6
7120 echo "configure:7121: checking for --enable-tooltips" >&5
7121 no_cache=0
7122 # Check whether --enable-tooltips or --disable-tooltips was given.
7123 if test "${enable_tooltips+set}" = set; then
7124 enableval="$enable_tooltips"
7125
7126 if test "$enableval" = yes; then
7127 ac_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
7128 else
7129 ac_cv_use_tooltips='wxUSE_TOOLTIPS=no'
7130 fi
7131
7132 else
7133
7134 LINE=`grep "wxUSE_TOOLTIPS" ${wx_arg_cache_file}`
7135 if test "x$LINE" != x ; then
7136 eval "DEFAULT_$LINE"
7137 else
7138 no_cache=1
7139 fi
7140
7141 ac_cv_use_tooltips='wxUSE_TOOLTIPS='$DEFAULT_wxUSE_TOOLTIPS
7142
7143 fi
7144
7145
7146 eval "$ac_cv_use_tooltips"
7147 if test "$no_cache" != 1; then
7148 echo $ac_cv_use_tooltips >> ${wx_arg_cache_file}.tmp
7149 fi
7150
7151 if test "$wxUSE_TOOLTIPS" = yes; then
7152 echo "$ac_t""yes" 1>&6
7153 else
7154 echo "$ac_t""no" 1>&6
7155 fi
7156
7157
7158 echo $ac_n "checking for --enable-splines""... $ac_c" 1>&6
7159 echo "configure:7160: checking for --enable-splines" >&5
7160 no_cache=0
7161 # Check whether --enable-splines or --disable-splines was given.
7162 if test "${enable_splines+set}" = set; then
7163 enableval="$enable_splines"
7164
7165 if test "$enableval" = yes; then
7166 ac_cv_use_splines='wxUSE_SPLINES=yes'
7167 else
7168 ac_cv_use_splines='wxUSE_SPLINES=no'
7169 fi
7170
7171 else
7172
7173 LINE=`grep "wxUSE_SPLINES" ${wx_arg_cache_file}`
7174 if test "x$LINE" != x ; then
7175 eval "DEFAULT_$LINE"
7176 else
7177 no_cache=1
7178 fi
7179
7180 ac_cv_use_splines='wxUSE_SPLINES='$DEFAULT_wxUSE_SPLINES
7181
7182 fi
7183
7184
7185 eval "$ac_cv_use_splines"
7186 if test "$no_cache" != 1; then
7187 echo $ac_cv_use_splines >> ${wx_arg_cache_file}.tmp
7188 fi
7189
7190 if test "$wxUSE_SPLINES" = yes; then
7191 echo "$ac_t""yes" 1>&6
7192 else
7193 echo "$ac_t""no" 1>&6
7194 fi
7195
7196
7197 echo $ac_n "checking for --enable-validators""... $ac_c" 1>&6
7198 echo "configure:7199: checking for --enable-validators" >&5
7199 no_cache=0
7200 # Check whether --enable-validators or --disable-validators was given.
7201 if test "${enable_validators+set}" = set; then
7202 enableval="$enable_validators"
7203
7204 if test "$enableval" = yes; then
7205 ac_cv_use_validators='wxUSE_VALIDATORS=yes'
7206 else
7207 ac_cv_use_validators='wxUSE_VALIDATORS=no'
7208 fi
7209
7210 else
7211
7212 LINE=`grep "wxUSE_VALIDATORS" ${wx_arg_cache_file}`
7213 if test "x$LINE" != x ; then
7214 eval "DEFAULT_$LINE"
7215 else
7216 no_cache=1
7217 fi
7218
7219 ac_cv_use_validators='wxUSE_VALIDATORS='$DEFAULT_wxUSE_VALIDATORS
7220
7221 fi
7222
7223
7224 eval "$ac_cv_use_validators"
7225 if test "$no_cache" != 1; then
7226 echo $ac_cv_use_validators >> ${wx_arg_cache_file}.tmp
7227 fi
7228
7229 if test "$wxUSE_VALIDATORS" = yes; then
7230 echo "$ac_t""yes" 1>&6
7231 else
7232 echo "$ac_t""no" 1>&6
7233 fi
7234
7235
7236 echo $ac_n "checking for --enable-busyinfo""... $ac_c" 1>&6
7237 echo "configure:7238: checking for --enable-busyinfo" >&5
7238 no_cache=0
7239 # Check whether --enable-busyinfo or --disable-busyinfo was given.
7240 if test "${enable_busyinfo+set}" = set; then
7241 enableval="$enable_busyinfo"
7242
7243 if test "$enableval" = yes; then
7244 ac_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
7245 else
7246 ac_cv_use_busyinfo='wxUSE_BUSYINFO=no'
7247 fi
7248
7249 else
7250
7251 LINE=`grep "wxUSE_BUSYINFO" ${wx_arg_cache_file}`
7252 if test "x$LINE" != x ; then
7253 eval "DEFAULT_$LINE"
7254 else
7255 no_cache=1
7256 fi
7257
7258 ac_cv_use_busyinfo='wxUSE_BUSYINFO='$DEFAULT_wxUSE_BUSYINFO
7259
7260 fi
7261
7262
7263 eval "$ac_cv_use_busyinfo"
7264 if test "$no_cache" != 1; then
7265 echo $ac_cv_use_busyinfo >> ${wx_arg_cache_file}.tmp
7266 fi
7267
7268 if test "$wxUSE_BUSYINFO" = yes; then
7269 echo "$ac_t""yes" 1>&6
7270 else
7271 echo "$ac_t""no" 1>&6
7272 fi
7273
7274
7275 echo $ac_n "checking for --enable-joystick""... $ac_c" 1>&6
7276 echo "configure:7277: checking for --enable-joystick" >&5
7277 no_cache=0
7278 # Check whether --enable-joystick or --disable-joystick was given.
7279 if test "${enable_joystick+set}" = set; then
7280 enableval="$enable_joystick"
7281
7282 if test "$enableval" = yes; then
7283 ac_cv_use_joystick='wxUSE_JOYSTICK=yes'
7284 else
7285 ac_cv_use_joystick='wxUSE_JOYSTICK=no'
7286 fi
7287
7288 else
7289
7290 LINE=`grep "wxUSE_JOYSTICK" ${wx_arg_cache_file}`
7291 if test "x$LINE" != x ; then
7292 eval "DEFAULT_$LINE"
7293 else
7294 no_cache=1
7295 fi
7296
7297 ac_cv_use_joystick='wxUSE_JOYSTICK='$DEFAULT_wxUSE_JOYSTICK
7298
7299 fi
7300
7301
7302 eval "$ac_cv_use_joystick"
7303 if test "$no_cache" != 1; then
7304 echo $ac_cv_use_joystick >> ${wx_arg_cache_file}.tmp
7305 fi
7306
7307 if test "$wxUSE_JOYSTICK" = yes; then
7308 echo "$ac_t""yes" 1>&6
7309 else
7310 echo "$ac_t""no" 1>&6
7311 fi
7312
7313
7314 echo $ac_n "checking for --enable-metafile""... $ac_c" 1>&6
7315 echo "configure:7316: checking for --enable-metafile" >&5
7316 no_cache=0
7317 # Check whether --enable-metafile or --disable-metafile was given.
7318 if test "${enable_metafile+set}" = set; then
7319 enableval="$enable_metafile"
7320
7321 if test "$enableval" = yes; then
7322 ac_cv_use_metafile='wxUSE_METAFILE=yes'
7323 else
7324 ac_cv_use_metafile='wxUSE_METAFILE=no'
7325 fi
7326
7327 else
7328
7329 LINE=`grep "wxUSE_METAFILE" ${wx_arg_cache_file}`
7330 if test "x$LINE" != x ; then
7331 eval "DEFAULT_$LINE"
7332 else
7333 no_cache=1
7334 fi
7335
7336 ac_cv_use_metafile='wxUSE_METAFILE='$DEFAULT_wxUSE_METAFILE
7337
7338 fi
7339
7340
7341 eval "$ac_cv_use_metafile"
7342 if test "$no_cache" != 1; then
7343 echo $ac_cv_use_metafile >> ${wx_arg_cache_file}.tmp
7344 fi
7345
7346 if test "$wxUSE_METAFILE" = yes; then
7347 echo "$ac_t""yes" 1>&6
7348 else
7349 echo "$ac_t""no" 1>&6
7350 fi
7351
7352
7353 echo $ac_n "checking for --enable-dragimage""... $ac_c" 1>&6
7354 echo "configure:7355: checking for --enable-dragimage" >&5
7355 no_cache=0
7356 # Check whether --enable-dragimage or --disable-dragimage was given.
7357 if test "${enable_dragimage+set}" = set; then
7358 enableval="$enable_dragimage"
7359
7360 if test "$enableval" = yes; then
7361 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
7362 else
7363 ac_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
7364 fi
7365
7366 else
7367
7368 LINE=`grep "wxUSE_DRAGIMAGE" ${wx_arg_cache_file}`
7369 if test "x$LINE" != x ; then
7370 eval "DEFAULT_$LINE"
7371 else
7372 no_cache=1
7373 fi
7374
7375 ac_cv_use_dragimage='wxUSE_DRAGIMAGE='$DEFAULT_wxUSE_DRAGIMAGE
7376
7377 fi
7378
7379
7380 eval "$ac_cv_use_dragimage"
7381 if test "$no_cache" != 1; then
7382 echo $ac_cv_use_dragimage >> ${wx_arg_cache_file}.tmp
7383 fi
7384
7385 if test "$wxUSE_DRAGIMAGE" = yes; then
7386 echo "$ac_t""yes" 1>&6
7387 else
7388 echo "$ac_t""no" 1>&6
7389 fi
7390
7391
7392
7393
7394 echo $ac_n "checking for --enable-image""... $ac_c" 1>&6
7395 echo "configure:7396: checking for --enable-image" >&5
7396 no_cache=0
7397 # Check whether --enable-image or --disable-image was given.
7398 if test "${enable_image+set}" = set; then
7399 enableval="$enable_image"
7400
7401 if test "$enableval" = yes; then
7402 ac_cv_use_image='wxUSE_IMAGE=yes'
7403 else
7404 ac_cv_use_image='wxUSE_IMAGE=no'
7405 fi
7406
7407 else
7408
7409 LINE=`grep "wxUSE_IMAGE" ${wx_arg_cache_file}`
7410 if test "x$LINE" != x ; then
7411 eval "DEFAULT_$LINE"
7412 else
7413 no_cache=1
7414 fi
7415
7416 ac_cv_use_image='wxUSE_IMAGE='$DEFAULT_wxUSE_IMAGE
7417
7418 fi
7419
7420
7421 eval "$ac_cv_use_image"
7422 if test "$no_cache" != 1; then
7423 echo $ac_cv_use_image >> ${wx_arg_cache_file}.tmp
7424 fi
7425
7426 if test "$wxUSE_IMAGE" = yes; then
7427 echo "$ac_t""yes" 1>&6
7428 else
7429 echo "$ac_t""no" 1>&6
7430 fi
7431
7432
7433 echo $ac_n "checking for --enable-gif""... $ac_c" 1>&6
7434 echo "configure:7435: checking for --enable-gif" >&5
7435 no_cache=0
7436 # Check whether --enable-gif or --disable-gif was given.
7437 if test "${enable_gif+set}" = set; then
7438 enableval="$enable_gif"
7439
7440 if test "$enableval" = yes; then
7441 ac_cv_use_gif='wxUSE_GIF=yes'
7442 else
7443 ac_cv_use_gif='wxUSE_GIF=no'
7444 fi
7445
7446 else
7447
7448 LINE=`grep "wxUSE_GIF" ${wx_arg_cache_file}`
7449 if test "x$LINE" != x ; then
7450 eval "DEFAULT_$LINE"
7451 else
7452 no_cache=1
7453 fi
7454
7455 ac_cv_use_gif='wxUSE_GIF='$DEFAULT_wxUSE_GIF
7456
7457 fi
7458
7459
7460 eval "$ac_cv_use_gif"
7461 if test "$no_cache" != 1; then
7462 echo $ac_cv_use_gif >> ${wx_arg_cache_file}.tmp
7463 fi
7464
7465 if test "$wxUSE_GIF" = yes; then
7466 echo "$ac_t""yes" 1>&6
7467 else
7468 echo "$ac_t""no" 1>&6
7469 fi
7470
7471
7472 echo $ac_n "checking for --enable-pcx""... $ac_c" 1>&6
7473 echo "configure:7474: checking for --enable-pcx" >&5
7474 no_cache=0
7475 # Check whether --enable-pcx or --disable-pcx was given.
7476 if test "${enable_pcx+set}" = set; then
7477 enableval="$enable_pcx"
7478
7479 if test "$enableval" = yes; then
7480 ac_cv_use_pcx='wxUSE_PCX=yes'
7481 else
7482 ac_cv_use_pcx='wxUSE_PCX=no'
7483 fi
7484
7485 else
7486
7487 LINE=`grep "wxUSE_PCX" ${wx_arg_cache_file}`
7488 if test "x$LINE" != x ; then
7489 eval "DEFAULT_$LINE"
7490 else
7491 no_cache=1
7492 fi
7493
7494 ac_cv_use_pcx='wxUSE_PCX='$DEFAULT_wxUSE_PCX
7495
7496 fi
7497
7498
7499 eval "$ac_cv_use_pcx"
7500 if test "$no_cache" != 1; then
7501 echo $ac_cv_use_pcx >> ${wx_arg_cache_file}.tmp
7502 fi
7503
7504 if test "$wxUSE_PCX" = yes; then
7505 echo "$ac_t""yes" 1>&6
7506 else
7507 echo "$ac_t""no" 1>&6
7508 fi
7509
7510
7511 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7512 echo "configure:7513: checking for --enable-pnm" >&5
7513 no_cache=0
7514 # Check whether --enable-pnm or --disable-pnm was given.
7515 if test "${enable_pnm+set}" = set; then
7516 enableval="$enable_pnm"
7517
7518 if test "$enableval" = yes; then
7519 ac_cv_use_pnm='wxUSE_PNM=yes'
7520 else
7521 ac_cv_use_pnm='wxUSE_PNM=no'
7522 fi
7523
7524 else
7525
7526 LINE=`grep "wxUSE_PNM" ${wx_arg_cache_file}`
7527 if test "x$LINE" != x ; then
7528 eval "DEFAULT_$LINE"
7529 else
7530 no_cache=1
7531 fi
7532
7533 ac_cv_use_pnm='wxUSE_PNM='$DEFAULT_wxUSE_PNM
7534
7535 fi
7536
7537
7538 eval "$ac_cv_use_pnm"
7539 if test "$no_cache" != 1; then
7540 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7541 fi
7542
7543 if test "$wxUSE_PNM" = yes; then
7544 echo "$ac_t""yes" 1>&6
7545 else
7546 echo "$ac_t""no" 1>&6
7547 fi
7548
7549
7550 echo $ac_n "checking for --enable-pnm""... $ac_c" 1>&6
7551 echo "configure:7552: checking for --enable-pnm" >&5
7552 no_cache=0
7553 # Check whether --enable-pnm or --disable-pnm was given.
7554 if test "${enable_pnm+set}" = set; then
7555 enableval="$enable_pnm"
7556
7557 if test "$enableval" = yes; then
7558 ac_cv_use_pnm='wxUSE_XPM=yes'
7559 else
7560 ac_cv_use_pnm='wxUSE_XPM=no'
7561 fi
7562
7563 else
7564
7565 LINE=`grep "wxUSE_XPM" ${wx_arg_cache_file}`
7566 if test "x$LINE" != x ; then
7567 eval "DEFAULT_$LINE"
7568 else
7569 no_cache=1
7570 fi
7571
7572 ac_cv_use_pnm='wxUSE_XPM='$DEFAULT_wxUSE_XPM
7573
7574 fi
7575
7576
7577 eval "$ac_cv_use_pnm"
7578 if test "$no_cache" != 1; then
7579 echo $ac_cv_use_pnm >> ${wx_arg_cache_file}.tmp
7580 fi
7581
7582 if test "$wxUSE_XPM" = yes; then
7583 echo "$ac_t""yes" 1>&6
7584 else
7585 echo "$ac_t""no" 1>&6
7586 fi
7587
7588
7589 fi
7590
7591
7592 echo "saving argument cache $wx_arg_cache_file"
7593 mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
7594
7595
7596
7597 echo $ac_n "checking for toolkit""... $ac_c" 1>&6
7598 echo "configure:7599: checking for toolkit" >&5
7599
7600 if test "$wxUSE_GUI" = "yes"; then
7601
7602 if test "$USE_BEOS" = 1; then
7603 { echo "configure: error: BeOS GUI is not supported yet, use --disable-gui" 1>&2; exit 1; }
7604 fi
7605
7606 if test "$TOOLKIT_GIVEN" = 1; then
7607 for toolkit in `echo $ALL_TOOLKITS`; do
7608 var=wxUSE_$toolkit
7609 eval "value=\$${var}"
7610 eval "$var=`echo \$value | sed -e "s/yes/1/" -e "s/no/0/"`"
7611 done
7612 else
7613 for toolkit in `echo $ALL_TOOLKITS`; do
7614 if test "$has_toolkit_in_cache" != 1; then
7615 var=DEFAULT_DEFAULT_wxUSE_$toolkit
7616 else
7617 var=DEFAULT_wxUSE_$toolkit
7618 fi
7619 eval "wxUSE_$toolkit=\$${var}"
7620 done
7621 fi
7622
7623 NUM_TOOLKITS=`expr ${wxUSE_GTK:-0} + ${wxUSE_MOTIF:-0} + ${wxUSE_MAC:-0} + ${wxUSE_WINE:-0} + ${wxUSE_MINGW:-0} + ${wxUSE_CYGWIN:-0} + ${wxUSE_MGL:-0}`
7624
7625 case "${host}" in
7626 *-pc-os2_emx )
7627 NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
7628 # PATH_IFS is autodetected by OS/2's configure (usually ';')
7629 LEX_STEM="lexyy"
7630 ;;
7631 *)
7632 PATH_IFS=':'
7633 LEX_STEM="lex.yy"
7634 ;;
7635 esac
7636
7637 case "$NUM_TOOLKITS" in
7638 1)
7639 ;;
7640 0)
7641 { echo "configure: error: Please specify a toolkit - cannot determine the default for ${host}" 1>&2; exit 1; }
7642 ;;
7643 *)
7644 { echo "configure: error: Please specify at most one toolkit (may be some are cached?)" 1>&2; exit 1; }
7645 esac
7646
7647 for toolkit in `echo $ALL_TOOLKITS`; do
7648 var=wxUSE_$toolkit
7649 eval "value=\$${var}"
7650 if test "x$value" != x; then
7651 cache_var=CACHE_$toolkit
7652 eval "cache=\$${cache_var}"
7653 if test "$cache" = 1; then
7654 echo "$var=$value" >> ${wx_arg_cache_file}
7655 fi
7656 if test "$value" = 1; then
7657 toolkit_echo=`echo $toolkit | tr [A-Z] [a-z]`
7658 echo "$ac_t""$toolkit_echo" 1>&6
7659 fi
7660 fi
7661 done
7662
7663 else
7664 PATH_IFS=':'
7665 echo "$ac_t""base only" 1>&6
7666 fi
7667
7668
7669 cat > confcache <<\EOF
7670 # This file is a shell script that caches the results of configure
7671 # tests run on this system so they can be shared between configure
7672 # scripts and configure runs. It is not useful on other systems.
7673 # If it contains results you don't want to keep, you may remove or edit it.
7674 #
7675 # By default, configure uses ./config.cache as the cache file,
7676 # creating it if it does not exist already. You can give configure
7677 # the --cache-file=FILE option to use a different cache file; that is
7678 # what configure does when it calls configure scripts in
7679 # subdirectories, so they share the cache.
7680 # Giving --cache-file=/dev/null disables caching, for debugging configure.
7681 # config.status only pays attention to the cache file if you give it the
7682 # --recheck option to rerun configure.
7683 #
7684 EOF
7685 # The following way of writing the cache mishandles newlines in values,
7686 # but we know of no workaround that is simple, portable, and efficient.
7687 # So, don't put newlines in cache variables' values.
7688 # Ultrix sh set writes to stderr and can't be redirected directly,
7689 # and sets the high bit in the cache file unless we assign to the vars.
7690 (set) 2>&1 |
7691 case `(ac_space=' '; set | grep ac_space) 2>&1` in
7692 *ac_space=\ *)
7693 # `set' does not quote correctly, so add quotes (double-quote substitution
7694 # turns \\\\ into \\, and sed turns \\ into \).
7695 sed -n \
7696 -e "s/'/'\\\\''/g" \
7697 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
7698 ;;
7699 *)
7700 # `set' quotes correctly as required by POSIX, so do not add quotes.
7701 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
7702 ;;
7703 esac >> confcache
7704 if cmp -s $cache_file confcache; then
7705 :
7706 else
7707 if test -w $cache_file; then
7708 echo "updating cache $cache_file"
7709 cat confcache > $cache_file
7710 else
7711 echo "not updating unwritable cache $cache_file"
7712 fi
7713 fi
7714 rm -f confcache
7715
7716
7717 if test "$build" != "$host" ; then
7718 CC=$host_alias-gcc
7719 CXX=$host_alias-c++
7720 AR=$host_alias-ar
7721 RANLIB=$host_alias-ranlib
7722 DLLTOOL=$host_alias-dlltool
7723 RESCOMP=$host_alias-windres
7724 LD=$host_alias-ld
7725 NM=$host_alias-nm
7726 STRIP=$host_alias-strip
7727 fi
7728
7729 # Extract the first word of "gcc", so it can be a program name with args.
7730 set dummy gcc; ac_word=$2
7731 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7732 echo "configure:7733: checking for $ac_word" >&5
7733 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7734 echo $ac_n "(cached) $ac_c" 1>&6
7735 else
7736 if test -n "$CC"; then
7737 ac_cv_prog_CC="$CC" # Let the user override the test.
7738 else
7739 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7740 ac_dummy="$PATH"
7741 for ac_dir in $ac_dummy; do
7742 test -z "$ac_dir" && ac_dir=.
7743 if test -f $ac_dir/$ac_word; then
7744 ac_cv_prog_CC="gcc"
7745 break
7746 fi
7747 done
7748 IFS="$ac_save_ifs"
7749 fi
7750 fi
7751 CC="$ac_cv_prog_CC"
7752 if test -n "$CC"; then
7753 echo "$ac_t""$CC" 1>&6
7754 else
7755 echo "$ac_t""no" 1>&6
7756 fi
7757
7758 if test -z "$CC"; then
7759 # Extract the first word of "cc", so it can be a program name with args.
7760 set dummy cc; ac_word=$2
7761 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7762 echo "configure:7763: checking for $ac_word" >&5
7763 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7764 echo $ac_n "(cached) $ac_c" 1>&6
7765 else
7766 if test -n "$CC"; then
7767 ac_cv_prog_CC="$CC" # Let the user override the test.
7768 else
7769 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7770 ac_prog_rejected=no
7771 ac_dummy="$PATH"
7772 for ac_dir in $ac_dummy; do
7773 test -z "$ac_dir" && ac_dir=.
7774 if test -f $ac_dir/$ac_word; then
7775 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
7776 ac_prog_rejected=yes
7777 continue
7778 fi
7779 ac_cv_prog_CC="cc"
7780 break
7781 fi
7782 done
7783 IFS="$ac_save_ifs"
7784 if test $ac_prog_rejected = yes; then
7785 # We found a bogon in the path, so make sure we never use it.
7786 set dummy $ac_cv_prog_CC
7787 shift
7788 if test $# -gt 0; then
7789 # We chose a different compiler from the bogus one.
7790 # However, it has the same basename, so the bogon will be chosen
7791 # first if we set CC to just the basename; use the full file name.
7792 shift
7793 set dummy "$ac_dir/$ac_word" "$@"
7794 shift
7795 ac_cv_prog_CC="$@"
7796 fi
7797 fi
7798 fi
7799 fi
7800 CC="$ac_cv_prog_CC"
7801 if test -n "$CC"; then
7802 echo "$ac_t""$CC" 1>&6
7803 else
7804 echo "$ac_t""no" 1>&6
7805 fi
7806
7807 if test -z "$CC"; then
7808 case "`uname -s`" in
7809 *win32* | *WIN32*)
7810 # Extract the first word of "cl", so it can be a program name with args.
7811 set dummy cl; ac_word=$2
7812 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
7813 echo "configure:7814: checking for $ac_word" >&5
7814 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
7815 echo $ac_n "(cached) $ac_c" 1>&6
7816 else
7817 if test -n "$CC"; then
7818 ac_cv_prog_CC="$CC" # Let the user override the test.
7819 else
7820 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
7821 ac_dummy="$PATH"
7822 for ac_dir in $ac_dummy; do
7823 test -z "$ac_dir" && ac_dir=.
7824 if test -f $ac_dir/$ac_word; then
7825 ac_cv_prog_CC="cl"
7826 break
7827 fi
7828 done
7829 IFS="$ac_save_ifs"
7830 fi
7831 fi
7832 CC="$ac_cv_prog_CC"
7833 if test -n "$CC"; then
7834 echo "$ac_t""$CC" 1>&6
7835 else
7836 echo "$ac_t""no" 1>&6
7837 fi
7838 ;;
7839 esac
7840 fi
7841 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
7842 fi
7843
7844 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
7845 echo "configure:7846: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
7846
7847 ac_ext=c
7848 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7849 ac_cpp='$CPP $CPPFLAGS'
7850 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7851 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7852 cross_compiling=$ac_cv_prog_cc_cross
7853
7854 cat > conftest.$ac_ext << EOF
7855
7856 #line 7857 "configure"
7857 #include "confdefs.h"
7858
7859 main(){return(0);}
7860 EOF
7861 if { (eval echo configure:7862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
7862 ac_cv_prog_cc_works=yes
7863 # If we can't run a trivial program, we are probably using a cross compiler.
7864 if (./conftest; exit) 2>/dev/null; then
7865 ac_cv_prog_cc_cross=no
7866 else
7867 ac_cv_prog_cc_cross=yes
7868 fi
7869 else
7870 echo "configure: failed program was:" >&5
7871 cat conftest.$ac_ext >&5
7872 ac_cv_prog_cc_works=no
7873 fi
7874 rm -fr conftest*
7875 ac_ext=c
7876 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
7877 ac_cpp='$CPP $CPPFLAGS'
7878 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
7879 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7880 cross_compiling=$ac_cv_prog_cc_cross
7881
7882 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
7883 if test $ac_cv_prog_cc_works = no; then
7884 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
7885 fi
7886 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
7887 echo "configure:7888: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
7888 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
7889 cross_compiling=$ac_cv_prog_cc_cross
7890
7891 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
7892 echo "configure:7893: checking whether we are using GNU C" >&5
7893 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
7894 echo $ac_n "(cached) $ac_c" 1>&6
7895 else
7896 cat > conftest.c <<EOF
7897 #ifdef __GNUC__
7898 yes;
7899 #endif
7900 EOF
7901 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:7902: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
7902 ac_cv_prog_gcc=yes
7903 else
7904 ac_cv_prog_gcc=no
7905 fi
7906 fi
7907
7908 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
7909
7910 if test $ac_cv_prog_gcc = yes; then
7911 GCC=yes
7912 else
7913 GCC=
7914 fi
7915
7916 ac_test_CFLAGS="${CFLAGS+set}"
7917 ac_save_CFLAGS="$CFLAGS"
7918 CFLAGS=
7919 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
7920 echo "configure:7921: checking whether ${CC-cc} accepts -g" >&5
7921 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
7922 echo $ac_n "(cached) $ac_c" 1>&6
7923 else
7924 echo 'void f(){}' > conftest.c
7925 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
7926 ac_cv_prog_cc_g=yes
7927 else
7928 ac_cv_prog_cc_g=no
7929 fi
7930 rm -f conftest*
7931
7932 fi
7933
7934 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
7935 if test "$ac_test_CFLAGS" = set; then
7936 CFLAGS="$ac_save_CFLAGS"
7937 elif test $ac_cv_prog_cc_g = yes; then
7938 if test "$GCC" = yes; then
7939 CFLAGS="-g -O2"
7940 else
7941 CFLAGS="-g"
7942 fi
7943 else
7944 if test "$GCC" = yes; then
7945 CFLAGS="-O2"
7946 else
7947 CFLAGS=
7948 fi
7949 fi
7950
7951
7952 CFLAGS=`echo "$CFLAGS" | sed 's/-g//g'`
7953
7954 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
7955 echo "configure:7956: checking how to run the C preprocessor" >&5
7956 # On Suns, sometimes $CPP names a directory.
7957 if test -n "$CPP" && test -d "$CPP"; then
7958 CPP=
7959 fi
7960 if test -z "$CPP"; then
7961 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
7962 echo $ac_n "(cached) $ac_c" 1>&6
7963 else
7964 # This must be in double quotes, not single quotes, because CPP may get
7965 # substituted into the Makefile and "${CC-cc}" will confuse make.
7966 CPP="${CC-cc} -E"
7967 # On the NeXT, cc -E runs the code through the compiler's parser,
7968 # not just through cpp.
7969 cat > conftest.$ac_ext <<EOF
7970 #line 7971 "configure"
7971 #include "confdefs.h"
7972 #include <assert.h>
7973 Syntax Error
7974 EOF
7975 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7976 { (eval echo configure:7977: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7977 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7978 if test -z "$ac_err"; then
7979 :
7980 else
7981 echo "$ac_err" >&5
7982 echo "configure: failed program was:" >&5
7983 cat conftest.$ac_ext >&5
7984 rm -rf conftest*
7985 CPP="${CC-cc} -E -traditional-cpp"
7986 cat > conftest.$ac_ext <<EOF
7987 #line 7988 "configure"
7988 #include "confdefs.h"
7989 #include <assert.h>
7990 Syntax Error
7991 EOF
7992 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
7993 { (eval echo configure:7994: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
7994 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
7995 if test -z "$ac_err"; then
7996 :
7997 else
7998 echo "$ac_err" >&5
7999 echo "configure: failed program was:" >&5
8000 cat conftest.$ac_ext >&5
8001 rm -rf conftest*
8002 CPP="${CC-cc} -nologo -E"
8003 cat > conftest.$ac_ext <<EOF
8004 #line 8005 "configure"
8005 #include "confdefs.h"
8006 #include <assert.h>
8007 Syntax Error
8008 EOF
8009 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8010 { (eval echo configure:8011: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8011 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8012 if test -z "$ac_err"; then
8013 :
8014 else
8015 echo "$ac_err" >&5
8016 echo "configure: failed program was:" >&5
8017 cat conftest.$ac_ext >&5
8018 rm -rf conftest*
8019 CPP=/lib/cpp
8020 fi
8021 rm -f conftest*
8022 fi
8023 rm -f conftest*
8024 fi
8025 rm -f conftest*
8026 ac_cv_prog_CPP="$CPP"
8027 fi
8028 CPP="$ac_cv_prog_CPP"
8029 else
8030 ac_cv_prog_CPP="$CPP"
8031 fi
8032 echo "$ac_t""$CPP" 1>&6
8033
8034
8035 if test $ac_cv_prog_gcc = yes; then
8036 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
8037 echo "configure:8038: checking whether ${CC-cc} needs -traditional" >&5
8038 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
8039 echo $ac_n "(cached) $ac_c" 1>&6
8040 else
8041 ac_pattern="Autoconf.*'x'"
8042 cat > conftest.$ac_ext <<EOF
8043 #line 8044 "configure"
8044 #include "confdefs.h"
8045 #include <sgtty.h>
8046 Autoconf TIOCGETP
8047 EOF
8048 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8049 egrep "$ac_pattern" >/dev/null 2>&1; then
8050 rm -rf conftest*
8051 ac_cv_prog_gcc_traditional=yes
8052 else
8053 rm -rf conftest*
8054 ac_cv_prog_gcc_traditional=no
8055 fi
8056 rm -f conftest*
8057
8058
8059 if test $ac_cv_prog_gcc_traditional = no; then
8060 cat > conftest.$ac_ext <<EOF
8061 #line 8062 "configure"
8062 #include "confdefs.h"
8063 #include <termio.h>
8064 Autoconf TCGETA
8065 EOF
8066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8067 egrep "$ac_pattern" >/dev/null 2>&1; then
8068 rm -rf conftest*
8069 ac_cv_prog_gcc_traditional=yes
8070 fi
8071 rm -f conftest*
8072
8073 fi
8074 fi
8075
8076 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
8077 if test $ac_cv_prog_gcc_traditional = yes; then
8078 CC="$CC -traditional"
8079 fi
8080 fi
8081
8082
8083
8084 ac_ext=C
8085 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8086 ac_cpp='$CXXCPP $CPPFLAGS'
8087 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8088 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8089 cross_compiling=$ac_cv_prog_cxx_cross
8090
8091
8092 for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
8093 do
8094 # Extract the first word of "$ac_prog", so it can be a program name with args.
8095 set dummy $ac_prog; ac_word=$2
8096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8097 echo "configure:8098: checking for $ac_word" >&5
8098 if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
8099 echo $ac_n "(cached) $ac_c" 1>&6
8100 else
8101 if test -n "$CXX"; then
8102 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8103 else
8104 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8105 ac_dummy="$PATH"
8106 for ac_dir in $ac_dummy; do
8107 test -z "$ac_dir" && ac_dir=.
8108 if test -f $ac_dir/$ac_word; then
8109 ac_cv_prog_CXX="$ac_prog"
8110 break
8111 fi
8112 done
8113 IFS="$ac_save_ifs"
8114 fi
8115 fi
8116 CXX="$ac_cv_prog_CXX"
8117 if test -n "$CXX"; then
8118 echo "$ac_t""$CXX" 1>&6
8119 else
8120 echo "$ac_t""no" 1>&6
8121 fi
8122
8123 test -n "$CXX" && break
8124 done
8125 test -n "$CXX" || CXX="gcc"
8126
8127
8128 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
8129 echo "configure:8130: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
8130
8131 ac_ext=C
8132 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8133 ac_cpp='$CXXCPP $CPPFLAGS'
8134 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8135 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8136 cross_compiling=$ac_cv_prog_cxx_cross
8137
8138 cat > conftest.$ac_ext << EOF
8139
8140 #line 8141 "configure"
8141 #include "confdefs.h"
8142
8143 int main(){return(0);}
8144 EOF
8145 if { (eval echo configure:8146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8146 ac_cv_prog_cxx_works=yes
8147 # If we can't run a trivial program, we are probably using a cross compiler.
8148 if (./conftest; exit) 2>/dev/null; then
8149 ac_cv_prog_cxx_cross=no
8150 else
8151 ac_cv_prog_cxx_cross=yes
8152 fi
8153 else
8154 echo "configure: failed program was:" >&5
8155 cat conftest.$ac_ext >&5
8156 ac_cv_prog_cxx_works=no
8157 fi
8158 rm -fr conftest*
8159 ac_ext=C
8160 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8161 ac_cpp='$CXXCPP $CPPFLAGS'
8162 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8163 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8164 cross_compiling=$ac_cv_prog_cxx_cross
8165
8166 echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
8167 if test $ac_cv_prog_cxx_works = no; then
8168 { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
8169 fi
8170 echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
8171 echo "configure:8172: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
8172 echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
8173 cross_compiling=$ac_cv_prog_cxx_cross
8174
8175 echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
8176 echo "configure:8177: checking whether we are using GNU C++" >&5
8177 if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
8178 echo $ac_n "(cached) $ac_c" 1>&6
8179 else
8180 cat > conftest.C <<EOF
8181 #ifdef __GNUC__
8182 yes;
8183 #endif
8184 EOF
8185 if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:8186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
8186 ac_cv_prog_gxx=yes
8187 else
8188 ac_cv_prog_gxx=no
8189 fi
8190 fi
8191
8192 echo "$ac_t""$ac_cv_prog_gxx" 1>&6
8193
8194 if test $ac_cv_prog_gxx = yes; then
8195 GXX=yes
8196 else
8197 GXX=
8198 fi
8199
8200 ac_test_CXXFLAGS="${CXXFLAGS+set}"
8201 ac_save_CXXFLAGS="$CXXFLAGS"
8202 CXXFLAGS=
8203 echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
8204 echo "configure:8205: checking whether ${CXX-g++} accepts -g" >&5
8205 if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
8206 echo $ac_n "(cached) $ac_c" 1>&6
8207 else
8208 echo 'void f(){}' > conftest.cc
8209 if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
8210 ac_cv_prog_cxx_g=yes
8211 else
8212 ac_cv_prog_cxx_g=no
8213 fi
8214 rm -f conftest*
8215
8216 fi
8217
8218 echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
8219 if test "$ac_test_CXXFLAGS" = set; then
8220 CXXFLAGS="$ac_save_CXXFLAGS"
8221 elif test $ac_cv_prog_cxx_g = yes; then
8222 if test "$GXX" = yes; then
8223 CXXFLAGS="-g -O2"
8224 else
8225 CXXFLAGS="-g"
8226 fi
8227 else
8228 if test "$GXX" = yes; then
8229 CXXFLAGS="-O2"
8230 else
8231 CXXFLAGS=
8232 fi
8233 fi
8234
8235
8236 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6
8237 echo "configure:8238: checking how to run the C++ preprocessor" >&5
8238 if test -z "$CXXCPP"; then
8239 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then
8240 echo $ac_n "(cached) $ac_c" 1>&6
8241 else
8242 ac_ext=C
8243 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8244 ac_cpp='$CXXCPP $CPPFLAGS'
8245 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8246 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8247 cross_compiling=$ac_cv_prog_cxx_cross
8248 CXXCPP="${CXX-g++} -E"
8249 cat > conftest.$ac_ext <<EOF
8250 #line 8251 "configure"
8251 #include "confdefs.h"
8252 #include <stdlib.h>
8253 EOF
8254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8255 { (eval echo configure:8256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8257 if test -z "$ac_err"; then
8258 :
8259 else
8260 echo "$ac_err" >&5
8261 echo "configure: failed program was:" >&5
8262 cat conftest.$ac_ext >&5
8263 rm -rf conftest*
8264 CXXCPP=/lib/cpp
8265 fi
8266 rm -f conftest*
8267 ac_cv_prog_CXXCPP="$CXXCPP"
8268 ac_ext=C
8269 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8270 ac_cpp='$CXXCPP $CPPFLAGS'
8271 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8272 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8273 cross_compiling=$ac_cv_prog_cxx_cross
8274 fi
8275 fi
8276 CXXCPP="$ac_cv_prog_CXXCPP"
8277 echo "$ac_t""$CXXCPP" 1>&6
8278
8279
8280 CXXFLAGS=`echo "$CXXFLAGS" | sed 's/-g//g'`
8281
8282 ac_ext=c
8283 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
8284 ac_cpp='$CPP $CPPFLAGS'
8285 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
8286 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
8287 cross_compiling=$ac_cv_prog_cc_cross
8288
8289
8290 # Extract the first word of "ranlib", so it can be a program name with args.
8291 set dummy ranlib; ac_word=$2
8292 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8293 echo "configure:8294: checking for $ac_word" >&5
8294 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
8295 echo $ac_n "(cached) $ac_c" 1>&6
8296 else
8297 if test -n "$RANLIB"; then
8298 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8299 else
8300 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8301 ac_dummy="$PATH"
8302 for ac_dir in $ac_dummy; do
8303 test -z "$ac_dir" && ac_dir=.
8304 if test -f $ac_dir/$ac_word; then
8305 ac_cv_prog_RANLIB="ranlib"
8306 break
8307 fi
8308 done
8309 IFS="$ac_save_ifs"
8310 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
8311 fi
8312 fi
8313 RANLIB="$ac_cv_prog_RANLIB"
8314 if test -n "$RANLIB"; then
8315 echo "$ac_t""$RANLIB" 1>&6
8316 else
8317 echo "$ac_t""no" 1>&6
8318 fi
8319
8320
8321 # Extract the first word of "ar", so it can be a program name with args.
8322 set dummy ar; ac_word=$2
8323 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8324 echo "configure:8325: checking for $ac_word" >&5
8325 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
8326 echo $ac_n "(cached) $ac_c" 1>&6
8327 else
8328 if test -n "$AR"; then
8329 ac_cv_prog_AR="$AR" # Let the user override the test.
8330 else
8331 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8332 ac_dummy="$PATH"
8333 for ac_dir in $ac_dummy; do
8334 test -z "$ac_dir" && ac_dir=.
8335 if test -f $ac_dir/$ac_word; then
8336 ac_cv_prog_AR="ar"
8337 break
8338 fi
8339 done
8340 IFS="$ac_save_ifs"
8341 test -z "$ac_cv_prog_AR" && ac_cv_prog_AR="ar"
8342 fi
8343 fi
8344 AR="$ac_cv_prog_AR"
8345 if test -n "$AR"; then
8346 echo "$ac_t""$AR" 1>&6
8347 else
8348 echo "$ac_t""no" 1>&6
8349 fi
8350
8351
8352 # Find a good install program. We prefer a C program (faster),
8353 # so one script is as good as another. But avoid the broken or
8354 # incompatible versions:
8355 # SysV /etc/install, /usr/sbin/install
8356 # SunOS /usr/etc/install
8357 # IRIX /sbin/install
8358 # AIX /bin/install
8359 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8360 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8361 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8362 # ./install, which can be erroneously created by make from ./install.sh.
8363 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
8364 echo "configure:8365: checking for a BSD compatible install" >&5
8365 if test -z "$INSTALL"; then
8366 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
8367 echo $ac_n "(cached) $ac_c" 1>&6
8368 else
8369 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
8370 for ac_dir in $PATH; do
8371 # Account for people who put trailing slashes in PATH elements.
8372 case "$ac_dir/" in
8373 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
8374 *)
8375 # OSF1 and SCO ODT 3.0 have their own names for install.
8376 # Don't use installbsd from OSF since it installs stuff as root
8377 # by default.
8378 for ac_prog in ginstall scoinst install; do
8379 if test -f $ac_dir/$ac_prog; then
8380 if test $ac_prog = install &&
8381 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
8382 # AIX install. It has an incompatible calling convention.
8383 :
8384 else
8385 ac_cv_path_install="$ac_dir/$ac_prog -c"
8386 break 2
8387 fi
8388 fi
8389 done
8390 ;;
8391 esac
8392 done
8393 IFS="$ac_save_IFS"
8394
8395 fi
8396 if test "${ac_cv_path_install+set}" = set; then
8397 INSTALL="$ac_cv_path_install"
8398 else
8399 # As a last resort, use the slow shell script. We don't cache a
8400 # path for INSTALL within a source directory, because that will
8401 # break other packages using the cache if that directory is
8402 # removed, or if the path is relative.
8403 INSTALL="$ac_install_sh"
8404 fi
8405 fi
8406 echo "$ac_t""$INSTALL" 1>&6
8407
8408 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8409 # It thinks the first close brace ends the variable substitution.
8410 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8411
8412 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
8413
8414 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8415
8416
8417 # Extract the first word of "strip", so it can be a program name with args.
8418 set dummy strip; ac_word=$2
8419 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8420 echo "configure:8421: checking for $ac_word" >&5
8421 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
8422 echo $ac_n "(cached) $ac_c" 1>&6
8423 else
8424 if test -n "$STRIP"; then
8425 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8426 else
8427 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8428 ac_dummy="$PATH"
8429 for ac_dir in $ac_dummy; do
8430 test -z "$ac_dir" && ac_dir=.
8431 if test -f $ac_dir/$ac_word; then
8432 ac_cv_prog_STRIP="strip"
8433 break
8434 fi
8435 done
8436 IFS="$ac_save_ifs"
8437 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP="true"
8438 fi
8439 fi
8440 STRIP="$ac_cv_prog_STRIP"
8441 if test -n "$STRIP"; then
8442 echo "$ac_t""$STRIP" 1>&6
8443 else
8444 echo "$ac_t""no" 1>&6
8445 fi
8446
8447
8448 echo $ac_n "checking make for VPATH support""... $ac_c" 1>&6
8449 echo "configure:8450: checking make for VPATH support" >&5
8450 cat - << EOF > confMake
8451 check : file
8452 cp \$? \$@
8453 cp \$? final_file
8454 EOF
8455
8456 if test ! -d sub ; then
8457 mkdir sub
8458 fi
8459 echo dummy > sub/file
8460 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
8461 RESULT=$?
8462 rm -f sub/file check final_file confMake
8463 rmdir sub
8464 if test "$RESULT" = 0; then
8465 echo "$ac_t""yes" 1>&6
8466 else
8467 echo "$ac_t""no" 1>&6
8468 { echo "configure: error:
8469 You need a make-utility that is able to use the variable
8470 VPATH correctly.
8471 If your version of make does not support VPATH correctly,
8472 please install GNU-make (possibly as gmake), and start
8473 configure with the following command:
8474 export MAKE=gmake; ./configure for sh-type shells
8475 setenv MAKE gmake; ./configure for csh-type shells
8476 Also please do remember to use gmake in this case every time
8477 you are trying to compile.
8478 " 1>&2; exit 1; }
8479 fi
8480
8481 for ac_prog in 'bison -y' byacc
8482 do
8483 # Extract the first word of "$ac_prog", so it can be a program name with args.
8484 set dummy $ac_prog; ac_word=$2
8485 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8486 echo "configure:8487: checking for $ac_word" >&5
8487 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
8488 echo $ac_n "(cached) $ac_c" 1>&6
8489 else
8490 if test -n "$YACC"; then
8491 ac_cv_prog_YACC="$YACC" # Let the user override the test.
8492 else
8493 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8494 ac_dummy="$PATH"
8495 for ac_dir in $ac_dummy; do
8496 test -z "$ac_dir" && ac_dir=.
8497 if test -f $ac_dir/$ac_word; then
8498 ac_cv_prog_YACC="$ac_prog"
8499 break
8500 fi
8501 done
8502 IFS="$ac_save_ifs"
8503 fi
8504 fi
8505 YACC="$ac_cv_prog_YACC"
8506 if test -n "$YACC"; then
8507 echo "$ac_t""$YACC" 1>&6
8508 else
8509 echo "$ac_t""no" 1>&6
8510 fi
8511
8512 test -n "$YACC" && break
8513 done
8514 test -n "$YACC" || YACC="yacc"
8515
8516
8517 # Extract the first word of "flex", so it can be a program name with args.
8518 set dummy flex; ac_word=$2
8519 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8520 echo "configure:8521: checking for $ac_word" >&5
8521 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
8522 echo $ac_n "(cached) $ac_c" 1>&6
8523 else
8524 if test -n "$LEX"; then
8525 ac_cv_prog_LEX="$LEX" # Let the user override the test.
8526 else
8527 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8528 ac_dummy="$PATH"
8529 for ac_dir in $ac_dummy; do
8530 test -z "$ac_dir" && ac_dir=.
8531 if test -f $ac_dir/$ac_word; then
8532 ac_cv_prog_LEX="flex"
8533 break
8534 fi
8535 done
8536 IFS="$ac_save_ifs"
8537 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
8538 fi
8539 fi
8540 LEX="$ac_cv_prog_LEX"
8541 if test -n "$LEX"; then
8542 echo "$ac_t""$LEX" 1>&6
8543 else
8544 echo "$ac_t""no" 1>&6
8545 fi
8546
8547 if test -z "$LEXLIB"
8548 then
8549 case "$LEX" in
8550 flex*) ac_lib=fl ;;
8551 *) ac_lib=l ;;
8552 esac
8553 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
8554 echo "configure:8555: checking for yywrap in -l$ac_lib" >&5
8555 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
8556 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
8557 echo $ac_n "(cached) $ac_c" 1>&6
8558 else
8559 ac_save_LIBS="$LIBS"
8560 LIBS="-l$ac_lib $LIBS"
8561 cat > conftest.$ac_ext <<EOF
8562 #line 8563 "configure"
8563 #include "confdefs.h"
8564 /* Override any gcc2 internal prototype to avoid an error. */
8565 /* We use char because int might match the return type of a gcc2
8566 builtin and then its argument prototype would still apply. */
8567 char yywrap();
8568
8569 int main() {
8570 yywrap()
8571 ; return 0; }
8572 EOF
8573 if { (eval echo configure:8574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
8574 rm -rf conftest*
8575 eval "ac_cv_lib_$ac_lib_var=yes"
8576 else
8577 echo "configure: failed program was:" >&5
8578 cat conftest.$ac_ext >&5
8579 rm -rf conftest*
8580 eval "ac_cv_lib_$ac_lib_var=no"
8581 fi
8582 rm -f conftest*
8583 LIBS="$ac_save_LIBS"
8584
8585 fi
8586 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
8587 echo "$ac_t""yes" 1>&6
8588 LEXLIB="-l$ac_lib"
8589 else
8590 echo "$ac_t""no" 1>&6
8591 fi
8592
8593 fi
8594
8595
8596 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
8597 echo "configure:8598: checking whether ln -s works" >&5
8598 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
8599 echo $ac_n "(cached) $ac_c" 1>&6
8600 else
8601 rm -f conftestdata
8602 if ln -s X conftestdata 2>/dev/null
8603 then
8604 rm -f conftestdata
8605 ac_cv_prog_LN_S="ln -s"
8606 else
8607 ac_cv_prog_LN_S=ln
8608 fi
8609 fi
8610 LN_S="$ac_cv_prog_LN_S"
8611 if test "$ac_cv_prog_LN_S" = "ln -s"; then
8612 echo "$ac_t""yes" 1>&6
8613 else
8614 echo "$ac_t""no" 1>&6
8615 fi
8616
8617
8618
8619 SEARCH_INCLUDE="\
8620 /usr/local/include \
8621 \
8622 /usr/Motif-1.2/include \
8623 /usr/Motif-2.1/include \
8624 \
8625 /usr/include/Motif1.2 \
8626 /opt/xpm/include/X11 \
8627 /opt/GBxpm/include/ \
8628 /opt/GBxpm/X11/include/ \
8629 \
8630 /usr/Motif1.2/include \
8631 /usr/dt/include \
8632 /usr/openwin/include \
8633 \
8634 /usr/include/Xm \
8635 \
8636 /usr/X11R6/include \
8637 /usr/X11R6.4/include \
8638 /usr/X11R5/include \
8639 /usr/X11R4/include \
8640 \
8641 /usr/include/X11R6 \
8642 /usr/include/X11R5 \
8643 /usr/include/X11R4 \
8644 \
8645 /usr/local/X11R6/include \
8646 /usr/local/X11R5/include \
8647 /usr/local/X11R4/include \
8648 \
8649 /usr/local/include/X11R6 \
8650 /usr/local/include/X11R5 \
8651 /usr/local/include/X11R4 \
8652 \
8653 /usr/X11/include \
8654 /usr/include/X11 \
8655 /usr/local/X11/include \
8656 /usr/local/include/X11 \
8657 \
8658 /usr/X386/include \
8659 /usr/x386/include \
8660 /usr/XFree86/include/X11 \
8661 \
8662 X:/XFree86/include \
8663 X:/XFree86/include/X11 \
8664 \
8665 /usr/include/gtk \
8666 /usr/local/include/gtk \
8667 /usr/include/glib \
8668 /usr/local/include/glib \
8669 \
8670 /usr/include/qt \
8671 /usr/local/include/qt \
8672 \
8673 /usr/include/windows \
8674 /usr/include/wine \
8675 /usr/local/include/wine \
8676 \
8677 /usr/unsupported/include \
8678 /usr/athena/include \
8679 /usr/local/x11r5/include \
8680 /usr/lpp/Xamples/include \
8681 \
8682 /usr/openwin/share/include \
8683 \
8684 /usr/include"
8685
8686 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s/include/lib/g` "
8687
8688
8689 cat > confcache <<\EOF
8690 # This file is a shell script that caches the results of configure
8691 # tests run on this system so they can be shared between configure
8692 # scripts and configure runs. It is not useful on other systems.
8693 # If it contains results you don't want to keep, you may remove or edit it.
8694 #
8695 # By default, configure uses ./config.cache as the cache file,
8696 # creating it if it does not exist already. You can give configure
8697 # the --cache-file=FILE option to use a different cache file; that is
8698 # what configure does when it calls configure scripts in
8699 # subdirectories, so they share the cache.
8700 # Giving --cache-file=/dev/null disables caching, for debugging configure.
8701 # config.status only pays attention to the cache file if you give it the
8702 # --recheck option to rerun configure.
8703 #
8704 EOF
8705 # The following way of writing the cache mishandles newlines in values,
8706 # but we know of no workaround that is simple, portable, and efficient.
8707 # So, don't put newlines in cache variables' values.
8708 # Ultrix sh set writes to stderr and can't be redirected directly,
8709 # and sets the high bit in the cache file unless we assign to the vars.
8710 (set) 2>&1 |
8711 case `(ac_space=' '; set | grep ac_space) 2>&1` in
8712 *ac_space=\ *)
8713 # `set' does not quote correctly, so add quotes (double-quote substitution
8714 # turns \\\\ into \\, and sed turns \\ into \).
8715 sed -n \
8716 -e "s/'/'\\\\''/g" \
8717 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
8718 ;;
8719 *)
8720 # `set' quotes correctly as required by POSIX, so do not add quotes.
8721 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
8722 ;;
8723 esac >> confcache
8724 if cmp -s $cache_file confcache; then
8725 :
8726 else
8727 if test -w $cache_file; then
8728 echo "updating cache $cache_file"
8729 cat confcache > $cache_file
8730 else
8731 echo "not updating unwritable cache $cache_file"
8732 fi
8733 fi
8734 rm -f confcache
8735
8736
8737
8738 AFMINSTALL=
8739
8740 if test "$wxUSE_GUI" = "yes"; then
8741 USE_GUI=1
8742
8743 TOOLKIT=
8744 TOOLKIT_INCLUDE=
8745
8746 GUI_TK_LIBRARY=
8747 GUI_TK_LINK=
8748
8749 WXGTK12=
8750 WXGTK127=
8751 WXGTK20=
8752
8753 WXWINE=
8754
8755 if test "$wxUSE_CYGWIN" = 1 || test "$wxUSE_MINGW" = 1 ; then
8756 ac_safe=`echo "windows.h" | sed 'y%./+-%__p_%'`
8757 echo $ac_n "checking for windows.h""... $ac_c" 1>&6
8758 echo "configure:8759: checking for windows.h" >&5
8759 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
8760 echo $ac_n "(cached) $ac_c" 1>&6
8761 else
8762 cat > conftest.$ac_ext <<EOF
8763 #line 8764 "configure"
8764 #include "confdefs.h"
8765 #include <windows.h>
8766 EOF
8767 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
8768 { (eval echo configure:8769: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
8769 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
8770 if test -z "$ac_err"; then
8771 rm -rf conftest*
8772 eval "ac_cv_header_$ac_safe=yes"
8773 else
8774 echo "$ac_err" >&5
8775 echo "configure: failed program was:" >&5
8776 cat conftest.$ac_ext >&5
8777 rm -rf conftest*
8778 eval "ac_cv_header_$ac_safe=no"
8779 fi
8780 rm -f conftest*
8781 fi
8782 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
8783 echo "$ac_t""yes" 1>&6
8784 :
8785 else
8786 echo "$ac_t""no" 1>&6
8787
8788 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
8789
8790 fi
8791
8792
8793 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS msw"
8794 LIBS="$LIBS -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lcrtdll -ladvapi32 -lwsock32"
8795
8796 if test "$wxUSE_ODBC" = "yes" ; then
8797 LIBS="$LIBS -lodbc32 -lole32 -loleaut32"
8798 fi
8799
8800 if test "$wxUSE_MINGW" = 1; then
8801 LDFLAGS="$LDFLAGS -mwindows"
8802 fi
8803
8804 TOOLKIT=MSW
8805 GUIDIST=MSW_DIST
8806
8807 RCINCSWITCH="--include-dir"
8808 RCDEFSWITCH="--define"
8809 RCPREPROCESSOR="--preprocessor \"\$(CC) -c -E -xc-header -DRC_INVOKED\""
8810 RCINPUTSWITCH="-i"
8811 RCOUTPUTSWITCH="-o"
8812 RESFLAGS="$RCPREPROCESSOR $RCINCSWITCH \$(top_srcdir)/include $RCINCSWITCH \$(top_srcdir)/\$(program_dir) $RCDEFSWITCH __WIN32__ $RCDEFSWITCH __WIN95__ $RCDEFSWITCH __GNUWIN32__"
8813
8814 RESPROGRAM="\$(RES_PROGRAM)"
8815 fi
8816
8817 if test "$wxUSE_GTK" = 1; then
8818 echo $ac_n "checking for GTK+ version""... $ac_c" 1>&6
8819 echo "configure:8820: checking for GTK+ version" >&5
8820
8821 gtk_version_cached=1
8822 if eval "test \"`echo '$''{'wx_cv_lib_gtk'+set}'`\" = set"; then
8823 echo $ac_n "(cached) $ac_c" 1>&6
8824 else
8825
8826 gtk_version_cached=0
8827 echo "$ac_t""""" 1>&6
8828
8829 wx_cv_lib_gtk=
8830 if test "x$wxUSE_GTK2" = "xyes"; then
8831 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
8832 if test "${with_gtk_prefix+set}" = set; then
8833 withval="$with_gtk_prefix"
8834 gtk_config_prefix="$withval"
8835 else
8836 gtk_config_prefix=""
8837 fi
8838
8839 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
8840 if test "${with_gtk_exec_prefix+set}" = set; then
8841 withval="$with_gtk_exec_prefix"
8842 gtk_config_exec_prefix="$withval"
8843 else
8844 gtk_config_exec_prefix=""
8845 fi
8846
8847 # Check whether --enable-gtktest or --disable-gtktest was given.
8848 if test "${enable_gtktest+set}" = set; then
8849 enableval="$enable_gtktest"
8850 :
8851 else
8852 enable_gtktest=yes
8853 fi
8854
8855
8856 for module in .
8857 do
8858 case "$module" in
8859 gthread)
8860 gtk_config_args="$gtk_config_args gthread"
8861 ;;
8862 esac
8863 done
8864
8865 if test x$gtk_config_exec_prefix != x ; then
8866 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
8867 if test x${GTK_CONFIG_2_0+set} != xset ; then
8868 GTK_CONFIG_2_0=$gtk_config_exec_prefix/bin/gtk-config-2.0
8869 fi
8870 fi
8871 if test x$gtk_config_prefix != x ; then
8872 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
8873 if test x${GTK_CONFIG_2_0+set} != xset ; then
8874 GTK_CONFIG_2_0=$gtk_config_prefix/bin/gtk-config-2.0
8875 fi
8876 fi
8877
8878 # Extract the first word of "gtk-config-2.0", so it can be a program name with args.
8879 set dummy gtk-config-2.0; ac_word=$2
8880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
8881 echo "configure:8882: checking for $ac_word" >&5
8882 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG_2_0'+set}'`\" = set"; then
8883 echo $ac_n "(cached) $ac_c" 1>&6
8884 else
8885 case "$GTK_CONFIG_2_0" in
8886 /*)
8887 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a path.
8888 ;;
8889 ?:/*)
8890 ac_cv_path_GTK_CONFIG_2_0="$GTK_CONFIG_2_0" # Let the user override the test with a dos path.
8891 ;;
8892 *)
8893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
8894 ac_dummy="$PATH"
8895 for ac_dir in $ac_dummy; do
8896 test -z "$ac_dir" && ac_dir=.
8897 if test -f $ac_dir/$ac_word; then
8898 ac_cv_path_GTK_CONFIG_2_0="$ac_dir/$ac_word"
8899 break
8900 fi
8901 done
8902 IFS="$ac_save_ifs"
8903 test -z "$ac_cv_path_GTK_CONFIG_2_0" && ac_cv_path_GTK_CONFIG_2_0="no"
8904 ;;
8905 esac
8906 fi
8907 GTK_CONFIG_2_0="$ac_cv_path_GTK_CONFIG_2_0"
8908 if test -n "$GTK_CONFIG_2_0"; then
8909 echo "$ac_t""$GTK_CONFIG_2_0" 1>&6
8910 else
8911 echo "$ac_t""no" 1>&6
8912 fi
8913
8914 min_gtk_version=1.3.1
8915 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
8916 echo "configure:8917: checking for GTK - version >= $min_gtk_version" >&5
8917 no_gtk=""
8918 if test "$GTK_CONFIG_2_0" = "no" ; then
8919 no_gtk=yes
8920 else
8921 GTK_CFLAGS=`$GTK_CONFIG_2_0 $gtk_config_args --cflags`
8922 GTK_LIBS=`$GTK_CONFIG_2_0 $gtk_config_args --libs`
8923 gtk_config_major_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8924 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8925 gtk_config_minor_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8926 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8927 gtk_config_micro_version=`$GTK_CONFIG_2_0 $gtk_config_args --version | \
8928 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8929 if test "x$enable_gtktest" = "xyes" ; then
8930 ac_save_CFLAGS="$CFLAGS"
8931 ac_save_LIBS="$LIBS"
8932 CFLAGS="$CFLAGS $GTK_CFLAGS"
8933 LIBS="$GTK_LIBS $LIBS"
8934 rm -f conf.gtktest
8935 if test "$cross_compiling" = yes; then
8936 echo $ac_n "cross compiling; assumed OK... $ac_c"
8937 else
8938 cat > conftest.$ac_ext <<EOF
8939 #line 8940 "configure"
8940 #include "confdefs.h"
8941
8942 #include <gtk/gtk.h>
8943 #include <stdio.h>
8944 #include <stdlib.h>
8945
8946 int
8947 main ()
8948 {
8949 int major, minor, micro;
8950 char *tmp_version;
8951
8952 system ("touch conf.gtktest");
8953
8954 /* HP/UX 9 (%@#!) writes to sscanf strings */
8955 tmp_version = g_strdup("$min_gtk_version");
8956 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8957 printf("%s, bad version string\n", "$min_gtk_version");
8958 exit(1);
8959 }
8960
8961 if ((gtk_major_version != $gtk_config_major_version) ||
8962 (gtk_minor_version != $gtk_config_minor_version) ||
8963 (gtk_micro_version != $gtk_config_micro_version))
8964 {
8965 printf("\n*** 'gtk-config-2.0 --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
8966 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
8967 gtk_major_version, gtk_minor_version, gtk_micro_version);
8968 printf ("*** was found! If gtk-config-2.0 was correct, then it is best\n");
8969 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
8970 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
8971 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
8972 printf("*** required on your system.\n");
8973 printf("*** If gtk-config-2.0 was wrong, set the environment variable GTK_CONFIG_2_0\n");
8974 printf("*** to point to the correct copy of gtk-config-2.0, and remove the file config.cache\n");
8975 printf("*** before re-running configure\n");
8976 }
8977 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
8978 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
8979 (gtk_minor_version != GTK_MINOR_VERSION) ||
8980 (gtk_micro_version != GTK_MICRO_VERSION))
8981 {
8982 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
8983 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
8984 printf("*** library (version %d.%d.%d)\n",
8985 gtk_major_version, gtk_minor_version, gtk_micro_version);
8986 }
8987 #endif /* defined (GTK_MAJOR_VERSION) ... */
8988 else
8989 {
8990 if ((gtk_major_version > major) ||
8991 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
8992 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
8993 {
8994 return 0;
8995 }
8996 else
8997 {
8998 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
8999 gtk_major_version, gtk_minor_version, gtk_micro_version);
9000 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
9001 major, minor, micro);
9002 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
9003 printf("***\n");
9004 printf("*** If you have already installed a sufficiently new version, this error\n");
9005 printf("*** probably means that the wrong copy of the gtk-config-2.0 shell script is\n");
9006 printf("*** being found. The easiest way to fix this is to remove the old version\n");
9007 printf("*** of GTK+, but you can also set the GTK_CONFIG_2_0 environment to point to the\n");
9008 printf("*** correct copy of gtk-config-2.0. (In this case, you will have to\n");
9009 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
9010 printf("*** so that the correct libraries are found at run-time))\n");
9011 }
9012 }
9013 return 1;
9014 }
9015
9016 EOF
9017 if { (eval echo configure:9018: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9018 then
9019 :
9020 else
9021 echo "configure: failed program was:" >&5
9022 cat conftest.$ac_ext >&5
9023 rm -fr conftest*
9024 no_gtk=yes
9025 fi
9026 rm -fr conftest*
9027 fi
9028
9029 CFLAGS="$ac_save_CFLAGS"
9030 LIBS="$ac_save_LIBS"
9031 fi
9032 fi
9033 if test "x$no_gtk" = x ; then
9034 echo "$ac_t""yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" 1>&6
9035 wx_cv_lib_gtk=2.0
9036 else
9037 echo "$ac_t""no" 1>&6
9038 if test "$GTK_CONFIG_2_0" = "no" ; then
9039 echo "*** The gtk-config-2.0 script installed by GTK could not be found"
9040 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
9041 echo "*** your path, or set the GTK_CONFIG_2_0 environment variable to the"
9042 echo "*** full path to gtk-config-2.0."
9043 else
9044 if test -f conf.gtktest ; then
9045 :
9046 else
9047 echo "*** Could not run GTK test program, checking why..."
9048 CFLAGS="$CFLAGS $GTK_CFLAGS"
9049 LIBS="$LIBS $GTK_LIBS"
9050 cat > conftest.$ac_ext <<EOF
9051 #line 9052 "configure"
9052 #include "confdefs.h"
9053
9054 #include <gtk/gtk.h>
9055 #include <stdio.h>
9056
9057 int main() {
9058 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
9059 ; return 0; }
9060 EOF
9061 if { (eval echo configure:9062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9062 rm -rf conftest*
9063 echo "*** The test program compiled, but did not run. This usually means"
9064 echo "*** that the run-time linker is not finding GTK or finding the wrong"
9065 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
9066 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
9067 echo "*** to the installed location Also, make sure you have run ldconfig if that"
9068 echo "*** is required on your system"
9069 echo "***"
9070 echo "*** If you have an old version installed, it is best to remove it, although"
9071 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
9072 echo "***"
9073 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
9074 echo "*** came with the system with the command"
9075 echo "***"
9076 echo "*** rpm --erase --nodeps gtk gtk-devel"
9077 else
9078 echo "configure: failed program was:" >&5
9079 cat conftest.$ac_ext >&5
9080 rm -rf conftest*
9081 echo "*** The test program failed to compile or link. See the file config.log for the"
9082 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
9083 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
9084 echo "*** may want to edit the gtk-config-2.0 script: $GTK_CONFIG_2_0"
9085 fi
9086 rm -f conftest*
9087 CFLAGS="$ac_save_CFLAGS"
9088 LIBS="$ac_save_LIBS"
9089 fi
9090 fi
9091 GTK_CFLAGS=""
9092 GTK_LIBS=""
9093 gthread
9094 fi
9095
9096
9097 rm -f conf.gtktest
9098
9099 fi
9100
9101 if test -z "$wx_cv_lib_gtk"; then
9102
9103 if test x$gtk_config_exec_prefix != x ; then
9104 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9105 if test x${GTK_CONFIG+set} != xset ; then
9106 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9107 fi
9108 fi
9109 if test x$gtk_config_prefix != x ; then
9110 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9111 if test x${GTK_CONFIG+set} != xset ; then
9112 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9113 fi
9114 fi
9115
9116 # Extract the first word of "gtk-config", so it can be a program name with args.
9117 set dummy gtk-config; ac_word=$2
9118 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9119 echo "configure:9120: checking for $ac_word" >&5
9120 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9121 echo $ac_n "(cached) $ac_c" 1>&6
9122 else
9123 case "$GTK_CONFIG" in
9124 /*)
9125 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9126 ;;
9127 ?:/*)
9128 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9129 ;;
9130 *)
9131 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9132 ac_dummy="$PATH"
9133 for ac_dir in $ac_dummy; do
9134 test -z "$ac_dir" && ac_dir=.
9135 if test -f $ac_dir/$ac_word; then
9136 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9137 break
9138 fi
9139 done
9140 IFS="$ac_save_ifs"
9141 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9142 ;;
9143 esac
9144 fi
9145 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9146 if test -n "$GTK_CONFIG"; then
9147 echo "$ac_t""$GTK_CONFIG" 1>&6
9148 else
9149 echo "$ac_t""no" 1>&6
9150 fi
9151
9152 min_gtk_version=1.2.7
9153 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9154 echo "configure:9155: checking for GTK - version >= $min_gtk_version" >&5
9155 no_gtk=""
9156 if test "$GTK_CONFIG" != "no" ; then
9157 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9158 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9159 ac_save_CFLAGS="$CFLAGS"
9160 ac_save_LIBS="$LIBS"
9161 CFLAGS="$CFLAGS $GTK_CFLAGS"
9162 LIBS="$LIBS $GTK_LIBS"
9163 if test "$cross_compiling" = yes; then
9164 echo $ac_n "cross compiling; assumed OK... $ac_c"
9165 else
9166 cat > conftest.$ac_ext <<EOF
9167 #line 9168 "configure"
9168 #include "confdefs.h"
9169
9170 #include <gtk/gtk.h>
9171 #include <gtk/gtkfeatures.h>
9172 #include <stdio.h>
9173 #include <stdlib.h>
9174
9175 int
9176 main ()
9177 {
9178 int major, minor, micro;
9179
9180 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9181 printf("%s, bad version string\n", "$min_gtk_version");
9182 exit(1);
9183 }
9184
9185 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9186 (GTK_MINOR_VERSION != gtk_minor_version) ||
9187 (GTK_MICRO_VERSION != gtk_micro_version)) {
9188 printf("Headers vs. library version mismatch!\n");
9189 exit(1);
9190 }
9191
9192 if (gtk_minor_version == 1) return FALSE;
9193
9194 return !((gtk_major_version > major) ||
9195 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9196 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9197 }
9198
9199 EOF
9200 if { (eval echo configure:9201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9201 then
9202 :
9203 else
9204 echo "configure: failed program was:" >&5
9205 cat conftest.$ac_ext >&5
9206 rm -fr conftest*
9207 no_gtk=yes
9208 fi
9209 rm -fr conftest*
9210 fi
9211
9212 CFLAGS="$ac_save_CFLAGS"
9213 LIBS="$ac_save_LIBS"
9214 else
9215 no_gtk=yes
9216 fi
9217 if test "x$no_gtk" = x ; then
9218 echo "$ac_t""yes" 1>&6
9219 wx_cv_lib_gtk=1.2.7
9220 else
9221 echo "$ac_t""no" 1>&6
9222 GTK_CFLAGS=""
9223 GTK_LIBS=""
9224 :
9225 fi
9226
9227
9228
9229 fi
9230
9231 if test -z "$wx_cv_lib_gtk"; then
9232
9233 if test x$gtk_config_exec_prefix != x ; then
9234 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
9235 if test x${GTK_CONFIG+set} != xset ; then
9236 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
9237 fi
9238 fi
9239 if test x$gtk_config_prefix != x ; then
9240 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
9241 if test x${GTK_CONFIG+set} != xset ; then
9242 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
9243 fi
9244 fi
9245
9246 # Extract the first word of "gtk-config", so it can be a program name with args.
9247 set dummy gtk-config; ac_word=$2
9248 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
9249 echo "configure:9250: checking for $ac_word" >&5
9250 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
9251 echo $ac_n "(cached) $ac_c" 1>&6
9252 else
9253 case "$GTK_CONFIG" in
9254 /*)
9255 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
9256 ;;
9257 ?:/*)
9258 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
9259 ;;
9260 *)
9261 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
9262 ac_dummy="$PATH"
9263 for ac_dir in $ac_dummy; do
9264 test -z "$ac_dir" && ac_dir=.
9265 if test -f $ac_dir/$ac_word; then
9266 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
9267 break
9268 fi
9269 done
9270 IFS="$ac_save_ifs"
9271 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
9272 ;;
9273 esac
9274 fi
9275 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
9276 if test -n "$GTK_CONFIG"; then
9277 echo "$ac_t""$GTK_CONFIG" 1>&6
9278 else
9279 echo "$ac_t""no" 1>&6
9280 fi
9281
9282 min_gtk_version=1.2.3
9283 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
9284 echo "configure:9285: checking for GTK - version >= $min_gtk_version" >&5
9285 no_gtk=""
9286 if test "$GTK_CONFIG" != "no" ; then
9287 GTK_CFLAGS=`$GTK_CONFIG --cflags`
9288 GTK_LIBS=`$GTK_CONFIG --libs gthread`
9289 ac_save_CFLAGS="$CFLAGS"
9290 ac_save_LIBS="$LIBS"
9291 CFLAGS="$CFLAGS $GTK_CFLAGS"
9292 LIBS="$LIBS $GTK_LIBS"
9293 if test "$cross_compiling" = yes; then
9294 echo $ac_n "cross compiling; assumed OK... $ac_c"
9295 else
9296 cat > conftest.$ac_ext <<EOF
9297 #line 9298 "configure"
9298 #include "confdefs.h"
9299
9300 #include <gtk/gtk.h>
9301 #include <gtk/gtkfeatures.h>
9302 #include <stdio.h>
9303 #include <stdlib.h>
9304
9305 int
9306 main ()
9307 {
9308 int major, minor, micro;
9309
9310 if (sscanf("$min_gtk_version", "%d.%d.%d", &major, &minor, &micro) != 3) {
9311 printf("%s, bad version string\n", "$min_gtk_version");
9312 exit(1);
9313 }
9314
9315 if ((GTK_MAJOR_VERSION != gtk_major_version) ||
9316 (GTK_MINOR_VERSION != gtk_minor_version) ||
9317 (GTK_MICRO_VERSION != gtk_micro_version)) {
9318 printf("Headers vs. library version mismatch!\n");
9319 exit(1);
9320 }
9321
9322 if (gtk_minor_version == 1) return FALSE;
9323
9324 return !((gtk_major_version > major) ||
9325 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
9326 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)));
9327 }
9328
9329 EOF
9330 if { (eval echo configure:9331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
9331 then
9332 :
9333 else
9334 echo "configure: failed program was:" >&5
9335 cat conftest.$ac_ext >&5
9336 rm -fr conftest*
9337 no_gtk=yes
9338 fi
9339 rm -fr conftest*
9340 fi
9341
9342 CFLAGS="$ac_save_CFLAGS"
9343 LIBS="$ac_save_LIBS"
9344 else
9345 no_gtk=yes
9346 fi
9347 if test "x$no_gtk" = x ; then
9348 echo "$ac_t""yes" 1>&6
9349 wx_cv_lib_gtk=1.2.3
9350 else
9351 echo "$ac_t""no" 1>&6
9352 GTK_CFLAGS=""
9353 GTK_LIBS=""
9354 :
9355 fi
9356
9357
9358
9359 fi
9360
9361 if test -z "$wx_cv_lib_gtk"; then
9362 wx_cv_lib_gtk=none
9363 else
9364 wx_cv_cflags_gtk=$GTK_CFLAGS
9365 wx_cv_libs_gtk=$GTK_LIBS
9366 fi
9367
9368
9369 fi
9370
9371
9372 if test "$gtk_version_cached" = 1; then
9373 echo "$ac_t""$wx_cv_lib_gtk" 1>&6
9374 fi
9375
9376 case "$wx_cv_lib_gtk" in
9377 2.0) WXGTK20=1
9378 ;;
9379 1.2.7) WXGTK127=1
9380 WXGTK12=1
9381 ;;
9382 1.2.3) WXGTK12=1
9383 ;;
9384 *) { echo "configure: error:
9385 Please check that gtk-config is in path, the directory
9386 where GTK+ libraries are installed (returned by
9387 'gtk-config --libs' command) is in LD_LIBRARY_PATH or
9388 equivalent variable and GTK+ is version 1.2.3 or above.
9389 " 1>&2; exit 1; }
9390 ;;
9391 esac
9392
9393 TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
9394 GUI_TK_LIBRARY="$wx_cv_libs_gtk"
9395
9396 AFMINSTALL=afminstall
9397 TOOLKIT=GTK
9398 GUIDIST=GTK_DIST
9399
9400 echo $ac_n "checking for gdk_im_open in -lgdk""... $ac_c" 1>&6
9401 echo "configure:9402: checking for gdk_im_open in -lgdk" >&5
9402 ac_lib_var=`echo gdk'_'gdk_im_open | sed 'y%./+-%__p_%'`
9403 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9404 echo $ac_n "(cached) $ac_c" 1>&6
9405 else
9406 ac_save_LIBS="$LIBS"
9407 LIBS="-lgdk $LIBS"
9408 cat > conftest.$ac_ext <<EOF
9409 #line 9410 "configure"
9410 #include "confdefs.h"
9411 /* Override any gcc2 internal prototype to avoid an error. */
9412 /* We use char because int might match the return type of a gcc2
9413 builtin and then its argument prototype would still apply. */
9414 char gdk_im_open();
9415
9416 int main() {
9417 gdk_im_open()
9418 ; return 0; }
9419 EOF
9420 if { (eval echo configure:9421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9421 rm -rf conftest*
9422 eval "ac_cv_lib_$ac_lib_var=yes"
9423 else
9424 echo "configure: failed program was:" >&5
9425 cat conftest.$ac_ext >&5
9426 rm -rf conftest*
9427 eval "ac_cv_lib_$ac_lib_var=no"
9428 fi
9429 rm -f conftest*
9430 LIBS="$ac_save_LIBS"
9431
9432 fi
9433 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9434 echo "$ac_t""yes" 1>&6
9435 cat >> confdefs.h <<\EOF
9436 #define HAVE_XIM 1
9437 EOF
9438
9439 else
9440 echo "$ac_t""no" 1>&6
9441 fi
9442
9443 fi
9444
9445 if test "$wxUSE_MGL" = 1; then
9446
9447 echo $ac_n "checking for SciTech MGL library""... $ac_c" 1>&6
9448 echo "configure:9449: checking for SciTech MGL library" >&5
9449 if test "x$MGL_ROOT" = x ; then
9450 echo "$ac_t""not found" 1>&6
9451 { echo "configure: error: Cannot find MGL library. Make sure MGL_ROOT is set." 1>&2; exit 1; }
9452 else
9453 echo "$ac_t""$MGL_ROOT" 1>&6
9454 fi
9455
9456 MGL_OS=linux/gcc/glibc
9457 MGL_LIB_TYPE=""
9458
9459 if test "$wxUSE_DEBUG_FLAG" = yes ; then
9460 if test -f $MGL_ROOT/lib/debug/$MGL_OS/libmgl.a ; then
9461 MGL_LIB_TYPE=debug
9462 fi
9463 fi
9464 if test "x$MGL_LIB_TYPE" = x ; then
9465 if test -f $MGL_ROOT/lib/release/$MGL_OS/libmgl.a ; then
9466 MGL_LIB_TYPE=release
9467 else
9468 { echo "configure: error: Cannot find MGL libraries, make sure they are compiled." 1>&2; exit 1; }
9469 fi
9470 fi
9471
9472 TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
9473 GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$MGL_LIB_TYPE/$MGL_OS -lmgl -lmglcpp -lpm"
9474
9475 AFMINSTALL=afminstall
9476 TOOLKIT=MGL
9477 GUIDIST=MGL_DIST
9478 fi
9479
9480 if test "$wxUSE_WINE" = 1; then
9481 echo $ac_n "checking for WINE includes""... $ac_c" 1>&6
9482 echo "configure:9483: checking for WINE includes" >&5
9483
9484 ac_find_includes=
9485 for ac_dir in $SEARCH_INCLUDE;
9486 do
9487 if test -f "$ac_dir/windows.h"; then
9488 ac_find_includes=$ac_dir
9489 break
9490 fi
9491 done
9492
9493 if test "$ac_find_includes" != "" ; then
9494 echo "$ac_t""found $ac_find_includes" 1>&6
9495 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE -I$ac_find_includes"
9496 else
9497 echo "$ac_t""no" 1>&6
9498 { echo "configure: error: please set CFLAGS to contain the location of windows.h" 1>&2; exit 1; }
9499 fi
9500
9501 XPM_LINK=""
9502 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
9503 echo "configure:9504: checking for Xpm library" >&5
9504
9505 ac_find_libraries=
9506 for ac_dir in $SEARCH_LIB;
9507 do
9508 for ac_extension in a so sl dylib; do
9509 if test -f "$ac_dir/libXpm.$ac_extension"; then
9510 ac_find_libraries=$ac_dir
9511 break 2
9512 fi
9513 done
9514 done
9515
9516 if test "$ac_find_libraries" != "" ; then
9517 GUI_TK_LIBRARY="-L$ac_find_libraries"
9518 XPM_LINK="-lXpm"
9519 cat >> confdefs.h <<\EOF
9520 #define wxHAVE_LIB_XPM 1
9521 EOF
9522
9523 echo "$ac_t""found at $ac_find_libraries" 1>&6
9524 else
9525 echo "$ac_t""no" 1>&6
9526 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
9527 fi
9528
9529 MESA_LINK=""
9530 echo $ac_n "checking for Mesa library""... $ac_c" 1>&6
9531 echo "configure:9532: checking for Mesa library" >&5
9532
9533 ac_find_libraries=
9534 for ac_dir in $SEARCH_LIB;
9535 do
9536 for ac_extension in a so sl dylib; do
9537 if test -f "$ac_dir/libMesaGL.$ac_extension"; then
9538 ac_find_libraries=$ac_dir
9539 break 2
9540 fi
9541 done
9542 done
9543
9544 if test "$ac_find_libraries" != "" ; then
9545 GUI_TK_LIBRARY="$GUI_TK_LIBRARY -L$ac_find_libraries"
9546 MESA_LINK="-lMesaGL"
9547 echo "$ac_t""found at $ac_find_libraries" 1>&6
9548 else
9549 { echo "configure: error: no" 1>&2; exit 1; }
9550 fi
9551
9552 GUI_TK_LINK="-lwine $MESA_LINK $XPM_LINK -lXxf86dga -lXxf86vm -lSM -lICE -lXext -lXmu -lX11 -lncurses"
9553 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
9554 WXWINE=1
9555 TOOLKIT=MSW
9556 GUIDIST=MSW_DIST
9557 fi
9558
9559
9560 # If we find X, set shell vars x_includes and x_libraries to the
9561 # paths, otherwise set no_x=yes.
9562 # Uses ac_ vars as temps to allow command line to override cache and checks.
9563 # --without-x overrides everything else, but does not touch the cache.
9564 echo $ac_n "checking for X""... $ac_c" 1>&6
9565 echo "configure:9566: checking for X" >&5
9566
9567 # Check whether --with-x or --without-x was given.
9568 if test "${with_x+set}" = set; then
9569 withval="$with_x"
9570 :
9571 fi
9572
9573 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9574 if test "x$with_x" = xno; then
9575 # The user explicitly disabled X.
9576 have_x=disabled
9577 else
9578 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9579 # Both variables are already set.
9580 have_x=yes
9581 else
9582 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
9583 echo $ac_n "(cached) $ac_c" 1>&6
9584 else
9585 # One or both of the vars are not set, and there is no cached value.
9586 ac_x_includes=NO ac_x_libraries=NO
9587 rm -fr conftestdir
9588 if mkdir conftestdir; then
9589 cd conftestdir
9590 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
9591 cat > Imakefile <<'EOF'
9592 acfindx:
9593 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9594 EOF
9595 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9596 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9597 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9598 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9599 for ac_extension in a so sl; do
9600 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9601 test -f $ac_im_libdir/libX11.$ac_extension; then
9602 ac_im_usrlibdir=$ac_im_libdir; break
9603 fi
9604 done
9605 # Screen out bogus values from the imake configuration. They are
9606 # bogus both because they are the default anyway, and because
9607 # using them would break gcc on systems where it needs fixed includes.
9608 case "$ac_im_incroot" in
9609 /usr/include) ;;
9610 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
9611 esac
9612 case "$ac_im_usrlibdir" in
9613 /usr/lib | /lib) ;;
9614 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
9615 esac
9616 fi
9617 cd ..
9618 rm -fr conftestdir
9619 fi
9620
9621 if test "$ac_x_includes" = NO; then
9622 # Guess where to find include files, by looking for this one X11 .h file.
9623 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
9624
9625 # First, try using that file with no special directory specified.
9626 cat > conftest.$ac_ext <<EOF
9627 #line 9628 "configure"
9628 #include "confdefs.h"
9629 #include <$x_direct_test_include>
9630 EOF
9631 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
9632 { (eval echo configure:9633: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
9633 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
9634 if test -z "$ac_err"; then
9635 rm -rf conftest*
9636 # We can compile using X headers with no special include directory.
9637 ac_x_includes=
9638 else
9639 echo "$ac_err" >&5
9640 echo "configure: failed program was:" >&5
9641 cat conftest.$ac_ext >&5
9642 rm -rf conftest*
9643 # Look for the header file in a standard set of common directories.
9644 # Check X11 before X11Rn because it is often a symlink to the current release.
9645 for ac_dir in \
9646 /usr/X11/include \
9647 /usr/X11R6/include \
9648 /usr/X11R5/include \
9649 /usr/X11R4/include \
9650 \
9651 /usr/include/X11 \
9652 /usr/include/X11R6 \
9653 /usr/include/X11R5 \
9654 /usr/include/X11R4 \
9655 \
9656 /usr/local/X11/include \
9657 /usr/local/X11R6/include \
9658 /usr/local/X11R5/include \
9659 /usr/local/X11R4/include \
9660 \
9661 /usr/local/include/X11 \
9662 /usr/local/include/X11R6 \
9663 /usr/local/include/X11R5 \
9664 /usr/local/include/X11R4 \
9665 \
9666 /usr/X386/include \
9667 /usr/x386/include \
9668 /usr/XFree86/include/X11 \
9669 \
9670 /usr/include \
9671 /usr/local/include \
9672 /usr/unsupported/include \
9673 /usr/athena/include \
9674 /usr/local/x11r5/include \
9675 /usr/lpp/Xamples/include \
9676 \
9677 /usr/openwin/include \
9678 /usr/openwin/share/include \
9679 ; \
9680 do
9681 if test -r "$ac_dir/$x_direct_test_include"; then
9682 ac_x_includes=$ac_dir
9683 break
9684 fi
9685 done
9686 fi
9687 rm -f conftest*
9688 fi # $ac_x_includes = NO
9689
9690 if test "$ac_x_libraries" = NO; then
9691 # Check for the libraries.
9692
9693 test -z "$x_direct_test_library" && x_direct_test_library=Xt
9694 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
9695
9696 # See if we find them without any special options.
9697 # Don't add to $LIBS permanently.
9698 ac_save_LIBS="$LIBS"
9699 LIBS="-l$x_direct_test_library $LIBS"
9700 cat > conftest.$ac_ext <<EOF
9701 #line 9702 "configure"
9702 #include "confdefs.h"
9703
9704 int main() {
9705 ${x_direct_test_function}()
9706 ; return 0; }
9707 EOF
9708 if { (eval echo configure:9709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9709 rm -rf conftest*
9710 LIBS="$ac_save_LIBS"
9711 # We can link X programs with no special library path.
9712 ac_x_libraries=
9713 else
9714 echo "configure: failed program was:" >&5
9715 cat conftest.$ac_ext >&5
9716 rm -rf conftest*
9717 LIBS="$ac_save_LIBS"
9718 # First see if replacing the include by lib works.
9719 # Check X11 before X11Rn because it is often a symlink to the current release.
9720 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
9721 /usr/X11/lib \
9722 /usr/X11R6/lib \
9723 /usr/X11R5/lib \
9724 /usr/X11R4/lib \
9725 \
9726 /usr/lib/X11 \
9727 /usr/lib/X11R6 \
9728 /usr/lib/X11R5 \
9729 /usr/lib/X11R4 \
9730 \
9731 /usr/local/X11/lib \
9732 /usr/local/X11R6/lib \
9733 /usr/local/X11R5/lib \
9734 /usr/local/X11R4/lib \
9735 \
9736 /usr/local/lib/X11 \
9737 /usr/local/lib/X11R6 \
9738 /usr/local/lib/X11R5 \
9739 /usr/local/lib/X11R4 \
9740 \
9741 /usr/X386/lib \
9742 /usr/x386/lib \
9743 /usr/XFree86/lib/X11 \
9744 \
9745 /usr/lib \
9746 /usr/local/lib \
9747 /usr/unsupported/lib \
9748 /usr/athena/lib \
9749 /usr/local/x11r5/lib \
9750 /usr/lpp/Xamples/lib \
9751 /lib/usr/lib/X11 \
9752 \
9753 /usr/openwin/lib \
9754 /usr/openwin/share/lib \
9755 ; \
9756 do
9757 for ac_extension in a so sl; do
9758 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
9759 ac_x_libraries=$ac_dir
9760 break 2
9761 fi
9762 done
9763 done
9764 fi
9765 rm -f conftest*
9766 fi # $ac_x_libraries = NO
9767
9768 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
9769 # Didn't find X anywhere. Cache the known absence of X.
9770 ac_cv_have_x="have_x=no"
9771 else
9772 # Record where we found X for the cache.
9773 ac_cv_have_x="have_x=yes \
9774 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9775 fi
9776 fi
9777 fi
9778 eval "$ac_cv_have_x"
9779 fi # $with_x != no
9780
9781 if test "$have_x" != yes; then
9782 echo "$ac_t""$have_x" 1>&6
9783 no_x=yes
9784 else
9785 # If each of the values was on the command line, it overrides each guess.
9786 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9787 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9788 # Update the cache value to reflect the command line values.
9789 ac_cv_have_x="have_x=yes \
9790 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9791 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
9792 fi
9793
9794 if test "$no_x" = yes; then
9795 # Not all programs may use this symbol, but it does not hurt to define it.
9796 cat >> confdefs.h <<\EOF
9797 #define X_DISPLAY_MISSING 1
9798 EOF
9799
9800 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9801 else
9802 if test -n "$x_includes"; then
9803 X_CFLAGS="$X_CFLAGS -I$x_includes"
9804 fi
9805
9806 # It would also be nice to do this for all -L options, not just this one.
9807 if test -n "$x_libraries"; then
9808 X_LIBS="$X_LIBS -L$x_libraries"
9809 # For Solaris; some versions of Sun CC require a space after -R and
9810 # others require no space. Words are not sufficient . . . .
9811 case "`(uname -sr) 2>/dev/null`" in
9812 "SunOS 5"*)
9813 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
9814 echo "configure:9815: checking whether -R must be followed by a space" >&5
9815 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
9816 cat > conftest.$ac_ext <<EOF
9817 #line 9818 "configure"
9818 #include "confdefs.h"
9819
9820 int main() {
9821
9822 ; return 0; }
9823 EOF
9824 if { (eval echo configure:9825: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9825 rm -rf conftest*
9826 ac_R_nospace=yes
9827 else
9828 echo "configure: failed program was:" >&5
9829 cat conftest.$ac_ext >&5
9830 rm -rf conftest*
9831 ac_R_nospace=no
9832 fi
9833 rm -f conftest*
9834 if test $ac_R_nospace = yes; then
9835 echo "$ac_t""no" 1>&6
9836 X_LIBS="$X_LIBS -R$x_libraries"
9837 else
9838 LIBS="$ac_xsave_LIBS -R $x_libraries"
9839 cat > conftest.$ac_ext <<EOF
9840 #line 9841 "configure"
9841 #include "confdefs.h"
9842
9843 int main() {
9844
9845 ; return 0; }
9846 EOF
9847 if { (eval echo configure:9848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9848 rm -rf conftest*
9849 ac_R_space=yes
9850 else
9851 echo "configure: failed program was:" >&5
9852 cat conftest.$ac_ext >&5
9853 rm -rf conftest*
9854 ac_R_space=no
9855 fi
9856 rm -f conftest*
9857 if test $ac_R_space = yes; then
9858 echo "$ac_t""yes" 1>&6
9859 X_LIBS="$X_LIBS -R $x_libraries"
9860 else
9861 echo "$ac_t""neither works" 1>&6
9862 fi
9863 fi
9864 LIBS="$ac_xsave_LIBS"
9865 esac
9866 fi
9867
9868 # Check for system-dependent libraries X programs must link with.
9869 # Do this before checking for the system-independent R6 libraries
9870 # (-lICE), since we may need -lsocket or whatever for X linking.
9871
9872 if test "$ISC" = yes; then
9873 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9874 else
9875 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
9876 # libraries were built with DECnet support. And karl@cs.umb.edu says
9877 # the Alpha needs dnet_stub (dnet does not exist).
9878 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
9879 echo "configure:9880: checking for dnet_ntoa in -ldnet" >&5
9880 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9881 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9882 echo $ac_n "(cached) $ac_c" 1>&6
9883 else
9884 ac_save_LIBS="$LIBS"
9885 LIBS="-ldnet $LIBS"
9886 cat > conftest.$ac_ext <<EOF
9887 #line 9888 "configure"
9888 #include "confdefs.h"
9889 /* Override any gcc2 internal prototype to avoid an error. */
9890 /* We use char because int might match the return type of a gcc2
9891 builtin and then its argument prototype would still apply. */
9892 char dnet_ntoa();
9893
9894 int main() {
9895 dnet_ntoa()
9896 ; return 0; }
9897 EOF
9898 if { (eval echo configure:9899: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9899 rm -rf conftest*
9900 eval "ac_cv_lib_$ac_lib_var=yes"
9901 else
9902 echo "configure: failed program was:" >&5
9903 cat conftest.$ac_ext >&5
9904 rm -rf conftest*
9905 eval "ac_cv_lib_$ac_lib_var=no"
9906 fi
9907 rm -f conftest*
9908 LIBS="$ac_save_LIBS"
9909
9910 fi
9911 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9912 echo "$ac_t""yes" 1>&6
9913 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9914 else
9915 echo "$ac_t""no" 1>&6
9916 fi
9917
9918 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9919 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
9920 echo "configure:9921: checking for dnet_ntoa in -ldnet_stub" >&5
9921 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
9922 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
9923 echo $ac_n "(cached) $ac_c" 1>&6
9924 else
9925 ac_save_LIBS="$LIBS"
9926 LIBS="-ldnet_stub $LIBS"
9927 cat > conftest.$ac_ext <<EOF
9928 #line 9929 "configure"
9929 #include "confdefs.h"
9930 /* Override any gcc2 internal prototype to avoid an error. */
9931 /* We use char because int might match the return type of a gcc2
9932 builtin and then its argument prototype would still apply. */
9933 char dnet_ntoa();
9934
9935 int main() {
9936 dnet_ntoa()
9937 ; return 0; }
9938 EOF
9939 if { (eval echo configure:9940: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9940 rm -rf conftest*
9941 eval "ac_cv_lib_$ac_lib_var=yes"
9942 else
9943 echo "configure: failed program was:" >&5
9944 cat conftest.$ac_ext >&5
9945 rm -rf conftest*
9946 eval "ac_cv_lib_$ac_lib_var=no"
9947 fi
9948 rm -f conftest*
9949 LIBS="$ac_save_LIBS"
9950
9951 fi
9952 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
9953 echo "$ac_t""yes" 1>&6
9954 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9955 else
9956 echo "$ac_t""no" 1>&6
9957 fi
9958
9959 fi
9960
9961 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9962 # to get the SysV transport functions.
9963 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
9964 # needs -lnsl.
9965 # The nsl library prevents programs from opening the X display
9966 # on Irix 5.2, according to dickey@clark.net.
9967 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
9968 echo "configure:9969: checking for gethostbyname" >&5
9969 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
9970 echo $ac_n "(cached) $ac_c" 1>&6
9971 else
9972 cat > conftest.$ac_ext <<EOF
9973 #line 9974 "configure"
9974 #include "confdefs.h"
9975 /* System header to define __stub macros and hopefully few prototypes,
9976 which can conflict with char gethostbyname(); below. */
9977 #include <assert.h>
9978 /* Override any gcc2 internal prototype to avoid an error. */
9979 /* We use char because int might match the return type of a gcc2
9980 builtin and then its argument prototype would still apply. */
9981 char gethostbyname();
9982
9983 int main() {
9984
9985 /* The GNU C library defines this for functions which it implements
9986 to always fail with ENOSYS. Some functions are actually named
9987 something starting with __ and the normal name is an alias. */
9988 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9989 choke me
9990 #else
9991 gethostbyname();
9992 #endif
9993
9994 ; return 0; }
9995 EOF
9996 if { (eval echo configure:9997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
9997 rm -rf conftest*
9998 eval "ac_cv_func_gethostbyname=yes"
9999 else
10000 echo "configure: failed program was:" >&5
10001 cat conftest.$ac_ext >&5
10002 rm -rf conftest*
10003 eval "ac_cv_func_gethostbyname=no"
10004 fi
10005 rm -f conftest*
10006 fi
10007
10008 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
10009 echo "$ac_t""yes" 1>&6
10010 :
10011 else
10012 echo "$ac_t""no" 1>&6
10013 fi
10014
10015 if test $ac_cv_func_gethostbyname = no; then
10016 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
10017 echo "configure:10018: checking for gethostbyname in -lnsl" >&5
10018 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
10019 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10020 echo $ac_n "(cached) $ac_c" 1>&6
10021 else
10022 ac_save_LIBS="$LIBS"
10023 LIBS="-lnsl $LIBS"
10024 cat > conftest.$ac_ext <<EOF
10025 #line 10026 "configure"
10026 #include "confdefs.h"
10027 /* Override any gcc2 internal prototype to avoid an error. */
10028 /* We use char because int might match the return type of a gcc2
10029 builtin and then its argument prototype would still apply. */
10030 char gethostbyname();
10031
10032 int main() {
10033 gethostbyname()
10034 ; return 0; }
10035 EOF
10036 if { (eval echo configure:10037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10037 rm -rf conftest*
10038 eval "ac_cv_lib_$ac_lib_var=yes"
10039 else
10040 echo "configure: failed program was:" >&5
10041 cat conftest.$ac_ext >&5
10042 rm -rf conftest*
10043 eval "ac_cv_lib_$ac_lib_var=no"
10044 fi
10045 rm -f conftest*
10046 LIBS="$ac_save_LIBS"
10047
10048 fi
10049 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10050 echo "$ac_t""yes" 1>&6
10051 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10052 else
10053 echo "$ac_t""no" 1>&6
10054 fi
10055
10056 fi
10057
10058 # lieder@skyler.mavd.honeywell.com says without -lsocket,
10059 # socket/setsockopt and other routines are undefined under SCO ODT
10060 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10061 # on later versions), says simon@lia.di.epfl.ch: it contains
10062 # gethostby* variants that don't use the nameserver (or something).
10063 # -lsocket must be given before -lnsl if both are needed.
10064 # We assume that if connect needs -lnsl, so does gethostbyname.
10065 echo $ac_n "checking for connect""... $ac_c" 1>&6
10066 echo "configure:10067: checking for connect" >&5
10067 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
10068 echo $ac_n "(cached) $ac_c" 1>&6
10069 else
10070 cat > conftest.$ac_ext <<EOF
10071 #line 10072 "configure"
10072 #include "confdefs.h"
10073 /* System header to define __stub macros and hopefully few prototypes,
10074 which can conflict with char connect(); below. */
10075 #include <assert.h>
10076 /* Override any gcc2 internal prototype to avoid an error. */
10077 /* We use char because int might match the return type of a gcc2
10078 builtin and then its argument prototype would still apply. */
10079 char connect();
10080
10081 int main() {
10082
10083 /* The GNU C library defines this for functions which it implements
10084 to always fail with ENOSYS. Some functions are actually named
10085 something starting with __ and the normal name is an alias. */
10086 #if defined (__stub_connect) || defined (__stub___connect)
10087 choke me
10088 #else
10089 connect();
10090 #endif
10091
10092 ; return 0; }
10093 EOF
10094 if { (eval echo configure:10095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10095 rm -rf conftest*
10096 eval "ac_cv_func_connect=yes"
10097 else
10098 echo "configure: failed program was:" >&5
10099 cat conftest.$ac_ext >&5
10100 rm -rf conftest*
10101 eval "ac_cv_func_connect=no"
10102 fi
10103 rm -f conftest*
10104 fi
10105
10106 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
10107 echo "$ac_t""yes" 1>&6
10108 :
10109 else
10110 echo "$ac_t""no" 1>&6
10111 fi
10112
10113 if test $ac_cv_func_connect = no; then
10114 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
10115 echo "configure:10116: checking for connect in -lsocket" >&5
10116 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
10117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10118 echo $ac_n "(cached) $ac_c" 1>&6
10119 else
10120 ac_save_LIBS="$LIBS"
10121 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10122 cat > conftest.$ac_ext <<EOF
10123 #line 10124 "configure"
10124 #include "confdefs.h"
10125 /* Override any gcc2 internal prototype to avoid an error. */
10126 /* We use char because int might match the return type of a gcc2
10127 builtin and then its argument prototype would still apply. */
10128 char connect();
10129
10130 int main() {
10131 connect()
10132 ; return 0; }
10133 EOF
10134 if { (eval echo configure:10135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10135 rm -rf conftest*
10136 eval "ac_cv_lib_$ac_lib_var=yes"
10137 else
10138 echo "configure: failed program was:" >&5
10139 cat conftest.$ac_ext >&5
10140 rm -rf conftest*
10141 eval "ac_cv_lib_$ac_lib_var=no"
10142 fi
10143 rm -f conftest*
10144 LIBS="$ac_save_LIBS"
10145
10146 fi
10147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10148 echo "$ac_t""yes" 1>&6
10149 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10150 else
10151 echo "$ac_t""no" 1>&6
10152 fi
10153
10154 fi
10155
10156 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
10157 echo $ac_n "checking for remove""... $ac_c" 1>&6
10158 echo "configure:10159: checking for remove" >&5
10159 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
10160 echo $ac_n "(cached) $ac_c" 1>&6
10161 else
10162 cat > conftest.$ac_ext <<EOF
10163 #line 10164 "configure"
10164 #include "confdefs.h"
10165 /* System header to define __stub macros and hopefully few prototypes,
10166 which can conflict with char remove(); below. */
10167 #include <assert.h>
10168 /* Override any gcc2 internal prototype to avoid an error. */
10169 /* We use char because int might match the return type of a gcc2
10170 builtin and then its argument prototype would still apply. */
10171 char remove();
10172
10173 int main() {
10174
10175 /* The GNU C library defines this for functions which it implements
10176 to always fail with ENOSYS. Some functions are actually named
10177 something starting with __ and the normal name is an alias. */
10178 #if defined (__stub_remove) || defined (__stub___remove)
10179 choke me
10180 #else
10181 remove();
10182 #endif
10183
10184 ; return 0; }
10185 EOF
10186 if { (eval echo configure:10187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10187 rm -rf conftest*
10188 eval "ac_cv_func_remove=yes"
10189 else
10190 echo "configure: failed program was:" >&5
10191 cat conftest.$ac_ext >&5
10192 rm -rf conftest*
10193 eval "ac_cv_func_remove=no"
10194 fi
10195 rm -f conftest*
10196 fi
10197
10198 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
10199 echo "$ac_t""yes" 1>&6
10200 :
10201 else
10202 echo "$ac_t""no" 1>&6
10203 fi
10204
10205 if test $ac_cv_func_remove = no; then
10206 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
10207 echo "configure:10208: checking for remove in -lposix" >&5
10208 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
10209 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10210 echo $ac_n "(cached) $ac_c" 1>&6
10211 else
10212 ac_save_LIBS="$LIBS"
10213 LIBS="-lposix $LIBS"
10214 cat > conftest.$ac_ext <<EOF
10215 #line 10216 "configure"
10216 #include "confdefs.h"
10217 /* Override any gcc2 internal prototype to avoid an error. */
10218 /* We use char because int might match the return type of a gcc2
10219 builtin and then its argument prototype would still apply. */
10220 char remove();
10221
10222 int main() {
10223 remove()
10224 ; return 0; }
10225 EOF
10226 if { (eval echo configure:10227: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10227 rm -rf conftest*
10228 eval "ac_cv_lib_$ac_lib_var=yes"
10229 else
10230 echo "configure: failed program was:" >&5
10231 cat conftest.$ac_ext >&5
10232 rm -rf conftest*
10233 eval "ac_cv_lib_$ac_lib_var=no"
10234 fi
10235 rm -f conftest*
10236 LIBS="$ac_save_LIBS"
10237
10238 fi
10239 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10240 echo "$ac_t""yes" 1>&6
10241 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10242 else
10243 echo "$ac_t""no" 1>&6
10244 fi
10245
10246 fi
10247
10248 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10249 echo $ac_n "checking for shmat""... $ac_c" 1>&6
10250 echo "configure:10251: checking for shmat" >&5
10251 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
10252 echo $ac_n "(cached) $ac_c" 1>&6
10253 else
10254 cat > conftest.$ac_ext <<EOF
10255 #line 10256 "configure"
10256 #include "confdefs.h"
10257 /* System header to define __stub macros and hopefully few prototypes,
10258 which can conflict with char shmat(); below. */
10259 #include <assert.h>
10260 /* Override any gcc2 internal prototype to avoid an error. */
10261 /* We use char because int might match the return type of a gcc2
10262 builtin and then its argument prototype would still apply. */
10263 char shmat();
10264
10265 int main() {
10266
10267 /* The GNU C library defines this for functions which it implements
10268 to always fail with ENOSYS. Some functions are actually named
10269 something starting with __ and the normal name is an alias. */
10270 #if defined (__stub_shmat) || defined (__stub___shmat)
10271 choke me
10272 #else
10273 shmat();
10274 #endif
10275
10276 ; return 0; }
10277 EOF
10278 if { (eval echo configure:10279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10279 rm -rf conftest*
10280 eval "ac_cv_func_shmat=yes"
10281 else
10282 echo "configure: failed program was:" >&5
10283 cat conftest.$ac_ext >&5
10284 rm -rf conftest*
10285 eval "ac_cv_func_shmat=no"
10286 fi
10287 rm -f conftest*
10288 fi
10289
10290 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
10291 echo "$ac_t""yes" 1>&6
10292 :
10293 else
10294 echo "$ac_t""no" 1>&6
10295 fi
10296
10297 if test $ac_cv_func_shmat = no; then
10298 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
10299 echo "configure:10300: checking for shmat in -lipc" >&5
10300 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
10301 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10302 echo $ac_n "(cached) $ac_c" 1>&6
10303 else
10304 ac_save_LIBS="$LIBS"
10305 LIBS="-lipc $LIBS"
10306 cat > conftest.$ac_ext <<EOF
10307 #line 10308 "configure"
10308 #include "confdefs.h"
10309 /* Override any gcc2 internal prototype to avoid an error. */
10310 /* We use char because int might match the return type of a gcc2
10311 builtin and then its argument prototype would still apply. */
10312 char shmat();
10313
10314 int main() {
10315 shmat()
10316 ; return 0; }
10317 EOF
10318 if { (eval echo configure:10319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10319 rm -rf conftest*
10320 eval "ac_cv_lib_$ac_lib_var=yes"
10321 else
10322 echo "configure: failed program was:" >&5
10323 cat conftest.$ac_ext >&5
10324 rm -rf conftest*
10325 eval "ac_cv_lib_$ac_lib_var=no"
10326 fi
10327 rm -f conftest*
10328 LIBS="$ac_save_LIBS"
10329
10330 fi
10331 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10332 echo "$ac_t""yes" 1>&6
10333 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10334 else
10335 echo "$ac_t""no" 1>&6
10336 fi
10337
10338 fi
10339 fi
10340
10341 # Check for libraries that X11R6 Xt/Xaw programs need.
10342 ac_save_LDFLAGS="$LDFLAGS"
10343 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10344 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10345 # check for ICE first), but we must link in the order -lSM -lICE or
10346 # we get undefined symbols. So assume we have SM if we have ICE.
10347 # These have to be linked with before -lX11, unlike the other
10348 # libraries we check for below, so use a different variable.
10349 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
10350 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
10351 echo "configure:10352: checking for IceConnectionNumber in -lICE" >&5
10352 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
10353 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
10354 echo $ac_n "(cached) $ac_c" 1>&6
10355 else
10356 ac_save_LIBS="$LIBS"
10357 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10358 cat > conftest.$ac_ext <<EOF
10359 #line 10360 "configure"
10360 #include "confdefs.h"
10361 /* Override any gcc2 internal prototype to avoid an error. */
10362 /* We use char because int might match the return type of a gcc2
10363 builtin and then its argument prototype would still apply. */
10364 char IceConnectionNumber();
10365
10366 int main() {
10367 IceConnectionNumber()
10368 ; return 0; }
10369 EOF
10370 if { (eval echo configure:10371: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
10371 rm -rf conftest*
10372 eval "ac_cv_lib_$ac_lib_var=yes"
10373 else
10374 echo "configure: failed program was:" >&5
10375 cat conftest.$ac_ext >&5
10376 rm -rf conftest*
10377 eval "ac_cv_lib_$ac_lib_var=no"
10378 fi
10379 rm -f conftest*
10380 LIBS="$ac_save_LIBS"
10381
10382 fi
10383 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
10384 echo "$ac_t""yes" 1>&6
10385 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10386 else
10387 echo "$ac_t""no" 1>&6
10388 fi
10389
10390 LDFLAGS="$ac_save_LDFLAGS"
10391
10392 fi
10393
10394 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10395 LDFLAGS="$LDFLAGS $X_LIBS"
10396
10397 if test "$wxUSE_MOTIF" = 1; then
10398 if test "$no_x" = "yes"; then
10399 { echo "configure: error: X11 not found" 1>&2; exit 1; }
10400 fi
10401
10402 GUI_TK_LIBRARY="$X_LIBS"
10403 TOOLKIT_INCLUDE="$X_CFLAGS"
10404
10405 AFMINSTALL=afminstall
10406
10407
10408 COMPILED_X_PROGRAM=0
10409
10410 echo $ac_n "checking for Motif/Lesstif headers""... $ac_c" 1>&6
10411 echo "configure:10412: checking for Motif/Lesstif headers" >&5
10412
10413 ac_find_includes=
10414 for ac_dir in $SEARCH_INCLUDE;
10415 do
10416 if test -f "$ac_dir/Xm/Xm.h"; then
10417 ac_find_includes=$ac_dir
10418 break
10419 fi
10420 done
10421
10422 if test "$ac_find_includes" != "" ; then
10423 echo "$ac_t""found $ac_find_includes" 1>&6
10424 else
10425 cat > conftest.$ac_ext <<EOF
10426 #line 10427 "configure"
10427 #include "confdefs.h"
10428
10429 #include <Xm/Xm.h>
10430
10431 int main() {
10432
10433 int version;
10434
10435 version = xmUseVersion;
10436
10437 ; return 0; }
10438 EOF
10439 if { (eval echo configure:10440: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10440 rm -rf conftest*
10441
10442 echo "$ac_t""found in default search path" 1>&6
10443 COMPILED_X_PROGRAM=1
10444
10445 else
10446 echo "configure: failed program was:" >&5
10447 cat conftest.$ac_ext >&5
10448 rm -rf conftest*
10449
10450 echo "$ac_t""no" 1>&6
10451 { echo "configure: error: please set CFLAGS to contain the location of Xm/Xm.h" 1>&2; exit 1; }
10452
10453
10454 fi
10455 rm -f conftest*
10456 fi
10457
10458 if test "$COMPILED_X_PROGRAM" = 0; then
10459 echo $ac_n "checking for Motif/Lesstif library""... $ac_c" 1>&6
10460 echo "configure:10461: checking for Motif/Lesstif library" >&5
10461
10462 ac_find_libraries=
10463 for ac_dir in $SEARCH_LIB;
10464 do
10465 for ac_extension in a so sl dylib; do
10466 if test -f "$ac_dir/libXm.$ac_extension"; then
10467 ac_find_libraries=$ac_dir
10468 break 2
10469 fi
10470 done
10471 done
10472
10473 if test "$ac_find_libraries" != "" ; then
10474
10475 ac_path_to_include=$ac_find_includes
10476 echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
10477 result=$?
10478 if test $result = 0; then
10479 ac_path_to_include=""
10480 else
10481 ac_path_to_include="-I$ac_find_includes"
10482 fi
10483
10484
10485 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10486 result=$?
10487 if test $result = 0; then
10488 ac_path_to_link=""
10489 else
10490 ac_path_to_link="-L$ac_find_libraries"
10491 fi
10492
10493
10494 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10495 TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE $ac_path_to_include"
10496 echo "$ac_t""found at $ac_find_libraries" 1>&6
10497 else
10498 cat > conftest.$ac_ext <<EOF
10499 #line 10500 "configure"
10500 #include "confdefs.h"
10501
10502 #include <Xm/Xm.h>
10503
10504 int main() {
10505
10506 int version;
10507
10508 version = xmUseVersion;
10509
10510 ; return 0; }
10511 EOF
10512 if { (eval echo configure:10513: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10513 rm -rf conftest*
10514
10515 echo "$ac_t""found in default search path" 1>&6
10516 COMPILED_X_PROGRAM=1
10517
10518 else
10519 echo "configure: failed program was:" >&5
10520 cat conftest.$ac_ext >&5
10521 rm -rf conftest*
10522
10523 echo "$ac_t""no" 1>&6
10524 { echo "configure: error: please set LDFLAGS to contain the location of libXm" 1>&2; exit 1; }
10525
10526
10527 fi
10528 rm -f conftest*
10529 fi
10530 fi
10531
10532
10533 XPM_LINK=""
10534 echo $ac_n "checking for Xpm library""... $ac_c" 1>&6
10535 echo "configure:10536: checking for Xpm library" >&5
10536
10537 ac_find_libraries=
10538 for ac_dir in $SEARCH_LIB;
10539 do
10540 for ac_extension in a so sl dylib; do
10541 if test -f "$ac_dir/libXpm.$ac_extension"; then
10542 ac_find_libraries=$ac_dir
10543 break 2
10544 fi
10545 done
10546 done
10547
10548 if test "$ac_find_libraries" != "" ; then
10549
10550 echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
10551 result=$?
10552 if test $result = 0; then
10553 ac_path_to_link=""
10554 else
10555 ac_path_to_link="-L$ac_find_libraries"
10556 fi
10557
10558 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $ac_path_to_link"
10559 XPM_LINK="-lXpm "
10560 cat >> confdefs.h <<\EOF
10561 #define wxHAVE_LIB_XPM 1
10562 EOF
10563
10564 echo "$ac_t""found at $ac_find_libraries" 1>&6
10565 else
10566 cat > conftest.$ac_ext <<EOF
10567 #line 10568 "configure"
10568 #include "confdefs.h"
10569
10570 #include <X11/xpm.h>
10571
10572 int main() {
10573
10574 int version;
10575
10576 version = XpmLibraryVersion();
10577
10578 ; return 0; }
10579 EOF
10580 if { (eval echo configure:10581: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
10581 rm -rf conftest*
10582
10583 XPM_LINK="-lXpm "
10584 cat >> confdefs.h <<\EOF
10585 #define wxHAVE_LIB_XPM 1
10586 EOF
10587
10588 echo "$ac_t""found in default search path" 1>&6
10589 COMPILED_X_PROGRAM=0
10590
10591 else
10592 echo "configure: failed program was:" >&5
10593 cat conftest.$ac_ext >&5
10594 rm -rf conftest*
10595
10596 echo "$ac_t""no" 1>&6
10597 echo "configure: warning: library will be compiled without support for images in XPM format" 1>&2
10598
10599
10600 fi
10601 rm -f conftest*
10602 fi
10603
10604 GUI_TK_LINK="-lXm $XPM_LINK -lXmu -lXext -lXt -lX11"
10605 GUI_TK_LIBRARY="$GUI_TK_LIBRARY $GUI_TK_LINK"
10606 TOOLKIT=MOTIF
10607 GUIDIST=MOTIF_DIST
10608 fi
10609
10610 if test "$wxUSE_MAC" = 1; then
10611 TOOLKIT=MAC
10612 GUIDIST=MACX_DIST
10613 fi
10614
10615 if test "$wxUSE_PM" = 1; then
10616 TOOLKIT=PM
10617 GUIDIST=GTK_DIST
10618 fi
10619
10620 if test "$TOOLKIT" != "PM" ; then
10621 TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
10622 else
10623 TOOLKIT_DIR="os2"
10624 fi
10625
10626 TOOLKIT_NAME="${TOOLKIT_DIR}"
10627
10628 TOOLKIT_VPATH="\${top_srcdir}/src/${TOOLKIT_DIR}"
10629
10630 if test "$TOOLKIT_NAME" = "motif"; then
10631 TOOLKIT_VPATH="${TOOLKIT_VPATH}${PATH_IFS}\${top_srcdir}/src/motif/xmcombo"
10632 fi
10633
10634 if test "$wxUSE_UNIVERSAL" = "yes"; then
10635 TOOLKIT_NAME="${TOOLKIT_NAME}univ"
10636 UNIV_VPATH="\${top_srcdir}/src/univ${PATH_IFS}\${top_srcdir}/src/univ/themes"
10637 TOOLKIT_VPATH="${UNIV_VPATH}${PATH_IFS}${TOOLKIT_VPATH}"
10638 SETUPH_DIR="univ"
10639 else
10640 SETUPH_DIR="${TOOLKIT_DIR}"
10641 fi
10642
10643 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10644 TOOLKIT_NAME="${TOOLKIT_NAME}d"
10645 fi
10646
10647 TOOLKIT_DEF="-D__WX${TOOLKIT}__"
10648 if test "$wxUSE_UNIVERSAL" = "yes"; then
10649 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXUNIVERSAL__"
10650 fi
10651
10652 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10653
10654 if test "$wxUSE_UNIVERSAL" = "yes"; then
10655 ALL_OBJECTS="\$(GUI_LOWLEVEL_OBJS) \${UNIVOBJS}"
10656 else
10657 ALL_OBJECTS="\$(GUIOBJS)"
10658 fi
10659
10660 ALL_OBJECTS="${ALL_OBJECTS} \$(COMMONOBJS) \$(GENERICOBJS)"
10661
10662 if test "$TOOLKIT" != "MSW"; then
10663 ALL_OBJECTS="${ALL_OBJECTS} \$(UNIXOBJS)"
10664 fi
10665
10666 if test "$wxUSE_HTML" = "yes"; then
10667 ALL_OBJECTS="${ALL_OBJECTS} \$(HTMLOBJS)"
10668 fi
10669
10670 if test "$TOOLKIT" != "MSW"; then
10671 if test "$wxUSE_ODBC" = "yes" ; then
10672 ALL_OBJECTS="${ALL_OBJECTS} \$(IODBCOBJS)"
10673 fi
10674 fi
10675
10676 if test "x$REGEX_INCLUDE" != "x" ; then
10677 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10678 fi
10679
10680 if test "$wxUSE_LIBJPEG" = "yes" ; then
10681 ALL_OBJECTS="${ALL_OBJECTS} \$(JPEGOBJS)"
10682 fi
10683 if test "$wxUSE_LIBTIFF" = "yes" ; then
10684 ALL_OBJECTS="${ALL_OBJECTS} \$(TIFFOBJS)"
10685 fi
10686 if test "$wxUSE_LIBPNG" = "yes" ; then
10687 ALL_OBJECTS="${ALL_OBJECTS} \$(PNGOBJS)"
10688 fi
10689 if test "$wxUSE_ZLIB" = "yes" ; then
10690 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10691 fi
10692 if test "$wxUSE_FREETYPE" = "yes" ; then
10693 ALL_OBJECTS="${ALL_OBJECTS} \$(FREETYPEOBJS)"
10694 fi
10695
10696 if test "$wxUSE_UNIVERSAL" = "yes"; then
10697 ALL_DEPFILES="\$(GUI_LOWLEVEL_DEPS) \$(UNIVDEPS)"
10698 else
10699 ALL_DEPFILES="\$(GUIDEPS)"
10700 fi
10701
10702 ALL_DEPFILES="${ALL_DEPFILES} \$(COMMONDEPS) \$(GENERICDEPS)"
10703
10704 if test "$TOOLKIT" != "MSW"; then
10705 ALL_DEPFILES="${ALL_DEPFILES} \$(UNIXDEPS)"
10706 fi
10707
10708 if test "$wxUSE_HTML" = "yes"; then
10709 ALL_DEPFILES="${ALL_DEPFILES} \$(HTMLDEPS)"
10710 fi
10711
10712 PORT_FILES="\${top_srcdir}/src/\$(TOOLKITDIR)/files.lst"
10713 if test "$wxUSE_UNIVERSAL" = "yes"; then
10714 PORT_FILES="${PORT_FILES} \${top_srcdir}/src/univ/files.lst"
10715 fi
10716 RPM_FILES="src/\$(TOOLKITDIR)/rpmfiles.lst"
10717 RPM_SPEC="wx\$(TOOLKIT).spec"
10718
10719 GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
10720 DISTDIR="wx\$(TOOLKIT)"
10721 else
10722 USE_GUI=0
10723
10724 TOOLKIT_DIR="base"
10725
10726 TOOLKIT_VPATH="."
10727
10728 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
10729 TOOLKIT_NAME="${TOOLKIT_DIR}d"
10730 else
10731 TOOLKIT_NAME="${TOOLKIT_DIR}"
10732 fi
10733
10734 TOOLKIT_DEF="-D__WXBASE__"
10735
10736 ALL_OBJECTS="\$(BASE_OBJS) \$(BASE_UNIX_OBJS)"
10737 ALL_DEPFILES="\$(BASE_DEPS) \$(BASE_UNIX_DEPS)"
10738
10739 if test "x$REGEX_INCLUDE" != "x" ; then
10740 ALL_OBJECTS="${ALL_OBJECTS} \$(REGEXOBJS)"
10741 fi
10742
10743 if test "$wxUSE_ZLIB" = "yes" ; then
10744 ALL_OBJECTS="${ALL_OBJECTS} \$(ZLIBOBJS)"
10745 fi
10746
10747 WX_LIBRARY="wx_${TOOLKIT_NAME}"
10748
10749 PORT_FILES="\${top_srcdir}/src/files.lst"
10750 RPM_FILES="src/rpmfiles.lst"
10751 RPM_SPEC="wxBase.spec"
10752
10753 GUIDIST="BASE_DIST"
10754 DISTDIR="wxBase"
10755 fi
10756
10757 WX_LIBRARY_NAME="lib${WX_LIBRARY}.la"
10758 WX_LIBRARY_NAME_GL="lib${WX_LIBRARY}_gl.la"
10759
10760 WX_LIBRARY_NAME_STATIC="lib${WX_LIBRARY}.a"
10761 WX_LIBRARY_NAME_STATIC_GL="lib${WX_LIBRARY}_gl.a"
10762
10763 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10764 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10765
10766 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.so.${WX_CURRENT}"
10767 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.so"
10768 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.so"
10769 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so.${WX_CURRENT}"
10770 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.so"
10771 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.so"
10772
10773 SHARED_LD=
10774 PIC_FLAG=
10775 WX_ALL=
10776 WX_ALL_INSTALLED=
10777 BURNT_LIBRARY_NAME=
10778 WX_TARGET_LIBRARY_SONAME=
10779
10780
10781 if test "$wxUSE_SHARED" = "yes"; then
10782 case "${host}" in
10783 *-hp-hpux* )
10784 if test "$GCC" = yes ; then
10785 SHARED_LD="${CC} -shared -fPIC -o"
10786 PIC_FLAG="-fPIC"
10787 else
10788 LDFLAGS="-L/usr/lib"
10789
10790 SHARED_LD="${CXX} -b -o"
10791 PIC_FLAG="+Z"
10792 fi
10793 WX_LIBRARY_NAME_SHARED="libwx_${TOOLKIT_NAME}.sl"
10794 WX_LIBRARY_NAME_SHARED_GL="libwx_${TOOLKIT_NAME}_gl.sl"
10795 if test "$wxUSE_OPENGL" = "yes"; then
10796 WX_ALL_INSTALLED="preinstall_gl"
10797 WX_ALL="${WX_LIBRARY_NAME_SHARED} ${WX_LIBRARY_NAME_SHARED_GL}"
10798 else
10799 WX_ALL="${WX_LIBRARY_NAME_SHARED}"
10800 fi
10801 ;;
10802
10803 *-*-linux* )
10804 SHARED_LD="${CC} -shared -o"
10805 PIC_FLAG="-fPIC"
10806 if test "$wxUSE_BURNT_NAME" = "yes" ; then
10807 BURNT_LIBRARY_NAME="-Wl,-soname,${WX_LIBRARY_LINK1}"
10808 BURNT_LIBRARY_NAME_GL="-Wl,-soname,${WX_LIBRARY_LINK1_GL}"
10809 WX_TARGET_LIBRARY_SONAME="-Wl,-soname,\$(TARGETLIB_LINK1)"
10810 fi
10811 if test "$wxUSE_OPENGL" = "yes"; then
10812 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10813 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10814 else
10815 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10816 WX_ALL="CREATE_LINKS"
10817 fi
10818 ;;
10819 *-*-irix5* | *-*-irix6* )
10820 if test "$GCC" = yes ; then
10821 SHARED_LD="${CC} -shared -o"
10822 PIC_FLAG="-fPIC"
10823 else
10824 SHARED_LD="${CXX} -shared -o"
10825 fi
10826 if test "$wxUSE_OPENGL" = "yes"; then
10827 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10828 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10829 else
10830 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10831 WX_ALL="CREATE_LINKS"
10832 fi
10833 ;;
10834 *-*-solaris2* )
10835 if test "$GCC" = yes ; then
10836 SHARED_LD="${CC} -shared -o"
10837 PIC_FLAG="-fPIC"
10838
10839 CPPFLAGS="$CPPFLAGS -isystem /usr/openwin/include"
10840 else
10841 SHARED_LD="${CXX} -G -o"
10842 PIC_FLAG="-KPIC"
10843 fi
10844 if test "$wxUSE_OPENGL" = "yes"; then
10845 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10846 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10847 else
10848 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10849 WX_ALL="CREATE_LINKS"
10850 fi
10851 ;;
10852 *-*-sunos4* )
10853 SHARED_LD="${CC} -shared -o"
10854 PIC_FLAG="-fPIC"
10855 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10856 WX_ALL="CREATE_LINKS"
10857 ;;
10858 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* )
10859 SHARED_LD="${CC} -shared -o"
10860 PIC_FLAG="-fPIC"
10861 if test "$wxUSE_OPENGL" = "yes"; then
10862 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10863 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10864 else
10865 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10866 WX_ALL="CREATE_LINKS"
10867 fi
10868 ;;
10869 *-*-darwin* )
10870 TOOLKIT_DEF="${TOOLKIT_DEF} -D__UNIX__ -D__DARWIN__ -D__POWERPC__"
10871 CFLAGS="${CFLAGS} -fno-common"
10872 CPPFLAGS="${CPPFLAGS} -fno-common"
10873 SHARED_LD="${CXX} -dynamiclib -o"
10874 PIC_FLAG="-dynamic -fPIC"
10875 if test "$wxUSE_OPENGL" = "yes"; then
10876 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS CREATE_INSTALLED_LINKS_GL"
10877 WX_ALL="CREATE_LINKS CREATE_LINKS_GL"
10878 else
10879 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10880 WX_ALL="CREATE_LINKS"
10881 fi
10882 if test "$wxUSE_MAC" = 1 ; then
10883 WX_ALL="${WX_ALL} ./lib/lib${WX_LIBRARY}-${WX_RELEASE}.r"
10884 fi
10885 WX_LIBRARY_NAME_SHARED="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10886 WX_LIBRARY_NAME_SHARED_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}.${WX_REVISION}.${WX_AGE}"
10887 WX_LIBRARY_LINK1="lib${WX_LIBRARY}-${WX_RELEASE}.dylib.${WX_CURRENT}"
10888 WX_LIBRARY_LINK2="lib${WX_LIBRARY}-${WX_RELEASE}.dylib"
10889 WX_LIBRARY_LINK3="lib${WX_LIBRARY}.dylib"
10890 WX_LIBRARY_LINK1_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib.${WX_CURRENT}"
10891 WX_LIBRARY_LINK2_GL="lib${WX_LIBRARY}_gl-${WX_RELEASE}.dylib"
10892 WX_LIBRARY_LINK3_GL="lib${WX_LIBRARY}_gl.dylib"
10893 ;;
10894 *-*-osf* )
10895 SHARED_LD="${CXX} -shared -o"
10896 PIC_FLAG="-fPIC"
10897 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10898 WX_ALL="CREATE_LINKS"
10899 ;;
10900 *-*-dgux5* )
10901 SHARED_LD="${CXX} -shared -o"
10902 PIC_FLAG="-fPIC"
10903 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10904 WX_ALL="CREATE_LINKS"
10905 ;;
10906 *-*-sysv5* )
10907 SHARED_LD="${CC} -shared -o"
10908 PIC_FLAG="-fPIC"
10909 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10910 WX_ALL="CREATE_LINKS"
10911 ;;
10912 *-*-aix* )
10913 SHARED_LD="/usr/lpp/xlC/bin/makeC++SharedLib -p 0 -o"
10914 WX_ALL=${WX_LIBRARY_NAME_SHARED}
10915 ;;
10916 *-*-cygwin* )
10917 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10918 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10919 if test "$wxUSE_OPENGL" = "yes"; then
10920 WX_ALL_INSTALLED="preinstall_gl"
10921 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10922 else
10923 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10924 fi
10925 ;;
10926 *-*-mingw32* )
10927 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10928 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10929 if test "$wxUSE_OPENGL" = "yes"; then
10930 WX_ALL_INSTALLED="preinstall_gl"
10931 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10932 else
10933 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10934 fi
10935 ;;
10936 *-pc-os2_emx )
10937 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10938 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10939 ;;
10940 *-*-beos* )
10941 SHARED_LD="${LD} -shared -o"
10942 PIC_FLAG="-fPIC"
10943 WX_ALL_INSTALLED="CREATE_INSTALLED_LINKS"
10944 WX_ALL="CREATE_LINKS"
10945 ;;
10946 *)
10947 { echo "configure: error: unknown system type ${host}." 1>&2; exit 1; }
10948 esac
10949
10950 if test "x$WX_TARGET_LIBRARY" = "x"; then
10951 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_SHARED}"
10952 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_SHARED_GL}"
10953 fi
10954 WX_TARGET_LIBRARY_TYPE="so"
10955 else
10956 WX_TARGET_LIBRARY="${WX_LIBRARY_NAME_STATIC}"
10957 WX_TARGET_LIBRARY_GL="${WX_LIBRARY_NAME_STATIC_GL}"
10958
10959 if test "$wxUSE_OPENGL" = "yes"; then
10960 WX_ALL_INSTALLED="preinstall_gl"
10961 WX_ALL="${WX_LIBRARY_NAME_STATIC} ${WX_LIBRARY_NAME_STATIC_GL}"
10962 else
10963 WX_ALL="${WX_LIBRARY_NAME_STATIC}"
10964 fi
10965
10966 if test "$wxUSE_GUI" = "no"; then
10967 WX_ALL_INSTALLED="${WX_ALL_INSTALLED} preinstall"
10968 fi
10969
10970 WX_TARGET_LIBRARY_TYPE="a"
10971 fi
10972
10973
10974 for ac_hdr in strings.h
10975 do
10976 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
10977 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
10978 echo "configure:10979: checking for $ac_hdr" >&5
10979 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
10980 echo $ac_n "(cached) $ac_c" 1>&6
10981 else
10982 cat > conftest.$ac_ext <<EOF
10983 #line 10984 "configure"
10984 #include "confdefs.h"
10985 #include <$ac_hdr>
10986 EOF
10987 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
10988 { (eval echo configure:10989: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
10989 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
10990 if test -z "$ac_err"; then
10991 rm -rf conftest*
10992 eval "ac_cv_header_$ac_safe=yes"
10993 else
10994 echo "$ac_err" >&5
10995 echo "configure: failed program was:" >&5
10996 cat conftest.$ac_ext >&5
10997 rm -rf conftest*
10998 eval "ac_cv_header_$ac_safe=no"
10999 fi
11000 rm -f conftest*
11001 fi
11002 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11003 echo "$ac_t""yes" 1>&6
11004 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11005 cat >> confdefs.h <<EOF
11006 #define $ac_tr_hdr 1
11007 EOF
11008
11009 else
11010 echo "$ac_t""no" 1>&6
11011 fi
11012 done
11013
11014 for ac_hdr in stdlib.h
11015 do
11016 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11017 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11018 echo "configure:11019: checking for $ac_hdr" >&5
11019 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11020 echo $ac_n "(cached) $ac_c" 1>&6
11021 else
11022 cat > conftest.$ac_ext <<EOF
11023 #line 11024 "configure"
11024 #include "confdefs.h"
11025 #include <$ac_hdr>
11026 EOF
11027 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11028 { (eval echo configure:11029: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11029 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11030 if test -z "$ac_err"; then
11031 rm -rf conftest*
11032 eval "ac_cv_header_$ac_safe=yes"
11033 else
11034 echo "$ac_err" >&5
11035 echo "configure: failed program was:" >&5
11036 cat conftest.$ac_ext >&5
11037 rm -rf conftest*
11038 eval "ac_cv_header_$ac_safe=no"
11039 fi
11040 rm -f conftest*
11041 fi
11042 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11043 echo "$ac_t""yes" 1>&6
11044 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11045 cat >> confdefs.h <<EOF
11046 #define $ac_tr_hdr 1
11047 EOF
11048
11049 else
11050 echo "$ac_t""no" 1>&6
11051 fi
11052 done
11053
11054 for ac_hdr in unistd.h
11055 do
11056 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11057 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11058 echo "configure:11059: checking for $ac_hdr" >&5
11059 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11060 echo $ac_n "(cached) $ac_c" 1>&6
11061 else
11062 cat > conftest.$ac_ext <<EOF
11063 #line 11064 "configure"
11064 #include "confdefs.h"
11065 #include <$ac_hdr>
11066 EOF
11067 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11068 { (eval echo configure:11069: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11069 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11070 if test -z "$ac_err"; then
11071 rm -rf conftest*
11072 eval "ac_cv_header_$ac_safe=yes"
11073 else
11074 echo "$ac_err" >&5
11075 echo "configure: failed program was:" >&5
11076 cat conftest.$ac_ext >&5
11077 rm -rf conftest*
11078 eval "ac_cv_header_$ac_safe=no"
11079 fi
11080 rm -f conftest*
11081 fi
11082 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11083 echo "$ac_t""yes" 1>&6
11084 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11085 cat >> confdefs.h <<EOF
11086 #define $ac_tr_hdr 1
11087 EOF
11088
11089 else
11090 echo "$ac_t""no" 1>&6
11091 fi
11092 done
11093
11094 for ac_hdr in wchar.h
11095 do
11096 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11097 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11098 echo "configure:11099: checking for $ac_hdr" >&5
11099 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11100 echo $ac_n "(cached) $ac_c" 1>&6
11101 else
11102 cat > conftest.$ac_ext <<EOF
11103 #line 11104 "configure"
11104 #include "confdefs.h"
11105 #include <$ac_hdr>
11106 EOF
11107 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11108 { (eval echo configure:11109: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11109 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11110 if test -z "$ac_err"; then
11111 rm -rf conftest*
11112 eval "ac_cv_header_$ac_safe=yes"
11113 else
11114 echo "$ac_err" >&5
11115 echo "configure: failed program was:" >&5
11116 cat conftest.$ac_ext >&5
11117 rm -rf conftest*
11118 eval "ac_cv_header_$ac_safe=no"
11119 fi
11120 rm -f conftest*
11121 fi
11122 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11123 echo "$ac_t""yes" 1>&6
11124 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11125 cat >> confdefs.h <<EOF
11126 #define $ac_tr_hdr 1
11127 EOF
11128
11129 else
11130 echo "$ac_t""no" 1>&6
11131 fi
11132 done
11133
11134 for ac_hdr in wcstr.h
11135 do
11136 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11137 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11138 echo "configure:11139: checking for $ac_hdr" >&5
11139 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11140 echo $ac_n "(cached) $ac_c" 1>&6
11141 else
11142 cat > conftest.$ac_ext <<EOF
11143 #line 11144 "configure"
11144 #include "confdefs.h"
11145 #include <$ac_hdr>
11146 EOF
11147 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11148 { (eval echo configure:11149: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11149 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11150 if test -z "$ac_err"; then
11151 rm -rf conftest*
11152 eval "ac_cv_header_$ac_safe=yes"
11153 else
11154 echo "$ac_err" >&5
11155 echo "configure: failed program was:" >&5
11156 cat conftest.$ac_ext >&5
11157 rm -rf conftest*
11158 eval "ac_cv_header_$ac_safe=no"
11159 fi
11160 rm -f conftest*
11161 fi
11162 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11163 echo "$ac_t""yes" 1>&6
11164 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11165 cat >> confdefs.h <<EOF
11166 #define $ac_tr_hdr 1
11167 EOF
11168
11169 else
11170 echo "$ac_t""no" 1>&6
11171 fi
11172 done
11173
11174 for ac_hdr in fnmatch.h
11175 do
11176 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11177 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11178 echo "configure:11179: checking for $ac_hdr" >&5
11179 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11180 echo $ac_n "(cached) $ac_c" 1>&6
11181 else
11182 cat > conftest.$ac_ext <<EOF
11183 #line 11184 "configure"
11184 #include "confdefs.h"
11185 #include <$ac_hdr>
11186 EOF
11187 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11188 { (eval echo configure:11189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11189 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11190 if test -z "$ac_err"; then
11191 rm -rf conftest*
11192 eval "ac_cv_header_$ac_safe=yes"
11193 else
11194 echo "$ac_err" >&5
11195 echo "configure: failed program was:" >&5
11196 cat conftest.$ac_ext >&5
11197 rm -rf conftest*
11198 eval "ac_cv_header_$ac_safe=no"
11199 fi
11200 rm -f conftest*
11201 fi
11202 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11203 echo "$ac_t""yes" 1>&6
11204 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11205 cat >> confdefs.h <<EOF
11206 #define $ac_tr_hdr 1
11207 EOF
11208
11209 else
11210 echo "$ac_t""no" 1>&6
11211 fi
11212 done
11213
11214 for ac_hdr in iconv.h
11215 do
11216 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11217 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11218 echo "configure:11219: checking for $ac_hdr" >&5
11219 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11220 echo $ac_n "(cached) $ac_c" 1>&6
11221 else
11222 cat > conftest.$ac_ext <<EOF
11223 #line 11224 "configure"
11224 #include "confdefs.h"
11225 #include <$ac_hdr>
11226 EOF
11227 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11228 { (eval echo configure:11229: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11229 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11230 if test -z "$ac_err"; then
11231 rm -rf conftest*
11232 eval "ac_cv_header_$ac_safe=yes"
11233 else
11234 echo "$ac_err" >&5
11235 echo "configure: failed program was:" >&5
11236 cat conftest.$ac_ext >&5
11237 rm -rf conftest*
11238 eval "ac_cv_header_$ac_safe=no"
11239 fi
11240 rm -f conftest*
11241 fi
11242 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11243 echo "$ac_t""yes" 1>&6
11244 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11245 cat >> confdefs.h <<EOF
11246 #define $ac_tr_hdr 1
11247 EOF
11248
11249 else
11250 echo "$ac_t""no" 1>&6
11251 fi
11252 done
11253
11254 for ac_hdr in langinfo.h
11255 do
11256 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11257 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11258 echo "configure:11259: checking for $ac_hdr" >&5
11259 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11260 echo $ac_n "(cached) $ac_c" 1>&6
11261 else
11262 cat > conftest.$ac_ext <<EOF
11263 #line 11264 "configure"
11264 #include "confdefs.h"
11265 #include <$ac_hdr>
11266 EOF
11267 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11268 { (eval echo configure:11269: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11269 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11270 if test -z "$ac_err"; then
11271 rm -rf conftest*
11272 eval "ac_cv_header_$ac_safe=yes"
11273 else
11274 echo "$ac_err" >&5
11275 echo "configure: failed program was:" >&5
11276 cat conftest.$ac_ext >&5
11277 rm -rf conftest*
11278 eval "ac_cv_header_$ac_safe=no"
11279 fi
11280 rm -f conftest*
11281 fi
11282 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11283 echo "$ac_t""yes" 1>&6
11284 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11285 cat >> confdefs.h <<EOF
11286 #define $ac_tr_hdr 1
11287 EOF
11288
11289 else
11290 echo "$ac_t""no" 1>&6
11291 fi
11292 done
11293
11294
11295 if test "$wxUSE_GUI" = "yes"; then
11296 if test "$wxUSE_UNIX" = "yes"; then
11297 for ac_hdr in X11/XKBlib.h
11298 do
11299 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11300 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11301 echo "configure:11302: checking for $ac_hdr" >&5
11302 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11303 echo $ac_n "(cached) $ac_c" 1>&6
11304 else
11305 cat > conftest.$ac_ext <<EOF
11306 #line 11307 "configure"
11307 #include "confdefs.h"
11308 #include <$ac_hdr>
11309 EOF
11310 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11311 { (eval echo configure:11312: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11312 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11313 if test -z "$ac_err"; then
11314 rm -rf conftest*
11315 eval "ac_cv_header_$ac_safe=yes"
11316 else
11317 echo "$ac_err" >&5
11318 echo "configure: failed program was:" >&5
11319 cat conftest.$ac_ext >&5
11320 rm -rf conftest*
11321 eval "ac_cv_header_$ac_safe=no"
11322 fi
11323 rm -f conftest*
11324 fi
11325 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11326 echo "$ac_t""yes" 1>&6
11327 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11328 cat >> confdefs.h <<EOF
11329 #define $ac_tr_hdr 1
11330 EOF
11331
11332 else
11333 echo "$ac_t""no" 1>&6
11334 fi
11335 done
11336
11337 fi
11338 fi
11339
11340 if test "$USE_WIN32" = 1; then
11341 for ac_hdr in w32api.h
11342 do
11343 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
11344 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
11345 echo "configure:11346: checking for $ac_hdr" >&5
11346 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
11347 echo $ac_n "(cached) $ac_c" 1>&6
11348 else
11349 cat > conftest.$ac_ext <<EOF
11350 #line 11351 "configure"
11351 #include "confdefs.h"
11352 #include <$ac_hdr>
11353 EOF
11354 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11355 { (eval echo configure:11356: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11356 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11357 if test -z "$ac_err"; then
11358 rm -rf conftest*
11359 eval "ac_cv_header_$ac_safe=yes"
11360 else
11361 echo "$ac_err" >&5
11362 echo "configure: failed program was:" >&5
11363 cat conftest.$ac_ext >&5
11364 rm -rf conftest*
11365 eval "ac_cv_header_$ac_safe=no"
11366 fi
11367 rm -f conftest*
11368 fi
11369 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
11370 echo "$ac_t""yes" 1>&6
11371 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
11372 cat >> confdefs.h <<EOF
11373 #define $ac_tr_hdr 1
11374 EOF
11375
11376 else
11377 echo "$ac_t""no" 1>&6
11378 fi
11379 done
11380
11381 fi
11382
11383
11384 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
11385 echo "configure:11386: checking for ANSI C header files" >&5
11386 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
11387 echo $ac_n "(cached) $ac_c" 1>&6
11388 else
11389 cat > conftest.$ac_ext <<EOF
11390 #line 11391 "configure"
11391 #include "confdefs.h"
11392 #include <stdlib.h>
11393 #include <stdarg.h>
11394 #include <string.h>
11395 #include <float.h>
11396 EOF
11397 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
11398 { (eval echo configure:11399: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
11399 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
11400 if test -z "$ac_err"; then
11401 rm -rf conftest*
11402 ac_cv_header_stdc=yes
11403 else
11404 echo "$ac_err" >&5
11405 echo "configure: failed program was:" >&5
11406 cat conftest.$ac_ext >&5
11407 rm -rf conftest*
11408 ac_cv_header_stdc=no
11409 fi
11410 rm -f conftest*
11411
11412 if test $ac_cv_header_stdc = yes; then
11413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11414 cat > conftest.$ac_ext <<EOF
11415 #line 11416 "configure"
11416 #include "confdefs.h"
11417 #include <string.h>
11418 EOF
11419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11420 egrep "memchr" >/dev/null 2>&1; then
11421 :
11422 else
11423 rm -rf conftest*
11424 ac_cv_header_stdc=no
11425 fi
11426 rm -f conftest*
11427
11428 fi
11429
11430 if test $ac_cv_header_stdc = yes; then
11431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11432 cat > conftest.$ac_ext <<EOF
11433 #line 11434 "configure"
11434 #include "confdefs.h"
11435 #include <stdlib.h>
11436 EOF
11437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11438 egrep "free" >/dev/null 2>&1; then
11439 :
11440 else
11441 rm -rf conftest*
11442 ac_cv_header_stdc=no
11443 fi
11444 rm -f conftest*
11445
11446 fi
11447
11448 if test $ac_cv_header_stdc = yes; then
11449 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11450 if test "$cross_compiling" = yes; then
11451 :
11452 else
11453 cat > conftest.$ac_ext <<EOF
11454 #line 11455 "configure"
11455 #include "confdefs.h"
11456 #include <ctype.h>
11457 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11458 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11459 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11460 int main () { int i; for (i = 0; i < 256; i++)
11461 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
11462 exit (0); }
11463
11464 EOF
11465 if { (eval echo configure:11466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
11466 then
11467 :
11468 else
11469 echo "configure: failed program was:" >&5
11470 cat conftest.$ac_ext >&5
11471 rm -fr conftest*
11472 ac_cv_header_stdc=no
11473 fi
11474 rm -fr conftest*
11475 fi
11476
11477 fi
11478 fi
11479
11480 echo "$ac_t""$ac_cv_header_stdc" 1>&6
11481 if test $ac_cv_header_stdc = yes; then
11482 cat >> confdefs.h <<\EOF
11483 #define STDC_HEADERS 1
11484 EOF
11485
11486 fi
11487
11488 echo $ac_n "checking for mode_t""... $ac_c" 1>&6
11489 echo "configure:11490: checking for mode_t" >&5
11490 if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
11491 echo $ac_n "(cached) $ac_c" 1>&6
11492 else
11493 cat > conftest.$ac_ext <<EOF
11494 #line 11495 "configure"
11495 #include "confdefs.h"
11496 #include <sys/types.h>
11497 #if STDC_HEADERS
11498 #include <stdlib.h>
11499 #include <stddef.h>
11500 #endif
11501 EOF
11502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11503 egrep "(^|[^a-zA-Z_0-9])mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11504 rm -rf conftest*
11505 ac_cv_type_mode_t=yes
11506 else
11507 rm -rf conftest*
11508 ac_cv_type_mode_t=no
11509 fi
11510 rm -f conftest*
11511
11512 fi
11513 echo "$ac_t""$ac_cv_type_mode_t" 1>&6
11514 if test $ac_cv_type_mode_t = no; then
11515 cat >> confdefs.h <<\EOF
11516 #define mode_t int
11517 EOF
11518
11519 fi
11520
11521 echo $ac_n "checking for off_t""... $ac_c" 1>&6
11522 echo "configure:11523: checking for off_t" >&5
11523 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
11524 echo $ac_n "(cached) $ac_c" 1>&6
11525 else
11526 cat > conftest.$ac_ext <<EOF
11527 #line 11528 "configure"
11528 #include "confdefs.h"
11529 #include <sys/types.h>
11530 #if STDC_HEADERS
11531 #include <stdlib.h>
11532 #include <stddef.h>
11533 #endif
11534 EOF
11535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11536 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11537 rm -rf conftest*
11538 ac_cv_type_off_t=yes
11539 else
11540 rm -rf conftest*
11541 ac_cv_type_off_t=no
11542 fi
11543 rm -f conftest*
11544
11545 fi
11546 echo "$ac_t""$ac_cv_type_off_t" 1>&6
11547 if test $ac_cv_type_off_t = no; then
11548 cat >> confdefs.h <<\EOF
11549 #define off_t long
11550 EOF
11551
11552 fi
11553
11554 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
11555 echo "configure:11556: checking for pid_t" >&5
11556 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
11557 echo $ac_n "(cached) $ac_c" 1>&6
11558 else
11559 cat > conftest.$ac_ext <<EOF
11560 #line 11561 "configure"
11561 #include "confdefs.h"
11562 #include <sys/types.h>
11563 #if STDC_HEADERS
11564 #include <stdlib.h>
11565 #include <stddef.h>
11566 #endif
11567 EOF
11568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11569 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11570 rm -rf conftest*
11571 ac_cv_type_pid_t=yes
11572 else
11573 rm -rf conftest*
11574 ac_cv_type_pid_t=no
11575 fi
11576 rm -f conftest*
11577
11578 fi
11579 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
11580 if test $ac_cv_type_pid_t = no; then
11581 cat >> confdefs.h <<\EOF
11582 #define pid_t int
11583 EOF
11584
11585 fi
11586
11587 echo $ac_n "checking for size_t""... $ac_c" 1>&6
11588 echo "configure:11589: checking for size_t" >&5
11589 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
11590 echo $ac_n "(cached) $ac_c" 1>&6
11591 else
11592 cat > conftest.$ac_ext <<EOF
11593 #line 11594 "configure"
11594 #include "confdefs.h"
11595 #include <sys/types.h>
11596 #if STDC_HEADERS
11597 #include <stdlib.h>
11598 #include <stddef.h>
11599 #endif
11600 EOF
11601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11602 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
11603 rm -rf conftest*
11604 ac_cv_type_size_t=yes
11605 else
11606 rm -rf conftest*
11607 ac_cv_type_size_t=no
11608 fi
11609 rm -f conftest*
11610
11611 fi
11612 echo "$ac_t""$ac_cv_type_size_t" 1>&6
11613 if test $ac_cv_type_size_t = no; then
11614 cat >> confdefs.h <<\EOF
11615 #define size_t unsigned
11616 EOF
11617
11618 fi
11619
11620 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6
11621 echo "configure:11622: checking for uid_t in sys/types.h" >&5
11622 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then
11623 echo $ac_n "(cached) $ac_c" 1>&6
11624 else
11625 cat > conftest.$ac_ext <<EOF
11626 #line 11627 "configure"
11627 #include "confdefs.h"
11628 #include <sys/types.h>
11629 EOF
11630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11631 egrep "uid_t" >/dev/null 2>&1; then
11632 rm -rf conftest*
11633 ac_cv_type_uid_t=yes
11634 else
11635 rm -rf conftest*
11636 ac_cv_type_uid_t=no
11637 fi
11638 rm -f conftest*
11639
11640 fi
11641
11642 echo "$ac_t""$ac_cv_type_uid_t" 1>&6
11643 if test $ac_cv_type_uid_t = no; then
11644 cat >> confdefs.h <<\EOF
11645 #define uid_t int
11646 EOF
11647
11648 cat >> confdefs.h <<\EOF
11649 #define gid_t int
11650 EOF
11651
11652 fi
11653
11654
11655 echo $ac_n "checking for wchar_t""... $ac_c" 1>&6
11656 echo "configure:11657: checking for wchar_t" >&5
11657 if eval "test \"`echo '$''{'wx_cv_type_wchar_t'+set}'`\" = set"; then
11658 echo $ac_n "(cached) $ac_c" 1>&6
11659 else
11660
11661 cat > conftest.$ac_ext <<EOF
11662 #line 11663 "configure"
11663 #include "confdefs.h"
11664 #include <wchar.h>
11665 int main() {
11666
11667 wchar_t wc, *ws;
11668 wc = L'a';
11669 ws = L"Hello, world!";
11670
11671 ; return 0; }
11672 EOF
11673 if { (eval echo configure:11674: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11674 rm -rf conftest*
11675 wx_cv_type_wchar_t=yes
11676 else
11677 echo "configure: failed program was:" >&5
11678 cat conftest.$ac_ext >&5
11679 rm -rf conftest*
11680 cat > conftest.$ac_ext <<EOF
11681 #line 11682 "configure"
11682 #include "confdefs.h"
11683 #include <stdlib.h>
11684 int main() {
11685
11686 wchar_t wc, *ws;
11687 wc = L'a';
11688 ws = L"Hello, world!";
11689
11690 ; return 0; }
11691 EOF
11692 if { (eval echo configure:11693: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11693 rm -rf conftest*
11694 wx_cv_type_wchar_t=yes
11695 else
11696 echo "configure: failed program was:" >&5
11697 cat conftest.$ac_ext >&5
11698 rm -rf conftest*
11699 wx_cv_type_wchar_t=no
11700 fi
11701 rm -f conftest*
11702
11703 fi
11704 rm -f conftest*
11705
11706 fi
11707
11708 echo "$ac_t""$wx_cv_type_wchar_t" 1>&6
11709
11710 if test "$wx_cv_type_wchar_t" = "yes"; then
11711 cat >> confdefs.h <<\EOF
11712 #define wxUSE_WCHAR_T 1
11713 EOF
11714
11715 fi
11716
11717
11718 ac_ext=C
11719 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11720 ac_cpp='$CXXCPP $CPPFLAGS'
11721 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11722 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11723 cross_compiling=$ac_cv_prog_cxx_cross
11724
11725 echo $ac_n "checking if size_t is unsigned int""... $ac_c" 1>&6
11726 echo "configure:11727: checking if size_t is unsigned int" >&5
11727 if eval "test \"`echo '$''{'wx_cv_size_t_is_uint'+set}'`\" = set"; then
11728 echo $ac_n "(cached) $ac_c" 1>&6
11729 else
11730 cat > conftest.$ac_ext <<EOF
11731 #line 11732 "configure"
11732 #include "confdefs.h"
11733 #include <stddef.h>
11734 int main() {
11735
11736 return 0; }
11737
11738 struct Foo { void foo(size_t); void foo(unsigned int); };
11739
11740 int bar() {
11741
11742 ; return 0; }
11743 EOF
11744 if { (eval echo configure:11745: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11745 rm -rf conftest*
11746 wx_cv_size_t_is_uint=no
11747 else
11748 echo "configure: failed program was:" >&5
11749 cat conftest.$ac_ext >&5
11750 rm -rf conftest*
11751 wx_cv_size_t_is_uint=yes
11752
11753 fi
11754 rm -f conftest*
11755
11756 fi
11757
11758 echo "$ac_t""$wx_cv_size_t_is_uint" 1>&6
11759
11760 if test "$wx_cv_size_t_is_uint" = "yes"; then
11761 cat >> confdefs.h <<\EOF
11762 #define wxSIZE_T_IS_UINT 1
11763 EOF
11764
11765 else
11766 echo $ac_n "checking if size_t is unsigned long""... $ac_c" 1>&6
11767 echo "configure:11768: checking if size_t is unsigned long" >&5
11768 if eval "test \"`echo '$''{'wx_cv_size_t_is_ulong'+set}'`\" = set"; then
11769 echo $ac_n "(cached) $ac_c" 1>&6
11770 else
11771 cat > conftest.$ac_ext <<EOF
11772 #line 11773 "configure"
11773 #include "confdefs.h"
11774 #include <stddef.h>
11775 int main() {
11776
11777 return 0; }
11778
11779 struct Foo { void foo(size_t); void foo(unsigned long); };
11780
11781 int bar() {
11782
11783 ; return 0; }
11784 EOF
11785 if { (eval echo configure:11786: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11786 rm -rf conftest*
11787 wx_cv_size_t_is_ulong=no
11788 else
11789 echo "configure: failed program was:" >&5
11790 cat conftest.$ac_ext >&5
11791 rm -rf conftest*
11792 wx_cv_size_t_is_ulong=yes
11793
11794 fi
11795 rm -f conftest*
11796
11797 fi
11798
11799 echo "$ac_t""$wx_cv_size_t_is_ulong" 1>&6
11800
11801 if test "$wx_cv_size_t_is_ulong" = "yes"; then
11802 cat >> confdefs.h <<\EOF
11803 #define wxSIZE_T_IS_ULONG 1
11804 EOF
11805
11806 fi
11807 fi
11808
11809 ac_ext=c
11810 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
11811 ac_cpp='$CPP $CPPFLAGS'
11812 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
11813 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
11814 cross_compiling=$ac_cv_prog_cc_cross
11815
11816
11817
11818 echo $ac_n "checking for pw_gecos in struct passwd""... $ac_c" 1>&6
11819 echo "configure:11820: checking for pw_gecos in struct passwd" >&5
11820 if eval "test \"`echo '$''{'wx_cv_struct_pw_gecos'+set}'`\" = set"; then
11821 echo $ac_n "(cached) $ac_c" 1>&6
11822 else
11823
11824 cat > conftest.$ac_ext <<EOF
11825 #line 11826 "configure"
11826 #include "confdefs.h"
11827 #include <pwd.h>
11828 int main() {
11829
11830 char *p;
11831 struct passwd *pw;
11832 p = pw->pw_gecos;
11833
11834 ; return 0; }
11835 EOF
11836 if { (eval echo configure:11837: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11837 rm -rf conftest*
11838
11839 wx_cv_struct_pw_gecos=yes
11840
11841 else
11842 echo "configure: failed program was:" >&5
11843 cat conftest.$ac_ext >&5
11844 rm -rf conftest*
11845
11846 wx_cv_struct_pw_gecos=no
11847
11848
11849 fi
11850 rm -f conftest*
11851
11852
11853 fi
11854
11855 echo "$ac_t""$wx_cv_struct_pw_gecos" 1>&6
11856
11857 if test "$wx_cv_struct_pw_gecos" = "yes"; then
11858 cat >> confdefs.h <<\EOF
11859 #define HAVE_PW_GECOS 1
11860 EOF
11861
11862 fi
11863
11864
11865 echo $ac_n "checking for working const""... $ac_c" 1>&6
11866 echo "configure:11867: checking for working const" >&5
11867 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
11868 echo $ac_n "(cached) $ac_c" 1>&6
11869 else
11870 cat > conftest.$ac_ext <<EOF
11871 #line 11872 "configure"
11872 #include "confdefs.h"
11873
11874 int main() {
11875
11876 /* Ultrix mips cc rejects this. */
11877 typedef int charset[2]; const charset x;
11878 /* SunOS 4.1.1 cc rejects this. */
11879 char const *const *ccp;
11880 char **p;
11881 /* NEC SVR4.0.2 mips cc rejects this. */
11882 struct point {int x, y;};
11883 static struct point const zero = {0,0};
11884 /* AIX XL C 1.02.0.0 rejects this.
11885 It does not let you subtract one const X* pointer from another in an arm
11886 of an if-expression whose if-part is not a constant expression */
11887 const char *g = "string";
11888 ccp = &g + (g ? g-g : 0);
11889 /* HPUX 7.0 cc rejects these. */
11890 ++ccp;
11891 p = (char**) ccp;
11892 ccp = (char const *const *) p;
11893 { /* SCO 3.2v4 cc rejects this. */
11894 char *t;
11895 char const *s = 0 ? (char *) 0 : (char const *) 0;
11896
11897 *t++ = 0;
11898 }
11899 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11900 int x[] = {25, 17};
11901 const int *foo = &x[0];
11902 ++foo;
11903 }
11904 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11905 typedef const int *iptr;
11906 iptr p = 0;
11907 ++p;
11908 }
11909 { /* AIX XL C 1.02.0.0 rejects this saying
11910 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11911 struct s { int j; const int *ap[3]; };
11912 struct s *b; b->j = 5;
11913 }
11914 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11915 const int foo = 10;
11916 }
11917
11918 ; return 0; }
11919 EOF
11920 if { (eval echo configure:11921: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11921 rm -rf conftest*
11922 ac_cv_c_const=yes
11923 else
11924 echo "configure: failed program was:" >&5
11925 cat conftest.$ac_ext >&5
11926 rm -rf conftest*
11927 ac_cv_c_const=no
11928 fi
11929 rm -f conftest*
11930 fi
11931
11932 echo "$ac_t""$ac_cv_c_const" 1>&6
11933 if test $ac_cv_c_const = no; then
11934 cat >> confdefs.h <<\EOF
11935 #define const
11936 EOF
11937
11938 fi
11939
11940 echo $ac_n "checking for inline""... $ac_c" 1>&6
11941 echo "configure:11942: checking for inline" >&5
11942 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
11943 echo $ac_n "(cached) $ac_c" 1>&6
11944 else
11945 ac_cv_c_inline=no
11946 for ac_kw in inline __inline__ __inline; do
11947 cat > conftest.$ac_ext <<EOF
11948 #line 11949 "configure"
11949 #include "confdefs.h"
11950
11951 int main() {
11952 } $ac_kw foo() {
11953 ; return 0; }
11954 EOF
11955 if { (eval echo configure:11956: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
11956 rm -rf conftest*
11957 ac_cv_c_inline=$ac_kw; break
11958 else
11959 echo "configure: failed program was:" >&5
11960 cat conftest.$ac_ext >&5
11961 fi
11962 rm -f conftest*
11963 done
11964
11965 fi
11966
11967 echo "$ac_t""$ac_cv_c_inline" 1>&6
11968 case "$ac_cv_c_inline" in
11969 inline | yes) ;;
11970 no) cat >> confdefs.h <<\EOF
11971 #define inline
11972 EOF
11973 ;;
11974 *) cat >> confdefs.h <<EOF
11975 #define inline $ac_cv_c_inline
11976 EOF
11977 ;;
11978 esac
11979
11980
11981 echo $ac_n "checking size of char""... $ac_c" 1>&6
11982 echo "configure:11983: checking size of char" >&5
11983 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then
11984 echo $ac_n "(cached) $ac_c" 1>&6
11985 else
11986 if test "$cross_compiling" = yes; then
11987 ac_cv_sizeof_char=1
11988 else
11989 cat > conftest.$ac_ext <<EOF
11990 #line 11991 "configure"
11991 #include "confdefs.h"
11992 #include <stdio.h>
11993 main()
11994 {
11995 FILE *f=fopen("conftestval", "w");
11996 if (!f) exit(1);
11997 fprintf(f, "%d\n", sizeof(char));
11998 exit(0);
11999 }
12000 EOF
12001 if { (eval echo configure:12002: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12002 then
12003 ac_cv_sizeof_char=`cat conftestval`
12004 else
12005 echo "configure: failed program was:" >&5
12006 cat conftest.$ac_ext >&5
12007 rm -fr conftest*
12008 ac_cv_sizeof_char=0
12009 fi
12010 rm -fr conftest*
12011 fi
12012
12013 fi
12014 echo "$ac_t""$ac_cv_sizeof_char" 1>&6
12015 cat >> confdefs.h <<EOF
12016 #define SIZEOF_CHAR $ac_cv_sizeof_char
12017 EOF
12018
12019
12020 echo $ac_n "checking size of short""... $ac_c" 1>&6
12021 echo "configure:12022: checking size of short" >&5
12022 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then
12023 echo $ac_n "(cached) $ac_c" 1>&6
12024 else
12025 if test "$cross_compiling" = yes; then
12026 ac_cv_sizeof_short=2
12027 else
12028 cat > conftest.$ac_ext <<EOF
12029 #line 12030 "configure"
12030 #include "confdefs.h"
12031 #include <stdio.h>
12032 main()
12033 {
12034 FILE *f=fopen("conftestval", "w");
12035 if (!f) exit(1);
12036 fprintf(f, "%d\n", sizeof(short));
12037 exit(0);
12038 }
12039 EOF
12040 if { (eval echo configure:12041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12041 then
12042 ac_cv_sizeof_short=`cat conftestval`
12043 else
12044 echo "configure: failed program was:" >&5
12045 cat conftest.$ac_ext >&5
12046 rm -fr conftest*
12047 ac_cv_sizeof_short=0
12048 fi
12049 rm -fr conftest*
12050 fi
12051
12052 fi
12053 echo "$ac_t""$ac_cv_sizeof_short" 1>&6
12054 cat >> confdefs.h <<EOF
12055 #define SIZEOF_SHORT $ac_cv_sizeof_short
12056 EOF
12057
12058
12059 echo $ac_n "checking size of int *""... $ac_c" 1>&6
12060 echo "configure:12061: checking size of int *" >&5
12061 if eval "test \"`echo '$''{'ac_cv_sizeof_int_p'+set}'`\" = set"; then
12062 echo $ac_n "(cached) $ac_c" 1>&6
12063 else
12064 if test "$cross_compiling" = yes; then
12065 ac_cv_sizeof_int_p=4
12066 else
12067 cat > conftest.$ac_ext <<EOF
12068 #line 12069 "configure"
12069 #include "confdefs.h"
12070 #include <stdio.h>
12071 main()
12072 {
12073 FILE *f=fopen("conftestval", "w");
12074 if (!f) exit(1);
12075 fprintf(f, "%d\n", sizeof(int *));
12076 exit(0);
12077 }
12078 EOF
12079 if { (eval echo configure:12080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12080 then
12081 ac_cv_sizeof_int_p=`cat conftestval`
12082 else
12083 echo "configure: failed program was:" >&5
12084 cat conftest.$ac_ext >&5
12085 rm -fr conftest*
12086 ac_cv_sizeof_int_p=0
12087 fi
12088 rm -fr conftest*
12089 fi
12090
12091 fi
12092 echo "$ac_t""$ac_cv_sizeof_int_p" 1>&6
12093 cat >> confdefs.h <<EOF
12094 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
12095 EOF
12096
12097
12098 echo $ac_n "checking size of int""... $ac_c" 1>&6
12099 echo "configure:12100: checking size of int" >&5
12100 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then
12101 echo $ac_n "(cached) $ac_c" 1>&6
12102 else
12103 if test "$cross_compiling" = yes; then
12104 ac_cv_sizeof_int=4
12105 else
12106 cat > conftest.$ac_ext <<EOF
12107 #line 12108 "configure"
12108 #include "confdefs.h"
12109 #include <stdio.h>
12110 main()
12111 {
12112 FILE *f=fopen("conftestval", "w");
12113 if (!f) exit(1);
12114 fprintf(f, "%d\n", sizeof(int));
12115 exit(0);
12116 }
12117 EOF
12118 if { (eval echo configure:12119: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12119 then
12120 ac_cv_sizeof_int=`cat conftestval`
12121 else
12122 echo "configure: failed program was:" >&5
12123 cat conftest.$ac_ext >&5
12124 rm -fr conftest*
12125 ac_cv_sizeof_int=0
12126 fi
12127 rm -fr conftest*
12128 fi
12129
12130 fi
12131 echo "$ac_t""$ac_cv_sizeof_int" 1>&6
12132 cat >> confdefs.h <<EOF
12133 #define SIZEOF_INT $ac_cv_sizeof_int
12134 EOF
12135
12136
12137 echo $ac_n "checking size of long""... $ac_c" 1>&6
12138 echo "configure:12139: checking size of long" >&5
12139 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
12140 echo $ac_n "(cached) $ac_c" 1>&6
12141 else
12142 if test "$cross_compiling" = yes; then
12143 ac_cv_sizeof_long=4
12144 else
12145 cat > conftest.$ac_ext <<EOF
12146 #line 12147 "configure"
12147 #include "confdefs.h"
12148 #include <stdio.h>
12149 main()
12150 {
12151 FILE *f=fopen("conftestval", "w");
12152 if (!f) exit(1);
12153 fprintf(f, "%d\n", sizeof(long));
12154 exit(0);
12155 }
12156 EOF
12157 if { (eval echo configure:12158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12158 then
12159 ac_cv_sizeof_long=`cat conftestval`
12160 else
12161 echo "configure: failed program was:" >&5
12162 cat conftest.$ac_ext >&5
12163 rm -fr conftest*
12164 ac_cv_sizeof_long=0
12165 fi
12166 rm -fr conftest*
12167 fi
12168
12169 fi
12170 echo "$ac_t""$ac_cv_sizeof_long" 1>&6
12171 cat >> confdefs.h <<EOF
12172 #define SIZEOF_LONG $ac_cv_sizeof_long
12173 EOF
12174
12175
12176 echo $ac_n "checking size of long long""... $ac_c" 1>&6
12177 echo "configure:12178: checking size of long long" >&5
12178 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then
12179 echo $ac_n "(cached) $ac_c" 1>&6
12180 else
12181 if test "$cross_compiling" = yes; then
12182 ac_cv_sizeof_long_long=0
12183 else
12184 cat > conftest.$ac_ext <<EOF
12185 #line 12186 "configure"
12186 #include "confdefs.h"
12187 #include <stdio.h>
12188 main()
12189 {
12190 FILE *f=fopen("conftestval", "w");
12191 if (!f) exit(1);
12192 fprintf(f, "%d\n", sizeof(long long));
12193 exit(0);
12194 }
12195 EOF
12196 if { (eval echo configure:12197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12197 then
12198 ac_cv_sizeof_long_long=`cat conftestval`
12199 else
12200 echo "configure: failed program was:" >&5
12201 cat conftest.$ac_ext >&5
12202 rm -fr conftest*
12203 ac_cv_sizeof_long_long=0
12204 fi
12205 rm -fr conftest*
12206 fi
12207
12208 fi
12209 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6
12210 cat >> confdefs.h <<EOF
12211 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12212 EOF
12213
12214
12215
12216 echo $ac_n "checking size of wchar_t""... $ac_c" 1>&6
12217 echo "configure:12218: checking size of wchar_t" >&5
12218 if eval "test \"`echo '$''{'wx_cv_sizeof_wchar_t'+set}'`\" = set"; then
12219 echo $ac_n "(cached) $ac_c" 1>&6
12220 else
12221
12222 if test "$cross_compiling" = yes; then
12223 wx_cv_sizeof_wchar_t=4
12224
12225 else
12226 cat > conftest.$ac_ext <<EOF
12227 #line 12228 "configure"
12228 #include "confdefs.h"
12229
12230 #ifdef HAVE_WCHAR_H
12231 # include <wchar.h>
12232 #endif
12233 #ifdef HAVE_STDLIB_H
12234 # include <stdlib.h>
12235 #endif
12236 #include <stdio.h>
12237 int main()
12238 {
12239 FILE *f=fopen("conftestval", "w");
12240 if (!f) exit(1);
12241 fprintf(f, "%i", sizeof(wchar_t));
12242 exit(0);
12243 }
12244
12245 EOF
12246 if { (eval echo configure:12247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12247 then
12248 wx_cv_sizeof_wchar_t=`cat conftestval`
12249 else
12250 echo "configure: failed program was:" >&5
12251 cat conftest.$ac_ext >&5
12252 rm -fr conftest*
12253 wx_cv_sizeof_wchar_t=0
12254 fi
12255 rm -fr conftest*
12256 fi
12257
12258
12259 fi
12260
12261 echo "$ac_t""$wx_cv_sizeof_wchar_t" 1>&6
12262
12263 cat >> confdefs.h <<EOF
12264 #define SIZEOF_WCHAR_T $wx_cv_sizeof_wchar_t
12265 EOF
12266
12267
12268 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
12269 echo "configure:12270: checking whether byte ordering is bigendian" >&5
12270 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
12271 echo $ac_n "(cached) $ac_c" 1>&6
12272 else
12273 ac_cv_c_bigendian=unknown
12274 # See if sys/param.h defines the BYTE_ORDER macro.
12275 cat > conftest.$ac_ext <<EOF
12276 #line 12277 "configure"
12277 #include "confdefs.h"
12278 #include <sys/types.h>
12279 #include <sys/param.h>
12280 int main() {
12281
12282 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
12283 bogus endian macros
12284 #endif
12285 ; return 0; }
12286 EOF
12287 if { (eval echo configure:12288: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12288 rm -rf conftest*
12289 # It does; now see whether it defined to BIG_ENDIAN or not.
12290 cat > conftest.$ac_ext <<EOF
12291 #line 12292 "configure"
12292 #include "confdefs.h"
12293 #include <sys/types.h>
12294 #include <sys/param.h>
12295 int main() {
12296
12297 #if BYTE_ORDER != BIG_ENDIAN
12298 not big endian
12299 #endif
12300 ; return 0; }
12301 EOF
12302 if { (eval echo configure:12303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12303 rm -rf conftest*
12304 ac_cv_c_bigendian=yes
12305 else
12306 echo "configure: failed program was:" >&5
12307 cat conftest.$ac_ext >&5
12308 rm -rf conftest*
12309 ac_cv_c_bigendian=no
12310 fi
12311 rm -f conftest*
12312 else
12313 echo "configure: failed program was:" >&5
12314 cat conftest.$ac_ext >&5
12315 fi
12316 rm -f conftest*
12317 if test $ac_cv_c_bigendian = unknown; then
12318 if test "$cross_compiling" = yes; then
12319 ac_cv_c_bigendian=unknown
12320 else
12321 cat > conftest.$ac_ext <<EOF
12322 #line 12323 "configure"
12323 #include "confdefs.h"
12324 main () {
12325 /* Are we little or big endian? From Harbison&Steele. */
12326 union
12327 {
12328 long l;
12329 char c[sizeof (long)];
12330 } u;
12331 u.l = 1;
12332 exit (u.c[sizeof (long) - 1] == 1);
12333 }
12334 EOF
12335 if { (eval echo configure:12336: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
12336 then
12337 ac_cv_c_bigendian=no
12338 else
12339 echo "configure: failed program was:" >&5
12340 cat conftest.$ac_ext >&5
12341 rm -fr conftest*
12342 ac_cv_c_bigendian=yes
12343 fi
12344 rm -fr conftest*
12345 fi
12346
12347 fi
12348 fi
12349
12350 echo "$ac_t""$ac_cv_c_bigendian" 1>&6
12351 if test $ac_cv_c_bigendian = unknown; then
12352 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
12353 fi
12354 if test $ac_cv_c_bigendian = yes; then
12355 cat >> confdefs.h <<\EOF
12356 #define WORDS_BIGENDIAN 1
12357 EOF
12358
12359 fi
12360
12361
12362
12363 if test "$cross_compiling" = "yes"; then
12364 cat >> confdefs.h <<\EOF
12365 #define wxUSE_IOSTREAMH 1
12366 EOF
12367
12368 else
12369
12370 ac_ext=C
12371 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12372 ac_cpp='$CXXCPP $CPPFLAGS'
12373 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12374 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12375 cross_compiling=$ac_cv_prog_cxx_cross
12376
12377
12378 for ac_hdr in iostream
12379 do
12380 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
12381 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
12382 echo "configure:12383: checking for $ac_hdr" >&5
12383 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
12384 echo $ac_n "(cached) $ac_c" 1>&6
12385 else
12386 cat > conftest.$ac_ext <<EOF
12387 #line 12388 "configure"
12388 #include "confdefs.h"
12389 #include <$ac_hdr>
12390 EOF
12391 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
12392 { (eval echo configure:12393: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
12393 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
12394 if test -z "$ac_err"; then
12395 rm -rf conftest*
12396 eval "ac_cv_header_$ac_safe=yes"
12397 else
12398 echo "$ac_err" >&5
12399 echo "configure: failed program was:" >&5
12400 cat conftest.$ac_ext >&5
12401 rm -rf conftest*
12402 eval "ac_cv_header_$ac_safe=no"
12403 fi
12404 rm -f conftest*
12405 fi
12406 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
12407 echo "$ac_t""yes" 1>&6
12408 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
12409 cat >> confdefs.h <<EOF
12410 #define $ac_tr_hdr 1
12411 EOF
12412
12413 else
12414 echo "$ac_t""no" 1>&6
12415 fi
12416 done
12417
12418
12419 if test "$ac_cv_header_iostream" = "yes" ; then
12420 :
12421 else
12422 cat >> confdefs.h <<\EOF
12423 #define wxUSE_IOSTREAMH 1
12424 EOF
12425
12426 fi
12427
12428 ac_ext=c
12429 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12430 ac_cpp='$CPP $CPPFLAGS'
12431 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12432 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12433 cross_compiling=$ac_cv_prog_cc_cross
12434
12435 fi
12436
12437
12438
12439 echo $ac_n "checking if C++ compiler supports bool""... $ac_c" 1>&6
12440 echo "configure:12441: checking if C++ compiler supports bool" >&5
12441 if eval "test \"`echo '$''{'wx_cv_cpp_bool'+set}'`\" = set"; then
12442 echo $ac_n "(cached) $ac_c" 1>&6
12443 else
12444
12445
12446 ac_ext=C
12447 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12448 ac_cpp='$CXXCPP $CPPFLAGS'
12449 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12450 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12451 cross_compiling=$ac_cv_prog_cxx_cross
12452
12453
12454 cat > conftest.$ac_ext <<EOF
12455 #line 12456 "configure"
12456 #include "confdefs.h"
12457
12458
12459 int main() {
12460
12461 bool b = true;
12462
12463 return 0;
12464
12465 ; return 0; }
12466 EOF
12467 if { (eval echo configure:12468: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12468 rm -rf conftest*
12469
12470 wx_cv_cpp_bool=yes
12471
12472 else
12473 echo "configure: failed program was:" >&5
12474 cat conftest.$ac_ext >&5
12475 rm -rf conftest*
12476
12477 wx_cv_cpp_bool=no
12478
12479
12480 fi
12481 rm -f conftest*
12482
12483 ac_ext=c
12484 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12485 ac_cpp='$CPP $CPPFLAGS'
12486 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12487 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12488 cross_compiling=$ac_cv_prog_cc_cross
12489
12490
12491 fi
12492
12493 echo "$ac_t""$wx_cv_cpp_bool" 1>&6
12494
12495 if test "$wx_cv_cpp_bool" = "yes"; then
12496 cat >> confdefs.h <<\EOF
12497 #define HAVE_BOOL 1
12498 EOF
12499
12500 fi
12501
12502
12503
12504 echo $ac_n "checking for wcslen in -lc""... $ac_c" 1>&6
12505 echo "configure:12506: checking for wcslen in -lc" >&5
12506 ac_lib_var=`echo c'_'wcslen | sed 'y%./+-%__p_%'`
12507 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12508 echo $ac_n "(cached) $ac_c" 1>&6
12509 else
12510 ac_save_LIBS="$LIBS"
12511 LIBS="-lc $LIBS"
12512 cat > conftest.$ac_ext <<EOF
12513 #line 12514 "configure"
12514 #include "confdefs.h"
12515 /* Override any gcc2 internal prototype to avoid an error. */
12516 /* We use char because int might match the return type of a gcc2
12517 builtin and then its argument prototype would still apply. */
12518 char wcslen();
12519
12520 int main() {
12521 wcslen()
12522 ; return 0; }
12523 EOF
12524 if { (eval echo configure:12525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12525 rm -rf conftest*
12526 eval "ac_cv_lib_$ac_lib_var=yes"
12527 else
12528 echo "configure: failed program was:" >&5
12529 cat conftest.$ac_ext >&5
12530 rm -rf conftest*
12531 eval "ac_cv_lib_$ac_lib_var=no"
12532 fi
12533 rm -f conftest*
12534 LIBS="$ac_save_LIBS"
12535
12536 fi
12537 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12538 echo "$ac_t""yes" 1>&6
12539
12540 cat >> confdefs.h <<\EOF
12541 #define HAVE_WCSLEN 1
12542 EOF
12543
12544 WCHAR_LINK=""
12545
12546 else
12547 echo "$ac_t""no" 1>&6
12548
12549 echo $ac_n "checking for wcslen in -lw""... $ac_c" 1>&6
12550 echo "configure:12551: checking for wcslen in -lw" >&5
12551 ac_lib_var=`echo w'_'wcslen | sed 'y%./+-%__p_%'`
12552 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
12553 echo $ac_n "(cached) $ac_c" 1>&6
12554 else
12555 ac_save_LIBS="$LIBS"
12556 LIBS="-lw $LIBS"
12557 cat > conftest.$ac_ext <<EOF
12558 #line 12559 "configure"
12559 #include "confdefs.h"
12560 /* Override any gcc2 internal prototype to avoid an error. */
12561 /* We use char because int might match the return type of a gcc2
12562 builtin and then its argument prototype would still apply. */
12563 char wcslen();
12564
12565 int main() {
12566 wcslen()
12567 ; return 0; }
12568 EOF
12569 if { (eval echo configure:12570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12570 rm -rf conftest*
12571 eval "ac_cv_lib_$ac_lib_var=yes"
12572 else
12573 echo "configure: failed program was:" >&5
12574 cat conftest.$ac_ext >&5
12575 rm -rf conftest*
12576 eval "ac_cv_lib_$ac_lib_var=no"
12577 fi
12578 rm -f conftest*
12579 LIBS="$ac_save_LIBS"
12580
12581 fi
12582 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
12583 echo "$ac_t""yes" 1>&6
12584
12585 cat >> confdefs.h <<\EOF
12586 #define HAVE_WCSLEN 1
12587 EOF
12588
12589 WCHAR_LINK="-lw"
12590
12591 else
12592 echo "$ac_t""no" 1>&6
12593 fi
12594
12595
12596 fi
12597
12598
12599 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
12600 echo "configure:12601: checking for vprintf" >&5
12601 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
12602 echo $ac_n "(cached) $ac_c" 1>&6
12603 else
12604 cat > conftest.$ac_ext <<EOF
12605 #line 12606 "configure"
12606 #include "confdefs.h"
12607 /* System header to define __stub macros and hopefully few prototypes,
12608 which can conflict with char vprintf(); below. */
12609 #include <assert.h>
12610 /* Override any gcc2 internal prototype to avoid an error. */
12611 /* We use char because int might match the return type of a gcc2
12612 builtin and then its argument prototype would still apply. */
12613 char vprintf();
12614
12615 int main() {
12616
12617 /* The GNU C library defines this for functions which it implements
12618 to always fail with ENOSYS. Some functions are actually named
12619 something starting with __ and the normal name is an alias. */
12620 #if defined (__stub_vprintf) || defined (__stub___vprintf)
12621 choke me
12622 #else
12623 vprintf();
12624 #endif
12625
12626 ; return 0; }
12627 EOF
12628 if { (eval echo configure:12629: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12629 rm -rf conftest*
12630 eval "ac_cv_func_vprintf=yes"
12631 else
12632 echo "configure: failed program was:" >&5
12633 cat conftest.$ac_ext >&5
12634 rm -rf conftest*
12635 eval "ac_cv_func_vprintf=no"
12636 fi
12637 rm -f conftest*
12638 fi
12639
12640 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
12641 echo "$ac_t""yes" 1>&6
12642 cat >> confdefs.h <<\EOF
12643 #define HAVE_VPRINTF 1
12644 EOF
12645
12646 else
12647 echo "$ac_t""no" 1>&6
12648 fi
12649
12650 if test "$ac_cv_func_vprintf" != yes; then
12651 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
12652 echo "configure:12653: checking for _doprnt" >&5
12653 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
12654 echo $ac_n "(cached) $ac_c" 1>&6
12655 else
12656 cat > conftest.$ac_ext <<EOF
12657 #line 12658 "configure"
12658 #include "confdefs.h"
12659 /* System header to define __stub macros and hopefully few prototypes,
12660 which can conflict with char _doprnt(); below. */
12661 #include <assert.h>
12662 /* Override any gcc2 internal prototype to avoid an error. */
12663 /* We use char because int might match the return type of a gcc2
12664 builtin and then its argument prototype would still apply. */
12665 char _doprnt();
12666
12667 int main() {
12668
12669 /* The GNU C library defines this for functions which it implements
12670 to always fail with ENOSYS. Some functions are actually named
12671 something starting with __ and the normal name is an alias. */
12672 #if defined (__stub__doprnt) || defined (__stub____doprnt)
12673 choke me
12674 #else
12675 _doprnt();
12676 #endif
12677
12678 ; return 0; }
12679 EOF
12680 if { (eval echo configure:12681: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12681 rm -rf conftest*
12682 eval "ac_cv_func__doprnt=yes"
12683 else
12684 echo "configure: failed program was:" >&5
12685 cat conftest.$ac_ext >&5
12686 rm -rf conftest*
12687 eval "ac_cv_func__doprnt=no"
12688 fi
12689 rm -f conftest*
12690 fi
12691
12692 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
12693 echo "$ac_t""yes" 1>&6
12694 cat >> confdefs.h <<\EOF
12695 #define HAVE_DOPRNT 1
12696 EOF
12697
12698 else
12699 echo "$ac_t""no" 1>&6
12700 fi
12701
12702 fi
12703
12704
12705
12706
12707
12708
12709
12710 echo $ac_n "checking for vsnprintf""... $ac_c" 1>&6
12711 echo "configure:12712: checking for vsnprintf" >&5
12712 if eval "test \"`echo '$''{'wx_cv_func_vsnprintf'+set}'`\" = set"; then
12713 echo $ac_n "(cached) $ac_c" 1>&6
12714 else
12715
12716 cat > conftest.$ac_ext <<EOF
12717 #line 12718 "configure"
12718 #include "confdefs.h"
12719
12720 #include <stdio.h>
12721 #include <stdarg.h>
12722
12723 int main() {
12724
12725 int wx_test_vsnprintf(const char *, ...);
12726
12727 wx_test_vsnprintf("%s");
12728 return 0;
12729 }
12730
12731 int wx_test_vsnprintf(const char *fmt, ...)
12732 {
12733 char *s;
12734
12735 va_list argp;
12736 va_start(argp, fmt);
12737 vsnprintf(s, 42, fmt, argp);
12738 va_end(argp);
12739
12740 ; return 0; }
12741 EOF
12742 if { (eval echo configure:12743: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12743 rm -rf conftest*
12744
12745 wx_cv_func_vsnprintf=yes
12746
12747 else
12748 echo "configure: failed program was:" >&5
12749 cat conftest.$ac_ext >&5
12750 rm -rf conftest*
12751
12752 cat > conftest.$ac_ext <<EOF
12753 #line 12754 "configure"
12754 #include "confdefs.h"
12755
12756 #include <stdio.h>
12757 #include <stdarg.h>
12758
12759 int main() {
12760
12761 int wx_test_vsnprintf(const char *, ...);
12762
12763 wx_test_vsnprintf("%s");
12764 return 0;
12765 }
12766
12767 int wx_test_vsnprintf(const char *fmt, ...)
12768 {
12769 char *s;
12770
12771 va_list argp;
12772 va_start(argp, fmt);
12773 _vsnprintf(s, 42, fmt, argp);
12774 va_end(argp);
12775
12776 ; return 0; }
12777 EOF
12778 if { (eval echo configure:12779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12779 rm -rf conftest*
12780
12781 wx_cv_func_vsnprintf=yes
12782
12783 else
12784 echo "configure: failed program was:" >&5
12785 cat conftest.$ac_ext >&5
12786 rm -rf conftest*
12787
12788 wx_cv_func_vsnprintf=no
12789
12790 fi
12791 rm -f conftest*
12792
12793 fi
12794 rm -f conftest*
12795
12796 fi
12797
12798 echo "$ac_t""$wx_cv_func_vsnprintf" 1>&6
12799
12800 if test "$wx_cv_func_vsnprintf" = yes; then
12801 cat >> confdefs.h <<\EOF
12802 #define HAVE_VSNPRINTF 1
12803 EOF
12804
12805 else
12806 echo "configure: warning: unsafe function sprintf will be used instead of snprintf" 1>&2
12807 fi
12808
12809 echo $ac_n "checking for vsscanf""... $ac_c" 1>&6
12810 echo "configure:12811: checking for vsscanf" >&5
12811 if eval "test \"`echo '$''{'wx_cv_func_vsscanf'+set}'`\" = set"; then
12812 echo $ac_n "(cached) $ac_c" 1>&6
12813 else
12814
12815 cat > conftest.$ac_ext <<EOF
12816 #line 12817 "configure"
12817 #include "confdefs.h"
12818
12819 #include <stdio.h>
12820 #include <stdarg.h>
12821
12822 int main() {
12823
12824 int wx_test_vsscanf(const char *, ...);
12825
12826 wx_test_vsscanf("%d");
12827 return 0;
12828 }
12829
12830 int wx_test_vsscanf(const char *fmt, ...)
12831 {
12832 va_list argp;
12833 va_start(argp, fmt);
12834 vsscanf("42", fmt, argp);
12835 va_end(argp);
12836
12837 ; return 0; }
12838 EOF
12839 if { (eval echo configure:12840: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12840 rm -rf conftest*
12841
12842 wx_cv_func_vsscanf=yes
12843
12844 else
12845 echo "configure: failed program was:" >&5
12846 cat conftest.$ac_ext >&5
12847 rm -rf conftest*
12848
12849 wx_cv_func_vsscanf=no
12850
12851 fi
12852 rm -f conftest*
12853
12854 fi
12855
12856 echo "$ac_t""$wx_cv_func_vsscanf" 1>&6
12857
12858 if test "$wx_cv_func_vsscanf" = yes; then
12859 cat >> confdefs.h <<\EOF
12860 #define HAVE_VSSCANF 1
12861 EOF
12862
12863 fi
12864
12865 if test "$TOOLKIT" != "MSW"; then
12866
12867
12868
12869 ac_ext=C
12870 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12871 ac_cpp='$CXXCPP $CPPFLAGS'
12872 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12873 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12874 cross_compiling=$ac_cv_prog_cxx_cross
12875
12876 echo $ac_n "checking if iconv() takes char**""... $ac_c" 1>&6
12877 echo "configure:12878: checking if iconv() takes char**" >&5
12878 if eval "test \"`echo '$''{'wx_cv_iconv_takes_char'+set}'`\" = set"; then
12879 echo $ac_n "(cached) $ac_c" 1>&6
12880 else
12881
12882 cat > conftest.$ac_ext <<EOF
12883 #line 12884 "configure"
12884 #include "confdefs.h"
12885 #include <iconv.h>
12886 int main() {
12887
12888 char **inbuf, **outbuf;
12889 iconv_t cd;
12890 size_t insz, outsz;
12891 iconv(cd, inbuf, &insz, outbuf, &outsz);
12892
12893 ; return 0; }
12894 EOF
12895 if { (eval echo configure:12896: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
12896 rm -rf conftest*
12897 wx_cv_iconv_takes_char=yes
12898 else
12899 echo "configure: failed program was:" >&5
12900 cat conftest.$ac_ext >&5
12901 rm -rf conftest*
12902 wx_cv_iconv_takes_char=no
12903 fi
12904 rm -f conftest*
12905
12906 fi
12907
12908 echo "$ac_t""$wx_cv_iconv_takes_char" 1>&6
12909 ac_ext=c
12910 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12911 ac_cpp='$CPP $CPPFLAGS'
12912 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12913 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12914 cross_compiling=$ac_cv_prog_cc_cross
12915
12916 if test "$wx_cv_iconv_takes_char" = yes ; then
12917 cat >> confdefs.h <<\EOF
12918 #define WX_ICONV_TAKES_CHAR 1
12919 EOF
12920
12921 fi
12922
12923
12924 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
12925 for ac_func in sigaction
12926 do
12927 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
12928 echo "configure:12929: checking for $ac_func" >&5
12929 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
12930 echo $ac_n "(cached) $ac_c" 1>&6
12931 else
12932 cat > conftest.$ac_ext <<EOF
12933 #line 12934 "configure"
12934 #include "confdefs.h"
12935 /* System header to define __stub macros and hopefully few prototypes,
12936 which can conflict with char $ac_func(); below. */
12937 #include <assert.h>
12938 /* Override any gcc2 internal prototype to avoid an error. */
12939 /* We use char because int might match the return type of a gcc2
12940 builtin and then its argument prototype would still apply. */
12941 char $ac_func();
12942
12943 int main() {
12944
12945 /* The GNU C library defines this for functions which it implements
12946 to always fail with ENOSYS. Some functions are actually named
12947 something starting with __ and the normal name is an alias. */
12948 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
12949 choke me
12950 #else
12951 $ac_func();
12952 #endif
12953
12954 ; return 0; }
12955 EOF
12956 if { (eval echo configure:12957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
12957 rm -rf conftest*
12958 eval "ac_cv_func_$ac_func=yes"
12959 else
12960 echo "configure: failed program was:" >&5
12961 cat conftest.$ac_ext >&5
12962 rm -rf conftest*
12963 eval "ac_cv_func_$ac_func=no"
12964 fi
12965 rm -f conftest*
12966 fi
12967
12968 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
12969 echo "$ac_t""yes" 1>&6
12970 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
12971 cat >> confdefs.h <<EOF
12972 #define $ac_tr_func 1
12973 EOF
12974
12975 else
12976 echo "$ac_t""no" 1>&6
12977 fi
12978 done
12979
12980
12981 if test "$ac_cv_func_sigaction" = "no"; then
12982 echo "configure: warning: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" 1>&2
12983 wxUSE_ON_FATAL_EXCEPTION=no
12984 fi
12985
12986 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
12987
12988 ac_ext=C
12989 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
12990 ac_cpp='$CXXCPP $CPPFLAGS'
12991 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
12992 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
12993 cross_compiling=$ac_cv_prog_cxx_cross
12994
12995
12996 echo $ac_n "checking for sa_handler type""... $ac_c" 1>&6
12997 echo "configure:12998: checking for sa_handler type" >&5
12998 if eval "test \"`echo '$''{'wx_cv_type_sa_handler'+set}'`\" = set"; then
12999 echo $ac_n "(cached) $ac_c" 1>&6
13000 else
13001
13002 cat > conftest.$ac_ext <<EOF
13003 #line 13004 "configure"
13004 #include "confdefs.h"
13005 #include <signal.h>
13006 int main() {
13007
13008 extern void testSigHandler(int);
13009
13010 struct sigaction sa;
13011 sa.sa_handler = testSigHandler;
13012
13013 ; return 0; }
13014 EOF
13015 if { (eval echo configure:13016: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
13016 rm -rf conftest*
13017
13018 wx_cv_type_sa_handler=int
13019
13020 else
13021 echo "configure: failed program was:" >&5
13022 cat conftest.$ac_ext >&5
13023 rm -rf conftest*
13024
13025 wx_cv_type_sa_handler=void
13026
13027 fi
13028 rm -f conftest*
13029
13030 fi
13031
13032 echo "$ac_t""$wx_cv_type_sa_handler" 1>&6
13033
13034 ac_ext=c
13035 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13036 ac_cpp='$CPP $CPPFLAGS'
13037 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13038 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13039 cross_compiling=$ac_cv_prog_cc_cross
13040
13041
13042 cat >> confdefs.h <<EOF
13043 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
13044 EOF
13045
13046 fi
13047 fi
13048
13049 for ac_func in vfork
13050 do
13051 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13052 echo "configure:13053: checking for $ac_func" >&5
13053 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13054 echo $ac_n "(cached) $ac_c" 1>&6
13055 else
13056 cat > conftest.$ac_ext <<EOF
13057 #line 13058 "configure"
13058 #include "confdefs.h"
13059 /* System header to define __stub macros and hopefully few prototypes,
13060 which can conflict with char $ac_func(); below. */
13061 #include <assert.h>
13062 /* Override any gcc2 internal prototype to avoid an error. */
13063 /* We use char because int might match the return type of a gcc2
13064 builtin and then its argument prototype would still apply. */
13065 char $ac_func();
13066
13067 int main() {
13068
13069 /* The GNU C library defines this for functions which it implements
13070 to always fail with ENOSYS. Some functions are actually named
13071 something starting with __ and the normal name is an alias. */
13072 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13073 choke me
13074 #else
13075 $ac_func();
13076 #endif
13077
13078 ; return 0; }
13079 EOF
13080 if { (eval echo configure:13081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13081 rm -rf conftest*
13082 eval "ac_cv_func_$ac_func=yes"
13083 else
13084 echo "configure: failed program was:" >&5
13085 cat conftest.$ac_ext >&5
13086 rm -rf conftest*
13087 eval "ac_cv_func_$ac_func=no"
13088 fi
13089 rm -f conftest*
13090 fi
13091
13092 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13093 echo "$ac_t""yes" 1>&6
13094 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13095 cat >> confdefs.h <<EOF
13096 #define $ac_tr_func 1
13097 EOF
13098
13099 else
13100 echo "$ac_t""no" 1>&6
13101 fi
13102 done
13103
13104
13105 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
13106 for ac_func in fcntl flock
13107 do
13108 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13109 echo "configure:13110: checking for $ac_func" >&5
13110 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13111 echo $ac_n "(cached) $ac_c" 1>&6
13112 else
13113 cat > conftest.$ac_ext <<EOF
13114 #line 13115 "configure"
13115 #include "confdefs.h"
13116 /* System header to define __stub macros and hopefully few prototypes,
13117 which can conflict with char $ac_func(); below. */
13118 #include <assert.h>
13119 /* Override any gcc2 internal prototype to avoid an error. */
13120 /* We use char because int might match the return type of a gcc2
13121 builtin and then its argument prototype would still apply. */
13122 char $ac_func();
13123
13124 int main() {
13125
13126 /* The GNU C library defines this for functions which it implements
13127 to always fail with ENOSYS. Some functions are actually named
13128 something starting with __ and the normal name is an alias. */
13129 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13130 choke me
13131 #else
13132 $ac_func();
13133 #endif
13134
13135 ; return 0; }
13136 EOF
13137 if { (eval echo configure:13138: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13138 rm -rf conftest*
13139 eval "ac_cv_func_$ac_func=yes"
13140 else
13141 echo "configure: failed program was:" >&5
13142 cat conftest.$ac_ext >&5
13143 rm -rf conftest*
13144 eval "ac_cv_func_$ac_func=no"
13145 fi
13146 rm -f conftest*
13147 fi
13148
13149 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13150 echo "$ac_t""yes" 1>&6
13151 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13152 cat >> confdefs.h <<EOF
13153 #define $ac_tr_func 1
13154 EOF
13155 break
13156 else
13157 echo "$ac_t""no" 1>&6
13158 fi
13159 done
13160
13161
13162 if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
13163 echo "configure: warning: wxSingleInstanceChecker not available" 1>&2
13164 wxUSE_SNGLINST_CHECKER=no
13165 fi
13166 fi
13167
13168 for ac_func in timegm
13169 do
13170 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13171 echo "configure:13172: checking for $ac_func" >&5
13172 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13173 echo $ac_n "(cached) $ac_c" 1>&6
13174 else
13175 cat > conftest.$ac_ext <<EOF
13176 #line 13177 "configure"
13177 #include "confdefs.h"
13178 /* System header to define __stub macros and hopefully few prototypes,
13179 which can conflict with char $ac_func(); below. */
13180 #include <assert.h>
13181 /* Override any gcc2 internal prototype to avoid an error. */
13182 /* We use char because int might match the return type of a gcc2
13183 builtin and then its argument prototype would still apply. */
13184 char $ac_func();
13185
13186 int main() {
13187
13188 /* The GNU C library defines this for functions which it implements
13189 to always fail with ENOSYS. Some functions are actually named
13190 something starting with __ and the normal name is an alias. */
13191 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13192 choke me
13193 #else
13194 $ac_func();
13195 #endif
13196
13197 ; return 0; }
13198 EOF
13199 if { (eval echo configure:13200: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13200 rm -rf conftest*
13201 eval "ac_cv_func_$ac_func=yes"
13202 else
13203 echo "configure: failed program was:" >&5
13204 cat conftest.$ac_ext >&5
13205 rm -rf conftest*
13206 eval "ac_cv_func_$ac_func=no"
13207 fi
13208 rm -f conftest*
13209 fi
13210
13211 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13212 echo "$ac_t""yes" 1>&6
13213 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13214 cat >> confdefs.h <<EOF
13215 #define $ac_tr_func 1
13216 EOF
13217
13218 else
13219 echo "$ac_t""no" 1>&6
13220 fi
13221 done
13222
13223
13224 for ac_func in putenv setenv
13225 do
13226 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13227 echo "configure:13228: checking for $ac_func" >&5
13228 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13229 echo $ac_n "(cached) $ac_c" 1>&6
13230 else
13231 cat > conftest.$ac_ext <<EOF
13232 #line 13233 "configure"
13233 #include "confdefs.h"
13234 /* System header to define __stub macros and hopefully few prototypes,
13235 which can conflict with char $ac_func(); below. */
13236 #include <assert.h>
13237 /* Override any gcc2 internal prototype to avoid an error. */
13238 /* We use char because int might match the return type of a gcc2
13239 builtin and then its argument prototype would still apply. */
13240 char $ac_func();
13241
13242 int main() {
13243
13244 /* The GNU C library defines this for functions which it implements
13245 to always fail with ENOSYS. Some functions are actually named
13246 something starting with __ and the normal name is an alias. */
13247 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13248 choke me
13249 #else
13250 $ac_func();
13251 #endif
13252
13253 ; return 0; }
13254 EOF
13255 if { (eval echo configure:13256: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13256 rm -rf conftest*
13257 eval "ac_cv_func_$ac_func=yes"
13258 else
13259 echo "configure: failed program was:" >&5
13260 cat conftest.$ac_ext >&5
13261 rm -rf conftest*
13262 eval "ac_cv_func_$ac_func=no"
13263 fi
13264 rm -f conftest*
13265 fi
13266
13267 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13268 echo "$ac_t""yes" 1>&6
13269 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13270 cat >> confdefs.h <<EOF
13271 #define $ac_tr_func 1
13272 EOF
13273 break
13274 else
13275 echo "$ac_t""no" 1>&6
13276 fi
13277 done
13278
13279
13280 HAVE_SOME_SLEEP_FUNC=0
13281 if test "$USE_BEOS" = 1; then
13282 cat >> confdefs.h <<\EOF
13283 #define HAVE_SLEEP 1
13284 EOF
13285
13286 HAVE_SOME_SLEEP_FUNC=1
13287 fi
13288
13289 if test "$USE_DARWIN" = 1; then
13290 cat >> confdefs.h <<\EOF
13291 #define HAVE_USLEEP 1
13292 EOF
13293
13294 HAVE_SOME_SLEEP_FUNC=1
13295 fi
13296
13297 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
13298 POSIX4_LINK=
13299 for ac_func in nanosleep
13300 do
13301 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13302 echo "configure:13303: checking for $ac_func" >&5
13303 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13304 echo $ac_n "(cached) $ac_c" 1>&6
13305 else
13306 cat > conftest.$ac_ext <<EOF
13307 #line 13308 "configure"
13308 #include "confdefs.h"
13309 /* System header to define __stub macros and hopefully few prototypes,
13310 which can conflict with char $ac_func(); below. */
13311 #include <assert.h>
13312 /* Override any gcc2 internal prototype to avoid an error. */
13313 /* We use char because int might match the return type of a gcc2
13314 builtin and then its argument prototype would still apply. */
13315 char $ac_func();
13316
13317 int main() {
13318
13319 /* The GNU C library defines this for functions which it implements
13320 to always fail with ENOSYS. Some functions are actually named
13321 something starting with __ and the normal name is an alias. */
13322 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13323 choke me
13324 #else
13325 $ac_func();
13326 #endif
13327
13328 ; return 0; }
13329 EOF
13330 if { (eval echo configure:13331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13331 rm -rf conftest*
13332 eval "ac_cv_func_$ac_func=yes"
13333 else
13334 echo "configure: failed program was:" >&5
13335 cat conftest.$ac_ext >&5
13336 rm -rf conftest*
13337 eval "ac_cv_func_$ac_func=no"
13338 fi
13339 rm -f conftest*
13340 fi
13341
13342 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13343 echo "$ac_t""yes" 1>&6
13344 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13345 cat >> confdefs.h <<EOF
13346 #define $ac_tr_func 1
13347 EOF
13348 cat >> confdefs.h <<\EOF
13349 #define HAVE_NANOSLEEP 1
13350 EOF
13351
13352 else
13353 echo "$ac_t""no" 1>&6
13354 echo $ac_n "checking for nanosleep in -lposix4""... $ac_c" 1>&6
13355 echo "configure:13356: checking for nanosleep in -lposix4" >&5
13356 ac_lib_var=`echo posix4'_'nanosleep | sed 'y%./+-%__p_%'`
13357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13358 echo $ac_n "(cached) $ac_c" 1>&6
13359 else
13360 ac_save_LIBS="$LIBS"
13361 LIBS="-lposix4 $LIBS"
13362 cat > conftest.$ac_ext <<EOF
13363 #line 13364 "configure"
13364 #include "confdefs.h"
13365 /* Override any gcc2 internal prototype to avoid an error. */
13366 /* We use char because int might match the return type of a gcc2
13367 builtin and then its argument prototype would still apply. */
13368 char nanosleep();
13369
13370 int main() {
13371 nanosleep()
13372 ; return 0; }
13373 EOF
13374 if { (eval echo configure:13375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13375 rm -rf conftest*
13376 eval "ac_cv_lib_$ac_lib_var=yes"
13377 else
13378 echo "configure: failed program was:" >&5
13379 cat conftest.$ac_ext >&5
13380 rm -rf conftest*
13381 eval "ac_cv_lib_$ac_lib_var=no"
13382 fi
13383 rm -f conftest*
13384 LIBS="$ac_save_LIBS"
13385
13386 fi
13387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13388 echo "$ac_t""yes" 1>&6
13389
13390 cat >> confdefs.h <<\EOF
13391 #define HAVE_NANOSLEEP 1
13392 EOF
13393
13394 POSIX4_LINK="-lposix4"
13395
13396 else
13397 echo "$ac_t""no" 1>&6
13398
13399 for ac_func in usleep
13400 do
13401 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13402 echo "configure:13403: checking for $ac_func" >&5
13403 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13404 echo $ac_n "(cached) $ac_c" 1>&6
13405 else
13406 cat > conftest.$ac_ext <<EOF
13407 #line 13408 "configure"
13408 #include "confdefs.h"
13409 /* System header to define __stub macros and hopefully few prototypes,
13410 which can conflict with char $ac_func(); below. */
13411 #include <assert.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 $ac_func();
13416
13417 int main() {
13418
13419 /* The GNU C library defines this for functions which it implements
13420 to always fail with ENOSYS. Some functions are actually named
13421 something starting with __ and the normal name is an alias. */
13422 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13423 choke me
13424 #else
13425 $ac_func();
13426 #endif
13427
13428 ; return 0; }
13429 EOF
13430 if { (eval echo configure:13431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13431 rm -rf conftest*
13432 eval "ac_cv_func_$ac_func=yes"
13433 else
13434 echo "configure: failed program was:" >&5
13435 cat conftest.$ac_ext >&5
13436 rm -rf conftest*
13437 eval "ac_cv_func_$ac_func=no"
13438 fi
13439 rm -f conftest*
13440 fi
13441
13442 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13443 echo "$ac_t""yes" 1>&6
13444 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13445 cat >> confdefs.h <<EOF
13446 #define $ac_tr_func 1
13447 EOF
13448 cat >> confdefs.h <<\EOF
13449 #define HAVE_USLEEP 1
13450 EOF
13451
13452 else
13453 echo "$ac_t""no" 1>&6
13454 echo "configure: warning: wxSleep() function will not work" 1>&2
13455
13456 fi
13457 done
13458
13459
13460
13461 fi
13462
13463
13464
13465 fi
13466 done
13467
13468 fi
13469
13470 for ac_func in uname gethostname
13471 do
13472 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13473 echo "configure:13474: checking for $ac_func" >&5
13474 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13475 echo $ac_n "(cached) $ac_c" 1>&6
13476 else
13477 cat > conftest.$ac_ext <<EOF
13478 #line 13479 "configure"
13479 #include "confdefs.h"
13480 /* System header to define __stub macros and hopefully few prototypes,
13481 which can conflict with char $ac_func(); below. */
13482 #include <assert.h>
13483 /* Override any gcc2 internal prototype to avoid an error. */
13484 /* We use char because int might match the return type of a gcc2
13485 builtin and then its argument prototype would still apply. */
13486 char $ac_func();
13487
13488 int main() {
13489
13490 /* The GNU C library defines this for functions which it implements
13491 to always fail with ENOSYS. Some functions are actually named
13492 something starting with __ and the normal name is an alias. */
13493 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13494 choke me
13495 #else
13496 $ac_func();
13497 #endif
13498
13499 ; return 0; }
13500 EOF
13501 if { (eval echo configure:13502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13502 rm -rf conftest*
13503 eval "ac_cv_func_$ac_func=yes"
13504 else
13505 echo "configure: failed program was:" >&5
13506 cat conftest.$ac_ext >&5
13507 rm -rf conftest*
13508 eval "ac_cv_func_$ac_func=no"
13509 fi
13510 rm -f conftest*
13511 fi
13512
13513 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13514 echo "$ac_t""yes" 1>&6
13515 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13516 cat >> confdefs.h <<EOF
13517 #define $ac_tr_func 1
13518 EOF
13519 break
13520 else
13521 echo "$ac_t""no" 1>&6
13522 fi
13523 done
13524
13525
13526
13527 ac_ext=C
13528 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13529 ac_cpp='$CXXCPP $CPPFLAGS'
13530 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13531 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13532 cross_compiling=$ac_cv_prog_cxx_cross
13533
13534
13535 for ac_func in strtok_r
13536 do
13537 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13538 echo "configure:13539: checking for $ac_func" >&5
13539 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13540 echo $ac_n "(cached) $ac_c" 1>&6
13541 else
13542 cat > conftest.$ac_ext <<EOF
13543 #line 13544 "configure"
13544 #include "confdefs.h"
13545 /* System header to define __stub macros and hopefully few prototypes,
13546 which can conflict with char $ac_func(); below. */
13547 #include <assert.h>
13548 /* Override any gcc2 internal prototype to avoid an error. */
13549 #ifdef __cplusplus
13550 extern "C"
13551 #endif
13552 /* We use char because int might match the return type of a gcc2
13553 builtin and then its argument prototype would still apply. */
13554 char $ac_func();
13555
13556 int main() {
13557
13558 /* The GNU C library defines this for functions which it implements
13559 to always fail with ENOSYS. Some functions are actually named
13560 something starting with __ and the normal name is an alias. */
13561 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13562 choke me
13563 #else
13564 $ac_func();
13565 #endif
13566
13567 ; return 0; }
13568 EOF
13569 if { (eval echo configure:13570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13570 rm -rf conftest*
13571 eval "ac_cv_func_$ac_func=yes"
13572 else
13573 echo "configure: failed program was:" >&5
13574 cat conftest.$ac_ext >&5
13575 rm -rf conftest*
13576 eval "ac_cv_func_$ac_func=no"
13577 fi
13578 rm -f conftest*
13579 fi
13580
13581 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13582 echo "$ac_t""yes" 1>&6
13583 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13584 cat >> confdefs.h <<EOF
13585 #define $ac_tr_func 1
13586 EOF
13587
13588 else
13589 echo "$ac_t""no" 1>&6
13590 fi
13591 done
13592
13593
13594 ac_ext=c
13595 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
13596 ac_cpp='$CPP $CPPFLAGS'
13597 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
13598 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
13599 cross_compiling=$ac_cv_prog_cc_cross
13600
13601
13602 INET_LINK=
13603 for ac_func in inet_addr
13604 do
13605 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13606 echo "configure:13607: checking for $ac_func" >&5
13607 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13608 echo $ac_n "(cached) $ac_c" 1>&6
13609 else
13610 cat > conftest.$ac_ext <<EOF
13611 #line 13612 "configure"
13612 #include "confdefs.h"
13613 /* System header to define __stub macros and hopefully few prototypes,
13614 which can conflict with char $ac_func(); below. */
13615 #include <assert.h>
13616 /* Override any gcc2 internal prototype to avoid an error. */
13617 /* We use char because int might match the return type of a gcc2
13618 builtin and then its argument prototype would still apply. */
13619 char $ac_func();
13620
13621 int main() {
13622
13623 /* The GNU C library defines this for functions which it implements
13624 to always fail with ENOSYS. Some functions are actually named
13625 something starting with __ and the normal name is an alias. */
13626 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13627 choke me
13628 #else
13629 $ac_func();
13630 #endif
13631
13632 ; return 0; }
13633 EOF
13634 if { (eval echo configure:13635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13635 rm -rf conftest*
13636 eval "ac_cv_func_$ac_func=yes"
13637 else
13638 echo "configure: failed program was:" >&5
13639 cat conftest.$ac_ext >&5
13640 rm -rf conftest*
13641 eval "ac_cv_func_$ac_func=no"
13642 fi
13643 rm -f conftest*
13644 fi
13645
13646 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13647 echo "$ac_t""yes" 1>&6
13648 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13649 cat >> confdefs.h <<EOF
13650 #define $ac_tr_func 1
13651 EOF
13652 cat >> confdefs.h <<\EOF
13653 #define HAVE_INET_ADDR 1
13654 EOF
13655
13656 else
13657 echo "$ac_t""no" 1>&6
13658 echo $ac_n "checking for inet_addr in -lnsl""... $ac_c" 1>&6
13659 echo "configure:13660: checking for inet_addr in -lnsl" >&5
13660 ac_lib_var=`echo nsl'_'inet_addr | sed 'y%./+-%__p_%'`
13661 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13662 echo $ac_n "(cached) $ac_c" 1>&6
13663 else
13664 ac_save_LIBS="$LIBS"
13665 LIBS="-lnsl $LIBS"
13666 cat > conftest.$ac_ext <<EOF
13667 #line 13668 "configure"
13668 #include "confdefs.h"
13669 /* Override any gcc2 internal prototype to avoid an error. */
13670 /* We use char because int might match the return type of a gcc2
13671 builtin and then its argument prototype would still apply. */
13672 char inet_addr();
13673
13674 int main() {
13675 inet_addr()
13676 ; return 0; }
13677 EOF
13678 if { (eval echo configure:13679: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13679 rm -rf conftest*
13680 eval "ac_cv_lib_$ac_lib_var=yes"
13681 else
13682 echo "configure: failed program was:" >&5
13683 cat conftest.$ac_ext >&5
13684 rm -rf conftest*
13685 eval "ac_cv_lib_$ac_lib_var=no"
13686 fi
13687 rm -f conftest*
13688 LIBS="$ac_save_LIBS"
13689
13690 fi
13691 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13692 echo "$ac_t""yes" 1>&6
13693 INET_LINK="nsl"
13694 else
13695 echo "$ac_t""no" 1>&6
13696 echo $ac_n "checking for inet_addr in -lresolv""... $ac_c" 1>&6
13697 echo "configure:13698: checking for inet_addr in -lresolv" >&5
13698 ac_lib_var=`echo resolv'_'inet_addr | sed 'y%./+-%__p_%'`
13699 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13700 echo $ac_n "(cached) $ac_c" 1>&6
13701 else
13702 ac_save_LIBS="$LIBS"
13703 LIBS="-lresolv $LIBS"
13704 cat > conftest.$ac_ext <<EOF
13705 #line 13706 "configure"
13706 #include "confdefs.h"
13707 /* Override any gcc2 internal prototype to avoid an error. */
13708 /* We use char because int might match the return type of a gcc2
13709 builtin and then its argument prototype would still apply. */
13710 char inet_addr();
13711
13712 int main() {
13713 inet_addr()
13714 ; return 0; }
13715 EOF
13716 if { (eval echo configure:13717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13717 rm -rf conftest*
13718 eval "ac_cv_lib_$ac_lib_var=yes"
13719 else
13720 echo "configure: failed program was:" >&5
13721 cat conftest.$ac_ext >&5
13722 rm -rf conftest*
13723 eval "ac_cv_lib_$ac_lib_var=no"
13724 fi
13725 rm -f conftest*
13726 LIBS="$ac_save_LIBS"
13727
13728 fi
13729 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13730 echo "$ac_t""yes" 1>&6
13731 INET_LINK="resolv"
13732
13733 else
13734 echo "$ac_t""no" 1>&6
13735 fi
13736
13737
13738 fi
13739
13740
13741
13742 fi
13743 done
13744
13745
13746 for ac_func in inet_aton
13747 do
13748 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
13749 echo "configure:13750: checking for $ac_func" >&5
13750 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
13751 echo $ac_n "(cached) $ac_c" 1>&6
13752 else
13753 cat > conftest.$ac_ext <<EOF
13754 #line 13755 "configure"
13755 #include "confdefs.h"
13756 /* System header to define __stub macros and hopefully few prototypes,
13757 which can conflict with char $ac_func(); below. */
13758 #include <assert.h>
13759 /* Override any gcc2 internal prototype to avoid an error. */
13760 /* We use char because int might match the return type of a gcc2
13761 builtin and then its argument prototype would still apply. */
13762 char $ac_func();
13763
13764 int main() {
13765
13766 /* The GNU C library defines this for functions which it implements
13767 to always fail with ENOSYS. Some functions are actually named
13768 something starting with __ and the normal name is an alias. */
13769 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13770 choke me
13771 #else
13772 $ac_func();
13773 #endif
13774
13775 ; return 0; }
13776 EOF
13777 if { (eval echo configure:13778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13778 rm -rf conftest*
13779 eval "ac_cv_func_$ac_func=yes"
13780 else
13781 echo "configure: failed program was:" >&5
13782 cat conftest.$ac_ext >&5
13783 rm -rf conftest*
13784 eval "ac_cv_func_$ac_func=no"
13785 fi
13786 rm -f conftest*
13787 fi
13788
13789 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
13790 echo "$ac_t""yes" 1>&6
13791 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
13792 cat >> confdefs.h <<EOF
13793 #define $ac_tr_func 1
13794 EOF
13795 cat >> confdefs.h <<\EOF
13796 #define HAVE_INET_ATON 1
13797 EOF
13798
13799 else
13800 echo "$ac_t""no" 1>&6
13801 echo $ac_n "checking for inet_aton in -l$INET_LINK""... $ac_c" 1>&6
13802 echo "configure:13803: checking for inet_aton in -l$INET_LINK" >&5
13803 ac_lib_var=`echo $INET_LINK'_'inet_aton | sed 'y%./+-%__p_%'`
13804 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13805 echo $ac_n "(cached) $ac_c" 1>&6
13806 else
13807 ac_save_LIBS="$LIBS"
13808 LIBS="-l$INET_LINK $LIBS"
13809 cat > conftest.$ac_ext <<EOF
13810 #line 13811 "configure"
13811 #include "confdefs.h"
13812 /* Override any gcc2 internal prototype to avoid an error. */
13813 /* We use char because int might match the return type of a gcc2
13814 builtin and then its argument prototype would still apply. */
13815 char inet_aton();
13816
13817 int main() {
13818 inet_aton()
13819 ; return 0; }
13820 EOF
13821 if { (eval echo configure:13822: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13822 rm -rf conftest*
13823 eval "ac_cv_lib_$ac_lib_var=yes"
13824 else
13825 echo "configure: failed program was:" >&5
13826 cat conftest.$ac_ext >&5
13827 rm -rf conftest*
13828 eval "ac_cv_lib_$ac_lib_var=no"
13829 fi
13830 rm -f conftest*
13831 LIBS="$ac_save_LIBS"
13832
13833 fi
13834 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13835 echo "$ac_t""yes" 1>&6
13836 cat >> confdefs.h <<\EOF
13837 #define HAVE_INET_ATON 1
13838 EOF
13839
13840 else
13841 echo "$ac_t""no" 1>&6
13842 fi
13843
13844
13845 fi
13846 done
13847
13848
13849 if test "x$INET_LINK" != "x"; then
13850 cat >> confdefs.h <<\EOF
13851 #define HAVE_INET_ADDR 1
13852 EOF
13853
13854 INET_LINK="-l$INET_LINK"
13855 fi
13856
13857 fi
13858
13859
13860 cat > confcache <<\EOF
13861 # This file is a shell script that caches the results of configure
13862 # tests run on this system so they can be shared between configure
13863 # scripts and configure runs. It is not useful on other systems.
13864 # If it contains results you don't want to keep, you may remove or edit it.
13865 #
13866 # By default, configure uses ./config.cache as the cache file,
13867 # creating it if it does not exist already. You can give configure
13868 # the --cache-file=FILE option to use a different cache file; that is
13869 # what configure does when it calls configure scripts in
13870 # subdirectories, so they share the cache.
13871 # Giving --cache-file=/dev/null disables caching, for debugging configure.
13872 # config.status only pays attention to the cache file if you give it the
13873 # --recheck option to rerun configure.
13874 #
13875 EOF
13876 # The following way of writing the cache mishandles newlines in values,
13877 # but we know of no workaround that is simple, portable, and efficient.
13878 # So, don't put newlines in cache variables' values.
13879 # Ultrix sh set writes to stderr and can't be redirected directly,
13880 # and sets the high bit in the cache file unless we assign to the vars.
13881 (set) 2>&1 |
13882 case `(ac_space=' '; set | grep ac_space) 2>&1` in
13883 *ac_space=\ *)
13884 # `set' does not quote correctly, so add quotes (double-quote substitution
13885 # turns \\\\ into \\, and sed turns \\ into \).
13886 sed -n \
13887 -e "s/'/'\\\\''/g" \
13888 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
13889 ;;
13890 *)
13891 # `set' quotes correctly as required by POSIX, so do not add quotes.
13892 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
13893 ;;
13894 esac >> confcache
13895 if cmp -s $cache_file confcache; then
13896 :
13897 else
13898 if test -w $cache_file; then
13899 echo "updating cache $cache_file"
13900 cat confcache > $cache_file
13901 else
13902 echo "not updating unwritable cache $cache_file"
13903 fi
13904 fi
13905 rm -f confcache
13906
13907
13908
13909 if test "$TOOLKIT" != "MSW"; then
13910
13911
13912 THREADS_LINK=""
13913 THREADS_OBJ=""
13914
13915 if test "$wxUSE_THREADS" = "yes" ; then
13916 if test "$wxUSE_WINE" = 1 ; then
13917 echo "configure: warning: Threads are not supported under WINE" 1>&2
13918 wxUSE_THREADS="no"
13919 elif test "$USE_BEOS" = 1; then
13920 echo "configure: warning: BeOS threads are not yet supported" 1>&2
13921 wxUSE_THREADS="no"
13922 fi
13923 fi
13924
13925 if test "$wxUSE_THREADS" = "yes" ; then
13926
13927 if test "$USE_AIX" = 1; then
13928 THREADS_LIB=pthreads
13929 else
13930 THREADS_LIB=pthread
13931 fi
13932
13933 echo $ac_n "checking for pthread_create in -l$THREADS_LIB""... $ac_c" 1>&6
13934 echo "configure:13935: checking for pthread_create in -l$THREADS_LIB" >&5
13935 ac_lib_var=`echo $THREADS_LIB'_'pthread_create | sed 'y%./+-%__p_%'`
13936 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13937 echo $ac_n "(cached) $ac_c" 1>&6
13938 else
13939 ac_save_LIBS="$LIBS"
13940 LIBS="-l$THREADS_LIB $LIBS"
13941 cat > conftest.$ac_ext <<EOF
13942 #line 13943 "configure"
13943 #include "confdefs.h"
13944 /* Override any gcc2 internal prototype to avoid an error. */
13945 /* We use char because int might match the return type of a gcc2
13946 builtin and then its argument prototype would still apply. */
13947 char pthread_create();
13948
13949 int main() {
13950 pthread_create()
13951 ; return 0; }
13952 EOF
13953 if { (eval echo configure:13954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13954 rm -rf conftest*
13955 eval "ac_cv_lib_$ac_lib_var=yes"
13956 else
13957 echo "configure: failed program was:" >&5
13958 cat conftest.$ac_ext >&5
13959 rm -rf conftest*
13960 eval "ac_cv_lib_$ac_lib_var=no"
13961 fi
13962 rm -f conftest*
13963 LIBS="$ac_save_LIBS"
13964
13965 fi
13966 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
13967 echo "$ac_t""yes" 1>&6
13968
13969 THREADS_OBJ="threadpsx.lo"
13970 THREADS_LINK=$THREADS_LIB
13971
13972 else
13973 echo "$ac_t""no" 1>&6
13974
13975 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
13976 echo "configure:13977: checking for pthread_create in -lc_r" >&5
13977 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
13978 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
13979 echo $ac_n "(cached) $ac_c" 1>&6
13980 else
13981 ac_save_LIBS="$LIBS"
13982 LIBS="-lc_r $LIBS"
13983 cat > conftest.$ac_ext <<EOF
13984 #line 13985 "configure"
13985 #include "confdefs.h"
13986 /* Override any gcc2 internal prototype to avoid an error. */
13987 /* We use char because int might match the return type of a gcc2
13988 builtin and then its argument prototype would still apply. */
13989 char pthread_create();
13990
13991 int main() {
13992 pthread_create()
13993 ; return 0; }
13994 EOF
13995 if { (eval echo configure:13996: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
13996 rm -rf conftest*
13997 eval "ac_cv_lib_$ac_lib_var=yes"
13998 else
13999 echo "configure: failed program was:" >&5
14000 cat conftest.$ac_ext >&5
14001 rm -rf conftest*
14002 eval "ac_cv_lib_$ac_lib_var=no"
14003 fi
14004 rm -f conftest*
14005 LIBS="$ac_save_LIBS"
14006
14007 fi
14008 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14009 echo "$ac_t""yes" 1>&6
14010
14011 THREADS_OBJ="threadpsx.lo"
14012 THREADS_LINK="c_r"
14013
14014 else
14015 echo "$ac_t""no" 1>&6
14016
14017 ac_safe=`echo "sys/prctl.h" | sed 'y%./+-%__p_%'`
14018 echo $ac_n "checking for sys/prctl.h""... $ac_c" 1>&6
14019 echo "configure:14020: checking for sys/prctl.h" >&5
14020 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14021 echo $ac_n "(cached) $ac_c" 1>&6
14022 else
14023 cat > conftest.$ac_ext <<EOF
14024 #line 14025 "configure"
14025 #include "confdefs.h"
14026 #include <sys/prctl.h>
14027 EOF
14028 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14029 { (eval echo configure:14030: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14030 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14031 if test -z "$ac_err"; then
14032 rm -rf conftest*
14033 eval "ac_cv_header_$ac_safe=yes"
14034 else
14035 echo "$ac_err" >&5
14036 echo "configure: failed program was:" >&5
14037 cat conftest.$ac_ext >&5
14038 rm -rf conftest*
14039 eval "ac_cv_header_$ac_safe=no"
14040 fi
14041 rm -f conftest*
14042 fi
14043 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14044 echo "$ac_t""yes" 1>&6
14045
14046 THREADS_OBJ="threadsgi.lo"
14047
14048 else
14049 echo "$ac_t""no" 1>&6
14050 fi
14051
14052
14053 fi
14054
14055
14056 fi
14057
14058
14059 if test -z "$THREADS_OBJ" ; then
14060 wxUSE_THREADS=no
14061 echo "configure: warning: No thread support on this system" 1>&2
14062 fi
14063 fi
14064
14065 if test "$wxUSE_THREADS" = "yes" ; then
14066 for ac_func in thr_setconcurrency
14067 do
14068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14069 echo "configure:14070: checking for $ac_func" >&5
14070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14071 echo $ac_n "(cached) $ac_c" 1>&6
14072 else
14073 cat > conftest.$ac_ext <<EOF
14074 #line 14075 "configure"
14075 #include "confdefs.h"
14076 /* System header to define __stub macros and hopefully few prototypes,
14077 which can conflict with char $ac_func(); below. */
14078 #include <assert.h>
14079 /* Override any gcc2 internal prototype to avoid an error. */
14080 /* We use char because int might match the return type of a gcc2
14081 builtin and then its argument prototype would still apply. */
14082 char $ac_func();
14083
14084 int main() {
14085
14086 /* The GNU C library defines this for functions which it implements
14087 to always fail with ENOSYS. Some functions are actually named
14088 something starting with __ and the normal name is an alias. */
14089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14090 choke me
14091 #else
14092 $ac_func();
14093 #endif
14094
14095 ; return 0; }
14096 EOF
14097 if { (eval echo configure:14098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14098 rm -rf conftest*
14099 eval "ac_cv_func_$ac_func=yes"
14100 else
14101 echo "configure: failed program was:" >&5
14102 cat conftest.$ac_ext >&5
14103 rm -rf conftest*
14104 eval "ac_cv_func_$ac_func=no"
14105 fi
14106 rm -f conftest*
14107 fi
14108
14109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14110 echo "$ac_t""yes" 1>&6
14111 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14112 cat >> confdefs.h <<EOF
14113 #define $ac_tr_func 1
14114 EOF
14115
14116 else
14117 echo "$ac_t""no" 1>&6
14118 fi
14119 done
14120
14121
14122
14123 for ac_hdr in sched.h
14124 do
14125 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
14126 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
14127 echo "configure:14128: checking for $ac_hdr" >&5
14128 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14129 echo $ac_n "(cached) $ac_c" 1>&6
14130 else
14131 cat > conftest.$ac_ext <<EOF
14132 #line 14133 "configure"
14133 #include "confdefs.h"
14134 #include <$ac_hdr>
14135 EOF
14136 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14137 { (eval echo configure:14138: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14138 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14139 if test -z "$ac_err"; then
14140 rm -rf conftest*
14141 eval "ac_cv_header_$ac_safe=yes"
14142 else
14143 echo "$ac_err" >&5
14144 echo "configure: failed program was:" >&5
14145 cat conftest.$ac_ext >&5
14146 rm -rf conftest*
14147 eval "ac_cv_header_$ac_safe=no"
14148 fi
14149 rm -f conftest*
14150 fi
14151 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14152 echo "$ac_t""yes" 1>&6
14153 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
14154 cat >> confdefs.h <<EOF
14155 #define $ac_tr_hdr 1
14156 EOF
14157
14158 else
14159 echo "$ac_t""no" 1>&6
14160 fi
14161 done
14162
14163
14164 echo $ac_n "checking for sched_yield in -l$THREADS_LINK""... $ac_c" 1>&6
14165 echo "configure:14166: checking for sched_yield in -l$THREADS_LINK" >&5
14166 ac_lib_var=`echo $THREADS_LINK'_'sched_yield | sed 'y%./+-%__p_%'`
14167 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14168 echo $ac_n "(cached) $ac_c" 1>&6
14169 else
14170 ac_save_LIBS="$LIBS"
14171 LIBS="-l$THREADS_LINK $LIBS"
14172 cat > conftest.$ac_ext <<EOF
14173 #line 14174 "configure"
14174 #include "confdefs.h"
14175 /* Override any gcc2 internal prototype to avoid an error. */
14176 /* We use char because int might match the return type of a gcc2
14177 builtin and then its argument prototype would still apply. */
14178 char sched_yield();
14179
14180 int main() {
14181 sched_yield()
14182 ; return 0; }
14183 EOF
14184 if { (eval echo configure:14185: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14185 rm -rf conftest*
14186 eval "ac_cv_lib_$ac_lib_var=yes"
14187 else
14188 echo "configure: failed program was:" >&5
14189 cat conftest.$ac_ext >&5
14190 rm -rf conftest*
14191 eval "ac_cv_lib_$ac_lib_var=no"
14192 fi
14193 rm -f conftest*
14194 LIBS="$ac_save_LIBS"
14195
14196 fi
14197 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14198 echo "$ac_t""yes" 1>&6
14199 cat >> confdefs.h <<\EOF
14200 #define HAVE_SCHED_YIELD 1
14201 EOF
14202
14203 else
14204 echo "$ac_t""no" 1>&6
14205 echo $ac_n "checking for sched_yield in -lposix4""... $ac_c" 1>&6
14206 echo "configure:14207: checking for sched_yield in -lposix4" >&5
14207 ac_lib_var=`echo posix4'_'sched_yield | sed 'y%./+-%__p_%'`
14208 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14209 echo $ac_n "(cached) $ac_c" 1>&6
14210 else
14211 ac_save_LIBS="$LIBS"
14212 LIBS="-lposix4 $LIBS"
14213 cat > conftest.$ac_ext <<EOF
14214 #line 14215 "configure"
14215 #include "confdefs.h"
14216 /* Override any gcc2 internal prototype to avoid an error. */
14217 /* We use char because int might match the return type of a gcc2
14218 builtin and then its argument prototype would still apply. */
14219 char sched_yield();
14220
14221 int main() {
14222 sched_yield()
14223 ; return 0; }
14224 EOF
14225 if { (eval echo configure:14226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14226 rm -rf conftest*
14227 eval "ac_cv_lib_$ac_lib_var=yes"
14228 else
14229 echo "configure: failed program was:" >&5
14230 cat conftest.$ac_ext >&5
14231 rm -rf conftest*
14232 eval "ac_cv_lib_$ac_lib_var=no"
14233 fi
14234 rm -f conftest*
14235 LIBS="$ac_save_LIBS"
14236
14237 fi
14238 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14239 echo "$ac_t""yes" 1>&6
14240 cat >> confdefs.h <<\EOF
14241 #define HAVE_SCHED_YIELD 1
14242 EOF
14243 POSIX4_LINK="-lposix4"
14244 else
14245 echo "$ac_t""no" 1>&6
14246 echo "configure: warning: wxThread::Yield will not work properly" 1>&2
14247
14248 fi
14249
14250
14251 fi
14252
14253
14254 HAVE_PRIOR_FUNCS=0
14255 echo $ac_n "checking for pthread_attr_getschedpolicy in -l$THREADS_LINK""... $ac_c" 1>&6
14256 echo "configure:14257: checking for pthread_attr_getschedpolicy in -l$THREADS_LINK" >&5
14257 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_getschedpolicy | sed 'y%./+-%__p_%'`
14258 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14259 echo $ac_n "(cached) $ac_c" 1>&6
14260 else
14261 ac_save_LIBS="$LIBS"
14262 LIBS="-l$THREADS_LINK $LIBS"
14263 cat > conftest.$ac_ext <<EOF
14264 #line 14265 "configure"
14265 #include "confdefs.h"
14266 /* Override any gcc2 internal prototype to avoid an error. */
14267 /* We use char because int might match the return type of a gcc2
14268 builtin and then its argument prototype would still apply. */
14269 char pthread_attr_getschedpolicy();
14270
14271 int main() {
14272 pthread_attr_getschedpolicy()
14273 ; return 0; }
14274 EOF
14275 if { (eval echo configure:14276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14276 rm -rf conftest*
14277 eval "ac_cv_lib_$ac_lib_var=yes"
14278 else
14279 echo "configure: failed program was:" >&5
14280 cat conftest.$ac_ext >&5
14281 rm -rf conftest*
14282 eval "ac_cv_lib_$ac_lib_var=no"
14283 fi
14284 rm -f conftest*
14285 LIBS="$ac_save_LIBS"
14286
14287 fi
14288 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14289 echo "$ac_t""yes" 1>&6
14290 echo $ac_n "checking for pthread_attr_setschedparam in -l$THREADS_LINK""... $ac_c" 1>&6
14291 echo "configure:14292: checking for pthread_attr_setschedparam in -l$THREADS_LINK" >&5
14292 ac_lib_var=`echo $THREADS_LINK'_'pthread_attr_setschedparam | sed 'y%./+-%__p_%'`
14293 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14294 echo $ac_n "(cached) $ac_c" 1>&6
14295 else
14296 ac_save_LIBS="$LIBS"
14297 LIBS="-l$THREADS_LINK $LIBS"
14298 cat > conftest.$ac_ext <<EOF
14299 #line 14300 "configure"
14300 #include "confdefs.h"
14301 /* Override any gcc2 internal prototype to avoid an error. */
14302 /* We use char because int might match the return type of a gcc2
14303 builtin and then its argument prototype would still apply. */
14304 char pthread_attr_setschedparam();
14305
14306 int main() {
14307 pthread_attr_setschedparam()
14308 ; return 0; }
14309 EOF
14310 if { (eval echo configure:14311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14311 rm -rf conftest*
14312 eval "ac_cv_lib_$ac_lib_var=yes"
14313 else
14314 echo "configure: failed program was:" >&5
14315 cat conftest.$ac_ext >&5
14316 rm -rf conftest*
14317 eval "ac_cv_lib_$ac_lib_var=no"
14318 fi
14319 rm -f conftest*
14320 LIBS="$ac_save_LIBS"
14321
14322 fi
14323 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14324 echo "$ac_t""yes" 1>&6
14325 echo $ac_n "checking for sched_get_priority_max in -l$THREADS_LINK""... $ac_c" 1>&6
14326 echo "configure:14327: checking for sched_get_priority_max in -l$THREADS_LINK" >&5
14327 ac_lib_var=`echo $THREADS_LINK'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14328 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14329 echo $ac_n "(cached) $ac_c" 1>&6
14330 else
14331 ac_save_LIBS="$LIBS"
14332 LIBS="-l$THREADS_LINK $LIBS"
14333 cat > conftest.$ac_ext <<EOF
14334 #line 14335 "configure"
14335 #include "confdefs.h"
14336 /* Override any gcc2 internal prototype to avoid an error. */
14337 /* We use char because int might match the return type of a gcc2
14338 builtin and then its argument prototype would still apply. */
14339 char sched_get_priority_max();
14340
14341 int main() {
14342 sched_get_priority_max()
14343 ; return 0; }
14344 EOF
14345 if { (eval echo configure:14346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14346 rm -rf conftest*
14347 eval "ac_cv_lib_$ac_lib_var=yes"
14348 else
14349 echo "configure: failed program was:" >&5
14350 cat conftest.$ac_ext >&5
14351 rm -rf conftest*
14352 eval "ac_cv_lib_$ac_lib_var=no"
14353 fi
14354 rm -f conftest*
14355 LIBS="$ac_save_LIBS"
14356
14357 fi
14358 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14359 echo "$ac_t""yes" 1>&6
14360 HAVE_PRIOR_FUNCS=1
14361 else
14362 echo "$ac_t""no" 1>&6
14363 echo $ac_n "checking for sched_get_priority_max in -lposix4""... $ac_c" 1>&6
14364 echo "configure:14365: checking for sched_get_priority_max in -lposix4" >&5
14365 ac_lib_var=`echo posix4'_'sched_get_priority_max | sed 'y%./+-%__p_%'`
14366 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14367 echo $ac_n "(cached) $ac_c" 1>&6
14368 else
14369 ac_save_LIBS="$LIBS"
14370 LIBS="-lposix4 $LIBS"
14371 cat > conftest.$ac_ext <<EOF
14372 #line 14373 "configure"
14373 #include "confdefs.h"
14374 /* Override any gcc2 internal prototype to avoid an error. */
14375 /* We use char because int might match the return type of a gcc2
14376 builtin and then its argument prototype would still apply. */
14377 char sched_get_priority_max();
14378
14379 int main() {
14380 sched_get_priority_max()
14381 ; return 0; }
14382 EOF
14383 if { (eval echo configure:14384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14384 rm -rf conftest*
14385 eval "ac_cv_lib_$ac_lib_var=yes"
14386 else
14387 echo "configure: failed program was:" >&5
14388 cat conftest.$ac_ext >&5
14389 rm -rf conftest*
14390 eval "ac_cv_lib_$ac_lib_var=no"
14391 fi
14392 rm -f conftest*
14393 LIBS="$ac_save_LIBS"
14394
14395 fi
14396 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14397 echo "$ac_t""yes" 1>&6
14398
14399 HAVE_PRIOR_FUNCS=1
14400 POSIX4_LINK="-lposix4"
14401
14402 else
14403 echo "$ac_t""no" 1>&6
14404 fi
14405
14406
14407 fi
14408
14409
14410 else
14411 echo "$ac_t""no" 1>&6
14412 fi
14413
14414
14415 else
14416 echo "$ac_t""no" 1>&6
14417 fi
14418
14419
14420 if test "$HAVE_PRIOR_FUNCS" = 1; then
14421 cat >> confdefs.h <<\EOF
14422 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
14423 EOF
14424
14425 else
14426 echo "configure: warning: Setting thread priority will not work" 1>&2
14427 fi
14428
14429 echo $ac_n "checking for pthread_cancel in -l$THREADS_LINK""... $ac_c" 1>&6
14430 echo "configure:14431: checking for pthread_cancel in -l$THREADS_LINK" >&5
14431 ac_lib_var=`echo $THREADS_LINK'_'pthread_cancel | sed 'y%./+-%__p_%'`
14432 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14433 echo $ac_n "(cached) $ac_c" 1>&6
14434 else
14435 ac_save_LIBS="$LIBS"
14436 LIBS="-l$THREADS_LINK $LIBS"
14437 cat > conftest.$ac_ext <<EOF
14438 #line 14439 "configure"
14439 #include "confdefs.h"
14440 /* Override any gcc2 internal prototype to avoid an error. */
14441 /* We use char because int might match the return type of a gcc2
14442 builtin and then its argument prototype would still apply. */
14443 char pthread_cancel();
14444
14445 int main() {
14446 pthread_cancel()
14447 ; return 0; }
14448 EOF
14449 if { (eval echo configure:14450: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14450 rm -rf conftest*
14451 eval "ac_cv_lib_$ac_lib_var=yes"
14452 else
14453 echo "configure: failed program was:" >&5
14454 cat conftest.$ac_ext >&5
14455 rm -rf conftest*
14456 eval "ac_cv_lib_$ac_lib_var=no"
14457 fi
14458 rm -f conftest*
14459 LIBS="$ac_save_LIBS"
14460
14461 fi
14462 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
14463 echo "$ac_t""yes" 1>&6
14464 cat >> confdefs.h <<\EOF
14465 #define HAVE_PTHREAD_CANCEL 1
14466 EOF
14467
14468 else
14469 echo "$ac_t""no" 1>&6
14470 echo "configure: warning: wxThread::Kill() will not work properly" 1>&2
14471 fi
14472
14473
14474 echo $ac_n "checking for pthread_cleanup_push/pop""... $ac_c" 1>&6
14475 echo "configure:14476: checking for pthread_cleanup_push/pop" >&5
14476 if eval "test \"`echo '$''{'wx_cv_func_pthread_cleanup_push'+set}'`\" = set"; then
14477 echo $ac_n "(cached) $ac_c" 1>&6
14478 else
14479
14480 cat > conftest.$ac_ext <<EOF
14481 #line 14482 "configure"
14482 #include "confdefs.h"
14483 #include <pthread.h>
14484 int main() {
14485
14486 pthread_cleanup_push(NULL, NULL);
14487 pthread_cleanup_pop(0);
14488
14489 ; return 0; }
14490 EOF
14491 if { (eval echo configure:14492: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14492 rm -rf conftest*
14493
14494 wx_cv_func_pthread_cleanup_push=yes
14495
14496 else
14497 echo "configure: failed program was:" >&5
14498 cat conftest.$ac_ext >&5
14499 rm -rf conftest*
14500
14501 wx_cv_func_pthread_cleanup_push=no
14502
14503 fi
14504 rm -f conftest*
14505
14506 fi
14507
14508 echo "$ac_t""$wx_cv_func_pthread_cleanup_push" 1>&6
14509
14510 if test "$wx_cv_func_pthread_cleanup_push" = "yes"; then
14511 cat >> confdefs.h <<\EOF
14512 #define HAVE_THREAD_CLEANUP_FUNCTIONS 1
14513 EOF
14514
14515 fi
14516
14517
14518 echo $ac_n "checking for pthread_mutexattr_t""... $ac_c" 1>&6
14519 echo "configure:14520: checking for pthread_mutexattr_t" >&5
14520 if eval "test \"`echo '$''{'wx_cv_type_pthread_mutexattr_t'+set}'`\" = set"; then
14521 echo $ac_n "(cached) $ac_c" 1>&6
14522 else
14523
14524 cat > conftest.$ac_ext <<EOF
14525 #line 14526 "configure"
14526 #include "confdefs.h"
14527 #include <pthread.h>
14528 int main() {
14529
14530 pthread_mutexattr_t attr;
14531 pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
14532
14533 ; return 0; }
14534 EOF
14535 if { (eval echo configure:14536: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14536 rm -rf conftest*
14537
14538 wx_cv_type_pthread_mutexattr_t=yes
14539
14540 else
14541 echo "configure: failed program was:" >&5
14542 cat conftest.$ac_ext >&5
14543 rm -rf conftest*
14544
14545 wx_cv_type_pthread_mutexattr_t=no
14546
14547
14548 fi
14549 rm -f conftest*
14550
14551 fi
14552
14553 echo "$ac_t""$wx_cv_type_pthread_mutexattr_t" 1>&6
14554
14555 if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
14556 cat >> confdefs.h <<\EOF
14557 #define HAVE_PTHREAD_MUTEXATTR_T 1
14558 EOF
14559
14560 else
14561 echo $ac_n "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER""... $ac_c" 1>&6
14562 echo "configure:14563: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
14563 if eval "test \"`echo '$''{'wx_cv_type_pthread_rec_mutex_init'+set}'`\" = set"; then
14564 echo $ac_n "(cached) $ac_c" 1>&6
14565 else
14566
14567 cat > conftest.$ac_ext <<EOF
14568 #line 14569 "configure"
14569 #include "confdefs.h"
14570 #include <pthread.h>
14571 int main() {
14572
14573 pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
14574
14575 ; return 0; }
14576 EOF
14577 if { (eval echo configure:14578: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
14578 rm -rf conftest*
14579
14580 wx_cv_type_pthread_rec_mutex_init=yes
14581
14582 else
14583 echo "configure: failed program was:" >&5
14584 cat conftest.$ac_ext >&5
14585 rm -rf conftest*
14586
14587 wx_cv_type_pthread_rec_mutex_init=no
14588
14589
14590 fi
14591 rm -f conftest*
14592
14593 fi
14594
14595 echo "$ac_t""$wx_cv_type_pthread_rec_mutex_init" 1>&6
14596 if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
14597 cat >> confdefs.h <<\EOF
14598 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
14599 EOF
14600
14601 else
14602 echo "configure: warning: wxMutex won't be recursive on this platform" 1>&2
14603 fi
14604 fi
14605
14606 THREADS_LINK="-l$THREADS_LINK"
14607
14608 if test "$USE_SOLARIS" = "yes" -a "$GCC" != "yes"; then
14609 CFLAGS="${CFLAGS} -mt"
14610 CXXFLAGS="${CXXFLAGS} -mt"
14611 LDFLAGS="${LDFLAGS} -mt"
14612 fi
14613 fi
14614
14615 fi
14616
14617 if test "$wxUSE_THREADS" = "yes"; then
14618 cat >> confdefs.h <<\EOF
14619 #define wxUSE_THREADS 1
14620 EOF
14621
14622
14623 if test "$wxUSE_DARWIN" = "0"; then
14624 CFLAGS="${CFLAGS} -D_REENTRANT"
14625 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14626 fi
14627
14628 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
14629 else
14630 if test "$ac_cv_func_strtok_r" = "yes"; then
14631 echo $ac_n "checking if -D_REENTRANT is needed""... $ac_c" 1>&6
14632 echo "configure:14633: checking if -D_REENTRANT is needed" >&5
14633 if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
14634 CFLAGS="${CFLAGS} -D_REENTRANT"
14635 CXXFLAGS="${CXXFLAGS} -D_REENTRANT"
14636 echo "$ac_t""yes" 1>&6
14637 else
14638 echo "$ac_t""no" 1>&6
14639 fi
14640 fi
14641 fi
14642
14643 if test "$WXGTK20" = 1 ; then
14644 cat >> confdefs.h <<EOF
14645 #define __WXGTK20__ $WXGTK20
14646 EOF
14647
14648 WXGTK12=1
14649 fi
14650
14651 if test "$WXGTK12" = 1 ; then
14652 cat >> confdefs.h <<EOF
14653 #define __WXGTK12__ $WXGTK12
14654 EOF
14655
14656 fi
14657
14658 if test "$WXGTK127" = 1 ; then
14659 cat >> confdefs.h <<EOF
14660 #define __WXGTK127__ $WXGTK127
14661 EOF
14662
14663 fi
14664
14665 if test "$WXWINE" = 1 ; then
14666 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WXWINE__"
14667 fi
14668
14669 if test "$wxUSE_MAC" = 1 ; then
14670 TOOLKIT_DEF="${TOOLKIT_DEF} -DTARGET_CARBON"
14671 CFLAGS="${CFLAGS} -fpascal-strings"
14672 CPPFLAGS="${CPPFLAGS} -cpp-precomp -fpascal-strings"
14673 # Extract the first word of "Rez", so it can be a program name with args.
14674 set dummy Rez; ac_word=$2
14675 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14676 echo "configure:14677: checking for $ac_word" >&5
14677 if eval "test \"`echo '$''{'ac_cv_prog_REZ'+set}'`\" = set"; then
14678 echo $ac_n "(cached) $ac_c" 1>&6
14679 else
14680 if test -n "$REZ"; then
14681 ac_cv_prog_REZ="$REZ" # Let the user override the test.
14682 else
14683 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14684 ac_dummy="$PATH"
14685 for ac_dir in $ac_dummy; do
14686 test -z "$ac_dir" && ac_dir=.
14687 if test -f $ac_dir/$ac_word; then
14688 ac_cv_prog_REZ="Rez"
14689 break
14690 fi
14691 done
14692 IFS="$ac_save_ifs"
14693 test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
14694 fi
14695 fi
14696 REZ="$ac_cv_prog_REZ"
14697 if test -n "$REZ"; then
14698 echo "$ac_t""$REZ" 1>&6
14699 else
14700 echo "$ac_t""no" 1>&6
14701 fi
14702
14703 # Extract the first word of "Derez", so it can be a program name with args.
14704 set dummy Derez; ac_word=$2
14705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
14706 echo "configure:14707: checking for $ac_word" >&5
14707 if eval "test \"`echo '$''{'ac_cv_prog_DEREZ'+set}'`\" = set"; then
14708 echo $ac_n "(cached) $ac_c" 1>&6
14709 else
14710 if test -n "$DEREZ"; then
14711 ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
14712 else
14713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
14714 ac_dummy="$PATH"
14715 for ac_dir in $ac_dummy; do
14716 test -z "$ac_dir" && ac_dir=.
14717 if test -f $ac_dir/$ac_word; then
14718 ac_cv_prog_DEREZ="Derez"
14719 break
14720 fi
14721 done
14722 IFS="$ac_save_ifs"
14723 test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/Derez"
14724 fi
14725 fi
14726 DEREZ="$ac_cv_prog_DEREZ"
14727 if test -n "$DEREZ"; then
14728 echo "$ac_t""$DEREZ" 1>&6
14729 else
14730 echo "$ac_t""no" 1>&6
14731 fi
14732
14733 RESCOMP=${REZ}
14734 REZFLAGS="-d __UNIX__ -useDF"
14735 DEREZFLAGS="Carbon.r -useDF"
14736 RESFLAGS="Carbon.r -t APPL"
14737 LIBWXMACRES="\$(LIBWX_MACRES)"
14738 LIBWXMACRESCOMP="\$(LIBWX_MACRESCOMP)"
14739 fi
14740
14741 if test "$wxUSE_CYGWIN" = 1 ; then
14742 TOOLKIT_DEF="${TOOLKIT_DEF} -D__WIN95__"
14743 fi
14744
14745 WXDEBUG=
14746
14747 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
14748 WXDEBUG="-g"
14749 wxUSE_OPTIMISE=no
14750 fi
14751
14752 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
14753 wxUSE_DEBUG_INFO=yes
14754 WXDEBUG="-ggdb"
14755 fi
14756
14757 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
14758 cat >> confdefs.h <<\EOF
14759 #define WXDEBUG 1
14760 EOF
14761
14762 WXDEBUG_DEFINE="-D__WXDEBUG__"
14763 else
14764 if test "$wxUSE_GTK" = 1 ; then
14765 WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
14766 fi
14767 fi
14768
14769 if test "$wxUSE_MEM_TRACING" = "yes" ; then
14770 cat >> confdefs.h <<\EOF
14771 #define wxUSE_MEMORY_TRACING 1
14772 EOF
14773
14774 cat >> confdefs.h <<\EOF
14775 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
14776 EOF
14777
14778 cat >> confdefs.h <<\EOF
14779 #define wxUSE_DEBUG_NEW_ALWAYS 1
14780 EOF
14781
14782 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
14783 fi
14784
14785 if test "$wxUSE_DMALLOC" = "yes" ; then
14786 DMALLOC_LINK="-ldmalloc"
14787 fi
14788
14789 PROFILE=
14790 if test "$wxUSE_PROFILE" = "yes" ; then
14791 PROFILE="-pg"
14792 fi
14793
14794 DEP_INFO_FLAGS=
14795 CODE_GEN_FLAGS=
14796 CODE_GEN_FLAGS_CXX=
14797 if test "$GCC" = yes ; then
14798 if test "$wxUSE_NO_RTTI" = "yes" ; then
14799 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-rtti"
14800 fi
14801 if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
14802 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS -fno-exceptions"
14803 fi
14804 if test "$wxUSE_PERMISSIVE" = "yes" ; then
14805 CODE_GEN_FLAGS="$CODE_GEN_FLAGS -fpermissive"
14806 fi
14807 if test "$wxUSE_NO_DEPS" = "no" ; then
14808 DEP_INFO_FLAGS="-MMD"
14809 fi
14810 fi
14811
14812
14813 CXXFLAGS=`echo "${CXXFLAGS}" | sed "s/\-O.//g" `
14814 CFLAGS=`echo "${CFLAGS}" | sed "s/\-O.//g" `
14815 if test "$wxUSE_OPTIMISE" = "no" ; then
14816 OPTIMISE=
14817 else
14818 if test "$GCC" = yes ; then
14819 OPTIMISE="-O2"
14820 case "${host}" in
14821 i586-*-*|i686-*-* )
14822 OPTIMISE="${OPTIMISE} "
14823 ;;
14824 esac
14825 else
14826 OPTIMISE="-O"
14827 fi
14828 fi
14829
14830 if test "$WXWIN_COMPATIBILITY_2" = "yes"; then
14831 cat >> confdefs.h <<\EOF
14832 #define WXWIN_COMPATIBILITY_2 1
14833 EOF
14834
14835
14836 WXWIN_COMPATIBILITY_2_2="yes"
14837 fi
14838
14839 if test "$WXWIN_COMPATIBILITY_2_2" = "yes"; then
14840 cat >> confdefs.h <<\EOF
14841 #define WXWIN_COMPATIBILITY_2_2 1
14842 EOF
14843
14844 fi
14845
14846
14847 REGEX_INCLUDE=
14848 if test "$wxUSE_REGEX" != "no"; then
14849 ac_safe=`echo "regex.h" | sed 'y%./+-%__p_%'`
14850 echo $ac_n "checking for regex.h""... $ac_c" 1>&6
14851 echo "configure:14852: checking for regex.h" >&5
14852 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14853 echo $ac_n "(cached) $ac_c" 1>&6
14854 else
14855 cat > conftest.$ac_ext <<EOF
14856 #line 14857 "configure"
14857 #include "confdefs.h"
14858 #include <regex.h>
14859 EOF
14860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14861 { (eval echo configure:14862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14863 if test -z "$ac_err"; then
14864 rm -rf conftest*
14865 eval "ac_cv_header_$ac_safe=yes"
14866 else
14867 echo "$ac_err" >&5
14868 echo "configure: failed program was:" >&5
14869 cat conftest.$ac_ext >&5
14870 rm -rf conftest*
14871 eval "ac_cv_header_$ac_safe=no"
14872 fi
14873 rm -f conftest*
14874 fi
14875 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14876 echo "$ac_t""yes" 1>&6
14877 for ac_func in regcomp
14878 do
14879 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
14880 echo "configure:14881: checking for $ac_func" >&5
14881 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
14882 echo $ac_n "(cached) $ac_c" 1>&6
14883 else
14884 cat > conftest.$ac_ext <<EOF
14885 #line 14886 "configure"
14886 #include "confdefs.h"
14887 /* System header to define __stub macros and hopefully few prototypes,
14888 which can conflict with char $ac_func(); below. */
14889 #include <assert.h>
14890 /* Override any gcc2 internal prototype to avoid an error. */
14891 /* We use char because int might match the return type of a gcc2
14892 builtin and then its argument prototype would still apply. */
14893 char $ac_func();
14894
14895 int main() {
14896
14897 /* The GNU C library defines this for functions which it implements
14898 to always fail with ENOSYS. Some functions are actually named
14899 something starting with __ and the normal name is an alias. */
14900 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
14901 choke me
14902 #else
14903 $ac_func();
14904 #endif
14905
14906 ; return 0; }
14907 EOF
14908 if { (eval echo configure:14909: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
14909 rm -rf conftest*
14910 eval "ac_cv_func_$ac_func=yes"
14911 else
14912 echo "configure: failed program was:" >&5
14913 cat conftest.$ac_ext >&5
14914 rm -rf conftest*
14915 eval "ac_cv_func_$ac_func=no"
14916 fi
14917 rm -f conftest*
14918 fi
14919
14920 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
14921 echo "$ac_t""yes" 1>&6
14922 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
14923 cat >> confdefs.h <<EOF
14924 #define $ac_tr_func 1
14925 EOF
14926
14927 else
14928 echo "$ac_t""no" 1>&6
14929 fi
14930 done
14931
14932 else
14933 echo "$ac_t""no" 1>&6
14934 fi
14935
14936
14937 if test "x$ac_cv_func_regcomp" != "xyes"; then
14938 if test "$wxUSE_REGEX" = "sys"; then
14939 { echo "configure: error: system regex library not found! Use --with-regex to use the built-in regex library." 1>&2; exit 1; }
14940 fi
14941
14942 REGEX_INCLUDE="-I\${top_srcdir}/src/regex"
14943 fi
14944
14945 cat >> confdefs.h <<\EOF
14946 #define wxUSE_REGEX 1
14947 EOF
14948
14949 fi
14950
14951 ZLIB_INCLUDE=
14952 if test "$wxUSE_ZLIB" = "yes" -o "$wxUSE_ZLIB" = "sys" ; then
14953 cat >> confdefs.h <<\EOF
14954 #define wxUSE_ZLIB 1
14955 EOF
14956
14957 if test "$wxUSE_ZLIB" = "yes" ; then
14958 ZLIB_INCLUDE="-I\${top_srcdir}/src/zlib"
14959 else
14960 ZLIB_LINK=
14961 ac_safe=`echo "zlib.h" | sed 'y%./+-%__p_%'`
14962 echo $ac_n "checking for zlib.h""... $ac_c" 1>&6
14963 echo "configure:14964: checking for zlib.h" >&5
14964 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
14965 echo $ac_n "(cached) $ac_c" 1>&6
14966 else
14967 cat > conftest.$ac_ext <<EOF
14968 #line 14969 "configure"
14969 #include "confdefs.h"
14970 #include <zlib.h>
14971 EOF
14972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
14973 { (eval echo configure:14974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
14974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
14975 if test -z "$ac_err"; then
14976 rm -rf conftest*
14977 eval "ac_cv_header_$ac_safe=yes"
14978 else
14979 echo "$ac_err" >&5
14980 echo "configure: failed program was:" >&5
14981 cat conftest.$ac_ext >&5
14982 rm -rf conftest*
14983 eval "ac_cv_header_$ac_safe=no"
14984 fi
14985 rm -f conftest*
14986 fi
14987 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14988 echo "$ac_t""yes" 1>&6
14989 echo $ac_n "checking for deflate in -lz""... $ac_c" 1>&6
14990 echo "configure:14991: checking for deflate in -lz" >&5
14991 ac_lib_var=`echo z'_'deflate | sed 'y%./+-%__p_%'`
14992 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
14993 echo $ac_n "(cached) $ac_c" 1>&6
14994 else
14995 ac_save_LIBS="$LIBS"
14996 LIBS="-lz $LIBS"
14997 cat > conftest.$ac_ext <<EOF
14998 #line 14999 "configure"
14999 #include "confdefs.h"
15000 /* Override any gcc2 internal prototype to avoid an error. */
15001 /* We use char because int might match the return type of a gcc2
15002 builtin and then its argument prototype would still apply. */
15003 char deflate();
15004
15005 int main() {
15006 deflate()
15007 ; return 0; }
15008 EOF
15009 if { (eval echo configure:15010: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15010 rm -rf conftest*
15011 eval "ac_cv_lib_$ac_lib_var=yes"
15012 else
15013 echo "configure: failed program was:" >&5
15014 cat conftest.$ac_ext >&5
15015 rm -rf conftest*
15016 eval "ac_cv_lib_$ac_lib_var=no"
15017 fi
15018 rm -f conftest*
15019 LIBS="$ac_save_LIBS"
15020
15021 fi
15022 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15023 echo "$ac_t""yes" 1>&6
15024 ZLIB_LINK="-lz"
15025 else
15026 echo "$ac_t""no" 1>&6
15027 fi
15028
15029 else
15030 echo "$ac_t""no" 1>&6
15031 fi
15032
15033 if test "x$ZLIB_LINK" = "x" ; then
15034 { echo "configure: error: system zlib compression library not found! Use --with-zlib=yes to use built-in zlib" 1>&2; exit 1; }
15035 fi
15036 fi
15037 fi
15038
15039 PNG_INCLUDE=
15040 if test "$wxUSE_LIBPNG" = "yes" -o "$wxUSE_LIBPNG" = "sys" ; then
15041 cat >> confdefs.h <<\EOF
15042 #define wxUSE_LIBPNG 1
15043 EOF
15044
15045 if test "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
15046 echo "configure: warning: --with-libpng=sys doesn't work without --with-zlib=sys, will compile the built-in libpng instead" 1>&2
15047 wxUSE_LIBPNG=yes
15048 fi
15049
15050 if test "$wxUSE_LIBPNG" = "yes" ; then
15051 PNG_INCLUDE="-I\${top_srcdir}/src/png"
15052 else
15053 PNG_LINK=
15054 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
15055 echo $ac_n "checking for png.h""... $ac_c" 1>&6
15056 echo "configure:15057: checking for png.h" >&5
15057 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15058 echo $ac_n "(cached) $ac_c" 1>&6
15059 else
15060 cat > conftest.$ac_ext <<EOF
15061 #line 15062 "configure"
15062 #include "confdefs.h"
15063 #include <png.h>
15064 EOF
15065 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15066 { (eval echo configure:15067: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15067 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15068 if test -z "$ac_err"; then
15069 rm -rf conftest*
15070 eval "ac_cv_header_$ac_safe=yes"
15071 else
15072 echo "$ac_err" >&5
15073 echo "configure: failed program was:" >&5
15074 cat conftest.$ac_ext >&5
15075 rm -rf conftest*
15076 eval "ac_cv_header_$ac_safe=no"
15077 fi
15078 rm -f conftest*
15079 fi
15080 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15081 echo "$ac_t""yes" 1>&6
15082 echo $ac_n "checking for png_check_sig in -lpng""... $ac_c" 1>&6
15083 echo "configure:15084: checking for png_check_sig in -lpng" >&5
15084 ac_lib_var=`echo png'_'png_check_sig | sed 'y%./+-%__p_%'`
15085 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15086 echo $ac_n "(cached) $ac_c" 1>&6
15087 else
15088 ac_save_LIBS="$LIBS"
15089 LIBS="-lpng -lz -lm $LIBS"
15090 cat > conftest.$ac_ext <<EOF
15091 #line 15092 "configure"
15092 #include "confdefs.h"
15093 /* Override any gcc2 internal prototype to avoid an error. */
15094 /* We use char because int might match the return type of a gcc2
15095 builtin and then its argument prototype would still apply. */
15096 char png_check_sig();
15097
15098 int main() {
15099 png_check_sig()
15100 ; return 0; }
15101 EOF
15102 if { (eval echo configure:15103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15103 rm -rf conftest*
15104 eval "ac_cv_lib_$ac_lib_var=yes"
15105 else
15106 echo "configure: failed program was:" >&5
15107 cat conftest.$ac_ext >&5
15108 rm -rf conftest*
15109 eval "ac_cv_lib_$ac_lib_var=no"
15110 fi
15111 rm -f conftest*
15112 LIBS="$ac_save_LIBS"
15113
15114 fi
15115 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15116 echo "$ac_t""yes" 1>&6
15117 PNG_LINK="-lpng"
15118 else
15119 echo "$ac_t""no" 1>&6
15120 fi
15121
15122
15123 else
15124 echo "$ac_t""no" 1>&6
15125 fi
15126
15127 if test "x$PNG_LINK" = "x" ; then
15128 { echo "configure: error: system png library not found! Use --with-libpng=yes to use the built-in libpng" 1>&2; exit 1; }
15129 fi
15130 fi
15131
15132 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
15133 fi
15134
15135 JPEG_INCLUDE=
15136 if test "$wxUSE_LIBJPEG" = "yes" -o "$wxUSE_LIBJPEG" = "sys" ; then
15137 cat >> confdefs.h <<\EOF
15138 #define wxUSE_LIBJPEG 1
15139 EOF
15140
15141 if test "$wxUSE_LIBJPEG" = "yes" ; then
15142 JPEG_INCLUDE="-I\${top_srcdir}/src/jpeg"
15143 else
15144 JPEG_LINK=
15145 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
15146 echo "configure:15147: checking for jpeglib.h" >&5
15147 if eval "test \"`echo '$''{'ac_cv_header_jpeglib_h'+set}'`\" = set"; then
15148 echo $ac_n "(cached) $ac_c" 1>&6
15149 else
15150 cat > conftest.$ac_ext <<EOF
15151 #line 15152 "configure"
15152 #include "confdefs.h"
15153
15154 #undef HAVE_STDLIB_H
15155 #include <stdio.h>
15156 #include <jpeglib.h>
15157
15158 int main() {
15159
15160
15161 ; return 0; }
15162 EOF
15163 if { (eval echo configure:15164: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15164 rm -rf conftest*
15165 ac_cv_header_jpeglib_h=yes
15166 else
15167 echo "configure: failed program was:" >&5
15168 cat conftest.$ac_ext >&5
15169 rm -rf conftest*
15170 ac_cv_header_jpeglib_h=no
15171
15172 fi
15173 rm -f conftest*
15174
15175 fi
15176
15177 echo "$ac_t""$ac_cv_header_jpeglib_h" 1>&6
15178
15179 if test "$ac_cv_header_jpeglib_h" = "yes"; then
15180 echo $ac_n "checking for jpeg_read_header in -ljpeg""... $ac_c" 1>&6
15181 echo "configure:15182: checking for jpeg_read_header in -ljpeg" >&5
15182 ac_lib_var=`echo jpeg'_'jpeg_read_header | sed 'y%./+-%__p_%'`
15183 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15184 echo $ac_n "(cached) $ac_c" 1>&6
15185 else
15186 ac_save_LIBS="$LIBS"
15187 LIBS="-ljpeg $LIBS"
15188 cat > conftest.$ac_ext <<EOF
15189 #line 15190 "configure"
15190 #include "confdefs.h"
15191 /* Override any gcc2 internal prototype to avoid an error. */
15192 /* We use char because int might match the return type of a gcc2
15193 builtin and then its argument prototype would still apply. */
15194 char jpeg_read_header();
15195
15196 int main() {
15197 jpeg_read_header()
15198 ; return 0; }
15199 EOF
15200 if { (eval echo configure:15201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15201 rm -rf conftest*
15202 eval "ac_cv_lib_$ac_lib_var=yes"
15203 else
15204 echo "configure: failed program was:" >&5
15205 cat conftest.$ac_ext >&5
15206 rm -rf conftest*
15207 eval "ac_cv_lib_$ac_lib_var=no"
15208 fi
15209 rm -f conftest*
15210 LIBS="$ac_save_LIBS"
15211
15212 fi
15213 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15214 echo "$ac_t""yes" 1>&6
15215 JPEG_LINK="-ljpeg"
15216 else
15217 echo "$ac_t""no" 1>&6
15218 fi
15219
15220 fi
15221
15222 if test "x$JPEG_LINK" = "x" ; then
15223 { echo "configure: error: system jpeg library not found! Use --with-libjpeg=yes to use the built-in one" 1>&2; exit 1; }
15224 fi
15225 fi
15226 fi
15227
15228 TIFF_INCLUDE=
15229 if test "$wxUSE_LIBTIFF" = "yes" -o "$wxUSE_LIBTIFF" = "sys" ; then
15230 cat >> confdefs.h <<\EOF
15231 #define wxUSE_LIBTIFF 1
15232 EOF
15233
15234 if test "$wxUSE_LIBTIFF" = "yes" ; then
15235 TIFF_INCLUDE="-I\${top_srcdir}/src/tiff"
15236 else
15237 TIFF_LINK=
15238 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
15239 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
15240 echo "configure:15241: checking for tiffio.h" >&5
15241 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15242 echo $ac_n "(cached) $ac_c" 1>&6
15243 else
15244 cat > conftest.$ac_ext <<EOF
15245 #line 15246 "configure"
15246 #include "confdefs.h"
15247 #include <tiffio.h>
15248 EOF
15249 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15250 { (eval echo configure:15251: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15251 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15252 if test -z "$ac_err"; then
15253 rm -rf conftest*
15254 eval "ac_cv_header_$ac_safe=yes"
15255 else
15256 echo "$ac_err" >&5
15257 echo "configure: failed program was:" >&5
15258 cat conftest.$ac_ext >&5
15259 rm -rf conftest*
15260 eval "ac_cv_header_$ac_safe=no"
15261 fi
15262 rm -f conftest*
15263 fi
15264 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15265 echo "$ac_t""yes" 1>&6
15266 echo $ac_n "checking for TIFFError in -ltiff""... $ac_c" 1>&6
15267 echo "configure:15268: checking for TIFFError in -ltiff" >&5
15268 ac_lib_var=`echo tiff'_'TIFFError | sed 'y%./+-%__p_%'`
15269 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15270 echo $ac_n "(cached) $ac_c" 1>&6
15271 else
15272 ac_save_LIBS="$LIBS"
15273 LIBS="-ltiff -lm $LIBS"
15274 cat > conftest.$ac_ext <<EOF
15275 #line 15276 "configure"
15276 #include "confdefs.h"
15277 /* Override any gcc2 internal prototype to avoid an error. */
15278 /* We use char because int might match the return type of a gcc2
15279 builtin and then its argument prototype would still apply. */
15280 char TIFFError();
15281
15282 int main() {
15283 TIFFError()
15284 ; return 0; }
15285 EOF
15286 if { (eval echo configure:15287: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15287 rm -rf conftest*
15288 eval "ac_cv_lib_$ac_lib_var=yes"
15289 else
15290 echo "configure: failed program was:" >&5
15291 cat conftest.$ac_ext >&5
15292 rm -rf conftest*
15293 eval "ac_cv_lib_$ac_lib_var=no"
15294 fi
15295 rm -f conftest*
15296 LIBS="$ac_save_LIBS"
15297
15298 fi
15299 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15300 echo "$ac_t""yes" 1>&6
15301 TIFF_LINK="-ltiff"
15302 else
15303 echo "$ac_t""no" 1>&6
15304 fi
15305
15306 else
15307 echo "$ac_t""no" 1>&6
15308 fi
15309
15310 if test "x$TIFF_LINK" = "x" ; then
15311 { echo "configure: error: system tiff library not found! Use --with-libtiff=yes to use the built-in one" 1>&2; exit 1; }
15312 fi
15313 fi
15314 fi
15315
15316 FREETYPE_INCLUDE=
15317 if test "$wxUSE_FREETYPE" = "yes" -o "$wxUSE_FREETYPE" = "sys" ; then
15318 cat >> confdefs.h <<\EOF
15319 #define wxUSE_FREETYPE 1
15320 EOF
15321
15322 if test "$wxUSE_FREETYPE" = "yes" ; then
15323 FREETYPE_INCLUDE="-I\${top_srcdir}/src/freetype"
15324 else
15325 FREETYPE_LINK=
15326 ac_safe=`echo "freetype.h" | sed 'y%./+-%__p_%'`
15327 echo $ac_n "checking for freetype.h""... $ac_c" 1>&6
15328 echo "configure:15329: checking for freetype.h" >&5
15329 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15330 echo $ac_n "(cached) $ac_c" 1>&6
15331 else
15332 cat > conftest.$ac_ext <<EOF
15333 #line 15334 "configure"
15334 #include "confdefs.h"
15335 #include <freetype.h>
15336 EOF
15337 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15338 { (eval echo configure:15339: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15339 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15340 if test -z "$ac_err"; then
15341 rm -rf conftest*
15342 eval "ac_cv_header_$ac_safe=yes"
15343 else
15344 echo "$ac_err" >&5
15345 echo "configure: failed program was:" >&5
15346 cat conftest.$ac_ext >&5
15347 rm -rf conftest*
15348 eval "ac_cv_header_$ac_safe=no"
15349 fi
15350 rm -f conftest*
15351 fi
15352 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15353 echo "$ac_t""yes" 1>&6
15354 echo $ac_n "checking for FT_Render_Glyph in -lfreetype""... $ac_c" 1>&6
15355 echo "configure:15356: checking for FT_Render_Glyph in -lfreetype" >&5
15356 ac_lib_var=`echo freetype'_'FT_Render_Glyph | sed 'y%./+-%__p_%'`
15357 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15358 echo $ac_n "(cached) $ac_c" 1>&6
15359 else
15360 ac_save_LIBS="$LIBS"
15361 LIBS="-lfreetype -lm $LIBS"
15362 cat > conftest.$ac_ext <<EOF
15363 #line 15364 "configure"
15364 #include "confdefs.h"
15365 /* Override any gcc2 internal prototype to avoid an error. */
15366 /* We use char because int might match the return type of a gcc2
15367 builtin and then its argument prototype would still apply. */
15368 char FT_Render_Glyph();
15369
15370 int main() {
15371 FT_Render_Glyph()
15372 ; return 0; }
15373 EOF
15374 if { (eval echo configure:15375: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15375 rm -rf conftest*
15376 eval "ac_cv_lib_$ac_lib_var=yes"
15377 else
15378 echo "configure: failed program was:" >&5
15379 cat conftest.$ac_ext >&5
15380 rm -rf conftest*
15381 eval "ac_cv_lib_$ac_lib_var=no"
15382 fi
15383 rm -f conftest*
15384 LIBS="$ac_save_LIBS"
15385
15386 fi
15387 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15388 echo "$ac_t""yes" 1>&6
15389 FREETYPE_LINK="-lfreetype"
15390 else
15391 echo "$ac_t""no" 1>&6
15392 fi
15393
15394
15395 else
15396 echo "$ac_t""no" 1>&6
15397 fi
15398
15399 if test "x$FREETYPE_LINK" = "x" ; then
15400 { echo "configure: error: system freetype library not found! Use --with-freetype=yes to use the built-in freetype" 1>&2; exit 1; }
15401 fi
15402 fi
15403 fi
15404
15405 if test "$wxUSE_OPENGL" = "yes"; then
15406 ac_safe=`echo "GL/gl.h" | sed 'y%./+-%__p_%'`
15407 echo $ac_n "checking for GL/gl.h""... $ac_c" 1>&6
15408 echo "configure:15409: checking for GL/gl.h" >&5
15409 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
15410 echo $ac_n "(cached) $ac_c" 1>&6
15411 else
15412 cat > conftest.$ac_ext <<EOF
15413 #line 15414 "configure"
15414 #include "confdefs.h"
15415 #include <GL/gl.h>
15416 EOF
15417 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
15418 { (eval echo configure:15419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
15419 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
15420 if test -z "$ac_err"; then
15421 rm -rf conftest*
15422 eval "ac_cv_header_$ac_safe=yes"
15423 else
15424 echo "$ac_err" >&5
15425 echo "configure: failed program was:" >&5
15426 cat conftest.$ac_ext >&5
15427 rm -rf conftest*
15428 eval "ac_cv_header_$ac_safe=no"
15429 fi
15430 rm -f conftest*
15431 fi
15432 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
15433 echo "$ac_t""yes" 1>&6
15434
15435 cat >> confdefs.h <<\EOF
15436 #define wxUSE_OPENGL 1
15437 EOF
15438
15439 cat >> confdefs.h <<\EOF
15440 #define wxUSE_GLCANVAS 1
15441 EOF
15442
15443 echo $ac_n "checking for glFlush in -lGL""... $ac_c" 1>&6
15444 echo "configure:15445: checking for glFlush in -lGL" >&5
15445 ac_lib_var=`echo GL'_'glFlush | sed 'y%./+-%__p_%'`
15446 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15447 echo $ac_n "(cached) $ac_c" 1>&6
15448 else
15449 ac_save_LIBS="$LIBS"
15450 LIBS="-lGL $LIBS"
15451 cat > conftest.$ac_ext <<EOF
15452 #line 15453 "configure"
15453 #include "confdefs.h"
15454 /* Override any gcc2 internal prototype to avoid an error. */
15455 /* We use char because int might match the return type of a gcc2
15456 builtin and then its argument prototype would still apply. */
15457 char glFlush();
15458
15459 int main() {
15460 glFlush()
15461 ; return 0; }
15462 EOF
15463 if { (eval echo configure:15464: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15464 rm -rf conftest*
15465 eval "ac_cv_lib_$ac_lib_var=yes"
15466 else
15467 echo "configure: failed program was:" >&5
15468 cat conftest.$ac_ext >&5
15469 rm -rf conftest*
15470 eval "ac_cv_lib_$ac_lib_var=no"
15471 fi
15472 rm -f conftest*
15473 LIBS="$ac_save_LIBS"
15474
15475 fi
15476 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15477 echo "$ac_t""yes" 1>&6
15478
15479 OPENGL_LINK="-lGL -lGLU"
15480
15481 else
15482 echo "$ac_t""no" 1>&6
15483
15484 echo $ac_n "checking for glFlush in -lMesaGL""... $ac_c" 1>&6
15485 echo "configure:15486: checking for glFlush in -lMesaGL" >&5
15486 ac_lib_var=`echo MesaGL'_'glFlush | sed 'y%./+-%__p_%'`
15487 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
15488 echo $ac_n "(cached) $ac_c" 1>&6
15489 else
15490 ac_save_LIBS="$LIBS"
15491 LIBS="-lMesaGL $LIBS"
15492 cat > conftest.$ac_ext <<EOF
15493 #line 15494 "configure"
15494 #include "confdefs.h"
15495 /* Override any gcc2 internal prototype to avoid an error. */
15496 /* We use char because int might match the return type of a gcc2
15497 builtin and then its argument prototype would still apply. */
15498 char glFlush();
15499
15500 int main() {
15501 glFlush()
15502 ; return 0; }
15503 EOF
15504 if { (eval echo configure:15505: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15505 rm -rf conftest*
15506 eval "ac_cv_lib_$ac_lib_var=yes"
15507 else
15508 echo "configure: failed program was:" >&5
15509 cat conftest.$ac_ext >&5
15510 rm -rf conftest*
15511 eval "ac_cv_lib_$ac_lib_var=no"
15512 fi
15513 rm -f conftest*
15514 LIBS="$ac_save_LIBS"
15515
15516 fi
15517 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
15518 echo "$ac_t""yes" 1>&6
15519
15520 OPENGL_LINK="-lMesaGL -lMesaGLU"
15521
15522 else
15523 echo "$ac_t""no" 1>&6
15524 fi
15525
15526
15527 fi
15528
15529
15530 else
15531 echo "$ac_t""no" 1>&6
15532 wxUSE_OPENGL=0
15533 fi
15534
15535 fi
15536
15537
15538 if test "$wxUSE_GUI" = "yes"; then
15539 cat >> confdefs.h <<\EOF
15540 #define wxUSE_GUI 1
15541 EOF
15542
15543
15544 else
15545 cat >> confdefs.h <<\EOF
15546 #define wxUSE_NOGUI 1
15547 EOF
15548
15549 fi
15550
15551
15552 if test "$wxUSE_UNIX" = "yes"; then
15553 cat >> confdefs.h <<\EOF
15554 #define wxUSE_UNIX 1
15555 EOF
15556
15557 fi
15558
15559
15560 if test "$wxUSE_APPLE_IEEE" = "yes"; then
15561 cat >> confdefs.h <<\EOF
15562 #define wxUSE_APPLE_IEEE 1
15563 EOF
15564
15565 fi
15566
15567 if test "$wxUSE_TIMER" = "yes"; then
15568 cat >> confdefs.h <<\EOF
15569 #define wxUSE_TIMER 1
15570 EOF
15571
15572 fi
15573
15574 if test "$wxUSE_WAVE" = "yes"; then
15575 cat >> confdefs.h <<\EOF
15576 #define wxUSE_WAVE 1
15577 EOF
15578
15579 fi
15580
15581 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
15582 cat >> confdefs.h <<\EOF
15583 #define wxUSE_CMDLINE_PARSER 1
15584 EOF
15585
15586 fi
15587
15588 if test "$wxUSE_STOPWATCH" = "yes"; then
15589 cat >> confdefs.h <<\EOF
15590 #define wxUSE_STOPWATCH 1
15591 EOF
15592
15593 fi
15594
15595 if test "$wxUSE_DATETIME" = "yes"; then
15596 cat >> confdefs.h <<\EOF
15597 #define wxUSE_DATETIME 1
15598 EOF
15599
15600 fi
15601
15602 if test "$wxUSE_TIMEDATE" = "yes"; then
15603 cat >> confdefs.h <<\EOF
15604 #define wxUSE_TIMEDATE 1
15605 EOF
15606
15607 fi
15608
15609 if test "$wxUSE_FILE" = "yes"; then
15610 cat >> confdefs.h <<\EOF
15611 #define wxUSE_FILE 1
15612 EOF
15613
15614 fi
15615
15616 if test "$wxUSE_FFILE" = "yes"; then
15617 cat >> confdefs.h <<\EOF
15618 #define wxUSE_FFILE 1
15619 EOF
15620
15621 fi
15622
15623 if test "$wxUSE_FILESYSTEM" = "yes"; then
15624 cat >> confdefs.h <<\EOF
15625 #define wxUSE_FILESYSTEM 1
15626 EOF
15627
15628 fi
15629
15630 if test "$wxUSE_FS_INET" = "yes"; then
15631 cat >> confdefs.h <<\EOF
15632 #define wxUSE_FS_INET 1
15633 EOF
15634
15635 fi
15636
15637 if test "$wxUSE_FS_ZIP" = "yes"; then
15638 cat >> confdefs.h <<\EOF
15639 #define wxUSE_FS_ZIP 1
15640 EOF
15641
15642 fi
15643
15644 if test "$wxUSE_ZIPSTREAM" = "yes"; then
15645 cat >> confdefs.h <<\EOF
15646 #define wxUSE_ZIPSTREAM 1
15647 EOF
15648
15649 fi
15650
15651 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
15652 cat >> confdefs.h <<\EOF
15653 #define wxUSE_ON_FATAL_EXCEPTION 1
15654 EOF
15655
15656 fi
15657
15658 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
15659 cat >> confdefs.h <<\EOF
15660 #define wxUSE_SNGLINST_CHECKER 1
15661 EOF
15662
15663 fi
15664
15665 if test "$wxUSE_BUSYINFO" = "yes"; then
15666 cat >> confdefs.h <<\EOF
15667 #define wxUSE_BUSYINFO 1
15668 EOF
15669
15670 fi
15671
15672 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
15673 cat >> confdefs.h <<\EOF
15674 #define wxUSE_STD_IOSTREAM 1
15675 EOF
15676
15677 fi
15678
15679 if test "$wxUSE_TEXTFILE" = "yes"; then
15680 if test "$wxUSE_FILE" != "yes"; then
15681 echo "configure: warning: wxTextFile requires wxFile and it won't be compiled without it" 1>&2
15682 else
15683 cat >> confdefs.h <<\EOF
15684 #define wxUSE_TEXTFILE 1
15685 EOF
15686
15687 fi
15688 fi
15689
15690 if test "$wxUSE_CONFIG" = "yes" ; then
15691 if test "$wxUSE_TEXTFILE" != "yes"; then
15692 echo "configure: warning: wxConfig requires wxTextFile and it won't be compiled without it" 1>&2
15693 else
15694 cat >> confdefs.h <<\EOF
15695 #define wxUSE_CONFIG 1
15696 EOF
15697
15698 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
15699 fi
15700 fi
15701
15702 if test "$wxUSE_INTL" = "yes" ; then
15703 if test "$wxUSE_FILE" != "yes"; then
15704 echo "configure: warning: I18n code requires wxFile and it won't be compiled without it" 1>&2
15705 else
15706 cat >> confdefs.h <<\EOF
15707 #define wxUSE_INTL 1
15708 EOF
15709
15710 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
15711 GUIDIST="$GUIDIST INTL_DIST"
15712 fi
15713 fi
15714
15715 if test "$wxUSE_LOG" = "yes"; then
15716 cat >> confdefs.h <<\EOF
15717 #define wxUSE_LOG 1
15718 EOF
15719
15720
15721 if test "$wxUSE_LOGGUI" = "yes"; then
15722 cat >> confdefs.h <<\EOF
15723 #define wxUSE_LOGGUI 1
15724 EOF
15725
15726 fi
15727
15728 if test "$wxUSE_LOGWINDOW" = "yes"; then
15729 cat >> confdefs.h <<\EOF
15730 #define wxUSE_LOGWINDOW 1
15731 EOF
15732
15733 fi
15734 fi
15735
15736 if test "$wxUSE_LONGLONG" = "yes"; then
15737 cat >> confdefs.h <<\EOF
15738 #define wxUSE_LONGLONG 1
15739 EOF
15740
15741 fi
15742
15743 if test "$wxUSE_GEOMETRY" = "yes"; then
15744 cat >> confdefs.h <<\EOF
15745 #define wxUSE_GEOMETRY 1
15746 EOF
15747
15748 fi
15749
15750 if test "$wxUSE_DIALUP_MANAGER" = "yes" ; then
15751 cat >> confdefs.h <<\EOF
15752 #define wxUSE_DIALUP_MANAGER 1
15753 EOF
15754
15755 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
15756 fi
15757
15758 if test "$wxUSE_STREAMS" = "yes" ; then
15759 cat >> confdefs.h <<\EOF
15760 #define wxUSE_STREAMS 1
15761 EOF
15762
15763 fi
15764
15765
15766 if test "$wxUSE_DATETIME" = "yes"; then
15767 for ac_func in strptime
15768 do
15769 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15770 echo "configure:15771: checking for $ac_func" >&5
15771 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15772 echo $ac_n "(cached) $ac_c" 1>&6
15773 else
15774 cat > conftest.$ac_ext <<EOF
15775 #line 15776 "configure"
15776 #include "confdefs.h"
15777 /* System header to define __stub macros and hopefully few prototypes,
15778 which can conflict with char $ac_func(); below. */
15779 #include <assert.h>
15780 /* Override any gcc2 internal prototype to avoid an error. */
15781 /* We use char because int might match the return type of a gcc2
15782 builtin and then its argument prototype would still apply. */
15783 char $ac_func();
15784
15785 int main() {
15786
15787 /* The GNU C library defines this for functions which it implements
15788 to always fail with ENOSYS. Some functions are actually named
15789 something starting with __ and the normal name is an alias. */
15790 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15791 choke me
15792 #else
15793 $ac_func();
15794 #endif
15795
15796 ; return 0; }
15797 EOF
15798 if { (eval echo configure:15799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15799 rm -rf conftest*
15800 eval "ac_cv_func_$ac_func=yes"
15801 else
15802 echo "configure: failed program was:" >&5
15803 cat conftest.$ac_ext >&5
15804 rm -rf conftest*
15805 eval "ac_cv_func_$ac_func=no"
15806 fi
15807 rm -f conftest*
15808 fi
15809
15810 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15811 echo "$ac_t""yes" 1>&6
15812 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15813 cat >> confdefs.h <<EOF
15814 #define $ac_tr_func 1
15815 EOF
15816
15817 else
15818 echo "$ac_t""no" 1>&6
15819 fi
15820 done
15821
15822
15823 echo $ac_n "checking for timezone variable in <time.h>""... $ac_c" 1>&6
15824 echo "configure:15825: checking for timezone variable in <time.h>" >&5
15825 if eval "test \"`echo '$''{'wx_cv_var_timezone'+set}'`\" = set"; then
15826 echo $ac_n "(cached) $ac_c" 1>&6
15827 else
15828
15829 cat > conftest.$ac_ext <<EOF
15830 #line 15831 "configure"
15831 #include "confdefs.h"
15832
15833 #include <time.h>
15834
15835 int main() {
15836
15837 int tz;
15838 tz = timezone;
15839
15840 ; return 0; }
15841 EOF
15842 if { (eval echo configure:15843: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15843 rm -rf conftest*
15844
15845 wx_cv_var_timezone=timezone
15846
15847 else
15848 echo "configure: failed program was:" >&5
15849 cat conftest.$ac_ext >&5
15850 rm -rf conftest*
15851
15852 cat > conftest.$ac_ext <<EOF
15853 #line 15854 "configure"
15854 #include "confdefs.h"
15855
15856 #include <time.h>
15857
15858 int main() {
15859
15860 int tz;
15861 tz = _timezone;
15862
15863 ; return 0; }
15864 EOF
15865 if { (eval echo configure:15866: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15866 rm -rf conftest*
15867
15868 wx_cv_var_timezone=_timezone
15869
15870 else
15871 echo "configure: failed program was:" >&5
15872 cat conftest.$ac_ext >&5
15873 rm -rf conftest*
15874
15875 cat > conftest.$ac_ext <<EOF
15876 #line 15877 "configure"
15877 #include "confdefs.h"
15878
15879 #include <time.h>
15880
15881 int main() {
15882
15883 int tz;
15884 tz = __timezone;
15885
15886 ; return 0; }
15887 EOF
15888 if { (eval echo configure:15889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15889 rm -rf conftest*
15890
15891 wx_cv_var_timezone=__timezone
15892
15893 else
15894 echo "configure: failed program was:" >&5
15895 cat conftest.$ac_ext >&5
15896 rm -rf conftest*
15897 { echo "configure: error: no timezone variable" 1>&2; exit 1; }
15898
15899 fi
15900 rm -f conftest*
15901
15902
15903 fi
15904 rm -f conftest*
15905
15906
15907 fi
15908 rm -f conftest*
15909
15910
15911 fi
15912
15913 echo "$ac_t""$wx_cv_var_timezone" 1>&6
15914
15915 cat >> confdefs.h <<EOF
15916 #define WX_TIMEZONE $wx_cv_var_timezone
15917 EOF
15918
15919
15920 for ac_func in localtime
15921 do
15922 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
15923 echo "configure:15924: checking for $ac_func" >&5
15924 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
15925 echo $ac_n "(cached) $ac_c" 1>&6
15926 else
15927 cat > conftest.$ac_ext <<EOF
15928 #line 15929 "configure"
15929 #include "confdefs.h"
15930 /* System header to define __stub macros and hopefully few prototypes,
15931 which can conflict with char $ac_func(); below. */
15932 #include <assert.h>
15933 /* Override any gcc2 internal prototype to avoid an error. */
15934 /* We use char because int might match the return type of a gcc2
15935 builtin and then its argument prototype would still apply. */
15936 char $ac_func();
15937
15938 int main() {
15939
15940 /* The GNU C library defines this for functions which it implements
15941 to always fail with ENOSYS. Some functions are actually named
15942 something starting with __ and the normal name is an alias. */
15943 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15944 choke me
15945 #else
15946 $ac_func();
15947 #endif
15948
15949 ; return 0; }
15950 EOF
15951 if { (eval echo configure:15952: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
15952 rm -rf conftest*
15953 eval "ac_cv_func_$ac_func=yes"
15954 else
15955 echo "configure: failed program was:" >&5
15956 cat conftest.$ac_ext >&5
15957 rm -rf conftest*
15958 eval "ac_cv_func_$ac_func=no"
15959 fi
15960 rm -f conftest*
15961 fi
15962
15963 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
15964 echo "$ac_t""yes" 1>&6
15965 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
15966 cat >> confdefs.h <<EOF
15967 #define $ac_tr_func 1
15968 EOF
15969
15970 else
15971 echo "$ac_t""no" 1>&6
15972 fi
15973 done
15974
15975
15976 if test "$ac_cv_func_localtime" = "yes"; then
15977 echo $ac_n "checking for tm_gmtoff in struct tm""... $ac_c" 1>&6
15978 echo "configure:15979: checking for tm_gmtoff in struct tm" >&5
15979 if eval "test \"`echo '$''{'wx_cv_struct_tm_has_gmtoff'+set}'`\" = set"; then
15980 echo $ac_n "(cached) $ac_c" 1>&6
15981 else
15982
15983 cat > conftest.$ac_ext <<EOF
15984 #line 15985 "configure"
15985 #include "confdefs.h"
15986
15987 #include <time.h>
15988
15989 int main() {
15990
15991 struct tm tm;
15992 tm.tm_gmtoff++;
15993
15994 ; return 0; }
15995 EOF
15996 if { (eval echo configure:15997: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
15997 rm -rf conftest*
15998
15999 wx_cv_struct_tm_has_gmtoff=yes
16000
16001 else
16002 echo "configure: failed program was:" >&5
16003 cat conftest.$ac_ext >&5
16004 rm -rf conftest*
16005 wx_cv_struct_tm_has_gmtoff=no
16006
16007 fi
16008 rm -f conftest*
16009
16010 fi
16011
16012 echo "$ac_t""$wx_cv_struct_tm_has_gmtoff" 1>&6
16013 fi
16014
16015 if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
16016 cat >> confdefs.h <<\EOF
16017 #define WX_GMTOFF_IN_TM 1
16018 EOF
16019
16020 fi
16021
16022 for ac_func in gettimeofday ftime
16023 do
16024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16025 echo "configure:16026: checking for $ac_func" >&5
16026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16027 echo $ac_n "(cached) $ac_c" 1>&6
16028 else
16029 cat > conftest.$ac_ext <<EOF
16030 #line 16031 "configure"
16031 #include "confdefs.h"
16032 /* System header to define __stub macros and hopefully few prototypes,
16033 which can conflict with char $ac_func(); below. */
16034 #include <assert.h>
16035 /* Override any gcc2 internal prototype to avoid an error. */
16036 /* We use char because int might match the return type of a gcc2
16037 builtin and then its argument prototype would still apply. */
16038 char $ac_func();
16039
16040 int main() {
16041
16042 /* The GNU C library defines this for functions which it implements
16043 to always fail with ENOSYS. Some functions are actually named
16044 something starting with __ and the normal name is an alias. */
16045 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16046 choke me
16047 #else
16048 $ac_func();
16049 #endif
16050
16051 ; return 0; }
16052 EOF
16053 if { (eval echo configure:16054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16054 rm -rf conftest*
16055 eval "ac_cv_func_$ac_func=yes"
16056 else
16057 echo "configure: failed program was:" >&5
16058 cat conftest.$ac_ext >&5
16059 rm -rf conftest*
16060 eval "ac_cv_func_$ac_func=no"
16061 fi
16062 rm -f conftest*
16063 fi
16064
16065 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16066 echo "$ac_t""yes" 1>&6
16067 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16068 cat >> confdefs.h <<EOF
16069 #define $ac_tr_func 1
16070 EOF
16071 break
16072 else
16073 echo "$ac_t""no" 1>&6
16074 fi
16075 done
16076
16077
16078 if test "$ac_cv_func_gettimeofday" = "yes"; then
16079 echo $ac_n "checking whether gettimeofday takes two arguments""... $ac_c" 1>&6
16080 echo "configure:16081: checking whether gettimeofday takes two arguments" >&5
16081 if eval "test \"`echo '$''{'wx_cv_func_gettimeofday_has_2_args'+set}'`\" = set"; then
16082 echo $ac_n "(cached) $ac_c" 1>&6
16083 else
16084
16085
16086 ac_ext=C
16087 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16088 ac_cpp='$CXXCPP $CPPFLAGS'
16089 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16090 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16091 cross_compiling=$ac_cv_prog_cxx_cross
16092
16093
16094 cat > conftest.$ac_ext <<EOF
16095 #line 16096 "configure"
16096 #include "confdefs.h"
16097
16098 #include <sys/time.h>
16099 #include <unistd.h>
16100
16101 int main() {
16102
16103 struct timeval tv;
16104 struct timezone tz;
16105 gettimeofday(&tv, &tz);
16106
16107 ; return 0; }
16108 EOF
16109 if { (eval echo configure:16110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16110 rm -rf conftest*
16111 wx_cv_func_gettimeofday_has_2_args=yes
16112 else
16113 echo "configure: failed program was:" >&5
16114 cat conftest.$ac_ext >&5
16115 rm -rf conftest*
16116 cat > conftest.$ac_ext <<EOF
16117 #line 16118 "configure"
16118 #include "confdefs.h"
16119
16120 #include <sys/time.h>
16121 #include <unistd.h>
16122
16123 int main() {
16124
16125 struct timeval tv;
16126 gettimeofday(&tv);
16127
16128 ; return 0; }
16129 EOF
16130 if { (eval echo configure:16131: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16131 rm -rf conftest*
16132 wx_cv_func_gettimeofday_has_2_args=no
16133 else
16134 echo "configure: failed program was:" >&5
16135 cat conftest.$ac_ext >&5
16136 rm -rf conftest*
16137 wx_cv_func_gettimeofday_has_2_args=unknown
16138
16139 fi
16140 rm -f conftest*
16141
16142 fi
16143 rm -f conftest*
16144 ac_ext=c
16145 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16146 ac_cpp='$CPP $CPPFLAGS'
16147 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16148 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16149 cross_compiling=$ac_cv_prog_cc_cross
16150
16151
16152 fi
16153
16154 echo "$ac_t""$wx_cv_func_gettimeofday_has_2_args" 1>&6
16155
16156 if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
16157 cat >> confdefs.h <<\EOF
16158 #define WX_GETTIMEOFDAY_NO_TZ 1
16159 EOF
16160
16161 fi
16162 fi
16163
16164 cat >> confdefs.h <<\EOF
16165 #define wxUSE_TIMEDATE 1
16166 EOF
16167
16168 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
16169 fi
16170
16171
16172 if test "$TOOLKIT" != "MSW"; then
16173
16174 if test "$wxUSE_SOCKETS" = "yes"; then
16175 echo $ac_n "checking for socket""... $ac_c" 1>&6
16176 echo "configure:16177: checking for socket" >&5
16177 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
16178 echo $ac_n "(cached) $ac_c" 1>&6
16179 else
16180 cat > conftest.$ac_ext <<EOF
16181 #line 16182 "configure"
16182 #include "confdefs.h"
16183 /* System header to define __stub macros and hopefully few prototypes,
16184 which can conflict with char socket(); below. */
16185 #include <assert.h>
16186 /* Override any gcc2 internal prototype to avoid an error. */
16187 /* We use char because int might match the return type of a gcc2
16188 builtin and then its argument prototype would still apply. */
16189 char socket();
16190
16191 int main() {
16192
16193 /* The GNU C library defines this for functions which it implements
16194 to always fail with ENOSYS. Some functions are actually named
16195 something starting with __ and the normal name is an alias. */
16196 #if defined (__stub_socket) || defined (__stub___socket)
16197 choke me
16198 #else
16199 socket();
16200 #endif
16201
16202 ; return 0; }
16203 EOF
16204 if { (eval echo configure:16205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16205 rm -rf conftest*
16206 eval "ac_cv_func_socket=yes"
16207 else
16208 echo "configure: failed program was:" >&5
16209 cat conftest.$ac_ext >&5
16210 rm -rf conftest*
16211 eval "ac_cv_func_socket=no"
16212 fi
16213 rm -f conftest*
16214 fi
16215
16216 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
16217 echo "$ac_t""yes" 1>&6
16218 :
16219 else
16220 echo "$ac_t""no" 1>&6
16221 echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
16222 echo "configure:16223: checking for socket in -lsocket" >&5
16223 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
16224 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16225 echo $ac_n "(cached) $ac_c" 1>&6
16226 else
16227 ac_save_LIBS="$LIBS"
16228 LIBS="-lsocket $LIBS"
16229 cat > conftest.$ac_ext <<EOF
16230 #line 16231 "configure"
16231 #include "confdefs.h"
16232 /* Override any gcc2 internal prototype to avoid an error. */
16233 /* We use char because int might match the return type of a gcc2
16234 builtin and then its argument prototype would still apply. */
16235 char socket();
16236
16237 int main() {
16238 socket()
16239 ; return 0; }
16240 EOF
16241 if { (eval echo configure:16242: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16242 rm -rf conftest*
16243 eval "ac_cv_lib_$ac_lib_var=yes"
16244 else
16245 echo "configure: failed program was:" >&5
16246 cat conftest.$ac_ext >&5
16247 rm -rf conftest*
16248 eval "ac_cv_lib_$ac_lib_var=no"
16249 fi
16250 rm -f conftest*
16251 LIBS="$ac_save_LIBS"
16252
16253 fi
16254 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16255 echo "$ac_t""yes" 1>&6
16256 INET_LINK="$INET_LINK -lsocket"
16257 else
16258 echo "$ac_t""no" 1>&6
16259
16260 echo "configure: warning: socket library not found - sockets will be disabled" 1>&2
16261 wxUSE_SOCKETS=no
16262
16263
16264 fi
16265
16266
16267 fi
16268
16269 fi
16270
16271
16272 if test "$wxUSE_SOCKETS" = "yes" ; then
16273 echo $ac_n "checking what is the type of the third argument of getsockname""... $ac_c" 1>&6
16274 echo "configure:16275: checking what is the type of the third argument of getsockname" >&5
16275 if eval "test \"`echo '$''{'wx_cv_type_getsockname3'+set}'`\" = set"; then
16276 echo $ac_n "(cached) $ac_c" 1>&6
16277 else
16278
16279
16280 ac_ext=C
16281 # CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16282 ac_cpp='$CXXCPP $CPPFLAGS'
16283 ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16284 ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16285 cross_compiling=$ac_cv_prog_cxx_cross
16286
16287
16288 cat > conftest.$ac_ext <<EOF
16289 #line 16290 "configure"
16290 #include "confdefs.h"
16291
16292 #include <sys/types.h>
16293 #include <sys/socket.h>
16294
16295 int main() {
16296
16297 socklen_t len;
16298 getsockname(0, 0, &len);
16299
16300 ; return 0; }
16301 EOF
16302 if { (eval echo configure:16303: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16303 rm -rf conftest*
16304 wx_cv_type_getsockname3=socklen_t
16305 else
16306 echo "configure: failed program was:" >&5
16307 cat conftest.$ac_ext >&5
16308 rm -rf conftest*
16309 cat > conftest.$ac_ext <<EOF
16310 #line 16311 "configure"
16311 #include "confdefs.h"
16312
16313 #include <sys/types.h>
16314 #include <sys/socket.h>
16315
16316 int main() {
16317
16318 size_t len;
16319 getsockname(0, 0, &len);
16320
16321 ; return 0; }
16322 EOF
16323 if { (eval echo configure:16324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16324 rm -rf conftest*
16325 wx_cv_type_getsockname3=size_t
16326 else
16327 echo "configure: failed program was:" >&5
16328 cat conftest.$ac_ext >&5
16329 rm -rf conftest*
16330 cat > conftest.$ac_ext <<EOF
16331 #line 16332 "configure"
16332 #include "confdefs.h"
16333
16334 #include <sys/types.h>
16335 #include <sys/socket.h>
16336
16337 int main() {
16338
16339 int len;
16340 getsockname(0, 0, &len);
16341
16342 ; return 0; }
16343 EOF
16344 if { (eval echo configure:16345: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
16345 rm -rf conftest*
16346 wx_cv_type_getsockname3=int
16347 else
16348 echo "configure: failed program was:" >&5
16349 cat conftest.$ac_ext >&5
16350 rm -rf conftest*
16351 wx_cv_type_getsockname3=unknown
16352
16353 fi
16354 rm -f conftest*
16355
16356 fi
16357 rm -f conftest*
16358
16359 fi
16360 rm -f conftest*
16361
16362 ac_ext=c
16363 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
16364 ac_cpp='$CPP $CPPFLAGS'
16365 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
16366 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
16367 cross_compiling=$ac_cv_prog_cc_cross
16368
16369
16370 fi
16371
16372 echo "$ac_t""$wx_cv_type_getsockname3" 1>&6
16373
16374 if test "$wx_cv_type_getsockname3" = "unknown"; then
16375 wxUSE_SOCKETS=no
16376 echo "configure: warning: Couldn't find socklen_t synonym for this system" 1>&2
16377 else
16378 cat >> confdefs.h <<EOF
16379 #define SOCKLEN_T $wx_cv_type_getsockname3
16380 EOF
16381
16382 fi
16383 fi
16384
16385 fi
16386
16387 if test "$wxUSE_SOCKETS" = "yes" ; then
16388 cat >> confdefs.h <<\EOF
16389 #define wxUSE_SOCKETS 1
16390 EOF
16391
16392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
16393 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS protocol"
16394 fi
16395
16396
16397 if test "$wxUSE_GUI" = "yes"; then
16398
16399 if test "$TOOLKIT" != "MSW"; then
16400
16401 if test "$wxUSE_JOYSTICK" = "yes"; then
16402 for ac_hdr in linux/joystick.h
16403 do
16404 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
16405 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
16406 echo "configure:16407: checking for $ac_hdr" >&5
16407 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16408 echo $ac_n "(cached) $ac_c" 1>&6
16409 else
16410 cat > conftest.$ac_ext <<EOF
16411 #line 16412 "configure"
16412 #include "confdefs.h"
16413 #include <$ac_hdr>
16414 EOF
16415 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16416 { (eval echo configure:16417: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16417 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16418 if test -z "$ac_err"; then
16419 rm -rf conftest*
16420 eval "ac_cv_header_$ac_safe=yes"
16421 else
16422 echo "$ac_err" >&5
16423 echo "configure: failed program was:" >&5
16424 cat conftest.$ac_ext >&5
16425 rm -rf conftest*
16426 eval "ac_cv_header_$ac_safe=no"
16427 fi
16428 rm -f conftest*
16429 fi
16430 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16431 echo "$ac_t""yes" 1>&6
16432 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
16433 cat >> confdefs.h <<EOF
16434 #define $ac_tr_hdr 1
16435 EOF
16436
16437 else
16438 echo "$ac_t""no" 1>&6
16439 fi
16440 done
16441
16442 if test "$ac_cv_header_linux_joystick_h" != "yes"; then
16443 wxUSE_JOYSTICK=no
16444 echo "configure: warning: Joystick not supported by this system" 1>&2
16445 fi
16446 fi
16447
16448 fi
16449
16450 if test "$wxUSE_JOYSTICK" = "yes"; then
16451 cat >> confdefs.h <<\EOF
16452 #define wxUSE_JOYSTICK 1
16453 EOF
16454
16455 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
16456 fi
16457
16458 fi
16459
16460
16461 if test "$TOOLKIT" != "MSW"; then
16462
16463 HAVE_DL_FUNCS=0
16464 HAVE_SHL_FUNCS=0
16465 if test "$wxUSE_DYNLIB_CLASS" = "yes"; then
16466 if test "$USE_DARWIN" = 1; then
16467 HAVE_DL_FUNCS=1
16468 else
16469 for ac_func in dlopen
16470 do
16471 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16472 echo "configure:16473: checking for $ac_func" >&5
16473 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16474 echo $ac_n "(cached) $ac_c" 1>&6
16475 else
16476 cat > conftest.$ac_ext <<EOF
16477 #line 16478 "configure"
16478 #include "confdefs.h"
16479 /* System header to define __stub macros and hopefully few prototypes,
16480 which can conflict with char $ac_func(); below. */
16481 #include <assert.h>
16482 /* Override any gcc2 internal prototype to avoid an error. */
16483 /* We use char because int might match the return type of a gcc2
16484 builtin and then its argument prototype would still apply. */
16485 char $ac_func();
16486
16487 int main() {
16488
16489 /* The GNU C library defines this for functions which it implements
16490 to always fail with ENOSYS. Some functions are actually named
16491 something starting with __ and the normal name is an alias. */
16492 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16493 choke me
16494 #else
16495 $ac_func();
16496 #endif
16497
16498 ; return 0; }
16499 EOF
16500 if { (eval echo configure:16501: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16501 rm -rf conftest*
16502 eval "ac_cv_func_$ac_func=yes"
16503 else
16504 echo "configure: failed program was:" >&5
16505 cat conftest.$ac_ext >&5
16506 rm -rf conftest*
16507 eval "ac_cv_func_$ac_func=no"
16508 fi
16509 rm -f conftest*
16510 fi
16511
16512 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16513 echo "$ac_t""yes" 1>&6
16514 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16515 cat >> confdefs.h <<EOF
16516 #define $ac_tr_func 1
16517 EOF
16518
16519 cat >> confdefs.h <<\EOF
16520 #define HAVE_DLOPEN 1
16521 EOF
16522
16523 HAVE_DL_FUNCS=1
16524
16525 else
16526 echo "$ac_t""no" 1>&6
16527 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
16528 echo "configure:16529: checking for dlopen in -ldl" >&5
16529 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
16530 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16531 echo $ac_n "(cached) $ac_c" 1>&6
16532 else
16533 ac_save_LIBS="$LIBS"
16534 LIBS="-ldl $LIBS"
16535 cat > conftest.$ac_ext <<EOF
16536 #line 16537 "configure"
16537 #include "confdefs.h"
16538 /* Override any gcc2 internal prototype to avoid an error. */
16539 /* We use char because int might match the return type of a gcc2
16540 builtin and then its argument prototype would still apply. */
16541 char dlopen();
16542
16543 int main() {
16544 dlopen()
16545 ; return 0; }
16546 EOF
16547 if { (eval echo configure:16548: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16548 rm -rf conftest*
16549 eval "ac_cv_lib_$ac_lib_var=yes"
16550 else
16551 echo "configure: failed program was:" >&5
16552 cat conftest.$ac_ext >&5
16553 rm -rf conftest*
16554 eval "ac_cv_lib_$ac_lib_var=no"
16555 fi
16556 rm -f conftest*
16557 LIBS="$ac_save_LIBS"
16558
16559 fi
16560 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16561 echo "$ac_t""yes" 1>&6
16562
16563 cat >> confdefs.h <<\EOF
16564 #define HAVE_DLOPEN 1
16565 EOF
16566
16567 HAVE_DL_FUNCS=1
16568 LIBS="$LIBS -ldl"
16569
16570 else
16571 echo "$ac_t""no" 1>&6
16572
16573 for ac_func in shl_load
16574 do
16575 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16576 echo "configure:16577: checking for $ac_func" >&5
16577 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16578 echo $ac_n "(cached) $ac_c" 1>&6
16579 else
16580 cat > conftest.$ac_ext <<EOF
16581 #line 16582 "configure"
16582 #include "confdefs.h"
16583 /* System header to define __stub macros and hopefully few prototypes,
16584 which can conflict with char $ac_func(); below. */
16585 #include <assert.h>
16586 /* Override any gcc2 internal prototype to avoid an error. */
16587 /* We use char because int might match the return type of a gcc2
16588 builtin and then its argument prototype would still apply. */
16589 char $ac_func();
16590
16591 int main() {
16592
16593 /* The GNU C library defines this for functions which it implements
16594 to always fail with ENOSYS. Some functions are actually named
16595 something starting with __ and the normal name is an alias. */
16596 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16597 choke me
16598 #else
16599 $ac_func();
16600 #endif
16601
16602 ; return 0; }
16603 EOF
16604 if { (eval echo configure:16605: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16605 rm -rf conftest*
16606 eval "ac_cv_func_$ac_func=yes"
16607 else
16608 echo "configure: failed program was:" >&5
16609 cat conftest.$ac_ext >&5
16610 rm -rf conftest*
16611 eval "ac_cv_func_$ac_func=no"
16612 fi
16613 rm -f conftest*
16614 fi
16615
16616 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16617 echo "$ac_t""yes" 1>&6
16618 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16619 cat >> confdefs.h <<EOF
16620 #define $ac_tr_func 1
16621 EOF
16622
16623 cat >> confdefs.h <<\EOF
16624 #define HAVE_SHL_LOAD 1
16625 EOF
16626
16627 HAVE_SHL_FUNCS=1
16628
16629 else
16630 echo "$ac_t""no" 1>&6
16631 echo $ac_n "checking for dld in -lshl_load""... $ac_c" 1>&6
16632 echo "configure:16633: checking for dld in -lshl_load" >&5
16633 ac_lib_var=`echo shl_load'_'dld | sed 'y%./+-%__p_%'`
16634 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16635 echo $ac_n "(cached) $ac_c" 1>&6
16636 else
16637 ac_save_LIBS="$LIBS"
16638 LIBS="-lshl_load $LIBS"
16639 cat > conftest.$ac_ext <<EOF
16640 #line 16641 "configure"
16641 #include "confdefs.h"
16642 /* Override any gcc2 internal prototype to avoid an error. */
16643 /* We use char because int might match the return type of a gcc2
16644 builtin and then its argument prototype would still apply. */
16645 char dld();
16646
16647 int main() {
16648 dld()
16649 ; return 0; }
16650 EOF
16651 if { (eval echo configure:16652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16652 rm -rf conftest*
16653 eval "ac_cv_lib_$ac_lib_var=yes"
16654 else
16655 echo "configure: failed program was:" >&5
16656 cat conftest.$ac_ext >&5
16657 rm -rf conftest*
16658 eval "ac_cv_lib_$ac_lib_var=no"
16659 fi
16660 rm -f conftest*
16661 LIBS="$ac_save_LIBS"
16662
16663 fi
16664 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16665 echo "$ac_t""yes" 1>&6
16666
16667 HAVE_SHL_FUNCS=1
16668 LIBS="$LIBS -ldld"
16669
16670 else
16671 echo "$ac_t""no" 1>&6
16672 fi
16673
16674
16675 fi
16676 done
16677
16678
16679 fi
16680
16681
16682 fi
16683 done
16684
16685
16686 if test "$HAVE_DL_FUNCS" = 1; then
16687 for ac_func in dlerror
16688 do
16689 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
16690 echo "configure:16691: checking for $ac_func" >&5
16691 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
16692 echo $ac_n "(cached) $ac_c" 1>&6
16693 else
16694 cat > conftest.$ac_ext <<EOF
16695 #line 16696 "configure"
16696 #include "confdefs.h"
16697 /* System header to define __stub macros and hopefully few prototypes,
16698 which can conflict with char $ac_func(); below. */
16699 #include <assert.h>
16700 /* Override any gcc2 internal prototype to avoid an error. */
16701 /* We use char because int might match the return type of a gcc2
16702 builtin and then its argument prototype would still apply. */
16703 char $ac_func();
16704
16705 int main() {
16706
16707 /* The GNU C library defines this for functions which it implements
16708 to always fail with ENOSYS. Some functions are actually named
16709 something starting with __ and the normal name is an alias. */
16710 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16711 choke me
16712 #else
16713 $ac_func();
16714 #endif
16715
16716 ; return 0; }
16717 EOF
16718 if { (eval echo configure:16719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16719 rm -rf conftest*
16720 eval "ac_cv_func_$ac_func=yes"
16721 else
16722 echo "configure: failed program was:" >&5
16723 cat conftest.$ac_ext >&5
16724 rm -rf conftest*
16725 eval "ac_cv_func_$ac_func=no"
16726 fi
16727 rm -f conftest*
16728 fi
16729
16730 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
16731 echo "$ac_t""yes" 1>&6
16732 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
16733 cat >> confdefs.h <<EOF
16734 #define $ac_tr_func 1
16735 EOF
16736 cat >> confdefs.h <<\EOF
16737 #define HAVE_DLERROR 1
16738 EOF
16739
16740 else
16741 echo "$ac_t""no" 1>&6
16742 echo $ac_n "checking for dlerror in -ldl""... $ac_c" 1>&6
16743 echo "configure:16744: checking for dlerror in -ldl" >&5
16744 ac_lib_var=`echo dl'_'dlerror | sed 'y%./+-%__p_%'`
16745 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
16746 echo $ac_n "(cached) $ac_c" 1>&6
16747 else
16748 ac_save_LIBS="$LIBS"
16749 LIBS="-ldl $LIBS"
16750 cat > conftest.$ac_ext <<EOF
16751 #line 16752 "configure"
16752 #include "confdefs.h"
16753 /* Override any gcc2 internal prototype to avoid an error. */
16754 /* We use char because int might match the return type of a gcc2
16755 builtin and then its argument prototype would still apply. */
16756 char dlerror();
16757
16758 int main() {
16759 dlerror()
16760 ; return 0; }
16761 EOF
16762 if { (eval echo configure:16763: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
16763 rm -rf conftest*
16764 eval "ac_cv_lib_$ac_lib_var=yes"
16765 else
16766 echo "configure: failed program was:" >&5
16767 cat conftest.$ac_ext >&5
16768 rm -rf conftest*
16769 eval "ac_cv_lib_$ac_lib_var=no"
16770 fi
16771 rm -f conftest*
16772 LIBS="$ac_save_LIBS"
16773
16774 fi
16775 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
16776 echo "$ac_t""yes" 1>&6
16777 cat >> confdefs.h <<\EOF
16778 #define HAVE_DLERROR 1
16779 EOF
16780
16781 else
16782 echo "$ac_t""no" 1>&6
16783 fi
16784
16785 fi
16786 done
16787
16788 fi
16789 fi
16790
16791 if test "$HAVE_DL_FUNCS" = 0; then
16792 if test "$HAVE_SHL_FUNCS" = 0; then
16793 if test "$USE_UNIX" = 1; then
16794 echo "configure: warning: Missing dynamic loading support, several features will be disabled" 1>&2
16795 wxUSE_DYNLIB_CLASS=no
16796 else
16797 echo "configure: warning: Assuming wxLibrary class works on this platform" 1>&2
16798 fi
16799 fi
16800 fi
16801 fi
16802
16803 fi
16804
16805 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
16806 cat >> confdefs.h <<\EOF
16807 #define wxUSE_DYNLIB_CLASS 1
16808 EOF
16809
16810 else
16811 wxUSE_ODBC=no
16812 wxUSE_SERIAL=no
16813 fi
16814
16815
16816 if test "$wxUSE_FONTMAP" = "yes" ; then
16817 cat >> confdefs.h <<\EOF
16818 #define wxUSE_FONTMAP 1
16819 EOF
16820
16821 fi
16822
16823 if test "$wxUSE_UNICODE" = "yes" ; then
16824 cat >> confdefs.h <<\EOF
16825 #define wxUSE_UNICODE 1
16826 EOF
16827
16828 fi
16829
16830 if test "$wxUSE_WCSRTOMBS" = "yes" ; then
16831 cat >> confdefs.h <<\EOF
16832 #define wxUSE_WCSRTOMBS 1
16833 EOF
16834
16835 fi
16836
16837 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
16838 cat >> confdefs.h <<\EOF
16839 #define wxUSE_EXPERIMENTAL_PRINTF 1
16840 EOF
16841
16842 fi
16843
16844
16845 if test "$wxUSE_SERIAL" = "yes" ; then
16846 cat >> confdefs.h <<\EOF
16847 #define wxUSE_SERIAL 1
16848 EOF
16849
16850 fi
16851
16852
16853 IODBC_C_SRC=""
16854 if test "$wxUSE_ODBC" = "yes" ; then
16855 cat >> confdefs.h <<\EOF
16856 #define wxUSE_ODBC 1
16857 EOF
16858
16859 WXODBCFLAG="-D_IODBC_"
16860 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
16861 fi
16862
16863
16864 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
16865 cat >> confdefs.h <<\EOF
16866 #define wxUSE_POSTSCRIPT 1
16867 EOF
16868
16869 fi
16870
16871 cat >> confdefs.h <<\EOF
16872 #define wxUSE_AFM_FOR_POSTSCRIPT 1
16873 EOF
16874
16875
16876 cat >> confdefs.h <<\EOF
16877 #define wxUSE_NORMALIZED_PS_FONTS 1
16878 EOF
16879
16880
16881
16882 if test "$wxUSE_CONSTRAINTS" = "yes"; then
16883 cat >> confdefs.h <<\EOF
16884 #define wxUSE_CONSTRAINTS 1
16885 EOF
16886
16887 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
16888 fi
16889
16890 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16891 cat >> confdefs.h <<\EOF
16892 #define wxUSE_MDI_ARCHITECTURE 1
16893 EOF
16894
16895 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
16896 fi
16897
16898 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
16899 cat >> confdefs.h <<\EOF
16900 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
16901 EOF
16902
16903 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
16904 if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
16905 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
16906 fi
16907 fi
16908
16909 if test "$wxUSE_HELP" = "yes"; then
16910 cat >> confdefs.h <<\EOF
16911 #define wxUSE_HELP 1
16912 EOF
16913
16914 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
16915
16916 if test "$USE_WIN32" = 1; then
16917 if test "$wxUSE_WXHTML_HELP" = "yes"; then
16918 cat >> confdefs.h <<\EOF
16919 #define wxUSE_WXHTML_HELP 1
16920 EOF
16921
16922 ac_safe=`echo "htmlhelp.h" | sed 'y%./+-%__p_%'`
16923 echo $ac_n "checking for htmlhelp.h""... $ac_c" 1>&6
16924 echo "configure:16925: checking for htmlhelp.h" >&5
16925 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
16926 echo $ac_n "(cached) $ac_c" 1>&6
16927 else
16928 cat > conftest.$ac_ext <<EOF
16929 #line 16930 "configure"
16930 #include "confdefs.h"
16931 #include <htmlhelp.h>
16932 EOF
16933 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
16934 { (eval echo configure:16935: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
16935 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
16936 if test -z "$ac_err"; then
16937 rm -rf conftest*
16938 eval "ac_cv_header_$ac_safe=yes"
16939 else
16940 echo "$ac_err" >&5
16941 echo "configure: failed program was:" >&5
16942 cat conftest.$ac_ext >&5
16943 rm -rf conftest*
16944 eval "ac_cv_header_$ac_safe=no"
16945 fi
16946 rm -f conftest*
16947 fi
16948 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
16949 echo "$ac_t""yes" 1>&6
16950
16951 cat >> confdefs.h <<\EOF
16952 #define wxUSE_MS_HTML_HELP 1
16953 EOF
16954
16955
16956 else
16957 echo "$ac_t""no" 1>&6
16958
16959 echo "configure: warning: MS HTML Help cannot be used without htmlhelp.h so it won't be compiled without it" 1>&2
16960 wxUSE_MS_HTML_HELP=no
16961
16962 fi
16963
16964 fi
16965 fi
16966 fi
16967
16968 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
16969 if test "$wxUSE_CONSTRAINTS" != "yes"; then
16970 echo "configure: warning: Printing support cannot be used without constraints so it won't be compiled without it" 1>&2
16971 else
16972 cat >> confdefs.h <<\EOF
16973 #define wxUSE_PRINTING_ARCHITECTURE 1
16974 EOF
16975
16976 fi
16977 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
16978 fi
16979
16980 if test "$wxUSE_PROLOGIO" = "yes" ; then
16981 cat >> confdefs.h <<\EOF
16982 #define wxUSE_PROLOGIO 1
16983 EOF
16984
16985 fi
16986
16987 if test "$wxUSE_RESOURCES" = "yes" ; then
16988 cat >> confdefs.h <<\EOF
16989 #define wxUSE_RESOURCES 1
16990 EOF
16991
16992 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS resource"
16993 fi
16994
16995 if test "$wxUSE_X_RESOURCES" = "yes"; then
16996 cat >> confdefs.h <<\EOF
16997 #define wxUSE_X_RESOURCES 1
16998 EOF
16999
17000 fi
17001
17002
17003 if test "$wxUSE_IPC" = "yes"; then
17004 if test "$wxUSE_SOCKETS" != "yes"; then
17005 echo "configure: warning: wxWindows IPC classes require sockets" 1>&2
17006 fi
17007
17008 cat >> confdefs.h <<\EOF
17009 #define wxUSE_IPC 1
17010 EOF
17011
17012 fi
17013
17014 if test "$wxUSE_CLIPBOARD" = "yes"; then
17015 cat >> confdefs.h <<\EOF
17016 #define wxUSE_CLIPBOARD 1
17017 EOF
17018
17019 cat >> confdefs.h <<\EOF
17020 #define wxUSE_DATAOBJ 1
17021 EOF
17022
17023 fi
17024
17025 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
17026 if test "$wxUSE_GTK" = 1; then
17027 if test "$WXGTK12" != 1; then
17028 echo "configure: warning: Drag and drop is only supported under GTK+ 1.2" 1>&2
17029 wxUSE_DRAG_AND_DROP=no
17030 fi
17031 fi
17032
17033 if test "$wxUSE_MOTIF" = 1; then
17034 echo "configure: warning: Drag and drop is not yet supported under Motif" 1>&2
17035 wxUSE_DRAG_AND_DROP=no
17036 fi
17037
17038 if test "$wxUSE_MAC" = 1; then
17039 echo "configure: warning: Drag and drop is not yet supported under Mac OS X" 1>&2
17040 wxUSE_DRAG_AND_DROP=no
17041 fi
17042
17043 if test "$USE_WIN32" = 1; then
17044
17045 for ac_hdr in ole2.h
17046 do
17047 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
17048 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
17049 echo "configure:17050: checking for $ac_hdr" >&5
17050 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
17051 echo $ac_n "(cached) $ac_c" 1>&6
17052 else
17053 cat > conftest.$ac_ext <<EOF
17054 #line 17055 "configure"
17055 #include "confdefs.h"
17056 #include <$ac_hdr>
17057 EOF
17058 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
17059 { (eval echo configure:17060: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
17060 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
17061 if test -z "$ac_err"; then
17062 rm -rf conftest*
17063 eval "ac_cv_header_$ac_safe=yes"
17064 else
17065 echo "$ac_err" >&5
17066 echo "configure: failed program was:" >&5
17067 cat conftest.$ac_ext >&5
17068 rm -rf conftest*
17069 eval "ac_cv_header_$ac_safe=no"
17070 fi
17071 rm -f conftest*
17072 fi
17073 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
17074 echo "$ac_t""yes" 1>&6
17075 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
17076 cat >> confdefs.h <<EOF
17077 #define $ac_tr_hdr 1
17078 EOF
17079
17080 else
17081 echo "$ac_t""no" 1>&6
17082 fi
17083 done
17084
17085
17086 if test "$ac_cv_header_ole2_h" = "yes" ; then
17087 if test "$GCC" = yes ; then
17088 ALL_OBJECTS="$ALL_OBJECTS \$(OLEOBJS)"
17089 ALL_DEPFILES="$ALL_DEPFILES \$(OLEDEPS)"
17090 CODE_GEN_FLAGS_CXX="$CODE_GEN_FLAGS_CXX -fvtable-thunks"
17091 LIBS="$LIBS -lole32 -luuid"
17092 cat >> confdefs.h <<\EOF
17093 #define wxUSE_OLE 1
17094 EOF
17095
17096
17097 if test "$wxUSE_METAFILE" = "yes"; then
17098 cat >> confdefs.h <<\EOF
17099 #define wxUSE_METAFILE 1
17100 EOF
17101
17102 cat >> confdefs.h <<\EOF
17103 #define wxUSE_ENH_METAFILE 1
17104 EOF
17105
17106 fi
17107 fi
17108 else
17109 echo "configure: warning: Drag and drop disabled because OLE headers not found" 1>&2
17110 wxUSE_DRAG_AND_DROP=no
17111 fi
17112 fi
17113
17114 if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
17115 cat >> confdefs.h <<\EOF
17116 #define wxUSE_DRAG_AND_DROP 1
17117 EOF
17118
17119 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
17120 fi
17121
17122 fi
17123
17124 if test "$wxUSE_SPLINES" = "yes" ; then
17125 cat >> confdefs.h <<\EOF
17126 #define wxUSE_SPLINES 1
17127 EOF
17128
17129 fi
17130
17131
17132 USES_CONTROLS=0
17133 if test "$wxUSE_CONTROLS" = "yes"; then
17134 USES_CONTROLS=1
17135 fi
17136
17137 if test "$wxUSE_ACCEL" = "yes"; then
17138 cat >> confdefs.h <<\EOF
17139 #define wxUSE_ACCEL 1
17140 EOF
17141
17142 USES_CONTROLS=1
17143 fi
17144
17145 if test "$wxUSE_BUTTON" = "yes"; then
17146 cat >> confdefs.h <<\EOF
17147 #define wxUSE_BUTTON 1
17148 EOF
17149
17150 USES_CONTROLS=1
17151 fi
17152
17153 if test "$wxUSE_BMPBUTTON" = "yes"; then
17154 cat >> confdefs.h <<\EOF
17155 #define wxUSE_BMPBUTTON 1
17156 EOF
17157
17158 USES_CONTROLS=1
17159 fi
17160
17161 if test "$wxUSE_CALCTRL" = "yes"; then
17162 cat >> confdefs.h <<\EOF
17163 #define wxUSE_CALENDARCTRL 1
17164 EOF
17165
17166 USES_CONTROLS=1
17167 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
17168 fi
17169
17170 if test "$wxUSE_CARET" = "yes"; then
17171 cat >> confdefs.h <<\EOF
17172 #define wxUSE_CARET 1
17173 EOF
17174
17175 USES_CONTROLS=1
17176 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
17177 fi
17178
17179 if test "$wxUSE_COMBOBOX" = "yes"; then
17180 cat >> confdefs.h <<\EOF
17181 #define wxUSE_COMBOBOX 1
17182 EOF
17183
17184 USES_CONTROLS=1
17185 fi
17186
17187 if test "$wxUSE_CHOICE" = "yes"; then
17188 cat >> confdefs.h <<\EOF
17189 #define wxUSE_CHOICE 1
17190 EOF
17191
17192 USES_CONTROLS=1
17193 fi
17194
17195 if test "$wxUSE_CHECKBOX" = "yes"; then
17196 cat >> confdefs.h <<\EOF
17197 #define wxUSE_CHECKBOX 1
17198 EOF
17199
17200 USES_CONTROLS=1
17201 fi
17202
17203 if test "$wxUSE_CHECKLST" = "yes"; then
17204 cat >> confdefs.h <<\EOF
17205 #define wxUSE_CHECKLISTBOX 1
17206 EOF
17207
17208 USES_CONTROLS=1
17209 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
17210 fi
17211
17212 if test "$wxUSE_GAUGE" = "yes"; then
17213 cat >> confdefs.h <<\EOF
17214 #define wxUSE_GAUGE 1
17215 EOF
17216
17217 USES_CONTROLS=1
17218 fi
17219
17220 if test "$wxUSE_NEW_GRID" = "yes"; then
17221 wxUSE_GRID="yes"
17222 cat >> confdefs.h <<\EOF
17223 #define wxUSE_NEW_GRID 1
17224 EOF
17225
17226 USES_CONTROLS=1
17227 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS newgrid"
17228 fi
17229
17230 if test "$wxUSE_GRID" = "yes"; then
17231 cat >> confdefs.h <<\EOF
17232 #define wxUSE_GRID 1
17233 EOF
17234
17235 USES_CONTROLS=1
17236 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
17237 fi
17238
17239 if test "$wxUSE_IMAGLIST" = "yes"; then
17240 cat >> confdefs.h <<\EOF
17241 #define wxUSE_IMAGLIST 1
17242 EOF
17243
17244 fi
17245
17246 if test "$wxUSE_LISTBOX" = "yes"; then
17247 cat >> confdefs.h <<\EOF
17248 #define wxUSE_LISTBOX 1
17249 EOF
17250
17251 USES_CONTROLS=1
17252 fi
17253
17254 if test "$wxUSE_LISTCTRL" = "yes"; then
17255 if test "$wxUSE_IMAGLIST" = "yes"; then
17256 cat >> confdefs.h <<\EOF
17257 #define wxUSE_LISTCTRL 1
17258 EOF
17259
17260 USES_CONTROLS=1
17261 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
17262 else
17263 echo "configure: warning: wxListCtrl requires wxImageList and won't be compiled without it" 1>&2
17264 fi
17265 fi
17266
17267 if test "$wxUSE_NOTEBOOK" = "yes"; then
17268 cat >> confdefs.h <<\EOF
17269 #define wxUSE_NOTEBOOK 1
17270 EOF
17271
17272 USES_CONTROLS=1
17273 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
17274 fi
17275
17276 if test "$wxUSE_RADIOBOX" = "yes"; then
17277 cat >> confdefs.h <<\EOF
17278 #define wxUSE_RADIOBOX 1
17279 EOF
17280
17281 USES_CONTROLS=1
17282 fi
17283
17284 if test "$wxUSE_RADIOBTN" = "yes"; then
17285 cat >> confdefs.h <<\EOF
17286 #define wxUSE_RADIOBTN 1
17287 EOF
17288
17289 USES_CONTROLS=1
17290 fi
17291
17292 if test "$wxUSE_SASH" = "yes"; then
17293 cat >> confdefs.h <<\EOF
17294 #define wxUSE_SASH 1
17295 EOF
17296
17297 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
17298 fi
17299
17300 if test "$wxUSE_SCROLLBAR" = "yes"; then
17301 cat >> confdefs.h <<\EOF
17302 #define wxUSE_SCROLLBAR 1
17303 EOF
17304
17305 USES_CONTROLS=1
17306 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
17307 fi
17308
17309 if test "$wxUSE_SLIDER" = "yes"; then
17310 cat >> confdefs.h <<\EOF
17311 #define wxUSE_SLIDER 1
17312 EOF
17313
17314 USES_CONTROLS=1
17315 fi
17316
17317 if test "$wxUSE_SPINBTN" = "yes"; then
17318 cat >> confdefs.h <<\EOF
17319 #define wxUSE_SPINBTN 1
17320 EOF
17321
17322 USES_CONTROLS=1
17323 fi
17324
17325 if test "$wxUSE_SPINCTRL" = "yes"; then
17326 cat >> confdefs.h <<\EOF
17327 #define wxUSE_SPINCTRL 1
17328 EOF
17329
17330 USES_CONTROLS=1
17331 fi
17332
17333 if test "$wxUSE_SPLITTER" = "yes"; then
17334 cat >> confdefs.h <<\EOF
17335 #define wxUSE_SPLITTER 1
17336 EOF
17337
17338 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
17339 fi
17340
17341 if test "$wxUSE_STATBMP" = "yes"; then
17342 cat >> confdefs.h <<\EOF
17343 #define wxUSE_STATBMP 1
17344 EOF
17345
17346 USES_CONTROLS=1
17347 fi
17348
17349 if test "$wxUSE_STATBOX" = "yes"; then
17350 cat >> confdefs.h <<\EOF
17351 #define wxUSE_STATBOX 1
17352 EOF
17353
17354 USES_CONTROLS=1
17355 fi
17356
17357 if test "$wxUSE_STATTEXT" = "yes"; then
17358 cat >> confdefs.h <<\EOF
17359 #define wxUSE_STATTEXT 1
17360 EOF
17361
17362 USES_CONTROLS=1
17363 fi
17364
17365 if test "$wxUSE_STATLINE" = "yes"; then
17366 if test "$wxUSE_WINE" = 1 ; then
17367 echo "configure: warning: wxStaticLine is not supported under WINE" 1>&2
17368 else
17369 cat >> confdefs.h <<\EOF
17370 #define wxUSE_STATLINE 1
17371 EOF
17372
17373 USES_CONTROLS=1
17374 fi
17375 fi
17376
17377 if test "$wxUSE_STATUSBAR" = "yes"; then
17378 cat >> confdefs.h <<\EOF
17379 #define wxUSE_STATUSBAR 1
17380 EOF
17381
17382 USES_CONTROLS=1
17383
17384 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
17385 fi
17386
17387 if test "$wxUSE_TABDIALOG" = "yes"; then
17388 cat >> confdefs.h <<\EOF
17389 #define wxUSE_TAB_DIALOG 1
17390 EOF
17391
17392 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS tab"
17393 fi
17394
17395 if test "$wxUSE_TEXTCTRL" = "yes"; then
17396 cat >> confdefs.h <<\EOF
17397 #define wxUSE_TEXTCTRL 1
17398 EOF
17399
17400 USES_CONTROLS=1
17401 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
17402 fi
17403
17404 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17405 if test "$wxUSE_MAC" = 1; then
17406 echo "configure: warning: Toggle button is not yet supported under Mac OS X" 1>&2
17407 wxUSE_TOGGLEBTN=no
17408 fi
17409
17410 if test "$wxUSE_TOGGLEBTN" = "yes"; then
17411 cat >> confdefs.h <<\EOF
17412 #define wxUSE_TOGGLEBTN 1
17413 EOF
17414
17415 USES_CONTROLS=1
17416 fi
17417 fi
17418
17419 if test "$wxUSE_TOOLBAR_SIMPLE" = "yes"; then
17420 cat >> confdefs.h <<\EOF
17421 #define wxUSE_TOOLBAR_SIMPLE 1
17422 EOF
17423
17424 wxUSE_TOOLBAR="yes"
17425 USES_CONTROLS=1
17426 fi
17427
17428 if test "$wxUSE_TOOLBAR" = "yes"; then
17429 cat >> confdefs.h <<\EOF
17430 #define wxUSE_TOOLBAR 1
17431 EOF
17432
17433 USES_CONTROLS=1
17434
17435 if test "$wxUSE_TOOLBAR_SIMPLE" != "yes"; then
17436 wxUSE_TOOLBAR_NATIVE="yes"
17437 fi
17438
17439 if test "$wxUSE_TOOLBAR_NATIVE" = "yes"; then
17440 cat >> confdefs.h <<\EOF
17441 #define wxUSE_TOOLBAR_NATIVE 1
17442 EOF
17443
17444 USES_CONTROLS=1
17445 fi
17446
17447 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
17448 fi
17449
17450 if test "$wxUSE_TOOLTIPS" = "yes"; then
17451 if test "$wxUSE_MOTIF" = 1; then
17452 echo "configure: warning: wxTooltip not supported yet under Motif" 1>&2
17453 else
17454 if test "$wxUSE_WINE" = 1; then
17455 echo "configure: warning: wxTooltip not supported under WINE" 1>&2
17456 else
17457 cat >> confdefs.h <<\EOF
17458 #define wxUSE_TOOLTIPS 1
17459 EOF
17460
17461 fi
17462 fi
17463 fi
17464
17465 if test "$wxUSE_TREECTRL" = "yes"; then
17466 if test "$wxUSE_IMAGLIST" = "yes"; then
17467 cat >> confdefs.h <<\EOF
17468 #define wxUSE_TREECTRL 1
17469 EOF
17470
17471 USES_CONTROLS=1
17472 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
17473 else
17474 echo "configure: warning: wxTreeCtrl requires wxImageList and won't be compiled without it" 1>&2
17475 fi
17476 fi
17477
17478 if test "$wxUSE_POPUPWIN" = "yes"; then
17479 if test "$wxUSE_MAC" = 1; then
17480 echo "configure: warning: Popup window is not yet supported under Mac OS" 1>&2
17481 else
17482 cat >> confdefs.h <<\EOF
17483 #define wxUSE_POPUPWIN 1
17484 EOF
17485
17486 USES_CONTROLS=1
17487 fi
17488 fi
17489
17490 if test "$USES_CONTROLS" = 1; then
17491 cat >> confdefs.h <<\EOF
17492 #define wxUSE_CONTROLS 1
17493 EOF
17494
17495 fi
17496
17497
17498
17499 if test "$wxUSE_DRAGIMAGE" = "yes"; then
17500 cat >> confdefs.h <<\EOF
17501 #define wxUSE_DRAGIMAGE 1
17502 EOF
17503
17504 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
17505 fi
17506
17507 if test "$wxUSE_MENUS" = "yes"; then
17508 cat >> confdefs.h <<\EOF
17509 #define wxUSE_MENUS 1
17510 EOF
17511
17512 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
17513 fi
17514
17515 if test "$wxUSE_METAFILE" = "yes"; then
17516 cat >> confdefs.h <<\EOF
17517 #define wxUSE_METAFILE 1
17518 EOF
17519
17520 fi
17521
17522 if test "$wxUSE_MIMETYPE" = "yes"; then
17523 cat >> confdefs.h <<\EOF
17524 #define wxUSE_MIMETYPE 1
17525 EOF
17526
17527 fi
17528
17529 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
17530 cat >> confdefs.h <<\EOF
17531 #define wxUSE_SYSTEM_OPTIONS 1
17532 EOF
17533
17534 fi
17535
17536 if test "$wxUSE_MINIFRAME" = "yes"; then
17537 cat >> confdefs.h <<\EOF
17538 #define wxUSE_MINIFRAME 1
17539 EOF
17540
17541 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
17542 fi
17543
17544 if test "$wxUSE_HTML" = "yes"; then
17545 cat >> confdefs.h <<\EOF
17546 #define wxUSE_HTML 1
17547 EOF
17548
17549 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html"
17550 INCLUDE_SUBDIRS="$INCLUDE_SUBDIRS html"
17551 fi
17552
17553 if test "$wxUSE_VALIDATORS" = "yes"; then
17554 cat >> confdefs.h <<\EOF
17555 #define wxUSE_VALIDATORS 1
17556 EOF
17557
17558 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
17559 fi
17560
17561 if test "$wxUSE_IMAGE" = "yes" ; then
17562 cat >> confdefs.h <<\EOF
17563 #define wxUSE_IMAGE 1
17564 EOF
17565
17566 fi
17567
17568 if test "$wxUSE_GIF" = "yes" ; then
17569 cat >> confdefs.h <<\EOF
17570 #define wxUSE_GIF 1
17571 EOF
17572
17573 fi
17574
17575 if test "$wxUSE_PCX" = "yes" ; then
17576 cat >> confdefs.h <<\EOF
17577 #define wxUSE_PCX 1
17578 EOF
17579
17580 fi
17581
17582 if test "$wxUSE_PNM" = "yes" ; then
17583 cat >> confdefs.h <<\EOF
17584 #define wxUSE_PNM 1
17585 EOF
17586
17587 fi
17588
17589 if test "$wxUSE_XPM" = "yes" ; then
17590 cat >> confdefs.h <<\EOF
17591 #define wxUSE_XPM 1
17592 EOF
17593
17594 fi
17595
17596
17597 if test "$wxUSE_CHOICEDLG" = "yes"; then
17598 cat >> confdefs.h <<\EOF
17599 #define wxUSE_CHOICEDLG 1
17600 EOF
17601
17602 fi
17603
17604 if test "$wxUSE_COLOURDLG" = "yes"; then
17605 cat >> confdefs.h <<\EOF
17606 #define wxUSE_COLOURDLG 1
17607 EOF
17608
17609 fi
17610
17611 if test "$wxUSE_FILEDLG" = "yes"; then
17612 cat >> confdefs.h <<\EOF
17613 #define wxUSE_FILEDLG 1
17614 EOF
17615
17616 fi
17617
17618 if test "$wxUSE_FONTDLG" = "yes"; then
17619 cat >> confdefs.h <<\EOF
17620 #define wxUSE_FONTDLG 1
17621 EOF
17622
17623 fi
17624
17625 if test "$wxUSE_DIRDLG" = "yes"; then
17626 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17627 echo "configure: warning: wxDirDialog requires constraints so it won't be compiled without them" 1>&2
17628 else
17629 if test "$wxUSE_TREECTRL" != "yes"; then
17630 echo "configure: warning: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" 1>&2
17631 else
17632 cat >> confdefs.h <<\EOF
17633 #define wxUSE_DIRDLG 1
17634 EOF
17635
17636 fi
17637 fi
17638 fi
17639
17640 if test "$wxUSE_MSGDLG" = "yes"; then
17641 cat >> confdefs.h <<\EOF
17642 #define wxUSE_MSGDLG 1
17643 EOF
17644
17645 fi
17646
17647 if test "$wxUSE_NUMBERDLG" = "yes"; then
17648 cat >> confdefs.h <<\EOF
17649 #define wxUSE_NUMBERDLG 1
17650 EOF
17651
17652 fi
17653
17654 if test "$wxUSE_PROGRESSDLG" = "yes"; then
17655 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17656 echo "configure: warning: wxProgressDialog requires constraints so it won't be compiled without them" 1>&2
17657 else
17658 cat >> confdefs.h <<\EOF
17659 #define wxUSE_PROGRESSDLG 1
17660 EOF
17661
17662 fi
17663 fi
17664
17665 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
17666 if test "$wxUSE_CONSTRAINTS" != "yes"; then
17667 echo "configure: warning: Startup tips requires constraints and won't be compiled without them" 1>&2
17668 else
17669 cat >> confdefs.h <<\EOF
17670 #define wxUSE_STARTUP_TIPS 1
17671 EOF
17672
17673 fi
17674 fi
17675
17676 if test "$wxUSE_TEXTDLG" = "yes"; then
17677 cat >> confdefs.h <<\EOF
17678 #define wxUSE_TEXTDLG 1
17679 EOF
17680
17681 fi
17682
17683 if test "$wxUSE_WIZARDDLG" = "yes"; then
17684 cat >> confdefs.h <<\EOF
17685 #define wxUSE_WIZARDDLG 1
17686 EOF
17687
17688 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
17689 fi
17690
17691
17692 if test "$cross_compiling" = "yes"; then
17693 OSINFO="\"$host\""
17694 else
17695 OSINFO=`uname -s -r -m`
17696 OSINFO="\"$OSINFO\""
17697 fi
17698
17699 cat >> confdefs.h <<EOF
17700 #define WXWIN_OS_DESCRIPTION $OSINFO
17701 EOF
17702
17703
17704
17705 GUILIBS="$GUI_TK_LIBRARY $TOOLKIT_LINK"
17706 OPENGL_LIBS="$OPENGL_LINK"
17707
17708 EXTRA_LIBS="$LIBS $POSIX4_LINK $INET_LINK $WCHAR_LINK $THREADS_LINK $DMALLOC_LINK $DL_LINK $ZLIB_LINK -lm"
17709 if test "$wxUSE_MAC" = 1 ; then
17710 EXTRA_LIBS="$EXTRA_LIBS -framework Carbon -framework System"
17711 fi
17712 if test "$wxUSE_GUI" = "yes"; then
17713 EXTRA_LIBS="$GUILIBS $PNG_LINK $JPEG_LINK $TIFF_LINK $FREETYPE_LINK $EXTRA_LIBS"
17714 fi
17715
17716 LD_LIBS="\${top_builddir}/lib/${WX_LIBRARY_NAME_STATIC} $EXTRA_LIBS"
17717
17718 INCLUDES="-I. -I\${top_builddir}/include -I\${top_srcdir}/include \
17719 $REGEX_INCLUDE $ZLIB_INCLUDE $PNG_INCLUDE $JPEG_INCLUDE $TIFF_INCLUDE \
17720 $FREETYPE_INCLUDE $TOOLKIT_INCLUDE"
17721
17722 if test "$wxUSE_GTK" = 1; then
17723 WXCONFIG_INCLUDE=""
17724 else
17725 WXCONFIG_INCLUDE="$TOOLKIT_INCLUDE"
17726 fi
17727
17728 if test "$GXX" = yes ; then
17729 CXXWARNINGS="-Wall"
17730 fi
17731 EXTRA_CFLAGS="$WXDEBUG $WXODBCFLAG $PROFILE $OPTIMISE $INCLUDES"
17732
17733 CFLAGS=`echo $CFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \\+/ /g'`
17734 CXXFLAGS=`echo $CXXFLAGS $EXTRA_CFLAGS $CXXWARNINGS | sed 's/ \+/ /g'`
17735
17736 LDFLAGS="$LDFLAGS $PROFILE"
17737
17738 if test "$wxUSE_GUI" = "yes"; then
17739
17740 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS controls dialogs \
17741 drawing dynamic event font fractal image \
17742 minimal richedit widgets"
17743
17744 if test "$wxUSE_UNIVERSAL" = "yes" ; then
17745 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS univ"
17746 fi
17747
17748 CPPFLAGS="$CPPFLAGS \$(EXTRADEFS) \$(APPEXTRADEFS)"
17749 else
17750 SAMPLES_SUBDIRS=""
17751 fi
17752
17753 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780
17781
17782
17783
17784
17785
17786
17787
17788
17789
17790
17791
17792
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803
17804
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841
17842
17843
17844
17845
17846
17847
17848 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
17849 echo "configure:17850: checking whether ${MAKE-make} sets \${MAKE}" >&5
17850 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
17851 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
17852 echo $ac_n "(cached) $ac_c" 1>&6
17853 else
17854 cat > conftestmake <<\EOF
17855 all:
17856 @echo 'ac_maketemp="${MAKE}"'
17857 EOF
17858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
17859 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
17860 if test -n "$ac_maketemp"; then
17861 eval ac_cv_prog_make_${ac_make}_set=yes
17862 else
17863 eval ac_cv_prog_make_${ac_make}_set=no
17864 fi
17865 rm -f conftestmake
17866 fi
17867 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
17868 echo "$ac_t""yes" 1>&6
17869 SET_MAKE=
17870 else
17871 echo "$ac_t""no" 1>&6
17872 SET_MAKE="MAKE=${MAKE-make}"
17873 fi
17874
17875
17876 if test -d include; then
17877 if test -d include/wx; then
17878 if test -d include/wx/${SETUPH_DIR}; then
17879 if test -f include/wx/${SETUPH_DIR}/setup.h; then
17880 mv -f include/wx/${SETUPH_DIR}/setup.h setup.h
17881 fi
17882 fi
17883 fi
17884 fi
17885
17886
17887
17888 if test "$wxUSE_GUI" = "yes"; then
17889 wx_cv_path_samplesubdirs=$SAMPLES_SUBDIRS
17890 wx_cv_path_ifs=$PATH_IFS
17891 wx_cv_program_ext=$PROGRAM_EXT
17892 wx_cv_target_library=$WX_TARGET_LIBRARY
17893 wx_cv_target_libtype=$WX_TARGET_LIBRARY_TYPE
17894 export wx_cv_path_samplesubdirs wx_cv_path_ifs wx_cv_program_ext \
17895 wx_cv_target_library wx_cv_target_libtype
17896 subdirs="demos samples utils contrib"
17897
17898 fi
17899
17900 trap '' 1 2 15
17901 cat > confcache <<\EOF
17902 # This file is a shell script that caches the results of configure
17903 # tests run on this system so they can be shared between configure
17904 # scripts and configure runs. It is not useful on other systems.
17905 # If it contains results you don't want to keep, you may remove or edit it.
17906 #
17907 # By default, configure uses ./config.cache as the cache file,
17908 # creating it if it does not exist already. You can give configure
17909 # the --cache-file=FILE option to use a different cache file; that is
17910 # what configure does when it calls configure scripts in
17911 # subdirectories, so they share the cache.
17912 # Giving --cache-file=/dev/null disables caching, for debugging configure.
17913 # config.status only pays attention to the cache file if you give it the
17914 # --recheck option to rerun configure.
17915 #
17916 EOF
17917 # The following way of writing the cache mishandles newlines in values,
17918 # but we know of no workaround that is simple, portable, and efficient.
17919 # So, don't put newlines in cache variables' values.
17920 # Ultrix sh set writes to stderr and can't be redirected directly,
17921 # and sets the high bit in the cache file unless we assign to the vars.
17922 (set) 2>&1 |
17923 case `(ac_space=' '; set | grep ac_space) 2>&1` in
17924 *ac_space=\ *)
17925 # `set' does not quote correctly, so add quotes (double-quote substitution
17926 # turns \\\\ into \\, and sed turns \\ into \).
17927 sed -n \
17928 -e "s/'/'\\\\''/g" \
17929 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
17930 ;;
17931 *)
17932 # `set' quotes correctly as required by POSIX, so do not add quotes.
17933 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
17934 ;;
17935 esac >> confcache
17936 if cmp -s $cache_file confcache; then
17937 :
17938 else
17939 if test -w $cache_file; then
17940 echo "updating cache $cache_file"
17941 cat confcache > $cache_file
17942 else
17943 echo "not updating unwritable cache $cache_file"
17944 fi
17945 fi
17946 rm -f confcache
17947
17948 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
17949
17950 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17951 # Let make expand exec_prefix.
17952 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17953
17954 # Any assignment to VPATH causes Sun make to only execute
17955 # the first set of double-colon rules, so remove it if not needed.
17956 # If there is a colon in the path, we need to keep it.
17957 if test "x$srcdir" = x.; then
17958 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
17959 fi
17960
17961 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
17962
17963 DEFS=-DHAVE_CONFIG_H
17964
17965 # Without the "./", some shells look in PATH for config.status.
17966 : ${CONFIG_STATUS=./config.status}
17967
17968 echo creating $CONFIG_STATUS
17969 rm -f $CONFIG_STATUS
17970 cat > $CONFIG_STATUS <<EOF
17971 #! /bin/sh
17972 # Generated automatically by configure.
17973 # Run this file to recreate the current configuration.
17974 # This directory was configured as follows,
17975 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17976 #
17977 # $0 $ac_configure_args
17978 #
17979 # Compiler output produced by configure, useful for debugging
17980 # configure, is in ./config.log if it exists.
17981
17982 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
17983 for ac_option
17984 do
17985 case "\$ac_option" in
17986 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17987 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
17988 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
17989 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
17990 echo "$CONFIG_STATUS generated by autoconf version 2.13"
17991 exit 0 ;;
17992 -help | --help | --hel | --he | --h)
17993 echo "\$ac_cs_usage"; exit 0 ;;
17994 *) echo "\$ac_cs_usage"; exit 1 ;;
17995 esac
17996 done
17997
17998 ac_given_srcdir=$srcdir
17999 ac_given_INSTALL="$INSTALL"
18000
18001 trap 'rm -fr `echo "
18002 wx-config
18003 src/make.env
18004 src/makeprog.env
18005 src/makelib.env
18006 Makefile
18007 setup.h:setup.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
18008 EOF
18009 cat >> $CONFIG_STATUS <<EOF
18010
18011 # Protect against being on the right side of a sed subst in config.status.
18012 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
18013 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
18014 $ac_vpsub
18015 $extrasub
18016 s%@SHELL@%$SHELL%g
18017 s%@CFLAGS@%$CFLAGS%g
18018 s%@CPPFLAGS@%$CPPFLAGS%g
18019 s%@CXXFLAGS@%$CXXFLAGS%g
18020 s%@FFLAGS@%$FFLAGS%g
18021 s%@DEFS@%$DEFS%g
18022 s%@LDFLAGS@%$LDFLAGS%g
18023 s%@LIBS@%$LIBS%g
18024 s%@exec_prefix@%$exec_prefix%g
18025 s%@prefix@%$prefix%g
18026 s%@program_transform_name@%$program_transform_name%g
18027 s%@bindir@%$bindir%g
18028 s%@sbindir@%$sbindir%g
18029 s%@libexecdir@%$libexecdir%g
18030 s%@datadir@%$datadir%g
18031 s%@sysconfdir@%$sysconfdir%g
18032 s%@sharedstatedir@%$sharedstatedir%g
18033 s%@localstatedir@%$localstatedir%g
18034 s%@libdir@%$libdir%g
18035 s%@includedir@%$includedir%g
18036 s%@oldincludedir@%$oldincludedir%g
18037 s%@infodir@%$infodir%g
18038 s%@mandir@%$mandir%g
18039 s%@host@%$host%g
18040 s%@host_alias@%$host_alias%g
18041 s%@host_cpu@%$host_cpu%g
18042 s%@host_vendor@%$host_vendor%g
18043 s%@host_os@%$host_os%g
18044 s%@target@%$target%g
18045 s%@target_alias@%$target_alias%g
18046 s%@target_cpu@%$target_cpu%g
18047 s%@target_vendor@%$target_vendor%g
18048 s%@target_os@%$target_os%g
18049 s%@build@%$build%g
18050 s%@build_alias@%$build_alias%g
18051 s%@build_cpu@%$build_cpu%g
18052 s%@build_vendor@%$build_vendor%g
18053 s%@build_os@%$build_os%g
18054 s%@CC@%$CC%g
18055 s%@CPP@%$CPP%g
18056 s%@CXX@%$CXX%g
18057 s%@CXXCPP@%$CXXCPP%g
18058 s%@RANLIB@%$RANLIB%g
18059 s%@AR@%$AR%g
18060 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
18061 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
18062 s%@INSTALL_DATA@%$INSTALL_DATA%g
18063 s%@STRIP@%$STRIP%g
18064 s%@YACC@%$YACC%g
18065 s%@LEX@%$LEX%g
18066 s%@LEXLIB@%$LEXLIB%g
18067 s%@LN_S@%$LN_S%g
18068 s%@GTK_CONFIG_2_0@%$GTK_CONFIG_2_0%g
18069 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
18070 s%@GTK_LIBS@%$GTK_LIBS%g
18071 s%@GTK_CONFIG@%$GTK_CONFIG%g
18072 s%@X_CFLAGS@%$X_CFLAGS%g
18073 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
18074 s%@X_LIBS@%$X_LIBS%g
18075 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
18076 s%@REZ@%$REZ%g
18077 s%@DEREZ@%$DEREZ%g
18078 s%@LEX_STEM@%$LEX_STEM%g
18079 s%@PATH_IFS@%$PATH_IFS%g
18080 s%@WX_MAJOR_VERSION_NUMBER@%$WX_MAJOR_VERSION_NUMBER%g
18081 s%@WX_MINOR_VERSION_NUMBER@%$WX_MINOR_VERSION_NUMBER%g
18082 s%@WX_RELEASE_NUMBER@%$WX_RELEASE_NUMBER%g
18083 s%@WX_LIBRARY_NAME@%$WX_LIBRARY_NAME%g
18084 s%@WX_LIBRARY_NAME_STATIC@%$WX_LIBRARY_NAME_STATIC%g
18085 s%@WX_LIBRARY_NAME_SHARED@%$WX_LIBRARY_NAME_SHARED%g
18086 s%@WX_LIBRARY@%$WX_LIBRARY%g
18087 s%@WX_TARGET_LIBRARY@%$WX_TARGET_LIBRARY%g
18088 s%@WX_LIBRARY_LINK1@%$WX_LIBRARY_LINK1%g
18089 s%@WX_LIBRARY_LINK2@%$WX_LIBRARY_LINK2%g
18090 s%@WX_LIBRARY_LINK3@%$WX_LIBRARY_LINK3%g
18091 s%@PROGRAM_EXT@%$PROGRAM_EXT%g
18092 s%@WX_LIBRARY_NAME_GL@%$WX_LIBRARY_NAME_GL%g
18093 s%@WX_LIBRARY_NAME_STATIC_GL@%$WX_LIBRARY_NAME_STATIC_GL%g
18094 s%@WX_LIBRARY_NAME_SHARED_GL@%$WX_LIBRARY_NAME_SHARED_GL%g
18095 s%@WX_LIBRARY_GL@%$WX_LIBRARY_GL%g
18096 s%@WX_TARGET_LIBRARY_GL@%$WX_TARGET_LIBRARY_GL%g
18097 s%@WX_LIBRARY_LINK1_GL@%$WX_LIBRARY_LINK1_GL%g
18098 s%@WX_LIBRARY_LINK2_GL@%$WX_LIBRARY_LINK2_GL%g
18099 s%@WX_LIBRARY_LINK3_GL@%$WX_LIBRARY_LINK3_GL%g
18100 s%@WX_ALL@%$WX_ALL%g
18101 s%@WX_ALL_INSTALLED@%$WX_ALL_INSTALLED%g
18102 s%@SHARED_LD@%$SHARED_LD%g
18103 s%@PIC_FLAG@%$PIC_FLAG%g
18104 s%@DEP_INFO_FLAGS@%$DEP_INFO_FLAGS%g
18105 s%@CODE_GEN_FLAGS@%$CODE_GEN_FLAGS%g
18106 s%@CODE_GEN_FLAGS_CXX@%$CODE_GEN_FLAGS_CXX%g
18107 s%@BURNT_LIBRARY_NAME@%$BURNT_LIBRARY_NAME%g
18108 s%@BURNT_LIBRARY_NAME_GL@%$BURNT_LIBRARY_NAME_GL%g
18109 s%@WX_TARGET_LIBRARY_SONAME@%$WX_TARGET_LIBRARY_SONAME%g
18110 s%@WX_TARGET_LIBRARY_TYPE@%$WX_TARGET_LIBRARY_TYPE%g
18111 s%@WXDEBUG_DEFINE@%$WXDEBUG_DEFINE%g
18112 s%@USE_GUI@%$USE_GUI%g
18113 s%@AFMINSTALL@%$AFMINSTALL%g
18114 s%@SETUPH_DIR@%$SETUPH_DIR%g
18115 s%@TOOLKIT@%$TOOLKIT%g
18116 s%@TOOLKIT_DEF@%$TOOLKIT_DEF%g
18117 s%@TOOLKIT_DIR@%$TOOLKIT_DIR%g
18118 s%@TOOLKIT_NAME@%$TOOLKIT_NAME%g
18119 s%@TOOLKIT_INCLUDE@%$TOOLKIT_INCLUDE%g
18120 s%@TOOLKIT_VPATH@%$TOOLKIT_VPATH%g
18121 s%@WXCONFIG_INCLUDE@%$WXCONFIG_INCLUDE%g
18122 s%@ALL_OBJECTS@%$ALL_OBJECTS%g
18123 s%@ALL_DEPFILES@%$ALL_DEPFILES%g
18124 s%@GUIDIST@%$GUIDIST%g
18125 s%@PORT_FILES@%$PORT_FILES%g
18126 s%@DISTDIR@%$DISTDIR%g
18127 s%@RPM_SPEC@%$RPM_SPEC%g
18128 s%@RPM_FILES@%$RPM_FILES%g
18129 s%@SRC_SUBDIRS@%$SRC_SUBDIRS%g
18130 s%@INCLUDE_SUBDIRS@%$INCLUDE_SUBDIRS%g
18131 s%@UTILS_SUBDIRS@%$UTILS_SUBDIRS%g
18132 s%@DOCS_SUBDIRS@%$DOCS_SUBDIRS%g
18133 s%@SAMPLES_SUBDIRS@%$SAMPLES_SUBDIRS%g
18134 s%@USER_SUBDIRS@%$USER_SUBDIRS%g
18135 s%@EXTRA_LIBS@%$EXTRA_LIBS%g
18136 s%@OPENGL_LIBS@%$OPENGL_LIBS%g
18137 s%@EXTRADEFS@%$EXTRADEFS%g
18138 s%@LD_LIBS@%$LD_LIBS%g
18139 s%@RCINPUTSWITCH@%$RCINPUTSWITCH%g
18140 s%@RCOUTPUTSWITCH@%$RCOUTPUTSWITCH%g
18141 s%@RESPROGRAM@%$RESPROGRAM%g
18142 s%@RESCOMP@%$RESCOMP%g
18143 s%@RESFLAGS@%$RESFLAGS%g
18144 s%@REZFLAGS@%$REZFLAGS%g
18145 s%@DEREZFLAGS@%$DEREZFLAGS%g
18146 s%@LIBWXMACRES@%$LIBWXMACRES%g
18147 s%@LIBWXMACRESCOMP@%$LIBWXMACRESCOMP%g
18148 s%@DLLTOOL@%$DLLTOOL%g
18149 s%@AS@%$AS%g
18150 s%@NM@%$NM%g
18151 s%@LD@%$LD%g
18152 s%@MAKEINFO@%$MAKEINFO%g
18153 s%@SET_MAKE@%$SET_MAKE%g
18154 s%@subdirs@%$subdirs%g
18155
18156 CEOF
18157 EOF
18158
18159 cat >> $CONFIG_STATUS <<\EOF
18160
18161 # Split the substitutions into bite-sized pieces for seds with
18162 # small command number limits, like on Digital OSF/1 and HP-UX.
18163 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
18164 ac_file=1 # Number of current file.
18165 ac_beg=1 # First line for current file.
18166 ac_end=$ac_max_sed_cmds # Line after last line for current file.
18167 ac_more_lines=:
18168 ac_sed_cmds=""
18169 while $ac_more_lines; do
18170 if test $ac_beg -gt 1; then
18171 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
18172 else
18173 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
18174 fi
18175 if test ! -s conftest.s$ac_file; then
18176 ac_more_lines=false
18177 rm -f conftest.s$ac_file
18178 else
18179 if test -z "$ac_sed_cmds"; then
18180 ac_sed_cmds="sed -f conftest.s$ac_file"
18181 else
18182 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
18183 fi
18184 ac_file=`expr $ac_file + 1`
18185 ac_beg=$ac_end
18186 ac_end=`expr $ac_end + $ac_max_sed_cmds`
18187 fi
18188 done
18189 if test -z "$ac_sed_cmds"; then
18190 ac_sed_cmds=cat
18191 fi
18192 EOF
18193
18194 cat >> $CONFIG_STATUS <<EOF
18195
18196 CONFIG_FILES=\${CONFIG_FILES-"wx-config
18197 src/make.env
18198 src/makeprog.env
18199 src/makelib.env
18200 Makefile
18201 "}
18202 EOF
18203 cat >> $CONFIG_STATUS <<\EOF
18204 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
18205 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18206 case "$ac_file" in
18207 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18208 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18209 *) ac_file_in="${ac_file}.in" ;;
18210 esac
18211
18212 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
18213
18214 # Remove last slash and all that follows it. Not all systems have dirname.
18215 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18216 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18217 # The file is in a subdirectory.
18218 test ! -d "$ac_dir" && mkdir "$ac_dir"
18219 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
18220 # A "../" for each directory in $ac_dir_suffix.
18221 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
18222 else
18223 ac_dir_suffix= ac_dots=
18224 fi
18225
18226 case "$ac_given_srcdir" in
18227 .) srcdir=.
18228 if test -z "$ac_dots"; then top_srcdir=.
18229 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
18230 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
18231 *) # Relative path.
18232 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
18233 top_srcdir="$ac_dots$ac_given_srcdir" ;;
18234 esac
18235
18236 case "$ac_given_INSTALL" in
18237 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18238 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18239 esac
18240
18241 echo creating "$ac_file"
18242 rm -f "$ac_file"
18243 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
18244 case "$ac_file" in
18245 *Makefile*) ac_comsub="1i\\
18246 # $configure_input" ;;
18247 *) ac_comsub= ;;
18248 esac
18249
18250 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18251 sed -e "$ac_comsub
18252 s%@configure_input@%$configure_input%g
18253 s%@srcdir@%$srcdir%g
18254 s%@top_srcdir@%$top_srcdir%g
18255 s%@INSTALL@%$INSTALL%g
18256 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
18257 fi; done
18258 rm -f conftest.s*
18259
18260 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
18261 # NAME is the cpp macro being defined and VALUE is the value it is being given.
18262 #
18263 # ac_d sets the value in "#define NAME VALUE" lines.
18264 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
18265 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
18266 ac_dC='\3'
18267 ac_dD='%g'
18268 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
18269 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18270 ac_uB='\([ ]\)%\1#\2define\3'
18271 ac_uC=' '
18272 ac_uD='\4%g'
18273 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
18274 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
18275 ac_eB='$%\1#\2define\3'
18276 ac_eC=' '
18277 ac_eD='%g'
18278
18279 if test "${CONFIG_HEADERS+set}" != set; then
18280 EOF
18281 cat >> $CONFIG_STATUS <<EOF
18282 CONFIG_HEADERS="setup.h:setup.h.in"
18283 EOF
18284 cat >> $CONFIG_STATUS <<\EOF
18285 fi
18286 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
18287 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
18288 case "$ac_file" in
18289 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
18290 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
18291 *) ac_file_in="${ac_file}.in" ;;
18292 esac
18293
18294 echo creating $ac_file
18295
18296 rm -f conftest.frag conftest.in conftest.out
18297 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
18298 cat $ac_file_inputs > conftest.in
18299
18300 EOF
18301
18302 # Transform confdefs.h into a sed script conftest.vals that substitutes
18303 # the proper values into config.h.in to produce config.h. And first:
18304 # Protect against being on the right side of a sed subst in config.status.
18305 # Protect against being in an unquoted here document in config.status.
18306 rm -f conftest.vals
18307 cat > conftest.hdr <<\EOF
18308 s/[\\&%]/\\&/g
18309 s%[\\$`]%\\&%g
18310 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
18311 s%ac_d%ac_u%gp
18312 s%ac_u%ac_e%gp
18313 EOF
18314 sed -n -f conftest.hdr confdefs.h > conftest.vals
18315 rm -f conftest.hdr
18316
18317 # This sed command replaces #undef with comments. This is necessary, for
18318 # example, in the case of _POSIX_SOURCE, which is predefined and required
18319 # on some systems where configure will not decide to define it.
18320 cat >> conftest.vals <<\EOF
18321 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
18322 EOF
18323
18324 # Break up conftest.vals because some shells have a limit on
18325 # the size of here documents, and old seds have small limits too.
18326
18327 rm -f conftest.tail
18328 while :
18329 do
18330 ac_lines=`grep -c . conftest.vals`
18331 # grep -c gives empty output for an empty file on some AIX systems.
18332 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
18333 # Write a limited-size here document to conftest.frag.
18334 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
18335 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
18336 echo 'CEOF
18337 sed -f conftest.frag conftest.in > conftest.out
18338 rm -f conftest.in
18339 mv conftest.out conftest.in
18340 ' >> $CONFIG_STATUS
18341 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
18342 rm -f conftest.vals
18343 mv conftest.tail conftest.vals
18344 done
18345 rm -f conftest.vals
18346
18347 cat >> $CONFIG_STATUS <<\EOF
18348 rm -f conftest.frag conftest.h
18349 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
18350 cat conftest.in >> conftest.h
18351 rm -f conftest.in
18352 if cmp -s $ac_file conftest.h 2>/dev/null; then
18353 echo "$ac_file is unchanged"
18354 rm -f conftest.h
18355 else
18356 # Remove last slash and all that follows it. Not all systems have dirname.
18357 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
18358 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
18359 # The file is in a subdirectory.
18360 test ! -d "$ac_dir" && mkdir "$ac_dir"
18361 fi
18362 rm -f $ac_file
18363 mv conftest.h $ac_file
18364 fi
18365 fi; done
18366
18367 EOF
18368 cat >> $CONFIG_STATUS <<EOF
18369
18370 SETUPH_DIR="${SETUPH_DIR}"
18371 TOOLKIT_NAME="${TOOLKIT_NAME}"
18372 LN_S="${LN_S}"
18373
18374
18375 EOF
18376 cat >> $CONFIG_STATUS <<\EOF
18377
18378 if test ! -f wx${TOOLKIT_NAME}-config; then
18379 chmod +x wx-config
18380 mv wx-config wx${TOOLKIT_NAME}-config
18381 ${LN_S} wx${TOOLKIT_NAME}-config wx-config
18382 fi
18383
18384
18385 if test ! -d lib; then
18386 mkdir lib
18387 fi
18388 if test ! -d lib/wx; then
18389 mkdir lib/wx
18390 fi
18391 if test ! -d lib/wx/include; then
18392 mkdir lib/wx/include
18393 fi
18394 if test ! -d lib/wx/include/wx; then
18395 mkdir lib/wx/include/wx
18396 fi
18397 if test ! -d lib/wx/include/wx/${TOOLKIT_NAME}; then
18398 mkdir lib/wx/include/wx/${TOOLKIT_NAME}
18399 fi
18400 if test -f setup.h; then
18401 cp -fp setup.h lib/wx/include/wx/${TOOLKIT_NAME}/setup.h
18402 fi
18403
18404
18405 if test ! -d include; then
18406 mkdir include
18407 fi
18408 if test ! -d include/wx; then
18409 mkdir include/wx
18410 fi
18411 if test ! -d include/wx/${SETUPH_DIR}; then
18412 mkdir include/wx/${SETUPH_DIR}
18413 fi
18414 if test -f setup.h; then
18415 cp -fp setup.h include/wx/${SETUPH_DIR}/setup.h
18416 fi
18417
18418
18419 exit 0
18420 EOF
18421 chmod +x $CONFIG_STATUS
18422 rm -fr confdefs* $ac_clean_files
18423 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
18424
18425 if test "$no_recursion" != yes; then
18426
18427 # Remove --cache-file and --srcdir arguments so they do not pile up.
18428 ac_sub_configure_args=
18429 ac_prev=
18430 for ac_arg in $ac_configure_args; do
18431 if test -n "$ac_prev"; then
18432 ac_prev=
18433 continue
18434 fi
18435 case "$ac_arg" in
18436 -cache-file | --cache-file | --cache-fil | --cache-fi \
18437 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
18438 ac_prev=cache_file ;;
18439 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
18440 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
18441 ;;
18442 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
18443 ac_prev=srcdir ;;
18444 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
18445 ;;
18446 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
18447 esac
18448 done
18449
18450 for ac_config_dir in demos samples utils contrib; do
18451
18452 # Do not complain, so a configure script can configure whichever
18453 # parts of a large source tree are present.
18454 if test ! -d $srcdir/$ac_config_dir; then
18455 continue
18456 fi
18457
18458 echo configuring in $ac_config_dir
18459
18460 case "$srcdir" in
18461 .) ;;
18462 *)
18463 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
18464 else
18465 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
18466 fi
18467 ;;
18468 esac
18469
18470 ac_popdir=`pwd`
18471 cd $ac_config_dir
18472
18473 # A "../" for each directory in /$ac_config_dir.
18474 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
18475
18476 case "$srcdir" in
18477 .) # No --srcdir option. We are building in place.
18478 ac_sub_srcdir=$srcdir ;;
18479 /*) # Absolute path.
18480 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
18481 *) # Relative path.
18482 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
18483 esac
18484
18485 # Check for guested configure; otherwise get Cygnus style configure.
18486 if test -f $ac_sub_srcdir/configure; then
18487 ac_sub_configure=$ac_sub_srcdir/configure
18488 elif test -f $ac_sub_srcdir/configure.in; then
18489 ac_sub_configure=$ac_configure
18490 else
18491 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
18492 ac_sub_configure=
18493 fi
18494
18495 # The recursion is here.
18496 if test -n "$ac_sub_configure"; then
18497
18498 # Make the cache file name correct relative to the subdirectory.
18499 case "$cache_file" in
18500 /*) ac_sub_cache_file=$cache_file ;;
18501 *) # Relative path.
18502 ac_sub_cache_file="$ac_dots$cache_file" ;;
18503 esac
18504 case "$ac_given_INSTALL" in
18505 [/$]*) INSTALL="$ac_given_INSTALL" ;;
18506 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
18507 esac
18508
18509 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
18510 # The eval makes quoting arguments work.
18511 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
18512 then :
18513 else
18514 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
18515 fi
18516 fi
18517
18518 cd $ac_popdir
18519 done
18520 fi
18521
18522